Crate ewasm_api

source ·

Structs

An array of 160 bits.
An array of 256 bits.
A little-endian unsigned 128-bit integer.
A little-endian unsigned 256-bit integer.

Enums

Enum describing the result of a call. Used by call, callCode, callDelegate, and callStatic.
Enum describing the result of create. On success, the data contained is the address of the newly created contract.
Enum representing an error code for EEI calls. Currently used by codeCopy, callDataCopy, externalCodeCopy, and returnDataCopy.

Functions

Returns the beneficiary address for the block this transaction is in (current block)
Returns the difficulty of the most recent block.
Returns the gas limit of the most recent block.
Returns the hash of the numberth most recent block.
Returns the number of the most recent block.
Returns the timestamp of the most recent block.
Executes another account’s code in the context of the caller.
Executes a call similar to call_code, but retaining the currently executing call’s sender and value.
Executes a standard call to the specified address with the given gas limit, ether value, and data.
Executes a static call which cannot mutate the state.
Returns a vector containing all data passed with the currently executing call.
Returns the segment of call data beginning at from, and continuing for length bytes.
Returns the length of the call data supplied with the currently executing call.
Returns the sender of the currently executing call.
Returns the value sent with the currently executing call.
Returns the currently executing code.
Copies the segment of running code beginning at from and continuing for length bytes.
Returns the size of the currently executing code.
Subtracts the given amount from the VM’s gas counter. This is usually injected by the metering contract at deployment time, and hence is unneeded in most cases.
Creates a contract with the the given code, sending the specified ether value to its address.
Returns the executing address.
Returns the balance of the address given.
Returns the code at the specified address.
Returns the segment of code at address beginning at from and continuing for length bytes.
Returns the size of the code at the specified address.
Ends execution, signalling success.
Fills the return buffer with the given data and halts execution, signalling success.
Returns the gas left in the current call.
Appends log data without a topic.
Appends log data with one topic.
Appends log data with two topics.
Appends log data with three topics.
Appends log data with four topics.
Returns the data in the VM’s return buffer.
Returns the segment of return buffer data beginning at from and continuing for length bytes.
Returns the length of the data in the VM’s return buffer.
Halts execution and reverts all changes to the state.
Fills the return buffer with the given data and halts execution, reverting all state changes.
Self-destructs the running contract, sending all its ether to a specified beneficiary address.
Accesses the storage data at the specified key.
Sets the storage data at the specified key.
Returns the gas price of the currently executing call.
Returns the address of the original transaction sender.
Executes callDataCopy, but does not check for overflow.
Executes codeCopy, but does not check for overflow.
Executes externalCodeCopy, but does not check for overflow.
Executes returnDataCopy, but does not check for overflow.