Hot Pocket C++ contract that can execute compiled solidity contracts using evmone library.
git clone https://github.com/ethereum/evmc.git
cd evmc
cmake .
sudo make install
- Download evmone release package and extract the contents to
/usr
. - Run
ldconfig
cmake .
make
Contents in the 'build' directory must be copied to initial contract state.
For implicity, this contract uses a character-based i/o message format. Clients can use the following messages to deploy and call compiled Solidity contracts.
- Deploy:
d<hex addr><hex bytecode>
- Deploys the bytecode at given address (account is created with the max balance). - Call:
c<hex addr><hex input>
- Calls the contract located at given address using given input.
- Deploy result:
d<deployed hex address>
- Call result:
c<output hex>
- Error:
e<reason>