@gearbox-protocol/sdk 9.12.13 → 9.13.0

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 (230) hide show
  1. package/dist/cjs/abi/310/configure/creditSuiteParams.js +130 -0
  2. package/dist/cjs/abi/310/configure/iCreditConfigureActions.js +181 -0
  3. package/dist/cjs/abi/310/configure/iPoolConfigureActions.js +80 -0
  4. package/dist/cjs/abi/310/configure/iPriceOracleConfigureActions.js +49 -0
  5. package/dist/cjs/abi/310/crossChainMultisig.js +540 -0
  6. package/dist/cjs/abi/{v310.js → 310/generated.js} +3 -3
  7. package/dist/cjs/abi/310/iBytecodeRepository.js +897 -0
  8. package/dist/cjs/abi/310/iMarketConfiguratorFactory.js +189 -0
  9. package/dist/cjs/abi/310/iPriceFeedStore.js +417 -0
  10. package/dist/cjs/abi/310/iTreasurySplitter.js +36 -0
  11. package/dist/cjs/abi/310/instanceManager.js +274 -0
  12. package/dist/cjs/abi/compressors/creditAccountCompressor.js +456 -0
  13. package/dist/cjs/abi/compressors/creditSuiteCompressor.js +774 -0
  14. package/dist/cjs/abi/compressors/defillamaCompressor.js +183 -0
  15. package/dist/cjs/abi/compressors/gaugeCompressor.js +184 -0
  16. package/dist/cjs/abi/compressors/marketCompressor.js +2477 -0
  17. package/dist/cjs/abi/compressors/peripheryCompressor.js +202 -0
  18. package/dist/cjs/abi/compressors/priceFeedCompressor.js +581 -0
  19. package/dist/cjs/abi/compressors/rewardsCompressor.js +82 -0
  20. package/dist/cjs/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +187 -0
  21. package/dist/cjs/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +187 -0
  22. package/dist/cjs/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +187 -0
  23. package/dist/cjs/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +187 -0
  24. package/dist/cjs/abi/compressors/tokenCompressor.js +95 -0
  25. package/dist/cjs/abi/compressors/withdrawalCompressor.js +272 -0
  26. package/dist/cjs/abi/governance/batchesChain.js +68 -0
  27. package/dist/cjs/abi/governance/governor.js +472 -0
  28. package/dist/cjs/abi/governance/iTimeLock.js +257 -0
  29. package/dist/cjs/abi/router/balancerV2Worker.js +730 -0
  30. package/dist/cjs/abi/router/balancerV3Worker.js +734 -0
  31. package/dist/cjs/abi/router/camelotV3Worker.js +558 -0
  32. package/dist/cjs/abi/router/convexWorker.js +541 -0
  33. package/dist/cjs/abi/router/curveWorker.js +718 -0
  34. package/dist/cjs/abi/router/daiUsdsWorker.js +541 -0
  35. package/dist/cjs/abi/router/equalizerRouterWorker.js +541 -0
  36. package/dist/cjs/abi/router/erc4626Worker.js +572 -0
  37. package/dist/cjs/abi/router/fluidDexWorker.js +551 -0
  38. package/dist/cjs/abi/router/gearboxRouter.js +651 -0
  39. package/dist/cjs/abi/router/infraredVaultWorker.js +541 -0
  40. package/dist/cjs/abi/router/kodiakWorker.js +732 -0
  41. package/dist/cjs/abi/router/lidoWorker.js +541 -0
  42. package/dist/cjs/abi/router/mellow4626Worker.js +541 -0
  43. package/dist/cjs/abi/router/mellowDVVWorker.js +541 -0
  44. package/dist/cjs/abi/router/mellowVaultWorker.js +551 -0
  45. package/dist/cjs/abi/router/pendleRouterWorker.js +567 -0
  46. package/dist/cjs/abi/router/routingManager.js +397 -0
  47. package/dist/cjs/abi/router/stakingRewardsWorker.js +541 -0
  48. package/dist/cjs/abi/router/traderJoeWorker.js +541 -0
  49. package/dist/cjs/abi/router/uniswapV2Worker.js +541 -0
  50. package/dist/cjs/abi/router/uniswapV3Worker.js +568 -0
  51. package/dist/cjs/abi/router/upshiftWorker.js +541 -0
  52. package/dist/cjs/abi/router/velodromeV2Worker.js +541 -0
  53. package/dist/cjs/abi/router/wstETHWorker.js +541 -0
  54. package/dist/cjs/abi/router/yearnV2Worker.js +541 -0
  55. package/dist/cjs/dev/migrateFaucet.js +6 -6
  56. package/dist/cjs/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  57. package/dist/cjs/plugins/bots/BotsPlugin.js +2 -2
  58. package/dist/cjs/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  59. package/dist/cjs/plugins/zappers/ZappersPlugin.js +2 -2
  60. package/dist/cjs/sdk/accounts/AbstractCreditAccountsService.js +11 -9
  61. package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +2 -2
  62. package/dist/cjs/sdk/chain/detectNetwork.js +2 -2
  63. package/dist/cjs/sdk/core/address-provider/AddressProviderV310Contract.js +2 -2
  64. package/dist/cjs/sdk/gauges/GaugeStakingService.js +2 -2
  65. package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -2
  66. package/dist/cjs/sdk/market/MarketRegister.js +3 -3
  67. package/dist/cjs/sdk/market/credit/CreditConfiguratorV310Contract.js +2 -2
  68. package/dist/cjs/sdk/market/credit/CreditFacadeV310Contract.js +3 -3
  69. package/dist/cjs/sdk/market/credit/CreditManagerV310Contract.js +2 -2
  70. package/dist/cjs/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  71. package/dist/cjs/sdk/market/oracle/PriceOracleV310Contract.js +3 -3
  72. package/dist/cjs/sdk/market/pool/PoolQuotaKeeperV310Contract.js +2 -2
  73. package/dist/cjs/sdk/market/pool/PoolV310Contract.js +2 -2
  74. package/dist/cjs/sdk/market/pool/TumblerContract.js +2 -2
  75. package/dist/cjs/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  76. package/dist/cjs/sdk/router/RouterV310Contract.js +2 -2
  77. package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +2 -1
  78. package/dist/cjs/sdk/utils/viem/simulateWithPriceUpdates.js +3 -2
  79. package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
  80. package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
  81. package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
  82. package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
  83. package/dist/esm/abi/310/crossChainMultisig.js +516 -0
  84. package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
  85. package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
  86. package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
  87. package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
  88. package/dist/esm/abi/310/instanceManager.js +250 -0
  89. package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
  90. package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
  91. package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
  92. package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
  93. package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
  94. package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
  95. package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
  96. package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
  97. package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
  98. package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
  99. package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
  100. package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
  101. package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
  102. package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
  103. package/dist/esm/abi/governance/batchesChain.js +44 -0
  104. package/dist/esm/abi/governance/governor.js +448 -0
  105. package/dist/esm/abi/governance/iTimeLock.js +233 -0
  106. package/dist/esm/abi/router/balancerV2Worker.js +706 -0
  107. package/dist/esm/abi/router/balancerV3Worker.js +710 -0
  108. package/dist/esm/abi/router/camelotV3Worker.js +534 -0
  109. package/dist/esm/abi/router/convexWorker.js +517 -0
  110. package/dist/esm/abi/router/curveWorker.js +694 -0
  111. package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
  112. package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
  113. package/dist/esm/abi/router/erc4626Worker.js +548 -0
  114. package/dist/esm/abi/router/fluidDexWorker.js +527 -0
  115. package/dist/esm/abi/router/gearboxRouter.js +627 -0
  116. package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
  117. package/dist/esm/abi/router/kodiakWorker.js +708 -0
  118. package/dist/esm/abi/router/lidoWorker.js +517 -0
  119. package/dist/esm/abi/router/mellow4626Worker.js +517 -0
  120. package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
  121. package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
  122. package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
  123. package/dist/esm/abi/router/routingManager.js +373 -0
  124. package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
  125. package/dist/esm/abi/router/traderJoeWorker.js +517 -0
  126. package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
  127. package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
  128. package/dist/esm/abi/router/upshiftWorker.js +517 -0
  129. package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
  130. package/dist/esm/abi/router/wstETHWorker.js +517 -0
  131. package/dist/esm/abi/router/yearnV2Worker.js +517 -0
  132. package/dist/esm/dev/migrateFaucet.js +1 -1
  133. package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  134. package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
  135. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  136. package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
  137. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
  138. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
  139. package/dist/esm/sdk/chain/detectNetwork.js +1 -1
  140. package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
  141. package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
  142. package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
  143. package/dist/esm/sdk/market/MarketRegister.js +3 -3
  144. package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
  145. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
  146. package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
  147. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  148. package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
  149. package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
  150. package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
  151. package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
  152. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  153. package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
  154. package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +2 -1
  155. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
  156. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
  157. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
  158. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
  159. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
  160. package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
  161. package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
  162. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
  163. package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
  164. package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
  165. package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
  166. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
  167. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
  168. package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
  169. package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
  170. package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
  171. package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
  172. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
  173. package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
  174. package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
  175. package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
  176. package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
  177. package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
  178. package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
  179. package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
  180. package/dist/types/abi/governance/batchesChain.d.ts +31 -0
  181. package/dist/types/abi/governance/governor.d.ts +584 -0
  182. package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
  183. package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
  184. package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
  185. package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
  186. package/dist/types/abi/router/convexWorker.d.ts +726 -0
  187. package/dist/types/abi/router/curveWorker.d.ts +947 -0
  188. package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
  189. package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
  190. package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
  191. package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
  192. package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
  193. package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
  194. package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
  195. package/dist/types/abi/router/lidoWorker.d.ts +726 -0
  196. package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
  197. package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
  198. package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
  199. package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
  200. package/dist/types/abi/router/routingManager.d.ts +494 -0
  201. package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
  202. package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
  203. package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
  204. package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
  205. package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
  206. package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
  207. package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
  208. package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
  209. package/dist/types/plugins/bots/types.d.ts +2 -2
  210. package/dist/types/plugins/zappers/types.d.ts +2 -2
  211. package/dist/types/sdk/accounts/types.d.ts +2 -2
  212. package/dist/types/sdk/base/types.d.ts +11 -7
  213. package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
  214. package/dist/types/sdk/market/oracle/types.d.ts +3 -3
  215. package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
  216. package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
  217. package/package.json +1 -1
  218. package/dist/cjs/abi/compressors.js +0 -4555
  219. package/dist/cjs/abi/iPriceFeedStore.js +0 -254
  220. package/dist/cjs/abi/index.js +0 -46
  221. package/dist/cjs/abi/package.json +0 -1
  222. package/dist/cjs/abi/routerV310.js +0 -276
  223. package/dist/esm/abi/compressors.js +0 -4524
  224. package/dist/esm/abi/iPriceFeedStore.js +0 -230
  225. package/dist/esm/abi/index.js +0 -13
  226. package/dist/esm/abi/package.json +0 -1
  227. package/dist/esm/abi/routerV310.js +0 -252
  228. package/dist/types/abi/index.d.ts +0 -13
  229. /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
  230. /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { bytesToString, parseEventLogs, toBytes } from "viem";
