提案4:Starcoin Move 合约标准库升级到 V6 版本 #2806
nanne007
started this conversation in
DaoProposal
Replies: 1 comment
-
PS: This is the same vote as id 3 last week. Because of the end time web page display bug, some voters missed the vote 3 deadline, so the proposer reopened the proposal again. PS:投票4 和id 3的投票是一样的。 因为结束时间的网页显示错误,有些投票者错过了投票3的最后期限,所以提议者又重新开始了提案。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
提案4:将 Starcoin Move 合约标准库升级到 V6 版本
本提案提议将 Move 合约标准库(stdlib)升级到 V6 版本,主要包含以下特性:
Account::deposit
支持存入 zero 。 (stdlib: resolve some issues #2745)Account
支持自动收款功能,收款人不需要事先accept_token
。 (stdlib: auto accept token #2746)Math.mul_div
的 bug。 ([stdlib] Math.mul_div bugfix #2775)##升级提案信息
升级流程
关于 Starcoin 治理的更多信息请参看:
当前,投票治理的 DApp 尚在开发中,需要通过 CLI 命令进行投票。
注意:投票时,会将当前账户的 STC 抵押到合约中,直到投票结束,当前投票周期为 7 天。期间主动退款则视为放弃投票。** 为了鼓励参与链上治理,未来会推出链上治理的激励措施。本次参与投票的用户会根据激励策略进行补偿。**
投票操作指南
准备
操作命令
第一个参数是提案发起人的地址,第二个参数是提案 id,返回的状态为 1 表示等待状态, 2 表示正在投票中,4 表示投票通过。
通过一下命令进行投票:
第一个参数是提案发起人的地址,第二个参数是提案 id,第三个参数通过 true/false 表示同意和反对,第四个参数表示用来投票的 STC 数量,注意单位是 nanoSTC,有9位是小数点后的单位,上面的例子是 1 STC。
注意:替换 your_address 为你自己的地址,不要用全部的 STC,要留够 gas 费。
如果想放弃投票,取回抵押的 STC,可以用以下命令:
返回值的第一个数表示提案 id,第二个数是开始时间,第三个数是结束时间,第四个数是投票同意的票数,第五个数是投票反对的票数。
English Guide
Voting for the Starcoin Move stdlib v6 upgrade is open. This upgrade is the second stdlib upgrade since the Starcoin mainnet lanuched and includes the following features.
SignerCapability
abstraction. (stdlib: signer capability #2673)Account::deposit
support deposit zero token. (stdlib: resolve some issues #2745)Account
supports auto-accept-token feature. (stdlib: auto accept token #2746)Math.mul_div
. ([stdlib] Math.mul_div bugfix #2775)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