@gearbox-protocol/sdk 18.2.0-next.13 → 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.
Files changed (79) hide show
  1. package/dist/cjs/onchain/index.js +18 -0
  2. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +113 -0
  3. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +258 -0
  4. package/dist/cjs/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +161 -0
  5. package/dist/cjs/onchain/market/adapters/abi/adapters/index.js +6 -0
  6. package/dist/cjs/onchain/market/adapters/abi/index.js +13 -0
  7. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +39 -0
  8. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +230 -0
  9. package/dist/cjs/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +29 -0
  10. package/dist/cjs/onchain/market/adapters/abi/treehouse/index.js +7 -0
  11. package/dist/cjs/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +72 -0
  12. package/dist/cjs/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +117 -0
  13. package/dist/cjs/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +61 -0
  14. package/dist/cjs/onchain/market/adapters/contracts/index.js +6 -0
  15. package/dist/cjs/onchain/market/adapters/createAdapter.js +6 -0
  16. package/dist/cjs/onchain/market/adapters/index.js +18 -0
  17. package/dist/cjs/onchain/market/index.js +18 -0
  18. package/dist/cjs/permissionless/api/index.js +2 -1
  19. package/dist/cjs/permissionless/api/oracles/PermissionlessOracles.js +40 -5
  20. package/dist/cjs/permissionless/api/oracles/index.js +2 -1
  21. package/dist/cjs/permissionless/api/oracles/score/formula.js +19 -24
  22. package/dist/cjs/permissionless/api/oracles/score/index.js +1 -1
  23. package/dist/cjs/permissionless/api/oracles/score/run.js +186 -105
  24. package/dist/cjs/permissionless/api/oracles/stress/index.js +1 -0
  25. package/dist/cjs/permissionless/api/oracles/stress/run.js +63 -13
  26. package/dist/cjs/permissionless/index.js +2 -1
  27. package/dist/esm/onchain/index.js +10 -1
  28. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.js +112 -0
  29. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.js +257 -0
  30. package/dist/esm/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.js +160 -0
  31. package/dist/esm/onchain/market/adapters/abi/adapters/index.js +4 -1
  32. package/dist/esm/onchain/market/adapters/abi/index.js +8 -1
  33. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.js +38 -0
  34. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.js +229 -0
  35. package/dist/esm/onchain/market/adapters/abi/treehouse/iTreehouseRouter.js +28 -0
  36. package/dist/esm/onchain/market/adapters/abi/treehouse/index.js +4 -0
  37. package/dist/esm/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.js +71 -0
  38. package/dist/esm/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.js +116 -0
  39. package/dist/esm/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.js +60 -0
  40. package/dist/esm/onchain/market/adapters/contracts/index.js +4 -1
  41. package/dist/esm/onchain/market/adapters/createAdapter.js +6 -0
  42. package/dist/esm/onchain/market/adapters/index.js +10 -1
  43. package/dist/esm/onchain/market/index.js +10 -1
  44. package/dist/esm/permissionless/api/index.js +4 -4
  45. package/dist/esm/permissionless/api/oracles/PermissionlessOracles.js +41 -6
  46. package/dist/esm/permissionless/api/oracles/index.js +4 -4
  47. package/dist/esm/permissionless/api/oracles/score/formula.js +20 -24
  48. package/dist/esm/permissionless/api/oracles/score/index.js +3 -3
  49. package/dist/esm/permissionless/api/oracles/score/run.js +187 -107
  50. package/dist/esm/permissionless/api/oracles/stress/index.js +2 -2
  51. package/dist/esm/permissionless/api/oracles/stress/run.js +64 -15
  52. package/dist/esm/permissionless/index.js +4 -4
  53. package/dist/types/onchain/index.d.ts +10 -1
  54. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseFastlaneAdapter.d.ts +101 -0
  55. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRedemptionGatewayAdapter.d.ts +237 -0
  56. package/dist/types/onchain/market/adapters/abi/adapters/iTreehouseRouterAdapter.d.ts +146 -0
  57. package/dist/types/onchain/market/adapters/abi/adapters/index.d.ts +4 -1
  58. package/dist/types/onchain/market/adapters/abi/index.d.ts +8 -1
  59. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseFastlane.d.ts +33 -0
  60. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRedemptionGateway.d.ts +207 -0
  61. package/dist/types/onchain/market/adapters/abi/treehouse/iTreehouseRouter.d.ts +27 -0
  62. package/dist/types/onchain/market/adapters/abi/treehouse/index.d.ts +4 -0
  63. package/dist/types/onchain/market/adapters/contracts/TreehouseFastlaneAdapterContract.d.ts +156 -0
  64. package/dist/types/onchain/market/adapters/contracts/TreehouseRedemptionGatewayAdapterContract.d.ts +481 -0
  65. package/dist/types/onchain/market/adapters/contracts/TreehouseRouterAdapterContract.d.ts +193 -0
  66. package/dist/types/onchain/market/adapters/contracts/index.d.ts +4 -1
  67. package/dist/types/onchain/market/adapters/index.d.ts +10 -1
  68. package/dist/types/onchain/market/index.d.ts +10 -1
  69. package/dist/types/permissionless/api/index.d.ts +5 -5
  70. package/dist/types/permissionless/api/oracles/PermissionlessOracles.d.ts +30 -6
  71. package/dist/types/permissionless/api/oracles/index.d.ts +5 -5
  72. package/dist/types/permissionless/api/oracles/score/formula.d.ts +14 -17
  73. package/dist/types/permissionless/api/oracles/score/index.d.ts +4 -4
  74. package/dist/types/permissionless/api/oracles/score/run.d.ts +28 -10
  75. package/dist/types/permissionless/api/oracles/score/types.d.ts +33 -28
  76. package/dist/types/permissionless/api/oracles/stress/index.d.ts +2 -2
  77. package/dist/types/permissionless/api/oracles/stress/run.d.ts +11 -0
  78. package/dist/types/permissionless/index.d.ts +5 -5
  79. package/package.json +1 -1
