@gearbox-protocol/sdk 0.0.61 → 0.0.64
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/lib/core/contracts.js +5 -5
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/pathfinder/path.js +9 -8
- package/lib/pathfinder/priority.d.ts +1 -1
- package/lib/pathfinder/priority.js +11 -11
- package/lib/tokens/convex.d.ts +2 -1
- package/lib/tokens/convex.js +11 -11
- package/lib/tokens/curveLP.d.ts +2 -1
- package/lib/tokens/curveLP.js +7 -7
- package/lib/tokens/gear.d.ts +2 -1
- package/lib/tokens/gear.js +6 -6
- package/lib/tokens/normal.d.ts +2 -1
- package/lib/tokens/normal.js +29 -29
- package/lib/tokens/token.d.ts +0 -12
- package/lib/tokens/token.js +7 -20
- package/lib/tokens/tokenType.d.ts +12 -0
- package/lib/tokens/tokenType.js +16 -0
- package/lib/tokens/yearn.d.ts +2 -1
- package/lib/tokens/yearn.js +7 -7
- package/package.json +1 -1
- package/src/core/contracts.ts +6 -6
- package/src/index.ts +1 -0
- package/src/pathfinder/path.ts +3 -2
- package/src/pathfinder/priority.ts +1 -1
- package/src/tokens/convex.ts +2 -1
- package/src/tokens/curveLP.ts +2 -1
- package/src/tokens/gear.ts +2 -1
- package/src/tokens/normal.ts +2 -1
- package/src/tokens/token.ts +6 -19
- package/src/tokens/tokenType.ts +12 -0
- package/src/tokens/yearn.ts +2 -1
- package/lib/core/pathfinder.d.ts +0 -54
- package/lib/core/pathfinder.js +0 -612
- package/lib/core/token.d.ts +0 -104
- package/lib/core/token.js +0 -1359
- package/lib/core/tokenData.d.ts +0 -24
- package/lib/core/tokenData.js +0 -57
- package/lib/pathfinder/connector.d.ts +0 -7
- package/lib/pathfinder/connector.js +0 -78
- package/lib/pathfinder/connectorPathAsset.d.ts +0 -7
- package/lib/pathfinder/connectorPathAsset.js +0 -144
- package/lib/pathfinder/convexLPTokenPathAsset.d.ts +0 -5
- package/lib/pathfinder/convexLPTokenPathAsset.js +0 -77
- package/lib/pathfinder/curveLPPathAsset.d.ts +0 -5
- package/lib/pathfinder/curveLPPathAsset.js +0 -72
- package/lib/pathfinder/curveMetaLP.d.ts +0 -5
- package/lib/pathfinder/curveMetaLP.js +0 -72
- package/lib/pathfinder/metaCurveLPPathAsset.d.ts +0 -5
- package/lib/pathfinder/metaCurveLPPathAsset.js +0 -72
- package/lib/pathfinder/normalToken.d.ts +0 -7
- package/lib/pathfinder/normalToken.js +0 -78
- package/lib/pathfinder/normalTokenPathAsset.d.ts +0 -5
- package/lib/pathfinder/normalTokenPathAsset.js +0 -136
- package/lib/pathfinder/notes.d.ts +0 -4
- package/lib/pathfinder/notes.js +0 -58
- package/lib/pathfinder/pathfinder.d.ts +0 -24
- package/lib/pathfinder/pathfinder.js +0 -132
- package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.d.ts +0 -5
- package/lib/pathfinder/yearnVaultOfCurveLPPathAsset.js +0 -87
- package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.d.ts +0 -5
- package/lib/pathfinder/yearnVaultOfMetaCurveLPPathAsset.js +0 -87
- package/lib/pathfinder/yearnVaultPathAsset.d.ts +0 -5
- package/lib/pathfinder/yearnVaultPathAsset.js +0 -87
- package/lib/types/ACL.d.ts +0 -491
- package/lib/types/ACLTrait.d.ts +0 -148
- package/lib/types/ACLTraitTest.d.ts +0 -209
- package/lib/types/AccountFactory.d.ts +0 -716
- package/lib/types/AccountMining.d.ts +0 -222
- package/lib/types/AddressProvider.d.ts +0 -912
- package/lib/types/AggregatorV3Interface.d.ts +0 -234
- package/lib/types/ChainlinkPriceFeedMock.d.ts +0 -215
- package/lib/types/ContractsRegister.d.ts +0 -398
- package/lib/types/CreditAccount.d.ts +0 -443
- package/lib/types/CreditFilter.d.ts +0 -1609
- package/lib/types/CreditFilterMock.d.ts +0 -1687
- package/lib/types/CreditManager.d.ts +0 -1285
- package/lib/types/CreditManagerMockForFilter.d.ts +0 -605
- package/lib/types/CreditManagerMockForPoolTest.d.ts +0 -204
- package/lib/types/CurveMock.d.ts +0 -298
- package/lib/types/CurveV1Adapter.d.ts +0 -349
- package/lib/types/DataCompressor.d.ts +0 -1331
- package/lib/types/DieselToken.d.ts +0 -567
- package/lib/types/ERC165.d.ts +0 -116
- package/lib/types/ERC20.d.ts +0 -411
- package/lib/types/ERC20BlockingMock.d.ts +0 -568
- package/lib/types/ERC721.d.ts +0 -625
- package/lib/types/Errors.d.ts +0 -1854
- package/lib/types/ExecutorMock.d.ts +0 -140
- package/lib/types/FlashLoanAttacker.d.ts +0 -170
- package/lib/types/FuzzHarness.d.ts +0 -124
- package/lib/types/GearBeta.d.ts +0 -745
- package/lib/types/GearToken.d.ts +0 -888
- package/lib/types/IAccountFactory.d.ts +0 -317
- package/lib/types/IAccountMiner.d.ts +0 -124
- package/lib/types/IAppAddressProvider.d.ts +0 -198
- package/lib/types/IAppCreditManager.d.ts +0 -408
- package/lib/types/IAppERC20.d.ts +0 -309
- package/lib/types/IAppPoolService.d.ts +0 -166
- package/lib/types/ICreditAccount.d.ts +0 -430
- package/lib/types/ICreditFilter.d.ts +0 -1162
- package/lib/types/ICreditManager.d.ts +0 -971
- package/lib/types/ICurvePool.d.ts +0 -298
- package/lib/types/IDataCompressor.d.ts +0 -1231
- package/lib/types/IERC165.d.ts +0 -116
- package/lib/types/IERC20.d.ts +0 -294
- package/lib/types/IERC721.d.ts +0 -472
- package/lib/types/IERC721Enumerable.d.ts +0 -564
- package/lib/types/IERC721Metadata.d.ts +0 -523
- package/lib/types/IERC721Receiver.d.ts +0 -132
- package/lib/types/IGearToken.d.ts +0 -527
- package/lib/types/IInterestRateModel.d.ts +0 -121
- package/lib/types/IMerkleDistributor.d.ts +0 -190
- package/lib/types/IPoolService.d.ts +0 -772
- package/lib/types/IPriceOracle.d.ts +0 -211
- package/lib/types/IQuoter.d.ts +0 -269
- package/lib/types/ISwapRouter.d.ts +0 -404
- package/lib/types/IUniswapV2Migrator.d.ts +0 -134
- package/lib/types/IUniswapV2Router01.d.ts +0 -1119
- package/lib/types/IUniswapV2Router02.d.ts +0 -1432
- package/lib/types/IUniswapV3SwapCallback.d.ts +0 -127
- package/lib/types/IWETH.d.ts +0 -169
- package/lib/types/IWETHGateway.d.ts +0 -335
- package/lib/types/IYVault.d.ts +0 -558
- package/lib/types/LeveragedActions.d.ts +0 -772
- package/lib/types/LinearInterestRateModel.d.ts +0 -279
- package/lib/types/MockPoolService.d.ts +0 -1271
- package/lib/types/Multicall2.d.ts +0 -449
- package/lib/types/Ownable.d.ts +0 -169
- package/lib/types/PathFinder.d.ts +0 -379
- package/lib/types/Pausable.d.ts +0 -105
- package/lib/types/PercentageMathTest.d.ts +0 -154
- package/lib/types/PoolService.d.ts +0 -1174
- package/lib/types/PriceOracle.d.ts +0 -387
- package/lib/types/StepVesting.d.ts +0 -411
- package/lib/types/TestPoolService.d.ts +0 -1294
- package/lib/types/TokenDistributor.d.ts +0 -640
- package/lib/types/TokenFeeMock.d.ts +0 -544
- package/lib/types/TokenMock.d.ts +0 -531
- package/lib/types/TreasuryMock.d.ts +0 -86
- package/lib/types/UniswapRouterMock.d.ts +0 -1520
- package/lib/types/UniswapV2Adapter.d.ts +0 -1463
- package/lib/types/UniswapV3Adapter.d.ts +0 -455
- package/lib/types/WETHGateway.d.ts +0 -376
- package/lib/types/WETHMock.d.ts +0 -433
- package/lib/types/WadRayMathTest.d.ts +0 -316
- package/lib/types/YearnAdapter.d.ts +0 -609
- package/lib/types/YearnMock.d.ts +0 -795
- package/lib/types/YearnPriceFeed.d.ts +0 -399
- package/lib/types/commons.d.ts +0 -16
- package/lib/types/commons.js +0 -5
- package/lib/types/contracts/support/PathFinder.d.ts +0 -154
- package/lib/types/contracts/support/PathFinder.js +0 -2
- package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.d.ts +0 -52
- package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter.js +0 -2
- package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
- package/lib/types/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -2
- package/lib/types/factories/ACLTraitTest__factory.d.ts +0 -52
- package/lib/types/factories/ACLTraitTest__factory.js +0 -138
- package/lib/types/factories/ACLTrait__factory.d.ts +0 -31
- package/lib/types/factories/ACLTrait__factory.js +0 -75
- package/lib/types/factories/ACL__factory.d.ts +0 -45
- package/lib/types/factories/ACL__factory.js +0 -317
- package/lib/types/factories/AccountFactory__factory.d.ts +0 -72
- package/lib/types/factories/AccountFactory__factory.js +0 -508
- package/lib/types/factories/AccountMining__factory.d.ts +0 -56
- package/lib/types/factories/AccountMining__factory.js +0 -192
- package/lib/types/factories/AddressProvider__factory.d.ts +0 -52
- package/lib/types/factories/AddressProvider__factory.js +0 -582
- package/lib/types/factories/AggregatorV3Interface__factory.d.ts +0 -22
- package/lib/types/factories/AggregatorV3Interface__factory.js +0 -133
- package/lib/types/factories/ChainlinkPriceFeedMock__factory.d.ts +0 -42
- package/lib/types/factories/ChainlinkPriceFeedMock__factory.js +0 -193
- package/lib/types/factories/ContractsRegister__factory.d.ts +0 -56
- package/lib/types/factories/ContractsRegister__factory.js +0 -310
- package/lib/types/factories/CreditAccount__factory.d.ts +0 -32
- package/lib/types/factories/CreditAccount__factory.js +0 -262
- package/lib/types/factories/CreditFilterMock__factory.d.ts +0 -56
- package/lib/types/factories/CreditFilterMock__factory.js +0 -1083
- package/lib/types/factories/CreditFilter__factory.d.ts +0 -56
- package/lib/types/factories/CreditFilter__factory.js +0 -1047
- package/lib/types/factories/CreditManagerMockForFilter__factory.d.ts +0 -38
- package/lib/types/factories/CreditManagerMockForFilter__factory.js +0 -324
- package/lib/types/factories/CreditManagerMockForPoolTest__factory.d.ts +0 -48
- package/lib/types/factories/CreditManagerMockForPoolTest__factory.js +0 -131
- package/lib/types/factories/CreditManager__factory.d.ts +0 -77
- package/lib/types/factories/CreditManager__factory.js +0 -1030
- package/lib/types/factories/CurveMock__factory.d.ts +0 -42
- package/lib/types/factories/CurveMock__factory.js +0 -210
- package/lib/types/factories/CurveV1Adapter__factory.d.ts +0 -42
- package/lib/types/factories/CurveV1Adapter__factory.js +0 -254
- package/lib/types/factories/DataCompressor__factory.d.ts +0 -71
- package/lib/types/factories/DataCompressor__factory.js +0 -944
- package/lib/types/factories/DieselToken__factory.d.ts +0 -56
- package/lib/types/factories/DieselToken__factory.js +0 -432
- package/lib/types/factories/ERC165__factory.d.ts +0 -22
- package/lib/types/factories/ERC165__factory.js +0 -41
- package/lib/types/factories/ERC20BlockingMock__factory.d.ts +0 -56
- package/lib/types/factories/ERC20BlockingMock__factory.js +0 -429
- package/lib/types/factories/ERC20__factory.d.ts +0 -56
- package/lib/types/factories/ERC20__factory.js +0 -339
- package/lib/types/factories/ERC721__factory.d.ts +0 -56
- package/lib/types/factories/ERC721__factory.js +0 -468
- package/lib/types/factories/Errors__factory.d.ts +0 -28
- package/lib/types/factories/Errors__factory.js +0 -1015
- package/lib/types/factories/ExecutorMock__factory.d.ts +0 -38
- package/lib/types/factories/ExecutorMock__factory.js +0 -103
- package/lib/types/factories/FlashLoanAttacker__factory.d.ts +0 -48
- package/lib/types/factories/FlashLoanAttacker__factory.js +0 -117
- package/lib/types/factories/FuzzHarness__factory.d.ts +0 -38
- package/lib/types/factories/FuzzHarness__factory.js +0 -92
- package/lib/types/factories/GearBeta__factory.d.ts +0 -52
- package/lib/types/factories/GearBeta__factory.js +0 -527
- package/lib/types/factories/GearToken__factory.d.ts +0 -56
- package/lib/types/factories/GearToken__factory.js +0 -708
- package/lib/types/factories/IAccountFactory__factory.d.ts +0 -35
- package/lib/types/factories/IAccountFactory__factory.js +0 -226
- package/lib/types/factories/IAccountMiner__factory.d.ts +0 -28
- package/lib/types/factories/IAccountMiner__factory.js +0 -48
- package/lib/types/factories/IAppAddressProvider__factory.d.ts +0 -18
- package/lib/types/factories/IAppAddressProvider__factory.js +0 -100
- package/lib/types/factories/IAppCreditManager__factory.d.ts +0 -42
- package/lib/types/factories/IAppCreditManager__factory.js +0 -204
- package/lib/types/factories/IAppERC20__factory.d.ts +0 -22
- package/lib/types/factories/IAppERC20__factory.js +0 -194
- package/lib/types/factories/IAppPoolService__factory.d.ts +0 -22
- package/lib/types/factories/IAppPoolService__factory.js +0 -69
- package/lib/types/factories/ICreditAccount__factory.d.ts +0 -22
- package/lib/types/factories/ICreditAccount__factory.js +0 -218
- package/lib/types/factories/ICreditFilter__factory.d.ts +0 -35
- package/lib/types/factories/ICreditFilter__factory.js +0 -700
- package/lib/types/factories/ICreditManager__factory.d.ts +0 -56
- package/lib/types/factories/ICreditManager__factory.js +0 -720
- package/lib/types/factories/ICurvePool__factory.d.ts +0 -22
- package/lib/types/factories/ICurvePool__factory.js +0 -168
- package/lib/types/factories/IDataCompressor__factory.d.ts +0 -51
- package/lib/types/factories/IDataCompressor__factory.js +0 -826
- package/lib/types/factories/IERC165__factory.d.ts +0 -22
- package/lib/types/factories/IERC165__factory.js +0 -41
- package/lib/types/factories/IERC20__factory.d.ts +0 -35
- package/lib/types/factories/IERC20__factory.js +0 -205
- package/lib/types/factories/IERC721Enumerable__factory.d.ts +0 -35
- package/lib/types/factories/IERC721Enumerable__factory.js +0 -363
- package/lib/types/factories/IERC721Metadata__factory.d.ts +0 -35
- package/lib/types/factories/IERC721Metadata__factory.js +0 -352
- package/lib/types/factories/IERC721Receiver__factory.d.ts +0 -22
- package/lib/types/factories/IERC721Receiver__factory.js +0 -56
- package/lib/types/factories/IERC721__factory.d.ts +0 -35
- package/lib/types/factories/IERC721__factory.js +0 -307
- package/lib/types/factories/IGearToken__factory.d.ts +0 -35
- package/lib/types/factories/IGearToken__factory.js +0 -342
- package/lib/types/factories/IInterestRateModel__factory.d.ts +0 -22
- package/lib/types/factories/IInterestRateModel__factory.js +0 -46
- package/lib/types/factories/IMerkleDistributor__factory.d.ts +0 -35
- package/lib/types/factories/IMerkleDistributor__factory.js +0 -109
- package/lib/types/factories/IPoolService__factory.d.ts +0 -35
- package/lib/types/factories/IPoolService__factory.js +0 -580
- package/lib/types/factories/IPriceOracle__factory.d.ts +0 -35
- package/lib/types/factories/IPriceOracle__factory.js +0 -112
- package/lib/types/factories/IQuoter__factory.d.ts +0 -22
- package/lib/types/factories/IQuoter__factory.js +0 -148
- package/lib/types/factories/ISwapRouter__factory.d.ts +0 -27
- package/lib/types/factories/ISwapRouter__factory.js +0 -236
- package/lib/types/factories/IUniswapV2Migrator__factory.d.ts +0 -18
- package/lib/types/factories/IUniswapV2Migrator__factory.js +0 -55
- package/lib/types/factories/IUniswapV2Router01__factory.d.ts +0 -22
- package/lib/types/factories/IUniswapV2Router01__factory.js +0 -771
- package/lib/types/factories/IUniswapV2Router02__factory.d.ts +0 -22
- package/lib/types/factories/IUniswapV2Router02__factory.js +0 -973
- package/lib/types/factories/IUniswapV3SwapCallback__factory.d.ts +0 -18
- package/lib/types/factories/IUniswapV3SwapCallback__factory.js +0 -45
- package/lib/types/factories/IWETHGateway__factory.d.ts +0 -18
- package/lib/types/factories/IWETHGateway__factory.js +0 -150
- package/lib/types/factories/IWETH__factory.d.ts +0 -22
- package/lib/types/factories/IWETH__factory.js +0 -66
- package/lib/types/factories/IYVault__factory.d.ts +0 -35
- package/lib/types/factories/IYVault__factory.js +0 -411
- package/lib/types/factories/LeveragedActions__factory.d.ts +0 -84
- package/lib/types/factories/LeveragedActions__factory.js +0 -569
- package/lib/types/factories/LinearInterestRateModel__factory.d.ts +0 -42
- package/lib/types/factories/LinearInterestRateModel__factory.js +0 -209
- package/lib/types/factories/MockPoolService__factory.d.ts +0 -56
- package/lib/types/factories/MockPoolService__factory.js +0 -889
- package/lib/types/factories/Multicall2__factory.d.ts +0 -52
- package/lib/types/factories/Multicall2__factory.js +0 -364
- package/lib/types/factories/Ownable__factory.d.ts +0 -42
- package/lib/types/factories/Ownable__factory.js +0 -74
- package/lib/types/factories/PathFinder__factory.d.ts +0 -61
- package/lib/types/factories/PathFinder__factory.js +0 -302
- package/lib/types/factories/Pausable__factory.d.ts +0 -31
- package/lib/types/factories/Pausable__factory.js +0 -61
- package/lib/types/factories/PercentageMathTest__factory.d.ts +0 -32
- package/lib/types/factories/PercentageMathTest__factory.js +0 -101
- package/lib/types/factories/PoolService__factory.d.ts +0 -56
- package/lib/types/factories/PoolService__factory.js +0 -873
- package/lib/types/factories/PriceOracle__factory.d.ts +0 -56
- package/lib/types/factories/PriceOracle__factory.js +0 -290
- package/lib/types/factories/StepVesting__factory.d.ts +0 -52
- package/lib/types/factories/StepVesting__factory.js +0 -296
- package/lib/types/factories/TestPoolService__factory.d.ts +0 -56
- package/lib/types/factories/TestPoolService__factory.js +0 -932
- package/lib/types/factories/TokenDistributor__factory.d.ts +0 -82
- package/lib/types/factories/TokenDistributor__factory.js +0 -481
- package/lib/types/factories/TokenFeeMock__factory.d.ts +0 -56
- package/lib/types/factories/TokenFeeMock__factory.js +0 -427
- package/lib/types/factories/TokenMock__factory.d.ts +0 -56
- package/lib/types/factories/TokenMock__factory.js +0 -409
- package/lib/types/factories/TreasuryMock__factory.d.ts +0 -35
- package/lib/types/factories/TreasuryMock__factory.js +0 -70
- package/lib/types/factories/UniswapRouterMock__factory.d.ts +0 -32
- package/lib/types/factories/UniswapRouterMock__factory.js +0 -1046
- package/lib/types/factories/UniswapV2Adapter__factory.d.ts +0 -42
- package/lib/types/factories/UniswapV2Adapter__factory.js +0 -1059
- package/lib/types/factories/UniswapV3Adapter__factory.d.ts +0 -47
- package/lib/types/factories/UniswapV3Adapter__factory.js +0 -322
- package/lib/types/factories/WETHGateway__factory.d.ts +0 -70
- package/lib/types/factories/WETHGateway__factory.js +0 -241
- package/lib/types/factories/WETHMock__factory.d.ts +0 -52
- package/lib/types/factories/WETHMock__factory.js +0 -355
- package/lib/types/factories/WadRayMathTest__factory.d.ts +0 -32
- package/lib/types/factories/WadRayMathTest__factory.js +0 -239
- package/lib/types/factories/YearnAdapter__factory.d.ts +0 -56
- package/lib/types/factories/YearnAdapter__factory.js +0 -497
- package/lib/types/factories/YearnMock__factory.d.ts +0 -56
- package/lib/types/factories/YearnMock__factory.js +0 -598
- package/lib/types/factories/YearnPriceFeed__factory.d.ts +0 -56
- package/lib/types/factories/YearnPriceFeed__factory.js +0 -350
- package/lib/types/factories/contracts/support/PathFinder__factory.d.ts +0 -63
- package/lib/types/factories/contracts/support/PathFinder__factory.js +0 -319
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.d.ts +0 -34
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter__factory.js +0 -124
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts +0 -1
- package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js +0 -8
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.PathFinder__factory = void 0;
|
|
19
|
-
/* Autogenerated file. Do not edit manually. */
|
|
20
|
-
/* tslint:disable */
|
|
21
|
-
/* eslint-disable */
|
|
22
|
-
var ethers_1 = require("ethers");
|
|
23
|
-
var _abi = [
|
|
24
|
-
{
|
|
25
|
-
inputs: [
|
|
26
|
-
{
|
|
27
|
-
internalType: "address",
|
|
28
|
-
name: "_addressProvider",
|
|
29
|
-
type: "address",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
stateMutability: "nonpayable",
|
|
33
|
-
type: "constructor",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
inputs: [],
|
|
37
|
-
name: "addressProvider",
|
|
38
|
-
outputs: [
|
|
39
|
-
{
|
|
40
|
-
internalType: "contract AddressProvider",
|
|
41
|
-
name: "",
|
|
42
|
-
type: "address",
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
stateMutability: "view",
|
|
46
|
-
type: "function",
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
inputs: [
|
|
50
|
-
{
|
|
51
|
-
internalType: "enum AdapterType",
|
|
52
|
-
name: "swapInterface",
|
|
53
|
-
type: "uint8",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
internalType: "address",
|
|
57
|
-
name: "router",
|
|
58
|
-
type: "address",
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
internalType: "uint256",
|
|
62
|
-
name: "swapType",
|
|
63
|
-
type: "uint256",
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
internalType: "address",
|
|
67
|
-
name: "from",
|
|
68
|
-
type: "address",
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
internalType: "address",
|
|
72
|
-
name: "to",
|
|
73
|
-
type: "address",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
internalType: "uint256",
|
|
77
|
-
name: "amount",
|
|
78
|
-
type: "uint256",
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
internalType: "address[]",
|
|
82
|
-
name: "tokens",
|
|
83
|
-
type: "address[]",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
name: "bestUniPath",
|
|
87
|
-
outputs: [
|
|
88
|
-
{
|
|
89
|
-
components: [
|
|
90
|
-
{
|
|
91
|
-
internalType: "address[]",
|
|
92
|
-
name: "path",
|
|
93
|
-
type: "address[]",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
internalType: "uint256",
|
|
97
|
-
name: "rate",
|
|
98
|
-
type: "uint256",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
internalType: "uint256",
|
|
102
|
-
name: "expectedAmount",
|
|
103
|
-
type: "uint256",
|
|
104
|
-
},
|
|
105
|
-
],
|
|
106
|
-
internalType: "struct PathFinder.TradePath",
|
|
107
|
-
name: "",
|
|
108
|
-
type: "tuple",
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
stateMutability: "nonpayable",
|
|
112
|
-
type: "function",
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
inputs: [],
|
|
116
|
-
name: "contractsRegister",
|
|
117
|
-
outputs: [
|
|
118
|
-
{
|
|
119
|
-
internalType: "contract ContractsRegister",
|
|
120
|
-
name: "",
|
|
121
|
-
type: "address",
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
stateMutability: "view",
|
|
125
|
-
type: "function",
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
inputs: [
|
|
129
|
-
{
|
|
130
|
-
internalType: "address[]",
|
|
131
|
-
name: "path",
|
|
132
|
-
type: "address[]",
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
internalType: "uint256",
|
|
136
|
-
name: "swapType",
|
|
137
|
-
type: "uint256",
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
name: "convertPathToPathV3",
|
|
141
|
-
outputs: [
|
|
142
|
-
{
|
|
143
|
-
internalType: "bytes",
|
|
144
|
-
name: "result",
|
|
145
|
-
type: "bytes",
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
stateMutability: "pure",
|
|
149
|
-
type: "function",
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
inputs: [],
|
|
153
|
-
name: "ethToUsdPriceFeed",
|
|
154
|
-
outputs: [
|
|
155
|
-
{
|
|
156
|
-
internalType: "address",
|
|
157
|
-
name: "",
|
|
158
|
-
type: "address",
|
|
159
|
-
},
|
|
160
|
-
],
|
|
161
|
-
stateMutability: "view",
|
|
162
|
-
type: "function",
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
inputs: [
|
|
166
|
-
{
|
|
167
|
-
internalType: "address",
|
|
168
|
-
name: "router",
|
|
169
|
-
type: "address",
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
internalType: "address",
|
|
173
|
-
name: "_creditManager",
|
|
174
|
-
type: "address",
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
internalType: "address",
|
|
178
|
-
name: "borrower",
|
|
179
|
-
type: "address",
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
internalType: "address[]",
|
|
183
|
-
name: "connectorTokens",
|
|
184
|
-
type: "address[]",
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
name: "getClosurePaths",
|
|
188
|
-
outputs: [
|
|
189
|
-
{
|
|
190
|
-
components: [
|
|
191
|
-
{
|
|
192
|
-
internalType: "address[]",
|
|
193
|
-
name: "path",
|
|
194
|
-
type: "address[]",
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
internalType: "uint256",
|
|
198
|
-
name: "rate",
|
|
199
|
-
type: "uint256",
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
internalType: "uint256",
|
|
203
|
-
name: "expectedAmount",
|
|
204
|
-
type: "uint256",
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
internalType: "struct PathFinder.TradePath[]",
|
|
208
|
-
name: "result",
|
|
209
|
-
type: "tuple[]",
|
|
210
|
-
},
|
|
211
|
-
],
|
|
212
|
-
stateMutability: "nonpayable",
|
|
213
|
-
type: "function",
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
inputs: [
|
|
217
|
-
{
|
|
218
|
-
internalType: "address",
|
|
219
|
-
name: "creditAccount",
|
|
220
|
-
type: "address",
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
internalType: "address[]",
|
|
224
|
-
name: "tokens",
|
|
225
|
-
type: "address[]",
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
name: "getPrices",
|
|
229
|
-
outputs: [
|
|
230
|
-
{
|
|
231
|
-
internalType: "uint256[]",
|
|
232
|
-
name: "prices",
|
|
233
|
-
type: "uint256[]",
|
|
234
|
-
},
|
|
235
|
-
],
|
|
236
|
-
stateMutability: "view",
|
|
237
|
-
type: "function",
|
|
238
|
-
},
|
|
239
|
-
{
|
|
240
|
-
inputs: [],
|
|
241
|
-
name: "priceOracle",
|
|
242
|
-
outputs: [
|
|
243
|
-
{
|
|
244
|
-
internalType: "contract PriceOracle",
|
|
245
|
-
name: "",
|
|
246
|
-
type: "address",
|
|
247
|
-
},
|
|
248
|
-
],
|
|
249
|
-
stateMutability: "view",
|
|
250
|
-
type: "function",
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
inputs: [],
|
|
254
|
-
name: "version",
|
|
255
|
-
outputs: [
|
|
256
|
-
{
|
|
257
|
-
internalType: "uint256",
|
|
258
|
-
name: "",
|
|
259
|
-
type: "uint256",
|
|
260
|
-
},
|
|
261
|
-
],
|
|
262
|
-
stateMutability: "view",
|
|
263
|
-
type: "function",
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
inputs: [],
|
|
267
|
-
name: "wethToken",
|
|
268
|
-
outputs: [
|
|
269
|
-
{
|
|
270
|
-
internalType: "address",
|
|
271
|
-
name: "",
|
|
272
|
-
type: "address",
|
|
273
|
-
},
|
|
274
|
-
],
|
|
275
|
-
stateMutability: "view",
|
|
276
|
-
type: "function",
|
|
277
|
-
},
|
|
278
|
-
];
|
|
279
|
-
var _bytecode = "0x6101006040523480156200001257600080fd5b5060405162001cee38038062001cee8339810160408190526200003591620001b9565b6001600160a01b03811660808190526040805163c513c9bb60e01b8152905163c513c9bb916004808201926020929091908290030181865afa15801562000080573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620000a69190620001b9565b6001600160a01b031660a0816001600160a01b0316815250506080516001600160a01b031663fca513a86040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000100573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001269190620001b9565b6001600160a01b031660c0816001600160a01b0316815250506080516001600160a01b0316634c252f916040518163ffffffff1660e01b8152600401602060405180830381865afa15801562000180573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620001a69190620001b9565b6001600160a01b031660e05250620001eb565b600060208284031215620001cc57600080fd5b81516001600160a01b0381168114620001e457600080fd5b9392505050565b60805160a05160c05160e051611ab46200023a6000396000818161019b01526108b901526000818161010d01526108070152600081816101d801526109bb015260006101340152611ab46000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c80634b57b0be116100765780637a0c7b211161005b5780637a0c7b21146101d35780638b7ce872146101fa578063e2430f931461021a57600080fd5b80634b57b0be1461019657806354fd4d50146101bd57600080fd5b80632954018c116100a75780632954018c1461012f57806333a576a1146101565780633613d5271461017657600080fd5b80630c1bc044146100c35780632630c12f14610108575b600080fd5b6100de735f4ec3df9cbd43714fe2740f5e3616155c5b841981565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6100de7f000000000000000000000000000000000000000000000000000000000000000081565b6100de7f000000000000000000000000000000000000000000000000000000000000000081565b610169610164366004611238565b61023a565b6040516100ff9190611343565b61018961018436600461135d565b61066b565b6040516100ff91906113e3565b6100de7f000000000000000000000000000000000000000000000000000000000000000081565b6101c5600181565b6040519081526020016100ff565b6100de7f000000000000000000000000000000000000000000000000000000000000000081565b61020d610208366004611427565b610971565b6040516100ff9190611496565b61022d610228366004611516565b610aa7565b6040516100ff91906115c6565b61025e60405180606001604052806060815260200160008152602001600081525090565b826102a3576040805160036060820181815260e08301909352909182918160200160208202803683370190505081526020016000815260200160008152509050610660565b60408051600280825260608201835260009260208301908036833701905050905085816000815181106102d8576102d86115d9565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508481600181518110610326576103266115d9565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250506000806103a08b8b8b868a60018f14610399577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610c9f565b6000610c9f565b915091506060600082156103b2578491505b60005b87518110156105b2576040805160038082526080820190925290602082016060803683370190505095508a866000815181106103f3576103f36115d9565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508986600281518110610441576104416115d9565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508a73ffffffffffffffffffffffffffffffffffffffff168882815181106104a4576104a46115d9565b602002602001015173ffffffffffffffffffffffffffffffffffffffff161415801561051557508973ffffffffffffffffffffffffffffffffffffffff168882815181106104f4576104f46115d9565b602002602001015173ffffffffffffffffffffffffffffffffffffffff1614155b156105a05787818151811061052c5761052c6115d9565b602002602001015186600181518110610547576105476115d9565b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff168152505061058f8e8e8e898d8a610c9f565b9450915083156105a0578194508592505b806105aa81611637565b9150506103b5565b5060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8514156105e257600094505b84158015906105f057508815155b1561063f5760018c1461061f578861061086670de0b6b3a7640000611670565b61061a91906116ad565b61063c565b846106328a670de0b6b3a7640000611670565b61063c91906116ad565b90505b60408051606081018252938452602084019190915282019390935293505050505b979650505050505050565b60606000735f4ec3df9cbd43714fe2740f5e3616155c5b841973ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156106ce573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f29190611702565b50919350859250505067ffffffffffffffff81111561071357610713611124565b60405190808252806020026020018201604052801561073c578160200160208202803683370190505b50915060005b8381101561096857600085858381811061075e5761075e6115d9565b90506020020160208101906107739190611752565b73ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156107bd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107e1919061176d565b60ff169050670de0b6b3a76400008373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663d6d19b278a61083886600a6118b0565b8b8b8981811061084a5761084a6115d9565b905060200201602081019061085f9190611752565b60405160e085901b7fffffffff0000000000000000000000000000000000000000000000000000000016815273ffffffffffffffffffffffffffffffffffffffff93841660048201526024810192909252821660448201527f00000000000000000000000000000000000000000000000000000000000000009091166064820152608401602060405180830381865afa158015610900573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061092491906118bc565b61092e9190611670565b61093891906116ad565b84838151811061094a5761094a6115d9565b6020908102919091010152508061096081611637565b915050610742565b50509392505050565b6040517f6fbc6f6b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff808516600483015260609185917f00000000000000000000000000000000000000000000000000000000000000001690636fbc6f6b90602401602060405180830381865afa158015610a02573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a2691906118d5565b6040518060400160405280600281526020017f435000000000000000000000000000000000000000000000000000000000000081525090610a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a9491906115c6565b60405180910390fd5b5050949350505050565b6060610bb86001831415610c3c5760005b60018551610ac691906118f7565b811015610b9a57610b86858281518110610ae257610ae26115d9565b602002602001015183604051602001610b5192919060609290921b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016825260e81b7fffffff000000000000000000000000000000000000000000000000000000000016601482015260170190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190528490610ce9565b925080610b9281611637565b915050610ab8565b50610c358460018651610bad91906118f7565b81518110610bbd57610bbd6115d9565b6020026020010151604051602001610c00919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190528390610ce9565b9150610c98565b600060018551610c4c91906118f7565b90505b8015610c7e57610c6a858281518110610ae257610ae26115d9565b925080610c768161190e565b915050610c4f565b50610c9584600081518110610bbd57610bbd6115d9565b91505b5092915050565b600080600188600e811115610cb657610cb6611943565b14610ccd57610cc88787878787610d85565b610cda565b610cda8787878787610f20565b91509150965096945050505050565b6060806040519050835180825260208201818101602087015b81831015610d1a578051835260209283019201610d02565b50855184518101855292509050808201602086015b81831015610d47578051835260209283019201610d2f565b508651929092011591909101601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0166040525090505b92915050565b60008060006001871415610e48578773ffffffffffffffffffffffffffffffffffffffff1663cdca1753610db9888a610aa7565b876040518363ffffffff1660e01b8152600401610dd7929190611972565b6020604051808303816000875af1925050508015610e30575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610e2d918101906118bc565b60015b610e41578360009250925050610f16565b9050610ed9565b6002871415610e77578773ffffffffffffffffffffffffffffffffffffffff16632f80bb1d610db9888a610aa7565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f556e6b6e6f776e207377617020747970650000000000000000000000000000006044820152606401610a94565b600187148015610ee857508381115b80610efd5750600287148015610efd57508381105b15610f0d57915060019050610f16565b83600092509250505b9550959350505050565b6000806000600187141561101e576040517fd06ca61f00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff89169063d06ca61f90610f829088908a90600401611994565b600060405180830381865afa925050508015610fde57506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610fdb91908101906119f8565b60015b610fef578360009250925050610f16565b8060018851610ffe91906118f7565b8151811061100e5761100e6115d9565b6020026020010151915050610ed9565b6002871415610e77576040517f1f00ca7400000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff891690631f00ca749061107b9088908a90600401611994565b600060405180830381865afa9250505080156110d757506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526110d491908101906119f8565b60015b6110e8578360009250925050610f16565b8060008151811061100e5761100e6115d9565b803573ffffffffffffffffffffffffffffffffffffffff8116811461111f57600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff8111828210171561119a5761119a611124565b604052919050565b600067ffffffffffffffff8211156111bc576111bc611124565b5060051b60200190565b600082601f8301126111d757600080fd5b813560206111ec6111e7836111a2565b611153565b82815260059290921b8401810191818101908684111561120b57600080fd5b8286015b8481101561122d57611220816110fb565b835291830191830161120f565b509695505050505050565b600080600080600080600060e0888a03121561125357600080fd5b8735600f811061126257600080fd5b9650611270602089016110fb565b955060408801359450611285606089016110fb565b9350611293608089016110fb565b925060a0880135915060c088013567ffffffffffffffff8111156112b657600080fd5b6112c28a828b016111c6565b91505092959891949750929550565b805160608084528151908401819052600091602091908201906080860190845b8181101561132357835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016112f1565b505082850151838701526040850151604087015280935050505092915050565b60208152600061135660208301846112d1565b9392505050565b60008060006040848603121561137257600080fd5b61137b846110fb565b9250602084013567ffffffffffffffff8082111561139857600080fd5b818601915086601f8301126113ac57600080fd5b8135818111156113bb57600080fd5b8760208260051b85010111156113d057600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561141b578351835292840192918401916001016113ff565b50909695505050505050565b6000806000806080858703121561143d57600080fd5b611446856110fb565b9350611454602086016110fb565b9250611462604086016110fb565b9150606085013567ffffffffffffffff81111561147e57600080fd5b61148a878288016111c6565b91505092959194509250565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015611509577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08886030184526114f78583516112d1565b945092850192908501906001016114bd565b5092979650505050505050565b6000806040838503121561152957600080fd5b823567ffffffffffffffff81111561154057600080fd5b61154c858286016111c6565b95602094909401359450505050565b6000815180845260005b8181101561158157602081850181015186830182015201611565565b81811115611593576000602083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611356602083018461155b565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561166957611669611608565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156116a8576116a8611608565b500290565b6000826116e3577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b805169ffffffffffffffffffff8116811461111f57600080fd5b600080600080600060a0868803121561171a57600080fd5b611723866116e8565b9450602086015193506040860151925060608601519150611746608087016116e8565b90509295509295909350565b60006020828403121561176457600080fd5b611356826110fb565b60006020828403121561177f57600080fd5b815160ff8116811461135657600080fd5b600181815b808511156117e957817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156117cf576117cf611608565b808516156117dc57918102915b93841c9390800290611795565b509250929050565b60008261180057506001610d7f565b8161180d57506000610d7f565b8160018114611823576002811461182d57611849565b6001915050610d7f565b60ff84111561183e5761183e611608565b50506001821b610d7f565b5060208310610133831016604e8410600b841016171561186c575081810a610d7f565b6118768383611790565b807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048211156118a8576118a8611608565b029392505050565b600061135683836117f1565b6000602082840312156118ce57600080fd5b5051919050565b6000602082840312156118e757600080fd5b8151801515811461135657600080fd5b60008282101561190957611909611608565b500390565b60008161191d5761191d611608565b507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b604081526000611985604083018561155b565b90508260208301529392505050565b6000604082018483526020604081850152818551808452606086019150828701935060005b818110156119eb57845173ffffffffffffffffffffffffffffffffffffffff16835293830193918301916001016119b9565b5090979650505050505050565b60006020808385031215611a0b57600080fd5b825167ffffffffffffffff811115611a2257600080fd5b8301601f81018513611a3357600080fd5b8051611a416111e7826111a2565b81815260059190911b82018301908381019087831115611a6057600080fd5b928401925b8284101561066057835182529284019290840190611a6556fea26469706673582212200d539edc1e1224cb0efab437bf8134cfda3711e9f5ef0f70efee4a5a40e9fcd564736f6c634300080a0033";
|
|
280
|
-
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
281
|
-
var PathFinder__factory = /** @class */ (function (_super) {
|
|
282
|
-
__extends(PathFinder__factory, _super);
|
|
283
|
-
function PathFinder__factory() {
|
|
284
|
-
var args = [];
|
|
285
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
286
|
-
args[_i] = arguments[_i];
|
|
287
|
-
}
|
|
288
|
-
var _this = this;
|
|
289
|
-
if (isSuperArgs(args)) {
|
|
290
|
-
_this = _super.apply(this, args) || this;
|
|
291
|
-
}
|
|
292
|
-
else {
|
|
293
|
-
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
294
|
-
}
|
|
295
|
-
return _this;
|
|
296
|
-
}
|
|
297
|
-
PathFinder__factory.prototype.deploy = function (_addressProvider, overrides) {
|
|
298
|
-
return _super.prototype.deploy.call(this, _addressProvider, overrides || {});
|
|
299
|
-
};
|
|
300
|
-
PathFinder__factory.prototype.getDeployTransaction = function (_addressProvider, overrides) {
|
|
301
|
-
return _super.prototype.getDeployTransaction.call(this, _addressProvider, overrides || {});
|
|
302
|
-
};
|
|
303
|
-
PathFinder__factory.prototype.attach = function (address) {
|
|
304
|
-
return _super.prototype.attach.call(this, address);
|
|
305
|
-
};
|
|
306
|
-
PathFinder__factory.prototype.connect = function (signer) {
|
|
307
|
-
return _super.prototype.connect.call(this, signer);
|
|
308
|
-
};
|
|
309
|
-
PathFinder__factory.createInterface = function () {
|
|
310
|
-
return new ethers_1.utils.Interface(_abi);
|
|
311
|
-
};
|
|
312
|
-
PathFinder__factory.connect = function (address, signerOrProvider) {
|
|
313
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
314
|
-
};
|
|
315
|
-
PathFinder__factory.bytecode = _bytecode;
|
|
316
|
-
PathFinder__factory.abi = _abi;
|
|
317
|
-
return PathFinder__factory;
|
|
318
|
-
}(ethers_1.ContractFactory));
|
|
319
|
-
exports.PathFinder__factory = PathFinder__factory;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { ClaimZapFormatter, ClaimZapFormatterInterface } from "../../../../../../contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/ClaimZapFormatter";
|
|
4
|
-
declare type ClaimZapFormatterConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
|
|
5
|
-
export declare class ClaimZapFormatter__factory extends ContractFactory {
|
|
6
|
-
constructor(...args: ClaimZapFormatterConstructorParams);
|
|
7
|
-
deploy(overrides?: Overrides & {
|
|
8
|
-
from?: string | Promise<string>;
|
|
9
|
-
}): Promise<ClaimZapFormatter>;
|
|
10
|
-
getDeployTransaction(overrides?: Overrides & {
|
|
11
|
-
from?: string | Promise<string>;
|
|
12
|
-
}): TransactionRequest;
|
|
13
|
-
attach(address: string): ClaimZapFormatter;
|
|
14
|
-
connect(signer: Signer): ClaimZapFormatter__factory;
|
|
15
|
-
static readonly bytecode = "0x608060405234801561001057600080fd5b506102a7806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a7b87f214610030575b600080fd5b6101af600480360361012081101561004757600080fd5b81019060208101813564010000000081111561006257600080fd5b82018360208201111561007457600080fd5b8035906020019184602083028401116401000000008311171561009657600080fd5b9193909290916020810190356401000000008111156100b457600080fd5b8201836020820111156100c657600080fd5b803590602001918460208302840111640100000000831117156100e857600080fd5b91939092909160208101903564010000000081111561010657600080fd5b82018360208201111561011857600080fd5b8035906020019184602083028401116401000000008311171561013a57600080fd5b91939092909160208101903564010000000081111561015857600080fd5b82018360208201111561016a57600080fd5b8035906020019184602083028401116401000000008311171561018c57600080fd5b919350915080359060208101359060408101359060608101359060800135610224565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e95781810151838201526020016101d1565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293505050509d9c5050505050505050505050505056fea2646970667358221220f4364b0d912b5e7ebd94c0587a3af74b2eef1de89d4d5a0df4eaf74317830fe264736f6c634300080a0033";
|
|
16
|
-
static readonly abi: {
|
|
17
|
-
inputs: {
|
|
18
|
-
internalType: string;
|
|
19
|
-
name: string;
|
|
20
|
-
type: string;
|
|
21
|
-
}[];
|
|
22
|
-
name: string;
|
|
23
|
-
outputs: {
|
|
24
|
-
internalType: string;
|
|
25
|
-
name: string;
|
|
26
|
-
type: string;
|
|
27
|
-
}[];
|
|
28
|
-
stateMutability: string;
|
|
29
|
-
type: string;
|
|
30
|
-
}[];
|
|
31
|
-
static createInterface(): ClaimZapFormatterInterface;
|
|
32
|
-
static connect(address: string, signerOrProvider: Signer | Provider): ClaimZapFormatter;
|
|
33
|
-
}
|
|
34
|
-
export {};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ClaimZapFormatter__factory = void 0;
|
|
19
|
-
/* Autogenerated file. Do not edit manually. */
|
|
20
|
-
/* tslint:disable */
|
|
21
|
-
/* eslint-disable */
|
|
22
|
-
var ethers_1 = require("ethers");
|
|
23
|
-
var _abi = [
|
|
24
|
-
{
|
|
25
|
-
inputs: [
|
|
26
|
-
{
|
|
27
|
-
internalType: "address[]",
|
|
28
|
-
name: "rewardContracts",
|
|
29
|
-
type: "address[]",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
internalType: "address[]",
|
|
33
|
-
name: "extraRewardContracts",
|
|
34
|
-
type: "address[]",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: "address[]",
|
|
38
|
-
name: "tokenRewardContracts",
|
|
39
|
-
type: "address[]",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
internalType: "address[]",
|
|
43
|
-
name: "tokenRewardTokens",
|
|
44
|
-
type: "address[]",
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
internalType: "uint256",
|
|
48
|
-
name: "depositCrvMaxAmount",
|
|
49
|
-
type: "uint256",
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
internalType: "uint256",
|
|
53
|
-
name: "minAmountOut",
|
|
54
|
-
type: "uint256",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
internalType: "uint256",
|
|
58
|
-
name: "depositCvxMaxAmount",
|
|
59
|
-
type: "uint256",
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
internalType: "uint256",
|
|
63
|
-
name: "spendCvxAmount",
|
|
64
|
-
type: "uint256",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
internalType: "uint256",
|
|
68
|
-
name: "options",
|
|
69
|
-
type: "uint256",
|
|
70
|
-
},
|
|
71
|
-
],
|
|
72
|
-
name: "claimRewards",
|
|
73
|
-
outputs: [
|
|
74
|
-
{
|
|
75
|
-
internalType: "bytes",
|
|
76
|
-
name: "",
|
|
77
|
-
type: "bytes",
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
stateMutability: "pure",
|
|
81
|
-
type: "function",
|
|
82
|
-
},
|
|
83
|
-
];
|
|
84
|
-
var _bytecode = "0x608060405234801561001057600080fd5b506102a7806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c80635a7b87f214610030575b600080fd5b6101af600480360361012081101561004757600080fd5b81019060208101813564010000000081111561006257600080fd5b82018360208201111561007457600080fd5b8035906020019184602083028401116401000000008311171561009657600080fd5b9193909290916020810190356401000000008111156100b457600080fd5b8201836020820111156100c657600080fd5b803590602001918460208302840111640100000000831117156100e857600080fd5b91939092909160208101903564010000000081111561010657600080fd5b82018360208201111561011857600080fd5b8035906020019184602083028401116401000000008311171561013a57600080fd5b91939092909160208101903564010000000081111561015857600080fd5b82018360208201111561016a57600080fd5b8035906020019184602083028401116401000000008311171561018c57600080fd5b919350915080359060208101359060408101359060608101359060800135610224565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101e95781810151838201526020016101d1565b50505050905090810190601f1680156102165780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60606000368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509293505050509d9c5050505050505050505050505056fea2646970667358221220f4364b0d912b5e7ebd94c0587a3af74b2eef1de89d4d5a0df4eaf74317830fe264736f6c634300080a0033";
|
|
85
|
-
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
86
|
-
var ClaimZapFormatter__factory = /** @class */ (function (_super) {
|
|
87
|
-
__extends(ClaimZapFormatter__factory, _super);
|
|
88
|
-
function ClaimZapFormatter__factory() {
|
|
89
|
-
var args = [];
|
|
90
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
91
|
-
args[_i] = arguments[_i];
|
|
92
|
-
}
|
|
93
|
-
var _this = this;
|
|
94
|
-
if (isSuperArgs(args)) {
|
|
95
|
-
_this = _super.apply(this, args) || this;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
99
|
-
}
|
|
100
|
-
return _this;
|
|
101
|
-
}
|
|
102
|
-
ClaimZapFormatter__factory.prototype.deploy = function (overrides) {
|
|
103
|
-
return _super.prototype.deploy.call(this, overrides || {});
|
|
104
|
-
};
|
|
105
|
-
ClaimZapFormatter__factory.prototype.getDeployTransaction = function (overrides) {
|
|
106
|
-
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
107
|
-
};
|
|
108
|
-
ClaimZapFormatter__factory.prototype.attach = function (address) {
|
|
109
|
-
return _super.prototype.attach.call(this, address);
|
|
110
|
-
};
|
|
111
|
-
ClaimZapFormatter__factory.prototype.connect = function (signer) {
|
|
112
|
-
return _super.prototype.connect.call(this, signer);
|
|
113
|
-
};
|
|
114
|
-
ClaimZapFormatter__factory.createInterface = function () {
|
|
115
|
-
return new ethers_1.utils.Interface(_abi);
|
|
116
|
-
};
|
|
117
|
-
ClaimZapFormatter__factory.connect = function (address, signerOrProvider) {
|
|
118
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
119
|
-
};
|
|
120
|
-
ClaimZapFormatter__factory.bytecode = _bytecode;
|
|
121
|
-
ClaimZapFormatter__factory.abi = _abi;
|
|
122
|
-
return ClaimZapFormatter__factory;
|
|
123
|
-
}(ethers_1.ContractFactory));
|
|
124
|
-
exports.ClaimZapFormatter__factory = ClaimZapFormatter__factory;
|
package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClaimZapFormatter__factory } from "./ClaimZapFormatter__factory";
|
package/lib/types/factories/contracts/test/mocks/integrations/ConvexClaimZapFormatter.sol/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClaimZapFormatter__factory = void 0;
|
|
4
|
-
/* Autogenerated file. Do not edit manually. */
|
|
5
|
-
/* tslint:disable */
|
|
6
|
-
/* eslint-disable */
|
|
7
|
-
var ClaimZapFormatter__factory_1 = require("./ClaimZapFormatter__factory");
|
|
8
|
-
Object.defineProperty(exports, "ClaimZapFormatter__factory", { enumerable: true, get: function () { return ClaimZapFormatter__factory_1.ClaimZapFormatter__factory; } });
|