Expand description
Safe wrappers around interpreter intrinsics.
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
call
, but with code at the givenaddress
- coinbase
- Get the current block’s beneficiary address (the current miner account address)
- create
- Create a new account with the given code
- create2
- Create a new account with the given code and salt.
- difficulty
- Get the block’s difficulty.
- gas_
left - Get amount of gas left.
- gas_
limit - Get the block’s gas limit.
- input
- Allocates and requests
call
arguments (input) - log
- Creates log entry with given topics and data.
- origin
- Get execution origination address
- read
- Performs read from the storage.
- ret
- Sets a
call
return value - sender
- Get caller address
- static_
call - Like
call
, but this call and any of it’s subcalls are disallowed to modify any storage. - 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