@gearbox-protocol/sdk 9.12.14 → 9.13.1

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 (228) 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/utils/viem/simulateWithPriceUpdates.js +3 -2
  78. package/dist/esm/abi/310/configure/creditSuiteParams.js +104 -0
  79. package/dist/esm/abi/310/configure/iCreditConfigureActions.js +157 -0
  80. package/dist/esm/abi/310/configure/iPoolConfigureActions.js +56 -0
  81. package/dist/esm/abi/310/configure/iPriceOracleConfigureActions.js +25 -0
  82. package/dist/esm/abi/310/crossChainMultisig.js +516 -0
  83. package/dist/esm/abi/310/iBytecodeRepository.js +873 -0
  84. package/dist/esm/abi/310/iMarketConfiguratorFactory.js +165 -0
  85. package/dist/esm/abi/310/iPriceFeedStore.js +393 -0
  86. package/dist/esm/abi/310/iTreasurySplitter.js +12 -0
  87. package/dist/esm/abi/310/instanceManager.js +250 -0
  88. package/dist/esm/abi/compressors/creditAccountCompressor.js +432 -0
  89. package/dist/esm/abi/compressors/creditSuiteCompressor.js +750 -0
  90. package/dist/esm/abi/compressors/defillamaCompressor.js +159 -0
  91. package/dist/esm/abi/compressors/gaugeCompressor.js +160 -0
  92. package/dist/esm/abi/compressors/marketCompressor.js +2453 -0
  93. package/dist/esm/abi/compressors/peripheryCompressor.js +178 -0
  94. package/dist/esm/abi/compressors/priceFeedCompressor.js +557 -0
  95. package/dist/esm/abi/compressors/rewardsCompressor.js +58 -0
  96. package/dist/esm/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.js +163 -0
  97. package/dist/esm/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.js +163 -0
  98. package/dist/esm/abi/compressors/subcompressors/midasWithdrawalSubcompressor.js +163 -0
  99. package/dist/esm/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.js +163 -0
  100. package/dist/esm/abi/compressors/tokenCompressor.js +71 -0
  101. package/dist/esm/abi/compressors/withdrawalCompressor.js +248 -0
  102. package/dist/esm/abi/governance/batchesChain.js +44 -0
  103. package/dist/esm/abi/governance/governor.js +448 -0
  104. package/dist/esm/abi/governance/iTimeLock.js +233 -0
  105. package/dist/esm/abi/router/balancerV2Worker.js +706 -0
  106. package/dist/esm/abi/router/balancerV3Worker.js +710 -0
  107. package/dist/esm/abi/router/camelotV3Worker.js +534 -0
  108. package/dist/esm/abi/router/convexWorker.js +517 -0
  109. package/dist/esm/abi/router/curveWorker.js +694 -0
  110. package/dist/esm/abi/router/daiUsdsWorker.js +517 -0
  111. package/dist/esm/abi/router/equalizerRouterWorker.js +517 -0
  112. package/dist/esm/abi/router/erc4626Worker.js +548 -0
  113. package/dist/esm/abi/router/fluidDexWorker.js +527 -0
  114. package/dist/esm/abi/router/gearboxRouter.js +627 -0
  115. package/dist/esm/abi/router/infraredVaultWorker.js +517 -0
  116. package/dist/esm/abi/router/kodiakWorker.js +708 -0
  117. package/dist/esm/abi/router/lidoWorker.js +517 -0
  118. package/dist/esm/abi/router/mellow4626Worker.js +517 -0
  119. package/dist/esm/abi/router/mellowDVVWorker.js +517 -0
  120. package/dist/esm/abi/router/mellowVaultWorker.js +527 -0
  121. package/dist/esm/abi/router/pendleRouterWorker.js +543 -0
  122. package/dist/esm/abi/router/routingManager.js +373 -0
  123. package/dist/esm/abi/router/stakingRewardsWorker.js +517 -0
  124. package/dist/esm/abi/router/traderJoeWorker.js +517 -0
  125. package/dist/esm/abi/router/uniswapV2Worker.js +517 -0
  126. package/dist/esm/abi/router/uniswapV3Worker.js +544 -0
  127. package/dist/esm/abi/router/upshiftWorker.js +517 -0
  128. package/dist/esm/abi/router/velodromeV2Worker.js +517 -0
  129. package/dist/esm/abi/router/wstETHWorker.js +517 -0
  130. package/dist/esm/abi/router/yearnV2Worker.js +517 -0
  131. package/dist/esm/dev/migrateFaucet.js +1 -1
  132. package/dist/esm/plugins/accounts-counter/AccountsCounterPlugin.js +3 -3
  133. package/dist/esm/plugins/bots/BotsPlugin.js +2 -2
  134. package/dist/esm/plugins/pools-history/Pools7DAgoPlugin.js +2 -2
  135. package/dist/esm/plugins/zappers/ZappersPlugin.js +2 -2
  136. package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +10 -12
  137. package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +1 -1
  138. package/dist/esm/sdk/chain/detectNetwork.js +1 -1
  139. package/dist/esm/sdk/core/address-provider/AddressProviderV310Contract.js +1 -1
  140. package/dist/esm/sdk/gauges/GaugeStakingService.js +2 -2
  141. package/dist/esm/sdk/market/MarketConfiguratorContract.js +1 -1
  142. package/dist/esm/sdk/market/MarketRegister.js +3 -3
  143. package/dist/esm/sdk/market/credit/CreditConfiguratorV310Contract.js +1 -1
  144. package/dist/esm/sdk/market/credit/CreditFacadeV310Contract.js +2 -2
  145. package/dist/esm/sdk/market/credit/CreditManagerV310Contract.js +1 -1
  146. package/dist/esm/sdk/market/oracle/PriceOracleBaseContract.js +2 -2
  147. package/dist/esm/sdk/market/oracle/PriceOracleV310Contract.js +1 -1
  148. package/dist/esm/sdk/market/pool/PoolQuotaKeeperV310Contract.js +1 -1
  149. package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
  150. package/dist/esm/sdk/market/pool/TumblerContract.js +1 -1
  151. package/dist/esm/sdk/market/pricefeeds/PriceFeedsRegister.js +3 -3
  152. package/dist/esm/sdk/router/RouterV310Contract.js +2 -2
  153. package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +2 -1
  154. package/dist/types/abi/310/configure/creditSuiteParams.d.ts +92 -0
  155. package/dist/types/abi/310/configure/iCreditConfigureActions.d.ts +187 -0
  156. package/dist/types/abi/310/configure/iPoolConfigureActions.d.ts +65 -0
  157. package/dist/types/abi/310/configure/iPriceOracleConfigureActions.d.ts +29 -0
  158. package/dist/types/abi/310/crossChainMultisig.d.ts +709 -0
  159. package/dist/types/abi/310/iBytecodeRepository.d.ts +1139 -0
  160. package/dist/types/abi/310/iMarketConfiguratorFactory.d.ts +218 -0
  161. package/dist/types/abi/310/iPriceFeedStore.d.ts +526 -0
  162. package/dist/types/abi/310/iTreasurySplitter.d.ts +11 -0
  163. package/dist/types/abi/{iPriceFeedStore.d.ts → 310/instanceManager.d.ts} +183 -143
  164. package/dist/types/abi/compressors/creditAccountCompressor.d.ts +828 -0
  165. package/dist/types/abi/compressors/creditSuiteCompressor.d.ts +829 -0
  166. package/dist/types/abi/compressors/defillamaCompressor.d.ts +201 -0
  167. package/dist/types/abi/compressors/gaugeCompressor.d.ts +228 -0
  168. package/dist/types/abi/{compressors.d.ts → compressors/marketCompressor.d.ts} +1322 -4121
  169. package/dist/types/abi/compressors/peripheryCompressor.d.ts +217 -0
  170. package/dist/types/abi/compressors/priceFeedCompressor.d.ts +684 -0
  171. package/dist/types/abi/compressors/rewardsCompressor.d.ts +70 -0
  172. package/dist/types/abi/compressors/subcompressors/infinifiWithdrawalSubcompressor.d.ts +220 -0
  173. package/dist/types/abi/compressors/subcompressors/mellowWithdrawalSubcompressor.d.ts +220 -0
  174. package/dist/types/abi/compressors/subcompressors/midasWithdrawalSubcompressor.d.ts +220 -0
  175. package/dist/types/abi/compressors/subcompressors/upshiftWithdrawalSubcompressor.d.ts +220 -0
  176. package/dist/types/abi/compressors/tokenCompressor.d.ts +101 -0
  177. package/dist/types/abi/{routerV310.d.ts → compressors/withdrawalCompressor.d.ts} +175 -253
  178. package/dist/types/abi/governance/batchesChain.d.ts +31 -0
  179. package/dist/types/abi/governance/governor.d.ts +584 -0
  180. package/dist/types/abi/governance/iTimeLock.d.ts +328 -0
  181. package/dist/types/abi/router/balancerV2Worker.d.ts +961 -0
  182. package/dist/types/abi/router/balancerV3Worker.d.ts +961 -0
  183. package/dist/types/abi/router/camelotV3Worker.d.ts +754 -0
  184. package/dist/types/abi/router/convexWorker.d.ts +726 -0
  185. package/dist/types/abi/router/curveWorker.d.ts +947 -0
  186. package/dist/types/abi/router/daiUsdsWorker.d.ts +726 -0
  187. package/dist/types/abi/router/equalizerRouterWorker.d.ts +726 -0
  188. package/dist/types/abi/router/erc4626Worker.d.ts +769 -0
  189. package/dist/types/abi/router/fluidDexWorker.d.ts +740 -0
  190. package/dist/types/abi/router/gearboxRouter.d.ts +881 -0
  191. package/dist/types/abi/router/infraredVaultWorker.d.ts +726 -0
  192. package/dist/types/abi/router/kodiakWorker.d.ts +967 -0
  193. package/dist/types/abi/router/lidoWorker.d.ts +726 -0
  194. package/dist/types/abi/router/mellow4626Worker.d.ts +726 -0
  195. package/dist/types/abi/router/mellowDVVWorker.d.ts +726 -0
  196. package/dist/types/abi/router/mellowVaultWorker.d.ts +740 -0
  197. package/dist/types/abi/router/pendleRouterWorker.d.ts +760 -0
  198. package/dist/types/abi/router/routingManager.d.ts +494 -0
  199. package/dist/types/abi/router/stakingRewardsWorker.d.ts +726 -0
  200. package/dist/types/abi/router/traderJoeWorker.d.ts +726 -0
  201. package/dist/types/abi/router/uniswapV2Worker.d.ts +726 -0
  202. package/dist/types/abi/router/uniswapV3Worker.d.ts +774 -0
  203. package/dist/types/abi/router/upshiftWorker.d.ts +726 -0
  204. package/dist/types/abi/router/velodromeV2Worker.d.ts +726 -0
  205. package/dist/types/abi/router/wstETHWorker.d.ts +726 -0
  206. package/dist/types/abi/router/yearnV2Worker.d.ts +726 -0
  207. package/dist/types/plugins/bots/types.d.ts +2 -2
  208. package/dist/types/plugins/zappers/types.d.ts +2 -2
  209. package/dist/types/sdk/accounts/types.d.ts +2 -2
  210. package/dist/types/sdk/base/types.d.ts +11 -7
  211. package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
  212. package/dist/types/sdk/market/oracle/types.d.ts +3 -3
  213. package/dist/types/sdk/router/RouterV310Contract.d.ts +481 -1
  214. package/dist/types/sdk/sdk-legacy/payload/pool.d.ts +2 -2
  215. package/package.json +6 -6
  216. package/dist/cjs/abi/compressors.js +0 -4555
  217. package/dist/cjs/abi/iPriceFeedStore.js +0 -254
  218. package/dist/cjs/abi/index.js +0 -46
  219. package/dist/cjs/abi/package.json +0 -1
  220. package/dist/cjs/abi/routerV310.js +0 -276
  221. package/dist/esm/abi/compressors.js +0 -4524
  222. package/dist/esm/abi/iPriceFeedStore.js +0 -230
  223. package/dist/esm/abi/index.js +0 -13
  224. package/dist/esm/abi/package.json +0 -1
  225. package/dist/esm/abi/routerV310.js +0 -252
  226. package/dist/types/abi/index.d.ts +0 -13
  227. /package/dist/esm/abi/{v310.js → 310/generated.js} +0 -0
  228. /package/dist/types/abi/{v310.d.ts → 310/generated.d.ts} +0 -0
