UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

651 lines 16.4 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.Roots__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_root", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "CommittedStake", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_sender", type: "address", }, { indexed: true, internalType: "address", name: "_root", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "DepositedStake", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_account", type: "address", }, { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "releaseStart", type: "uint256", }, { internalType: "uint256", name: "releaseEnd", type: "uint256", }, ], indexed: false, internalType: "struct TimeLockEntry", name: "_timelock", type: "tuple", }, ], name: "NewTimeLock", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_account", type: "address", }, { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "releaseStart", type: "uint256", }, { internalType: "uint256", name: "releaseEnd", type: "uint256", }, ], indexed: false, internalType: "struct TimeLockEntry", name: "_timelock", type: "tuple", }, ], name: "Purged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_root", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "WithdrawalAnnounced", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_root", type: "address", }, { indexed: true, internalType: "address", name: "_paidTo", type: "address", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "Withdrawn", type: "event", }, { inputs: [ { internalType: "address", name: "_account", type: "address", }, { internalType: "uint256", name: "_releaseStart", type: "uint256", }, { internalType: "uint256", name: "_releaseEnd", type: "uint256", }, ], name: "depositOnBehalfOf", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_account", type: "address", }, { internalType: "uint256", name: "_timestamp", type: "uint256", }, ], name: "getMinimumBalance", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_account", type: "address", }, ], name: "getTimeLocks", outputs: [ { components: [ { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "uint256", name: "releaseStart", type: "uint256", }, { internalType: "uint256", name: "releaseEnd", type: "uint256", }, ], internalType: "struct TimeLockEntry[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, { internalType: "uint256", name: "", type: "uint256", }, ], name: "pendingSlashingProposals", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_account", type: "address", }, ], name: "purgeTimeLocks", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "withdrawals", outputs: [ { internalType: "uint256", name: "endTime", type: "uint256", }, { internalType: "uint256", name: "amount", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_registry", type: "address", }, { internalType: "address[]", name: "_roots", type: "address[]", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_rootAddress", type: "address", }, ], name: "addMember", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_rootAddress", type: "address", }, ], name: "removeMember", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_rootAddress", type: "address", }, { internalType: "address", name: "_newRootAddress", type: "address", }, ], name: "swapMember", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "commitStake", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "announceWithdrawal", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_proposalId", type: "uint256", }, { internalType: "address", name: "_root", type: "address", }, { internalType: "uint256", name: "_amountToSlash", type: "uint256", }, ], name: "applySlashing", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "address payable", name: "_payTo", type: "address", }, ], name: "withdraw", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_root", type: "address", }, { internalType: "uint256", name: "_slashingProposalId", type: "uint256", }, ], name: "addSlashingProposal", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_root", type: "address", }, ], name: "getSlashingProposalIds", outputs: [ { internalType: "uint256[]", name: "", type: "uint256[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getMembers", outputs: [ { internalType: "address[]", name: "", type: "address[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_exp", type: "address", }, ], name: "isMember", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getSize", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getLimit", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_root", type: "address", }, ], name: "getRootNodeStake", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "getStakes", outputs: [ { components: [ { internalType: "address", name: "root", type: "address", }, { internalType: "uint256", name: "value", type: "uint256", }, ], internalType: "struct Roots.Stake[]", name: "", type: "tuple[]", }, ], stateMutability: "view", type: "function", }, { inputs: [], 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: "_root", type: "address", }, ], name: "purgePendingSlashings", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class Roots__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.Roots__factory = Roots__factory; Roots__factory.abi = _abi; //# sourceMappingURL=Roots__factory.js.map