提案8:升级 stdlib 到v9 版本 #3005
nanne007
started this conversation in
DaoProposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
本提案提议将合约标准库升级到 v9。
标准库 V9 包含了如下特性:
Account::remove_signer_capability
方法对外开放,开发者可以使用 SignerCapability 将账户的使用权委托给合约。 (rework on signer capability #2926)change_vote
脚本。cast_vote
脚本自动翻转之前的投票。([stdlib]DAO improvements #2925, improve on dao #2947)NFTTypeInfo
元数据。([stdlib] Support update NFTTypeInfo metadata. #2952, [stdlib] Support update NFTTypeInfoV2 metadata #2887)升级提案信息
升级流程
关于 Starcoin 治理的更多信息请参看:
注意:投票时,会将当前账户的 STC 抵押到合约中,直到投票结束,当前投票周期为 7 天。期间主动退款则视为放弃投票。** 为了鼓励参与链上治理,未来会推出链上治理的激励措施。本次参与投票的用户会根据激励策略进行补偿。**
投票操作指南
准备
操作命令
第一个参数是提案发起人的地址,第二个参数是提案 id,返回的状态为 1 表示等待状态, 2 表示正在投票中,4 表示投票通过。
通过一下命令进行投票:
第一个参数是提案发起人的地址,第二个参数是提案 id,第三个参数通过 true/false 表示同意和反对,第四个参数表示用来投票的 STC 数量,注意单位是 nanoSTC,有9位是小数点后的单位,上面的例子是 1 STC。
注意:替换 your_address 为你自己的地址,不要用全部的 STC,要留够 gas 费。
如果想放弃投票,取回抵押的 STC,可以用以下命令:
返回值的第一个数表示提案 id,第二个数是开始时间,第三个数是结束时间,第四个数是投票同意的票数,第五个数是投票反对的票数。
English Guide
The proposal proposes to upgrade starcoin stdlib to v9 which includes the following updates:
Account::remove_signer_capability
now is available to every user. (rework on signer capability #2926)Upgrade proposal information
Coin holders are invited to vote on the chain. When voting, the STC of the current account will be stake to the contract until the end of the voting period, which is currently 7 days. ** To encourage participation in on-chain governance, incentives for on-chain governance will be introduced in the future. Users who participate in voting this time will be compensated according to the incentive strategy. **
Voting Operation Guide
Preparation
Operation commands
The first argument is the address of the proposer, the second argument is the proposal id, and the returned status is 1 for pending status, 2 for voting, and 4 for voting passed.
Voting is performed by the following command.
The first argument is the proposer, the second argument is the proposal id, the third argument indicates agreement and disagreement via true/false, and the fourth argument indicates the number of STCs used to vote, note that the unit is nanoSTC with 9 decimal places, the above example is 1 STC.
Note: Replace your_address with your own address, do not use all the STCs, but leave enough for the gas fee.
If you want to abort the poll and get back the STCs, you can use the following command.
The first number of the return value represents the proposal id, the second number is the start time, the third number is the end time, the fourth number is the number of votes for and the fifth number is the number of votes against.
Beta Was this translation helpful? Give feedback.
All reactions