@ardier16/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
21 lines • 892 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.SlashingVotingHelper = void 0;
const SystemContractInstance_1 = require("./SystemContractInstance");
/**
* Slashing interface to interact with Slashing implementation contracts.
* See [onchain documentation](@system-contracts-repo/@network/ISlashingVoting/) for more details.
*/
class SlashingVotingHelper extends SystemContractInstance_1.SystemContractInstance {
constructor(web3, abi, address) {
super(web3, abi, address);
}
async getSlashingVictim(proposalId) {
return this.instance.methods.getSlashingVictim(proposalId).call();
}
async getSlashingProposer(proposalId) {
return this.instance.methods.getSlashingProposer(proposalId).call();
}
}
exports.SlashingVotingHelper = SlashingVotingHelper;
//# sourceMappingURL=SlashingVotingHelperInstance.js.map