pub fn instantiate(
    deps: DepsMut<'_>,
    env: Env,
    info: MessageInfo,
    msg: InstantiateMsg
) -> Result<Response, ContractError>
Expand description

The entry point used when an account instantiates a stored code wasm payload of this contract on the Provenance Blockchain.

§Parameters

  • deps A dependencies object provided by the cosmwasm framework. Allows access to useful resources like contract internal storage and a querier to retrieve blockchain objects.
  • env An environment object provided by the cosmwasm framework. Describes the contract’s details, as well as blockchain information at the time of the transaction.
  • info A message information object provided by the cosmwasm framework. Describes the sender of the instantiation message, as well as the funds provided as an amount during the transaction.
  • msg A custom instantiation message defined by this contract for creating the initial configuration used by the contract.