A contract that is part of a deploment.

  • needed for deployment-wide deduplication
  • generates structured label

Hierarchy

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?: Compiler
deployer?: string | Connection
deployment?: Deployment

Deployment to which this unit belongs.

initBy?: string | 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.

log: Console
name?: string

Name of this unit.

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

Methods

  • Compile this contract, unless a valid binary is present and a rebuild is not requested.

    Parameters

    • __namedParameters: {
          compiler?: Compiler;
          rebuild?: boolean;
      } = {}
      • Optional compiler?: Compiler
      • Optional rebuild?: boolean

    Returns Promise<CompiledCode & {
        codeHash: string;
    }>

  • Parameters

    • __namedParameters: {
          compiler?: 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 | 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 | 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?: 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