Compile and Deploy

Compile

See the unit testing section for details on adding unit tests.
1
zeus compile
2
# test without compiling
3
zeus test
4
# compile and test with
5
zeus test -c
Copied!

Deploy Contract

1
export DSP_ENDPOINT=https://kylin-dsp-2.liquidapps.io
2
export KYLIN_TEST_ACCOUNT=<ACCOUNT_NAME>
3
export KYLIN_TEST_PUBLIC_KEY=<ACTIVE_PUBLIC_KEY>
4
# Buy RAM:
5
cleos -u $DSP_ENDPOINT system buyram $KYLIN_TEST_ACCOUNT $KYLIN_TEST_ACCOUNT "200.0000 EOS" -p $KYLIN_TEST_ACCOUNT@active
6
# Set contract code and abi
7
cleos -u $DSP_ENDPOINT set contract $KYLIN_TEST_ACCOUNT storageconsumer -p $KYLIN_TEST_ACCOUNT@active
8
​
9
# Set contract permissions, add eosio.code
10
cleos -u $DSP_ENDPOINT set account permission $KYLIN_TEST_ACCOUNT active "{\"threshold\":1,\"keys\":[{\"weight\":1,\"key\":\"$KYLIN_TEST_PUBLIC_KEY\"}],\"accounts\":[{\"permission\":{\"actor\":\"$KYLIN_TEST_ACCOUNT\",\"permission\":\"eosio.code\"},\"weight\":1}]}" owner -p $KYLIN_TEST_ACCOUNT@active
Copied!
Copy link