UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

509 lines 8.71 kB
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_tokenLockSource", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_who", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_newLockedAmount", "type": "uint256" } ], "name": "LockedAmountChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_who", "type": "address" }, { "indexed": false, "internalType": "address", "name": "_prevVotingAgent", "type": "address" }, { "indexed": false, "internalType": "address", "name": "_newVotingAgent", "type": "address" } ], "name": "NewVotingAgentAnnounced", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_tokenLockSource", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_who", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_newPendingUnlockAmount", "type": "uint256" } ], "name": "PendingUnlockAmountChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "_tokenLockSource", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_who", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_newPendingUnlockAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_newPendingUnlockTime", "type": "uint256" } ], "name": "PendingUnlockChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_who", "type": "address" }, { "indexed": true, "internalType": "address", "name": "_votingAgent", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_delegatedAmount", "type": "uint256" } ], "name": "VotingAgentChanged", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "delegationInfos", "outputs": [ { "internalType": "uint256", "name": "receivedWeight", "type": "uint256" }, { "internalType": "address", "name": "votingAgent", "type": "address" }, { "internalType": "bool", "name": "isPending", "type": "bool" }, { "internalType": "uint256", "name": "votingAgentPassOverTime", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "lockInfos", "outputs": [ { "internalType": "uint256", "name": "lockedAmount", "type": "uint256" }, { "internalType": "uint256", "name": "lockedUntil", "type": "uint256" }, { "internalType": "uint256", "name": "pendingUnlockAmount", "type": "uint256" }, { "internalType": "uint256", "name": "pendingUnlockTime", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_registry", "type": "address" }, { "internalType": "string[]", "name": "_tokenLockSourcesKeys", "type": "string[]" }, { "internalType": "string[]", "name": "_votingContractsKeys", "type": "string[]" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "lock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" }, { "internalType": "uint256", "name": "_newUnlockTime", "type": "uint256" } ], "name": "announceUnlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "unlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "forceUnlock", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_newAgent", "type": "address" } ], "name": "announceNewVotingAgent", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "setNewVotingAgent", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_lockNeededUntil", "type": "uint256" } ], "name": "extendLocking", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_tokenLockSource", "type": "address" }, { "internalType": "address", "name": "_who", "type": "address" } ], "name": "getLockInfo", "outputs": [ { "components": [ { "internalType": "uint256", "name": "lockedAmount", "type": "uint256" }, { "internalType": "uint256", "name": "lockedUntil", "type": "uint256" }, { "internalType": "uint256", "name": "pendingUnlockAmount", "type": "uint256" }, { "internalType": "uint256", "name": "pendingUnlockTime", "type": "uint256" } ], "internalType": "struct VotingLockInfo", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" }, { "internalType": "uint256", "name": "_votingEndTime", "type": "uint256" } ], "name": "getBaseVotingWeightInfo", "outputs": [ { "components": [ { "internalType": "uint256", "name": "ownWeight", "type": "uint256" }, { "internalType": "address", "name": "votingAgent", "type": "address" }, { "internalType": "enum DelegationStatus", "name": "delegationStatus", "type": "uint8" }, { "internalType": "uint256", "name": "lockedUntil", "type": "uint256" } ], "internalType": "struct BaseVotingWeightInfo", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_user", "type": "address" } ], "name": "getLockedUntil", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" }, { "internalType": "uint256", "name": "_lockNeededUntil", "type": "uint256" } ], "name": "getVotingWeight", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_who", "type": "address" } ], "name": "getLockedAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]