Uploads contracts from the local filesystem, with optional caching: if provided with an Uploads directory containing upload receipts, allows for uploaded contracts to be reused.

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 = 'FS'

Unique identifier of this uploader implementation.

log: UploadConsole = ...
reupload: boolean

If set, reuploads even if store is present.

store: JSONDirectory<UploadReceipt_v1> = ...

Directory with JSON files

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

  • Parameters

    • path: string | URL

    Returns Uint8Array

Generated using TypeDoc