@gearbox-protocol/sdk 0.0.59 → 0.0.62
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/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 +1 -14
- 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/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 +0 -13
- 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,42 +0,0 @@
|
|
|
1
|
-
import { Signer, BigNumberish, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { LinearInterestRateModel, LinearInterestRateModelInterface } from "../LinearInterestRateModel";
|
|
4
|
-
export declare class LinearInterestRateModel__factory extends ContractFactory {
|
|
5
|
-
constructor(signer?: Signer);
|
|
6
|
-
deploy(U_optimal: BigNumberish, R_base: BigNumberish, R_slope1: BigNumberish, R_slope2: BigNumberish, overrides?: Overrides & {
|
|
7
|
-
from?: string | Promise<string>;
|
|
8
|
-
}): Promise<LinearInterestRateModel>;
|
|
9
|
-
getDeployTransaction(U_optimal: BigNumberish, R_base: BigNumberish, R_slope1: BigNumberish, R_slope2: BigNumberish, overrides?: Overrides & {
|
|
10
|
-
from?: string | Promise<string>;
|
|
11
|
-
}): TransactionRequest;
|
|
12
|
-
attach(address: string): LinearInterestRateModel;
|
|
13
|
-
connect(signer: Signer): LinearInterestRateModel__factory;
|
|
14
|
-
static readonly bytecode = "0x6101206040523480156200001257600080fd5b50604051620011d1380380620011d1833981810160405260808110156200003857600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050506127108411156040518060400160405280600281526020017f4950000000000000000000000000000000000000000000000000000000000000815250906200014d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000111578082015181840152602081019050620000f4565b50505050905090810190601f1680156200013f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127108311156040518060400160405280600281526020017f49500000000000000000000000000000000000000000000000000000000000008152509062000234576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620001f8578082015181840152602081019050620001db565b50505050905090810190601f168015620002265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127108211156040518060400160405280600281526020017f4950000000000000000000000000000000000000000000000000000000000000815250906200031b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620002df578082015181840152602081019050620002c2565b50505050905090810190601f1680156200030d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060006200034085670de0b6b3a76400006200040660201b620005761790919060201c565b905080608081815250506200036c81670de0b6b3a76400006200056c60201b620006d11790919060201c565b60a0818152505062000399846b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b60c08181525050620003c6836b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b60e08181525050620003f3826b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b61010081815250505050505050620005f0565b600080831480620004175750600082145b1562000427576000905062000566565b816002612710816200043557fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816200046057fe5b048311156040518060400160405280600281526020017f4d310000000000000000000000000000000000000000000000000000000000008152509062000544576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000508578082015181840152602081019050620004eb565b50505050905090810190601f168015620005365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127106002612710816200055557fe5b0483850201816200056257fe5b0490505b92915050565b600082821115620005e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60805160a05160c05160e05161010051610b5b62000676600039806103655280610507528061055452508061029452806103a5528061043652806104e45250806101d652806102d152806103c6528061045a52806104c152508061030e5280610530525080610241528061026f5280610335528061040d52806104905250610b5b6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639cd3fdb51161005b5780639cd3fdb514610133578063c8284e6d14610151578063f81d438114610184578063fc4b2b78146101a257610088565b806342568d441461008d57806350ced104146100d957806354fd4d50146100f75780639aec06ea14610115575b600080fd5b6100c3600480360360408110156100a357600080fd5b8101908080359060200190929190803590602001909291905050506101c0565b6040518082815260200191505060405180910390f35b6100e161040b565b6040518082815260200191505060405180910390f35b6100ff61042f565b6040518082815260200191505060405180910390f35b61011d610434565b6040518082815260200191505060405180910390f35b61013b610458565b6040518082815260200191505060405180910390f35b61015961047c565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b61018c61052e565b6040518082815260200191505060405180910390f35b6101aa610552565b6040518082815260200191505060405180910390f35b6000808314806101cf57508183105b156101fc577f00000000000000000000000000000000000000000000000000000000000000009050610405565b600061023d8461022f670de0b6b3a764000061022187896106d190919063ffffffff16565b61075490919063ffffffff16565b6107da90919063ffffffff16565b90507f0000000000000000000000000000000000000000000000000000000000000000811015610306576102fe6102cf7f00000000000000000000000000000000000000000000000000000000000000006102c1847f000000000000000000000000000000000000000000000000000000000000000061075490919063ffffffff16565b6107da90919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000061086390919063ffffffff16565b915050610405565b6104016103a07f00000000000000000000000000000000000000000000000000000000000000006103926103637f0000000000000000000000000000000000000000000000000000000000000000866106d190919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000061075490919063ffffffff16565b6107da90919063ffffffff16565b6103f37f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061086390919063ffffffff16565b61086390919063ffffffff16565b9150505b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600181565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000806104bd670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006108eb90919063ffffffff16565b93507f000000000000000000000000000000000000000000000000000000000000000092507f000000000000000000000000000000000000000000000000000000000000000091507f0000000000000000000000000000000000000000000000000000000000000000905090919293565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000808314806105865750600082145b1561059457600090506106cb565b816002612710816105a157fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816105cb57fe5b048311156040518060400160405280600281526020017f4d31000000000000000000000000000000000000000000000000000000000000815250906106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610670578082015181840152602081019050610655565b50505050905090810190601f16801561069d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127106002612710816106bb57fe5b0483850201816106c757fe5b0490505b92915050565b600082821115610749576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60008083141561076757600090506107d4565b600082840290508284828161077857fe5b04146107cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610b056021913960400191505060405180910390fd5b809150505b92915050565b6000808211610851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161085a57fe5b04905092915050565b6000808284019050838110156108e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000808214156040518060400160405280600281526020017f4d33000000000000000000000000000000000000000000000000000000000000815250906109cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610992578082015181840152602081019050610977565b50505050905090810190601f1680156109bf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000600283816109da57fe5b049050612710817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0381610a0a57fe5b048411156040518060400160405280600281526020017f4d3100000000000000000000000000000000000000000000000000000000000081525090610aea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610aaf578082015181840152602081019050610a94565b50505050905090810190601f168015610adc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50828161271086020181610afa57fe5b049150509291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122088ce2196cf514af8ebb05cb23c9ac5215b47a42e4f12e6b644aa3c019b641ae464736f6c63430007060033";
|
|
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: {
|
|
33
|
-
internalType: string;
|
|
34
|
-
name: string;
|
|
35
|
-
type: string;
|
|
36
|
-
}[];
|
|
37
|
-
stateMutability: string;
|
|
38
|
-
type: string;
|
|
39
|
-
})[];
|
|
40
|
-
static createInterface(): LinearInterestRateModelInterface;
|
|
41
|
-
static connect(address: string, signerOrProvider: Signer | Provider): LinearInterestRateModel;
|
|
42
|
-
}
|
|
@@ -1,209 +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.LinearInterestRateModel__factory = void 0;
|
|
22
|
-
var ethers_1 = require("ethers");
|
|
23
|
-
var _abi = [
|
|
24
|
-
{
|
|
25
|
-
inputs: [
|
|
26
|
-
{
|
|
27
|
-
internalType: "uint256",
|
|
28
|
-
name: "U_optimal",
|
|
29
|
-
type: "uint256",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
internalType: "uint256",
|
|
33
|
-
name: "R_base",
|
|
34
|
-
type: "uint256",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: "uint256",
|
|
38
|
-
name: "R_slope1",
|
|
39
|
-
type: "uint256",
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
internalType: "uint256",
|
|
43
|
-
name: "R_slope2",
|
|
44
|
-
type: "uint256",
|
|
45
|
-
},
|
|
46
|
-
],
|
|
47
|
-
stateMutability: "nonpayable",
|
|
48
|
-
type: "constructor",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
inputs: [],
|
|
52
|
-
name: "_R_base_RAY",
|
|
53
|
-
outputs: [
|
|
54
|
-
{
|
|
55
|
-
internalType: "uint256",
|
|
56
|
-
name: "",
|
|
57
|
-
type: "uint256",
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
stateMutability: "view",
|
|
61
|
-
type: "function",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
inputs: [],
|
|
65
|
-
name: "_R_slope1_RAY",
|
|
66
|
-
outputs: [
|
|
67
|
-
{
|
|
68
|
-
internalType: "uint256",
|
|
69
|
-
name: "",
|
|
70
|
-
type: "uint256",
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
stateMutability: "view",
|
|
74
|
-
type: "function",
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
inputs: [],
|
|
78
|
-
name: "_R_slope2_RAY",
|
|
79
|
-
outputs: [
|
|
80
|
-
{
|
|
81
|
-
internalType: "uint256",
|
|
82
|
-
name: "",
|
|
83
|
-
type: "uint256",
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
stateMutability: "view",
|
|
87
|
-
type: "function",
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
inputs: [],
|
|
91
|
-
name: "_U_Optimal_WAD",
|
|
92
|
-
outputs: [
|
|
93
|
-
{
|
|
94
|
-
internalType: "uint256",
|
|
95
|
-
name: "",
|
|
96
|
-
type: "uint256",
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
stateMutability: "view",
|
|
100
|
-
type: "function",
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
inputs: [],
|
|
104
|
-
name: "_U_Optimal_inverted_WAD",
|
|
105
|
-
outputs: [
|
|
106
|
-
{
|
|
107
|
-
internalType: "uint256",
|
|
108
|
-
name: "",
|
|
109
|
-
type: "uint256",
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
stateMutability: "view",
|
|
113
|
-
type: "function",
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
inputs: [
|
|
117
|
-
{
|
|
118
|
-
internalType: "uint256",
|
|
119
|
-
name: "expectedLiquidity",
|
|
120
|
-
type: "uint256",
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
internalType: "uint256",
|
|
124
|
-
name: "availableLiquidity",
|
|
125
|
-
type: "uint256",
|
|
126
|
-
},
|
|
127
|
-
],
|
|
128
|
-
name: "calcBorrowRate",
|
|
129
|
-
outputs: [
|
|
130
|
-
{
|
|
131
|
-
internalType: "uint256",
|
|
132
|
-
name: "",
|
|
133
|
-
type: "uint256",
|
|
134
|
-
},
|
|
135
|
-
],
|
|
136
|
-
stateMutability: "view",
|
|
137
|
-
type: "function",
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
inputs: [],
|
|
141
|
-
name: "getModelParameters",
|
|
142
|
-
outputs: [
|
|
143
|
-
{
|
|
144
|
-
internalType: "uint256",
|
|
145
|
-
name: "U_optimal",
|
|
146
|
-
type: "uint256",
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
internalType: "uint256",
|
|
150
|
-
name: "R_base",
|
|
151
|
-
type: "uint256",
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
internalType: "uint256",
|
|
155
|
-
name: "R_slope1",
|
|
156
|
-
type: "uint256",
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
internalType: "uint256",
|
|
160
|
-
name: "R_slope2",
|
|
161
|
-
type: "uint256",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
stateMutability: "view",
|
|
165
|
-
type: "function",
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
inputs: [],
|
|
169
|
-
name: "version",
|
|
170
|
-
outputs: [
|
|
171
|
-
{
|
|
172
|
-
internalType: "uint256",
|
|
173
|
-
name: "",
|
|
174
|
-
type: "uint256",
|
|
175
|
-
},
|
|
176
|
-
],
|
|
177
|
-
stateMutability: "view",
|
|
178
|
-
type: "function",
|
|
179
|
-
},
|
|
180
|
-
];
|
|
181
|
-
var _bytecode = "0x6101206040523480156200001257600080fd5b50604051620011d1380380620011d1833981810160405260808110156200003857600080fd5b81019080805190602001909291908051906020019092919080519060200190929190805190602001909291905050506127108411156040518060400160405280600281526020017f4950000000000000000000000000000000000000000000000000000000000000815250906200014d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000111578082015181840152602081019050620000f4565b50505050905090810190601f1680156200013f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127108311156040518060400160405280600281526020017f49500000000000000000000000000000000000000000000000000000000000008152509062000234576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620001f8578082015181840152602081019050620001db565b50505050905090810190601f168015620002265780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127108211156040518060400160405280600281526020017f4950000000000000000000000000000000000000000000000000000000000000815250906200031b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015620002df578082015181840152602081019050620002c2565b50505050905090810190601f1680156200030d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060006200034085670de0b6b3a76400006200040660201b620005761790919060201c565b905080608081815250506200036c81670de0b6b3a76400006200056c60201b620006d11790919060201c565b60a0818152505062000399846b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b60c08181525050620003c6836b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b60e08181525050620003f3826b033b2e3c9fd0803ce80000006200040660201b620005761790919060201c565b61010081815250505050505050620005f0565b600080831480620004175750600082145b1562000427576000905062000566565b816002612710816200043557fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816200046057fe5b048311156040518060400160405280600281526020017f4d310000000000000000000000000000000000000000000000000000000000008152509062000544576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101562000508578082015181840152602081019050620004eb565b50505050905090810190601f168015620005365780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127106002612710816200055557fe5b0483850201816200056257fe5b0490505b92915050565b600082821115620005e5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60805160a05160c05160e05161010051610b5b62000676600039806103655280610507528061055452508061029452806103a5528061043652806104e45250806101d652806102d152806103c6528061045a52806104c152508061030e5280610530525080610241528061026f5280610335528061040d52806104905250610b5b6000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80639cd3fdb51161005b5780639cd3fdb514610133578063c8284e6d14610151578063f81d438114610184578063fc4b2b78146101a257610088565b806342568d441461008d57806350ced104146100d957806354fd4d50146100f75780639aec06ea14610115575b600080fd5b6100c3600480360360408110156100a357600080fd5b8101908080359060200190929190803590602001909291905050506101c0565b6040518082815260200191505060405180910390f35b6100e161040b565b6040518082815260200191505060405180910390f35b6100ff61042f565b6040518082815260200191505060405180910390f35b61011d610434565b6040518082815260200191505060405180910390f35b61013b610458565b6040518082815260200191505060405180910390f35b61015961047c565b6040518085815260200184815260200183815260200182815260200194505050505060405180910390f35b61018c61052e565b6040518082815260200191505060405180910390f35b6101aa610552565b6040518082815260200191505060405180910390f35b6000808314806101cf57508183105b156101fc577f00000000000000000000000000000000000000000000000000000000000000009050610405565b600061023d8461022f670de0b6b3a764000061022187896106d190919063ffffffff16565b61075490919063ffffffff16565b6107da90919063ffffffff16565b90507f0000000000000000000000000000000000000000000000000000000000000000811015610306576102fe6102cf7f00000000000000000000000000000000000000000000000000000000000000006102c1847f000000000000000000000000000000000000000000000000000000000000000061075490919063ffffffff16565b6107da90919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000061086390919063ffffffff16565b915050610405565b6104016103a07f00000000000000000000000000000000000000000000000000000000000000006103926103637f0000000000000000000000000000000000000000000000000000000000000000866106d190919063ffffffff16565b7f000000000000000000000000000000000000000000000000000000000000000061075490919063ffffffff16565b6107da90919063ffffffff16565b6103f37f00000000000000000000000000000000000000000000000000000000000000007f000000000000000000000000000000000000000000000000000000000000000061086390919063ffffffff16565b61086390919063ffffffff16565b9150505b92915050565b7f000000000000000000000000000000000000000000000000000000000000000081565b600181565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000806000806104bd670de0b6b3a76400007f00000000000000000000000000000000000000000000000000000000000000006108eb90919063ffffffff16565b93507f000000000000000000000000000000000000000000000000000000000000000092507f000000000000000000000000000000000000000000000000000000000000000091507f0000000000000000000000000000000000000000000000000000000000000000905090919293565b7f000000000000000000000000000000000000000000000000000000000000000081565b7f000000000000000000000000000000000000000000000000000000000000000081565b6000808314806105865750600082145b1561059457600090506106cb565b816002612710816105a157fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816105cb57fe5b048311156040518060400160405280600281526020017f4d31000000000000000000000000000000000000000000000000000000000000815250906106ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610670578082015181840152602081019050610655565b50505050905090810190601f16801561069d5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506127106002612710816106bb57fe5b0483850201816106c757fe5b0490505b92915050565b600082821115610749576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b60008083141561076757600090506107d4565b600082840290508284828161077857fe5b04146107cf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526021815260200180610b056021913960400191505060405180910390fd5b809150505b92915050565b6000808211610851576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161085a57fe5b04905092915050565b6000808284019050838110156108e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000808214156040518060400160405280600281526020017f4d33000000000000000000000000000000000000000000000000000000000000815250906109cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610992578082015181840152602081019050610977565b50505050905090810190601f1680156109bf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000600283816109da57fe5b049050612710817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0381610a0a57fe5b048411156040518060400160405280600281526020017f4d3100000000000000000000000000000000000000000000000000000000000081525090610aea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610aaf578082015181840152602081019050610a94565b50505050905090810190601f168015610adc5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50828161271086020181610afa57fe5b049150509291505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a264697066735822122088ce2196cf514af8ebb05cb23c9ac5215b47a42e4f12e6b644aa3c019b641ae464736f6c63430007060033";
|
|
182
|
-
var LinearInterestRateModel__factory = /** @class */ (function (_super) {
|
|
183
|
-
__extends(LinearInterestRateModel__factory, _super);
|
|
184
|
-
function LinearInterestRateModel__factory(signer) {
|
|
185
|
-
return _super.call(this, _abi, _bytecode, signer) || this;
|
|
186
|
-
}
|
|
187
|
-
LinearInterestRateModel__factory.prototype.deploy = function (U_optimal, R_base, R_slope1, R_slope2, overrides) {
|
|
188
|
-
return _super.prototype.deploy.call(this, U_optimal, R_base, R_slope1, R_slope2, overrides || {});
|
|
189
|
-
};
|
|
190
|
-
LinearInterestRateModel__factory.prototype.getDeployTransaction = function (U_optimal, R_base, R_slope1, R_slope2, overrides) {
|
|
191
|
-
return _super.prototype.getDeployTransaction.call(this, U_optimal, R_base, R_slope1, R_slope2, overrides || {});
|
|
192
|
-
};
|
|
193
|
-
LinearInterestRateModel__factory.prototype.attach = function (address) {
|
|
194
|
-
return _super.prototype.attach.call(this, address);
|
|
195
|
-
};
|
|
196
|
-
LinearInterestRateModel__factory.prototype.connect = function (signer) {
|
|
197
|
-
return _super.prototype.connect.call(this, signer);
|
|
198
|
-
};
|
|
199
|
-
LinearInterestRateModel__factory.createInterface = function () {
|
|
200
|
-
return new ethers_1.utils.Interface(_abi);
|
|
201
|
-
};
|
|
202
|
-
LinearInterestRateModel__factory.connect = function (address, signerOrProvider) {
|
|
203
|
-
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
204
|
-
};
|
|
205
|
-
LinearInterestRateModel__factory.bytecode = _bytecode;
|
|
206
|
-
LinearInterestRateModel__factory.abi = _abi;
|
|
207
|
-
return LinearInterestRateModel__factory;
|
|
208
|
-
}(ethers_1.ContractFactory));
|
|
209
|
-
exports.LinearInterestRateModel__factory = LinearInterestRateModel__factory;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Signer, ContractFactory, Overrides } from "ethers";
|
|
2
|
-
import { Provider, TransactionRequest } from "@ethersproject/providers";
|
|
3
|
-
import type { MockPoolService, MockPoolServiceInterface } from "../MockPoolService";
|
|
4
|
-
export declare class MockPoolService__factory extends ContractFactory {
|
|
5
|
-
constructor(signer?: Signer);
|
|
6
|
-
deploy(_underlyingToken: string, overrides?: Overrides & {
|
|
7
|
-
from?: string | Promise<string>;
|
|
8
|
-
}): Promise<MockPoolService>;
|
|
9
|
-
getDeployTransaction(_underlyingToken: string, overrides?: Overrides & {
|
|
10
|
-
from?: string | Promise<string>;
|
|
11
|
-
}): TransactionRequest;
|
|
12
|
-
attach(address: string): MockPoolService;
|
|
13
|
-
connect(signer: Signer): MockPoolService__factory;
|
|
14
|
-
static readonly bytecode = "0x608060405234801561001057600080fd5b50604051611a58380380611a588339818101604052602081101561003357600080fd5b810190808051906020019092919050505080600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506100a9600a6b033b2e3c9fd0803ce80000006100c860201b610ee41790919060201c565b6006819055506b033b2e3c9fd0803ce800000060158190555050610151565b600080821161013f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b81838161014857fe5b04905092915050565b6118f8806101606000396000f3fe608060405234801561001057600080fd5b50600436106102695760003560e01c80637437535911610151578063c5f956af116100c3578063dbcb313b11610087578063dbcb313b1461098c578063e941fa78146109aa578063ef8d9603146109c8578063f11a6487146109e6578063f3fdb15a14610a2a578063fe14112d14610a5e57610269565b8063c5f956af14610896578063ca9505e4146108ca578063cb3905e11461090c578063cf33d9551461092a578063d0efe7531461096e57610269565b8063a4e8273e11610115578063a4e8273e1461075a578063b3554a0a14610778578063b6ac642a14610796578063bb04b193146107c4578063bf28068b146107f2578063c00495a11461084057610269565b8063743753591461068e578063788c6bfe146106ac5780638456cb59146106ca57806396df5dc0146106d45780639aa5d4621461070257610269565b806336dda7d5116101ea5780634d778ad1116101ae5780634d778ad114610590578063532fe502146105d25780635427c938146105f05780635c975abb14610632578063609ae3171461065257806367c99d581461067057610269565b806336dda7d5146104bc5780633e163df0146104f05780633f4ba83a1461054a57806345d31f9d146105545780634c19386c1461057257610269565b80632495a599116102315780632495a599146103a85780632954018c146103dc57806329f3d3b6146104105780632a3354c91461042e5780632e97ca211461046257610269565b8063030dbb041461026e57806305fe138b1461028c578063078c4781146102ee5780630fce70fb146103325780631e16e4fc14610350575b600080fd5b610276610a7c565b6040518082815260200191505060405180910390f35b6102d8600480360360408110156102a257600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a82565b6040518082815260200191505060405180910390f35b6103306004803603602081101561030457600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610a8a565b005b61033a610a8d565b6040518082815260200191505060405180910390f35b61037c6004803603602081101561036657600080fd5b8101908080359060200190929190505050610a97565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103b0610ad6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103e4610afc565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610418610b22565b6040518082815260200191505060405180910390f35b610436610b28565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104a46004803603602081101561047857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b4e565b60405180821515815260200191505060405180910390f35b6104c4610b6e565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105326004803603602081101561050657600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b94565b60405180821515815260200191505060405180910390f35b610552610bb4565b005b61055c610bb6565b6040518082815260200191505060405180910390f35b61057a610bbc565b6040518082815260200191505060405180910390f35b6105bc600480360360208110156105a657600080fd5b8101908080359060200190929190505050610bc2565b6040518082815260200191505060405180910390f35b6105da610be5565b6040518082815260200191505060405180910390f35b61061c6004803603602081101561060657600080fd5b8101908080359060200190929190505050610beb565b6040518082815260200191505060405180910390f35b61063a610c0e565b60405180821515815260200191505060405180910390f35b61065a610c13565b6040518082815260200191505060405180910390f35b610678610c19565b6040518082815260200191505060405180910390f35b610696610c1f565b6040518082815260200191505060405180910390f35b6106b4610cea565b6040518082815260200191505060405180910390f35b6106d2610cfe565b005b610700600480360360208110156106ea57600080fd5b8101908080359060200190929190505050610d00565b005b6107586004803603606081101561071857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610d0a565b005b610762610d0f565b6040518082815260200191505060405180910390f35b610780610d18565b6040518082815260200191505060405180910390f35b6107c2600480360360208110156107ac57600080fd5b8101908080359060200190929190505050610d1e565b005b6107f0600480360360208110156107da57600080fd5b8101908080359060200190929190505050610d21565b005b61083e6004803603604081101561080857600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d24565b005b6108806004803603606081101561085657600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610dbd565b6040518082815260200191505060405180910390f35b61089e610e55565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61090a600480360360608110156108e057600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050610e7b565b005b610914610e95565b6040518082815260200191505060405180910390f35b61096c6004803603602081101561094057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e9b565b005b610976610e9e565b6040518082815260200191505060405180910390f35b610994610ea4565b6040518082815260200191505060405180910390f35b6109b2610eaa565b6040518082815260200191505060405180910390f35b6109d0610eb0565b6040518082815260200191505060405180910390f35b610a28600480360360208110156109fc57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610eb6565b005b610a32610eb9565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610a66610edf565b6040518082815260200191505060405180910390f35b600f5481565b600092915050565b50565b6000601554905090565b60038181548110610aa757600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60085481565b600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60056020528060005260406000206000915054906101000a900460ff1681565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60146020528060005260406000206000915054906101000a900460ff1681565b565b60065481565b60005481565b6000610bde610bcf610cea565b83610f6d90919063ffffffff16565b9050919050565b60105481565b6000610c07610bf8610cea565b8361119a90919063ffffffff16565b9050919050565b600090565b60075481565b600c5481565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b158015610caa57600080fd5b505afa158015610cbe573d6000803e3d6000fd5b505050506040513d6020811015610cd457600080fd5b8101908080519060200190929190505050905090565b60006b033b2e3c9fd0803ce8000000905090565b565b8060158190555050565b505050565b60006001905090565b600d5481565b50565b50565b8160088190555080600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550610db98183600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166113139092919063ffffffff16565b5050565b6000610e4c610e00610dd884866113b590919063ffffffff16565b610df287610de4610a8d565b6113b590919063ffffffff16565b61143b90919063ffffffff16565b610e3e610e16868861143b90919063ffffffff16565b610e3086610e22610a8d565b6113b590919063ffffffff16565b6113b590919063ffffffff16565b610ee490919063ffffffff16565b90509392505050565b601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b82600a8190555081600b8190555080600c81905550505050565b600b5481565b50565b600a5481565b60155481565b600e5481565b60015481565b50565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600090565b6000808211610f5b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381610f6457fe5b04905092915050565b6000808214156040518060400160405280600281526020017f4d330000000000000000000000000000000000000000000000000000000000008152509061104f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611014578082015181840152602081019050610ff9565b50505050905090810190601f1680156110415780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5060006002838161105c57fe5b0490506b033b2e3c9fd0803ce8000000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038161109657fe5b048411156040518060400160405280600281526020017f4d3100000000000000000000000000000000000000000000000000000000000081525090611176576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561113b578082015181840152602081019050611120565b50505050905090810190601f1680156111685780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b5082816b033b2e3c9fd0803ce80000008602018161119057fe5b0491505092915050565b6000808314806111aa5750600082145b156111b8576000905061130d565b8160026b033b2e3c9fd0803ce8000000816111cf57fe5b047fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03816111f957fe5b048311156040518060400160405280600281526020017f4d31000000000000000000000000000000000000000000000000000000000000815250906112d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561129e578082015181840152602081019050611283565b50505050905090810190601f1680156112cb5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506b033b2e3c9fd0803ce800000060026b033b2e3c9fd0803ce8000000816112fd57fe5b04838502018161130957fe5b0490505b92915050565b6113b08363a9059cbb60e01b8484604051602401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506114c3565b505050565b6000808314156113c85760009050611435565b60008284029050828482816113d957fe5b0414611430576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806118786021913960400191505060405180910390fd5b809150505b92915050565b6000808284019050838110156114b9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b6000611525826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65648152508573ffffffffffffffffffffffffffffffffffffffff166115b29092919063ffffffff16565b90506000815111156115ad5780806020019051602081101561154657600080fd5b81019080805190602001909291905050506115ac576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602a815260200180611899602a913960400191505060405180910390fd5b5b505050565b60606115c184846000856115ca565b90509392505050565b606082471015611625576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806118526026913960400191505060405180910390fd5b61162e85611772565b6116a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601d8152602001807f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000081525060200191505060405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff1685876040518082805190602001908083835b602083106116ef57805182526020820191506020810190506020830392506116cc565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611751576040519150601f19603f3d011682016040523d82523d6000602084013e611756565b606091505b5091509150611766828286611785565b92505050949350505050565b600080823b905060008111915050919050565b606083156117955782905061184a565b6000835111156117a85782518084602001fd5b816040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561180f5780820151818401526020810190506117f4565b50505050905090810190601f16801561183c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b939250505056fe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220eb3e9fdcce1b9f52d102dbcd13fb17e38cac5e2a3f23bae632d086017b49a7bc64736f6c63430007060033";
|
|
15
|
-
static readonly abi: ({
|
|
16
|
-
inputs: {
|
|
17
|
-
internalType: string;
|
|
18
|
-
name: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}[];
|
|
21
|
-
stateMutability: string;
|
|
22
|
-
type: string;
|
|
23
|
-
anonymous?: undefined;
|
|
24
|
-
name?: undefined;
|
|
25
|
-
outputs?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
anonymous: boolean;
|
|
28
|
-
inputs: {
|
|
29
|
-
indexed: boolean;
|
|
30
|
-
internalType: string;
|
|
31
|
-
name: string;
|
|
32
|
-
type: string;
|
|
33
|
-
}[];
|
|
34
|
-
name: string;
|
|
35
|
-
type: string;
|
|
36
|
-
stateMutability?: undefined;
|
|
37
|
-
outputs?: undefined;
|
|
38
|
-
} | {
|
|
39
|
-
inputs: {
|
|
40
|
-
internalType: string;
|
|
41
|
-
name: string;
|
|
42
|
-
type: string;
|
|
43
|
-
}[];
|
|
44
|
-
name: string;
|
|
45
|
-
outputs: {
|
|
46
|
-
internalType: string;
|
|
47
|
-
name: string;
|
|
48
|
-
type: string;
|
|
49
|
-
}[];
|
|
50
|
-
stateMutability: string;
|
|
51
|
-
type: string;
|
|
52
|
-
anonymous?: undefined;
|
|
53
|
-
})[];
|
|
54
|
-
static createInterface(): MockPoolServiceInterface;
|
|
55
|
-
static connect(address: string, signerOrProvider: Signer | Provider): MockPoolService;
|
|
56
|
-
}
|