From 3602771a0b7308ec8c692a82a600a0c2f2ea04c2 Mon Sep 17 00:00:00 2001 From: Greg Lee Date: Sat, 25 Apr 2020 08:02:51 -0400 Subject: [PATCH 1/2] Correct link to EOSIO IBC Principle and Design doc --- docs/User_Guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/User_Guide.md b/docs/User_Guide.md index 7e32d51..463a4af 100644 --- a/docs/User_Guide.md +++ b/docs/User_Guide.md @@ -69,7 +69,7 @@ It takes so long time to wait when transfer form EOS mainnet to BOS mainet, because the consensus of EOS mainnet is pipeline-pbft, and it need long time to let a block inter LIB, but only 10 seconds to wait when transfer form BOS mainnet to EOS miannet, because BOS use a very fast finality consensus algorithem, that's batch-pbft. -for more IBC theory please refer to [EOSIO IBC Priciple and Design](../../Documentation/IBC/EOSIO_IBC_Priciple_and_Design.md). +for more IBC theory please refer to [EOSIO IBC Priciple and Design](https://github.com/boscore/Documentation/blob/master/IBC/EOSIO_IBC_Priciple_and_Design.md). So users can transfer assets across the chains by using any existing mobile app eosio wallets, the existing wallets only need to support the ibc.token contract, because the transfer action interface definition of ibc.token From 71fe81a961379690f0fed833ef7e92ad0dfda0e7 Mon Sep 17 00:00:00 2001 From: thaipandada Date: Sun, 21 Jun 2020 15:54:16 +0800 Subject: [PATCH 2/2] add ibc account resign for cmdline demo --- docs/BOSIBC_Cmdline_Demo.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/BOSIBC_Cmdline_Demo.md b/docs/BOSIBC_Cmdline_Demo.md index 0d869f2..2e63469 100644 --- a/docs/BOSIBC_Cmdline_Demo.md +++ b/docs/BOSIBC_Cmdline_Demo.md @@ -69,7 +69,7 @@ yascleos push action ${contract_token} setglobal '['${p_chain}',true]' -p ${cont params='["bos","'${bos_organization}'","bosibc.io","'${contract_chain}'","'${ibc_free_act}'",5,1000,1000,true]' yascleos push action ${contract_token} regpeerchain "${params}" -p ${contract_token} -# set administrator after the permission resign +# set administrator before the permission resign yascleos push action ${contract_token} setadmin '['${yas_admin_act}']' -p ${contract_token} yascleos push action ${contract_chain} setadmin '['${yas_admin_act}']' -p ${contract_chain} ``` @@ -208,3 +208,17 @@ cleos push action ${peerchain_contract} transfer '[ "YOU_EOS_ACT", "bosibc.io"," # transfer TPT from EOS to TELOS cleos push action ${peerchain_contract} transfer '[ "YOU_EOS_ACT", "bosibc.io","10.0000 TPT", "hub.io@bos >> YOUR_ACT_BOS@bos Hello TELOS" ]' -p YOU_EOS_ACT@active ``` + +## Resign the IBC account permission into eosio.prods +## 将 IBC 账户的权限指定给 eosio.prods +``` +# for contract_token +yascleos set account permission ${contract_token} active '{"threshold": 1, "keys":[], "accounts":[ {"permission":{"actor":"'${contract_token}'","permission":"eosio.code"},"weight":1},{"permission":{"actor":"eosio.prods","permission":"active"},"weight":1}], "waits":[] }' owner -p ${contract_token} + +yascleos set account permission ${contract_token} owner '{"threshold": 1, "keys":[], "accounts":[{"permission":{"actor":"eosio.prods","permission":"active"},"weight":1}], "waits":[] }' -p ${contract_token}@owner + +# for contract_chain +yascleos set account permission ${contract_chain} active '{"threshold": 1, "keys":[], "accounts":[{"permission":{"actor":"eosio.prods","permission":"active"},"weight":1}], "waits":[] }' owner -p ${contract_chain} + +yascleos set account permission ${contract_chain} owner '{"threshold": 1, "keys":[], "accounts":[{"permission":{"actor":"eosio.prods","permission":"active"},"weight":1}], "waits":[] }' -p ${contract_chain}@owner +``` \ No newline at end of file