@meterio/sumer-js 0.2.103 → 0.2.105
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 +0 -146
- package/dist/nodejs/abi.js +0 -4151
- package/dist/nodejs/abi.js.map +1 -1
- package/dist/nodejs/constants/beramain.d.ts +6 -0
- package/dist/nodejs/constants/beramain.js +45 -5
- package/dist/nodejs/constants/beramain.js.map +1 -1
- package/dist/nodejs/errorABIs.js +0 -1207
- package/dist/nodejs/errorABIs.js.map +1 -1
- package/dist/nodejs/index.d.ts +0 -146
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.d.ts +69 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.js +3 -0
- package/dist/nodejs/typechain/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Bera/CBeraVault.d.ts +40 -9
- package/dist/nodejs/typechain/contracts/CToken/CErc20.d.ts +1 -5
- package/dist/nodejs/typechain/contracts/CToken/SuErc20.d.ts +1 -5
- package/dist/nodejs/typechain/contracts/Comptroller/CompLogic.d.ts +9 -1
- package/dist/nodejs/typechain/contracts/Comptroller/Comptroller.d.ts +98 -35
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.d.ts +1124 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/CInfraredVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredRewards.d.ts +118 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredRewards.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredVault.d.ts +376 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/IInfraredVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Infrared/IMultiRewards.d.ts +276 -0
- package/dist/nodejs/typechain/contracts/Infrared/IMultiRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/IMultiRewards.js.map +1 -0
- 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/MultiRewards.d.ts +354 -0
- package/dist/nodejs/typechain/contracts/Infrared/MultiRewards.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/MultiRewards.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/index.d.ts +5 -0
- package/dist/nodejs/typechain/contracts/Infrared/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Infrared/index.js.map +1 -0
- 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/Balancer.sol/IBalancerPool.d.ts +37 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerPool.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerPool.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerVault.d.ts +49 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerVault.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/IBalancerVault.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Balancer.sol/index.js.map +1 -0
- 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/Kodiak.sol/IKodiakIsland.d.ts +53 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Kodiak.sol/IKodiakIsland.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Kodiak.sol/IKodiakIsland.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Kodiak.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Kodiak.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/Kodiak.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IPriceOracle.d.ts +25 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IPriceOracle.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IPriceOracle.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair.d.ts +59 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair.js.map +1 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/index.js +3 -0
- package/dist/nodejs/typechain/contracts/Interfaces/UniswapV2.sol/index.js.map +1 -0
- 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 +43 -1
- package/dist/nodejs/typechain/contracts/index.d.ts +0 -2
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.d.ts +47 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.js +72 -0
- package/dist/nodejs/typechain/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.d.ts +39 -11
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js +49 -13
- package/dist/nodejs/typechain/factories/contracts/Bera/CBeraVault__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.d.ts +57 -7
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js +71 -8
- package/dist/nodejs/typechain/factories/contracts/CToken/CErc20__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.d.ts +57 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js +71 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CEther__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.d.ts +56 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js +70 -0
- package/dist/nodejs/typechain/factories/contracts/CToken/CToken__factory.js.map +1 -1
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.d.ts +57 -7
- package/dist/nodejs/typechain/factories/contracts/CToken/SuErc20__factory.js +71 -8
- 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/Comptroller__factory.d.ts +162 -30
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js +203 -35
- package/dist/nodejs/typechain/factories/contracts/Comptroller/Comptroller__factory.js.map +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__factory.d.ts +1887 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js +2444 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/CInfraredVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.d.ts +124 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js +171 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredRewards__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.d.ts +439 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.js +579 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IInfraredVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.d.ts +310 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.js +412 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/IMultiRewards__factory.js.map +1 -0
- 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/MultiRewards__factory.d.ts +396 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/MultiRewards__factory.js +525 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/MultiRewards__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/index.d.ts +5 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/index.js +17 -0
- package/dist/nodejs/typechain/factories/contracts/Infrared/index.js.map +1 -0
- 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/Balancer.sol/IBalancerPool__factory.d.ts +47 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerPool__factory.js +72 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerPool__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerVault__factory.d.ts +29 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerVault__factory.js +49 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/IBalancerVault__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Balancer.sol/index.js.map +1 -0
- 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/Kodiak.sol/IKodiakIsland__factory.d.ts +61 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Kodiak.sol/IKodiakIsland__factory.js +90 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Kodiak.sol/IKodiakIsland__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Kodiak.sol/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Kodiak.sol/index.js +9 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/Kodiak.sol/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IPriceOracle__factory.d.ts +21 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IPriceOracle__factory.js +39 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IPriceOracle__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair__factory.d.ts +55 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair__factory.js +82 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/IUniswapV2Pair__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/index.d.ts +2 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/index.js +11 -0
- package/dist/nodejs/typechain/factories/contracts/Interfaces/UniswapV2.sol/index.js.map +1 -0
- 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 +47 -1
- package/dist/nodejs/typechain/factories/contracts/Oracle/FeedPriceOracle__factory.js +61 -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/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/factories/solmate/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/solmate/index.js +31 -0
- package/dist/nodejs/typechain/factories/solmate/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/solmate/src/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/solmate/src/index.js +31 -0
- package/dist/nodejs/typechain/factories/solmate/src/index.js.map +1 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/ERC20__factory.d.ts +235 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/ERC20__factory.js +317 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/ERC20__factory.js.map +1 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/index.d.ts +1 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/index.js +9 -0
- package/dist/nodejs/typechain/factories/solmate/src/tokens/index.js.map +1 -0
- package/dist/nodejs/typechain/hardhat.d.ts +0 -90
- package/dist/nodejs/typechain/index.d.ts +0 -10
- package/dist/nodejs/typechain/index.js +3 -13
- package/dist/nodejs/typechain/index.js.map +1 -1
- package/dist/nodejs/typechain/solmate/index.d.ts +2 -0
- package/dist/nodejs/typechain/solmate/index.js +3 -0
- package/dist/nodejs/typechain/solmate/index.js.map +1 -0
- package/dist/nodejs/typechain/solmate/src/index.d.ts +2 -0
- package/dist/nodejs/typechain/solmate/src/index.js +3 -0
- package/dist/nodejs/typechain/solmate/src/index.js.map +1 -0
- package/dist/nodejs/typechain/solmate/src/tokens/ERC20.d.ts +181 -0
- package/dist/nodejs/typechain/solmate/src/tokens/ERC20.js +3 -0
- package/dist/nodejs/typechain/solmate/src/tokens/ERC20.js.map +1 -0
- package/dist/nodejs/typechain/solmate/src/tokens/index.d.ts +1 -0
- package/dist/nodejs/typechain/solmate/src/tokens/index.js +3 -0
- package/dist/nodejs/typechain/solmate/src/tokens/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,296 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InfraredRewards__factory.js","sourceRoot":"","sources":["../../../../../../src/typechain/factories/contracts/Infrared/InfraredRewards__factory.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,oBAAoB;AACpB,oBAAoB;AACpB,mCAKgB;AAahB,MAAM,IAAI,GAAG;IACX;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,yBAAyB;QAC/B,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,OAAO;aACd;SACF;QACD,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,OAAO;KACd;IACD;QACE,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACN;gBACE,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YAC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AS,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAClC,CAAC;IACH,CAAC;IAEQ,oBAAoB,CAC3B,cAA2B,EAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,oBAAoB,CAAC,cAAc,EAAE,SAAS,IAAI,EAAE,CAAC,CAAC;IACrE,CAAC;IACQ,MAAM,CACb,cAA2B,EAC3B,SAAmD;QAEnD,OAAO,KAAK,CAAC,MAAM,CAAC,cAAc,EAAE,SAAS,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"}
|
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import { type ContractRunner } from "ethers";
|
|
2
|
+
import type { MultiRewards, MultiRewardsInterface } from "../../../contracts/Infrared/MultiRewards";
|
|
3
|
+
export declare class MultiRewards__factory {
|
|
4
|
+
static readonly abi: readonly [{
|
|
5
|
+
readonly anonymous: false;
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly indexed: false;
|
|
8
|
+
readonly internalType: "uint8";
|
|
9
|
+
readonly name: "version";
|
|
10
|
+
readonly type: "uint8";
|
|
11
|
+
}];
|
|
12
|
+
readonly name: "Initialized";
|
|
13
|
+
readonly type: "event";
|
|
14
|
+
}, {
|
|
15
|
+
readonly anonymous: false;
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly indexed: false;
|
|
18
|
+
readonly internalType: "address";
|
|
19
|
+
readonly name: "account";
|
|
20
|
+
readonly type: "address";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "Paused";
|
|
23
|
+
readonly type: "event";
|
|
24
|
+
}, {
|
|
25
|
+
readonly anonymous: false;
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly indexed: false;
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "token";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly internalType: "uint256";
|
|
34
|
+
readonly name: "amount";
|
|
35
|
+
readonly type: "uint256";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "Recovered";
|
|
38
|
+
readonly type: "event";
|
|
39
|
+
}, {
|
|
40
|
+
readonly anonymous: false;
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "rewardsToken";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly indexed: false;
|
|
48
|
+
readonly internalType: "uint256";
|
|
49
|
+
readonly name: "reward";
|
|
50
|
+
readonly type: "uint256";
|
|
51
|
+
}];
|
|
52
|
+
readonly name: "RewardAdded";
|
|
53
|
+
readonly type: "event";
|
|
54
|
+
}, {
|
|
55
|
+
readonly anonymous: false;
|
|
56
|
+
readonly inputs: readonly [{
|
|
57
|
+
readonly indexed: true;
|
|
58
|
+
readonly internalType: "address";
|
|
59
|
+
readonly name: "user";
|
|
60
|
+
readonly type: "address";
|
|
61
|
+
}, {
|
|
62
|
+
readonly indexed: true;
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly name: "rewardsToken";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly internalType: "uint256";
|
|
69
|
+
readonly name: "reward";
|
|
70
|
+
readonly type: "uint256";
|
|
71
|
+
}];
|
|
72
|
+
readonly name: "RewardPaid";
|
|
73
|
+
readonly type: "event";
|
|
74
|
+
}, {
|
|
75
|
+
readonly anonymous: false;
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly indexed: false;
|
|
78
|
+
readonly internalType: "address";
|
|
79
|
+
readonly name: "rewardsToken";
|
|
80
|
+
readonly type: "address";
|
|
81
|
+
}, {
|
|
82
|
+
readonly indexed: false;
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
readonly name: "rewardsDuration";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}];
|
|
87
|
+
readonly name: "RewardStored";
|
|
88
|
+
readonly type: "event";
|
|
89
|
+
}, {
|
|
90
|
+
readonly anonymous: false;
|
|
91
|
+
readonly inputs: readonly [{
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "address";
|
|
94
|
+
readonly name: "rewardsToken";
|
|
95
|
+
readonly type: "address";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: true;
|
|
98
|
+
readonly internalType: "address";
|
|
99
|
+
readonly name: "newDistributor";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "RewardsDistributorUpdated";
|
|
103
|
+
readonly type: "event";
|
|
104
|
+
}, {
|
|
105
|
+
readonly anonymous: false;
|
|
106
|
+
readonly inputs: readonly [{
|
|
107
|
+
readonly indexed: false;
|
|
108
|
+
readonly internalType: "address";
|
|
109
|
+
readonly name: "token";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}, {
|
|
112
|
+
readonly indexed: false;
|
|
113
|
+
readonly internalType: "uint256";
|
|
114
|
+
readonly name: "newDuration";
|
|
115
|
+
readonly type: "uint256";
|
|
116
|
+
}];
|
|
117
|
+
readonly name: "RewardsDurationUpdated";
|
|
118
|
+
readonly type: "event";
|
|
119
|
+
}, {
|
|
120
|
+
readonly anonymous: false;
|
|
121
|
+
readonly inputs: readonly [{
|
|
122
|
+
readonly indexed: true;
|
|
123
|
+
readonly internalType: "address";
|
|
124
|
+
readonly name: "user";
|
|
125
|
+
readonly type: "address";
|
|
126
|
+
}, {
|
|
127
|
+
readonly indexed: false;
|
|
128
|
+
readonly internalType: "uint256";
|
|
129
|
+
readonly name: "amount";
|
|
130
|
+
readonly type: "uint256";
|
|
131
|
+
}];
|
|
132
|
+
readonly name: "Staked";
|
|
133
|
+
readonly type: "event";
|
|
134
|
+
}, {
|
|
135
|
+
readonly anonymous: false;
|
|
136
|
+
readonly inputs: readonly [{
|
|
137
|
+
readonly indexed: false;
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
readonly name: "account";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "Unpaused";
|
|
143
|
+
readonly type: "event";
|
|
144
|
+
}, {
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: true;
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "user";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly indexed: false;
|
|
153
|
+
readonly internalType: "uint256";
|
|
154
|
+
readonly name: "amount";
|
|
155
|
+
readonly type: "uint256";
|
|
156
|
+
}];
|
|
157
|
+
readonly name: "Withdrawn";
|
|
158
|
+
readonly type: "event";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly internalType: "address";
|
|
162
|
+
readonly name: "account";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "balanceOf";
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly internalType: "uint256";
|
|
168
|
+
readonly name: "_balance";
|
|
169
|
+
readonly type: "uint256";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [{
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly name: "account";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "_rewardsToken";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}];
|
|
183
|
+
readonly name: "earned";
|
|
184
|
+
readonly outputs: readonly [{
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
readonly name: "";
|
|
187
|
+
readonly type: "uint256";
|
|
188
|
+
}];
|
|
189
|
+
readonly stateMutability: "view";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly inputs: readonly [];
|
|
193
|
+
readonly name: "exit";
|
|
194
|
+
readonly outputs: readonly [];
|
|
195
|
+
readonly stateMutability: "nonpayable";
|
|
196
|
+
readonly type: "function";
|
|
197
|
+
}, {
|
|
198
|
+
readonly inputs: readonly [];
|
|
199
|
+
readonly name: "getReward";
|
|
200
|
+
readonly outputs: readonly [];
|
|
201
|
+
readonly stateMutability: "nonpayable";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "_rewardsToken";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}];
|
|
209
|
+
readonly name: "getRewardForDuration";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly internalType: "address";
|
|
220
|
+
readonly name: "_user";
|
|
221
|
+
readonly type: "address";
|
|
222
|
+
}];
|
|
223
|
+
readonly name: "getRewardForUser";
|
|
224
|
+
readonly outputs: readonly [];
|
|
225
|
+
readonly stateMutability: "nonpayable";
|
|
226
|
+
readonly type: "function";
|
|
227
|
+
}, {
|
|
228
|
+
readonly inputs: readonly [{
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
readonly name: "_rewardsToken";
|
|
231
|
+
readonly type: "address";
|
|
232
|
+
}];
|
|
233
|
+
readonly name: "lastTimeRewardApplicable";
|
|
234
|
+
readonly outputs: readonly [{
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
readonly name: "";
|
|
237
|
+
readonly type: "uint256";
|
|
238
|
+
}];
|
|
239
|
+
readonly stateMutability: "view";
|
|
240
|
+
readonly type: "function";
|
|
241
|
+
}, {
|
|
242
|
+
readonly inputs: readonly [];
|
|
243
|
+
readonly name: "paused";
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly internalType: "bool";
|
|
246
|
+
readonly name: "";
|
|
247
|
+
readonly type: "bool";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}, {
|
|
252
|
+
readonly inputs: readonly [{
|
|
253
|
+
readonly internalType: "address";
|
|
254
|
+
readonly name: "";
|
|
255
|
+
readonly type: "address";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "rewardData";
|
|
258
|
+
readonly outputs: readonly [{
|
|
259
|
+
readonly internalType: "address";
|
|
260
|
+
readonly name: "rewardsDistributor";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
}, {
|
|
263
|
+
readonly internalType: "uint256";
|
|
264
|
+
readonly name: "rewardsDuration";
|
|
265
|
+
readonly type: "uint256";
|
|
266
|
+
}, {
|
|
267
|
+
readonly internalType: "uint256";
|
|
268
|
+
readonly name: "periodFinish";
|
|
269
|
+
readonly type: "uint256";
|
|
270
|
+
}, {
|
|
271
|
+
readonly internalType: "uint256";
|
|
272
|
+
readonly name: "rewardRate";
|
|
273
|
+
readonly type: "uint256";
|
|
274
|
+
}, {
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
readonly name: "lastUpdateTime";
|
|
277
|
+
readonly type: "uint256";
|
|
278
|
+
}, {
|
|
279
|
+
readonly internalType: "uint256";
|
|
280
|
+
readonly name: "rewardPerTokenStored";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
}, {
|
|
283
|
+
readonly internalType: "uint256";
|
|
284
|
+
readonly name: "rewardResidual";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
}];
|
|
287
|
+
readonly stateMutability: "view";
|
|
288
|
+
readonly type: "function";
|
|
289
|
+
}, {
|
|
290
|
+
readonly inputs: readonly [{
|
|
291
|
+
readonly internalType: "address";
|
|
292
|
+
readonly name: "_rewardsToken";
|
|
293
|
+
readonly type: "address";
|
|
294
|
+
}];
|
|
295
|
+
readonly name: "rewardPerToken";
|
|
296
|
+
readonly outputs: readonly [{
|
|
297
|
+
readonly internalType: "uint256";
|
|
298
|
+
readonly name: "";
|
|
299
|
+
readonly type: "uint256";
|
|
300
|
+
}];
|
|
301
|
+
readonly stateMutability: "view";
|
|
302
|
+
readonly type: "function";
|
|
303
|
+
}, {
|
|
304
|
+
readonly inputs: readonly [{
|
|
305
|
+
readonly internalType: "uint256";
|
|
306
|
+
readonly name: "";
|
|
307
|
+
readonly type: "uint256";
|
|
308
|
+
}];
|
|
309
|
+
readonly name: "rewardTokens";
|
|
310
|
+
readonly outputs: readonly [{
|
|
311
|
+
readonly internalType: "address";
|
|
312
|
+
readonly name: "";
|
|
313
|
+
readonly type: "address";
|
|
314
|
+
}];
|
|
315
|
+
readonly stateMutability: "view";
|
|
316
|
+
readonly type: "function";
|
|
317
|
+
}, {
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly internalType: "address";
|
|
320
|
+
readonly name: "";
|
|
321
|
+
readonly type: "address";
|
|
322
|
+
}, {
|
|
323
|
+
readonly internalType: "address";
|
|
324
|
+
readonly name: "";
|
|
325
|
+
readonly type: "address";
|
|
326
|
+
}];
|
|
327
|
+
readonly name: "rewards";
|
|
328
|
+
readonly outputs: readonly [{
|
|
329
|
+
readonly internalType: "uint256";
|
|
330
|
+
readonly name: "";
|
|
331
|
+
readonly type: "uint256";
|
|
332
|
+
}];
|
|
333
|
+
readonly stateMutability: "view";
|
|
334
|
+
readonly type: "function";
|
|
335
|
+
}, {
|
|
336
|
+
readonly inputs: readonly [{
|
|
337
|
+
readonly internalType: "uint256";
|
|
338
|
+
readonly name: "amount";
|
|
339
|
+
readonly type: "uint256";
|
|
340
|
+
}];
|
|
341
|
+
readonly name: "stake";
|
|
342
|
+
readonly outputs: readonly [];
|
|
343
|
+
readonly stateMutability: "nonpayable";
|
|
344
|
+
readonly type: "function";
|
|
345
|
+
}, {
|
|
346
|
+
readonly inputs: readonly [];
|
|
347
|
+
readonly name: "stakingToken";
|
|
348
|
+
readonly outputs: readonly [{
|
|
349
|
+
readonly internalType: "contract ERC20";
|
|
350
|
+
readonly name: "";
|
|
351
|
+
readonly type: "address";
|
|
352
|
+
}];
|
|
353
|
+
readonly stateMutability: "view";
|
|
354
|
+
readonly type: "function";
|
|
355
|
+
}, {
|
|
356
|
+
readonly inputs: readonly [];
|
|
357
|
+
readonly name: "totalSupply";
|
|
358
|
+
readonly outputs: readonly [{
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
readonly name: "";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
}];
|
|
363
|
+
readonly stateMutability: "view";
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
}, {
|
|
366
|
+
readonly inputs: readonly [{
|
|
367
|
+
readonly internalType: "address";
|
|
368
|
+
readonly name: "";
|
|
369
|
+
readonly type: "address";
|
|
370
|
+
}, {
|
|
371
|
+
readonly internalType: "address";
|
|
372
|
+
readonly name: "";
|
|
373
|
+
readonly type: "address";
|
|
374
|
+
}];
|
|
375
|
+
readonly name: "userRewardPerTokenPaid";
|
|
376
|
+
readonly outputs: readonly [{
|
|
377
|
+
readonly internalType: "uint256";
|
|
378
|
+
readonly name: "";
|
|
379
|
+
readonly type: "uint256";
|
|
380
|
+
}];
|
|
381
|
+
readonly stateMutability: "view";
|
|
382
|
+
readonly type: "function";
|
|
383
|
+
}, {
|
|
384
|
+
readonly inputs: readonly [{
|
|
385
|
+
readonly internalType: "uint256";
|
|
386
|
+
readonly name: "amount";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
}];
|
|
389
|
+
readonly name: "withdraw";
|
|
390
|
+
readonly outputs: readonly [];
|
|
391
|
+
readonly stateMutability: "nonpayable";
|
|
392
|
+
readonly type: "function";
|
|
393
|
+
}];
|
|
394
|
+
static createInterface(): MultiRewardsInterface;
|
|
395
|
+
static connect(address: string, runner?: ContractRunner | null): MultiRewards;
|
|
396
|
+
}
|