UNPKG

@zlattice/lattice-js

Version:

Lattice blockchain TypeScript SDK with dual module support (CJS + ESM)

30 lines 835 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BuiltinContract = void 0; const index_1 = require("../../utils/index.js"); /** * Builtin contract */ class BuiltinContract { /** * @param description - The description of the contract * @param address - The address of the contract * @param abiString - The abi string of the contract */ constructor(description, address, abiString) { this.description = description; this.address = address; this.abiString = abiString; } getLatticeInterface() { return new index_1.LatticeAbi(this.abiString); } getAddress() { return this.address; } getAbi() { return this.abiString; } } exports.BuiltinContract = BuiltinContract; //# sourceMappingURL=types.js.map