Test Setup
Test your DSP with vRAM
Create Kylin Account
Install Zeus:
npm i -g @liquidapps/zeus-cmdUnbox coldtoken contract:
mkdir coldtoken; cd coldtoken
zeus box create
zeus unbox coldtokenCompile and deploy contract for testing:
# your DSP's API endpoint
export DSP_ENDPOINT=
# a new account to deploy your contract to
export ACCOUNT=
# your new account's active public key
export ACTIVE_PUBLIC_KEY=
# compile coldtoken contract
zeus compile
cd contracts/eos
# set eosio.code permission
cleos -u $DSP_ENDPOINT set account permission $ACCOUNT active "{\"threshold\":1,\"keys\":[{\"weight\":1,\"key\":\"$ACTIVE_PUBLIC_KEY\"}],\"accounts\":[{\"permission\":{\"actor\":\"$ACCOUNT\",\"permission\":\"eosio.code\"},\"weight\":1}]}" owner -p $ACCOUNT@active
# set contract
cleos -u $DSP_ENDPOINT set contract $ACCOUNT ./coldtokenSelect and stake to DSP:
Run test commands:
Test vRAM get table row:
Transfer:
vRAM related actions to look for in a block explorer:
Last updated
Was this helpful?