@@ -72,18 +72,7 @@ async function readForest(client, compressor, oracles) {
72
72
  return;
73
73
  }
74
74
  const { priceFeedTree } = state.result;
75
- for (const node of priceFeedTree) {
76
- const address = node.baseParams.addr.toLowerCase();
77
- if (nodes.has(address)) continue;
78
- nodes.set(address, {
79
- address,
80
- contractType: typeName(node.baseParams.contractType),
81
- version: Number(node.baseParams.version),
82
- description: node.description,
83
- underlyingFeeds: node.underlyingFeeds.map((feed) => feed.toLowerCase())
84
- });
85
- answers.set(address, node.answer.success ? node.answer.price : null);
86
- }
75
+ addTree(priceFeedTree, nodes, answers);
87
76
  });
88
77
  return {
89
78
  nodes,
@@ -92,6 +81,43 @@ async function readForest(client, compressor, oracles) {
92
81
  };
93
82
  }
94
83
  /**
84
+ * The trees under a handful of feeds, flattened, whether or not any oracle
85
+ * holds them.
86
+ *
87
+ * One call for all of them: the compressor walks the feeds it is given the
88
+ * way it walks an oracle's, and answers with the same nodes.
89
+ */
90
+ async function readFeedTrees(client, compressor, feeds) {
91
+ const tree = await client.readContract({
92
+ address: compressor,
93
+ abi: require_abi_compressors_priceFeedCompressor.priceFeedCompressorAbi,
94
+ functionName: "loadPriceFeedTree",
95
+ args: [feeds]
96
+ });
97
+ const nodes = /* @__PURE__ */ new Map();
98
+ const answers = /* @__PURE__ */ new Map();
99
+ addTree(tree, nodes, answers);
100
+ return {
101
+ nodes,
102
+ answers
103
+ };
104
+ }
105
+ /** A tree's nodes into the flattened forest, the first copy of each kept. */
106
+ function addTree(tree, nodes, answers) {
107
+ for (const node of tree) {
108
+ const address = node.baseParams.addr.toLowerCase();
109
+ if (nodes.has(address)) continue;
110
+ nodes.set(address, {
111
+ address,
112
+ contractType: typeName(node.baseParams.contractType),
113
+ version: Number(node.baseParams.version),
114
+ description: node.description,
115
+ underlyingFeeds: node.underlyingFeeds.map((feed) => feed.toLowerCase())
116
+ });
117
+ answers.set(address, node.answer.success ? node.answer.price : null);
118
+ }
119
+ }
120
+ /**
95
121
  * Where each rate-bearing feed reads its rate, and what it will accept.
96
122
  *
97
123
  * The baseline a rate source is perturbed from is the feed's own `lowerBound`
@@ -153,6 +179,18 @@ async function readRateTargets(client, feeds) {
153
179
  bounds
154
180
  };
155
181
  }
182
+ /** Tries after the first before a refused read is given up on. */
183
+ const READ_RETRIES = 3;
184
+ /**
185
+ * A multicall failure that is the node's and not the feed's.
186
+ *
187
+ * A call that reverted inside the multicall is decoded from its own return
188
+ * data and carries no error of the `eth_call` around it; a chunk the node
189
+ * refused carries exactly that, for every call in the chunk.
190
+ */
191
+ function isRefusal(error) {
192
+ return error instanceof viem.BaseError && error.walk((cause) => cause instanceof viem.CallExecutionError) !== null;
193
+ }
156
194
  /**
157
195
  * What every feed answers with one group's sources overridden.
158
196
  *
@@ -165,7 +203,7 @@ async function readUnder(client, feeds, sources, multiplier, updatedAt, freshen
165
203
  const driven = require_permissionless_api_oracles_stress_override.groupOverride(sources, multiplier, updatedAt);
166
204
  const taken = new Set(driven.map((override) => override.address.toLowerCase()));
167
205
  const overrides = [...require_permissionless_api_oracles_stress_override.groupOverride(freshen, 1, updatedAt).filter((override) => !taken.has(override.address.toLowerCase())), ...driven];
168
- const results = await client.multicall({
206
+ const readOnce = () => client.multicall({
169
207
  contracts: feeds.map((address) => ({
170
208
  address,
171
209
  abi: aggregatorAbi,
@@ -174,6 +212,17 @@ async function readUnder(client, feeds, sources, multiplier, updatedAt, freshen
174
212
  allowFailure: true,
175
213
  stateOverride: overrides.length > 0 ? overrides : void 0
176
214
  });
215
+ let results = [];
216
+ for (let attempt = 0;; attempt++) {
217
+ results = await readOnce();
218
+ const refused = results.find((result) => result.status === "failure" && isRefusal(result.error));
219
+ if (!refused) break;
220
+ if (attempt >= READ_RETRIES) {
221
+ const reason = refused.error instanceof viem.BaseError ? refused.error.walk().shortMessage : String(refused.error);
222
+ throw new Error(`the node would not answer a read of ${feeds.length} feeds after 4 tries: ${reason}`, { cause: refused.error });
223
+ }
224
+ await new Promise((resolve) => setTimeout(resolve, 500 * 2 ** attempt));
225
+ }
177
226
  return new Map(feeds.map((feed, i) => {
178
227
  const result = results[i];
179
228
  return [feed, result?.status === "success" ? result.result[1] ?? null : null];
@@ -429,6 +478,7 @@ async function runStressTest({ client, chainId, slots, compressor, scenarios = D
429
478
  //#endregion
430
479
  exports.DEFAULT_SCENARIOS = DEFAULT_SCENARIOS;
431
480
  exports.RATE_FEED_TYPE = RATE_FEED_TYPE;
481
+ exports.readFeedTrees = readFeedTrees;
432
482
  exports.readForest = readForest;
433
483
  exports.readRateTargets = readRateTargets;
434
484
  exports.readUnder = readUnder;
@@ -91,7 +91,6 @@ exports.PriceFeedSaltMissingError = require_permissionless_api_errors.PriceFeedS
91
91
  exports.PriceFeedStalenessUnknownError = require_permissionless_api_errors.PriceFeedStalenessUnknownError;
92
92
  exports.PriceFeedStoreContract = require_permissionless_bindings_price_feed_store.PriceFeedStoreContract;
93
93
  exports.RATE_FEED_TYPE = require_permissionless_api_oracles_stress_run.RATE_FEED_TYPE;
94
- exports.REVERT_SCORE = require_permissionless_api_oracles_score_formula.REVERT_SCORE;
95
94
  exports.RoutingManagerContract = require_permissionless_bindings_router_routing_manager.RoutingManagerContract;
96
95
  exports.SCORE_MULTIPLIER = require_permissionless_api_oracles_score_formula.SCORE_MULTIPLIER;
97
96
  exports.TOKEN_COMPRESSOR = require_permissionless_utils_literals.TOKEN_COMPRESSOR;
@@ -137,11 +136,13 @@ exports.perturb = require_permissionless_api_oracles_stress_override.perturb;
137
136
  exports.priceFeedSalt = require_permissionless_api_deploy_PermissionlessDeploy.priceFeedSalt;
138
137
  exports.priceFeedSetupParams = require_permissionless_bindings_pricefeeds_index.priceFeedSetupParams;
139
138
  exports.rateStub = require_permissionless_api_oracles_stress_override.rateStub;
139
+ exports.readFeedTrees = require_permissionless_api_oracles_stress_run.readFeedTrees;
140
140
  exports.readForest = require_permissionless_api_oracles_stress_run.readForest;
141
141
  exports.readRateTargets = require_permissionless_api_oracles_stress_run.readRateTargets;
142
142
  exports.readUnder = require_permissionless_api_oracles_stress_run.readUnder;
143
143
  exports.roundDataStub = require_permissionless_api_oracles_stress_override.roundDataStub;
144
144
  exports.runAssetScores = require_permissionless_api_oracles_score_run.runAssetScores;
145
+ exports.runFeedPairScore = require_permissionless_api_oracles_score_run.runFeedPairScore;
145
146
  exports.runStressTest = require_permissionless_api_oracles_stress_run.runStressTest;
146
147
  exports.scoreGroup = require_permissionless_api_oracles_stress_score.scoreGroup;
147
148
  exports.scoreOfFactor = require_permissionless_api_oracles_score_formula.scoreOfFactor;
@@ -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 };