当前位置:网站首页>Gear 月度更新|6 月
Gear 月度更新|6 月
2022-08-02 17:33:00 【GearFans】

亲爱的社区朋友们,6 月份月报出炉啦!
六月份有很多技术更新,具体内容请查看我们的 GitHub[1]! 首先,现在用户使用由 SCALE 编码器编译的可以返回错误的函数(例如 gstd 库中的 msg::send、msg::reply 等)时,可以获得实际的错误描述[2]。我们还使 gstd::prog::create_program 和 gstd::prog::create_program_with_gas 成为可以返回错误的函数[3],这有助于在早期阶段检测错误。我们在 gstd 库中引入了无 gas 版本的 create_program[4],以及所有其他的 send/reply 函数(包括同步和异步),它们现在都有无 gas 和有 gas 版本[5]。请注意 gstd::msg::send_and_wait_for_reply 函数已被标记为弃用,建议用 gstd::msg::send_for_reply 和 gstd::msg::send_for_reply_as 函数替代。在未来的某个 gstd 版本中我们将完全删除已弃用的函数。
值得一提的是,以前用户通过调用 gstd::prog::create_program 函数从程序创建另一个程序时,必须手动指定 salt。现在可以使用 ProgramGenerator::create_program 函数来代替,它会自动计算 salt。这解决了跟踪用户 salt 唯一性[6]的问题。Get_gas_spent 被重命名为 calculate_gas_info 以呈现其新的逻辑[7]:现在函数提供了关于执行所需 gas 的更多细节。新函数增加控制措施,可以确定执行辅助程序是否会导致陷阱。该函数计算 gas 的精度更高。从现在开始,用户可以在 gtest 中获得程序执行后消耗的 gas[8]。这使用户能够使用 gtest 库来监测和优化程序的 gas 消耗量,使其更加有效、成本更低。
另一个重要的更新是,我们增加了 meta state 测试工具[9]。gtest::Program 中的新 API 能够执行程序的元函数。这允许通过测试覆盖元函数。无论是否有传入参数,新的 API 允许执行元函数。参数能够以字节数组或实现 Encode 和 Decode 特征的结构形式提供。我们提出了存储事件和它们所包含数据的新设计[10],这一设计具有更丰富的信息和更紧凑的结构,解决了事件重复等问题。新的架构允许我们用最少的资源来覆盖 JS 或其他监控机制的所有需求,以获取链上发生的信息,我们已经做好与所有 scanner 集成的准备。
在其他更新中,从现在开始,消息返回体中的错误回复将包含错误解释[11],以便程序和用户端了解更多的错误信息。向用户发送的错误消息在参数体中包含对错误的字符串解释,这些错误信息通过显示格式化程序形成。发送到程序的错误信息会包含错误结构的编码字节。
除了技术更新,我们还想与大家分享近期的社区活动! 我们非常荣幸作为赞助商参与了 2022 年 Polkadot 黑客马拉松活动[12]!我们在赛前 Workshop 中重点介绍和解释了 Gear 智能合约的概念,以帮助与会者更好地了解 Gear 网络及其在 Polkadot 和 Kusama 生态系统中的作用。我们还在 Ankara[13] 和杭州[14]举办了线下 Workshop,这两活场动都很成功!
此外,我们的 CEO 兼创始人 Nikolay Volf 在 6 月参加了多场 AMA 活动,分别与UniqueOneVN[15]、AVG[16] 和 CapitalB[17] 联合举办。我们还参加了在美国举行的各种聚会,包括Hotsama Rooftop at the LINE - Consensus Polkadot Meetup[18] 和 Polkadot Hackathon Global Series Meetup[19]。这些 meetup 将 Polkadot 生态系统中的新兴、具有前景的项目汇聚在一起,让我们意识到 Polkadot 网络在项目中强大的聚合力以及 Polkadot 生态系统的蓬勃力量。
感谢社区朋友们的一路支持,我们出席了于 6 月 28 日至 30 日举行的 Polkadot Decoded 大会。我们的创始人兼 CEO Nikolay Volf、首席生态负责人 Pavel Salas、生态技术负责人(中国)Frozen 分别在柏林[20]、布宜诺斯艾利斯[21]、杭州发表了演讲。我们还参加了在墨西哥城举行的 Polkadot Decoded 闭幕式 Party[22]!
我们要感谢所有参与 Gear 活动的朋友们! 我们将在下个月带来更多更新,请关注我们的微信公众号,获取最新资讯。
关于 GearFans
Gear 是波卡生态的计算组件,GearFans 是 Gear 爱好者社区。
参考资料
GitHub: https://github.com/gear-tech
[2]获得实际的错误描述: https://github.com/gear-tech/gear/pull/937
[3]使 gstd::prog::create_program 和 gstd::prog::create_program_with_gas 成为可以返回错误的函数: https://github.com/gear-tech/gear/pull/983
[4]引入了无 gas 版本的 create_program: https://medium.com/@gear_techs/gear-monthly-updates-june-2022-b7cf6a81ee1f
[5]现在都有无 gas 和有 gas 版本: https://github.com/gear-tech/gear/pull/1037
[6]salt 唯一性: https://github.com/gear-tech/gear/pull/973
[7]Get_gas_spent 被重命名为 calculate_gas_info 以呈现其新的逻辑: https://github.com/gear-tech/gear/pull/1051
[8]获得程序执行后消耗的 gas: https://github.com/gear-tech/gear/pull/1068
[9]增加了 meta state 测试工具: https://github.com/gear-tech/gear/pull/944
[10]存储事件和它们所包含数据的新设计: https://github.com/gear-tech/gear/pull/1000
[11]消息返回体中的错误回复将包含错误解释: https://github.com/gear-tech/gear/pull/1066
[12]2022 年 Polkadot 黑客马拉松活动: https://www.gear-tech.io/events/polkadot-hackathon-workshop
[13]Ankara: https://www.gear-tech.io/events/gear-first-workshop-in-ankara
[14]杭州: https://www.gear-tech.io/events/workshop-for-the-chinese-community-1
[15]UniqueOneVN: https://www.gear-tech.io/events/ama-gear-x-uniqueonevn
[16]AVG: https://www.gear-tech.io/events/ama-gear-x-avg
[17]CapitalB: https://www.gear-tech.io/events/ama-gear-x-capitalb
[18]Hotsama Rooftop at the LINE - Consensus Polkadot Meetup: https://www.gear-tech.io/events/hotsama-rooftop-at-the-line-consensus-polkadot-meetup
[19]Polkadot Hackathon Global Series Meetup: https://www.gear-tech.io/events/polkadot-hackaton-global-series
[20]柏林: https://www.youtube.com/watch?v=n36uzBPDRs4
[21]布宜诺斯艾利斯: https://www.youtube.com/watch?v=GuCxIUt5a80
[22]Polkadot Decoded 闭幕式 Party: https://www.gear-tech.io/events/polkadot-decoded-closing-party
边栏推荐
- 安全至上:落地DevSecOps最佳实践你不得不知道的工具
- What is an APS system?What should I pay attention to when importing APS?Worth watching again and again
- MySQL常用的日期时间函数
- Since September, China has granted zero-tariff treatment to 98% of tax items from 16 countries including Togo
- 阿波罗 planning代码-modules\planning\lattice\trajectory_generation\PiecewiseBrakingTrajectoryGenerator类详解
- Mysql——分组统计
- npm install 时,卡住不动,五种解决方法
- DeepMind 首席科学家 Oriol Vinyals 最新访谈:通用 AI 的未来是强交互式元学习
- Nacos配置中心工作原理(超简单)
- FP6606CLP5 SOP-8 USB Type-C和PD充电控制器
猜你喜欢
小程序毕设作品之微信体育馆预约小程序毕业设计成品(7)中期检查报告
[C Language Brush Questions] Three Questions for Getting Started with Pointers | String Length, String Copy, Two Number Swap
Google Earth Engine APP—— 一个不用写代码可以直接下载相应区域的1984-2021年的GIF遥感影像动态图
Inconsistency between oracle and mysql statement results
Flink SQL builds real-time data warehouse DWD layer
vulnhub W34kn3ss: 1
Five speakers: seventy genius_platform software platform development 】 【 turn YUY2 RGB24 implementation source code
Flink Learning 9: Configure the idea to develop the flink-Scala program environment
Navicat for mysql cracked versions installed
全面认识二极管,一篇文章就够了
随机推荐
JS数组删除其中一个元素
npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
How Tencent architects explained: The principle of Redis high-performance communication (essential version)
深圳地铁16号线二期进入盾构施工阶段,首台盾构机顺利始发
2022安全员-C证考试题库模拟考试平台操作
MySQL常用的日期时间函数
Pytest study notes
golang源码分析(6):sync.Mutex sync.RWMutex
故障分析 | 一条 SELECT 语句跑崩了 MySQL ,怎么回事?
erp系统和wms系统有什么区别
C语言中的一系列操作符
融云「 IM 进阶实战高手课」系列直播上线
年轻人接棒大妈,金价跌回“4字头”,七夕迎黄金消费小热潮
docker安装Oracle之后常用的一些命令
mui中使用多级选择器实现省市区联动
NoSQL之redis缓存雪崩、穿透、击穿概念解决办法
9月起中国给予多哥等16国98%税目产品零关税待遇
Several common cross-domain solutions
npm install 时,卡住不动,五种解决方法
2022高压电工特种作业证考试题库及答案