An EOSIO project artifact of Smartcontract 101 course's project.
- TODO
The source code for the sample smartcontract is at contract/talk.cpp
within the IDE. To compile the contract, run this in a terminal:
eosio-cpp contract/<contract's name>.cpp
This will produce <contract's name>.abi
and <contract's name>.wasm
.
Run this in a terminal:
cleos create account eosio <contract's name> EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
cleos set code <contract account's name> <contract's name>.wasm
cleos set abi <contract account's name> <contract's name>.abi
Run this in a terminal:
cleos create account eosio bob EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
cleos create account eosio jane EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV
cleos push action <contract 's name> <contract action's name> '[param1, param2, param3, "param4"]' -p bob
cleos push action <contract 's name> <contract action's name> '[param1, param2, param3, "param4"]' -p jane
cleos push action <contract 's name> <contract action's name> '[param1, param2, param3, "param4"]' -p bob
Run this in a terminal:
cleos get table <contract's name> '' <table's name>