@meterio/sumer-js 0.2.117 → 0.2.118
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 +55 -346
- package/dist/nodejs/abi.js +10123 -15862
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/arbitrum.d.ts +0 -1
- package/dist/nodejs/constants/arbitrum.js +1 -2
- package/dist/nodejs/constants/arbitrum.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +5 -0
- package/dist/nodejs/constants/beramain.js +50 -11
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/constants/core.d.ts +4 -0
- package/dist/nodejs/constants/core.js +37 -10
- package/dist/nodejs/constants/core.js.map +1 -1
- package/dist/nodejs/constants/hemi.d.ts +79 -0
- package/dist/nodejs/constants/hemi.js +180 -0
- package/dist/nodejs/constants/hemi.js.map +1 -0
- package/dist/nodejs/constants/monadtest.js +1 -1
- package/dist/nodejs/constants/zklink.d.ts +4 -4
- package/dist/nodejs/constants/zklink.js +4 -4
- package/dist/nodejs/constants/zklink.js.map +1 -1
- package/dist/nodejs/errorABIs.js +10 -1207
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +55 -346
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -1
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +9 -46
- package/dist/nodejs/typechain/contracts/CToken/CEther.d.ts +33 -74
- package/dist/nodejs/typechain/contracts/CToken/CToken.d.ts +21 -66
- package/dist/nodejs/typechain/contracts/CToken/CTokenStorage.d.ts +16 -20
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +9 -46
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.d.ts +1094 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/IPool.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/IPool.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/IPool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredVault.d.ts +4 -313
- package/dist/nodejs/typechain/contracts/Infrared/IMultiRewards.d.ts +1 -17
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.d.ts +149 -0
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/ITimeWeightedMultiRewards.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.d.ts +186 -0
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/InfraredRewards.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.d.ts +217 -0
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/TimeWeightedMultiRewards.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/IVault.d.ts +55 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/IVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/IVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib.d.ts +20 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/VaultReentrancyLib.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/index.d.ts +4 -4
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.d.ts +33 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerLP.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/ICErc20.d.ts +16 -16
- package/dist/nodejs/typechain/contracts/Interfaces/ICToken.d.ts +16 -20
- package/dist/nodejs/typechain/contracts/Interfaces/ICTokenExternal.sol/ICToken.d.ts +6 -6
- package/dist/nodejs/typechain/contracts/Interfaces/ICompLogic.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/Interfaces/IComptroller.d.ts +76 -5
- package/dist/nodejs/typechain/contracts/Interfaces/IPool.d.ts +41 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPool.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IPool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVault.d.ts +83 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/IVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/index.d.ts +2 -2
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.d.ts +93 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.d.ts +33 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.d.ts +49 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +4 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/FeedPriceOracle.d.ts +91 -1
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/IDualCore.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Oracle/dualCoreAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Oracle/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js +1 -3
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +13 -54
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +16 -72
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +80 -113
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +97 -154
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.d.ts +8 -40
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js +8 -56
- package/dist/nodejs/typechain/factories/contracts/CToken/CTokenStorage__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +65 -92
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +79 -125
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +13 -54
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +16 -72
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.d.ts +67 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js +84 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.d.ts +57 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/CompoundLens__factory.js +71 -1
- 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/RedemptionManager__factory.d.ts +57 -1
- package/dist/nodejs/typechain/factories/contracts/Comptroller/RedemptionManager__factory.js +71 -1
- 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/Infrared/CInfraredVault.sol/CInfraredVault__factory.d.ts +1804 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js +2315 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/CInfraredVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/IPool__factory.d.ts +17 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/IPool__factory.js +33 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/IPool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.d.ts +1 -5
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js +1 -6
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.d.ts +0 -359
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.js +0 -463
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.d.ts +0 -30
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.js +0 -39
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.d.ts +169 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js +229 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/ITimeWeightedMultiRewards__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.d.ts +219 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js +296 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/InfraredRewards__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.d.ts +241 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js +323 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/TimeWeightedMultiRewards__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/IVault__factory.d.ts +38 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/IVault__factory.js +60 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/IVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib__factory.d.ts +26 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib__factory.js +45 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/VaultReentrancyLib__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/VaultReentrancyLib.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/index.d.ts +2 -4
- package/dist/nodejs/typechain/factories/contracts/Infrared/index.js +26 -9
- package/dist/nodejs/typechain/factories/contracts/Infrared/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.d.ts +37 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js +59 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerLP__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.d.ts +8 -40
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.js +8 -56
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.d.ts +2 -14
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js +2 -19
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICTokenExternal.sol/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.d.ts +8 -40
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js +8 -56
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.d.ts +10 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js +13 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/ICompLogic__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.d.ts +86 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js +109 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IComptroller__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPool__factory.d.ts +57 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPool__factory.js +85 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IPool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVault__factory.d.ts +60 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVault__factory.js +89 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/IVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.d.ts +2 -1
- package/dist/nodejs/typechain/factories/contracts/Interfaces/index.js +5 -2
- 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/BalancerLPAdapter.sol/BalancerLPAdapter__factory.d.ts +158 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js +214 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/BalancerLPAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.d.ts +37 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js +59 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerLP__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.d.ts +29 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js +49 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IBalancerVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js +39 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/IPriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.d.ts +4 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js +15 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/BalancerLPAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.d.ts +111 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +144 -1
- 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/dualCoreAdapter.sol/DualCoreAdapter__factory.d.ts +44 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js +69 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/DualCoreAdapter__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js +39 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/IDualCore__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/dualCoreAdapter.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js +2 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/index.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.d.ts +57 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js +71 -1
- package/dist/nodejs/typechain/factories/contracts/SumerErrors__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.d.ts +57 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js +71 -1
- package/dist/nodejs/typechain/factories/contracts/Timelock__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/index.d.ts +0 -1
- package/dist/nodejs/typechain/factories/contracts/index.js +1 -2
- package/dist/nodejs/typechain/factories/contracts/index.js.map +1 -1
- package/dist/nodejs/typechain/hardhat.d.ts +96 -168
- package/dist/nodejs/typechain/index.d.ts +12 -24
- package/dist/nodejs/typechain/index.js +14 -26
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CInfraredVault.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Infrared/CInfraredVault.sol/CInfraredVault.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
3
|
+
export interface IPoolInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "getVault"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "getVault", values?: undefined): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "getVault", data: BytesLike): Result;
|
|
7
|
+
}
|
|
8
|
+
export interface IPool extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): IPool;
|
|
10
|
+
waitForDeployment(): Promise<this>;
|
|
11
|
+
interface: IPoolInterface;
|
|
12
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
16
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
+
getVault: TypedContractMethod<[], [string], "view">;
|
|
22
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
23
|
+
getFunction(nameOrSignature: "getVault"): TypedContractMethod<[], [string], "view">;
|
|
24
|
+
filters: {};
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IPool.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Infrared/CInfraredVault.sol/IPool.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/typechain/contracts/Infrared/CInfraredVault.sol/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface,
|
|
2
|
-
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog,
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export declare namespace IInfraredVault {
|
|
4
4
|
type UserRewardStruct = {
|
|
5
5
|
token: AddressLike;
|
|
@@ -11,166 +11,20 @@ export declare namespace IInfraredVault {
|
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export interface IInfraredVaultInterface extends Interface {
|
|
14
|
-
getFunction(nameOrSignature: "
|
|
15
|
-
getEvent(nameOrSignatureOrTopic: "Recovered" | "RewardAdded" | "RewardPaid" | "RewardStored" | "RewardsDistributorUpdated" | "RewardsDurationUpdated" | "Staked" | "Withdrawn"): EventFragment;
|
|
16
|
-
encodeFunctionData(functionFragment: "addReward", values: [AddressLike, BigNumberish]): string;
|
|
17
|
-
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
18
|
-
encodeFunctionData(functionFragment: "earned", values: [AddressLike, AddressLike]): string;
|
|
19
|
-
encodeFunctionData(functionFragment: "exit", values?: undefined): string;
|
|
14
|
+
getFunction(nameOrSignature: "getAllRewardTokens" | "getAllRewardsForUser" | "getRewardForUser" | "stake" | "stakingToken" | "withdraw"): FunctionFragment;
|
|
20
15
|
encodeFunctionData(functionFragment: "getAllRewardTokens", values?: undefined): string;
|
|
21
16
|
encodeFunctionData(functionFragment: "getAllRewardsForUser", values: [AddressLike]): string;
|
|
22
|
-
encodeFunctionData(functionFragment: "getReward", values?: undefined): string;
|
|
23
|
-
encodeFunctionData(functionFragment: "getRewardForDuration", values: [AddressLike]): string;
|
|
24
17
|
encodeFunctionData(functionFragment: "getRewardForUser", values: [AddressLike]): string;
|
|
25
|
-
encodeFunctionData(functionFragment: "infrared", values?: undefined): string;
|
|
26
|
-
encodeFunctionData(functionFragment: "lastTimeRewardApplicable", values: [AddressLike]): string;
|
|
27
|
-
encodeFunctionData(functionFragment: "notifyRewardAmount", values: [AddressLike, BigNumberish]): string;
|
|
28
|
-
encodeFunctionData(functionFragment: "recoverERC20", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
29
|
-
encodeFunctionData(functionFragment: "rewardData", values: [AddressLike]): string;
|
|
30
|
-
encodeFunctionData(functionFragment: "rewardPerToken", values: [AddressLike]): string;
|
|
31
|
-
encodeFunctionData(functionFragment: "rewardTokens", values: [BigNumberish]): string;
|
|
32
|
-
encodeFunctionData(functionFragment: "rewardsVault", values?: undefined): string;
|
|
33
18
|
encodeFunctionData(functionFragment: "stake", values: [BigNumberish]): string;
|
|
34
19
|
encodeFunctionData(functionFragment: "stakingToken", values?: undefined): string;
|
|
35
|
-
encodeFunctionData(functionFragment: "togglePause", values?: undefined): string;
|
|
36
|
-
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
37
|
-
encodeFunctionData(functionFragment: "updateRewardsDuration", values: [AddressLike, BigNumberish]): string;
|
|
38
20
|
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
|
|
39
|
-
decodeFunctionResult(functionFragment: "addReward", data: BytesLike): Result;
|
|
40
|
-
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
41
|
-
decodeFunctionResult(functionFragment: "earned", data: BytesLike): Result;
|
|
42
|
-
decodeFunctionResult(functionFragment: "exit", data: BytesLike): Result;
|
|
43
21
|
decodeFunctionResult(functionFragment: "getAllRewardTokens", data: BytesLike): Result;
|
|
44
22
|
decodeFunctionResult(functionFragment: "getAllRewardsForUser", data: BytesLike): Result;
|
|
45
|
-
decodeFunctionResult(functionFragment: "getReward", data: BytesLike): Result;
|
|
46
|
-
decodeFunctionResult(functionFragment: "getRewardForDuration", data: BytesLike): Result;
|
|
47
23
|
decodeFunctionResult(functionFragment: "getRewardForUser", data: BytesLike): Result;
|
|
48
|
-
decodeFunctionResult(functionFragment: "infrared", data: BytesLike): Result;
|
|
49
|
-
decodeFunctionResult(functionFragment: "lastTimeRewardApplicable", data: BytesLike): Result;
|
|
50
|
-
decodeFunctionResult(functionFragment: "notifyRewardAmount", data: BytesLike): Result;
|
|
51
|
-
decodeFunctionResult(functionFragment: "recoverERC20", data: BytesLike): Result;
|
|
52
|
-
decodeFunctionResult(functionFragment: "rewardData", data: BytesLike): Result;
|
|
53
|
-
decodeFunctionResult(functionFragment: "rewardPerToken", data: BytesLike): Result;
|
|
54
|
-
decodeFunctionResult(functionFragment: "rewardTokens", data: BytesLike): Result;
|
|
55
|
-
decodeFunctionResult(functionFragment: "rewardsVault", data: BytesLike): Result;
|
|
56
24
|
decodeFunctionResult(functionFragment: "stake", data: BytesLike): Result;
|
|
57
25
|
decodeFunctionResult(functionFragment: "stakingToken", data: BytesLike): Result;
|
|
58
|
-
decodeFunctionResult(functionFragment: "togglePause", data: BytesLike): Result;
|
|
59
|
-
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
60
|
-
decodeFunctionResult(functionFragment: "updateRewardsDuration", data: BytesLike): Result;
|
|
61
26
|
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
62
27
|
}
|
|
63
|
-
export declare namespace RecoveredEvent {
|
|
64
|
-
type InputTuple = [token: AddressLike, amount: BigNumberish];
|
|
65
|
-
type OutputTuple = [token: string, amount: bigint];
|
|
66
|
-
interface OutputObject {
|
|
67
|
-
token: string;
|
|
68
|
-
amount: bigint;
|
|
69
|
-
}
|
|
70
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
71
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
72
|
-
type Log = TypedEventLog<Event>;
|
|
73
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
74
|
-
}
|
|
75
|
-
export declare namespace RewardAddedEvent {
|
|
76
|
-
type InputTuple = [rewardsToken: AddressLike, reward: BigNumberish];
|
|
77
|
-
type OutputTuple = [rewardsToken: string, reward: bigint];
|
|
78
|
-
interface OutputObject {
|
|
79
|
-
rewardsToken: string;
|
|
80
|
-
reward: bigint;
|
|
81
|
-
}
|
|
82
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
83
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
84
|
-
type Log = TypedEventLog<Event>;
|
|
85
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
86
|
-
}
|
|
87
|
-
export declare namespace RewardPaidEvent {
|
|
88
|
-
type InputTuple = [
|
|
89
|
-
user: AddressLike,
|
|
90
|
-
rewardsToken: AddressLike,
|
|
91
|
-
reward: BigNumberish
|
|
92
|
-
];
|
|
93
|
-
type OutputTuple = [
|
|
94
|
-
user: string,
|
|
95
|
-
rewardsToken: string,
|
|
96
|
-
reward: bigint
|
|
97
|
-
];
|
|
98
|
-
interface OutputObject {
|
|
99
|
-
user: string;
|
|
100
|
-
rewardsToken: string;
|
|
101
|
-
reward: bigint;
|
|
102
|
-
}
|
|
103
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
104
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
105
|
-
type Log = TypedEventLog<Event>;
|
|
106
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
107
|
-
}
|
|
108
|
-
export declare namespace RewardStoredEvent {
|
|
109
|
-
type InputTuple = [
|
|
110
|
-
rewardsToken: AddressLike,
|
|
111
|
-
rewardsDuration: BigNumberish
|
|
112
|
-
];
|
|
113
|
-
type OutputTuple = [rewardsToken: string, rewardsDuration: bigint];
|
|
114
|
-
interface OutputObject {
|
|
115
|
-
rewardsToken: string;
|
|
116
|
-
rewardsDuration: bigint;
|
|
117
|
-
}
|
|
118
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
119
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
120
|
-
type Log = TypedEventLog<Event>;
|
|
121
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
122
|
-
}
|
|
123
|
-
export declare namespace RewardsDistributorUpdatedEvent {
|
|
124
|
-
type InputTuple = [
|
|
125
|
-
rewardsToken: AddressLike,
|
|
126
|
-
newDistributor: AddressLike
|
|
127
|
-
];
|
|
128
|
-
type OutputTuple = [rewardsToken: string, newDistributor: string];
|
|
129
|
-
interface OutputObject {
|
|
130
|
-
rewardsToken: string;
|
|
131
|
-
newDistributor: string;
|
|
132
|
-
}
|
|
133
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
134
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
135
|
-
type Log = TypedEventLog<Event>;
|
|
136
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
137
|
-
}
|
|
138
|
-
export declare namespace RewardsDurationUpdatedEvent {
|
|
139
|
-
type InputTuple = [token: AddressLike, newDuration: BigNumberish];
|
|
140
|
-
type OutputTuple = [token: string, newDuration: bigint];
|
|
141
|
-
interface OutputObject {
|
|
142
|
-
token: string;
|
|
143
|
-
newDuration: bigint;
|
|
144
|
-
}
|
|
145
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
146
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
147
|
-
type Log = TypedEventLog<Event>;
|
|
148
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
149
|
-
}
|
|
150
|
-
export declare namespace StakedEvent {
|
|
151
|
-
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
152
|
-
type OutputTuple = [user: string, amount: bigint];
|
|
153
|
-
interface OutputObject {
|
|
154
|
-
user: string;
|
|
155
|
-
amount: bigint;
|
|
156
|
-
}
|
|
157
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
158
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
159
|
-
type Log = TypedEventLog<Event>;
|
|
160
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
161
|
-
}
|
|
162
|
-
export declare namespace WithdrawnEvent {
|
|
163
|
-
type InputTuple = [user: AddressLike, amount: BigNumberish];
|
|
164
|
-
type OutputTuple = [user: string, amount: bigint];
|
|
165
|
-
interface OutputObject {
|
|
166
|
-
user: string;
|
|
167
|
-
amount: bigint;
|
|
168
|
-
}
|
|
169
|
-
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
170
|
-
type Filter = TypedDeferredTopicFilter<Event>;
|
|
171
|
-
type Log = TypedEventLog<Event>;
|
|
172
|
-
type LogDescription = TypedLogDescription<Event>;
|
|
173
|
-
}
|
|
174
28
|
export interface IInfraredVault extends BaseContract {
|
|
175
29
|
connect(runner?: ContractRunner | null): IInfraredVault;
|
|
176
30
|
waitForDeployment(): Promise<this>;
|
|
@@ -184,193 +38,30 @@ export interface IInfraredVault extends BaseContract {
|
|
|
184
38
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
185
39
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
186
40
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
187
|
-
addReward: TypedContractMethod<[
|
|
188
|
-
_rewardsToken: AddressLike,
|
|
189
|
-
_rewardsDuration: BigNumberish
|
|
190
|
-
], [
|
|
191
|
-
void
|
|
192
|
-
], "nonpayable">;
|
|
193
|
-
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
194
|
-
earned: TypedContractMethod<[
|
|
195
|
-
account: AddressLike,
|
|
196
|
-
_rewardsToken: AddressLike
|
|
197
|
-
], [
|
|
198
|
-
bigint
|
|
199
|
-
], "view">;
|
|
200
|
-
exit: TypedContractMethod<[], [void], "nonpayable">;
|
|
201
41
|
getAllRewardTokens: TypedContractMethod<[], [string[]], "view">;
|
|
202
42
|
getAllRewardsForUser: TypedContractMethod<[
|
|
203
43
|
_user: AddressLike
|
|
204
44
|
], [
|
|
205
45
|
IInfraredVault.UserRewardStructOutput[]
|
|
206
46
|
], "view">;
|
|
207
|
-
getReward: TypedContractMethod<[], [void], "nonpayable">;
|
|
208
|
-
getRewardForDuration: TypedContractMethod<[
|
|
209
|
-
_rewardsToken: AddressLike
|
|
210
|
-
], [
|
|
211
|
-
bigint
|
|
212
|
-
], "view">;
|
|
213
47
|
getRewardForUser: TypedContractMethod<[
|
|
214
48
|
_user: AddressLike
|
|
215
49
|
], [
|
|
216
50
|
void
|
|
217
51
|
], "nonpayable">;
|
|
218
|
-
infrared: TypedContractMethod<[], [string], "view">;
|
|
219
|
-
lastTimeRewardApplicable: TypedContractMethod<[
|
|
220
|
-
_rewardsToken: AddressLike
|
|
221
|
-
], [
|
|
222
|
-
bigint
|
|
223
|
-
], "view">;
|
|
224
|
-
notifyRewardAmount: TypedContractMethod<[
|
|
225
|
-
_rewardToken: AddressLike,
|
|
226
|
-
_reward: BigNumberish
|
|
227
|
-
], [
|
|
228
|
-
void
|
|
229
|
-
], "nonpayable">;
|
|
230
|
-
recoverERC20: TypedContractMethod<[
|
|
231
|
-
_to: AddressLike,
|
|
232
|
-
_token: AddressLike,
|
|
233
|
-
_amount: BigNumberish
|
|
234
|
-
], [
|
|
235
|
-
void
|
|
236
|
-
], "nonpayable">;
|
|
237
|
-
rewardData: TypedContractMethod<[
|
|
238
|
-
_rewardsToken: AddressLike
|
|
239
|
-
], [
|
|
240
|
-
[
|
|
241
|
-
string,
|
|
242
|
-
bigint,
|
|
243
|
-
bigint,
|
|
244
|
-
bigint,
|
|
245
|
-
bigint,
|
|
246
|
-
bigint,
|
|
247
|
-
bigint
|
|
248
|
-
] & {
|
|
249
|
-
rewardsDistributor: string;
|
|
250
|
-
rewardsDuration: bigint;
|
|
251
|
-
periodFinish: bigint;
|
|
252
|
-
rewardRate: bigint;
|
|
253
|
-
lastUpdateTime: bigint;
|
|
254
|
-
rewardPerTokenStored: bigint;
|
|
255
|
-
rewardResidual: bigint;
|
|
256
|
-
}
|
|
257
|
-
], "view">;
|
|
258
|
-
rewardPerToken: TypedContractMethod<[
|
|
259
|
-
_rewardsToken: AddressLike
|
|
260
|
-
], [
|
|
261
|
-
bigint
|
|
262
|
-
], "view">;
|
|
263
|
-
rewardTokens: TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
264
|
-
rewardsVault: TypedContractMethod<[], [string], "view">;
|
|
265
52
|
stake: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
266
53
|
stakingToken: TypedContractMethod<[], [string], "view">;
|
|
267
|
-
togglePause: TypedContractMethod<[], [void], "nonpayable">;
|
|
268
|
-
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
269
|
-
updateRewardsDuration: TypedContractMethod<[
|
|
270
|
-
_rewardsToken: AddressLike,
|
|
271
|
-
_rewardsDuration: BigNumberish
|
|
272
|
-
], [
|
|
273
|
-
void
|
|
274
|
-
], "nonpayable">;
|
|
275
54
|
withdraw: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
276
55
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
277
|
-
getFunction(nameOrSignature: "addReward"): TypedContractMethod<[
|
|
278
|
-
_rewardsToken: AddressLike,
|
|
279
|
-
_rewardsDuration: BigNumberish
|
|
280
|
-
], [
|
|
281
|
-
void
|
|
282
|
-
], "nonpayable">;
|
|
283
|
-
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
284
|
-
getFunction(nameOrSignature: "earned"): TypedContractMethod<[
|
|
285
|
-
account: AddressLike,
|
|
286
|
-
_rewardsToken: AddressLike
|
|
287
|
-
], [
|
|
288
|
-
bigint
|
|
289
|
-
], "view">;
|
|
290
|
-
getFunction(nameOrSignature: "exit"): TypedContractMethod<[], [void], "nonpayable">;
|
|
291
56
|
getFunction(nameOrSignature: "getAllRewardTokens"): TypedContractMethod<[], [string[]], "view">;
|
|
292
57
|
getFunction(nameOrSignature: "getAllRewardsForUser"): TypedContractMethod<[
|
|
293
58
|
_user: AddressLike
|
|
294
59
|
], [
|
|
295
60
|
IInfraredVault.UserRewardStructOutput[]
|
|
296
61
|
], "view">;
|
|
297
|
-
getFunction(nameOrSignature: "getReward"): TypedContractMethod<[], [void], "nonpayable">;
|
|
298
|
-
getFunction(nameOrSignature: "getRewardForDuration"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
299
62
|
getFunction(nameOrSignature: "getRewardForUser"): TypedContractMethod<[_user: AddressLike], [void], "nonpayable">;
|
|
300
|
-
getFunction(nameOrSignature: "infrared"): TypedContractMethod<[], [string], "view">;
|
|
301
|
-
getFunction(nameOrSignature: "lastTimeRewardApplicable"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
302
|
-
getFunction(nameOrSignature: "notifyRewardAmount"): TypedContractMethod<[
|
|
303
|
-
_rewardToken: AddressLike,
|
|
304
|
-
_reward: BigNumberish
|
|
305
|
-
], [
|
|
306
|
-
void
|
|
307
|
-
], "nonpayable">;
|
|
308
|
-
getFunction(nameOrSignature: "recoverERC20"): TypedContractMethod<[
|
|
309
|
-
_to: AddressLike,
|
|
310
|
-
_token: AddressLike,
|
|
311
|
-
_amount: BigNumberish
|
|
312
|
-
], [
|
|
313
|
-
void
|
|
314
|
-
], "nonpayable">;
|
|
315
|
-
getFunction(nameOrSignature: "rewardData"): TypedContractMethod<[
|
|
316
|
-
_rewardsToken: AddressLike
|
|
317
|
-
], [
|
|
318
|
-
[
|
|
319
|
-
string,
|
|
320
|
-
bigint,
|
|
321
|
-
bigint,
|
|
322
|
-
bigint,
|
|
323
|
-
bigint,
|
|
324
|
-
bigint,
|
|
325
|
-
bigint
|
|
326
|
-
] & {
|
|
327
|
-
rewardsDistributor: string;
|
|
328
|
-
rewardsDuration: bigint;
|
|
329
|
-
periodFinish: bigint;
|
|
330
|
-
rewardRate: bigint;
|
|
331
|
-
lastUpdateTime: bigint;
|
|
332
|
-
rewardPerTokenStored: bigint;
|
|
333
|
-
rewardResidual: bigint;
|
|
334
|
-
}
|
|
335
|
-
], "view">;
|
|
336
|
-
getFunction(nameOrSignature: "rewardPerToken"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
337
|
-
getFunction(nameOrSignature: "rewardTokens"): TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
338
|
-
getFunction(nameOrSignature: "rewardsVault"): TypedContractMethod<[], [string], "view">;
|
|
339
63
|
getFunction(nameOrSignature: "stake"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
340
64
|
getFunction(nameOrSignature: "stakingToken"): TypedContractMethod<[], [string], "view">;
|
|
341
|
-
getFunction(nameOrSignature: "togglePause"): TypedContractMethod<[], [void], "nonpayable">;
|
|
342
|
-
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
343
|
-
getFunction(nameOrSignature: "updateRewardsDuration"): TypedContractMethod<[
|
|
344
|
-
_rewardsToken: AddressLike,
|
|
345
|
-
_rewardsDuration: BigNumberish
|
|
346
|
-
], [
|
|
347
|
-
void
|
|
348
|
-
], "nonpayable">;
|
|
349
65
|
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
350
|
-
|
|
351
|
-
getEvent(key: "RewardAdded"): TypedContractEvent<RewardAddedEvent.InputTuple, RewardAddedEvent.OutputTuple, RewardAddedEvent.OutputObject>;
|
|
352
|
-
getEvent(key: "RewardPaid"): TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
353
|
-
getEvent(key: "RewardStored"): TypedContractEvent<RewardStoredEvent.InputTuple, RewardStoredEvent.OutputTuple, RewardStoredEvent.OutputObject>;
|
|
354
|
-
getEvent(key: "RewardsDistributorUpdated"): TypedContractEvent<RewardsDistributorUpdatedEvent.InputTuple, RewardsDistributorUpdatedEvent.OutputTuple, RewardsDistributorUpdatedEvent.OutputObject>;
|
|
355
|
-
getEvent(key: "RewardsDurationUpdated"): TypedContractEvent<RewardsDurationUpdatedEvent.InputTuple, RewardsDurationUpdatedEvent.OutputTuple, RewardsDurationUpdatedEvent.OutputObject>;
|
|
356
|
-
getEvent(key: "Staked"): TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
|
357
|
-
getEvent(key: "Withdrawn"): TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
|
|
358
|
-
filters: {
|
|
359
|
-
"Recovered(address,uint256)": TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
360
|
-
Recovered: TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
361
|
-
"RewardAdded(address,uint256)": TypedContractEvent<RewardAddedEvent.InputTuple, RewardAddedEvent.OutputTuple, RewardAddedEvent.OutputObject>;
|
|
362
|
-
RewardAdded: TypedContractEvent<RewardAddedEvent.InputTuple, RewardAddedEvent.OutputTuple, RewardAddedEvent.OutputObject>;
|
|
363
|
-
"RewardPaid(address,address,uint256)": TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
364
|
-
RewardPaid: TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|
|
365
|
-
"RewardStored(address,uint256)": TypedContractEvent<RewardStoredEvent.InputTuple, RewardStoredEvent.OutputTuple, RewardStoredEvent.OutputObject>;
|
|
366
|
-
RewardStored: TypedContractEvent<RewardStoredEvent.InputTuple, RewardStoredEvent.OutputTuple, RewardStoredEvent.OutputObject>;
|
|
367
|
-
"RewardsDistributorUpdated(address,address)": TypedContractEvent<RewardsDistributorUpdatedEvent.InputTuple, RewardsDistributorUpdatedEvent.OutputTuple, RewardsDistributorUpdatedEvent.OutputObject>;
|
|
368
|
-
RewardsDistributorUpdated: TypedContractEvent<RewardsDistributorUpdatedEvent.InputTuple, RewardsDistributorUpdatedEvent.OutputTuple, RewardsDistributorUpdatedEvent.OutputObject>;
|
|
369
|
-
"RewardsDurationUpdated(address,uint256)": TypedContractEvent<RewardsDurationUpdatedEvent.InputTuple, RewardsDurationUpdatedEvent.OutputTuple, RewardsDurationUpdatedEvent.OutputObject>;
|
|
370
|
-
RewardsDurationUpdated: TypedContractEvent<RewardsDurationUpdatedEvent.InputTuple, RewardsDurationUpdatedEvent.OutputTuple, RewardsDurationUpdatedEvent.OutputObject>;
|
|
371
|
-
"Staked(address,uint256)": TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
|
372
|
-
Staked: TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
|
373
|
-
"Withdrawn(address,uint256)": TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
|
|
374
|
-
Withdrawn: TypedContractEvent<WithdrawnEvent.InputTuple, WithdrawnEvent.OutputTuple, WithdrawnEvent.OutputObject>;
|
|
375
|
-
};
|
|
66
|
+
filters: {};
|
|
376
67
|
}
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
|
|
3
3
|
export interface IMultiRewardsInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "balanceOf" | "earned" | "exit" | "getReward" | "getRewardForDuration" | "
|
|
4
|
+
getFunction(nameOrSignature: "balanceOf" | "earned" | "exit" | "getReward" | "getRewardForDuration" | "lastTimeRewardApplicable" | "rewardData" | "rewardPerToken" | "rewardTokens" | "totalSupply"): FunctionFragment;
|
|
5
5
|
getEvent(nameOrSignatureOrTopic: "Recovered" | "RewardAdded" | "RewardPaid" | "RewardStored" | "RewardsDistributorUpdated" | "RewardsDurationUpdated" | "Staked" | "Withdrawn"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "earned", values: [AddressLike, AddressLike]): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "exit", values?: undefined): string;
|
|
9
9
|
encodeFunctionData(functionFragment: "getReward", values?: undefined): string;
|
|
10
10
|
encodeFunctionData(functionFragment: "getRewardForDuration", values: [AddressLike]): string;
|
|
11
|
-
encodeFunctionData(functionFragment: "getRewardForUser", values: [AddressLike]): string;
|
|
12
11
|
encodeFunctionData(functionFragment: "lastTimeRewardApplicable", values: [AddressLike]): string;
|
|
13
12
|
encodeFunctionData(functionFragment: "rewardData", values: [AddressLike]): string;
|
|
14
13
|
encodeFunctionData(functionFragment: "rewardPerToken", values: [AddressLike]): string;
|
|
15
14
|
encodeFunctionData(functionFragment: "rewardTokens", values: [BigNumberish]): string;
|
|
16
|
-
encodeFunctionData(functionFragment: "stake", values: [BigNumberish]): string;
|
|
17
15
|
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
18
|
-
encodeFunctionData(functionFragment: "withdraw", values: [BigNumberish]): string;
|
|
19
16
|
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
20
17
|
decodeFunctionResult(functionFragment: "earned", data: BytesLike): Result;
|
|
21
18
|
decodeFunctionResult(functionFragment: "exit", data: BytesLike): Result;
|
|
22
19
|
decodeFunctionResult(functionFragment: "getReward", data: BytesLike): Result;
|
|
23
20
|
decodeFunctionResult(functionFragment: "getRewardForDuration", data: BytesLike): Result;
|
|
24
|
-
decodeFunctionResult(functionFragment: "getRewardForUser", data: BytesLike): Result;
|
|
25
21
|
decodeFunctionResult(functionFragment: "lastTimeRewardApplicable", data: BytesLike): Result;
|
|
26
22
|
decodeFunctionResult(functionFragment: "rewardData", data: BytesLike): Result;
|
|
27
23
|
decodeFunctionResult(functionFragment: "rewardPerToken", data: BytesLike): Result;
|
|
28
24
|
decodeFunctionResult(functionFragment: "rewardTokens", data: BytesLike): Result;
|
|
29
|
-
decodeFunctionResult(functionFragment: "stake", data: BytesLike): Result;
|
|
30
25
|
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
31
|
-
decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
|
|
32
26
|
}
|
|
33
27
|
export declare namespace RecoveredEvent {
|
|
34
28
|
type InputTuple = [token: AddressLike, amount: BigNumberish];
|
|
@@ -168,11 +162,6 @@ export interface IMultiRewards extends BaseContract {
|
|
|
168
162
|
], [
|
|
169
163
|
bigint
|
|
170
164
|
], "view">;
|
|
171
|
-
getRewardForUser: TypedContractMethod<[
|
|
172
|
-
_user: AddressLike
|
|
173
|
-
], [
|
|
174
|
-
void
|
|
175
|
-
], "nonpayable">;
|
|
176
165
|
lastTimeRewardApplicable: TypedContractMethod<[
|
|
177
166
|
_rewardsToken: AddressLike
|
|
178
167
|
], [
|
|
@@ -205,9 +194,7 @@ export interface IMultiRewards extends BaseContract {
|
|
|
205
194
|
bigint
|
|
206
195
|
], "view">;
|
|
207
196
|
rewardTokens: TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
208
|
-
stake: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
209
197
|
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
210
|
-
withdraw: TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
211
198
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
212
199
|
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
213
200
|
getFunction(nameOrSignature: "earned"): TypedContractMethod<[
|
|
@@ -219,7 +206,6 @@ export interface IMultiRewards extends BaseContract {
|
|
|
219
206
|
getFunction(nameOrSignature: "exit"): TypedContractMethod<[], [void], "nonpayable">;
|
|
220
207
|
getFunction(nameOrSignature: "getReward"): TypedContractMethod<[], [void], "nonpayable">;
|
|
221
208
|
getFunction(nameOrSignature: "getRewardForDuration"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
222
|
-
getFunction(nameOrSignature: "getRewardForUser"): TypedContractMethod<[_user: AddressLike], [void], "nonpayable">;
|
|
223
209
|
getFunction(nameOrSignature: "lastTimeRewardApplicable"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
224
210
|
getFunction(nameOrSignature: "rewardData"): TypedContractMethod<[
|
|
225
211
|
_rewardsToken: AddressLike
|
|
@@ -244,9 +230,7 @@ export interface IMultiRewards extends BaseContract {
|
|
|
244
230
|
], "view">;
|
|
245
231
|
getFunction(nameOrSignature: "rewardPerToken"): TypedContractMethod<[_rewardsToken: AddressLike], [bigint], "view">;
|
|
246
232
|
getFunction(nameOrSignature: "rewardTokens"): TypedContractMethod<[index: BigNumberish], [string], "view">;
|
|
247
|
-
getFunction(nameOrSignature: "stake"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
248
233
|
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
249
|
-
getFunction(nameOrSignature: "withdraw"): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
|
|
250
234
|
getEvent(key: "Recovered"): TypedContractEvent<RecoveredEvent.InputTuple, RecoveredEvent.OutputTuple, RecoveredEvent.OutputObject>;
|
|
251
235
|
getEvent(key: "RewardAdded"): TypedContractEvent<RewardAddedEvent.InputTuple, RewardAddedEvent.OutputTuple, RewardAddedEvent.OutputObject>;
|
|
252
236
|
getEvent(key: "RewardPaid"): TypedContractEvent<RewardPaidEvent.InputTuple, RewardPaidEvent.OutputTuple, RewardPaidEvent.OutputObject>;
|