Callable object: contract template. Can build and upload, but not instantiate. Can produce deployable Contract instances.

Type Parameters

Hierarchy

Constructors

Properties

agent?: Agent = undefined

The Agent instance that will be used to upload and instantiate the contract.

artifact?: string | URL = undefined

URL to the compiled code.

builder?: Builder = undefined

Build procedure implementation.

builderId?: string = undefined

Builder implementation that produces a Contract from the Source.

chainId?: string = undefined

ID of chain on which this contract is uploaded.

client?: ClientClass<C> = undefined

The Client subclass that exposes the contract's methods.

Default

the base Client class.
codeHash?: string = undefined

Code hash uniquely identifying the compiled code.

codeId?: string = undefined

Code ID representing the identity of the contract's code on a specific chain.

crate?: string = undefined

Name of crate in workspace.

deployment?: Deployment = undefined

The deployment that this template belongs to.

dirty?: boolean = undefined

Whether there were any uncommitted changes at build time.

features?: string[] = undefined

List of crate features to enable during build.

log: Console = ...
repository?: string | URL = undefined

URL pointing to Git repository containing the source code.

revision?: string = undefined

Branch/tag pointing to the source commit.

uploadBy?: string = undefined

Address of agent that performed the upload.

uploadTx?: string = undefined

TXID of transaction that performed the upload.

uploader?: Uploader = undefined

Upload procedure implementation.

uploaderId?: string = undefined

Object containing upload logic.

workspace?: string = undefined

Path to root directory of crate or workspace.

Accessors

Methods

  • Parameters

    Returns this

    a copy of this object with a changed agent.

    Warning

    overriding constructor signature is discouraged.

  • Provide parameters for an existing instance.

    Parameters

    Returns this

    mutated self

Generated using TypeDoc