Patroneos smart contract
$ git clone [email protected]:EOSEssentials/Aegis.git
$ cd Aegis
$ eosiocpp -o aegis.wast aegis.cpp
$ eosiocpp -g aegis.abi aegis.cpp
Replace
$ cleos set contract ${your_aegis_account} ../aegis
$ cleos set account permission ${your_aegis_account} active '{"threshold": 1,"keys": [{"key": "${your_aegis_key}","weight": 1}],"accounts": [{"permission":{"actor":"${your_aegis_account}","permission":"eosio.code"},"weight":1}]}' owner
$ cleos push action aegis setreceiver '["${your_receiver_account}"]' -p ${your_aegis_account}
cleos get table aegis aegis patrons
cleos get table aegis aegis history
cleos push action eosio.token transfer '[ "${your_sender_account}", "{your_aegis_account}", "2.0000 EOS", "m" ]' -p ${your_sender_account}
cleos push action ${your_aegis_account} refund '["${your_sender_account}"]' -p eosio
cleos push action ${your_aegis_account} claim '' -p ${your_receiver_account}