Expand description
Utilities to call or instantiate contracts on the chain.
Modules§
- Type states that tell what state of a instantiation argument has not yet been set properly for a valid construction.
- Utility types for the cross-contract calling API.
Structs§
- The default call type for cross-contract calls, for calling into the latest
call_v2
host function. This adds the additional weight limit parameterproof_size_limit
as well asstorage_deposit_limit
. - Builds up a cross contract call.
- The final parameters to the cross-contract call.
- The legacy call type for cross-contract calls. Performs a cross-contract call to
callee
with gas limitgas_limit
, transferringtransferred_value
of currency. - Builds up contract instantiations.
- Builds up contract instantiations.
- The
delegatecall
call type. Performs a call with the given code hash. - The input data and the expected return type of a contract execution.
- The input data for a smart contract execution.
- Defines the limit params for the legacy
ext::instantiate_v1
host function, consisting of thegas_limit
which is equivalent to theref_time_limit
in the newext::instantiate
. - Defines the limit params for the new
ext::instantiate
host function. - The function selector.
Traits§
- Represents any type that can be returned from an
ink!
constructor. The following contract implements the four different return type signatures implementing this trait: - Implemented in different environments to perform contract execution.
- Contracts that can be constructed from an
AccountId
.
Functions§
- Returns a new
CallBuilder
to build up the parameters to a cross-contract call. - Returns a new
CreateBuilder
to build up the parameters to a cross-contract instantiation.