Starcoin Move 合约标准库升级投票指南|Starcoin Move stdlib upgrade Guide #2578
jolestar
started this conversation in
DaoProposal
Replies: 2 comments 2 replies
-
在客户端,发送stc的时候,有下面两个地方需要receiver的authKey
你这次的修改可不可以这样理解: 上面两种情况的args数组的第二个参数receiverAuthKey,
反正从现在开始, 客户端不用先去检查receiver是否在链上存在了。 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starcoin Move 合约标准库版升级投票指南
本次 Move 合约标准库(stdlib)升级是 Starcoin 主网上线以来第一次升级,主要包含以下特性:
升级提案信息
升级流程
关于 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 v5 upgrade is open. This upgrade is the first stdlib upgrade since the Starcoin mainnet lanuched and includes the following features.
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