UNPKG

@zlattice/lattice-js

Version:

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

27 lines 703 B
import { LatticeAbi } from "../../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 LatticeAbi(this.abiString); } getAddress() { return this.address; } getAbi() { return this.abiString; } } export { BuiltinContract }; //# sourceMappingURL=types.js.map