UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

527 lines 13.7 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.VotingWeightProxy__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { 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", }, ]; class VotingWeightProxy__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.VotingWeightProxy__factory = VotingWeightProxy__factory; VotingWeightProxy__factory.abi = _abi; //# sourceMappingURL=VotingWeightProxy__factory.js.map