An abstraction for deploying and interacting with Smart Contracts.

Implements

Constructors

Properties

methods: { [key: string]: (args?: any[]) => Interaction } = {}

This object contains a function for each endpoint defined by the contract. (a bit similar to web3js's "contract.methods").

This is an alternative to methodsExplicit. Unlike methodsExplicit, automatic type inference (wrt. ABI) is applied when using methods.

methodsExplicit: { [key: string]: (args?: TypedValue[]) => Interaction } = {}

This object contains a function for each endpoint defined by the contract. (a bit similar to web3js's "contract.methods").

Methods