@q-dev/q-js-sdk
Version:
Typescript Library to interact with Q System Contracts
704 lines • 17.8 kB
JavaScript
"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidatorsMock__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [],
stateMutability: "nonpayable",
type: "constructor",
},
{
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: "_validator",
type: "address",
},
],
name: "ValidatorDroppedFromShortList",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "_validator",
type: "address",
},
],
name: "ValidatorEnteredShortList",
type: "event",
},
{
inputs: [
{
internalType: "address",
name: "_validator",
type: "address",
},
{
internalType: "uint256",
name: "_slashingProposalId",
type: "uint256",
},
],
name: "addSlashingProposal",
outputs: [],
stateMutability: "nonpayable",
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: "_validator",
type: "address",
},
{
internalType: "uint256",
name: "_amountToSlash",
type: "uint256",
},
],
name: "applySlashing",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_validator",
type: "address",
},
{
internalType: "uint256",
name: "_endTime",
type: "uint256",
},
],
name: "calculatePendingSlashingsAmount",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [],
name: "commitStake",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
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: [],
name: "enterShortList",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_addr",
type: "address",
},
],
name: "getAccountableSelfStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_addr",
type: "address",
},
],
name: "getAccountableTotalStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
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: "_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: "_addr",
type: "address",
},
],
name: "getSelfStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getShortListMaxLength",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_validator",
type: "address",
},
],
name: "getSlashingProposalIds",
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: "_addr",
type: "address",
},
],
name: "getValidatorDelegatedStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getValidatorShortList",
outputs: [
{
components: [
{
internalType: "address",
name: "validator",
type: "address",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
internalType: "struct Validators.ValidatorAmount[]",
name: "",
type: "tuple[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_addr",
type: "address",
},
],
name: "getValidatorTotalStake",
outputs: [
{
internalType: "uint256",
name: "",
type: "uint256",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "getValidatorsList",
outputs: [
{
internalType: "address[]",
name: "",
type: "address[]",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_registry",
type: "address",
},
{
internalType: "address",
name: "_AddressStorageStakesSorted",
type: "address",
},
{
internalType: "address",
name: "_AddressStorageStakes",
type: "address",
},
],
name: "initialize",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_userAddr",
type: "address",
},
],
name: "isInLongList",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_validator",
type: "address",
},
],
name: "isInShortList",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "longList",
outputs: [
{
internalType: "contract AddressStorageStakes",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "makeSnapshot",
outputs: [
{
internalType: "bool",
name: "",
type: "bool",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_validator",
type: "address",
},
],
name: "purgePendingSlashings",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_account",
type: "address",
},
],
name: "purgeTimeLocks",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "_delegateTo",
type: "address",
},
],
name: "refreshDelegatedStake",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
name: "validatorsInfos",
outputs: [
{
components: [
{
internalType: "uint256",
name: "endTime",
type: "uint256",
},
{
internalType: "uint256",
name: "amount",
type: "uint256",
},
],
internalType: "struct Validators.Withdrawal",
name: "withdrawal",
type: "tuple",
},
],
stateMutability: "view",
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: "_newSnapshot",
type: "address[]",
},
],
name: "setSnapshot",
outputs: [],
stateMutability: "nonpayable",
type: "function",
},
];
class ValidatorsMock__factory {
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.ValidatorsMock__factory = ValidatorsMock__factory;
ValidatorsMock__factory.abi = _abi;
//# sourceMappingURL=ValidatorsMock__factory.js.map