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

« Previous Version 8 Next »

Add new actions

./clio.sh push action eosio addaction '{"action":"listdomain","contract":"fio.escrow","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"cxlistdomain","contract":"fio.escrow","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"buydomain","contract":"fio.escrow","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"setmrkplcfg","contract":"fio.escrow","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"cxburned","contract":"fio.escrow","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"xferescrow","contract":"fio.address","actor":"eosio"}' -p eosio

./clio.sh push action eosio addaction '{"action":"retire","contract":"fio.token","actor":"eosio"}' -p eosio

Create the new fees


./clio.sh push action fio.fee createfee '{"end_point":"list_domain","type":"0","suf_amount":"321768535"}' -p fio.fee

./clio.sh push action fio.fee createfee '{"end_point":"cancel_list_domain","type":"0","suf_amount":"162975491"}' -p fio.fee

./clio.sh push action fio.fee createfee '{"end_point":"buy_domain","type":"0","suf_amount":"162975491"}' -p fio.fee

./clio.sh push action fio.fee createfee '{"end_point":"set_marketplace_config","type":"0","suf_amount":"162975491"}' -p fio.fee

./clio.sh push action fio.fee createfee '{"end_point":"remove_nft","type":"1","suf_amount":"147180000"}' -p fio.fee

./clio.sh push action fio.fee createfee '{"end_point":"remove_all_nfts","type":"1","suf_amount":"289124578"}' -p fio.fee

Create account and set permissions and limits

Create the new account

./clio.sh create account eosio fio.escrow FIO7isxEua78KPVbGzKemH4nj2bWE52gqj8Hkac3tc7jKNvpfWzYS FIO7isxEua78KPVbGzKemH4nj2bWE52gqj8Hkac3tc7jKNvpfWzYS -p eosio@active

Set the account permissions

./clio.sh 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.sh eosio setpriv '["fio.escrow",1]' -p eosio@active

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

./clio.sh push action eosio setnolimits '{"account":"fio.escrow"}' --permission eosio@active

Deploy system contract

./clio.sh set contract eosio /opt/FIO/bin/Contracts/last/fio.system/ -p eosio

Set the contract on the new account

./clio.sh set contract fio.escrow /opt/FIO/bin/Contracts/last/fio.escrow/ -p fio.escrow

Set all other contracts

./clio.sh set contract fio.address /opt/FIO/bin/Contracts/last/fio.address/ -p fio.address
./clio.sh set contract fio.reqobt /opt/FIO/bin/Contracts/last/fio.request.obt/ -p fio.reqobt
./clio.sh set contract fio.token /opt/FIO/bin/Contracts/last/fio.token/ -p fio.token
./clio.sh set contract fio.treasury /opt/FIO/bin/Contracts/last/fio.treasury/ -p fio.treasury
./clio.sh set contract fio.staking /opt/FIO/bin/Contracts/last/fio.staking/ -p fio.staking

  • No labels