UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

343 lines 11.5 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ISlashingVoting__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "uint256", name: "_id", type: "uint256", }, { components: [ { internalType: "string", name: "remark", type: "string", }, { components: [ { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionP", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredSMajority", type: "uint256", }, { internalType: "uint256", name: "requiredSQuorum", type: "uint256", }, ], internalType: "struct IVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "weightFor", type: "uint256", }, { internalType: "uint256", name: "weightAgainst", type: "uint256", }, { internalType: "uint256", name: "vetosCount", type: "uint256", }, ], internalType: "struct IVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], indexed: false, internalType: "struct IVoting.BaseProposal", name: "_proposal", type: "tuple", }, ], name: "ProposalCreated", type: "event", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "execute", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "getProposal", outputs: [ { components: [ { internalType: "string", name: "remark", type: "string", }, { components: [ { internalType: "uint256", name: "votingStartTime", type: "uint256", }, { internalType: "uint256", name: "votingEndTime", type: "uint256", }, { internalType: "uint256", name: "vetoEndTime", type: "uint256", }, { internalType: "uint256", name: "proposalExecutionP", type: "uint256", }, { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "requiredSMajority", type: "uint256", }, { internalType: "uint256", name: "requiredSQuorum", type: "uint256", }, ], internalType: "struct IVoting.VotingParams", name: "params", type: "tuple", }, { components: [ { internalType: "uint256", name: "weightFor", type: "uint256", }, { internalType: "uint256", name: "weightAgainst", type: "uint256", }, { internalType: "uint256", name: "vetosCount", type: "uint256", }, ], internalType: "struct IVoting.VotingCounters", name: "counters", type: "tuple", }, { internalType: "bool", name: "executed", type: "bool", }, ], internalType: "struct IVoting.BaseProposal", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "getProposalStats", outputs: [ { components: [ { internalType: "uint256", name: "requiredQuorum", type: "uint256", }, { internalType: "uint256", name: "currentQuorum", type: "uint256", }, { internalType: "uint256", name: "requiredMajority", type: "uint256", }, { internalType: "uint256", name: "currentMajority", type: "uint256", }, { internalType: "uint256", name: "currentVetoPercentage", type: "uint256", }, ], internalType: "struct IVoting.VotingStats", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "voteAgainst", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "voteFor", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "getSlashingVictim", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, ], name: "getSlashingProposer", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, ]; class ISlashingVoting__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ISlashingVoting__factory = ISlashingVoting__factory; ISlashingVoting__factory.abi = _abi; //# sourceMappingURL=ISlashingVoting__factory.js.map