A contract that is part of a deploment.

  • needed for deployment-wide deduplication
  • generates structured label

Hierarchy (view full)

Constructors

Properties

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.

isTemplate: true = true
name?: string

Name of this unit.

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

Methods

  • Returns {
        chainId: string;
        codeHash: string;
        codeId: string;
        name: string;
    }

    • chainId: string
    • codeHash: string
    • codeId: 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