@meterio/sumer-js 0.2.114 → 0.2.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/sumer.min.js +10 -10
- package/dist/nodejs/abi.d.ts +542 -123
- package/dist/nodejs/abi.js +19858 -9807
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/cToken.js +1 -7
- package/dist/nodejs/cToken.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +11 -3
- package/dist/nodejs/constants/arbitrum.js +149 -22
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/b2main.d.ts +8 -3
- package/dist/nodejs/constants/b2main.js +65 -13
- package/dist/nodejs/constants/b2main.js.map +1 -1
- package/dist/nodejs/constants/basemain.d.ts +12 -5
- package/dist/nodejs/constants/basemain.js +127 -19
- package/dist/nodejs/constants/basemain.js.map +1 -1
- package/dist/nodejs/constants/basetest.d.ts +10 -21
- package/dist/nodejs/constants/basetest.js +35 -21
- package/dist/nodejs/constants/basetest.js.map +1 -1
- package/dist/nodejs/constants/berabartio.d.ts +6 -3
- package/dist/nodejs/constants/berabartio.js +139 -5
- package/dist/nodejs/constants/berabartio.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +12 -7
- package/dist/nodejs/constants/beramain.js +93 -48
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/bsc.d.ts +10 -15
- package/dist/nodejs/constants/bsc.js +92 -13
- package/dist/nodejs/constants/bsc.js.map +1 -1
- package/dist/nodejs/constants/core.d.ts +8 -7
- package/dist/nodejs/constants/core.js +105 -28
- package/dist/nodejs/constants/core.js.map +1 -1
- package/dist/nodejs/constants/ethereum.d.ts +11 -4
- package/dist/nodejs/constants/ethereum.js +264 -18
- package/dist/nodejs/constants/ethereum.js.map +1 -1
- package/dist/nodejs/constants/index.js +0 -2
- package/dist/nodejs/constants/index.js.map +1 -1
- package/dist/nodejs/constants/merlin.d.ts +7 -3
- package/dist/nodejs/constants/merlin.js +45 -7
- package/dist/nodejs/constants/merlin.js.map +1 -1
- package/dist/nodejs/constants/metermain.d.ts +8 -3
- package/dist/nodejs/constants/metermain.js +53 -12
- package/dist/nodejs/constants/metermain.js.map +1 -1
- package/dist/nodejs/constants/metertest.d.ts +9 -4
- package/dist/nodejs/constants/metertest.js +113 -13
- package/dist/nodejs/constants/metertest.js.map +1 -1
- package/dist/nodejs/constants/monadtest.d.ts +6 -3
- package/dist/nodejs/constants/monadtest.js +89 -5
- package/dist/nodejs/constants/monadtest.js.map +1 -1
- package/dist/nodejs/constants/sepolia.d.ts +6 -3
- package/dist/nodejs/constants/sepolia.js +53 -5
- package/dist/nodejs/constants/sepolia.js.map +1 -1
- package/dist/nodejs/constants/zklink.d.ts +11 -7
- package/dist/nodejs/constants/zklink.js +82 -11
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/errorABIs.js +2261 -0
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +542 -123
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Bera/CBeraVault.d.ts +36 -40
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +36 -40
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +40 -44
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Comptroller/MockComptroller.d.ts +1237 -0
- package/dist/nodejs/typechain/contracts/{Oracle/BalancerLPAdapter.sol/IBalancerVault.js → Comptroller/MockComptroller.js} +1 -1
- package/dist/nodejs/typechain/contracts/Comptroller/MockComptroller.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Comptroller/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.d.ts +129 -107
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredRewards.d.ts +16 -16
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +1 -9
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +5 -76
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +6 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +1 -43
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +0 -2
- package/dist/nodejs/typechain/contracts/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +3 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.d.ts +18 -90
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js +18 -125
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +18 -90
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +18 -125
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +0 -56
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +0 -70
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +20 -100
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +20 -139
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +1 -67
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +1 -84
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/ComptrollerStorage__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.d.ts +1880 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.js +2415 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/MockComptroller__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/SortedBorrows__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.d.ts +143 -170
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js +170 -224
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.d.ts +11 -26
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js +14 -33
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +0 -10
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +0 -86
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +0 -109
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +3 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +4 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Multicall2__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +1 -47
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +1 -61
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstETHAdapter.sol/WstETHAdapter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.d.ts +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/WstMTRGAdapter.sol/WstMTRGAdapter__factory.js +1 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +1 -2
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +1 -57
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +1 -71
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/index.js +3 -1
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/index.js +2 -1
- package/dist/nodejs/typechain/factories/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +324 -54
- package/dist/nodejs/typechain/index.d.ts +34 -8
- package/dist/nodejs/typechain/index.js +35 -11
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/nodejs/constants/hemi.d.ts +0 -69
- package/dist/nodejs/constants/hemi.js +0 -151
- package/dist/nodejs/constants/hemi.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.d.ts +0 -149
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.d.ts +0 -186
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.d.ts +0 -217
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js +0 -3
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.d.ts +0 -33
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js +0 -3
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.d.ts +0 -93
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.d.ts +0 -33
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.d.ts +0 -49
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +0 -4
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.d.ts +0 -29
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/ICoreVault.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.d.ts +0 -25
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js.map +0 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js +0 -3
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.d.ts +0 -169
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js +0 -229
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.d.ts +0 -219
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js +0 -296
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.d.ts +0 -241
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js +0 -323
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.d.ts +0 -37
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js +0 -59
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.d.ts +0 -158
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js +0 -214
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.d.ts +0 -37
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js +0 -59
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.d.ts +0 -29
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js +0 -49
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.d.ts +0 -21
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js +0 -39
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +0 -4
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js +0 -15
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.d.ts +0 -54
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js +0 -82
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.d.ts +0 -21
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js +0 -39
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/ICoreVault__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.d.ts +0 -17
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js +0 -33
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js.map +0 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +0 -3
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +0 -13
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +0 -1
|
@@ -1,296 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InfraredRewards__factory = void 0;
|
|
4
|
-
/* Autogenerated file. Do not edit manually. */
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
const ethers_1 = require("ethers");
|
|
8
|
-
const _abi = [
|
|
9
|
-
{
|
|
10
|
-
inputs: [
|
|
11
|
-
{
|
|
12
|
-
internalType: "address",
|
|
13
|
-
name: "_infraredVault",
|
|
14
|
-
type: "address",
|
|
15
|
-
},
|
|
16
|
-
],
|
|
17
|
-
stateMutability: "nonpayable",
|
|
18
|
-
type: "constructor",
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
inputs: [],
|
|
22
|
-
name: "CantWithdrawRewardToken",
|
|
23
|
-
type: "error",
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
anonymous: false,
|
|
27
|
-
inputs: [
|
|
28
|
-
{
|
|
29
|
-
indexed: false,
|
|
30
|
-
internalType: "uint8",
|
|
31
|
-
name: "version",
|
|
32
|
-
type: "uint8",
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
name: "Initialized",
|
|
36
|
-
type: "event",
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
anonymous: false,
|
|
40
|
-
inputs: [
|
|
41
|
-
{
|
|
42
|
-
indexed: false,
|
|
43
|
-
internalType: "address",
|
|
44
|
-
name: "account",
|
|
45
|
-
type: "address",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
name: "Paused",
|
|
49
|
-
type: "event",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
anonymous: false,
|
|
53
|
-
inputs: [
|
|
54
|
-
{
|
|
55
|
-
indexed: false,
|
|
56
|
-
internalType: "address",
|
|
57
|
-
name: "token",
|
|
58
|
-
type: "address",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
indexed: false,
|
|
62
|
-
internalType: "uint256",
|
|
63
|
-
name: "amount",
|
|
64
|
-
type: "uint256",
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
name: "Recovered",
|
|
68
|
-
type: "event",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
anonymous: false,
|
|
72
|
-
inputs: [
|
|
73
|
-
{
|
|
74
|
-
indexed: true,
|
|
75
|
-
internalType: "address",
|
|
76
|
-
name: "user",
|
|
77
|
-
type: "address",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
indexed: true,
|
|
81
|
-
internalType: "address",
|
|
82
|
-
name: "rewardsToken",
|
|
83
|
-
type: "address",
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
indexed: false,
|
|
87
|
-
internalType: "uint256",
|
|
88
|
-
name: "reward",
|
|
89
|
-
type: "uint256",
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
name: "RewardPaid",
|
|
93
|
-
type: "event",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
anonymous: false,
|
|
97
|
-
inputs: [
|
|
98
|
-
{
|
|
99
|
-
indexed: true,
|
|
100
|
-
internalType: "address",
|
|
101
|
-
name: "user",
|
|
102
|
-
type: "address",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
indexed: false,
|
|
106
|
-
internalType: "uint256",
|
|
107
|
-
name: "amount",
|
|
108
|
-
type: "uint256",
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
name: "Staked",
|
|
112
|
-
type: "event",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
anonymous: false,
|
|
116
|
-
inputs: [
|
|
117
|
-
{
|
|
118
|
-
indexed: false,
|
|
119
|
-
internalType: "address",
|
|
120
|
-
name: "account",
|
|
121
|
-
type: "address",
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
name: "Unpaused",
|
|
125
|
-
type: "event",
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
anonymous: false,
|
|
129
|
-
inputs: [
|
|
130
|
-
{
|
|
131
|
-
indexed: true,
|
|
132
|
-
internalType: "address",
|
|
133
|
-
name: "user",
|
|
134
|
-
type: "address",
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
indexed: false,
|
|
138
|
-
internalType: "uint256",
|
|
139
|
-
name: "amount",
|
|
140
|
-
type: "uint256",
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
name: "Withdrawn",
|
|
144
|
-
type: "event",
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
inputs: [
|
|
148
|
-
{
|
|
149
|
-
internalType: "address",
|
|
150
|
-
name: "",
|
|
151
|
-
type: "address",
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
name: "_shares",
|
|
155
|
-
outputs: [
|
|
156
|
-
{
|
|
157
|
-
internalType: "uint256",
|
|
158
|
-
name: "shares",
|
|
159
|
-
type: "uint256",
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
internalType: "uint256",
|
|
163
|
-
name: "lastUpdateTime",
|
|
164
|
-
type: "uint256",
|
|
165
|
-
},
|
|
166
|
-
],
|
|
167
|
-
stateMutability: "view",
|
|
168
|
-
type: "function",
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
inputs: [
|
|
172
|
-
{
|
|
173
|
-
internalType: "address",
|
|
174
|
-
name: "account",
|
|
175
|
-
type: "address",
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
internalType: "address",
|
|
179
|
-
name: "_rewardsToken",
|
|
180
|
-
type: "address",
|
|
181
|
-
},
|
|
182
|
-
],
|
|
183
|
-
name: "earned",
|
|
184
|
-
outputs: [
|
|
185
|
-
{
|
|
186
|
-
internalType: "uint256",
|
|
187
|
-
name: "",
|
|
188
|
-
type: "uint256",
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
stateMutability: "view",
|
|
192
|
-
type: "function",
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
inputs: [],
|
|
196
|
-
name: "infraredVault",
|
|
197
|
-
outputs: [
|
|
198
|
-
{
|
|
199
|
-
internalType: "contract IInfraredVault",
|
|
200
|
-
name: "",
|
|
201
|
-
type: "address",
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
stateMutability: "view",
|
|
205
|
-
type: "function",
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
inputs: [],
|
|
209
|
-
name: "paused",
|
|
210
|
-
outputs: [
|
|
211
|
-
{
|
|
212
|
-
internalType: "bool",
|
|
213
|
-
name: "",
|
|
214
|
-
type: "bool",
|
|
215
|
-
},
|
|
216
|
-
],
|
|
217
|
-
stateMutability: "view",
|
|
218
|
-
type: "function",
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
inputs: [
|
|
222
|
-
{
|
|
223
|
-
internalType: "address",
|
|
224
|
-
name: "account",
|
|
225
|
-
type: "address",
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
name: "shareOf",
|
|
229
|
-
outputs: [
|
|
230
|
-
{
|
|
231
|
-
internalType: "uint256",
|
|
232
|
-
name: "_share",
|
|
233
|
-
type: "uint256",
|
|
234
|
-
},
|
|
235
|
-
],
|
|
236
|
-
stateMutability: "view",
|
|
237
|
-
type: "function",
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
inputs: [],
|
|
241
|
-
name: "totalShares",
|
|
242
|
-
outputs: [
|
|
243
|
-
{
|
|
244
|
-
internalType: "uint256",
|
|
245
|
-
name: "",
|
|
246
|
-
type: "uint256",
|
|
247
|
-
},
|
|
248
|
-
],
|
|
249
|
-
stateMutability: "view",
|
|
250
|
-
type: "function",
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
inputs: [],
|
|
254
|
-
name: "totalStaked",
|
|
255
|
-
outputs: [
|
|
256
|
-
{
|
|
257
|
-
internalType: "uint256",
|
|
258
|
-
name: "",
|
|
259
|
-
type: "uint256",
|
|
260
|
-
},
|
|
261
|
-
],
|
|
262
|
-
stateMutability: "view",
|
|
263
|
-
type: "function",
|
|
264
|
-
},
|
|
265
|
-
];
|
|
266
|
-
const _bytecode = "0x60a034606e57601f6105e638819003918201601f19168301916001600160401b03831184841017607357808492602094604052833981010312606e57516001600160a01b03811690819003606e5760805260405161055c908161008a823960805181818160e501526103280152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe6080604052600436101561001257600080fd5b60003560e01c8063211dc32d146101d357806321e5e2c4146101555780633a98ef39146101375780635c975abb146101145780636ab3b0e5146100cf578063817b1cd2146100b15763b34c8caf1461006957600080fd5b346100ac5760203660031901126100ac576001600160a01b0361008a61020c565b1660005260656020526040806000206001815491015482519182526020820152f35b600080fd5b346100ac5760003660031901126100ac576020606654604051908152f35b346100ac5760003660031901126100ac576040517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03168152602090f35b346100ac5760003660031901126100ac57602060ff603354166040519015158152f35b346100ac5760003660031901126100ac576020606754604051908152f35b346100ac5760203660031901126100ac576001600160a01b0361017661020c565b166000526065602052604060002054670de0b6b3a7640000810290808204670de0b6b3a764000014901517156101bd576101b560209160675490610279565b604051908152f35b634e487b7160e01b600052601160045260246000fd5b346100ac5760403660031901126100ac576101ec61020c565b602435906001600160a01b03821682036100ac576020916101b591610299565b600435906001600160a01b03821682036100ac57565b919082039182116101bd57565b818102929181159184041417156101bd57565b919082018092116101bd57565b80518210156102635760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b8115610283570490565b634e487b7160e01b600052601260045260246000fd5b6102ec9060018060a01b03168060005260656020526102e66102c360016040600020015442610222565b82600052606560205260406000205492600052606960205260406000205461022f565b90610242565b61030a6102fb60685442610222565b6102e66067549160665461022f565b60405163150b82a360e11b81523060048201529091906000816024817f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03165afa9081156104e2576000916103ca575b5060005b81518110156103c0576001600160a01b03610380828461024f565b5151166001600160a01b0386161461039a57600101610365565b6103bd94506103af6020916103b8949361024f565b5101519061022f565b610279565b90565b5050505050600090565b903d8082843e6103da81846104ee565b8201916020818403126104de5780519067ffffffffffffffff82116104c6570182601f820112156104de5780519167ffffffffffffffff83116104ca576040519361042b60208560051b01866104ee565b83855260208086019460061b840101928184116104c657602001935b83851061045957505050505038610361565b6040858303126104c6576040516040810181811067ffffffffffffffff8211176104b25760405285516001600160a01b03811681036104ae579181604093602093528288015183820152815201940193610447565b8480fd5b634e487b7160e01b85526041600452602485fd5b8280fd5b634e487b7160e01b81526041600452602490fd5b5080fd5b6040513d6000823e3d90fd5b90601f8019910116810190811067ffffffffffffffff82111761051057604052565b634e487b7160e01b600052604160045260246000fdfea26469706673582212200f371aba85a8804c62a5bdb692de7e6bebd26a22d3d88c7132a27ff8147f775664736f6c634300081a0033";
|
|
267
|
-
const isSuperArgs = (xs) => xs.length > 1;
|
|
268
|
-
class InfraredRewards__factory extends ethers_1.ContractFactory {
|
|
269
|
-
constructor(...args) {
|
|
270
|
-
if (isSuperArgs(args)) {
|
|
271
|
-
super(...args);
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
super(_abi, _bytecode, args[0]);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
getDeployTransaction(_infraredVault, overrides) {
|
|
278
|
-
return super.getDeployTransaction(_infraredVault, overrides || {});
|
|
279
|
-
}
|
|
280
|
-
deploy(_infraredVault, overrides) {
|
|
281
|
-
return super.deploy(_infraredVault, overrides || {});
|
|
282
|
-
}
|
|
283
|
-
connect(runner) {
|
|
284
|
-
return super.connect(runner);
|
|
285
|
-
}
|
|
286
|
-
static createInterface() {
|
|
287
|
-
return new ethers_1.Interface(_abi);
|
|
288
|
-
}
|
|
289
|
-
static connect(address, runner) {
|
|
290
|
-
return new ethers_1.Contract(address, _abi, runner);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
exports.InfraredRewards__factory = InfraredRewards__factory;
|
|
294
|
-
InfraredRewards__factory.bytecode = _bytecode;
|
|
295
|
-
InfraredRewards__factory.abi = _abi;
|
|
296
|
-
//# sourceMappingURL=InfraredRewards__factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfraredRewards__factory.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/contracts/Infrared/InfraredRewards__factory.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IAAI,EAAE,CAIlD,CAAC;IACJ,CAAC;IACQ,OAAO,CAAC,MAA6B;QAC5C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAA6B,CAAC;IAC3D,CAAC;IAID,MAAM,CAAC,eAAe;QACpB,OAAO,IAAI,kBAAS,CAAC,IAAI,CAA6B,CAAC;IACzD,CAAC;IACD,MAAM,CAAC,OAAO,CACZ,OAAe,EACf,MAA8B;QAE9B,OAAO,IAAI,iBAAQ,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAA+B,CAAC;IAC3E,CAAC;;AAvCH,4DAwCC;AAXiB,iCAAQ,GAAG,SAAS,CAAC;AACrB,4BAAG,GAAG,IAAI,CAAC"}
|
package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.d.ts
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { type ContractRunner } from "ethers";
|
|
2
|
-
import type { TimeWeightedMultiRewards, TimeWeightedMultiRewardsInterface } from "../../../contracts/Infrared/TimeWeightedMultiRewards";
|
|
3
|
-
export declare class TimeWeightedMultiRewards__factory {
|
|
4
|
-
static readonly abi: readonly [{
|
|
5
|
-
readonly inputs: readonly [];
|
|
6
|
-
readonly name: "CantWithdrawRewardToken";
|
|
7
|
-
readonly type: "error";
|
|
8
|
-
}, {
|
|
9
|
-
readonly anonymous: false;
|
|
10
|
-
readonly inputs: readonly [{
|
|
11
|
-
readonly indexed: false;
|
|
12
|
-
readonly internalType: "uint8";
|
|
13
|
-
readonly name: "version";
|
|
14
|
-
readonly type: "uint8";
|
|
15
|
-
}];
|
|
16
|
-
readonly name: "Initialized";
|
|
17
|
-
readonly type: "event";
|
|
18
|
-
}, {
|
|
19
|
-
readonly anonymous: false;
|
|
20
|
-
readonly inputs: readonly [{
|
|
21
|
-
readonly indexed: false;
|
|
22
|
-
readonly internalType: "address";
|
|
23
|
-
readonly name: "account";
|
|
24
|
-
readonly type: "address";
|
|
25
|
-
}];
|
|
26
|
-
readonly name: "Paused";
|
|
27
|
-
readonly type: "event";
|
|
28
|
-
}, {
|
|
29
|
-
readonly anonymous: false;
|
|
30
|
-
readonly inputs: readonly [{
|
|
31
|
-
readonly indexed: false;
|
|
32
|
-
readonly internalType: "address";
|
|
33
|
-
readonly name: "token";
|
|
34
|
-
readonly type: "address";
|
|
35
|
-
}, {
|
|
36
|
-
readonly indexed: false;
|
|
37
|
-
readonly internalType: "uint256";
|
|
38
|
-
readonly name: "amount";
|
|
39
|
-
readonly type: "uint256";
|
|
40
|
-
}];
|
|
41
|
-
readonly name: "Recovered";
|
|
42
|
-
readonly type: "event";
|
|
43
|
-
}, {
|
|
44
|
-
readonly anonymous: false;
|
|
45
|
-
readonly inputs: readonly [{
|
|
46
|
-
readonly indexed: true;
|
|
47
|
-
readonly internalType: "address";
|
|
48
|
-
readonly name: "rewardsToken";
|
|
49
|
-
readonly type: "address";
|
|
50
|
-
}, {
|
|
51
|
-
readonly indexed: false;
|
|
52
|
-
readonly internalType: "uint256";
|
|
53
|
-
readonly name: "reward";
|
|
54
|
-
readonly type: "uint256";
|
|
55
|
-
}];
|
|
56
|
-
readonly name: "RewardAdded";
|
|
57
|
-
readonly type: "event";
|
|
58
|
-
}, {
|
|
59
|
-
readonly anonymous: false;
|
|
60
|
-
readonly inputs: readonly [{
|
|
61
|
-
readonly indexed: true;
|
|
62
|
-
readonly internalType: "address";
|
|
63
|
-
readonly name: "user";
|
|
64
|
-
readonly type: "address";
|
|
65
|
-
}, {
|
|
66
|
-
readonly indexed: true;
|
|
67
|
-
readonly internalType: "address";
|
|
68
|
-
readonly name: "rewardsToken";
|
|
69
|
-
readonly type: "address";
|
|
70
|
-
}, {
|
|
71
|
-
readonly indexed: false;
|
|
72
|
-
readonly internalType: "uint256";
|
|
73
|
-
readonly name: "reward";
|
|
74
|
-
readonly type: "uint256";
|
|
75
|
-
}];
|
|
76
|
-
readonly name: "RewardPaid";
|
|
77
|
-
readonly type: "event";
|
|
78
|
-
}, {
|
|
79
|
-
readonly anonymous: false;
|
|
80
|
-
readonly inputs: readonly [{
|
|
81
|
-
readonly indexed: true;
|
|
82
|
-
readonly internalType: "address";
|
|
83
|
-
readonly name: "user";
|
|
84
|
-
readonly type: "address";
|
|
85
|
-
}, {
|
|
86
|
-
readonly indexed: false;
|
|
87
|
-
readonly internalType: "uint256";
|
|
88
|
-
readonly name: "amount";
|
|
89
|
-
readonly type: "uint256";
|
|
90
|
-
}];
|
|
91
|
-
readonly name: "Staked";
|
|
92
|
-
readonly type: "event";
|
|
93
|
-
}, {
|
|
94
|
-
readonly anonymous: false;
|
|
95
|
-
readonly inputs: readonly [{
|
|
96
|
-
readonly indexed: false;
|
|
97
|
-
readonly internalType: "address";
|
|
98
|
-
readonly name: "account";
|
|
99
|
-
readonly type: "address";
|
|
100
|
-
}];
|
|
101
|
-
readonly name: "Unpaused";
|
|
102
|
-
readonly type: "event";
|
|
103
|
-
}, {
|
|
104
|
-
readonly anonymous: false;
|
|
105
|
-
readonly inputs: readonly [{
|
|
106
|
-
readonly indexed: true;
|
|
107
|
-
readonly internalType: "address";
|
|
108
|
-
readonly name: "user";
|
|
109
|
-
readonly type: "address";
|
|
110
|
-
}, {
|
|
111
|
-
readonly indexed: false;
|
|
112
|
-
readonly internalType: "uint256";
|
|
113
|
-
readonly name: "amount";
|
|
114
|
-
readonly type: "uint256";
|
|
115
|
-
}];
|
|
116
|
-
readonly name: "Withdrawn";
|
|
117
|
-
readonly type: "event";
|
|
118
|
-
}, {
|
|
119
|
-
readonly inputs: readonly [{
|
|
120
|
-
readonly internalType: "address";
|
|
121
|
-
readonly name: "";
|
|
122
|
-
readonly type: "address";
|
|
123
|
-
}];
|
|
124
|
-
readonly name: "_shares";
|
|
125
|
-
readonly outputs: readonly [{
|
|
126
|
-
readonly internalType: "uint256";
|
|
127
|
-
readonly name: "shares";
|
|
128
|
-
readonly type: "uint256";
|
|
129
|
-
}, {
|
|
130
|
-
readonly internalType: "uint256";
|
|
131
|
-
readonly name: "lastUpdateTime";
|
|
132
|
-
readonly type: "uint256";
|
|
133
|
-
}];
|
|
134
|
-
readonly stateMutability: "view";
|
|
135
|
-
readonly type: "function";
|
|
136
|
-
}, {
|
|
137
|
-
readonly inputs: readonly [{
|
|
138
|
-
readonly internalType: "address";
|
|
139
|
-
readonly name: "account";
|
|
140
|
-
readonly type: "address";
|
|
141
|
-
}, {
|
|
142
|
-
readonly internalType: "address";
|
|
143
|
-
readonly name: "_rewardsToken";
|
|
144
|
-
readonly type: "address";
|
|
145
|
-
}];
|
|
146
|
-
readonly name: "earned";
|
|
147
|
-
readonly outputs: readonly [{
|
|
148
|
-
readonly internalType: "uint256";
|
|
149
|
-
readonly name: "";
|
|
150
|
-
readonly type: "uint256";
|
|
151
|
-
}];
|
|
152
|
-
readonly stateMutability: "view";
|
|
153
|
-
readonly type: "function";
|
|
154
|
-
}, {
|
|
155
|
-
readonly inputs: readonly [];
|
|
156
|
-
readonly name: "getReward";
|
|
157
|
-
readonly outputs: readonly [];
|
|
158
|
-
readonly stateMutability: "nonpayable";
|
|
159
|
-
readonly type: "function";
|
|
160
|
-
}, {
|
|
161
|
-
readonly inputs: readonly [{
|
|
162
|
-
readonly internalType: "address";
|
|
163
|
-
readonly name: "_user";
|
|
164
|
-
readonly type: "address";
|
|
165
|
-
}];
|
|
166
|
-
readonly name: "getRewardForUser";
|
|
167
|
-
readonly outputs: readonly [];
|
|
168
|
-
readonly stateMutability: "nonpayable";
|
|
169
|
-
readonly type: "function";
|
|
170
|
-
}, {
|
|
171
|
-
readonly inputs: readonly [];
|
|
172
|
-
readonly name: "paused";
|
|
173
|
-
readonly outputs: readonly [{
|
|
174
|
-
readonly internalType: "bool";
|
|
175
|
-
readonly name: "";
|
|
176
|
-
readonly type: "bool";
|
|
177
|
-
}];
|
|
178
|
-
readonly stateMutability: "view";
|
|
179
|
-
readonly type: "function";
|
|
180
|
-
}, {
|
|
181
|
-
readonly inputs: readonly [{
|
|
182
|
-
readonly internalType: "uint256";
|
|
183
|
-
readonly name: "index";
|
|
184
|
-
readonly type: "uint256";
|
|
185
|
-
}];
|
|
186
|
-
readonly name: "rewardTokens";
|
|
187
|
-
readonly outputs: readonly [{
|
|
188
|
-
readonly internalType: "address";
|
|
189
|
-
readonly name: "";
|
|
190
|
-
readonly type: "address";
|
|
191
|
-
}];
|
|
192
|
-
readonly stateMutability: "view";
|
|
193
|
-
readonly type: "function";
|
|
194
|
-
}, {
|
|
195
|
-
readonly inputs: readonly [{
|
|
196
|
-
readonly internalType: "address";
|
|
197
|
-
readonly name: "account";
|
|
198
|
-
readonly type: "address";
|
|
199
|
-
}];
|
|
200
|
-
readonly name: "shareOf";
|
|
201
|
-
readonly outputs: readonly [{
|
|
202
|
-
readonly internalType: "uint256";
|
|
203
|
-
readonly name: "_share";
|
|
204
|
-
readonly type: "uint256";
|
|
205
|
-
}];
|
|
206
|
-
readonly stateMutability: "view";
|
|
207
|
-
readonly type: "function";
|
|
208
|
-
}, {
|
|
209
|
-
readonly inputs: readonly [];
|
|
210
|
-
readonly name: "stakingToken";
|
|
211
|
-
readonly outputs: readonly [{
|
|
212
|
-
readonly internalType: "contract ERC20";
|
|
213
|
-
readonly name: "";
|
|
214
|
-
readonly type: "address";
|
|
215
|
-
}];
|
|
216
|
-
readonly stateMutability: "view";
|
|
217
|
-
readonly type: "function";
|
|
218
|
-
}, {
|
|
219
|
-
readonly inputs: readonly [];
|
|
220
|
-
readonly name: "totalShares";
|
|
221
|
-
readonly outputs: readonly [{
|
|
222
|
-
readonly internalType: "uint256";
|
|
223
|
-
readonly name: "";
|
|
224
|
-
readonly type: "uint256";
|
|
225
|
-
}];
|
|
226
|
-
readonly stateMutability: "view";
|
|
227
|
-
readonly type: "function";
|
|
228
|
-
}, {
|
|
229
|
-
readonly inputs: readonly [];
|
|
230
|
-
readonly name: "totalStaked";
|
|
231
|
-
readonly outputs: readonly [{
|
|
232
|
-
readonly internalType: "uint256";
|
|
233
|
-
readonly name: "";
|
|
234
|
-
readonly type: "uint256";
|
|
235
|
-
}];
|
|
236
|
-
readonly stateMutability: "view";
|
|
237
|
-
readonly type: "function";
|
|
238
|
-
}];
|
|
239
|
-
static createInterface(): TimeWeightedMultiRewardsInterface;
|
|
240
|
-
static connect(address: string, runner?: ContractRunner | null): TimeWeightedMultiRewards;
|
|
241
|
-
}
|