import chain3 = require("jcc_chain3"); import Moac from "./moac"; /** * toolkit of smart contract * * @class SmartContract */ declare class SmartContract { /** * instance of smart contract * * @private * @type {chain3.mc.contract} * @memberof SmartContract */ private _contract; /** * instance of abi * * @private * @type {any} * @memberof SmartContract */ private _abi; /** * instance of moac * * @private * @type {Moac} * @memberof SmartContract */ private _moac; /** * contract address of smart contract * * @private * @type {string} * @memberof SmartContract */ private _address; /** * MoacABI instance * * @private * @type {MoacABI} * @memberof SmartContract */ private _moacABI; /** * Creates an instance of SmartContract * @memberof SmartContract */ constructor(); /** * return moac instance * * @readonly * @type {Moac} * @memberof SmartContract */ get moac(): Moac; /** * return contract instance * * @readonly * @type {chain3.mc.contract} * @memberof SmartContract */ get contract(): chain3.mc.contract; /** * init instance of smart contract * * @param {string} tokenContractAddress contract address of smart contract * @param {Moac} moac instance * @param {any} abi * @memberof SmartContract */ init(tokenContractAddress: string, moac: Moac, abi: any): void; /** * destroy instance of smart contract * * @memberof SmartContract */ destroy(): void; /** * call defined function in the abi * */ getData(name: any, ...args: any[]): Promise; /** * call defined function in the abi * */ callABI(name: any, ...args: any[]): Promise; } export default SmartContract;