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