@gearbox-protocol/sdk 3.0.0-vfourabi.4 → 3.0.0-vfourabi.6

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 (66) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/dist/cjs/abi/compressors.cjs +3848 -3823
  3. package/dist/cjs/abi/compressors.d.ts +13 -15
  4. package/dist/cjs/abi/errors.cjs +188 -195
  5. package/dist/cjs/abi/errors.d.ts +6 -8
  6. package/dist/cjs/abi/iCurvePool.cjs +1 -0
  7. package/dist/cjs/abi/iCurvePool.d.ts +0 -0
  8. package/dist/cjs/abi/iERC20.cjs +123 -122
  9. package/dist/cjs/abi/iERC20.d.ts +1 -3
  10. package/dist/cjs/abi/iPausable.cjs +37 -39
  11. package/dist/cjs/abi/iPausable.d.ts +1 -3
  12. package/dist/cjs/abi/iPriceFeedStore.cjs +229 -231
  13. package/dist/cjs/abi/iPriceFeedStore.d.ts +1 -3
  14. package/dist/cjs/abi/iUpdatablePriceFeed.cjs +18 -20
  15. package/dist/cjs/abi/iUpdatablePriceFeed.d.ts +1 -3
  16. package/dist/cjs/abi/iVersion.cjs +30 -32
  17. package/dist/cjs/abi/iVersion.d.ts +1 -3
  18. package/dist/cjs/abi/iZapper.cjs +85 -84
  19. package/dist/cjs/abi/iZapper.d.ts +1 -3
  20. package/dist/cjs/abi/index.cjs +27 -0
  21. package/dist/cjs/abi/index.d.ts +11 -0
  22. package/dist/cjs/abi/routerV300.cjs +378 -381
  23. package/dist/cjs/abi/routerV300.d.ts +2 -4
  24. package/dist/cjs/abi/v300.cjs +4125 -4138
  25. package/dist/cjs/abi/v300.d.ts +12 -14
  26. package/dist/cjs/abi/v310.cjs +5141 -5116
  27. package/dist/cjs/abi/v310.d.ts +13 -15
  28. package/dist/cjs/dev/index.d.ts +287 -1
  29. package/dist/cjs/sdk/index.cjs +18865 -18931
  30. package/dist/cjs/sdk/index.d.ts +13552 -8345
  31. package/dist/esm/abi/compressors.d.mts +13 -15
  32. package/dist/esm/abi/compressors.mjs +3845 -3809
  33. package/dist/esm/abi/errors.d.mts +6 -8
  34. package/dist/esm/abi/errors.mjs +185 -188
  35. package/dist/esm/abi/iCurvePool.d.mts +0 -0
  36. package/dist/esm/abi/iCurvePool.mjs +1 -0
  37. package/dist/esm/abi/iERC20.d.mts +1 -3
  38. package/dist/esm/abi/iERC20.mjs +120 -120
  39. package/dist/esm/abi/iPausable.d.mts +1 -3
  40. package/dist/esm/abi/iPausable.mjs +34 -37
  41. package/dist/esm/abi/iPriceFeedStore.d.mts +1 -3
  42. package/dist/esm/abi/iPriceFeedStore.mjs +226 -229
  43. package/dist/esm/abi/iUpdatablePriceFeed.d.mts +1 -3
  44. package/dist/esm/abi/iUpdatablePriceFeed.mjs +15 -18
  45. package/dist/esm/abi/iVersion.d.mts +1 -3
  46. package/dist/esm/abi/iVersion.mjs +27 -30
  47. package/dist/esm/abi/iZapper.d.mts +1 -3
  48. package/dist/esm/abi/iZapper.mjs +82 -82
  49. package/dist/esm/abi/index.d.mts +11 -0
  50. package/dist/esm/abi/index.mjs +11 -0
  51. package/dist/esm/abi/routerV300.d.mts +2 -4
  52. package/dist/esm/abi/routerV300.mjs +375 -378
  53. package/dist/esm/abi/v300.d.mts +12 -14
  54. package/dist/esm/abi/v300.mjs +4122 -4125
  55. package/dist/esm/abi/v310.d.mts +13 -15
  56. package/dist/esm/abi/v310.mjs +5138 -5102
  57. package/dist/esm/dev/index.d.mts +287 -1
  58. package/dist/esm/sdk/index.d.mts +13552 -8345
  59. package/dist/esm/sdk/index.mjs +18866 -18908
  60. package/package.json +1 -2
  61. package/src/abi/iCurvePool.ts +0 -0
  62. package/src/abi/index.ts +11 -0
  63. package/src/sdk/index.ts +0 -1
  64. package/tsconfig.abi.json +4 -0
  65. package/tsup.config.ts +58 -8
  66. package/tsconfig.build.json +0 -4
