@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
@@ -0,0 +1,750 @@
1
+ const creditSuiteCompressorAbi = [
2
+ {
3
+ type: "constructor",
4
+ inputs: [
5
+ { name: "addressProvider_", type: "address", internalType: "address" }
6
+ ],
7
+ stateMutability: "nonpayable"
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "addressProvider",
12
+ inputs: [],
13
+ outputs: [{ name: "", type: "address", internalType: "address" }],
14
+ stateMutability: "view"
15
+ },
16
+ {
17
+ type: "function",
18
+ name: "contractType",
19
+ inputs: [],
20
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
21
+ stateMutability: "view"
22
+ },
23
+ {
24
+ type: "function",
25
+ name: "getAccountFactoryState",
26
+ inputs: [
27
+ { name: "accountFactory", type: "address", internalType: "address" }
28
+ ],
29
+ outputs: [
30
+ {
31
+ name: "",
32
+ type: "tuple",
33
+ internalType: "struct BaseState",
34
+ components: [
35
+ {
36
+ name: "baseParams",
37
+ type: "tuple",
38
+ internalType: "struct BaseParams",
39
+ components: [
40
+ { name: "addr", type: "address", internalType: "address" },
41
+ { name: "version", type: "uint256", internalType: "uint256" },
42
+ {
43
+ name: "contractType",
44
+ type: "bytes32",
45
+ internalType: "bytes32"
46
+ },
47
+ {
48
+ name: "serializedParams",
49
+ type: "bytes",
50
+ internalType: "bytes"
51
+ }
52
+ ]
53
+ }
54
+ ]
55
+ }
56
+ ],
57
+ stateMutability: "view"
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "getAdapters",
62
+ inputs: [
63
+ { name: "creditManager", type: "address", internalType: "address" }
64
+ ],
65
+ outputs: [
66
+ {
67
+ name: "adapters",
68
+ type: "tuple[]",
69
+ internalType: "struct AdapterState[]",
70
+ components: [
71
+ {
72
+ name: "baseParams",
73
+ type: "tuple",
74
+ internalType: "struct BaseParams",
75
+ components: [
76
+ { name: "addr", type: "address", internalType: "address" },
77
+ { name: "version", type: "uint256", internalType: "uint256" },
78
+ {
79
+ name: "contractType",
80
+ type: "bytes32",
81
+ internalType: "bytes32"
82
+ },
83
+ {
84
+ name: "serializedParams",
85
+ type: "bytes",
86
+ internalType: "bytes"
87
+ }
88
+ ]
89
+ },
90
+ { name: "targetContract", type: "address", internalType: "address" }
91
+ ]
92
+ }
93
+ ],
94
+ stateMutability: "view"
95
+ },
96
+ {
97
+ type: "function",
98
+ name: "getCreditConfiguratorState",
99
+ inputs: [
100
+ { name: "creditConfigurator", type: "address", internalType: "address" }
101
+ ],
102
+ outputs: [
103
+ {
104
+ name: "",
105
+ type: "tuple",
106
+ internalType: "struct BaseState",
107
+ components: [
108
+ {
109
+ name: "baseParams",
110
+ type: "tuple",
111
+ internalType: "struct BaseParams",
112
+ components: [
113
+ { name: "addr", type: "address", internalType: "address" },
114
+ { name: "version", type: "uint256", internalType: "uint256" },
115
+ {
116
+ name: "contractType",
117
+ type: "bytes32",
118
+ internalType: "bytes32"
119
+ },
120
+ {
121
+ name: "serializedParams",
122
+ type: "bytes",
123
+ internalType: "bytes"
124
+ }
125
+ ]
126
+ }
127
+ ]
128
+ }
129
+ ],
130
+ stateMutability: "view"
131
+ },
132
+ {
133
+ type: "function",
134
+ name: "getCreditFacadeState",
135
+ inputs: [
136
+ { name: "creditFacade", type: "address", internalType: "address" }
137
+ ],
138
+ outputs: [
139
+ {
140
+ name: "result",
141
+ type: "tuple",
142
+ internalType: "struct CreditFacadeState",
143
+ components: [
144
+ {
145
+ name: "baseParams",
146
+ type: "tuple",
147
+ internalType: "struct BaseParams",
148
+ components: [
149
+ { name: "addr", type: "address", internalType: "address" },
150
+ { name: "version", type: "uint256", internalType: "uint256" },
151
+ {
152
+ name: "contractType",
153
+ type: "bytes32",
154
+ internalType: "bytes32"
155
+ },
156
+ {
157
+ name: "serializedParams",
158
+ type: "bytes",
159
+ internalType: "bytes"
160
+ }
161
+ ]
162
+ },
163
+ { name: "degenNFT", type: "address", internalType: "address" },
164
+ { name: "botList", type: "address", internalType: "address" },
165
+ { name: "expirable", type: "bool", internalType: "bool" },
166
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
167
+ {
168
+ name: "maxDebtPerBlockMultiplier",
169
+ type: "uint8",
170
+ internalType: "uint8"
171
+ },
172
+ { name: "minDebt", type: "uint256", internalType: "uint256" },
173
+ { name: "maxDebt", type: "uint256", internalType: "uint256" },
174
+ {
175
+ name: "forbiddenTokensMask",
176
+ type: "uint256",
177
+ internalType: "uint256"
178
+ },
179
+ { name: "isPaused", type: "bool", internalType: "bool" }
180
+ ]
181
+ }
182
+ ],
183
+ stateMutability: "view"
184
+ },
185
+ {
186
+ type: "function",
187
+ name: "getCreditManagerState",
188
+ inputs: [
189
+ { name: "creditManager", type: "address", internalType: "address" }
190
+ ],
191
+ outputs: [
192
+ {
193
+ name: "result",
194
+ type: "tuple",
195
+ internalType: "struct CreditManagerState",
196
+ components: [
197
+ {
198
+ name: "baseParams",
199
+ type: "tuple",
200
+ internalType: "struct BaseParams",
201
+ components: [
202
+ { name: "addr", type: "address", internalType: "address" },
203
+ { name: "version", type: "uint256", internalType: "uint256" },
204
+ {
205
+ name: "contractType",
206
+ type: "bytes32",
207
+ internalType: "bytes32"
208
+ },
209
+ {
210
+ name: "serializedParams",
211
+ type: "bytes",
212
+ internalType: "bytes"
213
+ }
214
+ ]
215
+ },
216
+ { name: "name", type: "string", internalType: "string" },
217
+ { name: "accountFactory", type: "address", internalType: "address" },
218
+ { name: "underlying", type: "address", internalType: "address" },
219
+ { name: "pool", type: "address", internalType: "address" },
220
+ { name: "creditFacade", type: "address", internalType: "address" },
221
+ {
222
+ name: "creditConfigurator",
223
+ type: "address",
224
+ internalType: "address"
225
+ },
226
+ { name: "maxEnabledTokens", type: "uint8", internalType: "uint8" },
227
+ {
228
+ name: "collateralTokens",
229
+ type: "tuple[]",
230
+ internalType: "struct CollateralToken[]",
231
+ components: [
232
+ { name: "token", type: "address", internalType: "address" },
233
+ {
234
+ name: "liquidationThreshold",
235
+ type: "uint16",
236
+ internalType: "uint16"
237
+ }
238
+ ]
239
+ },
240
+ { name: "feeInterest", type: "uint16", internalType: "uint16" },
241
+ { name: "feeLiquidation", type: "uint16", internalType: "uint16" },
242
+ {
243
+ name: "liquidationDiscount",
244
+ type: "uint16",
245
+ internalType: "uint16"
246
+ },
247
+ {
248
+ name: "feeLiquidationExpired",
249
+ type: "uint16",
250
+ internalType: "uint16"
251
+ },
252
+ {
253
+ name: "liquidationDiscountExpired",
254
+ type: "uint16",
255
+ internalType: "uint16"
256
+ }
257
+ ]
258
+ }
259
+ ],
260
+ stateMutability: "view"
261
+ },
262
+ {
263
+ type: "function",
264
+ name: "getCreditSuiteData",
265
+ inputs: [
266
+ { name: "creditManager", type: "address", internalType: "address" }
267
+ ],
268
+ outputs: [
269
+ {
270
+ name: "result",
271
+ type: "tuple",
272
+ internalType: "struct CreditSuiteData",
273
+ components: [
274
+ {
275
+ name: "creditFacade",
276
+ type: "tuple",
277
+ internalType: "struct CreditFacadeState",
278
+ components: [
279
+ {
280
+ name: "baseParams",
281
+ type: "tuple",
282
+ internalType: "struct BaseParams",
283
+ components: [
284
+ { name: "addr", type: "address", internalType: "address" },
285
+ { name: "version", type: "uint256", internalType: "uint256" },
286
+ {
287
+ name: "contractType",
288
+ type: "bytes32",
289
+ internalType: "bytes32"
290
+ },
291
+ {
292
+ name: "serializedParams",
293
+ type: "bytes",
294
+ internalType: "bytes"
295
+ }
296
+ ]
297
+ },
298
+ { name: "degenNFT", type: "address", internalType: "address" },
299
+ { name: "botList", type: "address", internalType: "address" },
300
+ { name: "expirable", type: "bool", internalType: "bool" },
301
+ {
302
+ name: "expirationDate",
303
+ type: "uint40",
304
+ internalType: "uint40"
305
+ },
306
+ {
307
+ name: "maxDebtPerBlockMultiplier",
308
+ type: "uint8",
309
+ internalType: "uint8"
310
+ },
311
+ { name: "minDebt", type: "uint256", internalType: "uint256" },
312
+ { name: "maxDebt", type: "uint256", internalType: "uint256" },
313
+ {
314
+ name: "forbiddenTokensMask",
315
+ type: "uint256",
316
+ internalType: "uint256"
317
+ },
318
+ { name: "isPaused", type: "bool", internalType: "bool" }
319
+ ]
320
+ },
321
+ {
322
+ name: "creditManager",
323
+ type: "tuple",
324
+ internalType: "struct CreditManagerState",
325
+ components: [
326
+ {
327
+ name: "baseParams",
328
+ type: "tuple",
329
+ internalType: "struct BaseParams",
330
+ components: [
331
+ { name: "addr", type: "address", internalType: "address" },
332
+ { name: "version", type: "uint256", internalType: "uint256" },
333
+ {
334
+ name: "contractType",
335
+ type: "bytes32",
336
+ internalType: "bytes32"
337
+ },
338
+ {
339
+ name: "serializedParams",
340
+ type: "bytes",
341
+ internalType: "bytes"
342
+ }
343
+ ]
344
+ },
345
+ { name: "name", type: "string", internalType: "string" },
346
+ {
347
+ name: "accountFactory",
348
+ type: "address",
349
+ internalType: "address"
350
+ },
351
+ { name: "underlying", type: "address", internalType: "address" },
352
+ { name: "pool", type: "address", internalType: "address" },
353
+ {
354
+ name: "creditFacade",
355
+ type: "address",
356
+ internalType: "address"
357
+ },
358
+ {
359
+ name: "creditConfigurator",
360
+ type: "address",
361
+ internalType: "address"
362
+ },
363
+ {
364
+ name: "maxEnabledTokens",
365
+ type: "uint8",
366
+ internalType: "uint8"
367
+ },
368
+ {
369
+ name: "collateralTokens",
370
+ type: "tuple[]",
371
+ internalType: "struct CollateralToken[]",
372
+ components: [
373
+ { name: "token", type: "address", internalType: "address" },
374
+ {
375
+ name: "liquidationThreshold",
376
+ type: "uint16",
377
+ internalType: "uint16"
378
+ }
379
+ ]
380
+ },
381
+ { name: "feeInterest", type: "uint16", internalType: "uint16" },
382
+ {
383
+ name: "feeLiquidation",
384
+ type: "uint16",
385
+ internalType: "uint16"
386
+ },
387
+ {
388
+ name: "liquidationDiscount",
389
+ type: "uint16",
390
+ internalType: "uint16"
391
+ },
392
+ {
393
+ name: "feeLiquidationExpired",
394
+ type: "uint16",
395
+ internalType: "uint16"
396
+ },
397
+ {
398
+ name: "liquidationDiscountExpired",
399
+ type: "uint16",
400
+ internalType: "uint16"
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ name: "creditConfigurator",
406
+ type: "tuple",
407
+ internalType: "struct BaseState",
408
+ components: [
409
+ {
410
+ name: "baseParams",
411
+ type: "tuple",
412
+ internalType: "struct BaseParams",
413
+ components: [
414
+ { name: "addr", type: "address", internalType: "address" },
415
+ { name: "version", type: "uint256", internalType: "uint256" },
416
+ {
417
+ name: "contractType",
418
+ type: "bytes32",
419
+ internalType: "bytes32"
420
+ },
421
+ {
422
+ name: "serializedParams",
423
+ type: "bytes",
424
+ internalType: "bytes"
425
+ }
426
+ ]
427
+ }
428
+ ]
429
+ },
430
+ {
431
+ name: "accountFactory",
432
+ type: "tuple",
433
+ internalType: "struct BaseState",
434
+ components: [
435
+ {
436
+ name: "baseParams",
437
+ type: "tuple",
438
+ internalType: "struct BaseParams",
439
+ components: [
440
+ { name: "addr", type: "address", internalType: "address" },
441
+ { name: "version", type: "uint256", internalType: "uint256" },
442
+ {
443
+ name: "contractType",
444
+ type: "bytes32",
445
+ internalType: "bytes32"
446
+ },
447
+ {
448
+ name: "serializedParams",
449
+ type: "bytes",
450
+ internalType: "bytes"
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ name: "adapters",
458
+ type: "tuple[]",
459
+ internalType: "struct AdapterState[]",
460
+ components: [
461
+ {
462
+ name: "baseParams",
463
+ type: "tuple",
464
+ internalType: "struct BaseParams",
465
+ components: [
466
+ { name: "addr", type: "address", internalType: "address" },
467
+ { name: "version", type: "uint256", internalType: "uint256" },
468
+ {
469
+ name: "contractType",
470
+ type: "bytes32",
471
+ internalType: "bytes32"
472
+ },
473
+ {
474
+ name: "serializedParams",
475
+ type: "bytes",
476
+ internalType: "bytes"
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ name: "targetContract",
482
+ type: "address",
483
+ internalType: "address"
484
+ }
485
+ ]
486
+ }
487
+ ]
488
+ }
489
+ ],
490
+ stateMutability: "view"
491
+ },
492
+ {
493
+ type: "function",
494
+ name: "getCreditSuites",
495
+ inputs: [
496
+ {
497
+ name: "filter",
498
+ type: "tuple",
499
+ internalType: "struct CreditManagerFilter",
500
+ components: [
501
+ {
502
+ name: "configurators",
503
+ type: "address[]",
504
+ internalType: "address[]"
505
+ },
506
+ {
507
+ name: "creditManagers",
508
+ type: "address[]",
509
+ internalType: "address[]"
510
+ },
511
+ { name: "pools", type: "address[]", internalType: "address[]" },
512
+ { name: "underlying", type: "address", internalType: "address" }
513
+ ]
514
+ }
515
+ ],
516
+ outputs: [
517
+ {
518
+ name: "result",
519
+ type: "tuple[]",
520
+ internalType: "struct CreditSuiteData[]",
521
+ components: [
522
+ {
523
+ name: "creditFacade",
524
+ type: "tuple",
525
+ internalType: "struct CreditFacadeState",
526
+ components: [
527
+ {
528
+ name: "baseParams",
529
+ type: "tuple",
530
+ internalType: "struct BaseParams",
531
+ components: [
532
+ { name: "addr", type: "address", internalType: "address" },
533
+ { name: "version", type: "uint256", internalType: "uint256" },
534
+ {
535
+ name: "contractType",
536
+ type: "bytes32",
537
+ internalType: "bytes32"
538
+ },
539
+ {
540
+ name: "serializedParams",
541
+ type: "bytes",
542
+ internalType: "bytes"
543
+ }
544
+ ]
545
+ },
546
+ { name: "degenNFT", type: "address", internalType: "address" },
547
+ { name: "botList", type: "address", internalType: "address" },
548
+ { name: "expirable", type: "bool", internalType: "bool" },
549
+ {
550
+ name: "expirationDate",
551
+ type: "uint40",
552
+ internalType: "uint40"
553
+ },
554
+ {
555
+ name: "maxDebtPerBlockMultiplier",
556
+ type: "uint8",
557
+ internalType: "uint8"
558
+ },
559
+ { name: "minDebt", type: "uint256", internalType: "uint256" },
560
+ { name: "maxDebt", type: "uint256", internalType: "uint256" },
561
+ {
562
+ name: "forbiddenTokensMask",
563
+ type: "uint256",
564
+ internalType: "uint256"
565
+ },
566
+ { name: "isPaused", type: "bool", internalType: "bool" }
567
+ ]
568
+ },
569
+ {
570
+ name: "creditManager",
571
+ type: "tuple",
572
+ internalType: "struct CreditManagerState",
573
+ components: [
574
+ {
575
+ name: "baseParams",
576
+ type: "tuple",
577
+ internalType: "struct BaseParams",
578
+ components: [
579
+ { name: "addr", type: "address", internalType: "address" },
580
+ { name: "version", type: "uint256", internalType: "uint256" },
581
+ {
582
+ name: "contractType",
583
+ type: "bytes32",
584
+ internalType: "bytes32"
585
+ },
586
+ {
587
+ name: "serializedParams",
588
+ type: "bytes",
589
+ internalType: "bytes"
590
+ }
591
+ ]
592
+ },
593
+ { name: "name", type: "string", internalType: "string" },
594
+ {
595
+ name: "accountFactory",
596
+ type: "address",
597
+ internalType: "address"
598
+ },
599
+ { name: "underlying", type: "address", internalType: "address" },
600
+ { name: "pool", type: "address", internalType: "address" },
601
+ {
602
+ name: "creditFacade",
603
+ type: "address",
604
+ internalType: "address"
605
+ },
606
+ {
607
+ name: "creditConfigurator",
608
+ type: "address",
609
+ internalType: "address"
610
+ },
611
+ {
612
+ name: "maxEnabledTokens",
613
+ type: "uint8",
614
+ internalType: "uint8"
615
+ },
616
+ {
617
+ name: "collateralTokens",
618
+ type: "tuple[]",
619
+ internalType: "struct CollateralToken[]",
620
+ components: [
621
+ { name: "token", type: "address", internalType: "address" },
622
+ {
623
+ name: "liquidationThreshold",
624
+ type: "uint16",
625
+ internalType: "uint16"
626
+ }
627
+ ]
628
+ },
629
+ { name: "feeInterest", type: "uint16", internalType: "uint16" },
630
+ {
631
+ name: "feeLiquidation",
632
+ type: "uint16",
633
+ internalType: "uint16"
634
+ },
635
+ {
636
+ name: "liquidationDiscount",
637
+ type: "uint16",
638
+ internalType: "uint16"
639
+ },
640
+ {
641
+ name: "feeLiquidationExpired",
642
+ type: "uint16",
643
+ internalType: "uint16"
644
+ },
645
+ {
646
+ name: "liquidationDiscountExpired",
647
+ type: "uint16",
648
+ internalType: "uint16"
649
+ }
650
+ ]
651
+ },
652
+ {
653
+ name: "creditConfigurator",
654
+ type: "tuple",
655
+ internalType: "struct BaseState",
656
+ components: [
657
+ {
658
+ name: "baseParams",
659
+ type: "tuple",
660
+ internalType: "struct BaseParams",
661
+ components: [
662
+ { name: "addr", type: "address", internalType: "address" },
663
+ { name: "version", type: "uint256", internalType: "uint256" },
664
+ {
665
+ name: "contractType",
666
+ type: "bytes32",
667
+ internalType: "bytes32"
668
+ },
669
+ {
670
+ name: "serializedParams",
671
+ type: "bytes",
672
+ internalType: "bytes"
673
+ }
674
+ ]
675
+ }
676
+ ]
677
+ },
678
+ {
679
+ name: "accountFactory",
680
+ type: "tuple",
681
+ internalType: "struct BaseState",
682
+ components: [
683
+ {
684
+ name: "baseParams",
685
+ type: "tuple",
686
+ internalType: "struct BaseParams",
687
+ components: [
688
+ { name: "addr", type: "address", internalType: "address" },
689
+ { name: "version", type: "uint256", internalType: "uint256" },
690
+ {
691
+ name: "contractType",
692
+ type: "bytes32",
693
+ internalType: "bytes32"
694
+ },
695
+ {
696
+ name: "serializedParams",
697
+ type: "bytes",
698
+ internalType: "bytes"
699
+ }
700
+ ]
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ name: "adapters",
706
+ type: "tuple[]",
707
+ internalType: "struct AdapterState[]",
708
+ components: [
709
+ {
710
+ name: "baseParams",
711
+ type: "tuple",
712
+ internalType: "struct BaseParams",
713
+ components: [
714
+ { name: "addr", type: "address", internalType: "address" },
715
+ { name: "version", type: "uint256", internalType: "uint256" },
716
+ {
717
+ name: "contractType",
718
+ type: "bytes32",
719
+ internalType: "bytes32"
720
+ },
721
+ {
722
+ name: "serializedParams",
723
+ type: "bytes",
724
+ internalType: "bytes"
725
+ }
726
+ ]
727
+ },
728
+ {
729
+ name: "targetContract",
730
+ type: "address",
731
+ internalType: "address"
732
+ }
733
+ ]
734
+ }
735
+ ]
736
+ }
737
+ ],
738
+ stateMutability: "view"
739
+ },
740
+ {
741
+ type: "function",
742
+ name: "version",
743
+ inputs: [],
744
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
745
+ stateMutability: "view"
746
+ }
747
+ ];
748
+ export {
749
+ creditSuiteCompressorAbi
750
+ };