UNPKG

@q-dev/q-ts-gdk-sdk

Version:

Typescript Library to interact with GDK Contracts

451 lines (450 loc) 10.6 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "components": [ { "internalType": "string", "name": "remark", "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": "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" }, { "inputs": [ { "internalType": "string", "name": "situation_", "type": "string" } ], "name": "addVotingSituation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "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": "requiredVetoQuorum", "type": "uint256" }, { "internalType": "uint256", "name": "votingType", "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": [ { "internalType": "address", "name": "target_", "type": "address" }, { "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" } ], "name": "getProposal", "outputs": [ { "components": [ { "internalType": "string", "name": "remark", "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": "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": "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": [], "name": "getVotingSituations", "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" } ]