Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Add new actions

./clio -u http://localhost:8889 push action eosio addaction '{"action":"listdomain","contract":"fio.escrow","actor":"eosio"}' --permission eosio

./clio -u http://localhost:8889 push action eosio addaction '{"action":"cxlistdomain","contract":"fio.escrow","actor":"eosio"}' --permission eosio

./clio -u http://localhost:8889 push action eosio addaction '{"action":"buydomain","contract":"fio.escrow","actor":"eosio"}' --permission eosio

./clio -u http://localhost:8889 push action eosio addaction '{"action":"setmrkplcfg","contract":"fio.escrow","actor":"eosio"}' --permission eosio

./clio -u http://localhost:8889 push action eosio addaction '{"action":"cxburned","contract":"fio.escrow","actor":"eosio"}' --permission eosio

./clio -u http://localhost:8889 push action eosio addaction '{"action":"xferescrow","contract":"fio.address","actor":"eosio"}' --permission eosio

Create the new fees


./clio -u http://localhost:8898 push action -f fio.fee createfee '{"end_point":"list_domain","type":"1","suf_amount":"3000000000"}' --permission fio.fee@active

./clio -u http://localhost:8898 push action -f fio.fee createfee '{"end_point":"cancel_list_domain","type":"1","suf_amount":"3000000000"}' --permission fio.fee@active

./clio -u http://localhost:8898 push action -f fio.fee createfee '{"end_point":"buy_domain","type":"1","suf_amount":"3000000000"}' --permission fio.fee@active

./clio -u http://localhost:8898 push action -f fio.fee createfee '{"end_point":"set_marketplace_config","type":"1","suf_amount":"3000000000"}' --permission fio.fee@active

Deploy system contract

./clio -u http://localhost:8889 set contract -j eosio /home/ubuntu/fio.contracts/build/contracts/fio.system fio.system.wasm fio.system.abi --permission eosio@active

Create account and set permissions

Create the new account

./clio -u http://localhost:8898 create account eosio fio.escrow FIO7isxEua78KPVbGzKemH4nj2bWE52gqj8Hkac3tc7jKNvpfWzYS FIO7isxEua78KPVbGzKemH4nj2bWE52gqj8Hkac3tc7jKNvpfWzYS -p eosio@active

Set the account permissions

./clio -u http://localhost:8898 set account permission fio.escrow active '{"threshold": 1,"keys": [{"key": "FIO7isxEua78KPVbGzKemH4nj2bWE52gqj8Hkac3tc7jKNvpfWzYS","weight": 1}],"accounts": [{"permission":{"actor":"fio.escrow","permission":"eosio.code"},"weight":1}]}}' 4000000000 owner -p fio.escrow@owner

Set the account to be privileged.

./clio -u http://localhost:8898 push action eosio setpriv '["fio.escrow",1]' -p eosio@active

Set no limits and deploy contract

Remove RAM limits on the new account, this may be called by eosio, and fio.system only!

./clio -u http://localhost:8889 push action eosio setnolimits '{"account":"fio.escrow"}' --permission eosio@active

Set the contract on the new account

./clio -u http://localhost:8889 set contract -j fio.escrow /home/ubuntu/fio.contracts/build/contracts/fio.escrow fio.escrow.wasm fio.escrow.abi --permission fio.escrow@active

Set all other contracts

Need to confirm no changes to: eosio.msig, eosio.wrap, fio.fee, fio.tpid, fio.staking

#fio.address

./clio -u http://localhost:8889 set contract -j fio.address /home/ubuntu/fio.contracts/build/contracts/fio.address fio.address.wasm fio.address.abi --permission fio.address@active

#fio.request.obt

./clio -u http://localhost:8889 set contract -j fio.reqobt /home/ubuntu/fio.contracts/build/contracts/fio.request.obt fio.request.obt.wasm fio.request.obt.abi --permission fio.reqobt@active

#fio.token

./clio -u http://localhost:8889 set contract -j fio.token /home/ubuntu/fio.contracts/build/contracts/fio.token fio.token.wasm fio.token.abi --permission fio.token@active

#fio.treasury

./clio -u http://localhost:8889 set contract -j fio.tpid /home/ubuntu/fio.contracts/build/contracts/fio.treasury fio.treasury.wasm fio.treasury.abi --permission fio.tpid@active

  • No labels