2
- import { iAddressProviderV310Abi } from "../../../abi/v310.js";
2
+ import { iAddressProviderV310Abi } from "../../../abi/310/generated.js";
3
3
  import AbstractAddressProviderContract from "./AbstractAddressProviderContract.js";
4
4
  const abi = iAddressProviderV310Abi;
5
5
  class AddressProviderV310Contract extends AbstractAddressProviderContract {
@@ -1,4 +1,4 @@
1
- import { iGaugeCompressorAbi } from "../../abi/compressors.js";
1
+ import { gaugeCompressorAbi } from "../../abi/compressors/gaugeCompressor.js";
2
2
  import { SDKConstruct } from "../base/index.js";
3
3
  import { AP_GAUGE_COMPRESSOR, VERSION_RANGE_310 } from "../constants/index.js";
4
4
  class GaugeStakingService extends SDKConstruct {
@@ -28,7 +28,7 @@ class GaugeStakingService extends SDKConstruct {
28
28
  allowFailure: false,
29
29
  contracts: [
30
30
  {
31
- abi: iGaugeCompressorAbi,
31
+ abi: gaugeCompressorAbi,
32
32
  address: this.#compressor,
33
33
  functionName: "getGauges",
34
34
  args: [marketFilter, wallet]
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  stringToHex
3
3
  } from "viem";
4
- import { iMarketConfiguratorV310Abi } from "../../abi/v310.js";
4
+ import { iMarketConfiguratorV310Abi } from "../../abi/310/generated.js";
5
5
  import { BaseContract } from "../base/index.js";
6
6
  import { AP_MARKET_CONFIGURATOR } from "../constants/index.js";
7
7
  const abi = iMarketConfiguratorV310Abi;
@@ -1,4 +1,4 @@
1
- import { iMarketCompressorAbi } from "../../abi/compressors.js";
1
+ import { marketCompressorAbi } from "../../abi/compressors/marketCompressor.js";
2
2
  import { SDKConstruct } from "../base/index.js";
3
3
  import {
4
4
  ADDRESS_0X0,
@@ -118,7 +118,7 @@ class MarketRegister extends SDKConstruct {
118
118
  priceUpdates: txs,
119
119
  contracts: [
120
120
  {
121
- abi: iMarketCompressorAbi,
121
+ abi: marketCompressorAbi,
122
122
  address: marketCompressorAddress,
123
123
  functionName: "getMarkets",
124
124
  args: [this.marketFilter]
@@ -131,7 +131,7 @@ class MarketRegister extends SDKConstruct {
131
131
  markets = resp;
132
132
  } else {
133
133
  markets = await this.provider.publicClient.readContract({
134
- abi: iMarketCompressorAbi,
134
+ abi: marketCompressorAbi,
135
135
  address: marketCompressorAddress,
136
136
  functionName: "getMarkets",
137
137
  args: [this.marketFilter],
@@ -1,4 +1,4 @@
1
- import { iCreditConfiguratorV310Abi } from "../../../abi/v310.js";
1
+ import { iCreditConfiguratorV310Abi } from "../../../abi/310/generated.js";
2
2
  import { BaseContract } from "../../base/index.js";
3
3
  import { RAMP_DURATION_BY_NETWORK } from "../../constants/index.js";
4
4
  import { formatDuration, percentFmt } from "../../utils/index.js";
@@ -1,8 +1,8 @@
1
- import { iPausableAbi } from "../../../abi/iPausable.js";
2
1
  import {
3
2
  iCreditFacadeMulticallV310Abi,
4
3
  iCreditFacadeV310Abi
5
- } from "../../../abi/v310.js";
4
+ } from "../../../abi/310/generated.js";
5
+ import { iPausableAbi } from "../../../abi/iPausable.js";
6
6
  import { BaseContract } from "../../base/index.js";
7
7
  import { ADDRESS_0X0 } from "../../constants/index.js";
8
8
  import { fmtBinaryMask, formatBNvalue } from "../../utils/index.js";
@@ -1,4 +1,4 @@
1
- import { iCreditManagerV310Abi } from "../../../abi/v310.js";
1
+ import { iCreditManagerV310Abi } from "../../../abi/310/generated.js";
2
2
  import { BaseContract } from "../../base/index.js";
3
3
  import { AddressMap, fmtBinaryMask, percentFmt } from "../../utils/index.js";
4
4
  import { createAdapter } from "../adapters/index.js";
@@ -1,6 +1,6 @@
1
1
  import { format, formatDistanceToNow } from "date-fns";
2
2
  import { stringToHex } from "viem";
3
- import { iPriceFeedCompressorAbi } from "../../../abi/compressors.js";
3
+ import { priceFeedCompressorAbi } from "../../../abi/compressors/priceFeedCompressor.js";
4
4
  import { BaseContract } from "../../base/index.js";
5
5
  import {
6
6
  AP_PRICE_FEED_COMPRESSOR,
@@ -174,7 +174,7 @@ class PriceOracleBaseContract extends BaseContract {
174
174
  );
175
175
  return {
176
176
  call: {
177
- abi: iPriceFeedCompressorAbi,
177
+ abi: priceFeedCompressorAbi,
178
178
  address,
179
179
  functionName: "getPriceOracleState",
180
180
  args
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  iCreditFacadeMulticallV310Abi,
6
6
  iPriceOracleV310Abi
7
- } from "../../../abi/v310.js";
7
+ } from "../../../abi/310/generated.js";
8
8
  import {
9
9
  getRawPriceUpdates
10
10
  } from "../pricefeeds/index.js";
@@ -1,4 +1,4 @@
1
- import { iPoolQuotaKeeperV310Abi } from "../../../abi/v310.js";
1
+ import { iPoolQuotaKeeperV310Abi } from "../../../abi/310/generated.js";
2
2
  import { BaseContract } from "../../base/index.js";
3
3
  import { AddressMap, formatBNvalue, percentFmt } from "../../utils/index.js";
4
4
  const abi = iPoolQuotaKeeperV310Abi;
@@ -1,5 +1,5 @@
1
+ import { iPoolV310Abi } from "../../../abi/310/generated.js";
1
2
  import { iPausableAbi } from "../../../abi/iPausable.js";
2
- import { iPoolV310Abi } from "../../../abi/v310.js";
3
3
  import { BaseContract } from "../../base/index.js";
4
4
  import {
5
5
  AddressMap,
@@ -1,5 +1,5 @@
1
1
  import { decodeAbiParameters } from "viem";
2
- import { iTumblerV310Abi } from "../../../abi/v310.js";
2
+ import { iTumblerV310Abi } from "../../../abi/310/generated.js";
3
3
  import { BaseContract } from "../../base/index.js";
4
4
  import { AddressMap, formatDuration, percentFmt } from "../../utils/index.js";
5
5
  const abi = iTumblerV310Abi;
@@ -1,5 +1,5 @@
1
1
  import { parseAbi } from "viem";
2
- import { iPriceFeedCompressorAbi } from "../../../abi/compressors.js";
2
+ import { priceFeedCompressorAbi } from "../../../abi/compressors/priceFeedCompressor.js";
3
3
  import { SDKConstruct } from "../../base/index.js";
4
4
  import {
5
5
  ADDRESS_0X0,
@@ -159,7 +159,7 @@ class PriceFeedRegister extends SDKConstruct {
159
159
  const blockParam = block ?? { blockNumber: this.sdk.currentBlock };
160
160
  const result = await this.provider.publicClient.readContract({
161
161
  address: priceFeedCompressorAddress,
162
- abi: iPriceFeedCompressorAbi,
162
+ abi: priceFeedCompressorAbi,
163
163
  functionName: "loadPriceFeedTree",
164
164
  args: [feeds],
165
165
  ...blockParam,
@@ -216,7 +216,7 @@ class PriceFeedRegister extends SDKConstruct {
216
216
  );
217
217
  const result = await this.provider.publicClient.readContract({
218
218
  address: priceFeedCompressorAddress,
219
- abi: iPriceFeedCompressorAbi,
219
+ abi: priceFeedCompressorAbi,
220
220
  functionName: "getUpdatablePriceFeeds",
221
221
  args: [
222
222
  {
@@ -1,11 +1,11 @@
1
1
  import { getAddress } from "viem";
2
- import { iGearboxRouterV310Abi } from "../../abi/routerV310.js";
2
+ import { gearboxRouterAbi } from "../../abi/router/gearboxRouter.js";
3
3
  import { BigIntMath } from "../sdk-legacy/index.js";
4
4
  import { AddressMap } from "../utils/AddressMap.js";
5
5
  import { formatBN } from "../utils/formatter.js";
6
6
  import { AbstractRouterContract } from "./AbstractRouterContract.js";
7
7
  import { assetsMap, balancesMap, limitLeftover } from "./helpers.js";
8
- const abi = iGearboxRouterV310Abi;
8
+ const abi = gearboxRouterAbi;
9
9
  const ERR_NOT_IMPLEMENTED = new Error("Not implemented in router v3.1");
10
10
  class RouterV310Contract extends AbstractRouterContract {
11
11
  #numSplits = new AddressMap();
@@ -35,7 +35,8 @@ const HUMAN_READABLE_TITLES = {
35
35
  ["0x6252467c2fefb61cb55180282943139baeea36c5".toLowerCase()]: "rstETH\xA0\u2192\xA0wstETH",
36
36
  ["0xd412ca00d177eba2843348f9c50dd17bfce32c40".toLowerCase()]: "pzETH\xA0\u2192\xA0wstETH",
37
37
  ["0x26c98674e623647f11909791593fa3b6e9406c67".toLowerCase()]: "steak7LRT\xA0\u2192\xA0wstETH",
38
- ["0x9fb930eacadad079683a4758424a53b9b3692775".toLowerCase()]: "Re7LRT\xA0\u2192\xA0wstETH"
38
+ ["0x9fb930eacadad079683a4758424a53b9b3692775".toLowerCase()]: "Re7LRT\xA0\u2192\xA0wstETH",
39
+ ETHPlus: "ETH+"
39
40
  };
40
41
  class TokenData {
41
42
  address;
@@ -5,7 +5,8 @@ import {
5
5
  decodeFunctionData,
6
6
  parseAbi
7
7
  } from "viem";
8
- import { errorAbis, iUpdatablePriceFeedAbi } from "../../../abi/index.js";
8
+ import { errorAbis } from "../../../abi/errors.js";
9
+ import { iUpdatablePriceFeedAbi } from "../../../abi/iUpdatablePriceFeed.js";
9
10
  import { generateCastTraceCall } from "./cast.js";
10
11
  import { simulateMulticall } from "./simulateMulticall.js";
11
12
  const multicallTimestampAbi = parseAbi([
@@ -0,0 +1,92 @@
1
+ export declare const deployParamsAbi: {
2
+ readonly name: "DeployParams";
3
+ readonly type: "tuple";
4
+ readonly components: readonly [{
5
+ readonly name: "postfix";
6
+ readonly type: "bytes32";
7
+ readonly internalType: "bytes32";
8
+ }, {
9
+ readonly name: "salt";
10
+ readonly type: "bytes32";
11
+ readonly internalType: "bytes32";
12
+ }, {
13
+ readonly name: "constructorParams";
14
+ readonly type: "bytes";
15
+ readonly internalType: "bytes";
16
+ }];
17
+ };
18
+ export declare const creditManagerParamsAbi: {
19
+ readonly name: "CreditManagerParams";
20
+ readonly type: "tuple";
21
+ readonly components: readonly [{
22
+ readonly name: "maxEnabledTokens";
23
+ readonly type: "uint8";
24
+ readonly internalType: "uint8";
25
+ }, {
26
+ readonly name: "feeInterest";
27
+ readonly type: "uint16";
28
+ readonly internalType: "uint16";
29
+ }, {
30
+ readonly name: "feeLiquidation";
31
+ readonly type: "uint16";
32
+ readonly internalType: "uint16";
33
+ }, {
34
+ readonly name: "liquidationPremium";
35
+ readonly type: "uint16";
36
+ readonly internalType: "uint16";
37
+ }, {
38
+ readonly name: "feeLiquidationExpired";
39
+ readonly type: "uint16";
40
+ readonly internalType: "uint16";
41
+ }, {
42
+ readonly name: "liquidationPremiumExpired";
43
+ readonly type: "uint16";
44
+ readonly internalType: "uint16";
45
+ }, {
46
+ readonly name: "minDebt";
47
+ readonly type: "uint128";
48
+ readonly internalType: "uint128";
49
+ }, {
50
+ readonly name: "maxDebt";
51
+ readonly type: "uint128";
52
+ readonly internalType: "uint128";
53
+ }, {
54
+ readonly name: "name";
55
+ readonly type: "string";
56
+ readonly internalType: "string";
57
+ }, {
58
+ readonly name: "accountFactoryParams";
59
+ readonly type: "tuple";
60
+ readonly internalType: "struct DeployParams";
61
+ readonly components: readonly [{
62
+ readonly name: "postfix";
63
+ readonly type: "bytes32";
64
+ readonly internalType: "bytes32";
65
+ }, {
66
+ readonly name: "salt";
67
+ readonly type: "bytes32";
68
+ readonly internalType: "bytes32";
69
+ }, {
70
+ readonly name: "constructorParams";
71
+ readonly type: "bytes";
72
+ readonly internalType: "bytes";
73
+ }];
74
+ }];
75
+ };
76
+ export declare const creditFacadeParamsAbi: {
77
+ readonly name: "CreditFacadeParams";
78
+ readonly type: "tuple";
79
+ readonly components: readonly [{
80
+ readonly name: "degenNFT";
81
+ readonly type: "address";
82
+ readonly internalType: "address";
83
+ }, {
84
+ readonly name: "expirable";
85
+ readonly type: "bool";
86
+ readonly internalType: "bool";
87
+ }, {
88
+ readonly name: "migrateBotList";
89
+ readonly type: "bool";
90
+ readonly internalType: "bool";
91
+ }];
92
+ };
@@ -0,0 +1,187 @@
1
+ export declare const iCreditConfigureActionsAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly inputs: readonly [{
4
+ readonly name: "token";
5
+ readonly internalType: "address";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly name: "liquidationThreshold";
9
+ readonly internalType: "uint16";
10
+ readonly type: "uint16";
11
+ }];
12
+ readonly name: "addCollateralToken";
13
+ readonly outputs: readonly [];
14
+ readonly stateMutability: "nonpayable";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly inputs: readonly [{
18
+ readonly name: "params";
19
+ readonly internalType: "struct DeployParams";
20
+ readonly type: "tuple";
21
+ readonly components: readonly [{
22
+ readonly name: "postfix";
23
+ readonly internalType: "bytes32";
24
+ readonly type: "bytes32";
25
+ }, {
26
+ readonly name: "salt";
27
+ readonly internalType: "bytes32";
28
+ readonly type: "bytes32";
29
+ }, {
30
+ readonly name: "constructorParams";
31
+ readonly internalType: "bytes";
32
+ readonly type: "bytes";
33
+ }];
34
+ }];
35
+ readonly name: "allowAdapter";
36
+ readonly outputs: readonly [];
37
+ readonly stateMutability: "nonpayable";
38
+ }, {
39
+ readonly type: "function";
40
+ readonly inputs: readonly [{
41
+ readonly name: "token";
42
+ readonly internalType: "address";
43
+ readonly type: "address";
44
+ }];
45
+ readonly name: "allowToken";
46
+ readonly outputs: readonly [];
47
+ readonly stateMutability: "nonpayable";
48
+ }, {
49
+ readonly type: "function";
50
+ readonly inputs: readonly [{
51
+ readonly name: "targetContract";
52
+ readonly internalType: "address";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly name: "data";
56
+ readonly internalType: "bytes";
57
+ readonly type: "bytes";
58
+ }];
59
+ readonly name: "configureAdapterFor";
60
+ readonly outputs: readonly [];
61
+ readonly stateMutability: "nonpayable";
62
+ }, {
63
+ readonly type: "function";
64
+ readonly inputs: readonly [{
65
+ readonly name: "adapter";
66
+ readonly internalType: "address";
67
+ readonly type: "address";
68
+ }];
69
+ readonly name: "forbidAdapter";
70
+ readonly outputs: readonly [];
71
+ readonly stateMutability: "nonpayable";
72
+ }, {
73
+ readonly type: "function";
74
+ readonly inputs: readonly [{
75
+ readonly name: "token";
76
+ readonly internalType: "address";
77
+ readonly type: "address";
78
+ }];
79
+ readonly name: "forbidToken";
80
+ readonly outputs: readonly [];
81
+ readonly stateMutability: "nonpayable";
82
+ }, {
83
+ readonly type: "function";
84
+ readonly inputs: readonly [];
85
+ readonly name: "pause";
86
+ readonly outputs: readonly [];
87
+ readonly stateMutability: "nonpayable";
88
+ }, {
89
+ readonly type: "function";
90
+ readonly inputs: readonly [{
91
+ readonly name: "token";
92
+ readonly internalType: "address";
93
+ readonly type: "address";
94
+ }, {
95
+ readonly name: "liquidationThresholdFinal";
96
+ readonly internalType: "uint16";
97
+ readonly type: "uint16";
98
+ }, {
99
+ readonly name: "rampStart";
100
+ readonly internalType: "uint40";
101
+ readonly type: "uint40";
102
+ }, {
103
+ readonly name: "rampDuration";
104
+ readonly internalType: "uint24";
105
+ readonly type: "uint24";
106
+ }];
107
+ readonly name: "rampLiquidationThreshold";
108
+ readonly outputs: readonly [];
109
+ readonly stateMutability: "nonpayable";
110
+ }, {
111
+ readonly type: "function";
112
+ readonly inputs: readonly [{
113
+ readonly name: "newExpirationDate";
114
+ readonly internalType: "uint40";
115
+ readonly type: "uint40";
116
+ }];
117
+ readonly name: "setExpirationDate";
118
+ readonly outputs: readonly [];
119
+ readonly stateMutability: "nonpayable";
120
+ }, {
121
+ readonly type: "function";
122
+ readonly inputs: readonly [{
123
+ readonly name: "feeLiquidation";
124
+ readonly internalType: "uint16";
125
+ readonly type: "uint16";
126
+ }, {
127
+ readonly name: "liquidationPremium";
128
+ readonly internalType: "uint16";
129
+ readonly type: "uint16";
130
+ }, {
131
+ readonly name: "feeLiquidationExpired";
132
+ readonly internalType: "uint16";
133
+ readonly type: "uint16";
134
+ }, {
135
+ readonly name: "liquidationPremiumExpired";
136
+ readonly internalType: "uint16";
137
+ readonly type: "uint16";
138
+ }];
139
+ readonly name: "setFees";
140
+ readonly outputs: readonly [];
141
+ readonly stateMutability: "nonpayable";
142
+ }, {
143
+ readonly type: "function";
144
+ readonly inputs: readonly [{
145
+ readonly name: "newMaxDebtLimitPerBlockMultiplier";
146
+ readonly internalType: "uint8";
147
+ readonly type: "uint8";
148
+ }];
149
+ readonly name: "setMaxDebtPerBlockMultiplier";
150
+ readonly outputs: readonly [];
151
+ readonly stateMutability: "nonpayable";
152
+ }, {
153
+ readonly type: "function";
154
+ readonly inputs: readonly [];
155
+ readonly name: "unpause";
156
+ readonly outputs: readonly [];
157
+ readonly stateMutability: "nonpayable";
158
+ }, {
159
+ readonly type: "function";
160
+ readonly inputs: readonly [];
161
+ readonly name: "upgradeCreditConfigurator";
162
+ readonly outputs: readonly [];
163
+ readonly stateMutability: "nonpayable";
164
+ }, {
165
+ readonly type: "function";
166
+ readonly inputs: readonly [{
167
+ readonly name: "params";
168
+ readonly internalType: "struct CreditFacadeParams";
169
+ readonly type: "tuple";
170
+ readonly components: readonly [{
171
+ readonly name: "degenNFT";
172
+ readonly internalType: "address";
173
+ readonly type: "address";
174
+ }, {
175
+ readonly name: "expirable";
176
+ readonly internalType: "bool";
177
+ readonly type: "bool";
178
+ }, {
179
+ readonly name: "migrateBotList";
180
+ readonly internalType: "bool";
181
+ readonly type: "bool";
182
+ }];
183
+ }];
184
+ readonly name: "upgradeCreditFacade";
185
+ readonly outputs: readonly [];
186
+ readonly stateMutability: "nonpayable";
187
+ }];
@@ -0,0 +1,65 @@
1
+ export declare const iPoolConfigureActionsAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly inputs: readonly [];
4
+ readonly name: "pause";
5
+ readonly outputs: readonly [];
6
+ readonly stateMutability: "nonpayable";
7
+ }, {
8
+ readonly type: "function";
9
+ readonly inputs: readonly [{
10
+ readonly name: "creditManager";
11
+ readonly internalType: "address";
12
+ readonly type: "address";
13
+ }, {
14
+ readonly name: "limit";
15
+ readonly internalType: "uint256";
16
+ readonly type: "uint256";
17
+ }];
18
+ readonly name: "setCreditManagerDebtLimit";
19
+ readonly outputs: readonly [];
20
+ readonly stateMutability: "nonpayable";
21
+ }, {
22
+ readonly type: "function";
23
+ readonly inputs: readonly [{
24
+ readonly name: "token";
25
+ readonly internalType: "address";
26
+ readonly type: "address";
27
+ }, {
28
+ readonly name: "limit";
29
+ readonly internalType: "uint96";
30
+ readonly type: "uint96";
31
+ }];
32
+ readonly name: "setTokenLimit";
33
+ readonly outputs: readonly [];
34
+ readonly stateMutability: "nonpayable";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly inputs: readonly [{
38
+ readonly name: "token";
39
+ readonly internalType: "address";
40
+ readonly type: "address";
41
+ }, {
42
+ readonly name: "fee";
43
+ readonly internalType: "uint16";
44
+ readonly type: "uint16";
45
+ }];
46
+ readonly name: "setTokenQuotaIncreaseFee";
47
+ readonly outputs: readonly [];
48
+ readonly stateMutability: "nonpayable";
49
+ }, {
50
+ readonly type: "function";
51
+ readonly inputs: readonly [{
52
+ readonly name: "limit";
53
+ readonly internalType: "uint256";
54
+ readonly type: "uint256";
55
+ }];
56
+ readonly name: "setTotalDebtLimit";
57
+ readonly outputs: readonly [];
58
+ readonly stateMutability: "nonpayable";
59
+ }, {
60
+ readonly type: "function";
61
+ readonly inputs: readonly [];
62
+ readonly name: "unpause";
63
+ readonly outputs: readonly [];
64
+ readonly stateMutability: "nonpayable";
65
+ }];
@@ -0,0 +1,29 @@
1
+ export declare const iPriceOracleConfigureActionsAbi: readonly [{
2
+ readonly type: "function";
3
+ readonly inputs: readonly [{
4
+ readonly name: "token";
5
+ readonly internalType: "address";
6
+ readonly type: "address";
7
+ }, {
8
+ readonly name: "priceFeed";
9
+ readonly internalType: "address";
10
+ readonly type: "address";
11
+ }];
12
+ readonly name: "setPriceFeed";
13
+ readonly outputs: readonly [];
14
+ readonly stateMutability: "nonpayable";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly inputs: readonly [{
18
+ readonly name: "token";
19
+ readonly internalType: "address";
20
+ readonly type: "address";
21
+ }, {
22
+ readonly name: "priceFeed";
23
+ readonly internalType: "address";
24
+ readonly type: "address";
25
+ }];
26
+ readonly name: "setReservePriceFeed";
27
+ readonly outputs: readonly [];
28
+ readonly stateMutability: "nonpayable";
29
+ }];