@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
24 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WithdrawAddressesInstance = void 0;
const SystemContractInstance_1 = require("../SystemContractInstance");
class WithdrawAddressesInstance extends SystemContractInstance_1.SystemContractInstance {
constructor(signerOrProvider, address) {
super(signerOrProvider, 'WithdrawAddresses.json', address);
}
async change(withdrawalAddress, txOptions) {
return this.submitTransaction('change', [withdrawalAddress], txOptions);
}
async finalize(mainAddress, withdrawalAddress, txOptions) {
return this.submitTransaction('finalize', [mainAddress, withdrawalAddress], txOptions);
}
async resolve(mainAddress) {
return this.instance.resolve(mainAddress);
}
async getWithdrawalAccount(mainAddress) {
return this.instance.map(mainAddress);
}
}
exports.WithdrawAddressesInstance = WithdrawAddressesInstance;
WithdrawAddressesInstance.registryKey = 'tokeneconomics.withdrawAddresses';
//# sourceMappingURL=WithdrawAddresses.js.map