Module call

Source
Expand description

Utilities to call or instantiate contracts on the chain.

Modules§

state
Type states that tell what state of a instantiation argument has not yet been set properly for a valid construction.
utils
Utility types for the cross-contract calling API.

Structs§

Call
The default call type for cross-contract calls, for calling into the latest call host function. This adds the additional weight limit parameter proof_size_limit as well as storage_deposit_limit.
CallBuilder
Builds up a cross contract call.
CallParams
The final parameters to the cross-contract call.
CreateBuilder
Builds up contract instantiations.
CreateParams
Builds up contract instantiations.
DelegateCall
The delegatecall call type. Performs a call with the given code hash.
Execution
The input data and the expected return type of a contract execution.
ExecutionInput
The input data for a smart contract execution.
LimitParamsV2
Defines the limit params for the new ext::instantiate host function. todo: rename
Selector
The function selector.

Traits§

ConstructorReturnType
Represents any type that can be returned from an ink! constructor. The following contract implements the four different return type signatures implementing this trait:
Executor
Implemented in different environments to perform contract execution.
FromAddr
Contracts that can be constructed from an AccountId.

Functions§

build_call
Returns a new CallBuilder to build up the parameters to a cross-contract call that uses the ink! ABI (SCALE Encoding).
build_call_solidity
Returns a new CallBuilder to build up the parameters to a cross-contract call that uses Solidity ABI Encoding. See build_call for more details on usage.
build_create
Returns a new CreateBuilder to build up the parameters to a cross-contract instantiation for a contract that uses the ink! ABI (SCALE Encoding).
build_create_solidity
Returns a new CreateBuilder to build up the parameters to a cross-contract instantiation for an ink! contract that uses Solidity ABI Encoding. See build_create for more details on usage.