Aborts the current contract execution without a custom message.
To include a message, use
crate::panic
.
Returns Balance
of the given Address
Returns the hash of the current block
Returns the number of the current block
Returns the timestamp of the current block
Calls another contract
Returns the address of the account or the contract that called the current contract.
Returns the address of the contract code that is used for the given contract instance
Returns the address of the account that owns the given contract code
Returns the address of the current contract’s instance.
Returns Balance
of the current contract’s instance.
Returns the address of the account that owns the current contract.
Returns the address of the account that owns the given contract instance
Returns the deposit
Emits the event. This event
is stored on chain.
Returns the amount of available Gas
Returns the total amount of Gas
that is allowed the contract to burn out
The input to the contract call serialized as bytes. If input is not provided returns None
.
Writes data
to ‘output’ register
Terminates the execution of the program with the message.
Setups panic hook to expose error info to the blockchain.
Reads the value stored under the given key.
Removes the value stored under the given key.
Writes key-value into storage.
Returns true
if the contract has write permissions and false
if it doesn’t.