Interface to a Docker container.

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.

engine: Connection
entrypoint?: ContainerCommand
id?: string
image: Image
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.

log: Console
name?: string

Name of this unit.

options: Partial<ContainerOptions> = {}
source?: SourceCode
uploaded?: UploadedCode
uploader?: string | Chain.Connection

Accessors

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;
    }>

  • Executes a command in the container.

    Parameters

    • Rest ...command: string[]

    Returns Promise<[string, string]>

    [stdout, stderr]

  • Returns Promise<boolean>

  • Save a container as an image.

    Parameters

    • Optional repository: string
    • tag: string = 'latest'

    Returns Promise<any>

  • Get info about a container.

    Returns Promise<ContainerInspectInfo>

  • Is this container running?

    Returns Promise<boolean>

  • 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;
    }>

  • Wait for the container to exit.

    Returns Promise<{
        code: any;
        error: any;
    }>

  • Wait for the container logs to emit an expected string.

    Parameters

    • expected: string
    • Optional logFilter: ((data) => boolean)
        • (data): boolean
        • Parameters

          • data: string

          Returns boolean

    • Optional thenDetach: boolean

    Returns Promise<void>

Generated using TypeDoc