Uploader: uploads a Template's artifact to a specific Chain, binding the Template to a particular chainId and codeId.

Hierarchy

Constructors

Properties

agent?: Agent

Agent that will sign the upload transactions(s).

cache: Record<string, Uploaded>

Map of code hash to Uploaded result.

id: string = 'Fetch'

Unique identifier of this uploader implementation.

log: Console = ...
reupload: boolean

If set, reuploads even if store is present.

variants: Record<string, UploaderClass<Uploader>> = ...

Global registry of Uploader implementations. Populated downstream.

Accessors

Methods

  • Parameters

    • a: {
          artifact?: string | URL;
          codeHash?: string;
      }
      • Optional artifact?: string | URL
      • Optional codeHash?: string
    • b: {
          codeHash?: string;
      }
      • Optional codeHash?: string

    Returns void

  • Panic if the code hash returned by the upload doesn't match the one specified in the Contract.

    Parameters

    Returns void

Generated using TypeDoc