A contract that is part of a deploment.

  • needed for deployment-wide deduplication
  • generates structured label

Hierarchy (view full)

Constructors

Properties

address?: string

Address of this contract instance. Unique per chain.

chainId?: string

Code ID representing the identity of the contract's code on a specific chain.

codeHash?: string

Code hash uniquely identifying the compiled code.

codeId?: string

Code ID representing the identity of the contract's code on a specific chain.

compiled?: CompiledCode
compiler?: Program.Compiler
deployer?: string | Chain.Connection
deployment?: Deployment

Deployment to which this unit belongs.

initBy?: string | Chain.Connection

Address of agent that performed the init tx.

initFee?: unknown

Fee to use for init.

initGas?: unknown

Contents of init message.

initMemo?: string

Instantiation memo.

initMsg?: Into<Message>

Contents of init message.

initSend?: ICoin[]

Native tokens to send to the new contract.

initTx?: string

ID of transaction that performed the init.

isTemplate: false = false
label?: string

Full label of the instance. Unique for a given chain.

name?: string

Name of this unit.

source?: SourceCode
uploaded?: UploadedCode
uploader?: string | Chain.Connection

Methods

  • Parameters

    • __namedParameters: {
          compiler?: Program.Compiler;
          rebuild?: boolean;
      } & {
          reupload?: boolean;
          uploadFee?: ICoin[] | "auto";
          uploadMemo?: string;
          uploadStore?: UploadStore;
      } & {
          reupload?: boolean;
          uploader?: string | {
              upload: ((code, options?) => Promise<UploadedCode & {
                  chainId: string;
                  codeId: string;
              }>);
          };
      } & Partial<ContractInstance> & {
          deployer?: string | {
              instantiate: ((contract, options) => Promise<ContractInstance & {
                  address: string;
              }>);
          };
          redeploy?: boolean;
      } = {}

    Returns Promise<ContractInstance & {
        address: string;
    }>

  • Returns {
        address: string;
        chainId: string;
        codeHash: string;
        codeId: string;
        initBy: string | Chain.Connection;
        initFee: unknown;
        initGas: unknown;
        initMemo: string;
        initMsg: Into<Message>;
        initSend: ICoin[];
        initTx: string;
        label: string;
        name: string;
    }

    • address: string
    • chainId: string
    • codeHash: string
    • codeId: string
    • initBy: string | Chain.Connection
    • initFee: unknown
    • initGas: unknown
    • initMemo: string
    • initMsg: Into<Message>
    • initSend: ICoin[]
    • initTx: string
    • label: string
    • name: string
  • Upload this contract, unless a valid upload is present and a rebuild is not requested.

    Parameters

    • __namedParameters: {
          compiler?: Program.Compiler;
          rebuild?: boolean;
      } & {
          reupload?: boolean;
          uploadFee?: ICoin[] | "auto";
          uploadMemo?: string;
          uploadStore?: UploadStore;
      } & {
          reupload?: boolean;
          uploader?: string | {
              upload: ((code, options?) => Promise<UploadedCode & {
                  chainId: string;
                  codeId: string;
              }>);
          };
      } = {}

    Returns Promise<UploadedCode & {
        codeId: string;
    }>

Generated using TypeDoc