@@ -1,380 +1,377 @@
1
- // src/abi/routerV300.ts
2
- var iRouterV300Abi = [
3
- {
4
- type: "function",
5
- name: "componentAddressById",
6
- inputs: [{ name: "", type: "uint8", internalType: "uint8" }],
7
- outputs: [{ name: "", type: "address", internalType: "address" }],
8
- stateMutability: "view"
9
- },
10
- {
11
- type: "function",
12
- name: "findAllSwaps",
13
- inputs: [
14
- {
15
- name: "swapTask",
16
- type: "tuple",
17
- internalType: "struct SwapTask",
18
- components: [
19
- {
20
- name: "swapOperation",
21
- type: "uint8",
22
- internalType: "enum SwapOperation"
23
- },
24
- { name: "creditAccount", type: "address", internalType: "address" },
25
- { name: "tokenIn", type: "address", internalType: "address" },
26
- { name: "tokenOut", type: "address", internalType: "address" },
27
- { name: "connectors", type: "address[]", internalType: "address[]" },
28
- { name: "amount", type: "uint256", internalType: "uint256" },
29
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" }
30
- ]
31
- },
32
- { name: "slippage", type: "uint256", internalType: "uint256" }
33
- ],
34
- outputs: [
35
- {
36
- name: "",
37
- type: "tuple[]",
38
- internalType: "struct RouterResult[]",
39
- components: [
40
- { name: "amount", type: "uint256", internalType: "uint256" },
41
- { name: "minAmount", type: "uint256", internalType: "uint256" },
42
- {
43
- name: "calls",
44
- type: "tuple[]",
45
- internalType: "struct MultiCall[]",
46
- components: [
47
- { name: "target", type: "address", internalType: "address" },
48
- { name: "callData", type: "bytes", internalType: "bytes" }
49
- ]
50
- }
51
- ]
52
- }
53
- ],
54
- stateMutability: "nonpayable"
55
- },
56
- {
57
- type: "function",
58
- name: "findBestClosePath",
59
- inputs: [
60
- { name: "creditAccount", type: "address", internalType: "address" },
61
- {
62
- name: "expectedBalances",
63
- type: "tuple[]",
64
- internalType: "struct Balance[]",
65
- components: [
66
- { name: "token", type: "address", internalType: "address" },
67
- { name: "balance", type: "uint256", internalType: "uint256" }
68
- ]
69
- },
70
- {
71
- name: "leftoverBalances",
72
- type: "tuple[]",
73
- internalType: "struct Balance[]",
74
- components: [
75
- { name: "token", type: "address", internalType: "address" },
76
- { name: "balance", type: "uint256", internalType: "uint256" }
77
- ]
78
- },
79
- { name: "connectors", type: "address[]", internalType: "address[]" },
80
- { name: "slippage", type: "uint256", internalType: "uint256" },
81
- {
82
- name: "pathOptions",
83
- type: "tuple[]",
84
- internalType: "struct PathOption[]",
85
- components: [
86
- { name: "target", type: "address", internalType: "address" },
87
- { name: "option", type: "uint8", internalType: "uint8" },
88
- { name: "totalOptions", type: "uint8", internalType: "uint8" }
89
- ]
90
- },
91
- { name: "iterations", type: "uint256", internalType: "uint256" },
92
- { name: "force", type: "bool", internalType: "bool" }
93
- ],
94
- outputs: [
95
- {
96
- name: "result",
97
- type: "tuple",
98
- internalType: "struct RouterResult",
99
- components: [
100
- { name: "amount", type: "uint256", internalType: "uint256" },
101
- { name: "minAmount", type: "uint256", internalType: "uint256" },
102
- {
103
- name: "calls",
104
- type: "tuple[]",
105
- internalType: "struct MultiCall[]",
106
- components: [
107
- { name: "target", type: "address", internalType: "address" },
108
- { name: "callData", type: "bytes", internalType: "bytes" }
109
- ]
110
- }
111
- ]
112
- }
113
- ],
114
- stateMutability: "nonpayable"
115
- },
116
- {
117
- type: "function",
118
- name: "findOneTokenDiffPath",
119
- inputs: [
120
- { name: "tokenIn", type: "address", internalType: "address" },
121
- { name: "expectedBalance", type: "uint256", internalType: "uint256" },
122
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
123
- { name: "tokenOut", type: "address", internalType: "address" },
124
- { name: "creditAccount", type: "address", internalType: "address" },
125
- { name: "connectors", type: "address[]", internalType: "address[]" },
126
- { name: "slippage", type: "uint256", internalType: "uint256" }
127
- ],
128
- outputs: [
129
- {
130
- name: "",
131
- type: "tuple",
132
- internalType: "struct RouterResult",
133
- components: [
134
- { name: "amount", type: "uint256", internalType: "uint256" },
135
- { name: "minAmount", type: "uint256", internalType: "uint256" },
136
- {
137
- name: "calls",
138
- type: "tuple[]",
139
- internalType: "struct MultiCall[]",
140
- components: [
141
- { name: "target", type: "address", internalType: "address" },
142
- { name: "callData", type: "bytes", internalType: "bytes" }
143
- ]
144
- }
145
- ]
146
- }
147
- ],
148
- stateMutability: "nonpayable"
149
- },
150
- {
151
- type: "function",
152
- name: "findOneTokenPath",
153
- inputs: [
154
- { name: "tokenIn", type: "address", internalType: "address" },
155
- { name: "amount", type: "uint256", internalType: "uint256" },
156
- { name: "tokenOut", type: "address", internalType: "address" },
157
- { name: "creditAccount", type: "address", internalType: "address" },
158
- { name: "connectors", type: "address[]", internalType: "address[]" },
159
- { name: "slippage", type: "uint256", internalType: "uint256" }
160
- ],
161
- outputs: [
162
- {
163
- name: "",
164
- type: "tuple",
165
- internalType: "struct RouterResult",
166
- components: [
167
- { name: "amount", type: "uint256", internalType: "uint256" },
168
- { name: "minAmount", type: "uint256", internalType: "uint256" },
169
- {
170
- name: "calls",
171
- type: "tuple[]",
172
- internalType: "struct MultiCall[]",
173
- components: [
174
- { name: "target", type: "address", internalType: "address" },
175
- { name: "callData", type: "bytes", internalType: "bytes" }
176
- ]
177
- }
178
- ]
179
- }
180
- ],
181
- stateMutability: "nonpayable"
182
- },
183
- {
184
- type: "function",
185
- name: "findOpenStrategyPath",
186
- inputs: [
187
- { name: "creditManager", type: "address", internalType: "address" },
188
- {
189
- name: "balances",
190
- type: "tuple[]",
191
- internalType: "struct Balance[]",
192
- components: [
193
- { name: "token", type: "address", internalType: "address" },
194
- { name: "balance", type: "uint256", internalType: "uint256" }
195
- ]
196
- },
197
- {
198
- name: "leftoverBalances",
199
- type: "tuple[]",
200
- internalType: "struct Balance[]",
201
- components: [
202
- { name: "token", type: "address", internalType: "address" },
203
- { name: "balance", type: "uint256", internalType: "uint256" }
204
- ]
205
- },
206
- { name: "target", type: "address", internalType: "address" },
207
- { name: "connectors", type: "address[]", internalType: "address[]" },
208
- { name: "slippage", type: "uint256", internalType: "uint256" }
209
- ],
210
- outputs: [
211
- {
212
- name: "",
213
- type: "tuple[]",
214
- internalType: "struct Balance[]",
215
- components: [
216
- { name: "token", type: "address", internalType: "address" },
217
- { name: "balance", type: "uint256", internalType: "uint256" }
218
- ]
219
- },
220
- {
221
- name: "",
222
- type: "tuple",
223
- internalType: "struct RouterResult",
224
- components: [
225
- { name: "amount", type: "uint256", internalType: "uint256" },
226
- { name: "minAmount", type: "uint256", internalType: "uint256" },
227
- {
228
- name: "calls",
229
- type: "tuple[]",
230
- internalType: "struct MultiCall[]",
231
- components: [
232
- { name: "target", type: "address", internalType: "address" },
233
- { name: "callData", type: "bytes", internalType: "bytes" }
234
- ]
235
- }
236
- ]
237
- }
238
- ],
239
- stateMutability: "nonpayable"
240
- },
241
- {
242
- type: "function",
243
- name: "futureRouter",
244
- inputs: [],
245
- outputs: [{ name: "", type: "address", internalType: "address" }],
246
- stateMutability: "view"
247
- },
248
- {
249
- type: "function",
250
- name: "isRouterConfigurator",
251
- inputs: [{ name: "account", type: "address", internalType: "address" }],
252
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
253
- stateMutability: "view"
254
- },
255
- {
256
- type: "function",
257
- name: "maxComponentId",
258
- inputs: [],
259
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
260
- stateMutability: "view"
261
- },
262
- {
263
- type: "function",
264
- name: "tokenTypes",
265
- inputs: [{ name: "", type: "address", internalType: "address" }],
266
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
267
- stateMutability: "view"
268
- },
269
- {
270
- type: "event",
271
- name: "ResolverUpdate",
272
- inputs: [
273
- { name: "ttIn", type: "uint8", indexed: true, internalType: "uint8" },
274
- { name: "ttOut", type: "uint8", indexed: true, internalType: "uint8" },
275
- { name: "rc", type: "uint8", indexed: true, internalType: "uint8" }
276
- ],
277
- anonymous: false
278
- },
279
- {
280
- type: "event",
281
- name: "RouterComponentUpdate",
282
- inputs: [
283
- { name: "", type: "uint8", indexed: true, internalType: "uint8" },
284
- { name: "", type: "address", indexed: true, internalType: "address" },
285
- {
286
- name: "version",
287
- type: "uint256",
288
- indexed: false,
289
- internalType: "uint256"
290
- }
291
- ],
292
- anonymous: false
293
- },
294
- {
295
- type: "event",
296
- name: "SetFutureRouter",
297
- inputs: [
298
- { name: "", type: "address", indexed: true, internalType: "address" }
299
- ],
300
- anonymous: false
301
- },
302
- {
303
- type: "event",
304
- name: "TokenTypeUpdate",
305
- inputs: [
306
- {
307
- name: "tokenAddress",
308
- type: "address",
309
- indexed: true,
310
- internalType: "address"
311
- },
312
- { name: "tt", type: "uint8", indexed: true, internalType: "uint8" }
313
- ],
314
- anonymous: false
315
- }
1
+ export const iRouterV300Abi = [
2
+ {
3
+ type: "function",
4
+ name: "componentAddressById",
5
+ inputs: [{ name: "", type: "uint8", internalType: "uint8" }],
6
+ outputs: [{ name: "", type: "address", internalType: "address" }],
7
+ stateMutability: "view",
8
+ },
9
+ {
10
+ type: "function",
11
+ name: "findAllSwaps",
12
+ inputs: [
13
+ {
14
+ name: "swapTask",
15
+ type: "tuple",
16
+ internalType: "struct SwapTask",
17
+ components: [
18
+ {
19
+ name: "swapOperation",
20
+ type: "uint8",
21
+ internalType: "enum SwapOperation",
22
+ },
23
+ { name: "creditAccount", type: "address", internalType: "address" },
24
+ { name: "tokenIn", type: "address", internalType: "address" },
25
+ { name: "tokenOut", type: "address", internalType: "address" },
26
+ { name: "connectors", type: "address[]", internalType: "address[]" },
27
+ { name: "amount", type: "uint256", internalType: "uint256" },
28
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
29
+ ],
30
+ },
31
+ { name: "slippage", type: "uint256", internalType: "uint256" },
32
+ ],
33
+ outputs: [
34
+ {
35
+ name: "",
36
+ type: "tuple[]",
37
+ internalType: "struct RouterResult[]",
38
+ components: [
39
+ { name: "amount", type: "uint256", internalType: "uint256" },
40
+ { name: "minAmount", type: "uint256", internalType: "uint256" },
41
+ {
42
+ name: "calls",
43
+ type: "tuple[]",
44
+ internalType: "struct MultiCall[]",
45
+ components: [
46
+ { name: "target", type: "address", internalType: "address" },
47
+ { name: "callData", type: "bytes", internalType: "bytes" },
48
+ ],
49
+ },
50
+ ],
51
+ },
52
+ ],
53
+ stateMutability: "nonpayable",
54
+ },
55
+ {
56
+ type: "function",
57
+ name: "findBestClosePath",
58
+ inputs: [
59
+ { name: "creditAccount", type: "address", internalType: "address" },
60
+ {
61
+ name: "expectedBalances",
62
+ type: "tuple[]",
63
+ internalType: "struct Balance[]",
64
+ components: [
65
+ { name: "token", type: "address", internalType: "address" },
66
+ { name: "balance", type: "uint256", internalType: "uint256" },
67
+ ],
68
+ },
69
+ {
70
+ name: "leftoverBalances",
71
+ type: "tuple[]",
72
+ internalType: "struct Balance[]",
73
+ components: [
74
+ { name: "token", type: "address", internalType: "address" },
75
+ { name: "balance", type: "uint256", internalType: "uint256" },
76
+ ],
77
+ },
78
+ { name: "connectors", type: "address[]", internalType: "address[]" },
79
+ { name: "slippage", type: "uint256", internalType: "uint256" },
80
+ {
81
+ name: "pathOptions",
82
+ type: "tuple[]",
83
+ internalType: "struct PathOption[]",
84
+ components: [
85
+ { name: "target", type: "address", internalType: "address" },
86
+ { name: "option", type: "uint8", internalType: "uint8" },
87
+ { name: "totalOptions", type: "uint8", internalType: "uint8" },
88
+ ],
89
+ },
90
+ { name: "iterations", type: "uint256", internalType: "uint256" },
91
+ { name: "force", type: "bool", internalType: "bool" },
92
+ ],
93
+ outputs: [
94
+ {
95
+ name: "result",
96
+ type: "tuple",
97
+ internalType: "struct RouterResult",
98
+ components: [
99
+ { name: "amount", type: "uint256", internalType: "uint256" },
100
+ { name: "minAmount", type: "uint256", internalType: "uint256" },
101
+ {
102
+ name: "calls",
103
+ type: "tuple[]",
104
+ internalType: "struct MultiCall[]",
105
+ components: [
106
+ { name: "target", type: "address", internalType: "address" },
107
+ { name: "callData", type: "bytes", internalType: "bytes" },
108
+ ],
109
+ },
110
+ ],
111
+ },
112
+ ],
113
+ stateMutability: "nonpayable",
114
+ },
115
+ {
116
+ type: "function",
117
+ name: "findOneTokenDiffPath",
118
+ inputs: [
119
+ { name: "tokenIn", type: "address", internalType: "address" },
120
+ { name: "expectedBalance", type: "uint256", internalType: "uint256" },
121
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
122
+ { name: "tokenOut", type: "address", internalType: "address" },
123
+ { name: "creditAccount", type: "address", internalType: "address" },
124
+ { name: "connectors", type: "address[]", internalType: "address[]" },
125
+ { name: "slippage", type: "uint256", internalType: "uint256" },
126
+ ],
127
+ outputs: [
128
+ {
129
+ name: "",
130
+ type: "tuple",
131
+ internalType: "struct RouterResult",
132
+ components: [
133
+ { name: "amount", type: "uint256", internalType: "uint256" },
134
+ { name: "minAmount", type: "uint256", internalType: "uint256" },
135
+ {
136
+ name: "calls",
137
+ type: "tuple[]",
138
+ internalType: "struct MultiCall[]",
139
+ components: [
140
+ { name: "target", type: "address", internalType: "address" },
141
+ { name: "callData", type: "bytes", internalType: "bytes" },
142
+ ],
143
+ },
144
+ ],
145
+ },
146
+ ],
147
+ stateMutability: "nonpayable",
148
+ },
149
+ {
150
+ type: "function",
151
+ name: "findOneTokenPath",
152
+ inputs: [
153
+ { name: "tokenIn", type: "address", internalType: "address" },
154
+ { name: "amount", type: "uint256", internalType: "uint256" },
155
+ { name: "tokenOut", type: "address", internalType: "address" },
156
+ { name: "creditAccount", type: "address", internalType: "address" },
157
+ { name: "connectors", type: "address[]", internalType: "address[]" },
158
+ { name: "slippage", type: "uint256", internalType: "uint256" },
159
+ ],
160
+ outputs: [
161
+ {
162
+ name: "",
163
+ type: "tuple",
164
+ internalType: "struct RouterResult",
165
+ components: [
166
+ { name: "amount", type: "uint256", internalType: "uint256" },
167
+ { name: "minAmount", type: "uint256", internalType: "uint256" },
168
+ {
169
+ name: "calls",
170
+ type: "tuple[]",
171
+ internalType: "struct MultiCall[]",
172
+ components: [
173
+ { name: "target", type: "address", internalType: "address" },
174
+ { name: "callData", type: "bytes", internalType: "bytes" },
175
+ ],
176
+ },
177
+ ],
178
+ },
179
+ ],
180
+ stateMutability: "nonpayable",
181
+ },
182
+ {
183
+ type: "function",
184
+ name: "findOpenStrategyPath",
185
+ inputs: [
186
+ { name: "creditManager", type: "address", internalType: "address" },
187
+ {
188
+ name: "balances",
189
+ type: "tuple[]",
190
+ internalType: "struct Balance[]",
191
+ components: [
192
+ { name: "token", type: "address", internalType: "address" },
193
+ { name: "balance", type: "uint256", internalType: "uint256" },
194
+ ],
195
+ },
196
+ {
197
+ name: "leftoverBalances",
198
+ type: "tuple[]",
199
+ internalType: "struct Balance[]",
200
+ components: [
201
+ { name: "token", type: "address", internalType: "address" },
202
+ { name: "balance", type: "uint256", internalType: "uint256" },
203
+ ],
204
+ },
205
+ { name: "target", type: "address", internalType: "address" },
206
+ { name: "connectors", type: "address[]", internalType: "address[]" },
207
+ { name: "slippage", type: "uint256", internalType: "uint256" },
208
+ ],
209
+ outputs: [
210
+ {
211
+ name: "",
212
+ type: "tuple[]",
213
+ internalType: "struct Balance[]",
214
+ components: [
215
+ { name: "token", type: "address", internalType: "address" },
216
+ { name: "balance", type: "uint256", internalType: "uint256" },
217
+ ],
218
+ },
219
+ {
220
+ name: "",
221
+ type: "tuple",
222
+ internalType: "struct RouterResult",
223
+ components: [
224
+ { name: "amount", type: "uint256", internalType: "uint256" },
225
+ { name: "minAmount", type: "uint256", internalType: "uint256" },
226
+ {
227
+ name: "calls",
228
+ type: "tuple[]",
229
+ internalType: "struct MultiCall[]",
230
+ components: [
231
+ { name: "target", type: "address", internalType: "address" },
232
+ { name: "callData", type: "bytes", internalType: "bytes" },
233
+ ],
234
+ },
235
+ ],
236
+ },
237
+ ],
238
+ stateMutability: "nonpayable",
239
+ },
240
+ {
241
+ type: "function",
242
+ name: "futureRouter",
243
+ inputs: [],
244
+ outputs: [{ name: "", type: "address", internalType: "address" }],
245
+ stateMutability: "view",
246
+ },
247
+ {
248
+ type: "function",
249
+ name: "isRouterConfigurator",
250
+ inputs: [{ name: "account", type: "address", internalType: "address" }],
251
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
252
+ stateMutability: "view",
253
+ },
254
+ {
255
+ type: "function",
256
+ name: "maxComponentId",
257
+ inputs: [],
258
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
259
+ stateMutability: "view",
260
+ },
261
+ {
262
+ type: "function",
263
+ name: "tokenTypes",
264
+ inputs: [{ name: "", type: "address", internalType: "address" }],
265
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
266
+ stateMutability: "view",
267
+ },
268
+ {
269
+ type: "event",
270
+ name: "ResolverUpdate",
271
+ inputs: [
272
+ { name: "ttIn", type: "uint8", indexed: true, internalType: "uint8" },
273
+ { name: "ttOut", type: "uint8", indexed: true, internalType: "uint8" },
274
+ { name: "rc", type: "uint8", indexed: true, internalType: "uint8" },
275
+ ],
276
+ anonymous: false,
277
+ },
278
+ {
279
+ type: "event",
280
+ name: "RouterComponentUpdate",
281
+ inputs: [
282
+ { name: "", type: "uint8", indexed: true, internalType: "uint8" },
283
+ { name: "", type: "address", indexed: true, internalType: "address" },
284
+ {
285
+ name: "version",
286
+ type: "uint256",
287
+ indexed: false,
288
+ internalType: "uint256",
289
+ },
290
+ ],
291
+ anonymous: false,
292
+ },
293
+ {
294
+ type: "event",
295
+ name: "SetFutureRouter",
296
+ inputs: [
297
+ { name: "", type: "address", indexed: true, internalType: "address" },
298
+ ],
299
+ anonymous: false,
300
+ },
301
+ {
302
+ type: "event",
303
+ name: "TokenTypeUpdate",
304
+ inputs: [
305
+ {
306
+ name: "tokenAddress",
307
+ type: "address",
308
+ indexed: true,
309
+ internalType: "address",
310
+ },
311
+ { name: "tt", type: "uint8", indexed: true, internalType: "uint8" },
312
+ ],
313
+ anonymous: false,
314
+ },
316
315
  ];
317
- var iSwapperV300Abi = [
318
- {
319
- type: "function",
320
- name: "getBestDirectPairSwap",
321
- inputs: [
322
- {
323
- name: "swapTask",
324
- type: "tuple",
325
- internalType: "struct SwapTask",
326
- components: [
327
- {
328
- name: "swapOperation",
329
- type: "uint8",
330
- internalType: "enum SwapOperation"
331
- },
332
- { name: "creditAccount", type: "address", internalType: "address" },
333
- { name: "tokenIn", type: "address", internalType: "address" },
334
- { name: "tokenOut", type: "address", internalType: "address" },
335
- { name: "connectors", type: "address[]", internalType: "address[]" },
336
- { name: "amount", type: "uint256", internalType: "uint256" },
337
- { name: "leftoverAmount", type: "uint256", internalType: "uint256" }
338
- ]
339
- },
340
- { name: "adapter", type: "address", internalType: "address" }
341
- ],
342
- outputs: [
343
- {
344
- name: "quote",
345
- type: "tuple",
346
- internalType: "struct SwapQuote",
347
- components: [
348
- {
349
- name: "multiCall",
350
- type: "tuple",
351
- internalType: "struct MultiCall",
352
- components: [
353
- { name: "target", type: "address", internalType: "address" },
354
- { name: "callData", type: "bytes", internalType: "bytes" }
355
- ]
356
- },
357
- { name: "amount", type: "uint256", internalType: "uint256" },
358
- { name: "found", type: "bool", internalType: "bool" }
359
- ]
360
- }
361
- ],
362
- stateMutability: "nonpayable"
363
- },
364
- {
365
- type: "function",
366
- name: "getComponentId",
367
- inputs: [],
368
- outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
369
- stateMutability: "view"
370
- },
371
- {
372
- type: "function",
373
- name: "needsComponentUpdate",
374
- inputs: [],
375
- outputs: [{ name: "", type: "bool", internalType: "bool" }],
376
- stateMutability: "view"
377
- }
316
+ export const iSwapperV300Abi = [
317
+ {
318
+ type: "function",
319
+ name: "getBestDirectPairSwap",
320
+ inputs: [
321
+ {
322
+ name: "swapTask",
323
+ type: "tuple",
324
+ internalType: "struct SwapTask",
325
+ components: [
326
+ {
327
+ name: "swapOperation",
328
+ type: "uint8",
329
+ internalType: "enum SwapOperation",
330
+ },
331
+ { name: "creditAccount", type: "address", internalType: "address" },
332
+ { name: "tokenIn", type: "address", internalType: "address" },
333
+ { name: "tokenOut", type: "address", internalType: "address" },
334
+ { name: "connectors", type: "address[]", internalType: "address[]" },
335
+ { name: "amount", type: "uint256", internalType: "uint256" },
336
+ { name: "leftoverAmount", type: "uint256", internalType: "uint256" },
337
+ ],
338
+ },
339
+ { name: "adapter", type: "address", internalType: "address" },
340
+ ],
341
+ outputs: [
342
+ {
343
+ name: "quote",
344
+ type: "tuple",
345
+ internalType: "struct SwapQuote",
346
+ components: [
347
+ {
348
+ name: "multiCall",
349
+ type: "tuple",
350
+ internalType: "struct MultiCall",
351
+ components: [
352
+ { name: "target", type: "address", internalType: "address" },
353
+ { name: "callData", type: "bytes", internalType: "bytes" },
354
+ ],
355
+ },
356
+ { name: "amount", type: "uint256", internalType: "uint256" },
357
+ { name: "found", type: "bool", internalType: "bool" },
358
+ ],
359
+ },
360
+ ],
361
+ stateMutability: "nonpayable",
362
+ },
363
+ {
364
+ type: "function",
365
+ name: "getComponentId",
366
+ inputs: [],
367
+ outputs: [{ name: "", type: "uint8", internalType: "uint8" }],
368
+ stateMutability: "view",
369
+ },
370
+ {
371
+ type: "function",
372
+ name: "needsComponentUpdate",
373
+ inputs: [],
374
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
375
+ stateMutability: "view",
376
+ },
378
377
  ];
379
-
380
- export { iRouterV300Abi, iSwapperV300Abi };