A contract that is part of a deploment.

  • needed for deployment-wide deduplication
  • generates structured label

Hierarchy (view full)

Constructors

Properties

_available: Promise<Image> = null
buildArgs: Record<string, string> = {}
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.

dockerfile: string = null
engine: Connection
inputFiles: string[] = []
isTemplate: true = true
log: Console
name?: string

Name of this unit.

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

Accessors

Methods

  • Throws if inspected image does not exist locally.

    Returns Promise<void>

  • Check if the image exists.

    Returns Promise<boolean>

  • Parameters

    • __namedParameters: {
          all: boolean;
      } = {}
      • all: boolean

    Returns Promise<Container[]>

  • Get info about a container.

    Returns Promise<ImageInspectInfo>

  • Throws if inspected image does not exist in Docker Hub.

    Returns Promise<void>

  • Pull the image from the registry, or build it from a local file if not available there.

    Returns Promise<Image>

  • Remove this image.

    Returns Promise<any>

  • 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