@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
23 lines • 1.18 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultAllocationProxyInstance = void 0;
const SystemContractInstance_1 = require("../SystemContractInstance");
/**
* Default allocation proxy instance to interact with Default allocation proxy contract.
* See [onchain documentation](@system-contracts-repo/@network/DefaultAllocationProxy/) for more details.
* An instance of this class for a deployed network can be obtained via {@link ContractRegistryInstance.defaultAllocationProxy}
*/
class DefaultAllocationProxyInstance extends SystemContractInstance_1.SystemContractInstance {
constructor(web3, address) {
super(web3, 'DefaultAllocationProxy.json', address);
}
/**
* [External documentation](@system-contracts-repo/@network/DefaultAllocationProxy/#allocate)
*/
async allocate(txOptions) {
return this.submitTransaction(this.instance.methods.allocate(), txOptions);
}
}
exports.DefaultAllocationProxyInstance = DefaultAllocationProxyInstance;
DefaultAllocationProxyInstance.registryKey = 'tokeneconomics.defaultAllocationProxy';
//# sourceMappingURL=DefaultAllocationProxyInstance.js.map