UNPKG

@q-dev/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

508 lines 13.3 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ValidationRewardPools__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [], stateMutability: "nonpayable", type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_validatorAddress", type: "address", }, { indexed: false, internalType: "uint256", name: "_newDelegatorsShare", type: "uint256", }, ], name: "DelegatorsShareChanged", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_claimerAddress", type: "address", }, { indexed: false, internalType: "uint256", name: "_rewardAmount", type: "uint256", }, ], name: "RewardTransferedToQVault", type: "event", }, { anonymous: false, inputs: [ { components: [ { internalType: "uint256", name: "balance", type: "uint256", }, { internalType: "uint256", name: "reservedForClaim", type: "uint256", }, { internalType: "uint256", name: "delegatorsShare", type: "uint256", }, { internalType: "uint256", name: "aggregatedNormalizedStake", type: "uint256", }, { internalType: "contract CompoundRateKeeper", name: "compoundRate", type: "address", }, ], indexed: false, internalType: "struct ValidationRewardPools.ValidatorProperties", name: "_v", type: "tuple", }, { indexed: false, internalType: "uint256", name: "_oldRate", type: "uint256", }, { indexed: false, internalType: "uint256", name: "_newRate", type: "uint256", }, { indexed: false, internalType: "uint256", name: "_inc", type: "uint256", }, ], name: "UpdateRate", type: "event", }, { inputs: [ { internalType: "address", name: "", type: "address", }, ], name: "validatorsProperties", outputs: [ { internalType: "uint256", name: "balance", type: "uint256", }, { internalType: "uint256", name: "reservedForClaim", type: "uint256", }, { internalType: "uint256", name: "delegatorsShare", type: "uint256", }, { internalType: "uint256", name: "aggregatedNormalizedStake", type: "uint256", }, { internalType: "contract CompoundRateKeeper", name: "compoundRate", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_registry", type: "address", }, { internalType: "uint256", name: "_crUpdateMinimumBase", type: "uint256", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "addCompoundRateKeeper", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "increase", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, { internalType: "uint256", name: "_rewardAmount", type: "uint256", }, ], name: "requestRewardTransfer", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "updateValidatorsCompoundRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_newDelegatorsShare", type: "uint256", }, ], name: "setDelegatorsShare", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "reserveAdditionalFunds", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_addr", type: "address", }, ], name: "getDelegatorsShare", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "getBalance", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, { internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "addAggregatedNormalizedStake", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, { internalType: "uint256", name: "_stake", type: "uint256", }, ], name: "subAggregatedNormalizedStake", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "getPoolInfo", outputs: [ { components: [ { internalType: "uint256", name: "poolBalance", type: "uint256", }, { internalType: "uint256", name: "reservedForClaims", type: "uint256", }, { internalType: "uint256", name: "aggregatedNormalizedStake", type: "uint256", }, { internalType: "uint256", name: "delegatedStake", type: "uint256", }, { internalType: "uint256", name: "compoundRate", type: "uint256", }, { internalType: "uint256", name: "lastUpdateOfCompoundRate", type: "uint256", }, { internalType: "uint256", name: "delegatorsShare", type: "uint256", }, ], internalType: "struct ValidationRewardPools.PoolInfo", name: "", type: "tuple", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "getCompoundRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "getDelegatedStake", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, ], name: "getLastUpdateOfCompoundRate", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, { internalType: "uint256", name: "_targetAmount", type: "uint256", }, ], name: "getNormalizedAmount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_validator", type: "address", }, { internalType: "uint256", name: "_normalizedAmount", type: "uint256", }, ], name: "getDenormalizedAmount", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, ]; class ValidationRewardPools__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.ValidationRewardPools__factory = ValidationRewardPools__factory; ValidationRewardPools__factory.abi = _abi; //# sourceMappingURL=ValidationRewardPools__factory.js.map