Module ink_env::call

source ·
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 parameter proof_size_limit as well as storage_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 limit gas_limit, transferring transferred_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 for a smart contract execution.
  • Defines the limit params for the legacy ext::instantiate_v1 host function, consisting of the gas_limit which is equivalent to the ref_time_limit in the new ext::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:
  • Contracts that can be constructed from an AccountId.

Functions§