Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InstantiateContractProposal

InstantiateContractProposal gov proposal content type to instantiate a contract.

Hierarchy

Index

Constructors

  • new InstantiateContractProposal(title: string, description: string, run_as: string, admin: undefined | string, code_id: number, init_msg: string | object, init_coins?: Coins.Input, label: string): InstantiateContractProposal
  • Parameters

    • title: string

      a short summary

    • description: string

      a human readable text

    • run_as: string

      is a run_as address

    • admin: undefined | string

      is an optional contract admin address who can migrate the contract, put empty string to disable migration

    • code_id: number

      is the reference to the stored WASM code

    • init_msg: string | object

      json encoded message to be passed to the contract on instantiation

    • init_coins: Coins.Input = {}

      are transferred to the contract on execution

    • label: string

      label for the contract. v2 supported only

    Returns InstantiateContractProposal

Properties

admin: undefined | string
code_id: number
description: string
init_coins: Coins
init_msg: string | object
label: string
run_as: string
title: string

Methods

  • packAny(isClassic?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(isClassic?: boolean): InstantiateContractProposal