@gearbox-protocol/sdk 3.0.0-vfourabi.3 → 3.0.0-vfourabi.5

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