@q-dev/gdk-sdk
Version:
Typescript Library to interact with GDK Contracts
1,010 lines (1,009 loc) • 26.4 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IDAOVoting",
"sourceName": "contracts/interfaces/IDAOVoting.sol",
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "proposer",
"type": "address"
},
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "remark",
"type": "string"
},
{
"internalType": "string",
"name": "relatedExpertPanel",
"type": "string"
},
{
"internalType": "string",
"name": "relatedVotingSituation",
"type": "string"
},
{
"internalType": "bytes",
"name": "callData",
"type": "bytes"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"components": [
{
"internalType": "enum VotingType",
"name": "votingType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "votingStartTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingParams",
"name": "params",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "votedFor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votedAgainst",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoesCount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingCounters",
"name": "counters",
"type": "tuple"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
}
],
"indexed": false,
"internalType": "struct IDAOVoting.DAOProposal",
"name": "proposal",
"type": "tuple"
}
],
"name": "ProposalCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
}
],
"name": "ProposalExecuted",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "voter",
"type": "address"
}
],
"name": "UserVetoed",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"indexed": true,
"internalType": "address",
"name": "voter",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "votingPower",
"type": "uint256"
},
{
"indexed": false,
"internalType": "uint8",
"name": "option",
"type": "uint8"
}
],
"name": "UserVoted",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "member_",
"type": "address"
},
{
"internalType": "string",
"name": "permission_",
"type": "string"
}
],
"name": "checkPermission",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "votingSituationName",
"type": "string"
},
{
"components": [
{
"internalType": "uint256",
"name": "votingPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingType",
"type": "uint256"
},
{
"internalType": "string",
"name": "votingTarget",
"type": "string"
},
{
"internalType": "uint256",
"name": "votingMinAmount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.DAOVotingValues",
"name": "votingValues",
"type": "tuple"
}
],
"internalType": "struct IDAOVoting.InitialSituation",
"name": "conf_",
"type": "tuple"
}
],
"name": "createDAOVotingSituation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"components": [
{
"internalType": "string",
"name": "votingSituationName",
"type": "string"
},
{
"components": [
{
"internalType": "uint256",
"name": "votingPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingType",
"type": "uint256"
},
{
"internalType": "string",
"name": "votingTarget",
"type": "string"
},
{
"internalType": "uint256",
"name": "votingMinAmount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.DAOVotingValues",
"name": "votingValues",
"type": "tuple"
}
],
"internalType": "struct IDAOVoting.InitialSituation",
"name": "initialSituation",
"type": "tuple"
},
{
"internalType": "string",
"name": "externalLink",
"type": "string"
}
],
"internalType": "struct IDAOVoting.ExtendedSituation",
"name": "conf_",
"type": "tuple"
}
],
"name": "createDAOVotingSituationWithLink",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "situation_",
"type": "string"
},
{
"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": "proposalId_",
"type": "uint256"
}
],
"name": "executeProposal",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "signature_",
"type": "bytes"
}
],
"name": "executeProposalWithSignature",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "getCurrentExecutingProposalId",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"type": "uint256"
}
],
"name": "getProposal",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "remark",
"type": "string"
},
{
"internalType": "string",
"name": "relatedExpertPanel",
"type": "string"
},
{
"internalType": "string",
"name": "relatedVotingSituation",
"type": "string"
},
{
"internalType": "bytes",
"name": "callData",
"type": "bytes"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"components": [
{
"internalType": "enum VotingType",
"name": "votingType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "votingStartTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingParams",
"name": "params",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "votedFor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votedAgainst",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoesCount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingCounters",
"name": "counters",
"type": "tuple"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
}
],
"internalType": "struct IDAOVoting.DAOProposal",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "offset_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "limit_",
"type": "uint256"
}
],
"name": "getProposalList",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "id",
"type": "uint256"
},
{
"internalType": "string",
"name": "remark",
"type": "string"
},
{
"internalType": "string",
"name": "relatedExpertPanel",
"type": "string"
},
{
"internalType": "string",
"name": "relatedVotingSituation",
"type": "string"
},
{
"internalType": "bytes",
"name": "callData",
"type": "bytes"
},
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"components": [
{
"internalType": "enum VotingType",
"name": "votingType",
"type": "uint8"
},
{
"internalType": "uint256",
"name": "votingStartTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoEndTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingParams",
"name": "params",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "votedFor",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votedAgainst",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoesCount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.VotingCounters",
"name": "counters",
"type": "tuple"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
}
],
"internalType": "struct IDAOVoting.DAOProposal[]",
"name": "",
"type": "tuple[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "offset_",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "limit_",
"type": "uint256"
}
],
"name": "getProposalSituationLinkList",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"type": "uint256"
}
],
"name": "getProposalStatus",
"outputs": [
{
"internalType": "enum IDAOVoting.ProposalStatus",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getResource",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "situation_",
"type": "string"
}
],
"name": "getVotingSituationExternalLink",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "situation_",
"type": "string"
}
],
"name": "getVotingSituationInfo",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "votingPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingType",
"type": "uint256"
},
{
"internalType": "string",
"name": "votingTarget",
"type": "string"
},
{
"internalType": "uint256",
"name": "votingMinAmount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.DAOVotingValues",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "situation_",
"type": "string"
}
],
"name": "getVotingSituationInfoWithLink",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "votingPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "vetoPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "proposalExecutionPeriod",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredMajority",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "requiredVetoQuorum",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votingType",
"type": "uint256"
},
{
"internalType": "string",
"name": "votingTarget",
"type": "string"
},
{
"internalType": "uint256",
"name": "votingMinAmount",
"type": "uint256"
}
],
"internalType": "struct IDAOVoting.DAOVotingValues",
"name": "",
"type": "tuple"
},
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getVotingSituations",
"outputs": [
{
"internalType": "string[]",
"name": "",
"type": "string[]"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"type": "uint256"
}
],
"name": "proposalSituationLink",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "situation_",
"type": "string"
}
],
"name": "removeVotingSituation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "proposalId_",
"type": "uint256"
}
],
"name": "veto",
"outputs": [],
"stateMutability": "nonpayable",
"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"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}