@@ -0,0 +1,250 @@
1
+ const instanceManagerAbi = [
2
+ {
3
+ type: "constructor",
4
+ inputs: [{ name: "owner_", internalType: "address", type: "address" }],
5
+ stateMutability: "nonpayable"
6
+ },
7
+ {
8
+ type: "function",
9
+ inputs: [],
10
+ name: "acceptGovernance",
11
+ outputs: [],
12
+ stateMutability: "nonpayable"
13
+ },
14
+ {
15
+ type: "function",
16
+ inputs: [
17
+ { name: "instanceOwner", internalType: "address", type: "address" },
18
+ { name: "treasury", internalType: "address", type: "address" },
19
+ { name: "weth", internalType: "address", type: "address" },
20
+ { name: "gear", internalType: "address", type: "address" }
21
+ ],
22
+ name: "activate",
23
+ outputs: [],
24
+ stateMutability: "nonpayable"
25
+ },
26
+ {
27
+ type: "function",
28
+ inputs: [],
29
+ name: "addressProvider",
30
+ outputs: [{ name: "", internalType: "address", type: "address" }],
31
+ stateMutability: "view"
32
+ },
33
+ {
34
+ type: "function",
35
+ inputs: [],
36
+ name: "bytecodeRepository",
37
+ outputs: [{ name: "", internalType: "address", type: "address" }],
38
+ stateMutability: "view"
39
+ },
40
+ {
41
+ type: "function",
42
+ inputs: [
43
+ { name: "target", internalType: "address", type: "address" },
44
+ { name: "data", internalType: "bytes", type: "bytes" }
45
+ ],
46
+ name: "configureGlobal",
47
+ outputs: [],
48
+ stateMutability: "nonpayable"
49
+ },
50
+ {
51
+ type: "function",
52
+ inputs: [
53
+ { name: "target", internalType: "address", type: "address" },
54
+ { name: "data", internalType: "bytes", type: "bytes" }
55
+ ],
56
+ name: "configureLocal",
57
+ outputs: [],
58
+ stateMutability: "nonpayable"
59
+ },
60
+ {
61
+ type: "function",
62
+ inputs: [
63
+ { name: "target", internalType: "address", type: "address" },
64
+ { name: "data", internalType: "bytes", type: "bytes" }
65
+ ],
66
+ name: "configureTreasury",
67
+ outputs: [],
68
+ stateMutability: "nonpayable"
69
+ },
70
+ {
71
+ type: "function",
72
+ inputs: [],
73
+ name: "contractType",
74
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
75
+ stateMutability: "view"
76
+ },
77
+ {
78
+ type: "function",
79
+ inputs: [],
80
+ name: "crossChainGovernanceProxy",
81
+ outputs: [{ name: "", internalType: "address", type: "address" }],
82
+ stateMutability: "view"
83
+ },
84
+ {
85
+ type: "function",
86
+ inputs: [
87
+ { name: "contractType_", internalType: "bytes32", type: "bytes32" },
88
+ { name: "version_", internalType: "uint256", type: "uint256" },
89
+ { name: "saveVersion", internalType: "bool", type: "bool" }
90
+ ],
91
+ name: "deploySystemContract",
92
+ outputs: [],
93
+ stateMutability: "nonpayable"
94
+ },
95
+ {
96
+ type: "function",
97
+ inputs: [],
98
+ name: "instanceManagerProxy",
99
+ outputs: [{ name: "", internalType: "address", type: "address" }],
100
+ stateMutability: "view"
101
+ },
102
+ {
103
+ type: "function",
104
+ inputs: [],
105
+ name: "isActivated",
106
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
107
+ stateMutability: "view"
108
+ },
109
+ {
110
+ type: "function",
111
+ inputs: [],
112
+ name: "owner",
113
+ outputs: [{ name: "", internalType: "address", type: "address" }],
114
+ stateMutability: "view"
115
+ },
116
+ {
117
+ type: "function",
118
+ inputs: [],
119
+ name: "pendingGovernance",
120
+ outputs: [{ name: "", internalType: "address", type: "address" }],
121
+ stateMutability: "view"
122
+ },
123
+ {
124
+ type: "function",
125
+ inputs: [],
126
+ name: "renounceOwnership",
127
+ outputs: [],
128
+ stateMutability: "nonpayable"
129
+ },
130
+ {
131
+ type: "function",
132
+ inputs: [
133
+ { name: "key", internalType: "bytes32", type: "bytes32" },
134
+ { name: "addr", internalType: "address", type: "address" },
135
+ { name: "saveVersion", internalType: "bool", type: "bool" }
136
+ ],
137
+ name: "setGlobalAddress",
138
+ outputs: [],
139
+ stateMutability: "nonpayable"
140
+ },
141
+ {
142
+ type: "function",
143
+ inputs: [
144
+ { name: "key", internalType: "bytes32", type: "bytes32" },
145
+ { name: "addr", internalType: "address", type: "address" },
146
+ { name: "saveVersion", internalType: "bool", type: "bool" }
147
+ ],
148
+ name: "setLocalAddress",
149
+ outputs: [],
150
+ stateMutability: "nonpayable"
151
+ },
152
+ {
153
+ type: "function",
154
+ inputs: [
155
+ { name: "newGovernance", internalType: "address", type: "address" }
156
+ ],
157
+ name: "setPendingGovernance",
158
+ outputs: [],
159
+ stateMutability: "nonpayable"
160
+ },
161
+ {
162
+ type: "function",
163
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
164
+ name: "transferOwnership",
165
+ outputs: [],
166
+ stateMutability: "nonpayable"
167
+ },
168
+ {
169
+ type: "function",
170
+ inputs: [],
171
+ name: "treasuryProxy",
172
+ outputs: [{ name: "", internalType: "address", type: "address" }],
173
+ stateMutability: "view"
174
+ },
175
+ {
176
+ type: "function",
177
+ inputs: [],
178
+ name: "version",
179
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
180
+ stateMutability: "view"
181
+ },
182
+ {
183
+ type: "event",
184
+ anonymous: false,
185
+ inputs: [
186
+ {
187
+ name: "newGovernance",
188
+ internalType: "address",
189
+ type: "address",
190
+ indexed: true
191
+ }
192
+ ],
193
+ name: "AcceptGovernance"
194
+ },
195
+ {
196
+ type: "event",
197
+ anonymous: false,
198
+ inputs: [
199
+ {
200
+ name: "previousOwner",
201
+ internalType: "address",
202
+ type: "address",
203
+ indexed: true
204
+ },
205
+ {
206
+ name: "newOwner",
207
+ internalType: "address",
208
+ type: "address",
209
+ indexed: true
210
+ }
211
+ ],
212
+ name: "OwnershipTransferred"
213
+ },
214
+ {
215
+ type: "event",
216
+ anonymous: false,
217
+ inputs: [
218
+ {
219
+ name: "newGovernance",
220
+ internalType: "address",
221
+ type: "address",
222
+ indexed: true
223
+ }
224
+ ],
225
+ name: "SetPendingGovernance"
226
+ },
227
+ {
228
+ type: "error",
229
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
230
+ name: "CallerIsNotCrossChainGovernanceException"
231
+ },
232
+ {
233
+ type: "error",
234
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
235
+ name: "CallerIsNotPendingGovernanceException"
236
+ },
237
+ {
238
+ type: "error",
239
+ inputs: [{ name: "caller", internalType: "address", type: "address" }],
240
+ name: "CallerIsNotTreasuryException"
241
+ },
242
+ {
243
+ type: "error",
244
+ inputs: [{ name: "key", internalType: "bytes32", type: "bytes32" }],
245
+ name: "InvalidKeyException"
246
+ }
247
+ ];
248
+ export {
249
+ instanceManagerAbi
250
+ };
@@ -0,0 +1,432 @@
1
+ const creditAccountCompressorAbi = [
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: "countCreditAccounts",
26
+ inputs: [
27
+ { name: "creditManager", type: "address", internalType: "address" },
28
+ {
29
+ name: "caFilter",
30
+ type: "tuple",
31
+ internalType: "struct CreditAccountFilter",
32
+ components: [
33
+ { name: "owner", type: "address", internalType: "address" },
34
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
35
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
36
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
37
+ { name: "reverting", type: "bool", internalType: "bool" }
38
+ ]
39
+ }
40
+ ],
41
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
42
+ stateMutability: "view"
43
+ },
44
+ {
45
+ type: "function",
46
+ name: "countCreditAccounts",
47
+ inputs: [
48
+ {
49
+ name: "cmFilter",
50
+ type: "tuple",
51
+ internalType: "struct CreditManagerFilter",
52
+ components: [
53
+ {
54
+ name: "configurators",
55
+ type: "address[]",
56
+ internalType: "address[]"
57
+ },
58
+ {
59
+ name: "creditManagers",
60
+ type: "address[]",
61
+ internalType: "address[]"
62
+ },
63
+ { name: "pools", type: "address[]", internalType: "address[]" },
64
+ { name: "underlying", type: "address", internalType: "address" }
65
+ ]
66
+ },
67
+ {
68
+ name: "caFilter",
69
+ type: "tuple",
70
+ internalType: "struct CreditAccountFilter",
71
+ components: [
72
+ { name: "owner", type: "address", internalType: "address" },
73
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
74
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
75
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
76
+ { name: "reverting", type: "bool", internalType: "bool" }
77
+ ]
78
+ }
79
+ ],
80
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
81
+ stateMutability: "view"
82
+ },
83
+ {
84
+ type: "function",
85
+ name: "getCreditAccountData",
86
+ inputs: [
87
+ { name: "creditAccount", type: "address", internalType: "address" }
88
+ ],
89
+ outputs: [
90
+ {
91
+ name: "",
92
+ type: "tuple",
93
+ internalType: "struct CreditAccountData",
94
+ components: [
95
+ { name: "creditAccount", type: "address", internalType: "address" },
96
+ { name: "creditManager", type: "address", internalType: "address" },
97
+ { name: "creditFacade", type: "address", internalType: "address" },
98
+ { name: "underlying", type: "address", internalType: "address" },
99
+ { name: "owner", type: "address", internalType: "address" },
100
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
101
+ {
102
+ name: "enabledTokensMask",
103
+ type: "uint256",
104
+ internalType: "uint256"
105
+ },
106
+ { name: "debt", type: "uint256", internalType: "uint256" },
107
+ { name: "accruedInterest", type: "uint256", internalType: "uint256" },
108
+ { name: "accruedFees", type: "uint256", internalType: "uint256" },
109
+ { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
110
+ { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
111
+ { name: "twvUSD", type: "uint256", internalType: "uint256" },
112
+ { name: "totalValue", type: "uint256", internalType: "uint256" },
113
+ { name: "healthFactor", type: "uint256", internalType: "uint256" },
114
+ { name: "success", type: "bool", internalType: "bool" },
115
+ {
116
+ name: "tokens",
117
+ type: "tuple[]",
118
+ internalType: "struct TokenInfo[]",
119
+ components: [
120
+ { name: "token", type: "address", internalType: "address" },
121
+ { name: "mask", type: "uint256", internalType: "uint256" },
122
+ { name: "balance", type: "uint256", internalType: "uint256" },
123
+ { name: "quota", type: "uint256", internalType: "uint256" },
124
+ { name: "success", type: "bool", internalType: "bool" }
125
+ ]
126
+ }
127
+ ]
128
+ }
129
+ ],
130
+ stateMutability: "view"
131
+ },
132
+ {
133
+ type: "function",
134
+ name: "getCreditAccounts",
135
+ inputs: [
136
+ {
137
+ name: "cmFilter",
138
+ type: "tuple",
139
+ internalType: "struct CreditManagerFilter",
140
+ components: [
141
+ {
142
+ name: "configurators",
143
+ type: "address[]",
144
+ internalType: "address[]"
145
+ },
146
+ {
147
+ name: "creditManagers",
148
+ type: "address[]",
149
+ internalType: "address[]"
150
+ },
151
+ { name: "pools", type: "address[]", internalType: "address[]" },
152
+ { name: "underlying", type: "address", internalType: "address" }
153
+ ]
154
+ },
155
+ {
156
+ name: "caFilter",
157
+ type: "tuple",
158
+ internalType: "struct CreditAccountFilter",
159
+ components: [
160
+ { name: "owner", type: "address", internalType: "address" },
161
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
162
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
163
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
164
+ { name: "reverting", type: "bool", internalType: "bool" }
165
+ ]
166
+ },
167
+ { name: "offset", type: "uint256", internalType: "uint256" },
168
+ { name: "limit", type: "uint256", internalType: "uint256" }
169
+ ],
170
+ outputs: [
171
+ {
172
+ name: "data",
173
+ type: "tuple[]",
174
+ internalType: "struct CreditAccountData[]",
175
+ components: [
176
+ { name: "creditAccount", type: "address", internalType: "address" },
177
+ { name: "creditManager", type: "address", internalType: "address" },
178
+ { name: "creditFacade", type: "address", internalType: "address" },
179
+ { name: "underlying", type: "address", internalType: "address" },
180
+ { name: "owner", type: "address", internalType: "address" },
181
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
182
+ {
183
+ name: "enabledTokensMask",
184
+ type: "uint256",
185
+ internalType: "uint256"
186
+ },
187
+ { name: "debt", type: "uint256", internalType: "uint256" },
188
+ { name: "accruedInterest", type: "uint256", internalType: "uint256" },
189
+ { name: "accruedFees", type: "uint256", internalType: "uint256" },
190
+ { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
191
+ { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
192
+ { name: "twvUSD", type: "uint256", internalType: "uint256" },
193
+ { name: "totalValue", type: "uint256", internalType: "uint256" },
194
+ { name: "healthFactor", type: "uint256", internalType: "uint256" },
195
+ { name: "success", type: "bool", internalType: "bool" },
196
+ {
197
+ name: "tokens",
198
+ type: "tuple[]",
199
+ internalType: "struct TokenInfo[]",
200
+ components: [
201
+ { name: "token", type: "address", internalType: "address" },
202
+ { name: "mask", type: "uint256", internalType: "uint256" },
203
+ { name: "balance", type: "uint256", internalType: "uint256" },
204
+ { name: "quota", type: "uint256", internalType: "uint256" },
205
+ { name: "success", type: "bool", internalType: "bool" }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ { name: "nextOffset", type: "uint256", internalType: "uint256" }
211
+ ],
212
+ stateMutability: "view"
213
+ },
214
+ {
215
+ type: "function",
216
+ name: "getCreditAccounts",
217
+ inputs: [
218
+ { name: "creditManager", type: "address", internalType: "address" },
219
+ {
220
+ name: "caFilter",
221
+ type: "tuple",
222
+ internalType: "struct CreditAccountFilter",
223
+ components: [
224
+ { name: "owner", type: "address", internalType: "address" },
225
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
226
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
227
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
228
+ { name: "reverting", type: "bool", internalType: "bool" }
229
+ ]
230
+ },
231
+ { name: "offset", type: "uint256", internalType: "uint256" }
232
+ ],
233
+ outputs: [
234
+ {
235
+ name: "data",
236
+ type: "tuple[]",
237
+ internalType: "struct CreditAccountData[]",
238
+ components: [
239
+ { name: "creditAccount", type: "address", internalType: "address" },
240
+ { name: "creditManager", type: "address", internalType: "address" },
241
+ { name: "creditFacade", type: "address", internalType: "address" },
242
+ { name: "underlying", type: "address", internalType: "address" },
243
+ { name: "owner", type: "address", internalType: "address" },
244
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
245
+ {
246
+ name: "enabledTokensMask",
247
+ type: "uint256",
248
+ internalType: "uint256"
249
+ },
250
+ { name: "debt", type: "uint256", internalType: "uint256" },
251
+ { name: "accruedInterest", type: "uint256", internalType: "uint256" },
252
+ { name: "accruedFees", type: "uint256", internalType: "uint256" },
253
+ { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
254
+ { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
255
+ { name: "twvUSD", type: "uint256", internalType: "uint256" },
256
+ { name: "totalValue", type: "uint256", internalType: "uint256" },
257
+ { name: "healthFactor", type: "uint256", internalType: "uint256" },
258
+ { name: "success", type: "bool", internalType: "bool" },
259
+ {
260
+ name: "tokens",
261
+ type: "tuple[]",
262
+ internalType: "struct TokenInfo[]",
263
+ components: [
264
+ { name: "token", type: "address", internalType: "address" },
265
+ { name: "mask", type: "uint256", internalType: "uint256" },
266
+ { name: "balance", type: "uint256", internalType: "uint256" },
267
+ { name: "quota", type: "uint256", internalType: "uint256" },
268
+ { name: "success", type: "bool", internalType: "bool" }
269
+ ]
270
+ }
271
+ ]
272
+ },
273
+ { name: "nextOffset", type: "uint256", internalType: "uint256" }
274
+ ],
275
+ stateMutability: "view"
276
+ },
277
+ {
278
+ type: "function",
279
+ name: "getCreditAccounts",
280
+ inputs: [
281
+ { name: "creditManager", type: "address", internalType: "address" },
282
+ {
283
+ name: "caFilter",
284
+ type: "tuple",
285
+ internalType: "struct CreditAccountFilter",
286
+ components: [
287
+ { name: "owner", type: "address", internalType: "address" },
288
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
289
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
290
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
291
+ { name: "reverting", type: "bool", internalType: "bool" }
292
+ ]
293
+ },
294
+ { name: "offset", type: "uint256", internalType: "uint256" },
295
+ { name: "limit", type: "uint256", internalType: "uint256" }
296
+ ],
297
+ outputs: [
298
+ {
299
+ name: "data",
300
+ type: "tuple[]",
301
+ internalType: "struct CreditAccountData[]",
302
+ components: [
303
+ { name: "creditAccount", type: "address", internalType: "address" },
304
+ { name: "creditManager", type: "address", internalType: "address" },
305
+ { name: "creditFacade", type: "address", internalType: "address" },
306
+ { name: "underlying", type: "address", internalType: "address" },
307
+ { name: "owner", type: "address", internalType: "address" },
308
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
309
+ {
310
+ name: "enabledTokensMask",
311
+ type: "uint256",
312
+ internalType: "uint256"
313
+ },
314
+ { name: "debt", type: "uint256", internalType: "uint256" },
315
+ { name: "accruedInterest", type: "uint256", internalType: "uint256" },
316
+ { name: "accruedFees", type: "uint256", internalType: "uint256" },
317
+ { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
318
+ { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
319
+ { name: "twvUSD", type: "uint256", internalType: "uint256" },
320
+ { name: "totalValue", type: "uint256", internalType: "uint256" },
321
+ { name: "healthFactor", type: "uint256", internalType: "uint256" },
322
+ { name: "success", type: "bool", internalType: "bool" },
323
+ {
324
+ name: "tokens",
325
+ type: "tuple[]",
326
+ internalType: "struct TokenInfo[]",
327
+ components: [
328
+ { name: "token", type: "address", internalType: "address" },
329
+ { name: "mask", type: "uint256", internalType: "uint256" },
330
+ { name: "balance", type: "uint256", internalType: "uint256" },
331
+ { name: "quota", type: "uint256", internalType: "uint256" },
332
+ { name: "success", type: "bool", internalType: "bool" }
333
+ ]
334
+ }
335
+ ]
336
+ },
337
+ { name: "nextOffset", type: "uint256", internalType: "uint256" }
338
+ ],
339
+ stateMutability: "view"
340
+ },
341
+ {
342
+ type: "function",
343
+ name: "getCreditAccounts",
344
+ inputs: [
345
+ {
346
+ name: "cmFilter",
347
+ type: "tuple",
348
+ internalType: "struct CreditManagerFilter",
349
+ components: [
350
+ {
351
+ name: "configurators",
352
+ type: "address[]",
353
+ internalType: "address[]"
354
+ },
355
+ {
356
+ name: "creditManagers",
357
+ type: "address[]",
358
+ internalType: "address[]"
359
+ },
360
+ { name: "pools", type: "address[]", internalType: "address[]" },
361
+ { name: "underlying", type: "address", internalType: "address" }
362
+ ]
363
+ },
364
+ {
365
+ name: "caFilter",
366
+ type: "tuple",
367
+ internalType: "struct CreditAccountFilter",
368
+ components: [
369
+ { name: "owner", type: "address", internalType: "address" },
370
+ { name: "includeZeroDebt", type: "bool", internalType: "bool" },
371
+ { name: "minHealthFactor", type: "uint256", internalType: "uint256" },
372
+ { name: "maxHealthFactor", type: "uint256", internalType: "uint256" },
373
+ { name: "reverting", type: "bool", internalType: "bool" }
374
+ ]
375
+ },
376
+ { name: "offset", type: "uint256", internalType: "uint256" }
377
+ ],
378
+ outputs: [
379
+ {
380
+ name: "data",
381
+ type: "tuple[]",
382
+ internalType: "struct CreditAccountData[]",
383
+ components: [
384
+ { name: "creditAccount", type: "address", internalType: "address" },
385
+ { name: "creditManager", type: "address", internalType: "address" },
386
+ { name: "creditFacade", type: "address", internalType: "address" },
387
+ { name: "underlying", type: "address", internalType: "address" },
388
+ { name: "owner", type: "address", internalType: "address" },
389
+ { name: "expirationDate", type: "uint40", internalType: "uint40" },
390
+ {
391
+ name: "enabledTokensMask",
392
+ type: "uint256",
393
+ internalType: "uint256"
394
+ },
395
+ { name: "debt", type: "uint256", internalType: "uint256" },
396
+ { name: "accruedInterest", type: "uint256", internalType: "uint256" },
397
+ { name: "accruedFees", type: "uint256", internalType: "uint256" },
398
+ { name: "totalDebtUSD", type: "uint256", internalType: "uint256" },
399
+ { name: "totalValueUSD", type: "uint256", internalType: "uint256" },
400
+ { name: "twvUSD", type: "uint256", internalType: "uint256" },
401
+ { name: "totalValue", type: "uint256", internalType: "uint256" },
402
+ { name: "healthFactor", type: "uint256", internalType: "uint256" },
403
+ { name: "success", type: "bool", internalType: "bool" },
404
+ {
405
+ name: "tokens",
406
+ type: "tuple[]",
407
+ internalType: "struct TokenInfo[]",
408
+ components: [
409
+ { name: "token", type: "address", internalType: "address" },
410
+ { name: "mask", type: "uint256", internalType: "uint256" },
411
+ { name: "balance", type: "uint256", internalType: "uint256" },
412
+ { name: "quota", type: "uint256", internalType: "uint256" },
413
+ { name: "success", type: "bool", internalType: "bool" }
414
+ ]
415
+ }
416
+ ]
417
+ },
418
+ { name: "nextOffset", type: "uint256", internalType: "uint256" }
419
+ ],
420
+ stateMutability: "view"
421
+ },
422
+ {
423
+ type: "function",
424
+ name: "version",
425
+ inputs: [],
426
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
427
+ stateMutability: "view"
428
+ }
429
+ ];
430
+ export {
431
+ creditAccountCompressorAbi
432
+ };