@swapkit/core 1.0.0-rc.9 → 1.0.0-rc.90

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.
@@ -0,0 +1,340 @@
1
+ export const uniswapv2Router = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'address', name: '_factory', type: 'address' },
5
+ { internalType: 'address', name: '_WETH', type: 'address' },
6
+ ],
7
+ stateMutability: 'nonpayable',
8
+ type: 'constructor',
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: 'WETH',
13
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
14
+ stateMutability: 'view',
15
+ type: 'function',
16
+ },
17
+ {
18
+ inputs: [
19
+ { internalType: 'address', name: 'tokenA', type: 'address' },
20
+ { internalType: 'address', name: 'tokenB', type: 'address' },
21
+ { internalType: 'uint256', name: 'amountADesired', type: 'uint256' },
22
+ { internalType: 'uint256', name: 'amountBDesired', type: 'uint256' },
23
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
24
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
25
+ { internalType: 'address', name: 'to', type: 'address' },
26
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
27
+ ],
28
+ name: 'addLiquidity',
29
+ outputs: [
30
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
31
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
32
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
33
+ ],
34
+ stateMutability: 'nonpayable',
35
+ type: 'function',
36
+ },
37
+ {
38
+ inputs: [
39
+ { internalType: 'address', name: 'token', type: 'address' },
40
+ { internalType: 'uint256', name: 'amountTokenDesired', type: 'uint256' },
41
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
42
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
43
+ { internalType: 'address', name: 'to', type: 'address' },
44
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
45
+ ],
46
+ name: 'addLiquidityETH',
47
+ outputs: [
48
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
49
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
50
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
51
+ ],
52
+ stateMutability: 'payable',
53
+ type: 'function',
54
+ },
55
+ {
56
+ inputs: [],
57
+ name: 'factory',
58
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
59
+ stateMutability: 'view',
60
+ type: 'function',
61
+ },
62
+ {
63
+ inputs: [
64
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
65
+ { internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
66
+ { internalType: 'uint256', name: 'reserveOut', type: 'uint256' },
67
+ ],
68
+ name: 'getAmountIn',
69
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
70
+ stateMutability: 'pure',
71
+ type: 'function',
72
+ },
73
+ {
74
+ inputs: [
75
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
76
+ { internalType: 'uint256', name: 'reserveIn', type: 'uint256' },
77
+ { internalType: 'uint256', name: 'reserveOut', type: 'uint256' },
78
+ ],
79
+ name: 'getAmountOut',
80
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
81
+ stateMutability: 'pure',
82
+ type: 'function',
83
+ },
84
+ {
85
+ inputs: [
86
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
87
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
88
+ ],
89
+ name: 'getAmountsIn',
90
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
91
+ stateMutability: 'view',
92
+ type: 'function',
93
+ },
94
+ {
95
+ inputs: [
96
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
97
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
98
+ ],
99
+ name: 'getAmountsOut',
100
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
101
+ stateMutability: 'view',
102
+ type: 'function',
103
+ },
104
+ {
105
+ inputs: [
106
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
107
+ { internalType: 'uint256', name: 'reserveA', type: 'uint256' },
108
+ { internalType: 'uint256', name: 'reserveB', type: 'uint256' },
109
+ ],
110
+ name: 'quote',
111
+ outputs: [{ internalType: 'uint256', name: 'amountB', type: 'uint256' }],
112
+ stateMutability: 'pure',
113
+ type: 'function',
114
+ },
115
+ {
116
+ inputs: [
117
+ { internalType: 'address', name: 'tokenA', type: 'address' },
118
+ { internalType: 'address', name: 'tokenB', type: 'address' },
119
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
120
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
121
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
122
+ { internalType: 'address', name: 'to', type: 'address' },
123
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
124
+ ],
125
+ name: 'removeLiquidity',
126
+ outputs: [
127
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
128
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
129
+ ],
130
+ stateMutability: 'nonpayable',
131
+ type: 'function',
132
+ },
133
+ {
134
+ inputs: [
135
+ { internalType: 'address', name: 'token', type: 'address' },
136
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
137
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
138
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
139
+ { internalType: 'address', name: 'to', type: 'address' },
140
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
141
+ ],
142
+ name: 'removeLiquidityETH',
143
+ outputs: [
144
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
145
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
146
+ ],
147
+ stateMutability: 'nonpayable',
148
+ type: 'function',
149
+ },
150
+ {
151
+ inputs: [
152
+ { internalType: 'address', name: 'token', type: 'address' },
153
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
154
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
155
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
156
+ { internalType: 'address', name: 'to', type: 'address' },
157
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
158
+ ],
159
+ name: 'removeLiquidityETHSupportingFeeOnTransferTokens',
160
+ outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
161
+ stateMutability: 'nonpayable',
162
+ type: 'function',
163
+ },
164
+ {
165
+ inputs: [
166
+ { internalType: 'address', name: 'token', type: 'address' },
167
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
168
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
169
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
170
+ { internalType: 'address', name: 'to', type: 'address' },
171
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
172
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
173
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
174
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
175
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
176
+ ],
177
+ name: 'removeLiquidityETHWithPermit',
178
+ outputs: [
179
+ { internalType: 'uint256', name: 'amountToken', type: 'uint256' },
180
+ { internalType: 'uint256', name: 'amountETH', type: 'uint256' },
181
+ ],
182
+ stateMutability: 'nonpayable',
183
+ type: 'function',
184
+ },
185
+ {
186
+ inputs: [
187
+ { internalType: 'address', name: 'token', type: 'address' },
188
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
189
+ { internalType: 'uint256', name: 'amountTokenMin', type: 'uint256' },
190
+ { internalType: 'uint256', name: 'amountETHMin', type: 'uint256' },
191
+ { internalType: 'address', name: 'to', type: 'address' },
192
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
193
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
194
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
195
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
196
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
197
+ ],
198
+ name: 'removeLiquidityETHWithPermitSupportingFeeOnTransferTokens',
199
+ outputs: [{ internalType: 'uint256', name: 'amountETH', type: 'uint256' }],
200
+ stateMutability: 'nonpayable',
201
+ type: 'function',
202
+ },
203
+ {
204
+ inputs: [
205
+ { internalType: 'address', name: 'tokenA', type: 'address' },
206
+ { internalType: 'address', name: 'tokenB', type: 'address' },
207
+ { internalType: 'uint256', name: 'liquidity', type: 'uint256' },
208
+ { internalType: 'uint256', name: 'amountAMin', type: 'uint256' },
209
+ { internalType: 'uint256', name: 'amountBMin', type: 'uint256' },
210
+ { internalType: 'address', name: 'to', type: 'address' },
211
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
212
+ { internalType: 'bool', name: 'approveMax', type: 'bool' },
213
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
214
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
215
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
216
+ ],
217
+ name: 'removeLiquidityWithPermit',
218
+ outputs: [
219
+ { internalType: 'uint256', name: 'amountA', type: 'uint256' },
220
+ { internalType: 'uint256', name: 'amountB', type: 'uint256' },
221
+ ],
222
+ stateMutability: 'nonpayable',
223
+ type: 'function',
224
+ },
225
+ {
226
+ inputs: [
227
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
228
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
229
+ { internalType: 'address', name: 'to', type: 'address' },
230
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
231
+ ],
232
+ name: 'swapETHForExactTokens',
233
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
234
+ stateMutability: 'payable',
235
+ type: 'function',
236
+ },
237
+ {
238
+ inputs: [
239
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
240
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
241
+ { internalType: 'address', name: 'to', type: 'address' },
242
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
243
+ ],
244
+ name: 'swapExactETHForTokens',
245
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
246
+ stateMutability: 'payable',
247
+ type: 'function',
248
+ },
249
+ {
250
+ inputs: [
251
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
252
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
253
+ { internalType: 'address', name: 'to', type: 'address' },
254
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
255
+ ],
256
+ name: 'swapExactETHForTokensSupportingFeeOnTransferTokens',
257
+ outputs: [],
258
+ stateMutability: 'payable',
259
+ type: 'function',
260
+ },
261
+ {
262
+ inputs: [
263
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
264
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
265
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
266
+ { internalType: 'address', name: 'to', type: 'address' },
267
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
268
+ ],
269
+ name: 'swapExactTokensForETH',
270
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
271
+ stateMutability: 'nonpayable',
272
+ type: 'function',
273
+ },
274
+ {
275
+ inputs: [
276
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
277
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
278
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
279
+ { internalType: 'address', name: 'to', type: 'address' },
280
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
281
+ ],
282
+ name: 'swapExactTokensForETHSupportingFeeOnTransferTokens',
283
+ outputs: [],
284
+ stateMutability: 'nonpayable',
285
+ type: 'function',
286
+ },
287
+ {
288
+ inputs: [
289
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
290
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
291
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
292
+ { internalType: 'address', name: 'to', type: 'address' },
293
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
294
+ ],
295
+ name: 'swapExactTokensForTokens',
296
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
297
+ stateMutability: 'nonpayable',
298
+ type: 'function',
299
+ },
300
+ {
301
+ inputs: [
302
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
303
+ { internalType: 'uint256', name: 'amountOutMin', type: 'uint256' },
304
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
305
+ { internalType: 'address', name: 'to', type: 'address' },
306
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
307
+ ],
308
+ name: 'swapExactTokensForTokensSupportingFeeOnTransferTokens',
309
+ outputs: [],
310
+ stateMutability: 'nonpayable',
311
+ type: 'function',
312
+ },
313
+ {
314
+ inputs: [
315
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
316
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
317
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
318
+ { internalType: 'address', name: 'to', type: 'address' },
319
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
320
+ ],
321
+ name: 'swapTokensForExactETH',
322
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
323
+ stateMutability: 'nonpayable',
324
+ type: 'function',
325
+ },
326
+ {
327
+ inputs: [
328
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
329
+ { internalType: 'uint256', name: 'amountInMax', type: 'uint256' },
330
+ { internalType: 'address[]', name: 'path', type: 'address[]' },
331
+ { internalType: 'address', name: 'to', type: 'address' },
332
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
333
+ ],
334
+ name: 'swapTokensForExactTokens',
335
+ outputs: [{ internalType: 'uint256[]', name: 'amounts', type: 'uint256[]' }],
336
+ stateMutability: 'nonpayable',
337
+ type: 'function',
338
+ },
339
+ { stateMutability: 'payable', type: 'receive' },
340
+ ];
@@ -0,0 +1,254 @@
1
+ export const uniswapv3Router = [
2
+ {
3
+ inputs: [
4
+ { internalType: 'address', name: '_factory', type: 'address' },
5
+ { internalType: 'address', name: '_WETH9', type: 'address' },
6
+ ],
7
+ stateMutability: 'nonpayable',
8
+ type: 'constructor',
9
+ },
10
+ {
11
+ inputs: [],
12
+ name: 'WETH9',
13
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
14
+ stateMutability: 'view',
15
+ type: 'function',
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ components: [
21
+ { internalType: 'bytes', name: 'path', type: 'bytes' },
22
+ { internalType: 'address', name: 'recipient', type: 'address' },
23
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
24
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
25
+ {
26
+ internalType: 'uint256',
27
+ name: 'amountOutMinimum',
28
+ type: 'uint256',
29
+ },
30
+ ],
31
+ internalType: 'struct ISwapRouter.ExactInputParams',
32
+ name: 'params',
33
+ type: 'tuple',
34
+ },
35
+ ],
36
+ name: 'exactInput',
37
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
38
+ stateMutability: 'payable',
39
+ type: 'function',
40
+ },
41
+ {
42
+ inputs: [
43
+ {
44
+ components: [
45
+ { internalType: 'address', name: 'tokenIn', type: 'address' },
46
+ { internalType: 'address', name: 'tokenOut', type: 'address' },
47
+ { internalType: 'uint24', name: 'fee', type: 'uint24' },
48
+ { internalType: 'address', name: 'recipient', type: 'address' },
49
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
50
+ { internalType: 'uint256', name: 'amountIn', type: 'uint256' },
51
+ {
52
+ internalType: 'uint256',
53
+ name: 'amountOutMinimum',
54
+ type: 'uint256',
55
+ },
56
+ {
57
+ internalType: 'uint160',
58
+ name: 'sqrtPriceLimitX96',
59
+ type: 'uint160',
60
+ },
61
+ ],
62
+ internalType: 'struct ISwapRouter.ExactInputSingleParams',
63
+ name: 'params',
64
+ type: 'tuple',
65
+ },
66
+ ],
67
+ name: 'exactInputSingle',
68
+ outputs: [{ internalType: 'uint256', name: 'amountOut', type: 'uint256' }],
69
+ stateMutability: 'payable',
70
+ type: 'function',
71
+ },
72
+ {
73
+ inputs: [
74
+ {
75
+ components: [
76
+ { internalType: 'bytes', name: 'path', type: 'bytes' },
77
+ { internalType: 'address', name: 'recipient', type: 'address' },
78
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
79
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
80
+ { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' },
81
+ ],
82
+ internalType: 'struct ISwapRouter.ExactOutputParams',
83
+ name: 'params',
84
+ type: 'tuple',
85
+ },
86
+ ],
87
+ name: 'exactOutput',
88
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
89
+ stateMutability: 'payable',
90
+ type: 'function',
91
+ },
92
+ {
93
+ inputs: [
94
+ {
95
+ components: [
96
+ { internalType: 'address', name: 'tokenIn', type: 'address' },
97
+ { internalType: 'address', name: 'tokenOut', type: 'address' },
98
+ { internalType: 'uint24', name: 'fee', type: 'uint24' },
99
+ { internalType: 'address', name: 'recipient', type: 'address' },
100
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
101
+ { internalType: 'uint256', name: 'amountOut', type: 'uint256' },
102
+ { internalType: 'uint256', name: 'amountInMaximum', type: 'uint256' },
103
+ {
104
+ internalType: 'uint160',
105
+ name: 'sqrtPriceLimitX96',
106
+ type: 'uint160',
107
+ },
108
+ ],
109
+ internalType: 'struct ISwapRouter.ExactOutputSingleParams',
110
+ name: 'params',
111
+ type: 'tuple',
112
+ },
113
+ ],
114
+ name: 'exactOutputSingle',
115
+ outputs: [{ internalType: 'uint256', name: 'amountIn', type: 'uint256' }],
116
+ stateMutability: 'payable',
117
+ type: 'function',
118
+ },
119
+ {
120
+ inputs: [],
121
+ name: 'factory',
122
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
123
+ stateMutability: 'view',
124
+ type: 'function',
125
+ },
126
+ {
127
+ inputs: [{ internalType: 'bytes[]', name: 'data', type: 'bytes[]' }],
128
+ name: 'multicall',
129
+ outputs: [{ internalType: 'bytes[]', name: 'results', type: 'bytes[]' }],
130
+ stateMutability: 'payable',
131
+ type: 'function',
132
+ },
133
+ {
134
+ inputs: [],
135
+ name: 'refundETH',
136
+ outputs: [],
137
+ stateMutability: 'payable',
138
+ type: 'function',
139
+ },
140
+ {
141
+ inputs: [
142
+ { internalType: 'address', name: 'token', type: 'address' },
143
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
144
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
145
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
146
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
147
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
148
+ ],
149
+ name: 'selfPermit',
150
+ outputs: [],
151
+ stateMutability: 'payable',
152
+ type: 'function',
153
+ },
154
+ {
155
+ inputs: [
156
+ { internalType: 'address', name: 'token', type: 'address' },
157
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
158
+ { internalType: 'uint256', name: 'expiry', type: 'uint256' },
159
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
160
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
161
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
162
+ ],
163
+ name: 'selfPermitAllowed',
164
+ outputs: [],
165
+ stateMutability: 'payable',
166
+ type: 'function',
167
+ },
168
+ {
169
+ inputs: [
170
+ { internalType: 'address', name: 'token', type: 'address' },
171
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
172
+ { internalType: 'uint256', name: 'expiry', type: 'uint256' },
173
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
174
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
175
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
176
+ ],
177
+ name: 'selfPermitAllowedIfNecessary',
178
+ outputs: [],
179
+ stateMutability: 'payable',
180
+ type: 'function',
181
+ },
182
+ {
183
+ inputs: [
184
+ { internalType: 'address', name: 'token', type: 'address' },
185
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
186
+ { internalType: 'uint256', name: 'deadline', type: 'uint256' },
187
+ { internalType: 'uint8', name: 'v', type: 'uint8' },
188
+ { internalType: 'bytes32', name: 'r', type: 'bytes32' },
189
+ { internalType: 'bytes32', name: 's', type: 'bytes32' },
190
+ ],
191
+ name: 'selfPermitIfNecessary',
192
+ outputs: [],
193
+ stateMutability: 'payable',
194
+ type: 'function',
195
+ },
196
+ {
197
+ inputs: [
198
+ { internalType: 'address', name: 'token', type: 'address' },
199
+ { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' },
200
+ { internalType: 'address', name: 'recipient', type: 'address' },
201
+ ],
202
+ name: 'sweepToken',
203
+ outputs: [],
204
+ stateMutability: 'payable',
205
+ type: 'function',
206
+ },
207
+ {
208
+ inputs: [
209
+ { internalType: 'address', name: 'token', type: 'address' },
210
+ { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' },
211
+ { internalType: 'address', name: 'recipient', type: 'address' },
212
+ { internalType: 'uint256', name: 'feeBips', type: 'uint256' },
213
+ { internalType: 'address', name: 'feeRecipient', type: 'address' },
214
+ ],
215
+ name: 'sweepTokenWithFee',
216
+ outputs: [],
217
+ stateMutability: 'payable',
218
+ type: 'function',
219
+ },
220
+ {
221
+ inputs: [
222
+ { internalType: 'int256', name: 'amount0Delta', type: 'int256' },
223
+ { internalType: 'int256', name: 'amount1Delta', type: 'int256' },
224
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
225
+ ],
226
+ name: 'uniswapV3SwapCallback',
227
+ outputs: [],
228
+ stateMutability: 'nonpayable',
229
+ type: 'function',
230
+ },
231
+ {
232
+ inputs: [
233
+ { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' },
234
+ { internalType: 'address', name: 'recipient', type: 'address' },
235
+ ],
236
+ name: 'unwrapWETH9',
237
+ outputs: [],
238
+ stateMutability: 'payable',
239
+ type: 'function',
240
+ },
241
+ {
242
+ inputs: [
243
+ { internalType: 'uint256', name: 'amountMinimum', type: 'uint256' },
244
+ { internalType: 'address', name: 'recipient', type: 'address' },
245
+ { internalType: 'uint256', name: 'feeBips', type: 'uint256' },
246
+ { internalType: 'address', name: 'feeRecipient', type: 'address' },
247
+ ],
248
+ name: 'unwrapWETH9WithFee',
249
+ outputs: [],
250
+ stateMutability: 'payable',
251
+ type: 'function',
252
+ },
253
+ { stateMutability: 'payable', type: 'receive' },
254
+ ];