@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
184 lines • 4.63 kB
JavaScript
;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ARootNodeApprovalVoting__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "ProposalCreated",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
],
name: "ProposalExecuted",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: false,
internalType: "uint256",
name: "_proposalId",
type: "uint256",
},
{
indexed: false,
internalType: "address",
name: "_rootNode",
type: "address",
},
],
name: "RootNodeApproved",
type: "event",
},
{
inputs: [],
name: "proposalsCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
name: "voteCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
{
internalType: "address",
name: "",
type: "address",
},
],
name: "voted",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "getStatus",
outputs: [
{
internalType: "enum ARootNodeApprovalVoting.ProposalStatus",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "getProposalStats",
outputs: [
{
components: [
{
internalType: "uint256",
name: "requiredMajority",
type: "uint256",
},
{
internalType: "uint256",
name: "currentMajority",
type: "uint256",
},
],
internalType: "struct ARootNodeApprovalVoting.ProposalStats",
name: "stats_",
type: "tuple",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "_id",
type: "uint256",
},
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class ARootNodeApprovalVoting__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ARootNodeApprovalVoting__factory = ARootNodeApprovalVoting__factory;
ARootNodeApprovalVoting__factory.abi = _abi;
//# sourceMappingURL=ARootNodeApprovalVoting__factory.js.map