@gearbox-protocol/sdk 0.0.60 → 0.0.63
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 +4 -4
- 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 +5 -5
- 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,38 +0,0 @@
|
|
|
1
|
-
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { CreditManagerMockForFilter, CreditManagerMockForFilterInterface } from "../CreditManagerMockForFilter";
|
|
4
|
-
export declare class CreditManagerMockForFilter__factory extends ContractFactory {
|
|
5
|
-
constructor(signer?: Signer);
|
|
6
|
-
deploy(overrides?: Overrides & {
|
|
7
|
-
from?: string | Promise<string>;
|
|
8
|
-
}): Promise<CreditManagerMockForFilter>;
|
|
9
|
-
getDeployTransaction(overrides?: Overrides & {
|
|
10
|
-
from?: string | Promise<string>;
|
|
11
|
-
}): TransactionRequest;
|
|
12
|
-
attach(address: string): CreditManagerMockForFilter;
|
|
13
|
-
connect(signer: Signer): CreditManagerMockForFilter__factory;
|
|
14
|
-
static readonly bytecode = "0x608060405234801561001057600080fd5b50610939806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80635e0b63d3116100ad578063b2c53a6c11610071578063b2c53a6c1461039e578063c5e86154146103bc578063e1b4264c146103ea578063e1c8ef0d14610408578063e54fe9c8146104a057610121565b80635e0b63d3146102b25780637629da6f146102d05780638053fcbe146102fe5780639e52f12e1461031c578063aeb1e31c1461033a57610121565b80632495a599116100f45780632495a599146101be5780633915ffaa146101f2578063406318281461021057806351e3f1601461021a578063570a7af21461027e57610121565b80630fce70fb14610126578063115c2ec714610144578063134b4ac51461017257806322841f01146101a0575b600080fd5b61012e6104e4565b6040518082815260200191505060405180910390f35b6101706004803603602081101561015a57600080fd5b81019080803590602001909291905050506104ee565b005b61019e6004803603602081101561018857600080fd5b81019080803590602001909291905050506104f8565b005b6101a8610502565b6040518082815260200191505060405180910390f35b6101c6610508565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fa61052c565b6040518082815260200191505060405180910390f35b610218610532565b005b61027c6004803603604081101561023057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105b6565b005b61028661067b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102ba610683565b6040518082815260200191505060405180910390f35b6102fc600480360360208110156102e657600080fd5b8101908080359060200190929190505050610689565b005b610306610693565b6040518082815260200191505060405180910390f35b610324610699565b6040518082815260200191505060405180910390f35b61039c6004803603604081101561035057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061069f565b005b6103a6610751565b6040518082815260200191505060405180910390f35b6103e8600480360360208110156103d257600080fd5b8101908080359060200190929190505050610757565b005b6103f2610761565b6040518082815260200191505060405180910390f35b61049e600480360360a081101561041e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050610767565b005b6104e2600480360360208110156104b657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061085d565b005b6000600154905090565b8060068190555050565b8060018190555050565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663406318286040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561059c57600080fd5b505af11580156105b0573d6000803e3d6000fd5b50505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351e3f16083836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561065f57600080fd5b505af1158015610673573d6000803e3d6000fd5b505050505050565b600030905090565b60055481565b8060088190555050565b60075481565b60045481565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506103e86004819055506103e86005819055506103e86006819055506103e8600781905550612d506009819055505050565b60085481565b8060078190555050565b60095481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e1c8ef0d86868686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561083e57600080fd5b505af1158015610852573d6000803e3d6000fd5b505050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e54fe9c8826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156108e857600080fd5b505af11580156108fc573d6000803e3d6000fd5b505050505056fea2646970667358221220fefb1788f8bd16d980c7330c51b56dba09fd53500e35c59550f274f9afa2d72564736f6c63430007060033";
|
|
15
|
-
static readonly abi: ({
|
|
16
|
-
inputs: never[];
|
|
17
|
-
name: string;
|
|
18
|
-
outputs: {
|
|
19
|
-
internalType: string;
|
|
20
|
-
name: string;
|
|
21
|
-
type: string;
|
|
22
|
-
}[];
|
|
23
|
-
stateMutability: string;
|
|
24
|
-
type: string;
|
|
25
|
-
} | {
|
|
26
|
-
inputs: {
|
|
27
|
-
internalType: string;
|
|
28
|
-
name: string;
|
|
29
|
-
type: string;
|
|
30
|
-
}[];
|
|
31
|
-
name: string;
|
|
32
|
-
outputs: never[];
|
|
33
|
-
stateMutability: string;
|
|
34
|
-
type: string;
|
|
35
|
-
})[];
|
|
36
|
-
static createInterface(): CreditManagerMockForFilterInterface;
|
|
37
|
-
static connect(address: string, signerOrProvider: Signer | Provider): CreditManagerMockForFilter;
|
|
38
|
-
}
|
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var __extends = (this && this.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
-
return extendStatics(d, b);
|
|
11
|
-
};
|
|
12
|
-
return function (d, b) {
|
|
13
|
-
if (typeof b !== "function" && b !== null)
|
|
14
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.CreditManagerMockForFilter__factory = void 0;
|
|
22
|
-
var ethers_1 = require("ethers");
|
|
23
|
-
var _abi = [
|
|
24
|
-
{
|
|
25
|
-
inputs: [],
|
|
26
|
-
name: "calcLinearCumulative_RAY",
|
|
27
|
-
outputs: [
|
|
28
|
-
{
|
|
29
|
-
internalType: "uint256",
|
|
30
|
-
name: "",
|
|
31
|
-
type: "uint256",
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
stateMutability: "view",
|
|
35
|
-
type: "function",
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
inputs: [
|
|
39
|
-
{
|
|
40
|
-
internalType: "address",
|
|
41
|
-
name: "creditAccount",
|
|
42
|
-
type: "address",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
internalType: "address",
|
|
46
|
-
name: "token",
|
|
47
|
-
type: "address",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
name: "checkAndEnableToken",
|
|
51
|
-
outputs: [],
|
|
52
|
-
stateMutability: "nonpayable",
|
|
53
|
-
type: "function",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
inputs: [
|
|
57
|
-
{
|
|
58
|
-
internalType: "address",
|
|
59
|
-
name: "creditAccount",
|
|
60
|
-
type: "address",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
internalType: "address",
|
|
64
|
-
name: "tokenIn",
|
|
65
|
-
type: "address",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
internalType: "address",
|
|
69
|
-
name: "tokenOut",
|
|
70
|
-
type: "address",
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
internalType: "uint256",
|
|
74
|
-
name: "amountIn",
|
|
75
|
-
type: "uint256",
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
internalType: "uint256",
|
|
79
|
-
name: "amountOut",
|
|
80
|
-
type: "uint256",
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
name: "checkCollateralChange",
|
|
84
|
-
outputs: [],
|
|
85
|
-
stateMutability: "nonpayable",
|
|
86
|
-
type: "function",
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
inputs: [
|
|
90
|
-
{
|
|
91
|
-
internalType: "address",
|
|
92
|
-
name: "_creditFilterAddress",
|
|
93
|
-
type: "address",
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
internalType: "address",
|
|
97
|
-
name: "_underlyingToken",
|
|
98
|
-
type: "address",
|
|
99
|
-
},
|
|
100
|
-
],
|
|
101
|
-
name: "connectFilter",
|
|
102
|
-
outputs: [],
|
|
103
|
-
stateMutability: "nonpayable",
|
|
104
|
-
type: "function",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
inputs: [],
|
|
108
|
-
name: "feeInterest",
|
|
109
|
-
outputs: [
|
|
110
|
-
{
|
|
111
|
-
internalType: "uint256",
|
|
112
|
-
name: "",
|
|
113
|
-
type: "uint256",
|
|
114
|
-
},
|
|
115
|
-
],
|
|
116
|
-
stateMutability: "view",
|
|
117
|
-
type: "function",
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
inputs: [],
|
|
121
|
-
name: "feeLiquidation",
|
|
122
|
-
outputs: [
|
|
123
|
-
{
|
|
124
|
-
internalType: "uint256",
|
|
125
|
-
name: "",
|
|
126
|
-
type: "uint256",
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
stateMutability: "view",
|
|
130
|
-
type: "function",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
inputs: [],
|
|
134
|
-
name: "feeSuccess",
|
|
135
|
-
outputs: [
|
|
136
|
-
{
|
|
137
|
-
internalType: "uint256",
|
|
138
|
-
name: "",
|
|
139
|
-
type: "uint256",
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
stateMutability: "view",
|
|
143
|
-
type: "function",
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
inputs: [],
|
|
147
|
-
name: "healthFactor",
|
|
148
|
-
outputs: [
|
|
149
|
-
{
|
|
150
|
-
internalType: "uint256",
|
|
151
|
-
name: "",
|
|
152
|
-
type: "uint256",
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
stateMutability: "view",
|
|
156
|
-
type: "function",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
inputs: [
|
|
160
|
-
{
|
|
161
|
-
internalType: "address",
|
|
162
|
-
name: "creditAccount",
|
|
163
|
-
type: "address",
|
|
164
|
-
},
|
|
165
|
-
],
|
|
166
|
-
name: "initEnabledTokens",
|
|
167
|
-
outputs: [],
|
|
168
|
-
stateMutability: "nonpayable",
|
|
169
|
-
type: "function",
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
inputs: [],
|
|
173
|
-
name: "liquidationDiscount",
|
|
174
|
-
outputs: [
|
|
175
|
-
{
|
|
176
|
-
internalType: "uint256",
|
|
177
|
-
name: "",
|
|
178
|
-
type: "uint256",
|
|
179
|
-
},
|
|
180
|
-
],
|
|
181
|
-
stateMutability: "view",
|
|
182
|
-
type: "function",
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
inputs: [],
|
|
186
|
-
name: "maxLeverageFactor",
|
|
187
|
-
outputs: [
|
|
188
|
-
{
|
|
189
|
-
internalType: "uint256",
|
|
190
|
-
name: "",
|
|
191
|
-
type: "uint256",
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
stateMutability: "view",
|
|
195
|
-
type: "function",
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
inputs: [],
|
|
199
|
-
name: "minHealthFactor",
|
|
200
|
-
outputs: [
|
|
201
|
-
{
|
|
202
|
-
internalType: "uint256",
|
|
203
|
-
name: "",
|
|
204
|
-
type: "uint256",
|
|
205
|
-
},
|
|
206
|
-
],
|
|
207
|
-
stateMutability: "view",
|
|
208
|
-
type: "function",
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
inputs: [],
|
|
212
|
-
name: "poolService",
|
|
213
|
-
outputs: [
|
|
214
|
-
{
|
|
215
|
-
internalType: "address",
|
|
216
|
-
name: "",
|
|
217
|
-
type: "address",
|
|
218
|
-
},
|
|
219
|
-
],
|
|
220
|
-
stateMutability: "view",
|
|
221
|
-
type: "function",
|
|
222
|
-
},
|
|
223
|
-
{
|
|
224
|
-
inputs: [
|
|
225
|
-
{
|
|
226
|
-
internalType: "uint256",
|
|
227
|
-
name: "_value",
|
|
228
|
-
type: "uint256",
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
name: "setFeeLiquidation",
|
|
232
|
-
outputs: [],
|
|
233
|
-
stateMutability: "nonpayable",
|
|
234
|
-
type: "function",
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
inputs: [
|
|
238
|
-
{
|
|
239
|
-
internalType: "uint256",
|
|
240
|
-
name: "newValue",
|
|
241
|
-
type: "uint256",
|
|
242
|
-
},
|
|
243
|
-
],
|
|
244
|
-
name: "setLinearCumulative",
|
|
245
|
-
outputs: [],
|
|
246
|
-
stateMutability: "nonpayable",
|
|
247
|
-
type: "function",
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
inputs: [
|
|
251
|
-
{
|
|
252
|
-
internalType: "uint256",
|
|
253
|
-
name: "_value",
|
|
254
|
-
type: "uint256",
|
|
255
|
-
},
|
|
256
|
-
],
|
|
257
|
-
name: "setLiquidationDiscount",
|
|
258
|
-
outputs: [],
|
|
259
|
-
stateMutability: "nonpayable",
|
|
260
|
-
type: "function",
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
inputs: [
|
|
264
|
-
{
|
|
265
|
-
internalType: "uint256",
|
|
266
|
-
name: "_value",
|
|
267
|
-
type: "uint256",
|
|
268
|
-
},
|
|
269
|
-
],
|
|
270
|
-
name: "setMaxLeverageFactor",
|
|
271
|
-
outputs: [],
|
|
272
|
-
stateMutability: "nonpayable",
|
|
273
|
-
type: "function",
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
inputs: [],
|
|
277
|
-
name: "underlyingToken",
|
|
278
|
-
outputs: [
|
|
279
|
-
{
|
|
280
|
-
internalType: "address",
|
|
281
|
-
name: "",
|
|
282
|
-
type: "address",
|
|
283
|
-
},
|
|
284
|
-
],
|
|
285
|
-
stateMutability: "view",
|
|
286
|
-
type: "function",
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
inputs: [],
|
|
290
|
-
name: "updateUnderlyingTokenLiquidationThreshold",
|
|
291
|
-
outputs: [],
|
|
292
|
-
stateMutability: "nonpayable",
|
|
293
|
-
type: "function",
|
|
294
|
-
},
|
|
295
|
-
];
|
|
296
|
-
var _bytecode = "0x608060405234801561001057600080fd5b50610939806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80635e0b63d3116100ad578063b2c53a6c11610071578063b2c53a6c1461039e578063c5e86154146103bc578063e1b4264c146103ea578063e1c8ef0d14610408578063e54fe9c8146104a057610121565b80635e0b63d3146102b25780637629da6f146102d05780638053fcbe146102fe5780639e52f12e1461031c578063aeb1e31c1461033a57610121565b80632495a599116100f45780632495a599146101be5780633915ffaa146101f2578063406318281461021057806351e3f1601461021a578063570a7af21461027e57610121565b80630fce70fb14610126578063115c2ec714610144578063134b4ac51461017257806322841f01146101a0575b600080fd5b61012e6104e4565b6040518082815260200191505060405180910390f35b6101706004803603602081101561015a57600080fd5b81019080803590602001909291905050506104ee565b005b61019e6004803603602081101561018857600080fd5b81019080803590602001909291905050506104f8565b005b6101a8610502565b6040518082815260200191505060405180910390f35b6101c6610508565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6101fa61052c565b6040518082815260200191505060405180910390f35b610218610532565b005b61027c6004803603604081101561023057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506105b6565b005b61028661067b565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6102ba610683565b6040518082815260200191505060405180910390f35b6102fc600480360360208110156102e657600080fd5b8101908080359060200190929190505050610689565b005b610306610693565b6040518082815260200191505060405180910390f35b610324610699565b6040518082815260200191505060405180910390f35b61039c6004803603604081101561035057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061069f565b005b6103a6610751565b6040518082815260200191505060405180910390f35b6103e8600480360360208110156103d257600080fd5b8101908080359060200190929190505050610757565b005b6103f2610761565b6040518082815260200191505060405180910390f35b61049e600480360360a081101561041e57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919080359060200190929190505050610767565b005b6104e2600480360360208110156104b657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061085d565b005b6000600154905090565b8060068190555050565b8060018190555050565b60025481565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60065481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663406318286040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561059c57600080fd5b505af11580156105b0573d6000803e3d6000fd5b50505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166351e3f16083836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1681526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561065f57600080fd5b505af1158015610673573d6000803e3d6000fd5b505050505050565b600030905090565b60055481565b8060088190555050565b60075481565b60045481565b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506103e86004819055506103e86005819055506103e86006819055506103e8600781905550612d506009819055505050565b60085481565b8060078190555050565b60095481565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e1c8ef0d86868686866040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200195505050505050600060405180830381600087803b15801561083e57600080fd5b505af1158015610852573d6000803e3d6000fd5b505050505050505050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e54fe9c8826040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff168152602001915050600060405180830381600087803b1580156108e857600080fd5b505af11580156108fc573d6000803e3d6000fd5b505050505056fea2646970667358221220fefb1788f8bd16d980c7330c51b56dba09fd53500e35c59550f274f9afa2d72564736f6c63430007060033";
|
|
297
|
-
var CreditManagerMockForFilter__factory = /** @class */ (function (_super) {
|
|
298
|
-
__extends(CreditManagerMockForFilter__factory, _super);
|
|
299
|
-
function CreditManagerMockForFilter__factory(signer) {
|
|
300
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
301
|
-
}
|
|
302
|
-
CreditManagerMockForFilter__factory.prototype.deploy = function (overrides) {
|
|
303
|
-
return _super.prototype.deploy.call(this, overrides || {});
|
|
304
|
-
};
|
|
305
|
-
CreditManagerMockForFilter__factory.prototype.getDeployTransaction = function (overrides) {
|
|
306
|
-
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
307
|
-
};
|
|
308
|
-
CreditManagerMockForFilter__factory.prototype.attach = function (address) {
|
|
309
|
-
return _super.prototype.attach.call(this, address);
|
|
310
|
-
};
|
|
311
|
-
CreditManagerMockForFilter__factory.prototype.connect = function (signer) {
|
|
312
|
-
return _super.prototype.connect.call(this, signer);
|
|
313
|
-
};
|
|
314
|
-
CreditManagerMockForFilter__factory.createInterface = function () {
|
|
315
|
-
return new ethers_1.utils.Interface(_abi);
|
|
316
|
-
};
|
|
317
|
-
CreditManagerMockForFilter__factory.connect = function (address, signerOrProvider) {
|
|
318
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
319
|
-
};
|
|
320
|
-
CreditManagerMockForFilter__factory.bytecode = _bytecode;
|
|
321
|
-
CreditManagerMockForFilter__factory.abi = _abi;
|
|
322
|
-
return CreditManagerMockForFilter__factory;
|
|
323
|
-
}(ethers_1.ContractFactory));
|
|
324
|
-
exports.CreditManagerMockForFilter__factory = CreditManagerMockForFilter__factory;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { CreditManagerMockForPoolTest, CreditManagerMockForPoolTestInterface } from "../CreditManagerMockForPoolTest";
|
|
4
|
-
export declare class CreditManagerMockForPoolTest__factory extends ContractFactory {
|
|
5
|
-
constructor(signer?: Signer);
|
|
6
|
-
deploy(_poolService: string, overrides?: Overrides & {
|
|
7
|
-
from?: string | Promise<string>;
|
|
8
|
-
}): Promise<CreditManagerMockForPoolTest>;
|
|
9
|
-
getDeployTransaction(_poolService: string, overrides?: Overrides & {
|
|
10
|
-
from?: string | Promise<string>;
|
|
11
|
-
}): TransactionRequest;
|
|
12
|
-
attach(address: string): CreditManagerMockForPoolTest;
|
|
13
|
-
connect(signer: Signer): CreditManagerMockForPoolTest__factory;
|
|
14
|
-
static readonly bytecode = "0x608060405234801561001057600080fd5b506040516103aa3803806103aa8339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610316806100946000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632495a59914610051578063570a7af214610085578063bf28068b146100b9578063ca9505e414610107575b600080fd5b610059610149565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61008d61016f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610105600480360360408110156100cf57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610193565b005b6101476004803603606081101561011d57600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610240565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bf28068b83836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca9505e48484846040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050600060405180830381600087803b1580156102c357600080fd5b505af11580156102d7573d6000803e3d6000fd5b5050505050505056fea2646970667358221220cb7bf3bb387d55b37dd6f3646ec3aaa1f31a285a5d6045dc2141a12193dffb0b64736f6c63430007060033";
|
|
15
|
-
static readonly abi: ({
|
|
16
|
-
inputs: {
|
|
17
|
-
internalType: string;
|
|
18
|
-
name: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}[];
|
|
21
|
-
stateMutability: string;
|
|
22
|
-
type: string;
|
|
23
|
-
name?: undefined;
|
|
24
|
-
outputs?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
inputs: {
|
|
27
|
-
internalType: string;
|
|
28
|
-
name: string;
|
|
29
|
-
type: string;
|
|
30
|
-
}[];
|
|
31
|
-
name: string;
|
|
32
|
-
outputs: never[];
|
|
33
|
-
stateMutability: string;
|
|
34
|
-
type: string;
|
|
35
|
-
} | {
|
|
36
|
-
inputs: never[];
|
|
37
|
-
name: string;
|
|
38
|
-
outputs: {
|
|
39
|
-
internalType: string;
|
|
40
|
-
name: string;
|
|
41
|
-
type: string;
|
|
42
|
-
}[];
|
|
43
|
-
stateMutability: string;
|
|
44
|
-
type: string;
|
|
45
|
-
})[];
|
|
46
|
-
static createInterface(): CreditManagerMockForPoolTestInterface;
|
|
47
|
-
static connect(address: string, signerOrProvider: Signer | Provider): CreditManagerMockForPoolTest;
|
|
48
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Autogenerated file. Do not edit manually. */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var __extends = (this && this.__extends) || (function () {
|
|
6
|
-
var extendStatics = function (d, b) {
|
|
7
|
-
extendStatics = Object.setPrototypeOf ||
|
|
8
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
9
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
10
|
-
return extendStatics(d, b);
|
|
11
|
-
};
|
|
12
|
-
return function (d, b) {
|
|
13
|
-
if (typeof b !== "function" && b !== null)
|
|
14
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.CreditManagerMockForPoolTest__factory = void 0;
|
|
22
|
-
var ethers_1 = require("ethers");
|
|
23
|
-
var _abi = [
|
|
24
|
-
{
|
|
25
|
-
inputs: [
|
|
26
|
-
{
|
|
27
|
-
internalType: "address",
|
|
28
|
-
name: "_poolService",
|
|
29
|
-
type: "address",
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
stateMutability: "nonpayable",
|
|
33
|
-
type: "constructor",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
inputs: [
|
|
37
|
-
{
|
|
38
|
-
internalType: "uint256",
|
|
39
|
-
name: "borrowedAmount",
|
|
40
|
-
type: "uint256",
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
internalType: "address",
|
|
44
|
-
name: "creditAccount",
|
|
45
|
-
type: "address",
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
name: "lendCreditAccount",
|
|
49
|
-
outputs: [],
|
|
50
|
-
stateMutability: "nonpayable",
|
|
51
|
-
type: "function",
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
inputs: [],
|
|
55
|
-
name: "poolService",
|
|
56
|
-
outputs: [
|
|
57
|
-
{
|
|
58
|
-
internalType: "address",
|
|
59
|
-
name: "",
|
|
60
|
-
type: "address",
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
stateMutability: "view",
|
|
64
|
-
type: "function",
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
inputs: [
|
|
68
|
-
{
|
|
69
|
-
internalType: "uint256",
|
|
70
|
-
name: "borrowedAmount",
|
|
71
|
-
type: "uint256",
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
internalType: "uint256",
|
|
75
|
-
name: "profit",
|
|
76
|
-
type: "uint256",
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
internalType: "uint256",
|
|
80
|
-
name: "loss",
|
|
81
|
-
type: "uint256",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
name: "repayCreditAccount",
|
|
85
|
-
outputs: [],
|
|
86
|
-
stateMutability: "nonpayable",
|
|
87
|
-
type: "function",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
inputs: [],
|
|
91
|
-
name: "underlyingToken",
|
|
92
|
-
outputs: [
|
|
93
|
-
{
|
|
94
|
-
internalType: "address",
|
|
95
|
-
name: "",
|
|
96
|
-
type: "address",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
stateMutability: "view",
|
|
100
|
-
type: "function",
|
|
101
|
-
},
|
|
102
|
-
];
|
|
103
|
-
var _bytecode = "0x608060405234801561001057600080fd5b506040516103aa3803806103aa8339818101604052602081101561003357600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050610316806100946000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c80632495a59914610051578063570a7af214610085578063bf28068b146100b9578063ca9505e414610107575b600080fd5b610059610149565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61008d61016f565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610105600480360360408110156100cf57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610193565b005b6101476004803603606081101561011d57600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610240565b005b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663bf28068b83836040518363ffffffff1660e01b8152600401808381526020018273ffffffffffffffffffffffffffffffffffffffff16815260200192505050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505050565b60008054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ca9505e48484846040518463ffffffff1660e01b8152600401808481526020018381526020018281526020019350505050600060405180830381600087803b1580156102c357600080fd5b505af11580156102d7573d6000803e3d6000fd5b5050505050505056fea2646970667358221220cb7bf3bb387d55b37dd6f3646ec3aaa1f31a285a5d6045dc2141a12193dffb0b64736f6c63430007060033";
|
|
104
|
-
var CreditManagerMockForPoolTest__factory = /** @class */ (function (_super) {
|
|
105
|
-
__extends(CreditManagerMockForPoolTest__factory, _super);
|
|
106
|
-
function CreditManagerMockForPoolTest__factory(signer) {
|
|
107
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
108
|
-
}
|
|
109
|
-
CreditManagerMockForPoolTest__factory.prototype.deploy = function (_poolService, overrides) {
|
|
110
|
-
return _super.prototype.deploy.call(this, _poolService, overrides || {});
|
|
111
|
-
};
|
|
112
|
-
CreditManagerMockForPoolTest__factory.prototype.getDeployTransaction = function (_poolService, overrides) {
|
|
113
|
-
return _super.prototype.getDeployTransaction.call(this, _poolService, overrides || {});
|
|
114
|
-
};
|
|
115
|
-
CreditManagerMockForPoolTest__factory.prototype.attach = function (address) {
|
|
116
|
-
return _super.prototype.attach.call(this, address);
|
|
117
|
-
};
|
|
118
|
-
CreditManagerMockForPoolTest__factory.prototype.connect = function (signer) {
|
|
119
|
-
return _super.prototype.connect.call(this, signer);
|
|
120
|
-
};
|
|
121
|
-
CreditManagerMockForPoolTest__factory.createInterface = function () {
|
|
122
|
-
return new ethers_1.utils.Interface(_abi);
|
|
123
|
-
};
|
|
124
|
-
CreditManagerMockForPoolTest__factory.connect = function (address, signerOrProvider) {
|
|
125
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
126
|
-
};
|
|
127
|
-
CreditManagerMockForPoolTest__factory.bytecode = _bytecode;
|
|
128
|
-
CreditManagerMockForPoolTest__factory.abi = _abi;
|
|
129
|
-
return CreditManagerMockForPoolTest__factory;
|
|
130
|
-
}(ethers_1.ContractFactory));
|
|
131
|
-
exports.CreditManagerMockForPoolTest__factory = CreditManagerMockForPoolTest__factory;
|