@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
324 lines • 8.28 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.GenericContractRegistryVoting__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "previousOwner",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "OwnershipTransferred",
type: "event",
},
{
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: [
{
internalType: "uint256",
name: "id_",
type: "uint256",
},
],
name: "approve",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "string",
name: "remark_",
type: "string",
},
{
internalType: "bytes",
name: "callData_",
type: "bytes",
},
],
name: "createProposal",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "uint256",
name: "id_",
type: "uint256",
},
],
name: "getProposal",
outputs: [
{
components: [
{
internalType: "bool",
name: "executed",
type: "bool",
},
{
internalType: "uint256",
name: "votingStartTime",
type: "uint256",
},
{
internalType: "uint256",
name: "votingExpiredTime",
type: "uint256",
},
{
internalType: "uint256",
name: "requiredMajority",
type: "uint256",
},
{
internalType: "bytes",
name: "callData",
type: "bytes",
},
{
internalType: "string",
name: "remark",
type: "string",
},
],
internalType: "struct ARootNodeApprovalVoting.AProposal",
name: "proposal_",
type: "tuple",
},
],
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: "getStatus",
outputs: [
{
internalType: "enum IVoting.ProposalStatus",
name: "",
type: "uint8",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "registry_",
type: "address",
},
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "owner",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "proposalsCount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "renounceOwnership",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "newOwner",
type: "address",
},
],
name: "transferOwnership",
outputs: [],
stateMutability: "nonpayable",
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",
},
];
class GenericContractRegistryVoting__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.GenericContractRegistryVoting__factory = GenericContractRegistryVoting__factory;
GenericContractRegistryVoting__factory.abi = _abi;
//# sourceMappingURL=GenericContractRegistryVoting__factory.js.map