...
第二部分:在DAO里如何install插件,以及如何使用插件
...
1. 如何安装插件
插件的安装方式有两种:
当 DAO 被创建安装 (静态安装)
当 DAO 已经创建好后通过 “安装插件的插件”提案 安装(动态安装)
...
action_delay:u64
多久后可以执行提案
2. 使用插件
2.1 Grant 使用
Grant 授予:
合约接口:
代码块 |
---|
public (script) fun create_grant_proposal<DAOT: store, TokenT:store>(sender: signer, description: vector<u8>,grantee: address, total: u128, start_time:u64, period: u64, action_delay:u64) |
...
Grant 销毁:
合约接口:
代码块 |
---|
public (script) fun create_grant_revoke_proposal<DAOT: store, TokenT:store>(sender: signer, description: vector<u8>, grantee:address, action_delay:u64) |
Grant 修改:
合约接口:
代码块 |
---|
public (script) fun create_grant_config_proposal<DAOT: store, TokenT:store>(sender: signer, description: vector<u8>, old_grantee: address, new_grantee: address, total: u128, period: u64,start_time:u64, action_delay:u64) |