@gearbox-protocol/sdk 18.2.0-next.14 → 18.2.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/onchain/index.js +18 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +113 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +258 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +161 -0
- package/dist/cjs/onchain/market/adapters/abi/adapters/index.js +6 -0
- package/dist/cjs/onchain/market/adapters/abi/index.js +13 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +39 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +230 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +29 -0
- package/dist/cjs/onchain/market/adapters/abi/treehouse/index.js +7 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +72 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +117 -0
- package/dist/cjs/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +61 -0
- package/dist/cjs/onchain/market/adapters/contracts/index.js +6 -0
- package/dist/cjs/onchain/market/adapters/createAdapter.js +6 -0
- package/dist/cjs/onchain/market/adapters/index.js +18 -0
- package/dist/cjs/onchain/market/index.js +18 -0
- package/dist/esm/onchain/index.js +10 -1
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +112 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +257 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +160 -0
- package/dist/esm/onchain/market/adapters/abi/adapters/index.js +4 -1
- package/dist/esm/onchain/market/adapters/abi/index.js +8 -1
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +38 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +229 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +28 -0
- package/dist/esm/onchain/market/adapters/abi/treehouse/index.js +4 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +71 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +116 -0
- package/dist/esm/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +60 -0
- package/dist/esm/onchain/market/adapters/contracts/index.js +4 -1
- package/dist/esm/onchain/market/adapters/createAdapter.js +6 -0
- package/dist/esm/onchain/market/adapters/index.js +10 -1
- package/dist/esm/onchain/market/index.js +10 -1
- package/dist/types/onchain/index.d.ts +10 -1
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.d.ts +101 -0
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.d.ts +237 -0
- package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.d.ts +146 -0
- package/dist/types/onchain/market/adapters/abi/adapters/index.d.ts +4 -1
- package/dist/types/onchain/market/adapters/abi/index.d.ts +8 -1
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.d.ts +33 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.d.ts +207 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRouter.d.ts +27 -0
- package/dist/types/onchain/market/adapters/abi/treehouse/index.d.ts +4 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts +156 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.ts +481 -0
- package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.ts +193 -0
- package/dist/types/onchain/market/adapters/contracts/index.d.ts +4 -1
- package/dist/types/onchain/market/adapters/index.d.ts +10 -1
- package/dist/types/onchain/market/index.d.ts +10 -1
- package/package.json +1 -1
|
@@ -29,6 +29,9 @@ const require_onchain_market_adapters_abi_adapters_iSecuritizeOnRampAdapterV310
|
|
|
29
29
|
const require_onchain_market_adapters_abi_adapters_iSecuritizeRedemptionGatewayAdapterV311 = require("./adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js");
|
|
30
30
|
const require_onchain_market_adapters_abi_adapters_iStakingRewardsAdapter = require("./adapters/abi/adapters/iStakingRewardsAdapter.js");
|
|
31
31
|
const require_onchain_market_adapters_abi_adapters_iTraderJoeRouterAdapter = require("./adapters/abi/adapters/iTraderJoeRouterAdapter.js");
|
|
32
|
+
const require_onchain_market_adapters_abi_adapters_iTreehouseFastlaneAdapter = require("./adapters/abi/adapters/iTreehouseFastlaneAdapter.js");
|
|
33
|
+
const require_onchain_market_adapters_abi_adapters_iTreehouseRedemptionGatewayAdapter = require("./adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js");
|
|
34
|
+
const require_onchain_market_adapters_abi_adapters_iTreehouseRouterAdapter = require("./adapters/abi/adapters/iTreehouseRouterAdapter.js");
|
|
32
35
|
const require_onchain_market_adapters_abi_adapters_iUniswapV2Adapter = require("./adapters/abi/adapters/iUniswapV2Adapter.js");
|
|
33
36
|
const require_onchain_market_adapters_abi_adapters_iUniswapV3Adapter = require("./adapters/abi/adapters/iUniswapV3Adapter.js");
|
|
34
37
|
const require_onchain_market_adapters_abi_adapters_iUniswapV4Adapter = require("./adapters/abi/adapters/iUniswapV4Adapter.js");
|
|
@@ -42,6 +45,9 @@ const require_onchain_market_adapters_abi_securitize_iBaseOnRamp = require("./ad
|
|
|
42
45
|
const require_onchain_market_adapters_abi_securitize_iSecuritizeOnRamp = require("./adapters/abi/securitize/iSecuritizeOnRamp.js");
|
|
43
46
|
const require_onchain_market_adapters_abi_securitize_iSecuritizeRedemptionGatewayV311 = require("./adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js");
|
|
44
47
|
const require_onchain_market_adapters_abi_targetContractAbi = require("./adapters/abi/targetContractAbi.js");
|
|
48
|
+
const require_onchain_market_adapters_abi_treehouse_iTreehouseFastlane = require("./adapters/abi/treehouse/iTreehouseFastlane.js");
|
|
49
|
+
const require_onchain_market_adapters_abi_treehouse_iTreehouseRedemptionGateway = require("./adapters/abi/treehouse/iTreehouseRedemptionGateway.js");
|
|
50
|
+
const require_onchain_market_adapters_abi_treehouse_iTreehouseRouter = require("./adapters/abi/treehouse/iTreehouseRouter.js");
|
|
45
51
|
const require_onchain_market_adapters_abi_utils = require("./adapters/abi/utils.js");
|
|
46
52
|
const require_onchain_market_adapters_transferHelpers = require("./adapters/transferHelpers.js");
|
|
47
53
|
const require_onchain_market_adapters_contracts_AbstractAdapter = require("./adapters/contracts/AbstractAdapter.js");
|
|
@@ -77,6 +83,9 @@ const require_onchain_market_adapters_contracts_SecuritizeOnRampAdapterContract
|
|
|
77
83
|
const require_onchain_market_adapters_contracts_SecuritizeRedemptionGatewayAdapterContract = require("./adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js");
|
|
78
84
|
const require_onchain_market_adapters_contracts_StakingRewardsAdapterContract = require("./adapters/contracts/StakingRewardsAdapterContract.js");
|
|
79
85
|
const require_onchain_market_adapters_contracts_TraderJoeRouterAdapterContract = require("./adapters/contracts/TraderJoeRouterAdapterContract.js");
|
|
86
|
+
const require_onchain_market_adapters_contracts_TreehouseFastlaneAdapterContract = require("./adapters/contracts/TreehouseFastlaneAdapterContract.js");
|
|
87
|
+
const require_onchain_market_adapters_contracts_TreehouseRedemptionGatewayAdapterContract = require("./adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js");
|
|
88
|
+
const require_onchain_market_adapters_contracts_TreehouseRouterAdapterContract = require("./adapters/contracts/TreehouseRouterAdapterContract.js");
|
|
80
89
|
const require_onchain_market_adapters_contracts_UniswapV2AdapterContract = require("./adapters/contracts/UniswapV2AdapterContract.js");
|
|
81
90
|
const require_onchain_market_adapters_contracts_UniswapV3AdapterContract = require("./adapters/contracts/UniswapV3AdapterContract.js");
|
|
82
91
|
const require_onchain_market_adapters_contracts_UniswapV4AdapterContract = require("./adapters/contracts/UniswapV4AdapterContract.js");
|
|
@@ -239,6 +248,9 @@ exports.SecuritizeRedemptionGatewayAdapterContract = require_onchain_market_adap
|
|
|
239
248
|
exports.StakingRewardsAdapterContract = require_onchain_market_adapters_contracts_StakingRewardsAdapterContract.StakingRewardsAdapterContract;
|
|
240
249
|
exports.TraderJoePoolVersion = require_onchain_market_adapters_contracts_TraderJoeRouterAdapterContract.TraderJoePoolVersion;
|
|
241
250
|
exports.TraderJoeRouterAdapterContract = require_onchain_market_adapters_contracts_TraderJoeRouterAdapterContract.TraderJoeRouterAdapterContract;
|
|
251
|
+
exports.TreehouseFastlaneAdapterContract = require_onchain_market_adapters_contracts_TreehouseFastlaneAdapterContract.TreehouseFastlaneAdapterContract;
|
|
252
|
+
exports.TreehouseRedemptionGatewayAdapterContract = require_onchain_market_adapters_contracts_TreehouseRedemptionGatewayAdapterContract.TreehouseRedemptionGatewayAdapterContract;
|
|
253
|
+
exports.TreehouseRouterAdapterContract = require_onchain_market_adapters_contracts_TreehouseRouterAdapterContract.TreehouseRouterAdapterContract;
|
|
242
254
|
exports.UniswapV2AdapterContract = require_onchain_market_adapters_contracts_UniswapV2AdapterContract.UniswapV2AdapterContract;
|
|
243
255
|
exports.UniswapV3AdapterContract = require_onchain_market_adapters_contracts_UniswapV3AdapterContract.UniswapV3AdapterContract;
|
|
244
256
|
exports.UniswapV4AdapterContract = require_onchain_market_adapters_contracts_UniswapV4AdapterContract.UniswapV4AdapterContract;
|
|
@@ -340,6 +352,12 @@ exports.iStakingRewardsAbi = require_onchain_market_adapters_abi_targetContractA
|
|
|
340
352
|
exports.iStakingRewardsAdapterAbi = require_onchain_market_adapters_abi_adapters_iStakingRewardsAdapter.iStakingRewardsAdapterAbi;
|
|
341
353
|
exports.iTraderJoeRouterAbi = require_onchain_market_adapters_abi_targetContractAbi.iTraderJoeRouterAbi;
|
|
342
354
|
exports.iTraderJoeRouterAdapterAbi = require_onchain_market_adapters_abi_adapters_iTraderJoeRouterAdapter.iTraderJoeRouterAdapterAbi;
|
|
355
|
+
exports.iTreehouseFastlaneAbi = require_onchain_market_adapters_abi_treehouse_iTreehouseFastlane.iTreehouseFastlaneAbi;
|
|
356
|
+
exports.iTreehouseFastlaneAdapterAbi = require_onchain_market_adapters_abi_adapters_iTreehouseFastlaneAdapter.iTreehouseFastlaneAdapterAbi;
|
|
357
|
+
exports.iTreehouseRedemptionGatewayAbi = require_onchain_market_adapters_abi_treehouse_iTreehouseRedemptionGateway.iTreehouseRedemptionGatewayAbi;
|
|
358
|
+
exports.iTreehouseRedemptionGatewayAdapterAbi = require_onchain_market_adapters_abi_adapters_iTreehouseRedemptionGatewayAdapter.iTreehouseRedemptionGatewayAdapterAbi;
|
|
359
|
+
exports.iTreehouseRouterAbi = require_onchain_market_adapters_abi_treehouse_iTreehouseRouter.iTreehouseRouterAbi;
|
|
360
|
+
exports.iTreehouseRouterAdapterAbi = require_onchain_market_adapters_abi_adapters_iTreehouseRouterAdapter.iTreehouseRouterAdapterAbi;
|
|
343
361
|
exports.iUniswapV2AdapterAbi = require_onchain_market_adapters_abi_adapters_iUniswapV2Adapter.iUniswapV2AdapterAbi;
|
|
344
362
|
exports.iUniswapV2Router02Abi = require_onchain_market_adapters_abi_targetContractAbi.iUniswapV2Router02Abi;
|
|
345
363
|
exports.iUniswapV3Abi = require_onchain_market_adapters_abi_targetContractAbi.iUniswapV3Abi;
|
|
@@ -75,6 +75,9 @@ import { iSecuritizeOnRampAdapterV310Abi } from "./market/adapters/abi/adapters/
|
|
|
75
75
|
import { iSecuritizeRedemptionGatewayAdapterV311Abi } from "./market/adapters/abi/adapters/iSecuritizeRedemptionGatewayAdapterV311.js";
|
|
76
76
|
import { iStakingRewardsAdapterAbi } from "./market/adapters/abi/adapters/iStakingRewardsAdapter.js";
|
|
77
77
|
import { iTraderJoeRouterAdapterAbi } from "./market/adapters/abi/adapters/iTraderJoeRouterAdapter.js";
|
|
78
|
+
import { iTreehouseFastlaneAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js";
|
|
79
|
+
import { iTreehouseRedemptionGatewayAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js";
|
|
80
|
+
import { iTreehouseRouterAdapterAbi } from "./market/adapters/abi/adapters/iTreehouseRouterAdapter.js";
|
|
78
81
|
import { iUniswapV2AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV2Adapter.js";
|
|
79
82
|
import { iUniswapV3AdapterAbi } from "./market/adapters/abi/adapters/iUniswapV3Adapter.js";
|
|
80
83
|
import { iUniswapV4AdapterAbi, iUniswapV4GatewayAbi } from "./market/adapters/abi/adapters/iUniswapV4Adapter.js";
|
|
@@ -88,6 +91,9 @@ import { iBaseOnRampAbi } from "./market/adapters/abi/securitize/iBaseOnRamp.js"
|
|
|
88
91
|
import { iSecuritizeOnRampAbi } from "./market/adapters/abi/securitize/iSecuritizeOnRamp.js";
|
|
89
92
|
import { iSecuritizeRedemptionGatewayV311Abi } from "./market/adapters/abi/securitize/iSecuritizeRedemptionGatewayV311.js";
|
|
90
93
|
import { iBalancerV3RouterAbi, iBalancerV3WrapperAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3RouterAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iDaiUsdsAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iInfinifiGatewayAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iMellowClaimerAbi, iMellowWrapperAbi, iMidasIssuanceVaultV310Abi, iPendleRouterAbi, iStakingRewardsAbi, iTraderJoeRouterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iVelodromeV2RouterAbi, iwstETHAbi, lidoV1_WETHGatewayAbi } from "./market/adapters/abi/targetContractAbi.js";
|
|
94
|
+
import { iTreehouseFastlaneAbi } from "./market/adapters/abi/treehouse/iTreehouseFastlane.js";
|
|
95
|
+
import { iTreehouseRedemptionGatewayAbi } from "./market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js";
|
|
96
|
+
import { iTreehouseRouterAbi } from "./market/adapters/abi/treehouse/iTreehouseRouter.js";
|
|
91
97
|
import { getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, hasAdapterDeployParamsAbi, parseAdapterAction, parseAdapterDeployParams } from "./market/adapters/abi/utils.js";
|
|
92
98
|
import { allTransfersAsTokenAmounts, classifyCurveOperation, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, fnSigToName, parsePosNegAmount, rewardsFromTransfers, swapFromTransfers, toNetTransfers } from "./market/adapters/transferHelpers.js";
|
|
93
99
|
import { AbstractAdapterContract } from "./market/adapters/contracts/AbstractAdapter.js";
|
|
@@ -123,6 +129,9 @@ import { SecuritizeOnRampAdapterContract } from "./market/adapters/contracts/Sec
|
|
|
123
129
|
import { SecuritizeRedemptionGatewayAdapterContract } from "./market/adapters/contracts/SecuritizeRedemptionGatewayAdapterContract.js";
|
|
124
130
|
import { StakingRewardsAdapterContract } from "./market/adapters/contracts/StakingRewardsAdapterContract.js";
|
|
125
131
|
import { TraderJoePoolVersion, TraderJoeRouterAdapterContract } from "./market/adapters/contracts/TraderJoeRouterAdapterContract.js";
|
|
132
|
+
import { TreehouseFastlaneAdapterContract } from "./market/adapters/contracts/TreehouseFastlaneAdapterContract.js";
|
|
133
|
+
import { TreehouseRedemptionGatewayAdapterContract } from "./market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js";
|
|
134
|
+
import { TreehouseRouterAdapterContract } from "./market/adapters/contracts/TreehouseRouterAdapterContract.js";
|
|
126
135
|
import { UniswapV2AdapterContract } from "./market/adapters/contracts/UniswapV2AdapterContract.js";
|
|
127
136
|
import { UniswapV3AdapterContract } from "./market/adapters/contracts/UniswapV3AdapterContract.js";
|
|
128
137
|
import { UniswapV4AdapterContract } from "./market/adapters/contracts/UniswapV4AdapterContract.js";
|
|
@@ -311,4 +320,4 @@ import { replayMulticall } from "./preview/preview/replayMulticall.js";
|
|
|
311
320
|
import { previewOperation } from "./preview/preview/previewOperation.js";
|
|
312
321
|
import "./preview/index.js";
|
|
313
322
|
import "./types/index.js";
|
|
314
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, AccountMigratorAdapterContract, AdapterType, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BigIntMath, BotPermissions, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainContractsRegister, ChainNotConfiguredError, CompositePriceFeedContract, ConstantPriceFeedContract, Construct, ContractParseError, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountOperationsService, CreditAccountState, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DUST_THRESHOLD, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, Erc4626PriceFeedContract, ExternalPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LidoV1AdapterContract, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, MultichainConstruct, MultichainLiquidationsService, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainSDK, OpportunitiesService, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PluginStateVersionError, PoolService, PoolSuite, PoolV310Contract, PositionsService, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RedemptionLoggerV310Contract, RedstonePriceFeedContract, RouterV310Contract, SDKConstruct, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, SimulateWithPriceUpdatesError, SimulationError, StakingRewardsAdapterContract, TokensMeta, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TypedObjectUtils, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VERSION_RANGE_310, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
|
|
323
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractAdapterContract, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, AccountMigratorAdapterContract, AdapterType, AddressMap, AddressProviderV310Contract, AddressSet, AssetsMap, BLOCKS_PER_WEEK_BY_NETWORK, BalancerStablePriceFeedContract, BalancerV3PoolStatus, BalancerV3RouterAdapterContract, BalancerV3WrapperAdapterContract, BalancerWeightedPriceFeedContract, BaseContract, BasePlugin, BigIntMath, BotPermissions, BoundedPriceFeedContract, CamelotV3AdapterContract, ChainContractsRegister, ChainNotConfiguredError, CompositePriceFeedContract, ConstantPriceFeedContract, Construct, ContractParseError, ConvexV1BaseRewardPoolAdapterContract, ConvexV1BoosterAdapterContract, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountOperationsService, CreditAccountState, CreditAccountsServiceV310, CreditConfiguratorV310Contract, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerV310Contract, CreditSuite, CreditSuiteStrategy, Curve2AssetsAdapterContract, Curve3AssetsAdapterContract, Curve4AssetsAdapterContract, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, CurveV1AdapterStETHContract, CurveV1StableNGAdapterContract, DEFAULT_QUOTA_BUFFER_BPS, DEGEN_NFT_MIDAS, DEGEN_NFT_SECURITIZE, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DIRECT_TRANSFERS_QUOTA, DUST_THRESHOLD, DaiUsdsAdapterContract, ERC4626AdapterContract, ERC4626ReferralAdapterContract, EXECUTE_BYTES_SELECTOR, Erc4626PriceFeedContract, ExternalPriceFeedContract, FluidDexAdapterContract, GaugeContract, IERC20ZapperContract, IETHZapperContract, InfinifiGatewayAdapterContract, InfinifiUnwindingGatewayAdapterContract, KelpLRTDepositPoolAdapterContract, KelpLRTWithdrawalManagerAdapterContract, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LidoV1AdapterContract, LinearInterestRateModelContract, LiquidationsService, MAX_INT, MAX_LEVERAGE_BUFFER_BPS, MAX_QUOTA_MULTIPLIER, MAX_UINT16, MAX_UINT256, MIN_HEALTH_FACTOR_FACADE, MIN_HEALTH_FACTOR_FORM, MIN_HF_LIMITED, MIN_INT96, MIN_SAFE_HEALTH_FACTOR_FORM, MULTICALL_ADDRESS, MarketRegister, MarketSuite, MellowClaimerAdapterContract, MellowDVVAdapterContract, MellowERC4626VaultAdapterContract, MellowLRTPriceFeedContract, MellowWrapperAdapterContract, MidasDegenNFT, MidasGatewayAdapterContract, MidasIssuanceVaultAdapterContract, MidasLiquidatorContract, MidasRedemptionVaultAdapterContract, MissingSerializedParamsError, MultichainConstruct, MultichainLiquidationsService, MultichainOpportunitiesService, MultichainPositionsService, MultichainSDK, NATIVE_ADDRESS, NON_STRATEGY_PHANTOM_TOKEN_TYPES, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainSDK, OpportunitiesService, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, PartialPriceFeedInitError, PendlePairStatus, PendleRouterAdapterContract, PendleTWAPPTPriceFeed, PendleTokenType, PeripheryCompressorV310Contract, PluginStateVersionError, PoolService, PoolSuite, PoolV310Contract, PositionsService, PriceFeedRef, PriceFeedRegistry, PriceOracleV310Contract, PriceUpdatesCache, PythPriceFeed, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWARegistry, RWA_COMPRESSOR_ADDRESS, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RedemptionLoggerV310Contract, RedstonePriceFeedContract, RouterV310Contract, SDKConstruct, SECONDS_PER_YEAR, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkRWADataNotLoadedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeDegenNFT, SecuritizeLiquidatorContract, SecuritizeOnRampAdapterContract, SecuritizeRWAFactory, SecuritizeRedemptionGatewayAdapterContract, SimulateWithPriceUpdatesError, SimulationError, StakingRewardsAdapterContract, TokensMeta, TraderJoePoolVersion, TraderJoeRouterAdapterContract, TreehouseFastlaneAdapterContract, TreehouseRedemptionGatewayAdapterContract, TreehouseRouterAdapterContract, TypedObjectUtils, UniswapV2AdapterContract, UniswapV3AdapterContract, UniswapV4AdapterContract, UpdatablePriceFeedRegistry, UpshiftVaultAdapterContract, VERSION_RANGE_310, VelodromeV2RouterAdapterContract, VotingContractStatus, WAD, WAD_DECIMALS_POW, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WstETHPriceFeedContract, WstETHV1AdapterContract, YearnPriceFeedContract, ZapperContract, ZeroPriceFeedContract, ZodAddress, ZodBigInt, ZodHex, accountSnapshotFromCreditAccountData, adapterActionAbi, adapterActionSelectors, adapterActionSignatures, adapterConstructorAbi, allTransfersAsTokenAmounts, amountOf, assetsMap, attachOptionsSchema, botPermissionsToString, bpsToRay, buildDelayedStrategyPositionOperationPreview, bytes32ToString, calcBorrowApy, calcBorrowRate, calcDefaultQuota, calcEffectiveBorrowApy, calcHealthFactor, calcLiquidationPrice, calcLiquidationPriceForTarget, calcMaxLeverage, calcNetStrategyApy, calcPositionLeverage, calcQuotaRate, calcQuotaUpdate, calcRecommendedQuota, calcTimeToLiquidationMs, calcUtilization, calcUtilizationRaw, chains, checkAccountQuotas, checkBorrowLimit, checkCollateralFunding, checkCollateralised, checkCreditAccountFrozen, checkCreditManagerPaused, checkCreditOperation, checkDebtLimits, checkEmergencyLiquidator, checkForbiddenToken, checkHealthFactors, checkIncreaseDebt, checkIncreaseQuota, checkLeverage, checkLiquidation, checkLiquidationEligibility, checkLiquidationFunding, checkLiquidatorEligible, checkMarket, checkMarketExpired, checkMaxQuota, checkMidasAccountGreenlist, checkObtained, checkOperation, checkPartiallyLiquidatable, checkPoolFunding, checkPoolLiquidity, checkPoolOperation, checkPoolPaused, checkPoolSunset, checkQuotaActive, checkQuotaChange, checkQuotaCount, checkQuotaLimit, checkQuotaUpdates, checkRWAOpenRequirements, checkRWAOpening, checkReservePriceLimited, checkSimulation, checkWallet, checkWalletAllowance, checkWalletBalance, childLogger, classifyCloseOrRepay, classifyCurveOperation, classifyInnerOperations, collateralPriceInUnderlying, collectTraces, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, abi as creditFacadeV310Abi, curveAddLiquidityFromTransfers, curveRemoveLiquidityFromTransfers, decodeDelayedIntent, detectDelayedClaim, detectDelayedOperation, detectNetwork, dominantCollateral, encodeDelayedIntent, erc4626ReferralAdapterAbi, estimateClaimableAt, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, executeMulticallBatches, expectedBalanceDeltas, fetchCreditAccountSlice, filterDust, filterDustUSD, findCallTo, findCallWithInput, findCuratorMarketConfigurator, findExecuteBytes, fmtBinaryMask, fnSigToName, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAccountTargetCollateral, getAdapterActionAbi, getAdapterDeployParamsAbi, getAdapterType, getAssetType, getCastTraceArgs, getChain, getCuratorName, getDirectTransferToken, getFunctionSignature, getLegacyStrategyTarget, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, hasAdapterDeployParamsAbi, healthFactorBps, hexEq, hydrateAddressProvider, iBalancerV3RouterAbi, iBalancerV3RouterAdapterAbi, iBalancerV3WrapperAbi, iBalancerV3WrapperAdapterAbi, iBaseOnRampAbi, iBaseRewardPoolAbi, iBoosterAbi, iCamelotV3AdapterAbi, iCamelotV3RouterAbi, iConvexV1BaseRewardPoolAdapterAbi, iConvexV1BoosterAdapterAbi, iCreditAccountAbi, iCurvePoolAbi, iCurvePoolStableNGAbi, iCurvePool_2Abi, iCurvePool_3Abi, iCurvePool_4Abi, iCurveV1StableNgAdapterAbi, iCurveV1_2AssetsAdapterAbi, iCurveV1_3AssetsAdapterAbi, iCurveV1_4AssetsAdapterAbi, iDaiUsdsAbi, iDaiUsdsAdapterAbi, iERC4626Abi, iERC4626ReferralAbi, iFluidDexAbi, iFluidDexAdapterAbi, iInfinifiGatewayAbi, iInfinifiGatewayAdapterAbi, iInfinifiUnwindingGatewayAbi, iInfinifiUnwindingGatewayAdapterAbi, iKelpLRTDepositPoolGatewayAbi, iKelpLRTWithdrawalManagerGatewayAbi, iKelpLrtDepositPoolAdapterAbi, iKelpLrtDepositPoolGatewayAbi, iKelpLrtWithdrawalManagerAdapterAbi, iKelpLrtWithdrawalManagerGatewayAbi, iLidoV1AdapterAbi, iMellow4626VaultAdapterAbi, iMellowClaimerAbi, iMellowClaimerAdapterAbi, iMellowWrapperAbi, iMellowWrapperAdapterAbi, iMidasGatewayAdapterV311Abi, iMidasGatewayV311Abi, iMidasIssuanceVaultAdapterV310Abi, iMidasIssuanceVaultV310Abi, iMidasRedemptionVaultAdapterV310Abi, iMidasRedemptionVaultGatewayV310Abi, iPendleRouterAbi, iPendleRouterAdapterAbi, iSecuritizeOnRampAbi, iSecuritizeOnRampAdapterV310Abi, iSecuritizeRedemptionGatewayAdapterV311Abi, iSecuritizeRedemptionGatewayV311Abi, iStakingRewardsAbi, iStakingRewardsAdapterAbi, iTraderJoeRouterAbi, iTraderJoeRouterAdapterAbi, iTreehouseFastlaneAbi, iTreehouseFastlaneAdapterAbi, iTreehouseRedemptionGatewayAbi, iTreehouseRedemptionGatewayAdapterAbi, iTreehouseRouterAbi, iTreehouseRouterAdapterAbi, iUniswapV2AdapterAbi, iUniswapV2Router02Abi, iUniswapV3Abi, iUniswapV3AdapterAbi, iUniswapV4AdapterAbi, iUniswapV4GatewayAbi, iUpshiftVaultAdapterAbi, iUpshiftVaultGatewayAbi, iVelodromeV2RouterAbi, iVelodromeV2RouterAdapterAbi, isCloseOrRepay, isDust, isLPPriceFeed, isPhantomToken, isPoolOperation, isPublicNetwork, isRWAFactory, isRWAOperation, isRWAToken, isStrategyCollateral, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, isZeroBalance, iwstETHAbi, iwstEthv1AdapterAbi, json_parse, json_stringify, lidoV1_WETHGatewayAbi, makeReplayState, maxAmountForQuota, mellowDvvAdapterAbi, midasGreenlistsAccount, minSeizedAmount, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalPartialLiquidation, optimalPartialLiquidationAmounts, parseAdapterAction, parseAdapterDeployParams, parseFacadeOperationCalldata, parseOperationCalldata, parsePoolOperationCalldata, parsePosNegAmount, parseRWAFactoryOperationCalldata, partialLiquidationParams, percentFmt, pickStrategyTargetCollateral, previewAdjustStrategyPosition, previewExitOrRepayStrategyPosition, previewOperation, raise, rayToBps, rayToNumber, replayInnerOperations, replayMulticall, resolveDelayedClaimIntent, resolveProtocolCall, retry, rewardsFromTransfers, roundUpQuota, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, soleNonUnderlyingCollateral, strategyName, swapFromTransfers, toAddress, toBN, toBigInt, toChainIds, toClaimableWithdrawal, toCreditAccountSlice, toNetTransfers, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toToken, toTokenAmount, toWithdrawalStatus, updatableDependencies, usdToNumber, watchBlocksAsync };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
//#region src/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.ts
|
|
2
|
+
const iTreehouseFastlaneAdapterAbi = [
|
|
3
|
+
{
|
|
4
|
+
type: "function",
|
|
5
|
+
name: "contractType",
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "bytes32",
|
|
10
|
+
internalType: "bytes32"
|
|
11
|
+
}],
|
|
12
|
+
stateMutability: "view"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "creditManager",
|
|
17
|
+
inputs: [],
|
|
18
|
+
outputs: [{
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
internalType: "address"
|
|
22
|
+
}],
|
|
23
|
+
stateMutability: "view"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "redeemAndFinalize",
|
|
28
|
+
inputs: [{
|
|
29
|
+
name: "shares",
|
|
30
|
+
type: "uint256",
|
|
31
|
+
internalType: "uint256"
|
|
32
|
+
}],
|
|
33
|
+
outputs: [{
|
|
34
|
+
name: "",
|
|
35
|
+
type: "bool",
|
|
36
|
+
internalType: "bool"
|
|
37
|
+
}],
|
|
38
|
+
stateMutability: "nonpayable"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: "function",
|
|
42
|
+
name: "redeemAndFinalizeDiff",
|
|
43
|
+
inputs: [{
|
|
44
|
+
name: "leftoverShares",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
internalType: "uint256"
|
|
47
|
+
}],
|
|
48
|
+
outputs: [{
|
|
49
|
+
name: "",
|
|
50
|
+
type: "bool",
|
|
51
|
+
internalType: "bool"
|
|
52
|
+
}],
|
|
53
|
+
stateMutability: "nonpayable"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "function",
|
|
57
|
+
name: "serialize",
|
|
58
|
+
inputs: [],
|
|
59
|
+
outputs: [{
|
|
60
|
+
name: "serializedData",
|
|
61
|
+
type: "bytes",
|
|
62
|
+
internalType: "bytes"
|
|
63
|
+
}],
|
|
64
|
+
stateMutability: "view"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "function",
|
|
68
|
+
name: "tAsset",
|
|
69
|
+
inputs: [],
|
|
70
|
+
outputs: [{
|
|
71
|
+
name: "",
|
|
72
|
+
type: "address",
|
|
73
|
+
internalType: "address"
|
|
74
|
+
}],
|
|
75
|
+
stateMutability: "view"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: "function",
|
|
79
|
+
name: "targetContract",
|
|
80
|
+
inputs: [],
|
|
81
|
+
outputs: [{
|
|
82
|
+
name: "",
|
|
83
|
+
type: "address",
|
|
84
|
+
internalType: "address"
|
|
85
|
+
}],
|
|
86
|
+
stateMutability: "view"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
type: "function",
|
|
90
|
+
name: "vaultUnderlying",
|
|
91
|
+
inputs: [],
|
|
92
|
+
outputs: [{
|
|
93
|
+
name: "",
|
|
94
|
+
type: "address",
|
|
95
|
+
internalType: "address"
|
|
96
|
+
}],
|
|
97
|
+
stateMutability: "view"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
type: "function",
|
|
101
|
+
name: "version",
|
|
102
|
+
inputs: [],
|
|
103
|
+
outputs: [{
|
|
104
|
+
name: "",
|
|
105
|
+
type: "uint256",
|
|
106
|
+
internalType: "uint256"
|
|
107
|
+
}],
|
|
108
|
+
stateMutability: "view"
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
//#endregion
|
|
112
|
+
export { iTreehouseFastlaneAdapterAbi };
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
//#region src/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.ts
|
|
2
|
+
const iTreehouseRedemptionGatewayAdapterAbi = [
|
|
3
|
+
{
|
|
4
|
+
type: "function",
|
|
5
|
+
name: "contractType",
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "bytes32",
|
|
10
|
+
internalType: "bytes32"
|
|
11
|
+
}],
|
|
12
|
+
stateMutability: "view"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "creditManager",
|
|
17
|
+
inputs: [],
|
|
18
|
+
outputs: [{
|
|
19
|
+
name: "",
|
|
20
|
+
type: "address",
|
|
21
|
+
internalType: "address"
|
|
22
|
+
}],
|
|
23
|
+
stateMutability: "view"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "depositPhantomToken",
|
|
28
|
+
inputs: [{
|
|
29
|
+
name: "token",
|
|
30
|
+
type: "address",
|
|
31
|
+
internalType: "address"
|
|
32
|
+
}, {
|
|
33
|
+
name: "amount",
|
|
34
|
+
type: "uint256",
|
|
35
|
+
internalType: "uint256"
|
|
36
|
+
}],
|
|
37
|
+
outputs: [{
|
|
38
|
+
name: "",
|
|
39
|
+
type: "bool",
|
|
40
|
+
internalType: "bool"
|
|
41
|
+
}],
|
|
42
|
+
stateMutability: "nonpayable"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
type: "function",
|
|
46
|
+
name: "finalizeRedeem",
|
|
47
|
+
inputs: [{
|
|
48
|
+
name: "redeemer",
|
|
49
|
+
type: "address",
|
|
50
|
+
internalType: "address"
|
|
51
|
+
}],
|
|
52
|
+
outputs: [{
|
|
53
|
+
name: "",
|
|
54
|
+
type: "bool",
|
|
55
|
+
internalType: "bool"
|
|
56
|
+
}],
|
|
57
|
+
stateMutability: "nonpayable"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: "function",
|
|
61
|
+
name: "phantomToken",
|
|
62
|
+
inputs: [],
|
|
63
|
+
outputs: [{
|
|
64
|
+
name: "",
|
|
65
|
+
type: "address",
|
|
66
|
+
internalType: "address"
|
|
67
|
+
}],
|
|
68
|
+
stateMutability: "view"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: "function",
|
|
72
|
+
name: "redeem",
|
|
73
|
+
inputs: [{
|
|
74
|
+
name: "shares",
|
|
75
|
+
type: "uint256",
|
|
76
|
+
internalType: "uint256"
|
|
77
|
+
}],
|
|
78
|
+
outputs: [{
|
|
79
|
+
name: "",
|
|
80
|
+
type: "bool",
|
|
81
|
+
internalType: "bool"
|
|
82
|
+
}],
|
|
83
|
+
stateMutability: "nonpayable"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: "function",
|
|
87
|
+
name: "redeem",
|
|
88
|
+
inputs: [{
|
|
89
|
+
name: "shares",
|
|
90
|
+
type: "uint256",
|
|
91
|
+
internalType: "uint256"
|
|
92
|
+
}, {
|
|
93
|
+
name: "extraData",
|
|
94
|
+
type: "bytes",
|
|
95
|
+
internalType: "bytes"
|
|
96
|
+
}],
|
|
97
|
+
outputs: [{
|
|
98
|
+
name: "",
|
|
99
|
+
type: "bool",
|
|
100
|
+
internalType: "bool"
|
|
101
|
+
}],
|
|
102
|
+
stateMutability: "nonpayable"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
type: "function",
|
|
106
|
+
name: "redeemDiff",
|
|
107
|
+
inputs: [{
|
|
108
|
+
name: "leftoverShares",
|
|
109
|
+
type: "uint256",
|
|
110
|
+
internalType: "uint256"
|
|
111
|
+
}, {
|
|
112
|
+
name: "extraData",
|
|
113
|
+
type: "bytes",
|
|
114
|
+
internalType: "bytes"
|
|
115
|
+
}],
|
|
116
|
+
outputs: [{
|
|
117
|
+
name: "",
|
|
118
|
+
type: "bool",
|
|
119
|
+
internalType: "bool"
|
|
120
|
+
}],
|
|
121
|
+
stateMutability: "nonpayable"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
type: "function",
|
|
125
|
+
name: "redeemDiff",
|
|
126
|
+
inputs: [{
|
|
127
|
+
name: "leftoverShares",
|
|
128
|
+
type: "uint256",
|
|
129
|
+
internalType: "uint256"
|
|
130
|
+
}],
|
|
131
|
+
outputs: [{
|
|
132
|
+
name: "",
|
|
133
|
+
type: "bool",
|
|
134
|
+
internalType: "bool"
|
|
135
|
+
}],
|
|
136
|
+
stateMutability: "nonpayable"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
type: "function",
|
|
140
|
+
name: "rescueToken",
|
|
141
|
+
inputs: [{
|
|
142
|
+
name: "redeemer",
|
|
143
|
+
type: "address",
|
|
144
|
+
internalType: "address"
|
|
145
|
+
}, {
|
|
146
|
+
name: "token",
|
|
147
|
+
type: "address",
|
|
148
|
+
internalType: "address"
|
|
149
|
+
}],
|
|
150
|
+
outputs: [{
|
|
151
|
+
name: "",
|
|
152
|
+
type: "bool",
|
|
153
|
+
internalType: "bool"
|
|
154
|
+
}],
|
|
155
|
+
stateMutability: "nonpayable"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
type: "function",
|
|
159
|
+
name: "serialize",
|
|
160
|
+
inputs: [],
|
|
161
|
+
outputs: [{
|
|
162
|
+
name: "serializedData",
|
|
163
|
+
type: "bytes",
|
|
164
|
+
internalType: "bytes"
|
|
165
|
+
}],
|
|
166
|
+
stateMutability: "view"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
type: "function",
|
|
170
|
+
name: "tAsset",
|
|
171
|
+
inputs: [],
|
|
172
|
+
outputs: [{
|
|
173
|
+
name: "",
|
|
174
|
+
type: "address",
|
|
175
|
+
internalType: "address"
|
|
176
|
+
}],
|
|
177
|
+
stateMutability: "view"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
type: "function",
|
|
181
|
+
name: "targetContract",
|
|
182
|
+
inputs: [],
|
|
183
|
+
outputs: [{
|
|
184
|
+
name: "",
|
|
185
|
+
type: "address",
|
|
186
|
+
internalType: "address"
|
|
187
|
+
}],
|
|
188
|
+
stateMutability: "view"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
type: "function",
|
|
192
|
+
name: "transferRedeemer",
|
|
193
|
+
inputs: [{
|
|
194
|
+
name: "redeemer",
|
|
195
|
+
type: "address",
|
|
196
|
+
internalType: "address"
|
|
197
|
+
}, {
|
|
198
|
+
name: "newAccount",
|
|
199
|
+
type: "address",
|
|
200
|
+
internalType: "address"
|
|
201
|
+
}],
|
|
202
|
+
outputs: [{
|
|
203
|
+
name: "",
|
|
204
|
+
type: "bool",
|
|
205
|
+
internalType: "bool"
|
|
206
|
+
}],
|
|
207
|
+
stateMutability: "nonpayable"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
type: "function",
|
|
211
|
+
name: "vaultUnderlying",
|
|
212
|
+
inputs: [],
|
|
213
|
+
outputs: [{
|
|
214
|
+
name: "",
|
|
215
|
+
type: "address",
|
|
216
|
+
internalType: "address"
|
|
217
|
+
}],
|
|
218
|
+
stateMutability: "view"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
type: "function",
|
|
222
|
+
name: "version",
|
|
223
|
+
inputs: [],
|
|
224
|
+
outputs: [{
|
|
225
|
+
name: "",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
internalType: "uint256"
|
|
228
|
+
}],
|
|
229
|
+
stateMutability: "view"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
type: "function",
|
|
233
|
+
name: "withdrawPhantomToken",
|
|
234
|
+
inputs: [{
|
|
235
|
+
name: "token",
|
|
236
|
+
type: "address",
|
|
237
|
+
internalType: "address"
|
|
238
|
+
}, {
|
|
239
|
+
name: "amount",
|
|
240
|
+
type: "uint256",
|
|
241
|
+
internalType: "uint256"
|
|
242
|
+
}],
|
|
243
|
+
outputs: [{
|
|
244
|
+
name: "useSafePrices",
|
|
245
|
+
type: "bool",
|
|
246
|
+
internalType: "bool"
|
|
247
|
+
}],
|
|
248
|
+
stateMutability: "nonpayable"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
type: "error",
|
|
252
|
+
name: "IncorrectStakedPhantomTokenException",
|
|
253
|
+
inputs: []
|
|
254
|
+
}
|
|
255
|
+
];
|
|
256
|
+
//#endregion
|
|
257
|
+
export { iTreehouseRedemptionGatewayAdapterAbi };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
//#region src/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.ts
|
|
2
|
+
const iTreehouseRouterAdapterAbi = [
|
|
3
|
+
{
|
|
4
|
+
type: "function",
|
|
5
|
+
name: "allowedAssets",
|
|
6
|
+
inputs: [],
|
|
7
|
+
outputs: [{
|
|
8
|
+
name: "",
|
|
9
|
+
type: "address[]",
|
|
10
|
+
internalType: "address[]"
|
|
11
|
+
}],
|
|
12
|
+
stateMutability: "view"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: "function",
|
|
16
|
+
name: "contractType",
|
|
17
|
+
inputs: [],
|
|
18
|
+
outputs: [{
|
|
19
|
+
name: "",
|
|
20
|
+
type: "bytes32",
|
|
21
|
+
internalType: "bytes32"
|
|
22
|
+
}],
|
|
23
|
+
stateMutability: "view"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: "function",
|
|
27
|
+
name: "creditManager",
|
|
28
|
+
inputs: [],
|
|
29
|
+
outputs: [{
|
|
30
|
+
name: "",
|
|
31
|
+
type: "address",
|
|
32
|
+
internalType: "address"
|
|
33
|
+
}],
|
|
34
|
+
stateMutability: "view"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: "function",
|
|
38
|
+
name: "deposit",
|
|
39
|
+
inputs: [{
|
|
40
|
+
name: "token",
|
|
41
|
+
type: "address",
|
|
42
|
+
internalType: "address"
|
|
43
|
+
}, {
|
|
44
|
+
name: "amount",
|
|
45
|
+
type: "uint256",
|
|
46
|
+
internalType: "uint256"
|
|
47
|
+
}],
|
|
48
|
+
outputs: [{
|
|
49
|
+
name: "",
|
|
50
|
+
type: "bool",
|
|
51
|
+
internalType: "bool"
|
|
52
|
+
}],
|
|
53
|
+
stateMutability: "nonpayable"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
type: "function",
|
|
57
|
+
name: "depositDiff",
|
|
58
|
+
inputs: [{
|
|
59
|
+
name: "token",
|
|
60
|
+
type: "address",
|
|
61
|
+
internalType: "address"
|
|
62
|
+
}, {
|
|
63
|
+
name: "leftoverAmount",
|
|
64
|
+
type: "uint256",
|
|
65
|
+
internalType: "uint256"
|
|
66
|
+
}],
|
|
67
|
+
outputs: [{
|
|
68
|
+
name: "",
|
|
69
|
+
type: "bool",
|
|
70
|
+
internalType: "bool"
|
|
71
|
+
}],
|
|
72
|
+
stateMutability: "nonpayable"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
type: "function",
|
|
76
|
+
name: "isAssetAllowed",
|
|
77
|
+
inputs: [{
|
|
78
|
+
name: "asset",
|
|
79
|
+
type: "address",
|
|
80
|
+
internalType: "address"
|
|
81
|
+
}],
|
|
82
|
+
outputs: [{
|
|
83
|
+
name: "",
|
|
84
|
+
type: "bool",
|
|
85
|
+
internalType: "bool"
|
|
86
|
+
}],
|
|
87
|
+
stateMutability: "view"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
type: "function",
|
|
91
|
+
name: "serialize",
|
|
92
|
+
inputs: [],
|
|
93
|
+
outputs: [{
|
|
94
|
+
name: "serializedData",
|
|
95
|
+
type: "bytes",
|
|
96
|
+
internalType: "bytes"
|
|
97
|
+
}],
|
|
98
|
+
stateMutability: "view"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
type: "function",
|
|
102
|
+
name: "setAssetStatusBatch",
|
|
103
|
+
inputs: [{
|
|
104
|
+
name: "assets",
|
|
105
|
+
type: "address[]",
|
|
106
|
+
internalType: "address[]"
|
|
107
|
+
}, {
|
|
108
|
+
name: "allowed",
|
|
109
|
+
type: "bool[]",
|
|
110
|
+
internalType: "bool[]"
|
|
111
|
+
}],
|
|
112
|
+
outputs: [],
|
|
113
|
+
stateMutability: "nonpayable"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
type: "function",
|
|
117
|
+
name: "targetContract",
|
|
118
|
+
inputs: [],
|
|
119
|
+
outputs: [{
|
|
120
|
+
name: "",
|
|
121
|
+
type: "address",
|
|
122
|
+
internalType: "address"
|
|
123
|
+
}],
|
|
124
|
+
stateMutability: "view"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
type: "function",
|
|
128
|
+
name: "version",
|
|
129
|
+
inputs: [],
|
|
130
|
+
outputs: [{
|
|
131
|
+
name: "",
|
|
132
|
+
type: "uint256",
|
|
133
|
+
internalType: "uint256"
|
|
134
|
+
}],
|
|
135
|
+
stateMutability: "view"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
type: "event",
|
|
139
|
+
name: "SetAssetStatus",
|
|
140
|
+
inputs: [{
|
|
141
|
+
name: "asset",
|
|
142
|
+
type: "address",
|
|
143
|
+
indexed: true,
|
|
144
|
+
internalType: "address"
|
|
145
|
+
}, {
|
|
146
|
+
name: "allowed",
|
|
147
|
+
type: "bool",
|
|
148
|
+
indexed: false,
|
|
149
|
+
internalType: "bool"
|
|
150
|
+
}],
|
|
151
|
+
anonymous: false
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
type: "error",
|
|
155
|
+
name: "InvalidAssetException",
|
|
156
|
+
inputs: []
|
|
157
|
+
}
|
|
158
|
+
];
|
|
159
|
+
//#endregion
|
|
160
|
+
export { iTreehouseRouterAdapterAbi };
|