[−][src]Crate owasm_ethereum
Externs library to interact with Ethereum-like network
Structs
Error | Generic wasm error |
Functions
address | Get address of currently executing account |
balance | Get balance of the given account |
block_hash | Returns hash of the given block or H256::zero() |
block_number | Get the block's number |
call | Message-call into an account |
call_code | Like |
coinbase | Get the current block’s beneficiary address (the current miner account address) |
create | Create a new account with the given code |
difficulty | Get the block's difficulty. |
gas_limit | Get the block's gas limit. |
get_bytes | Retrieve data directly from the contract storage trie. |
input | Allocates and requests |
log | Creates log entry with given topics and data. |
origin | Get execution origination address |
read | Performs read from the storage. |
ret | Sets a |
sender | Get caller address |
set_bytes | Store data directly into the contract storage trie. |
static_call | Like |
suicide | Halt execution and register account for deletion |
timestamp | Get the block's timestamp |
value | Get deposited value by the instruction/transaction responsible for this execution. |
write | Performs write to the storage |