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 parameterproof_size_limit
as well asstorage_deposit_limit
. - Call
Builder - Builds up a cross contract call.
- Call
Params - The final parameters to the cross-contract call.
- Create
Builder - Builds up contract instantiations.
- Create
Params - Builds up contract instantiations.
- Delegate
Call - 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.
- Execution
Input - The input data for a smart contract execution.
- Limit
Params V2 - Defines the limit params for the new
ext::instantiate
host function. todo: rename - Selector
- The function selector.
Traits§
- Constructor
Return Type - 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.
- From
Addr - 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. Seebuild_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. Seebuild_create
for more details on usage.