@gearbox-protocol/sdk 3.0.0-next.99 → 3.0.0-vfour.2
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/cjs/index.cjs +15191 -0
- package/dist/cjs/index.d.ts +17108 -0
- package/dist/esm/index.d.mts +17108 -0
- package/dist/esm/index.mjs +15097 -0
- package/package.json +55 -63
- package/contracts/IAirdropDistributor.sol +0 -55
- package/contracts/IDegenDistributor.sol +0 -28
- package/contracts/IOffchainOracle.sol +0 -17
- package/contracts/IWETHGateway.sol +0 -33
- package/contracts/IwstETHGateway.sol +0 -24
- package/contracts/index.sol +0 -77
- package/lib/apy/convexAPY.d.ts +0 -48
- package/lib/apy/convexAPY.js +0 -187
- package/lib/apy/curveAPY.d.ts +0 -11
- package/lib/apy/curveAPY.js +0 -87
- package/lib/apy/index.d.ts +0 -10
- package/lib/apy/index.js +0 -29
- package/lib/apy/lidoAPY.d.ts +0 -1
- package/lib/apy/lidoAPY.js +0 -22
- package/lib/apy/yearnAPY.d.ts +0 -3
- package/lib/apy/yearnAPY.js +0 -32
- package/lib/config.d.ts +0 -1
- package/lib/config.js +0 -4
- package/lib/contracts/contractsRegister.d.ts +0 -25
- package/lib/contracts/contractsRegister.js +0 -90
- package/lib/core/assets.d.ts +0 -36
- package/lib/core/assets.js +0 -99
- package/lib/core/creditAccount.d.ts +0 -112
- package/lib/core/creditAccount.js +0 -284
- package/lib/core/creditAccount.spec.d.ts +0 -1
- package/lib/core/creditAccount.spec.js +0 -980
- package/lib/core/creditManager.d.ts +0 -102
- package/lib/core/creditManager.js +0 -325
- package/lib/core/creditSession.d.ts +0 -102
- package/lib/core/creditSession.js +0 -216
- package/lib/core/endpoint.d.ts +0 -10
- package/lib/core/endpoint.js +0 -26
- package/lib/core/errors.d.ts +0 -5
- package/lib/core/errors.js +0 -2
- package/lib/core/eventOrTx.d.ts +0 -39
- package/lib/core/eventOrTx.js +0 -61
- package/lib/core/events.d.ts +0 -561
- package/lib/core/events.js +0 -896
- package/lib/core/gauge.d.ts +0 -26
- package/lib/core/gauge.js +0 -63
- package/lib/core/gaugeMath.d.ts +0 -40
- package/lib/core/gaugeMath.js +0 -108
- package/lib/core/gaugeMath.spec.d.ts +0 -1
- package/lib/core/gaugeMath.spec.js +0 -388
- package/lib/core/pool.d.ts +0 -124
- package/lib/core/pool.js +0 -306
- package/lib/core/priceOracle.d.ts +0 -14
- package/lib/core/priceOracle.js +0 -31
- package/lib/core/rewardClaimer.d.ts +0 -18
- package/lib/core/rewardClaimer.js +0 -10
- package/lib/core/rewardConvex.d.ts +0 -24
- package/lib/core/rewardConvex.js +0 -100
- package/lib/core/rewardConvex.spec.d.ts +0 -1
- package/lib/core/rewardConvex.spec.js +0 -144
- package/lib/core/strategy.d.ts +0 -31
- package/lib/core/strategy.js +0 -52
- package/lib/core/tokenDistributor.d.ts +0 -11
- package/lib/core/tokenDistributor.js +0 -9
- package/lib/core/trade.d.ts +0 -40
- package/lib/core/trade.js +0 -112
- package/lib/core/transactions.d.ts +0 -289
- package/lib/core/transactions.js +0 -555
- package/lib/index.d.ts +0 -41
- package/lib/index.js +0 -59
- package/lib/parsers/ERC20Parser.d.ts +0 -7
- package/lib/parsers/ERC20Parser.js +0 -36
- package/lib/parsers/abstractParser.d.ts +0 -24
- package/lib/parsers/abstractParser.js +0 -44
- package/lib/parsers/addressProviderParser.d.ts +0 -6
- package/lib/parsers/addressProviderParser.js +0 -27
- package/lib/parsers/convexBaseRewardPoolAdapterParser.d.ts +0 -9
- package/lib/parsers/convexBaseRewardPoolAdapterParser.js +0 -48
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/convexBaseRewardPoolAdapterParser.spec.js +0 -27
- package/lib/parsers/convexBoosterAdapterParser.d.ts +0 -10
- package/lib/parsers/convexBoosterAdapterParser.js +0 -44
- package/lib/parsers/convexBoosterAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/convexBoosterAdapterParser.spec.js +0 -20
- package/lib/parsers/convextRewardPoolParser.d.ts +0 -7
- package/lib/parsers/convextRewardPoolParser.js +0 -21
- package/lib/parsers/creditFacadeParser.d.ts +0 -10
- package/lib/parsers/creditFacadeParser.js +0 -86
- package/lib/parsers/creditFacadeParser.spec.d.ts +0 -1
- package/lib/parsers/creditFacadeParser.spec.js +0 -25
- package/lib/parsers/creditManagerParser.d.ts +0 -6
- package/lib/parsers/creditManagerParser.js +0 -25
- package/lib/parsers/curveAdapterParser.d.ts +0 -12
- package/lib/parsers/curveAdapterParser.js +0 -124
- package/lib/parsers/curveAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/curveAdapterParser.spec.js +0 -46
- package/lib/parsers/iParser.d.ts +0 -9
- package/lib/parsers/iParser.js +0 -2
- package/lib/parsers/lidoAdapterParser.d.ts +0 -7
- package/lib/parsers/lidoAdapterParser.js +0 -29
- package/lib/parsers/lidoAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/lidoAdapterParser.spec.js +0 -17
- package/lib/parsers/lidoSTETHParser.d.ts +0 -7
- package/lib/parsers/lidoSTETHParser.js +0 -36
- package/lib/parsers/poolParser.d.ts +0 -6
- package/lib/parsers/poolParser.js +0 -19
- package/lib/parsers/priceOracleParser.d.ts +0 -6
- package/lib/parsers/priceOracleParser.js +0 -23
- package/lib/parsers/txParser.d.ts +0 -40
- package/lib/parsers/txParser.js +0 -147
- package/lib/parsers/uniV2AdapterParser.d.ts +0 -8
- package/lib/parsers/uniV2AdapterParser.js +0 -54
- package/lib/parsers/uniV2AdapterParser.spec.d.ts +0 -1
- package/lib/parsers/uniV2AdapterParser.spec.js +0 -47
- package/lib/parsers/uniV3AdapterParser.d.ts +0 -9
- package/lib/parsers/uniV3AdapterParser.js +0 -95
- package/lib/parsers/uniV3AdapterParser.spec.d.ts +0 -1
- package/lib/parsers/uniV3AdapterParser.spec.js +0 -120
- package/lib/parsers/wstETHAdapterParser.d.ts +0 -7
- package/lib/parsers/wstETHAdapterParser.js +0 -52
- package/lib/parsers/wstETHAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/wstETHAdapterParser.spec.js +0 -21
- package/lib/parsers/yearnAdapterParser.spec.d.ts +0 -1
- package/lib/parsers/yearnAdapterParser.spec.js +0 -36
- package/lib/parsers/yearnV2AdapterParser.d.ts +0 -7
- package/lib/parsers/yearnV2AdapterParser.js +0 -57
- package/lib/pathfinder/core.d.ts +0 -20
- package/lib/pathfinder/core.js +0 -9
- package/lib/pathfinder/pathOptions.d.ts +0 -16
- package/lib/pathfinder/pathOptions.js +0 -96
- package/lib/pathfinder/pathOptions.spec.d.ts +0 -1
- package/lib/pathfinder/pathOptions.spec.js +0 -141
- package/lib/pathfinder/pathfinder.d.ts +0 -73
- package/lib/pathfinder/pathfinder.js +0 -174
- package/lib/pathfinder/pathfinder.spec.d.ts +0 -1
- package/lib/pathfinder/pathfinder.spec.js +0 -43
- package/lib/pathfinder/v1/core.d.ts +0 -16
- package/lib/pathfinder/v1/core.js +0 -2
- package/lib/pathfinder/v1/pathfinderv1.d.ts +0 -46
- package/lib/pathfinder/v1/pathfinderv1.js +0 -155
- package/lib/pathfinder/v1/pathfinderv1.spec.d.ts +0 -1
- package/lib/pathfinder/v1/pathfinderv1.spec.js +0 -39
- package/lib/payload/creditAccount.d.ts +0 -5
- package/lib/payload/creditAccount.js +0 -2
- package/lib/payload/creditManager.d.ts +0 -59
- package/lib/payload/creditManager.js +0 -2
- package/lib/payload/creditSession.d.ts +0 -107
- package/lib/payload/creditSession.js +0 -2
- package/lib/payload/gauge.d.ts +0 -12
- package/lib/payload/gauge.js +0 -2
- package/lib/payload/graphPayload.d.ts +0 -9
- package/lib/payload/graphPayload.js +0 -2
- package/lib/payload/pool.d.ts +0 -107
- package/lib/payload/pool.js +0 -2
- package/lib/payload/token.d.ts +0 -5
- package/lib/payload/token.js +0 -2
- package/lib/tokens/tokenData.d.ts +0 -10
- package/lib/tokens/tokenData.js +0 -22
- package/lib/types/AddressProvider.d.ts +0 -382
- package/lib/types/AddressProvider.js +0 -2
- package/lib/types/Balances.sol/BalanceOps.d.ts +0 -27
- package/lib/types/Balances.sol/BalanceOps.js +0 -2
- package/lib/types/Balances.sol/index.d.ts +0 -1
- package/lib/types/Balances.sol/index.js +0 -2
- package/lib/types/CalldataExtractor.d.ts +0 -44
- package/lib/types/CalldataExtractor.js +0 -2
- package/lib/types/Claimable.d.ts +0 -113
- package/lib/types/Claimable.js +0 -2
- package/lib/types/ERC20.d.ts +0 -198
- package/lib/types/ERC20.js +0 -2
- package/lib/types/Errors.d.ts +0 -298
- package/lib/types/Errors.js +0 -2
- package/lib/types/FarmAccounting.d.ts +0 -27
- package/lib/types/FarmAccounting.js +0 -2
- package/lib/types/IAaveV2_LendingPoolAdapter.d.ts +0 -171
- package/lib/types/IAaveV2_LendingPoolAdapter.js +0 -2
- package/lib/types/IAaveV2_WrappedATokenAdapter.d.ts +0 -290
- package/lib/types/IAaveV2_WrappedATokenAdapter.js +0 -2
- package/lib/types/IAdapter.d.ts +0 -74
- package/lib/types/IAdapter.js +0 -2
- package/lib/types/IAddressProvider.sol/IAddressProvider.d.ts +0 -137
- package/lib/types/IAddressProvider.sol/IAddressProvider.js +0 -2
- package/lib/types/IAddressProvider.sol/IAddressProviderEvents.d.ts +0 -43
- package/lib/types/IAddressProvider.sol/IAddressProviderEvents.js +0 -2
- package/lib/types/IAddressProvider.sol/index.d.ts +0 -2
- package/lib/types/IAddressProvider.sol/index.js +0 -2
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3.d.ts +0 -97
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3.js +0 -2
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3Events.d.ts +0 -45
- package/lib/types/IAddressProviderV3.sol/IAddressProviderV3Events.js +0 -2
- package/lib/types/IAddressProviderV3.sol/index.d.ts +0 -2
- package/lib/types/IAddressProviderV3.sol/index.js +0 -2
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.d.ts +0 -124
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributor.js +0 -2
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.d.ts +0 -73
- package/lib/types/IAirdropDistributor.sol/IAirdropDistributorEvents.js +0 -2
- package/lib/types/IAirdropDistributor.sol/index.d.ts +0 -2
- package/lib/types/IAirdropDistributor.sol/index.js +0 -2
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.d.ts +0 -308
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2Vault.js +0 -2
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.d.ts +0 -112
- package/lib/types/IBalancerV2Vault.sol/IBalancerV2VaultGetters.js +0 -2
- package/lib/types/IBalancerV2Vault.sol/index.d.ts +0 -2
- package/lib/types/IBalancerV2Vault.sol/index.js +0 -2
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.d.ts +0 -466
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter.js +0 -2
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.d.ts +0 -43
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents.js +0 -2
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.d.ts +0 -27
- package/lib/types/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions.js +0 -2
- package/lib/types/IBalancerV2VaultAdapter.sol/index.d.ts +0 -3
- package/lib/types/IBalancerV2VaultAdapter.sol/index.js +0 -2
- package/lib/types/IBaseRewardPool.d.ts +0 -378
- package/lib/types/IBaseRewardPool.js +0 -2
- package/lib/types/IBotListV3.sol/IBotListV3.d.ts +0 -286
- package/lib/types/IBotListV3.sol/IBotListV3.js +0 -2
- package/lib/types/IBotListV3.sol/IBotListV3Events.d.ts +0 -103
- package/lib/types/IBotListV3.sol/IBotListV3Events.js +0 -2
- package/lib/types/IBotListV3.sol/index.d.ts +0 -2
- package/lib/types/IBotListV3.sol/index.js +0 -2
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.d.ts +0 -216
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter.js +0 -2
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.d.ts +0 -27
- package/lib/types/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions.js +0 -2
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.d.ts +0 -2
- package/lib/types/ICompoundV2_CTokenAdapter.sol/index.js +0 -2
- package/lib/types/IContractsRegister.sol/IContractsRegister.d.ts +0 -128
- package/lib/types/IContractsRegister.sol/IContractsRegister.js +0 -2
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.d.ts +0 -50
- package/lib/types/IContractsRegister.sol/IContractsRegisterEvents.js +0 -2
- package/lib/types/IContractsRegister.sol/index.d.ts +0 -2
- package/lib/types/IContractsRegister.sol/index.js +0 -2
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.d.ts +0 -504
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3.js +0 -2
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.d.ts +0 -82
- package/lib/types/IControllerTimelockV3.sol/IControllerTimelockV3Events.js +0 -2
- package/lib/types/IControllerTimelockV3.sol/index.d.ts +0 -2
- package/lib/types/IControllerTimelockV3.sol/index.js +0 -2
- package/lib/types/IConvexToken.d.ts +0 -190
- package/lib/types/IConvexToken.js +0 -2
- package/lib/types/IConvexV1BaseRewardPoolAdapter.d.ts +0 -300
- package/lib/types/IConvexV1BaseRewardPoolAdapter.js +0 -2
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.d.ts +0 -209
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter.js +0 -2
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.d.ts +0 -43
- package/lib/types/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents.js +0 -2
- package/lib/types/IConvexV1BoosterAdapter.sol/index.d.ts +0 -2
- package/lib/types/IConvexV1BoosterAdapter.sol/index.js +0 -2
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2.d.ts +0 -641
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2.js +0 -2
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events.d.ts +0 -293
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events.js +0 -2
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions.d.ts +0 -27
- package/lib/types/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions.js +0 -2
- package/lib/types/ICreditConfiguratorV2.sol/index.d.ts +0 -3
- package/lib/types/ICreditConfiguratorV2.sol/index.js +0 -2
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.d.ts +0 -716
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3.js +0 -2
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.d.ts +0 -275
- package/lib/types/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events.js +0 -2
- package/lib/types/ICreditConfiguratorV3.sol/index.d.ts +0 -2
- package/lib/types/ICreditConfiguratorV3.sol/index.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2.d.ts +0 -710
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Events.d.ts +0 -244
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Events.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions.d.ts +0 -27
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.d.ts +0 -138
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2Extended.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2V2.d.ts +0 -66
- package/lib/types/ICreditFacadeV2.sol/ICreditFacadeV2V2.js +0 -2
- package/lib/types/ICreditFacadeV2.sol/index.d.ts +0 -5
- package/lib/types/ICreditFacadeV2.sol/index.js +0 -2
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.d.ts +0 -524
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3.js +0 -2
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.d.ts +0 -166
- package/lib/types/ICreditFacadeV3.sol/ICreditFacadeV3Events.js +0 -2
- package/lib/types/ICreditFacadeV3.sol/index.d.ts +0 -2
- package/lib/types/ICreditFacadeV3.sol/index.js +0 -2
- package/lib/types/ICreditFacadeV3Multicall.d.ts +0 -277
- package/lib/types/ICreditFacadeV3Multicall.js +0 -2
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2.d.ts +0 -639
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2.js +0 -2
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Events.d.ts +0 -54
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Events.js +0 -2
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Exceptions.d.ts +0 -27
- package/lib/types/ICreditManagerV2.sol/ICreditManagerV2Exceptions.js +0 -2
- package/lib/types/ICreditManagerV2.sol/index.d.ts +0 -3
- package/lib/types/ICreditManagerV2.sol/index.js +0 -2
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.d.ts +0 -967
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3.js +0 -2
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3Events.d.ts +0 -41
- package/lib/types/ICreditManagerV3.sol/ICreditManagerV3Events.js +0 -2
- package/lib/types/ICreditManagerV3.sol/index.d.ts +0 -2
- package/lib/types/ICreditManagerV3.sol/index.js +0 -2
- package/lib/types/ICurvePool.d.ts +0 -438
- package/lib/types/ICurvePool.js +0 -2
- package/lib/types/ICurvePool_2.sol/ICurvePool2Assets.d.ts +0 -590
- package/lib/types/ICurvePool_2.sol/ICurvePool2Assets.js +0 -2
- package/lib/types/ICurvePool_2.sol/index.d.ts +0 -1
- package/lib/types/ICurvePool_2.sol/index.js +0 -2
- package/lib/types/ICurvePool_3.sol/ICurvePool3Assets.d.ts +0 -686
- package/lib/types/ICurvePool_3.sol/ICurvePool3Assets.js +0 -2
- package/lib/types/ICurvePool_3.sol/index.d.ts +0 -1
- package/lib/types/ICurvePool_3.sol/index.js +0 -2
- package/lib/types/ICurvePool_4.sol/ICurvePool4Assets.d.ts +0 -722
- package/lib/types/ICurvePool_4.sol/ICurvePool4Assets.js +0 -2
- package/lib/types/ICurvePool_4.sol/index.d.ts +0 -1
- package/lib/types/ICurvePool_4.sol/index.js +0 -2
- package/lib/types/ICurveV1Adapter.d.ts +0 -550
- package/lib/types/ICurveV1Adapter.js +0 -2
- package/lib/types/ICurveV1_2AssetsAdapter.d.ts +0 -634
- package/lib/types/ICurveV1_2AssetsAdapter.js +0 -2
- package/lib/types/ICurveV1_3AssetsAdapter.d.ts +0 -697
- package/lib/types/ICurveV1_3AssetsAdapter.js +0 -2
- package/lib/types/ICurveV1_4AssetsAdapter.d.ts +0 -715
- package/lib/types/ICurveV1_4AssetsAdapter.js +0 -2
- package/lib/types/IDaiLikePermit.d.ts +0 -59
- package/lib/types/IDaiLikePermit.js +0 -2
- package/lib/types/IDataCompressorV2_10.d.ts +0 -482
- package/lib/types/IDataCompressorV2_10.js +0 -2
- package/lib/types/IDataCompressorV3_00.d.ts +0 -600
- package/lib/types/IDataCompressorV3_00.js +0 -2
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.d.ts +0 -96
- package/lib/types/IDegenDistributor.sol/IDegenDistributor.js +0 -2
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.d.ts +0 -53
- package/lib/types/IDegenDistributor.sol/IDegenDistributorEvents.js +0 -2
- package/lib/types/IDegenDistributor.sol/index.d.ts +0 -2
- package/lib/types/IDegenDistributor.sol/index.js +0 -2
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.d.ts +0 -339
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2.js +0 -2
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.d.ts +0 -61
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Events.js +0 -2
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.d.ts +0 -27
- package/lib/types/IDegenNFTV2.sol/IDegenNFTV2Exceptions.js +0 -2
- package/lib/types/IDegenNFTV2.sol/index.d.ts +0 -3
- package/lib/types/IDegenNFTV2.sol/index.js +0 -2
- package/lib/types/IERC165.d.ts +0 -42
- package/lib/types/IERC165.js +0 -2
- package/lib/types/IERC20.d.ts +0 -142
- package/lib/types/IERC20.js +0 -2
- package/lib/types/IERC20Metadata.d.ts +0 -166
- package/lib/types/IERC20Metadata.js +0 -2
- package/lib/types/IERC20Permit.d.ts +0 -74
- package/lib/types/IERC20Permit.js +0 -2
- package/lib/types/IERC20ZapperDeposits.d.ts +0 -117
- package/lib/types/IERC20ZapperDeposits.js +0 -2
- package/lib/types/IERC4626.d.ts +0 -394
- package/lib/types/IERC4626.js +0 -2
- package/lib/types/IERC4626Adapter.d.ts +0 -238
- package/lib/types/IERC4626Adapter.js +0 -2
- package/lib/types/IERC721.d.ts +0 -220
- package/lib/types/IERC721.js +0 -2
- package/lib/types/IERC721Metadata.d.ts +0 -244
- package/lib/types/IERC721Metadata.js +0 -2
- package/lib/types/IETHZapperDeposits.d.ts +0 -66
- package/lib/types/IETHZapperDeposits.js +0 -2
- package/lib/types/IFarmingPool.d.ts +0 -318
- package/lib/types/IFarmingPool.js +0 -2
- package/lib/types/IGasPricer.d.ts +0 -44
- package/lib/types/IGasPricer.js +0 -2
- package/lib/types/IGaugeV3.sol/IGaugeV3.d.ts +0 -366
- package/lib/types/IGaugeV3.sol/IGaugeV3.js +0 -2
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.d.ts +0 -114
- package/lib/types/IGaugeV3.sol/IGaugeV3Events.js +0 -2
- package/lib/types/IGaugeV3.sol/index.d.ts +0 -2
- package/lib/types/IGaugeV3.sol/index.js +0 -2
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +0 -408
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +0 -2
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +0 -117
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +0 -2
- package/lib/types/IGearStakingV3.sol/index.d.ts +0 -2
- package/lib/types/IGearStakingV3.sol/index.js +0 -2
- package/lib/types/IInterestRateModel.d.ts +0 -50
- package/lib/types/IInterestRateModel.js +0 -2
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.d.ts +0 -285
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeed.js +0 -2
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.d.ts +0 -54
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedEvents.js +0 -2
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.d.ts +0 -27
- package/lib/types/ILPPriceFeed.sol/ILPPriceFeedExceptions.js +0 -2
- package/lib/types/ILPPriceFeed.sol/index.d.ts +0 -3
- package/lib/types/ILPPriceFeed.sol/index.js +0 -2
- package/lib/types/ILidoV1Adapter.d.ts +0 -158
- package/lib/types/ILidoV1Adapter.js +0 -2
- package/lib/types/ILinearInterestRateModelV3.d.ts +0 -120
- package/lib/types/ILinearInterestRateModelV3.js +0 -2
- package/lib/types/IOffchainOracle.d.ts +0 -58
- package/lib/types/IOffchainOracle.js +0 -2
- package/lib/types/IPermit2.d.ts +0 -130
- package/lib/types/IPermit2.js +0 -2
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.d.ts +0 -473
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3.js +0 -2
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.d.ts +0 -113
- package/lib/types/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events.js +0 -2
- package/lib/types/IPoolQuotaKeeperV3.sol/index.d.ts +0 -2
- package/lib/types/IPoolQuotaKeeperV3.sol/index.js +0 -2
- package/lib/types/IPoolService.sol/IPoolService.d.ts +0 -392
- package/lib/types/IPoolService.sol/IPoolService.js +0 -2
- package/lib/types/IPoolService.sol/IPoolServiceEvents.d.ts +0 -162
- package/lib/types/IPoolService.sol/IPoolServiceEvents.js +0 -2
- package/lib/types/IPoolService.sol/index.d.ts +0 -2
- package/lib/types/IPoolService.sol/index.js +0 -2
- package/lib/types/IPoolV3.sol/IPoolV3.d.ts +0 -936
- package/lib/types/IPoolV3.sol/IPoolV3.js +0 -2
- package/lib/types/IPoolV3.sol/IPoolV3Events.d.ts +0 -158
- package/lib/types/IPoolV3.sol/IPoolV3Events.js +0 -2
- package/lib/types/IPoolV3.sol/index.d.ts +0 -2
- package/lib/types/IPoolV3.sol/index.js +0 -2
- package/lib/types/IPriceFeed.sol/IPriceFeed.d.ts +0 -109
- package/lib/types/IPriceFeed.sol/IPriceFeed.js +0 -2
- package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.d.ts +0 -133
- package/lib/types/IPriceFeed.sol/IUpdatablePriceFeed.js +0 -2
- package/lib/types/IPriceFeed.sol/index.d.ts +0 -2
- package/lib/types/IPriceFeed.sol/index.js +0 -2
- package/lib/types/IPriceOracle.sol/IPriceOracleV2.d.ts +0 -166
- package/lib/types/IPriceOracle.sol/IPriceOracleV2.js +0 -2
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.d.ts +0 -43
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Events.js +0 -2
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.d.ts +0 -27
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Exceptions.js +0 -2
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.d.ts +0 -182
- package/lib/types/IPriceOracle.sol/IPriceOracleV2Ext.js +0 -2
- package/lib/types/IPriceOracle.sol/index.d.ts +0 -4
- package/lib/types/IPriceOracle.sol/index.js +0 -2
- package/lib/types/IPriceOracleBase.d.ts +0 -88
- package/lib/types/IPriceOracleBase.js +0 -2
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.d.ts +0 -272
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3.js +0 -2
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.d.ts +0 -79
- package/lib/types/IPriceOracleV3.sol/IPriceOracleV3Events.js +0 -2
- package/lib/types/IPriceOracleV3.sol/index.d.ts +0 -2
- package/lib/types/IPriceOracleV3.sol/index.js +0 -2
- package/lib/types/IRouter.d.ts +0 -278
- package/lib/types/IRouter.js +0 -2
- package/lib/types/IRouterV3.d.ts +0 -281
- package/lib/types/IRouterV3.js +0 -2
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.d.ts +0 -208
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2Adapter.js +0 -2
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents.d.ts +0 -45
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents.js +0 -2
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions.d.ts +0 -27
- package/lib/types/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions.js +0 -2
- package/lib/types/IUniswapV2Adapter.sol/index.d.ts +0 -3
- package/lib/types/IUniswapV2Adapter.sol/index.js +0 -2
- package/lib/types/IUniswapV3.sol/ISwapRouter.d.ts +0 -198
- package/lib/types/IUniswapV3.sol/ISwapRouter.js +0 -2
- package/lib/types/IUniswapV3.sol/index.d.ts +0 -1
- package/lib/types/IUniswapV3.sol/index.js +0 -2
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.d.ts +0 -415
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3Adapter.js +0 -2
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents.d.ts +0 -47
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents.js +0 -2
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions.d.ts +0 -27
- package/lib/types/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions.js +0 -2
- package/lib/types/IUniswapV3Adapter.sol/index.d.ts +0 -3
- package/lib/types/IUniswapV3Adapter.sol/index.js +0 -2
- package/lib/types/IVersion.d.ts +0 -42
- package/lib/types/IVersion.js +0 -2
- package/lib/types/IVotingContractV3.d.ts +0 -74
- package/lib/types/IVotingContractV3.js +0 -2
- package/lib/types/IWETH.d.ts +0 -197
- package/lib/types/IWETH.js +0 -2
- package/lib/types/IWETHGateway.d.ts +0 -90
- package/lib/types/IWETHGateway.js +0 -2
- package/lib/types/IYVault.d.ts +0 -298
- package/lib/types/IYVault.js +0 -2
- package/lib/types/IYearnV2Adapter.d.ts +0 -256
- package/lib/types/IYearnV2Adapter.js +0 -2
- package/lib/types/IZapper.d.ts +0 -125
- package/lib/types/IZapper.js +0 -2
- package/lib/types/IZapperRegister.d.ts +0 -62
- package/lib/types/IZapperRegister.js +0 -2
- package/lib/types/IstETH.sol/IstETH.d.ts +0 -230
- package/lib/types/IstETH.sol/IstETH.js +0 -2
- package/lib/types/IstETH.sol/IstETHGetters.d.ts +0 -214
- package/lib/types/IstETH.sol/IstETHGetters.js +0 -2
- package/lib/types/IstETH.sol/index.d.ts +0 -2
- package/lib/types/IstETH.sol/index.js +0 -2
- package/lib/types/IwstETH.sol/IwstETH.d.ts +0 -238
- package/lib/types/IwstETH.sol/IwstETH.js +0 -2
- package/lib/types/IwstETH.sol/IwstETHGetters.d.ts +0 -206
- package/lib/types/IwstETH.sol/IwstETHGetters.js +0 -2
- package/lib/types/IwstETH.sol/index.d.ts +0 -2
- package/lib/types/IwstETH.sol/index.js +0 -2
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.d.ts +0 -70
- package/lib/types/IwstETHGateway.sol/IwstETHGateWay.js +0 -2
- package/lib/types/IwstETHGateway.sol/index.d.ts +0 -1
- package/lib/types/IwstETHGateway.sol/index.js +0 -2
- package/lib/types/IwstETHV1Adapter.d.ts +0 -186
- package/lib/types/IwstETHV1Adapter.js +0 -2
- package/lib/types/NumericArrayLib.d.ts +0 -27
- package/lib/types/NumericArrayLib.js +0 -2
- package/lib/types/Ownable.d.ts +0 -89
- package/lib/types/Ownable.js +0 -2
- package/lib/types/RedstoneConstants.d.ts +0 -27
- package/lib/types/RedstoneConstants.js +0 -2
- package/lib/types/RedstoneConsumerBase.d.ts +0 -84
- package/lib/types/RedstoneConsumerBase.js +0 -2
- package/lib/types/RedstoneConsumerNumericBase.d.ts +0 -84
- package/lib/types/RedstoneConsumerNumericBase.js +0 -2
- package/lib/types/RedstoneDefaultsLib.d.ts +0 -27
- package/lib/types/RedstoneDefaultsLib.js +0 -2
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.d.ts +0 -39
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedEvents.js +0 -2
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.d.ts +0 -27
- package/lib/types/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions.js +0 -2
- package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.d.ts +0 -279
- package/lib/types/RedstonePriceFeed.sol/RedstonePriceFeed.js +0 -2
- package/lib/types/RedstonePriceFeed.sol/index.d.ts +0 -3
- package/lib/types/RedstonePriceFeed.sol/index.js +0 -2
- package/lib/types/SafeERC20.d.ts +0 -27
- package/lib/types/SafeERC20.js +0 -2
- package/lib/types/common.d.ts +0 -22
- package/lib/types/common.js +0 -2
- package/lib/types/factories/AddressProvider__factory.d.ts +0 -321
- package/lib/types/factories/AddressProvider__factory.js +0 -430
- package/lib/types/factories/Balances.sol/BalanceOps__factory.d.ts +0 -29
- package/lib/types/factories/Balances.sol/BalanceOps__factory.js +0 -53
- package/lib/types/factories/Balances.sol/index.d.ts +0 -1
- package/lib/types/factories/Balances.sol/index.js +0 -8
- package/lib/types/factories/CalldataExtractor__factory.d.ts +0 -87
- package/lib/types/factories/CalldataExtractor__factory.js +0 -127
- package/lib/types/factories/Claimable__factory.d.ts +0 -78
- package/lib/types/factories/Claimable__factory.js +0 -114
- package/lib/types/factories/ERC20__factory.d.ts +0 -239
- package/lib/types/factories/ERC20__factory.js +0 -328
- package/lib/types/factories/Errors__factory.d.ts +0 -351
- package/lib/types/factories/Errors__factory.js +0 -471
- package/lib/types/factories/FarmAccounting__factory.d.ts +0 -33
- package/lib/types/factories/FarmAccounting__factory.js +0 -57
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.d.ts +0 -158
- package/lib/types/factories/IAaveV2_LendingPoolAdapter__factory.js +0 -215
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.d.ts +0 -252
- package/lib/types/factories/IAaveV2_WrappedATokenAdapter__factory.js +0 -341
- package/lib/types/factories/IAdapter__factory.d.ts +0 -58
- package/lib/types/factories/IAdapter__factory.js +0 -84
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.d.ts +0 -23
- package/lib/types/factories/IAddressProvider.sol/IAddressProviderEvents__factory.js +0 -38
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.d.ts +0 -133
- package/lib/types/factories/IAddressProvider.sol/IAddressProvider__factory.js +0 -181
- package/lib/types/factories/IAddressProvider.sol/index.d.ts +0 -2
- package/lib/types/factories/IAddressProvider.sol/index.js +0 -10
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.d.ts +0 -28
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3Events__factory.js +0 -44
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.d.ts +0 -92
- package/lib/types/factories/IAddressProviderV3.sol/IAddressProviderV3__factory.js +0 -128
- package/lib/types/factories/IAddressProviderV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IAddressProviderV3.sol/index.js +0 -10
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.d.ts +0 -63
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributorEvents__factory.js +0 -88
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.d.ts +0 -119
- package/lib/types/factories/IAirdropDistributor.sol/IAirdropDistributor__factory.js +0 -161
- package/lib/types/factories/IAirdropDistributor.sol/index.d.ts +0 -2
- package/lib/types/factories/IAirdropDistributor.sol/index.js +0 -10
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.d.ts +0 -78
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2VaultGetters__factory.js +0 -111
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.d.ts +0 -360
- package/lib/types/factories/IBalancerV2Vault.sol/IBalancerV2Vault__factory.js +0 -475
- package/lib/types/factories/IBalancerV2Vault.sol/index.d.ts +0 -2
- package/lib/types/factories/IBalancerV2Vault.sol/index.js +0 -10
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.d.ts +0 -23
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterEvents__factory.js +0 -38
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapterExceptions__factory.js +0 -24
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.d.ts +0 -514
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/IBalancerV2VaultAdapter__factory.js +0 -675
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.d.ts +0 -3
- package/lib/types/factories/IBalancerV2VaultAdapter.sol/index.js +0 -12
- package/lib/types/factories/IBaseRewardPool__factory.d.ts +0 -398
- package/lib/types/factories/IBaseRewardPool__factory.js +0 -534
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.d.ts +0 -103
- package/lib/types/factories/IBotListV3.sol/IBotListV3Events__factory.js +0 -138
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.d.ts +0 -315
- package/lib/types/factories/IBotListV3.sol/IBotListV3__factory.js +0 -416
- package/lib/types/factories/IBotListV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IBotListV3.sol/index.js +0 -10
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.d.ts +0 -196
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_CTokenAdapter__factory.js +0 -267
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.d.ts +0 -16
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/ICompoundV2_Exceptions__factory.js +0 -30
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.d.ts +0 -2
- package/lib/types/factories/ICompoundV2_CTokenAdapter.sol/index.js +0 -10
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.d.ts +0 -28
- package/lib/types/factories/IContractsRegister.sol/IContractsRegisterEvents__factory.js +0 -45
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.d.ts +0 -134
- package/lib/types/factories/IContractsRegister.sol/IContractsRegister__factory.js +0 -186
- package/lib/types/factories/IContractsRegister.sol/index.d.ts +0 -2
- package/lib/types/factories/IContractsRegister.sol/index.js +0 -10
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.d.ts +0 -73
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3Events__factory.js +0 -101
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.d.ts +0 -427
- package/lib/types/factories/IControllerTimelockV3.sol/IControllerTimelockV3__factory.js +0 -556
- package/lib/types/factories/IControllerTimelockV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IControllerTimelockV3.sol/index.js +0 -10
- package/lib/types/factories/IConvexToken__factory.d.ts +0 -208
- package/lib/types/factories/IConvexToken__factory.js +0 -280
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.d.ts +0 -286
- package/lib/types/factories/IConvexV1BaseRewardPoolAdapter__factory.js +0 -383
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.d.ts +0 -23
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapterEvents__factory.js +0 -38
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.d.ts +0 -189
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/IConvexV1BoosterAdapter__factory.js +0 -255
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.d.ts +0 -2
- package/lib/types/factories/IConvexV1BoosterAdapter.sol/index.js +0 -10
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.d.ts +0 -268
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Events__factory.js +0 -353
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.d.ts +0 -44
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2Exceptions__factory.js +0 -64
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.d.ts +0 -576
- package/lib/types/factories/ICreditConfiguratorV2.sol/ICreditConfiguratorV2__factory.js +0 -749
- package/lib/types/factories/ICreditConfiguratorV2.sol/index.d.ts +0 -3
- package/lib/types/factories/ICreditConfiguratorV2.sol/index.js +0 -12
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.d.ts +0 -273
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3Events__factory.js +0 -357
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.d.ts +0 -605
- package/lib/types/factories/ICreditConfiguratorV3.sol/ICreditConfiguratorV3__factory.js +0 -785
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.d.ts +0 -2
- package/lib/types/factories/ICreditConfiguratorV3.sol/index.js +0 -10
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.d.ts +0 -263
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Events__factory.js +0 -340
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.d.ts +0 -140
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Exceptions__factory.js +0 -185
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.d.ts +0 -81
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2Extended__factory.js +0 -114
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.d.ts +0 -26
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2V2__factory.js +0 -42
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.d.ts +0 -901
- package/lib/types/factories/ICreditFacadeV2.sol/ICreditFacadeV2__factory.js +0 -1163
- package/lib/types/factories/ICreditFacadeV2.sol/index.d.ts +0 -5
- package/lib/types/factories/ICreditFacadeV2.sol/index.js +0 -16
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.d.ts +0 -183
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3Events__factory.js +0 -238
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.d.ts +0 -550
- package/lib/types/factories/ICreditFacadeV3.sol/ICreditFacadeV3__factory.js +0 -715
- package/lib/types/factories/ICreditFacadeV3.sol/index.d.ts +0 -2
- package/lib/types/factories/ICreditFacadeV3.sol/index.js +0 -10
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.d.ts +0 -204
- package/lib/types/factories/ICreditFacadeV3Multicall__factory.js +0 -271
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.d.ts +0 -33
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Events__factory.js +0 -51
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.d.ts +0 -60
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2Exceptions__factory.js +0 -84
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.d.ts +0 -707
- package/lib/types/factories/ICreditManagerV2.sol/ICreditManagerV2__factory.js +0 -932
- package/lib/types/factories/ICreditManagerV2.sol/index.d.ts +0 -3
- package/lib/types/factories/ICreditManagerV2.sol/index.js +0 -12
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.d.ts +0 -18
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3Events__factory.js +0 -32
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.d.ts +0 -1023
- package/lib/types/factories/ICreditManagerV3.sol/ICreditManagerV3__factory.js +0 -1341
- package/lib/types/factories/ICreditManagerV3.sol/index.d.ts +0 -2
- package/lib/types/factories/ICreditManagerV3.sol/index.js +0 -10
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.d.ts +0 -678
- package/lib/types/factories/ICurvePool_2.sol/ICurvePool2Assets__factory.js +0 -897
- package/lib/types/factories/ICurvePool_2.sol/index.d.ts +0 -1
- package/lib/types/factories/ICurvePool_2.sol/index.js +0 -8
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.d.ts +0 -678
- package/lib/types/factories/ICurvePool_3.sol/ICurvePool3Assets__factory.js +0 -897
- package/lib/types/factories/ICurvePool_3.sol/index.d.ts +0 -1
- package/lib/types/factories/ICurvePool_3.sol/index.js +0 -8
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.d.ts +0 -678
- package/lib/types/factories/ICurvePool_4.sol/ICurvePool4Assets__factory.js +0 -897
- package/lib/types/factories/ICurvePool_4.sol/index.d.ts +0 -1
- package/lib/types/factories/ICurvePool_4.sol/index.js +0 -8
- package/lib/types/factories/ICurvePool__factory.d.ts +0 -566
- package/lib/types/factories/ICurvePool__factory.js +0 -751
- package/lib/types/factories/ICurveV1Adapter__factory.d.ts +0 -606
- package/lib/types/factories/ICurveV1Adapter__factory.js +0 -798
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.d.ts +0 -672
- package/lib/types/factories/ICurveV1_2AssetsAdapter__factory.js +0 -885
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.d.ts +0 -672
- package/lib/types/factories/ICurveV1_3AssetsAdapter__factory.js +0 -885
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.d.ts +0 -672
- package/lib/types/factories/ICurveV1_4AssetsAdapter__factory.js +0 -885
- package/lib/types/factories/IDaiLikePermit__factory.d.ts +0 -46
- package/lib/types/factories/IDaiLikePermit__factory.js +0 -67
- package/lib/types/factories/IDataCompressorV2_10__factory.d.ts +0 -1172
- package/lib/types/factories/IDataCompressorV2_10__factory.js +0 -1501
- package/lib/types/factories/IDataCompressorV3_00__factory.d.ts +0 -1580
- package/lib/types/factories/IDataCompressorV3_00__factory.js +0 -2020
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.d.ts +0 -38
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributorEvents__factory.js +0 -57
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.d.ts +0 -84
- package/lib/types/factories/IDegenDistributor.sol/IDegenDistributor__factory.js +0 -117
- package/lib/types/factories/IDegenDistributor.sol/index.d.ts +0 -2
- package/lib/types/factories/IDegenDistributor.sol/index.js +0 -10
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.d.ts +0 -38
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Events__factory.js +0 -58
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.d.ts +0 -24
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2Exceptions__factory.js +0 -39
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.d.ts +0 -376
- package/lib/types/factories/IDegenNFTV2.sol/IDegenNFTV2__factory.js +0 -496
- package/lib/types/factories/IDegenNFTV2.sol/index.d.ts +0 -3
- package/lib/types/factories/IDegenNFTV2.sol/index.js +0 -12
- package/lib/types/factories/IERC165__factory.d.ts +0 -22
- package/lib/types/factories/IERC165__factory.js +0 -38
- package/lib/types/factories/IERC20Metadata__factory.d.ts +0 -178
- package/lib/types/factories/IERC20Metadata__factory.js +0 -241
- package/lib/types/factories/IERC20Permit__factory.d.ts +0 -66
- package/lib/types/factories/IERC20Permit__factory.js +0 -94
- package/lib/types/factories/IERC20ZapperDeposits__factory.d.ts +0 -120
- package/lib/types/factories/IERC20ZapperDeposits__factory.js +0 -165
- package/lib/types/factories/IERC20__factory.d.ts +0 -148
- package/lib/types/factories/IERC20__factory.js +0 -202
- package/lib/types/factories/IERC4626Adapter__factory.d.ts +0 -220
- package/lib/types/factories/IERC4626Adapter__factory.js +0 -297
- package/lib/types/factories/IERC4626__factory.d.ts +0 -473
- package/lib/types/factories/IERC4626__factory.js +0 -631
- package/lib/types/factories/IERC721Metadata__factory.d.ts +0 -262
- package/lib/types/factories/IERC721Metadata__factory.js +0 -349
- package/lib/types/factories/IERC721__factory.d.ts +0 -228
- package/lib/types/factories/IERC721__factory.js +0 -304
- package/lib/types/factories/IETHZapperDeposits__factory.d.ts +0 -40
- package/lib/types/factories/IETHZapperDeposits__factory.js +0 -62
- package/lib/types/factories/IFarmingPool__factory.d.ts +0 -299
- package/lib/types/factories/IFarmingPool__factory.js +0 -396
- package/lib/types/factories/IGasPricer__factory.d.ts +0 -22
- package/lib/types/factories/IGasPricer__factory.js +0 -38
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.d.ts +0 -118
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3Events__factory.js +0 -157
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.d.ts +0 -342
- package/lib/types/factories/IGaugeV3.sol/IGaugeV3__factory.js +0 -448
- package/lib/types/factories/IGaugeV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IGaugeV3.sol/index.js +0 -10
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +0 -113
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +0 -152
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +0 -504
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +0 -660
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IGearStakingV3.sol/index.js +0 -10
- package/lib/types/factories/IInterestRateModel__factory.d.ts +0 -36
- package/lib/types/factories/IInterestRateModel__factory.js +0 -56
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.d.ts +0 -33
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedEvents__factory.js +0 -51
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.d.ts +0 -28
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeedExceptions__factory.js +0 -44
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.d.ts +0 -261
- package/lib/types/factories/ILPPriceFeed.sol/ILPPriceFeed__factory.js +0 -344
- package/lib/types/factories/ILPPriceFeed.sol/index.d.ts +0 -3
- package/lib/types/factories/ILPPriceFeed.sol/index.js +0 -12
- package/lib/types/factories/ILidoV1Adapter__factory.d.ts +0 -144
- package/lib/types/factories/ILidoV1Adapter__factory.js +0 -197
- package/lib/types/factories/ILinearInterestRateModelV3__factory.d.ts +0 -98
- package/lib/types/factories/ILinearInterestRateModelV3__factory.js +0 -136
- package/lib/types/factories/IOffchainOracle__factory.d.ts +0 -48
- package/lib/types/factories/IOffchainOracle__factory.js +0 -72
- package/lib/types/factories/IPermit2__factory.d.ts +0 -113
- package/lib/types/factories/IPermit2__factory.js +0 -155
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.d.ts +0 -103
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3Events__factory.js +0 -140
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.d.ts +0 -441
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/IPoolQuotaKeeperV3__factory.js +0 -580
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IPoolQuotaKeeperV3.sol/index.js +0 -10
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.d.ts +0 -163
- package/lib/types/factories/IPoolService.sol/IPoolServiceEvents__factory.js +0 -215
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.d.ts +0 -437
- package/lib/types/factories/IPoolService.sol/IPoolService__factory.js +0 -574
- package/lib/types/factories/IPoolService.sol/index.d.ts +0 -2
- package/lib/types/factories/IPoolService.sol/index.js +0 -10
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.d.ts +0 -153
- package/lib/types/factories/IPoolV3.sol/IPoolV3Events__factory.js +0 -203
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.d.ts +0 -1068
- package/lib/types/factories/IPoolV3.sol/IPoolV3__factory.js +0 -1402
- package/lib/types/factories/IPoolV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IPoolV3.sol/index.js +0 -10
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.d.ts +0 -84
- package/lib/types/factories/IPriceFeed.sol/IPriceFeed__factory.js +0 -117
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.d.ts +0 -104
- package/lib/types/factories/IPriceFeed.sol/IUpdatablePriceFeed__factory.js +0 -143
- package/lib/types/factories/IPriceFeed.sol/index.d.ts +0 -2
- package/lib/types/factories/IPriceFeed.sol/index.js +0 -10
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.d.ts +0 -23
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Events__factory.js +0 -38
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.d.ts +0 -20
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Exceptions__factory.js +0 -34
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.d.ts +0 -197
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2Ext__factory.js +0 -267
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.d.ts +0 -183
- package/lib/types/factories/IPriceOracle.sol/IPriceOracleV2__factory.js +0 -249
- package/lib/types/factories/IPriceOracle.sol/index.d.ts +0 -4
- package/lib/types/factories/IPriceOracle.sol/index.js +0 -14
- package/lib/types/factories/IPriceOracleBase__factory.d.ts +0 -104
- package/lib/types/factories/IPriceOracleBase__factory.js +0 -147
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.d.ts +0 -78
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3Events__factory.js +0 -106
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.d.ts +0 -326
- package/lib/types/factories/IPriceOracleV3.sol/IPriceOracleV3__factory.js +0 -433
- package/lib/types/factories/IPriceOracleV3.sol/index.d.ts +0 -2
- package/lib/types/factories/IPriceOracleV3.sol/index.js +0 -10
- package/lib/types/factories/IRouterV3__factory.d.ts +0 -451
- package/lib/types/factories/IRouterV3__factory.js +0 -597
- package/lib/types/factories/IRouter__factory.d.ts +0 -396
- package/lib/types/factories/IRouter__factory.js +0 -526
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.d.ts +0 -28
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterEvents__factory.js +0 -44
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.d.ts +0 -221
- package/lib/types/factories/IUniswapV2Adapter.sol/IUniswapV2Adapter__factory.js +0 -295
- package/lib/types/factories/IUniswapV2Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/IUniswapV2Adapter.sol/index.js +0 -12
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.d.ts +0 -172
- package/lib/types/factories/IUniswapV3.sol/ISwapRouter__factory.js +0 -233
- package/lib/types/factories/IUniswapV3.sol/index.d.ts +0 -1
- package/lib/types/factories/IUniswapV3.sol/index.js +0 -8
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.d.ts +0 -33
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterEvents__factory.js +0 -50
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.d.ts +0 -12
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3AdapterExceptions__factory.js +0 -24
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.d.ts +0 -398
- package/lib/types/factories/IUniswapV3Adapter.sol/IUniswapV3Adapter__factory.js +0 -525
- package/lib/types/factories/IUniswapV3Adapter.sol/index.d.ts +0 -3
- package/lib/types/factories/IUniswapV3Adapter.sol/index.js +0 -12
- package/lib/types/factories/IVersion__factory.d.ts +0 -18
- package/lib/types/factories/IVersion__factory.js +0 -32
- package/lib/types/factories/IVotingContractV3__factory.d.ts +0 -44
- package/lib/types/factories/IVotingContractV3__factory.js +0 -65
- package/lib/types/factories/IWETHGateway__factory.d.ts +0 -58
- package/lib/types/factories/IWETHGateway__factory.js +0 -83
- package/lib/types/factories/IWETH__factory.d.ts +0 -194
- package/lib/types/factories/IWETH__factory.js +0 -260
- package/lib/types/factories/IYVault__factory.d.ts +0 -304
- package/lib/types/factories/IYVault__factory.js +0 -408
- package/lib/types/factories/IYearnV2Adapter__factory.d.ts +0 -230
- package/lib/types/factories/IYearnV2Adapter__factory.js +0 -311
- package/lib/types/factories/IZapperRegister__factory.d.ts +0 -42
- package/lib/types/factories/IZapperRegister__factory.js +0 -64
- package/lib/types/factories/IZapper__factory.d.ts +0 -128
- package/lib/types/factories/IZapper__factory.js +0 -177
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.d.ts +0 -250
- package/lib/types/factories/IstETH.sol/IstETHGetters__factory.js +0 -337
- package/lib/types/factories/IstETH.sol/IstETH__factory.d.ts +0 -264
- package/lib/types/factories/IstETH.sol/IstETH__factory.js +0 -356
- package/lib/types/factories/IstETH.sol/index.d.ts +0 -2
- package/lib/types/factories/IstETH.sol/index.js +0 -10
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.d.ts +0 -236
- package/lib/types/factories/IwstETH.sol/IwstETHGetters__factory.js +0 -318
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.d.ts +0 -264
- package/lib/types/factories/IwstETH.sol/IwstETH__factory.js +0 -356
- package/lib/types/factories/IwstETH.sol/index.d.ts +0 -2
- package/lib/types/factories/IwstETH.sol/index.js +0 -10
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.d.ts +0 -48
- package/lib/types/factories/IwstETHGateway.sol/IwstETHGateWay__factory.js +0 -71
- package/lib/types/factories/IwstETHGateway.sol/index.d.ts +0 -1
- package/lib/types/factories/IwstETHGateway.sol/index.js +0 -8
- package/lib/types/factories/IwstETHV1Adapter__factory.d.ts +0 -160
- package/lib/types/factories/IwstETHV1Adapter__factory.js +0 -219
- package/lib/types/factories/NumericArrayLib__factory.d.ts +0 -25
- package/lib/types/factories/NumericArrayLib__factory.js +0 -47
- package/lib/types/factories/Ownable__factory.d.ts +0 -49
- package/lib/types/factories/Ownable__factory.js +0 -71
- package/lib/types/factories/RedstoneConstants__factory.d.ts +0 -65
- package/lib/types/factories/RedstoneConstants__factory.js +0 -99
- package/lib/types/factories/RedstoneConsumerBase__factory.d.ts +0 -164
- package/lib/types/factories/RedstoneConsumerBase__factory.js +0 -223
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.d.ts +0 -164
- package/lib/types/factories/RedstoneConsumerNumericBase__factory.js +0 -223
- package/lib/types/factories/RedstoneDefaultsLib__factory.d.ts +0 -45
- package/lib/types/factories/RedstoneDefaultsLib__factory.js +0 -74
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.d.ts +0 -18
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedEvents__factory.js +0 -32
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.d.ts +0 -28
- package/lib/types/factories/RedstonePriceFeed.sol/IRedstonePriceFeedExceptions__factory.js +0 -44
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.d.ts +0 -443
- package/lib/types/factories/RedstonePriceFeed.sol/RedstonePriceFeed__factory.js +0 -589
- package/lib/types/factories/RedstonePriceFeed.sol/index.d.ts +0 -3
- package/lib/types/factories/RedstonePriceFeed.sol/index.js +0 -12
- package/lib/types/factories/SafeERC20__factory.d.ts +0 -49
- package/lib/types/factories/SafeERC20__factory.js +0 -77
- package/lib/types/factories/index.d.ts +0 -95
- package/lib/types/factories/index.js +0 -182
- package/lib/types/index.d.ts +0 -357
- package/lib/types/index.js +0 -309
- package/lib/utils/errors.d.ts +0 -6
- package/lib/utils/errors.js +0 -13
- package/lib/utils/formatter.d.ts +0 -11
- package/lib/utils/formatter.js +0 -64
- package/lib/utils/loading.d.ts +0 -2
- package/lib/utils/loading.js +0 -13
- package/lib/utils/math.d.ts +0 -12
- package/lib/utils/math.js +0 -47
- package/lib/utils/price.d.ts +0 -9
- package/lib/utils/price.js +0 -15
- package/lib/utils/repeater.d.ts +0 -1
- package/lib/utils/repeater.js +0 -19
- package/lib/utils/types.d.ts +0 -5
- package/lib/utils/types.js +0 -2
- package/lib/utils/validate.d.ts +0 -1
- package/lib/utils/validate.js +0 -13
- package/lib/watchers/creditAccountWatcher.d.ts +0 -37
- package/lib/watchers/creditAccountWatcher.js +0 -244
- package/lib/watchers/creditAccountWatcher.spec.d.ts +0 -1
- package/lib/watchers/creditAccountWatcher.spec.js +0 -208
- package/lib/watchers/creditManagerWatcher.d.ts +0 -10
- package/lib/watchers/creditManagerWatcher.js +0 -59
- package/lib/watchers/creditManagerWatcher.spec.d.ts +0 -1
- package/lib/watchers/creditManagerWatcher.spec.js +0 -115
package/package.json
CHANGED
|
@@ -1,85 +1,77 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-vfour.2",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"exports": {
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/esm/index.d.mts",
|
|
12
|
+
"default": "./dist/esm/index.mjs"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/cjs/index.d.ts",
|
|
16
|
+
"default": "./dist/cjs/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
7
20
|
"files": [
|
|
8
|
-
"
|
|
9
|
-
"contracts"
|
|
21
|
+
"dist"
|
|
10
22
|
],
|
|
11
|
-
"author": "Mikael Lazarev",
|
|
12
|
-
"license": "MIT",
|
|
13
23
|
"scripts": {
|
|
14
|
-
"clean": "rm -rf
|
|
15
|
-
"build": "
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"dev": "tsc -w --p tsconfig.build.json",
|
|
19
|
-
"pub": "rm -rf ./src/types/hardhat.ts && cp ./src/types/*.d.ts ./lib/types && tsc --p tsconfig.build.json && yarn publish",
|
|
20
|
-
"types:clean": "rm -rf forge-out src/types",
|
|
21
|
-
"types:build": "forge build",
|
|
22
|
-
"types:generate": "typechain --target ethers-v5 --out-dir src/types ./forge-out/**/*.json",
|
|
23
|
-
"types": "yarn types:clean && yarn types:build && yarn types:generate",
|
|
24
|
-
"prepare": "husky install",
|
|
24
|
+
"clean": "rm -rf dist",
|
|
25
|
+
"build": "tsup",
|
|
26
|
+
"example": "tsx --env-file .env scripts/example.ts | pino-pretty",
|
|
27
|
+
"prepare": "husky",
|
|
25
28
|
"prettier": "prettier --write .",
|
|
26
29
|
"prettier:ci": "npx prettier --check .",
|
|
27
30
|
"lint": "eslint \"**/*.ts\" --fix",
|
|
28
31
|
"lint:ci": "eslint \"**/*.ts\"",
|
|
29
|
-
"typecheck:ci": "tsc --noEmit"
|
|
30
|
-
"test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
|
|
32
|
+
"typecheck:ci": "tsc --noEmit"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {
|
|
33
|
-
"@gearbox-protocol/sdk-gov": "^
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
35
|
+
"@gearbox-protocol/sdk-gov": "^2.21.0",
|
|
36
|
+
"@redstone-finance/evm-connector": "^0.6.2",
|
|
37
|
+
"abitype": "^1.0.6",
|
|
38
|
+
"eventemitter3": "^5.0.1",
|
|
39
|
+
"redstone-protocol": "^1.0.5",
|
|
40
|
+
"viem": "^2.21.16"
|
|
38
41
|
},
|
|
39
42
|
"devDependencies": {
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"eslint": "^8.22.0",
|
|
65
|
-
"ethers": "5.6.9",
|
|
66
|
-
"husky": ">=6",
|
|
67
|
-
"jest": "^28.1.3",
|
|
68
|
-
"lint-staged": ">=10",
|
|
69
|
-
"mocha": "^10.0.0",
|
|
70
|
-
"prettier": "^2.7.1",
|
|
71
|
-
"rimraf": "^3.0.2",
|
|
72
|
-
"ts-node": "^10.9.1",
|
|
73
|
-
"tslog": "^3.3.3",
|
|
74
|
-
"typechain": "^8.1.0",
|
|
75
|
-
"typescript": "5.0.4"
|
|
43
|
+
"@commitlint/cli": "^19.5.0",
|
|
44
|
+
"@commitlint/config-conventional": "^19.5.0",
|
|
45
|
+
"@gearbox-protocol/eslint-config": "^2.0.0-next.2",
|
|
46
|
+
"@gearbox-protocol/prettier-config": "^2.0.0",
|
|
47
|
+
"eslint": "^8.57.1",
|
|
48
|
+
"husky": "^9.1.6",
|
|
49
|
+
"lint-staged": "^15.2.10",
|
|
50
|
+
"pino": "^9.4.0",
|
|
51
|
+
"pino-pretty": "^11.2.2",
|
|
52
|
+
"prettier": "^3.3.3",
|
|
53
|
+
"tsup": "^8.3.0",
|
|
54
|
+
"tsx": "^4.19.1",
|
|
55
|
+
"typescript": "^5.6.2"
|
|
56
|
+
},
|
|
57
|
+
"commitlint": {
|
|
58
|
+
"extends": [
|
|
59
|
+
"@commitlint/config-conventional"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"eslintConfig": {
|
|
63
|
+
"root": true,
|
|
64
|
+
"extends": [
|
|
65
|
+
"@gearbox-protocol/eslint-config"
|
|
66
|
+
]
|
|
76
67
|
},
|
|
77
68
|
"prettier": "@gearbox-protocol/prettier-config",
|
|
78
69
|
"lint-staged": {
|
|
79
|
-
"*.ts": [
|
|
70
|
+
"*.{ts}": [
|
|
80
71
|
"eslint --fix",
|
|
81
72
|
"prettier --write"
|
|
82
73
|
],
|
|
83
74
|
"*.{json,md}": "prettier --write"
|
|
84
|
-
}
|
|
75
|
+
},
|
|
76
|
+
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
|
|
85
77
|
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.5.0;
|
|
3
|
-
|
|
4
|
-
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
|
|
5
|
-
|
|
6
|
-
struct DistributionData {
|
|
7
|
-
address account;
|
|
8
|
-
uint8 campaignId;
|
|
9
|
-
uint256 amount;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
struct ClaimedData {
|
|
13
|
-
address account;
|
|
14
|
-
uint256 amount;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface IAirdropDistributorEvents {
|
|
18
|
-
/// @dev Emits when a user claims tokens
|
|
19
|
-
event Claimed(
|
|
20
|
-
address indexed account,
|
|
21
|
-
uint256 amount,
|
|
22
|
-
bool indexed historic
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
/// @dev Emits when the owner replaces the merkle root
|
|
26
|
-
event RootUpdated(bytes32 oldRoot, bytes32 indexed newRoot);
|
|
27
|
-
|
|
28
|
-
/// @dev Emitted from a special function after updating the root to index allocations
|
|
29
|
-
event TokenAllocated(
|
|
30
|
-
address indexed account,
|
|
31
|
-
uint8 indexed campaignId,
|
|
32
|
-
uint256 amount
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface IAirdropDistributor is IAirdropDistributorEvents {
|
|
37
|
-
/// @dev Returns the token distributed by this contract.
|
|
38
|
-
function token() external view returns (IERC20);
|
|
39
|
-
|
|
40
|
-
/// @dev Returns the current merkle root containing total claimable balances
|
|
41
|
-
function merkleRoot() external view returns (bytes32);
|
|
42
|
-
|
|
43
|
-
/// @dev Returns the total amount of token claimed by the user
|
|
44
|
-
function claimed(address user) external view returns (uint256);
|
|
45
|
-
|
|
46
|
-
// Claim the given amount of the token to the given address. Reverts if the inputs are invalid.
|
|
47
|
-
/// @dev Claims the given amount of the token for the account. Reverts if the inputs are not a leaf in the tree
|
|
48
|
-
/// or the total claimed amount for the account is more than the leaf amount.
|
|
49
|
-
function claim(
|
|
50
|
-
uint256 index,
|
|
51
|
-
address account,
|
|
52
|
-
uint256 totalAmount,
|
|
53
|
-
bytes32[] calldata merkleProof
|
|
54
|
-
) external;
|
|
55
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
pragma solidity >=0.5.0;
|
|
3
|
-
|
|
4
|
-
interface IDegenDistributorEvents {
|
|
5
|
-
/// @dev Emits when a user claims tokens
|
|
6
|
-
event Claimed(address indexed account, uint256 amount);
|
|
7
|
-
|
|
8
|
-
/// @dev Emits when the owner replaces the merkle root
|
|
9
|
-
event RootUpdated(bytes32 oldRoot, bytes32 indexed newRoot);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
interface IDegenDistributor is IDegenDistributorEvents {
|
|
13
|
-
// Returns the merkle root of the merkle tree containing account balances available to claim.
|
|
14
|
-
function merkleRoot() external view returns (bytes32);
|
|
15
|
-
|
|
16
|
-
/// @dev Returns the total amount of token claimed by the user
|
|
17
|
-
function claimed(address user) external view returns (uint256);
|
|
18
|
-
|
|
19
|
-
// Claim the given amount of the token to the given address. Reverts if the inputs are invalid.
|
|
20
|
-
/// @dev Claims the remaining unclaimed amount of the token for the account. Reverts if the inputs are not a leaf in the tree
|
|
21
|
-
/// or the total claimed amount for the account is more than the leaf amount.
|
|
22
|
-
function claim(
|
|
23
|
-
uint256 index,
|
|
24
|
-
address account,
|
|
25
|
-
uint256 totalAmount,
|
|
26
|
-
bytes32[] calldata merkleProof
|
|
27
|
-
) external;
|
|
28
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: BUSL-1.1
|
|
2
|
-
// Gearbox Protocol. Generalized leverage for DeFi protocols
|
|
3
|
-
// (c) Gearbox Holdings, 2021
|
|
4
|
-
pragma solidity ^0.8.10;
|
|
5
|
-
|
|
6
|
-
interface IOffchainOracle {
|
|
7
|
-
function getRate(
|
|
8
|
-
address srcToken,
|
|
9
|
-
address dstToken,
|
|
10
|
-
bool useWrappers
|
|
11
|
-
) external view returns (uint256 weightedRate);
|
|
12
|
-
|
|
13
|
-
function getRateToEth(address srcToken, bool useSrcWrappers)
|
|
14
|
-
external
|
|
15
|
-
view
|
|
16
|
-
returns (uint256 weightedRate);
|
|
17
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: MIT
|
|
2
|
-
// Gearbox Protocol. Generalized leverage for DeFi protocols
|
|
3
|
-
// (c) Gearbox Holdings, 2022
|
|
4
|
-
pragma solidity ^0.8.10;
|
|
5
|
-
|
|
6
|
-
interface IWETHGateway {
|
|
7
|
-
/// @dev Converts ETH to WETH and add liqudity to the pool
|
|
8
|
-
/// @param pool Address of PoolService contract to add liquidity to. This pool must have WETH as an underlying.
|
|
9
|
-
/// @param onBehalfOf The address that will receive the diesel token.
|
|
10
|
-
/// @param referralCode Code used to log the transaction facilitator, for potential rewards. 0 if non-applicable.
|
|
11
|
-
function addLiquidityETH(
|
|
12
|
-
address pool,
|
|
13
|
-
address onBehalfOf,
|
|
14
|
-
uint16 referralCode
|
|
15
|
-
) external payable;
|
|
16
|
-
|
|
17
|
-
/// @dev Removes liquidity from the pool and converts WETH to ETH
|
|
18
|
-
/// - burns lp's diesel (LP) tokens
|
|
19
|
-
/// - unwraps WETH to ETH and sends to the LP
|
|
20
|
-
/// @param pool Address of PoolService contract to withdraw liquidity from. This pool must have WETH as an underlying.
|
|
21
|
-
/// @param amount Amount of Diesel tokens to send.
|
|
22
|
-
/// @param to Address to transfer ETH to.
|
|
23
|
-
function removeLiquidityETH(
|
|
24
|
-
address pool,
|
|
25
|
-
uint256 amount,
|
|
26
|
-
address payable to
|
|
27
|
-
) external;
|
|
28
|
-
|
|
29
|
-
/// @dev Converts WETH to ETH, and sends to the passed address
|
|
30
|
-
/// @param to Address to send ETH to
|
|
31
|
-
/// @param amount Amount of WETH to unwrap
|
|
32
|
-
function unwrapWETH(address to, uint256 amount) external;
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
pragma solidity ^0.8.10;
|
|
3
|
-
|
|
4
|
-
interface IwstETHGateWay {
|
|
5
|
-
error NonRegisterPoolException();
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @dev Adds stETH liquidity to wstETH pool
|
|
9
|
-
* - transfers the underlying to the pool
|
|
10
|
-
* - mints Diesel (LP) tokens to onBehalfOf
|
|
11
|
-
* @param amount Amount of tokens to be deposited
|
|
12
|
-
* @param onBehalfOf The address that will receive the dToken
|
|
13
|
-
* @param referralCode Code used to register the integrator originating the operation, for potential rewards.
|
|
14
|
-
* 0 if the action is executed directly by the user, without a facilitator.
|
|
15
|
-
*/
|
|
16
|
-
function addLiquidity(uint256 amount, address onBehalfOf, uint256 referralCode) external;
|
|
17
|
-
|
|
18
|
-
/// @dev Removes liquidity from pool
|
|
19
|
-
/// - burns LP's Diesel (LP) tokens
|
|
20
|
-
/// - returns the equivalent amount of underlying to 'to'
|
|
21
|
-
/// @param amount Amount of Diesel tokens to burn
|
|
22
|
-
/// @param to Address to transfer the underlying to
|
|
23
|
-
function removeLiquidity(uint256 amount, address to) external returns (uint256 amountGet);
|
|
24
|
-
}
|
package/contracts/index.sol
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
// SPDX-License-Identifier: UNLICENSED
|
|
2
|
-
// Gearbox Protocol. Generalized leverage for DeFi protocols
|
|
3
|
-
// (c) Gearbox Foundation, 2023.
|
|
4
|
-
|
|
5
|
-
pragma solidity ^0.8.10;
|
|
6
|
-
|
|
7
|
-
import {IDataCompressorV2_10} from "@gearbox-protocol/periphery-v3/contracts/interfaces/IDataCompressorV2_10.sol";
|
|
8
|
-
import {IDataCompressorV3_00} from "@gearbox-protocol/periphery-v3/contracts/interfaces/IDataCompressorV3_00.sol";
|
|
9
|
-
import {IAddressProviderV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IAddressProviderV3.sol";
|
|
10
|
-
import {IContractsRegister} from "@gearbox-protocol/core-v2/contracts/interfaces/IContractsRegister.sol";
|
|
11
|
-
import {IPoolV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPoolV3.sol";
|
|
12
|
-
import {ILinearInterestRateModelV3} from "@gearbox-protocol/core-v3/contracts/interfaces/ILinearInterestRateModelV3.sol";
|
|
13
|
-
import {IPoolQuotaKeeperV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPoolQuotaKeeperV3.sol";
|
|
14
|
-
import {IGaugeV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IGaugeV3.sol";
|
|
15
|
-
import {ICreditFacadeV3} from "@gearbox-protocol/core-v3/contracts/interfaces/ICreditFacadeV3.sol";
|
|
16
|
-
import {IPoolService} from "@gearbox-protocol/core-v2/contracts/interfaces/IPoolService.sol";
|
|
17
|
-
import {ICreditFacadeV2} from "@gearbox-protocol/core-v2/contracts/interfaces/ICreditFacadeV2.sol";
|
|
18
|
-
import {ICreditConfiguratorV2} from "@gearbox-protocol/core-v2/contracts/interfaces/ICreditConfiguratorV2.sol";
|
|
19
|
-
import {IERC20ZapperDeposits} from
|
|
20
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/zappers/IERC20ZapperDeposits.sol";
|
|
21
|
-
import {IETHZapperDeposits} from "@gearbox-protocol/integrations-v3/contracts/interfaces/zappers/IETHZapperDeposits.sol";
|
|
22
|
-
import {IZapper} from "@gearbox-protocol/integrations-v3/contracts/interfaces/zappers/IZapper.sol";
|
|
23
|
-
import {IZapperRegister} from "@gearbox-protocol/periphery-v3/contracts/interfaces/IZapperRegister.sol";
|
|
24
|
-
import {IDegenNFTV2} from "@gearbox-protocol/core-v2/contracts/interfaces/IDegenNFTV2.sol";
|
|
25
|
-
import {IBotListV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IBotListV3.sol";
|
|
26
|
-
|
|
27
|
-
import {IGearStakingV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IGearStakingV3.sol";
|
|
28
|
-
import {IControllerTimelockV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IControllerTimelockV3.sol";
|
|
29
|
-
|
|
30
|
-
// Adapters
|
|
31
|
-
import {IAaveV2_LendingPoolAdapter} from
|
|
32
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/aave/IAaveV2_LendingPoolAdapter.sol";
|
|
33
|
-
import {IAaveV2_WrappedATokenAdapter} from
|
|
34
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/aave/IAaveV2_WrappedATokenAdapter.sol";
|
|
35
|
-
import {IBalancerV2VaultAdapter} from
|
|
36
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/balancer/IBalancerV2VaultAdapter.sol";
|
|
37
|
-
import {ICompoundV2_CTokenAdapter} from
|
|
38
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/compound/ICompoundV2_CTokenAdapter.sol";
|
|
39
|
-
import {ILidoV1Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/lido/ILidoV1Adapter.sol";
|
|
40
|
-
import {IBaseRewardPool} from "@gearbox-protocol/integrations-v3/contracts/integrations/convex/IBaseRewardPool.sol";
|
|
41
|
-
import {IConvexToken} from "@gearbox-protocol/integrations-v3/contracts/integrations/convex/IConvexToken.sol";
|
|
42
|
-
import {ICurvePool} from "@gearbox-protocol/integrations-v3/contracts/integrations/curve/ICurvePool.sol";
|
|
43
|
-
import {IConvexV1BaseRewardPoolAdapter} from
|
|
44
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/convex/IConvexV1BaseRewardPoolAdapter.sol";
|
|
45
|
-
import {IConvexV1BoosterAdapter} from
|
|
46
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/convex/IConvexV1BoosterAdapter.sol";
|
|
47
|
-
import {IERC4626Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/erc4626/IERC4626Adapter.sol";
|
|
48
|
-
|
|
49
|
-
import {IInterestRateModel} from "@gearbox-protocol/core-v2/contracts/interfaces/IInterestRateModel.sol";
|
|
50
|
-
import {IUniswapV2Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/uniswap/IUniswapV2Adapter.sol";
|
|
51
|
-
import {IUniswapV3Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/uniswap/IUniswapV3Adapter.sol";
|
|
52
|
-
import {IYVault} from "@gearbox-protocol/integrations-v3/contracts/integrations/yearn/IYVault.sol";
|
|
53
|
-
import {IYearnV2Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/yearn/IYearnV2Adapter.sol";
|
|
54
|
-
|
|
55
|
-
import {IwstETHV1Adapter} from "@gearbox-protocol/integrations-v3/contracts/interfaces/lido/IwstETHV1Adapter.sol";
|
|
56
|
-
import {IstETH} from "@gearbox-protocol/integrations-v3/contracts/integrations/lido/IstETH.sol";
|
|
57
|
-
import {IwstETH} from "@gearbox-protocol/integrations-v3/contracts/integrations/lido/IwstETH.sol";
|
|
58
|
-
import {IPriceOracleBase} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracleBase.sol";
|
|
59
|
-
import {IPriceOracleV2} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceOracle.sol";
|
|
60
|
-
import {IPriceOracleV3} from "@gearbox-protocol/core-v3/contracts/interfaces/IPriceOracleV3.sol";
|
|
61
|
-
import {IPriceFeed} from "@gearbox-protocol/core-v2/contracts/interfaces/IPriceFeed.sol";
|
|
62
|
-
import {ILPPriceFeed} from "@gearbox-protocol/oracles-v3/contracts/interfaces/ILPPriceFeed.sol";
|
|
63
|
-
import {RedstonePriceFeed} from "@gearbox-protocol/oracles-v3/contracts/oracles/updatable/RedstonePriceFeed.sol";
|
|
64
|
-
|
|
65
|
-
import {ICurveV1_2AssetsAdapter} from
|
|
66
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_2AssetsAdapter.sol";
|
|
67
|
-
|
|
68
|
-
import {ICurveV1_3AssetsAdapter} from
|
|
69
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_3AssetsAdapter.sol";
|
|
70
|
-
|
|
71
|
-
import {ICurveV1_4AssetsAdapter} from
|
|
72
|
-
"@gearbox-protocol/integrations-v3/contracts/interfaces/curve/ICurveV1_4AssetsAdapter.sol";
|
|
73
|
-
|
|
74
|
-
import {IRouterV3} from "@gearbox-protocol/router-v3/contracts/interfaces/IRouterV3.sol";
|
|
75
|
-
import {IRouter} from "@gearbox-protocol/router/contracts/interfaces/IRouter.sol";
|
|
76
|
-
|
|
77
|
-
import {IFarmingPool} from "@1inch/farming/contracts/interfaces/IFarmingPool.sol";
|
package/lib/apy/convexAPY.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ConvexPoolContract, ConvexPoolParams, CurveGEARPoolParams, CurveParams, CurveSteCRVPoolParams, MCall, NetworkType } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
import { CurveLPToken } from "@gearbox-protocol/sdk-gov/lib/tokens/curveLP";
|
|
3
|
-
import { SupportedToken } from "@gearbox-protocol/sdk-gov/lib/tokens/token";
|
|
4
|
-
import { BigNumber } from "ethers";
|
|
5
|
-
import { CurveAPYResult } from "./curveAPY";
|
|
6
|
-
type GetTokenPriceCallback = (tokenAddress: string, currency?: string) => bigint;
|
|
7
|
-
export interface GetConvexAPYBulkProps {
|
|
8
|
-
getTokenPrice: GetTokenPriceCallback;
|
|
9
|
-
curveAPY: CurveAPYResult;
|
|
10
|
-
generated: GetConvexAPYBulkCallsReturns;
|
|
11
|
-
response: Array<BigNumber>;
|
|
12
|
-
}
|
|
13
|
-
export declare function getConvexAPYBulk(props: GetConvexAPYBulkProps): bigint[];
|
|
14
|
-
interface PoolInfo {
|
|
15
|
-
cvxPool: ConvexPoolParams;
|
|
16
|
-
cvxPoolAddress: string;
|
|
17
|
-
cvxExtraPools: string[];
|
|
18
|
-
crvPoolAddress: string;
|
|
19
|
-
crvToken: CurveLPToken;
|
|
20
|
-
crvPool: CrvParams;
|
|
21
|
-
crvLpPrice: Array<string>;
|
|
22
|
-
tokenList: Record<SupportedToken, string>;
|
|
23
|
-
}
|
|
24
|
-
type CrvParams = CurveParams | CurveSteCRVPoolParams | CurveGEARPoolParams;
|
|
25
|
-
type GetConvexAPYBulkCallsReturns = ReturnType<typeof getConvexAPYBulkCalls>;
|
|
26
|
-
export interface GetConvexAPYBulkCallsProps {
|
|
27
|
-
pools: Array<ConvexPoolContract>;
|
|
28
|
-
networkType: NetworkType;
|
|
29
|
-
}
|
|
30
|
-
export declare function getConvexAPYBulkCalls({ pools, networkType, }: GetConvexAPYBulkCallsProps): {
|
|
31
|
-
poolsInfo: PoolInfo[];
|
|
32
|
-
calls: [MCall<import("../types/IBaseRewardPool").IBaseRewardPoolInterface>, MCall<import("../types/IBaseRewardPool").IBaseRewardPoolInterface>, MCall<import("../types/IBaseRewardPool").IBaseRewardPoolInterface>, MCall<import("../types/ICurvePool").ICurvePoolInterface>, MCall<import("../types/IConvexToken").IConvexTokenInterface>, ...(MCall<import("../types/IBaseRewardPool").IBaseRewardPoolInterface> | MCall<any>)[]][];
|
|
33
|
-
};
|
|
34
|
-
export interface CalculateConvexAPYProps {
|
|
35
|
-
cvxPoolRate: bigint;
|
|
36
|
-
cvxPoolSupply: bigint;
|
|
37
|
-
cvxTokenSupply: bigint;
|
|
38
|
-
cvxPoolRewardsFinish: bigint;
|
|
39
|
-
cvxExtraRewards: Array<bigint>;
|
|
40
|
-
cvxExtraRewardsFinish: Array<bigint>;
|
|
41
|
-
crvVPrice: bigint;
|
|
42
|
-
crvLpPrice: Array<bigint>;
|
|
43
|
-
info: PoolInfo;
|
|
44
|
-
getTokenPrice: GetTokenPriceCallback;
|
|
45
|
-
curveAPY: CurveAPYResult;
|
|
46
|
-
}
|
|
47
|
-
export declare function getCVXMintAmount(crvAmount: bigint, cvxTokenSupply: bigint): bigint;
|
|
48
|
-
export {};
|
package/lib/apy/convexAPY.js
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCVXMintAmount = exports.getConvexAPYBulkCalls = exports.getConvexAPYBulk = void 0;
|
|
4
|
-
const sdk_gov_1 = require("@gearbox-protocol/sdk-gov");
|
|
5
|
-
const token_1 = require("@gearbox-protocol/sdk-gov/lib/tokens/token");
|
|
6
|
-
const utils_1 = require("ethers/lib/utils");
|
|
7
|
-
const types_1 = require("../types");
|
|
8
|
-
const V2_POOLS = { 20: true };
|
|
9
|
-
function getConvexAPYBulk(props) {
|
|
10
|
-
const { poolsInfo, calls } = props.generated;
|
|
11
|
-
const [parsedResponse] = calls.reduce(([acc, start], call) => {
|
|
12
|
-
const end = start + call.length;
|
|
13
|
-
const currentResponse = props.response.slice(start, end);
|
|
14
|
-
acc.push(currentResponse);
|
|
15
|
-
return [acc, end];
|
|
16
|
-
}, [[], 0]);
|
|
17
|
-
const apyList = parsedResponse.map(([cvxPoolRewardsFinish, cvxPoolRate, cvxPoolSupply, crvVPrice, cvxTokenSupply, ...rest], i) => {
|
|
18
|
-
const { cvxExtraPools, crvLpPrice: crvLpPriceList } = poolsInfo[i];
|
|
19
|
-
const extraEnd = cvxExtraPools.length;
|
|
20
|
-
const cvxExtraRewards = rest.slice(0, extraEnd);
|
|
21
|
-
const extraFinishEnd = cvxExtraPools.length * 2;
|
|
22
|
-
const cvxExtraRewardsFinish = rest.slice(extraEnd, extraFinishEnd);
|
|
23
|
-
const lpPriceEnd = extraFinishEnd + crvLpPriceList.length;
|
|
24
|
-
const crvLpPrice = rest.slice(extraFinishEnd, lpPriceEnd);
|
|
25
|
-
const apy = calculateConvexAPY({
|
|
26
|
-
cvxPoolRewardsFinish: (0, sdk_gov_1.toBigInt)(cvxPoolRewardsFinish),
|
|
27
|
-
cvxPoolRate: (0, sdk_gov_1.toBigInt)(cvxPoolRate),
|
|
28
|
-
cvxPoolSupply: (0, sdk_gov_1.toBigInt)(cvxPoolSupply),
|
|
29
|
-
crvVPrice: (0, sdk_gov_1.toBigInt)(crvVPrice),
|
|
30
|
-
cvxTokenSupply: (0, sdk_gov_1.toBigInt)(cvxTokenSupply),
|
|
31
|
-
cvxExtraRewards: cvxExtraRewards.map(v => (0, sdk_gov_1.toBigInt)(v)),
|
|
32
|
-
cvxExtraRewardsFinish: cvxExtraRewardsFinish.map(v => (0, sdk_gov_1.toBigInt)(v)),
|
|
33
|
-
crvLpPrice: crvLpPrice.map(v => (0, sdk_gov_1.toBigInt)(v)),
|
|
34
|
-
info: poolsInfo[i],
|
|
35
|
-
getTokenPrice: props.getTokenPrice,
|
|
36
|
-
curveAPY: props.curveAPY,
|
|
37
|
-
});
|
|
38
|
-
return apy;
|
|
39
|
-
});
|
|
40
|
-
return apyList;
|
|
41
|
-
}
|
|
42
|
-
exports.getConvexAPYBulk = getConvexAPYBulk;
|
|
43
|
-
function getPoolInfo({ pool, networkType }) {
|
|
44
|
-
const tokenList = token_1.tokenDataByNetwork[networkType];
|
|
45
|
-
const contractsList = sdk_gov_1.contractsByNetwork[networkType];
|
|
46
|
-
const poolParams = sdk_gov_1.contractParams[pool];
|
|
47
|
-
const basePoolAddress = contractsList[pool];
|
|
48
|
-
const extraPoolAddresses = poolParams.extraRewards.map(d => d.poolAddress[networkType]);
|
|
49
|
-
const stakedTokenParams = token_1.supportedTokens[poolParams.stakedToken];
|
|
50
|
-
const { underlying } = stakedTokenParams;
|
|
51
|
-
const crvParams = token_1.supportedTokens[underlying];
|
|
52
|
-
const swapPoolAddress = contractsList[crvParams.pool];
|
|
53
|
-
const crvPoolParams = sdk_gov_1.contractParams[crvParams.pool];
|
|
54
|
-
const crvLpPrice = V2_POOLS[crvPoolParams["version"]]
|
|
55
|
-
? [swapPoolAddress]
|
|
56
|
-
: [];
|
|
57
|
-
return {
|
|
58
|
-
cvxPool: poolParams,
|
|
59
|
-
cvxPoolAddress: basePoolAddress,
|
|
60
|
-
cvxExtraPools: extraPoolAddresses,
|
|
61
|
-
crvPoolAddress: swapPoolAddress,
|
|
62
|
-
crvPool: crvPoolParams,
|
|
63
|
-
crvToken: underlying,
|
|
64
|
-
crvLpPrice,
|
|
65
|
-
tokenList,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function getConvexAPYBulkCalls({ pools, networkType, }) {
|
|
69
|
-
const poolsInfo = pools.map(pool => getPoolInfo({ networkType, pool }));
|
|
70
|
-
const calls = poolsInfo.map(info => getPoolDataCalls(info));
|
|
71
|
-
return { poolsInfo, calls };
|
|
72
|
-
}
|
|
73
|
-
exports.getConvexAPYBulkCalls = getConvexAPYBulkCalls;
|
|
74
|
-
function getPoolDataCalls(props) {
|
|
75
|
-
const calls = [
|
|
76
|
-
{
|
|
77
|
-
address: props.cvxPoolAddress,
|
|
78
|
-
interface: types_1.IBaseRewardPool__factory.createInterface(),
|
|
79
|
-
method: "periodFinish()",
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
address: props.cvxPoolAddress,
|
|
83
|
-
interface: types_1.IBaseRewardPool__factory.createInterface(),
|
|
84
|
-
method: "rewardRate()",
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
address: props.cvxPoolAddress,
|
|
88
|
-
interface: types_1.IBaseRewardPool__factory.createInterface(),
|
|
89
|
-
method: "totalSupply()",
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
address: props.crvPoolAddress,
|
|
93
|
-
interface: types_1.ICurvePool__factory.createInterface(),
|
|
94
|
-
method: "get_virtual_price()",
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
address: props.tokenList.CVX,
|
|
98
|
-
interface: types_1.IConvexToken__factory.createInterface(),
|
|
99
|
-
method: "totalSupply()",
|
|
100
|
-
},
|
|
101
|
-
...props.cvxExtraPools.map((extraPoolAddress) => ({
|
|
102
|
-
address: extraPoolAddress,
|
|
103
|
-
interface: types_1.IBaseRewardPool__factory.createInterface(),
|
|
104
|
-
method: "rewardRate()",
|
|
105
|
-
})),
|
|
106
|
-
...props.cvxExtraPools.map((extraPoolAddress) => ({
|
|
107
|
-
address: extraPoolAddress,
|
|
108
|
-
interface: types_1.IBaseRewardPool__factory.createInterface(),
|
|
109
|
-
method: "periodFinish()",
|
|
110
|
-
})),
|
|
111
|
-
...(V2_POOLS[props.crvPool["version"]]
|
|
112
|
-
? [
|
|
113
|
-
{
|
|
114
|
-
address: props.crvPoolAddress,
|
|
115
|
-
interface: new utils_1.Interface([
|
|
116
|
-
"function lp_price() view returns (uint256)",
|
|
117
|
-
]),
|
|
118
|
-
method: "lp_price()",
|
|
119
|
-
},
|
|
120
|
-
]
|
|
121
|
-
: []),
|
|
122
|
-
];
|
|
123
|
-
return calls;
|
|
124
|
-
}
|
|
125
|
-
const CVX_MAX_SUPPLY = sdk_gov_1.WAD * 100000000n;
|
|
126
|
-
const CVX_REDUCTION_PER_CLIFF = 100000n;
|
|
127
|
-
const CVX_TOTAL_CLIFFS = sdk_gov_1.WAD * 1000n;
|
|
128
|
-
const CURRENCY_LIST = {
|
|
129
|
-
stkcvxsteCRV: "WETH",
|
|
130
|
-
stkcvxcrvCVXETH: "WETH",
|
|
131
|
-
stkcvxcrvCRVETH: "WETH",
|
|
132
|
-
stkcvxLDOETH: "WETH",
|
|
133
|
-
stkcvxcrvUSDTWBTCWETH: "USDT",
|
|
134
|
-
};
|
|
135
|
-
function calculateConvexAPY(props) {
|
|
136
|
-
const { tokenList, cvxPool, crvToken, cvxExtraPools } = props.info;
|
|
137
|
-
const currentTimestamp = getTimestampInSeconds();
|
|
138
|
-
const currencySymbol = CURRENCY_LIST[cvxPool.stakedToken];
|
|
139
|
-
const currency = currencySymbol && tokenList[currencySymbol || ""];
|
|
140
|
-
const cvxPrice = props.getTokenPrice(tokenList.CVX, currency);
|
|
141
|
-
const crvPrice = props.getTokenPrice(tokenList.CRV, currency);
|
|
142
|
-
const crvPerSecond = props.cvxPoolRate;
|
|
143
|
-
const vPrice = getVirtualPrice(props);
|
|
144
|
-
const virtualSupply = (props.cvxPoolSupply * vPrice) / sdk_gov_1.WAD;
|
|
145
|
-
const crvPerUnderlying = (crvPerSecond * sdk_gov_1.WAD) / virtualSupply;
|
|
146
|
-
const crvPerYear = crvPerUnderlying * BigInt(sdk_gov_1.SECONDS_PER_YEAR);
|
|
147
|
-
const cvxPerYear = getCVXMintAmount(crvPerYear, props.cvxTokenSupply);
|
|
148
|
-
const baseFinished = props.cvxPoolRewardsFinish <= currentTimestamp;
|
|
149
|
-
const crvAPY = baseFinished ? 0n : (crvPerYear * crvPrice) / sdk_gov_1.PRICE_DECIMALS;
|
|
150
|
-
const cvxAPY = baseFinished ? 0n : (cvxPerYear * cvxPrice) / sdk_gov_1.PRICE_DECIMALS;
|
|
151
|
-
const extraAPRs = cvxExtraPools.map((_, index) => {
|
|
152
|
-
const extraRewardSymbol = cvxPool.extraRewards[index].rewardToken;
|
|
153
|
-
const extraPoolRate = props.cvxExtraRewards[index];
|
|
154
|
-
const extraFinished = props.cvxExtraRewardsFinish[index];
|
|
155
|
-
const perUnderlying = (extraPoolRate * sdk_gov_1.WAD) / virtualSupply;
|
|
156
|
-
const perYear = perUnderlying * BigInt(sdk_gov_1.SECONDS_PER_YEAR);
|
|
157
|
-
const extraPrice = props.getTokenPrice(tokenList[extraRewardSymbol], currency);
|
|
158
|
-
const extraAPY = (perYear * extraPrice) / sdk_gov_1.PRICE_DECIMALS;
|
|
159
|
-
const finished = extraFinished <= currentTimestamp;
|
|
160
|
-
return finished ? 0n : extraAPY;
|
|
161
|
-
});
|
|
162
|
-
const extraAPYTotal = extraAPRs.reduce((acc, apy) => acc + apy, 0n);
|
|
163
|
-
const baseApyWAD = props.curveAPY[crvToken].base;
|
|
164
|
-
return baseApyWAD + crvAPY + cvxAPY + extraAPYTotal;
|
|
165
|
-
}
|
|
166
|
-
function getTimestampInSeconds() {
|
|
167
|
-
return Math.floor(Date.now() / 1000);
|
|
168
|
-
}
|
|
169
|
-
function getCVXMintAmount(crvAmount, cvxTokenSupply) {
|
|
170
|
-
const currentCliff = cvxTokenSupply / CVX_REDUCTION_PER_CLIFF;
|
|
171
|
-
if (currentCliff < CVX_TOTAL_CLIFFS) {
|
|
172
|
-
const remainingCliffs = CVX_TOTAL_CLIFFS - currentCliff;
|
|
173
|
-
const mintedAmount = (crvAmount * remainingCliffs) / CVX_TOTAL_CLIFFS;
|
|
174
|
-
const amountTillMax = CVX_MAX_SUPPLY - cvxTokenSupply;
|
|
175
|
-
return mintedAmount > amountTillMax ? amountTillMax : mintedAmount;
|
|
176
|
-
}
|
|
177
|
-
return 0n;
|
|
178
|
-
}
|
|
179
|
-
exports.getCVXMintAmount = getCVXMintAmount;
|
|
180
|
-
function getVirtualPrice(props) {
|
|
181
|
-
if (V2_POOLS[props.info.crvPool.version]) {
|
|
182
|
-
return props.crvLpPrice[0] ?? props.crvVPrice;
|
|
183
|
-
}
|
|
184
|
-
else {
|
|
185
|
-
return props.crvVPrice;
|
|
186
|
-
}
|
|
187
|
-
}
|
package/lib/apy/curveAPY.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { CurveLPToken } from "@gearbox-protocol/sdk-gov/lib/tokens/curveLP";
|
|
2
|
-
import { GearboxToken } from "@gearbox-protocol/sdk-gov/lib/tokens/gear";
|
|
3
|
-
type CurveAPYTokens = CurveLPToken | GearboxToken;
|
|
4
|
-
interface CurveAPY {
|
|
5
|
-
base: bigint;
|
|
6
|
-
crv: bigint;
|
|
7
|
-
gauge: Array<[string, bigint]>;
|
|
8
|
-
}
|
|
9
|
-
export type CurveAPYResult = Record<CurveAPYTokens, CurveAPY>;
|
|
10
|
-
export declare function getCurveAPY(): Promise<CurveAPYResult | null>;
|
|
11
|
-
export {};
|