Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into alias_deploy
- Loading branch information
Showing
19 changed files
with
744 additions
and
341 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
## 1. Account Creation and Set Authority | ||
|
||
### `eosio.forum` | ||
|
||
``` | ||
owner: eosio | ||
active: eosio | ||
``` | ||
|
||
### `bet.bos` | ||
|
||
``` | ||
owner: eosio@active | ||
active: (7/25) bet | ||
``` | ||
|
||
### `escrow.bos` | ||
|
||
``` | ||
owner: eosio@active | ||
active: | ||
escrew.bos@eosio.code | ||
bet.bos@active | ||
eosio@active | ||
``` | ||
|
||
### `auditor.bos` | ||
|
||
``` | ||
owner: eosio@active | ||
active: | ||
auditor.bos@eosio.code | ||
bet.bos@active | ||
eosio@active | ||
auditors | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
## 2. Set Contract and Set Permission | ||
|
||
Create `escrow.bos`, set contract, and set permission | ||
|
||
Create `auditor.bos`, set contract, and set permission | ||
|
||
Create `eosio.forum`, set contract, and set permission | ||
|
||
|
||
|
||
### 2.1 Create 4 Accounts | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 system newaccount eosio bet.bos EOS7QA2LEZFjTEs43snHMmtVabCvtUDzLChbFdQ9TP717LwDyQJbF EOS5oNwXoHRXLCrzYLqkRK7wx1UvwZZnGJGcQz6bXPEYv1mRhBbMf --stake-cpu "10.0000 BOS" --stake-net "10.0000 BOS" --buy-ram "20.0000 BOS" -p eosio -s -j -d > newacct_betbos.json | ||
cleos -u https://bos.eoshenzhen.io:9443 system newaccount eosio escrow.bos EOS7oPEjU1nGKNoN7iCGmuj67P5Wd5vFCQicvpHNjE3Jhfr6Hz4hk EOS7h6ASi8oDqtgNa8wbgETMVvn4EkqA9bopLcjoDdVuoee4CKgRT --stake-cpu "10.0000 BOS" --stake-net "10.0000 BOS" --buy-ram "20.0000 BOS" -p eosio -s -j -d > newacct_escrowbos.json | ||
cleos -u https://bos.eoshenzhen.io:9443 system newaccount eosio auditor.bos EOS5UEAtJAwTqX3puiitoTPEbRiXxkMnG3xBJTK5x7i4ND62pRzGG EOS54wzoGXqcgUDsZxDvW4q39UBL4VNC37dD7NjE392rxaht9eBTB --stake-cpu "10.0000 BOS" --stake-net "10.0000 BOS" --buy-ram "20.0000 BOS" -p eosio -s -j -d > newacct_auditorbfos.json | ||
cleos -u https://bos.eoshenzhen.io:9443 system newaccount eosio eosio.forum EOS5Qqi6f4atV3sXWBxK6MsK53ELJ2cnbo3KZRnu54X3kgdJgR6u2 --stake-cpu "10.0000 BOS" --stake-net "10.0000 BOS" --buy-ram "20.0000 BOS" -p eosio -s -j -d > newacct_eosioforum.js | ||
``` | ||
|
||
|
||
|
||
### 2.2 multisig propose_trx | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig propose_trx createbetbos bppermission.json newacct_betbos.json pursonchen22 | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig propose_trx createescrow bppermission.json newacct_escrowbos.json pursonchen22 | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig propose_trx createaudito bppermission.json newacct_auditorbfos.json pursonchen22 | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig propose_trx | ||
createforum bppermission.json newacct_eosioforum.json pursonchen | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
### 2.3 BP APPROVE | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig approve createbetbos '{"actor":"BP_name","permission":"active"}' -p BP_name | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig approve createaudito '{"actor":"BP_name","permission":"active"}' -p BP_name | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig approve createforum '{"actor":"BP_name","permission":"active"}' -p BP_name | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig approve createescrow '{"actor":"BP_name","permission":"active"}' -p BP_na | ||
``` | ||
|
||
|
||
|
||
### 2.4 multisig exec proposal | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig exec pursonpurson createbetbos -p pursonpurson@active | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig exec pursonpurson createaudito -p pursonpurson@active | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig exec pursonpurson createescrow -p pursonpurson@active | ||
cleos -u https://bos.eoshenzhen.io:9443 multisig exec pursonpurson createforum -p pursonpurson@acti | ||
``` | ||
|
||
|
||
|
||
## 3. Deploy 3 Contracts | ||
|
||
### `eosio.forum`, `auditor.bos`, `escrow.bos` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set contract eosio.forum eosio.forum -p eosio.forum@active | ||
cleos -u https://bos.eoshenzhen.io:9443 set contract auditor.bos auditor.bos -p auditor.bos@active | ||
cleos -u https://bos.eoshenzhen.io:9443 set contract escrow.bos escrow.bos -p escrow.bos@activ | ||
``` | ||
|
||
## 4. Create Account `bet.bos` | ||
|
||
### 4.1 active 7/25 | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission bet.bos active '{"threshold":7,"keys":[],"waits":[],"accounts":[{"permission": {"actor":"kesaritooooo","permission":"active"},"weight": 1}, {"permission": {"actor":"chengsong111","permission":"active"},"weight": 1}, {"permission": {"actor":"tyeeeeeeeeee","permission":"active"},"weight": 1}, {"permission": {"actor":"iwangyunpeng","permission":"active"},"weight": 1}, {"permission": {"actor":"igor","permission":"active"},"weight": 1}, {"permission": {"actor":"mybabylilian","permission":"active"},"weight": 1}, {"permission": {"actor":"bosmasterdin","permission":"active"},"weight": 1}, {"permission": {"actor":"vitojingchen","permission":"active"},"weight": 1}, {"permission": {"actor":"sheldonhuang","permission":"active"},"weight": 1}, {"permission": {"actor":"catherine521","permission":"active"},"weight": 1}, {"permission": {"actor":"larosenonaka","permission":"active"},"weight": 1}, {"permission": {"actor":"winlinwinlin","permission":"active"},"weight": 1}, {"permission": {"actor":"mike","permission":"active"},"weight": 1}, {"permission": {"actor":"rohananswers","permission":"active"},"weight": 1}, {"permission": {"actor":"breaktherule","permission":"active"},"weight": 1}, {"permission": {"actor":"angelcats123","permission":"active"},"weight": 1}, {"permission": {"actor":"leonsunlucky","permission":"active"},"weight": 1}, {"permission": {"actor":"angeliazhang","permission":"active"},"weight": 1}, {"permission": {"actor":"ckqdbwzpmtqz","permission":"active"},"weight": 1}, {"permission": {"actor":"blokspartner","permission":"active"},"weight": 1}, {"permission": {"actor":"eric","permission":"active"},"weight": 1}, {"permission": {"actor":"puritychen22","permission":"active"},"weight": 1}, {"permission": {"actor":"victorleeosx","permission":"active"},"weight": 1}, {"permission": {"actor":"deadlock2bos","permission":"active"},"weight": 1}, {"permission": {"actor":"deniscarrier","permission":"active"},"weight": 1]}' -p bet.bos@owner | ||
``` | ||
|
||
### 4.2 set owner key to `eosio` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission bet.bos owner '{"threshold":1,"keys":"","accounts":[{"permission": {"actor":"eosio","permission":"active"},"weight":1}]}' -p bet.bos@owner | ||
``` | ||
|
||
|
||
|
||
## 5. Create Account `eosio.forum` | ||
|
||
### 5.1 set active and owner key to `eosio` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission eosio.forum active '{"threshold":1 ,"keys":[],"waits":[],"accounts":[{"weight": 1, "permission": {"actor": "eosio", "permission": active}}]}' -p eosio.forum@owner | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission eosio.forum owner '{"threshold":1 ,"keys":[],"waits":[],"accounts":[{"weight": 1, "permission": {"actor": "eosio", "permission": active}}]}' -p eosio.forum@owner | ||
``` | ||
|
||
|
||
|
||
|
||
|
||
## 6. auditor.bos | ||
|
||
### 6.1 set active key to `eosio`, `bet.bos` and `auditors` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission auditor.bos active '{"threshold":1 ,"keys":[],"waits":[],"accounts":[{"weight": 1, "permission": {"actor": "eosio", "permission": active},{"permission": {"actor": "bet.bos", "permission": "active"}, "weight": 1},{"permission": {"actor": "auditor.bos", "permission": "active"}, "weight": 1}]}' -p auditor.bos@active | ||
``` | ||
|
||
|
||
|
||
### 6.2 set owner key to `eosio` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission auditor.bos owner '{"threshold":1 ,"keys":[],"waits":[],"accounts":{"weight": 1, "permission": {"actor": "eosio", "permission": active}}}' -p auditor.bos@owner | ||
``` | ||
|
||
|
||
|
||
## 7. escrow.bos | ||
|
||
### 7.1 set active key to `eosio`, `bet.bos` and `auditors` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission auditor.bos active '{"threshold":1 ,"keys":[],"waits":[],"accounts":{"weight": 1, "permission": {"actor": "eosio", "permission": active}},{"permission": {"actor": "bet.bos", "permission": "active"}, "weight": 1},{"permission": {"actor": "escrow.bos", "permission": "active"}, "weight": 1},}' -p auditor.bos@active | ||
``` | ||
|
||
|
||
### 7.2 set owner key to `eosio` | ||
|
||
``` | ||
cleos -u https://bos.eoshenzhen.io:9443 set account permission auditor.bos owner '{"threshold":1 ,"keys":[],"waits":[],"accounts":{"weight": 1, "permission": {"actor": "eosio", "permission": active}}}' -p auditor.bos@owner | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,21 @@ | ||
# BOS生态系统计划(公民投票和WPS) | ||
[提案结构范例](https://github.com/boscore/referendum/blob/master/Proposal%20Structure%20Example_cn.md) | ||
- [提案结构范例](https://github.com/boscore/referendum/blob/master/Proposal%20Structure%20Example_cn.md) | ||
- [Deployment Procedure](https://github.com/boscore/referendum/blob/master/Deployment_Procedure.md) | ||
- [Execution Procedure](https://github.com/boscore/referendum/blob/master/Execution_Procedure.md) | ||
|
||
## 1. 背景 | ||
## 1. 背景 | ||
|
||
BOS创始团队将会设立1亿BOS的生态基金用于BOS开发激励提案。1亿BOS将会存入指定账户,按照社区公投方式来使用该笔资金。 | ||
BOS的基础设施搭建者、协议标准制定者、代码优化者、生态建设者、和其他EOSIO生态的贡献者都可以申请BOS生态基金。 | ||
*此方案中出现的投票非特殊说明均是指 eosio.token 合约下symbol为BOS的Token.* | ||
## 2. BOS项目团队(BET, BOSCore Executive Team) | ||
由EOSIO社区多个资深成员成立,每个成员都是区块链行业的早期创业者,涉及了钱包、矿池、交易所等诸多业态。基金成员经历过从价值承载的比特币,运行智能合约的以太坊,再到企业级应用的EOS,每个成员都致力于区块链技术落地,提高人类生产力以及自由的事业。 | ||
## 2. BOS项目团队(BET, BOSCore Executive Team) | ||
https://www.boscore.io/team.html | ||
|
||
## 3. 提案目标 | ||
* 吸引有优秀开发者或者团队 | ||
* 让更多的社区力量参与进来 | ||
* 加速EOSIO技术的不断进化 | ||
* 繁荣EOSIO生态 | ||
## 4. 主要任务 | ||
生态基金主要在为以下工作提供资源: | ||
* 核心代码的研发工作 | ||
* EOSIO生态类应用工具 | ||
* EOSIO的社区发展与激励 | ||
|
||
本提案用于建立BOS下一步的社区化合作的形式。这些资金会用于推进BOS以及其他EOSIO基础项目发展所需要的支持和激励方面。 | ||
## 5、提案与公审要点 | ||
BOS社区参与者均可以提出议案,参与者需要抵押100 BOS向公投合约提出提案。 | ||
提案需要包括: | ||
* 提案的名称 | ||
* 提案功能内容描述 | ||
* 提案的最晚完成提交时间(公投通过以后起算) | ||
* 提案所需金额及收款账户(收款账户后续可改) | ||
|
||
提案通过的条件: | ||
1. 参与投票数量不少于提案发起时参与BP投票数量的 40% | ||
2. 支持票/反对票的比率大于 1.5 | ||
3. 以上条件持续 20 天成立 | ||
|
||
BOS评审员 | ||
* 抵押10万BOS | ||
* 对各大公链共识机制有了解 | ||
* 公开自己的BOS账户以及其他有效联系方式,建立自己的主页或社交账户地址(非隐私信息) | ||
* 如有作弊发生,资格立即被BP多签取消,并将抵押转入到基金账户,锁仓一年后归还 | ||
* 每季度末统计一次投票,前5名当选,最多20名评审员 | ||
* 评审员任期一年,期满需再次发起投票 | ||
|
||
成为评审员的条件: | ||
1. 参与投票数量不少于提案发起时参与BP投票数量的 3% | ||
2. 支持票/反对票的比率大于 1.5 | ||
3. 以上条件持续 20 天成立 | ||
## 6、提案流程要点: | ||
1. 社区以公投方式选出合适的提案来进行基金支持 | ||
2. 单笔提案激励额度不得大于100万BOS;正常情况下提案到期后,激励金由收款账户申领 | ||
3. 最晚交付日前10天,若 BET 认为该任务未被有效执行,则有权暂时冻结资金支付,并将该支付的议案提交至节点表决。BET 检查点: | ||
1. Testcase覆盖程度 | ||
2. 编码质量是否达标 | ||
3. 提案功能实现程度 | ||
4. 安全漏洞相关 | ||
4. 若资金支付被冻结,BOS独立评审员需要在7天内发表审查意见,并在合约中做出独立判断,并发布判断的相关调查报告的链接。 | ||
5. 评审员发布意见以后2周内,BP可以参考评审员的决定,若超过2/3加1的出块节点同意继续支付提案激励,则继续支付90%的提案激励,反之则否决支付。 | ||
6. 提案激励的40% 平分给和多数节点做出一致结论的评审员 和 参与表决的BP。如果最后BP没有通过,则全部激励转回基金账户。 | ||
|
||
![图片](https://github.com/boscore/referendum/blob/master/flow_cn.png) | ||
|
||
## 4. 详情 | ||
[Referendum_WPS/BOS生态基金方案.md](https://github.com/boscore/Documentation/blob/master/Referendum_WPS/BOS生态基金方案(含公投%26WPS).md) |
Oops, something went wrong.