@towns-protocol/generated 0.0.213 → 0.0.215
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.
- package/config/deployments.json +2 -0
- package/deployments/gamma/base/addresses/swapRouter.json +3 -0
- package/deployments/omega/base/addresses/swapRouter.json +3 -0
- package/dev/abis/ISwapFacet.abi.json +325 -0
- package/dev/abis/ISwapFacet.abi.ts +325 -0
- package/dev/abis/ISwapFacetBase.abi.json +79 -0
- package/dev/abis/ISwapFacetBase.abi.ts +79 -0
- package/dev/abis/ISwapRouter.abi.json +194 -0
- package/dev/abis/ISwapRouter.abi.ts +194 -0
- package/dev/abis/ISwapRouterBase.abi.json +121 -0
- package/dev/abis/ISwapRouterBase.abi.ts +121 -0
- package/dev/typings/ISwapFacet.ts +415 -0
- package/dev/typings/ISwapRouter.ts +250 -0
- package/dev/typings/factories/ISwapFacet__factory.ts +346 -0
- package/dev/typings/factories/ISwapRouter__factory.ts +215 -0
- package/dev/typings/factories/Roles__factory.ts +1 -1
- package/dev/typings/factories/index.ts +2 -0
- package/dev/typings/index.ts +4 -0
- package/package.json +2 -2
package/config/deployments.json
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
"space": "0x99a177F81902fddc4785c6fc108C8F21BDB2aFe9",
|
|
45
45
|
"spaceFactory": "0x968696BC59431Ef085441641f550C8e2Eaca8BEd",
|
|
46
46
|
"spaceOwner": "0x9dEdb330A126C6dF2893a33018bb81aFE8573805",
|
|
47
|
+
"swapRouter": "0x4997CC907512275b8D7E1c682a46f17d676F4913",
|
|
47
48
|
"towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
|
|
48
49
|
}
|
|
49
50
|
},
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"space": "0x34f35E1ECA9C00791bF8121A01c20977d8bEB11C",
|
|
70
71
|
"spaceFactory": "0x9978c826d93883701522d2CA645d5436e5654252",
|
|
71
72
|
"spaceOwner": "0x2824D1235d1CbcA6d61C00C3ceeCB9155cd33a42",
|
|
73
|
+
"swapRouter": "0x95A2a333D30c8686dE8D01AC464d6034b9aA7b24",
|
|
72
74
|
"towns": "0x00000000A22C618fd6b4D7E9A335C4B96B189a38"
|
|
73
75
|
}
|
|
74
76
|
},
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "executeSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "params",
|
|
8
|
+
"type": "tuple",
|
|
9
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
10
|
+
"components": [
|
|
11
|
+
{
|
|
12
|
+
"name": "tokenIn",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "tokenOut",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountIn",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "minAmountOut",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "recipient",
|
|
33
|
+
"type": "address",
|
|
34
|
+
"internalType": "address"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "routerParams",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"internalType": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "approveTarget",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "swapData",
|
|
55
|
+
"type": "bytes",
|
|
56
|
+
"internalType": "bytes"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "poster",
|
|
62
|
+
"type": "address",
|
|
63
|
+
"internalType": "address"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "amountOut",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"internalType": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "payable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "function",
|
|
77
|
+
"name": "getSwapFees",
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"name": "treasuryBps",
|
|
82
|
+
"type": "uint16",
|
|
83
|
+
"internalType": "uint16"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "posterBps",
|
|
87
|
+
"type": "uint16",
|
|
88
|
+
"internalType": "uint16"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "collectPosterFeeToSpace",
|
|
92
|
+
"type": "bool",
|
|
93
|
+
"internalType": "bool"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "function",
|
|
100
|
+
"name": "getSwapRouter",
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"outputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "address",
|
|
106
|
+
"internalType": "address"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"stateMutability": "view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "function",
|
|
113
|
+
"name": "setSwapFeeConfig",
|
|
114
|
+
"inputs": [
|
|
115
|
+
{
|
|
116
|
+
"name": "posterFeeBps",
|
|
117
|
+
"type": "uint16",
|
|
118
|
+
"internalType": "uint16"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "collectPosterFeeToSpace",
|
|
122
|
+
"type": "bool",
|
|
123
|
+
"internalType": "bool"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"outputs": [],
|
|
127
|
+
"stateMutability": "nonpayable"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "event",
|
|
131
|
+
"name": "FeeDistribution",
|
|
132
|
+
"inputs": [
|
|
133
|
+
{
|
|
134
|
+
"name": "token",
|
|
135
|
+
"type": "address",
|
|
136
|
+
"indexed": true,
|
|
137
|
+
"internalType": "address"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "treasury",
|
|
141
|
+
"type": "address",
|
|
142
|
+
"indexed": true,
|
|
143
|
+
"internalType": "address"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "poster",
|
|
147
|
+
"type": "address",
|
|
148
|
+
"indexed": true,
|
|
149
|
+
"internalType": "address"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "treasuryAmount",
|
|
153
|
+
"type": "uint256",
|
|
154
|
+
"indexed": false,
|
|
155
|
+
"internalType": "uint256"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "posterAmount",
|
|
159
|
+
"type": "uint256",
|
|
160
|
+
"indexed": false,
|
|
161
|
+
"internalType": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"anonymous": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "event",
|
|
168
|
+
"name": "Swap",
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"name": "router",
|
|
172
|
+
"type": "address",
|
|
173
|
+
"indexed": true,
|
|
174
|
+
"internalType": "address"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "caller",
|
|
178
|
+
"type": "address",
|
|
179
|
+
"indexed": true,
|
|
180
|
+
"internalType": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "tokenIn",
|
|
184
|
+
"type": "address",
|
|
185
|
+
"indexed": false,
|
|
186
|
+
"internalType": "address"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "tokenOut",
|
|
190
|
+
"type": "address",
|
|
191
|
+
"indexed": false,
|
|
192
|
+
"internalType": "address"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "amountIn",
|
|
196
|
+
"type": "uint256",
|
|
197
|
+
"indexed": false,
|
|
198
|
+
"internalType": "uint256"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "amountOut",
|
|
202
|
+
"type": "uint256",
|
|
203
|
+
"indexed": false,
|
|
204
|
+
"internalType": "uint256"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "recipient",
|
|
208
|
+
"type": "address",
|
|
209
|
+
"indexed": false,
|
|
210
|
+
"internalType": "address"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"anonymous": false
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "event",
|
|
217
|
+
"name": "SwapExecuted",
|
|
218
|
+
"inputs": [
|
|
219
|
+
{
|
|
220
|
+
"name": "recipient",
|
|
221
|
+
"type": "address",
|
|
222
|
+
"indexed": true,
|
|
223
|
+
"internalType": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "tokenIn",
|
|
227
|
+
"type": "address",
|
|
228
|
+
"indexed": true,
|
|
229
|
+
"internalType": "address"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "tokenOut",
|
|
233
|
+
"type": "address",
|
|
234
|
+
"indexed": true,
|
|
235
|
+
"internalType": "address"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "amountIn",
|
|
239
|
+
"type": "uint256",
|
|
240
|
+
"indexed": false,
|
|
241
|
+
"internalType": "uint256"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "amountOut",
|
|
245
|
+
"type": "uint256",
|
|
246
|
+
"indexed": false,
|
|
247
|
+
"internalType": "uint256"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "poster",
|
|
251
|
+
"type": "address",
|
|
252
|
+
"indexed": false,
|
|
253
|
+
"internalType": "address"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"anonymous": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "event",
|
|
260
|
+
"name": "SwapFeeConfigUpdated",
|
|
261
|
+
"inputs": [
|
|
262
|
+
{
|
|
263
|
+
"name": "posterFeeBps",
|
|
264
|
+
"type": "uint16",
|
|
265
|
+
"indexed": false,
|
|
266
|
+
"internalType": "uint16"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "collectPosterFeeToSpace",
|
|
270
|
+
"type": "bool",
|
|
271
|
+
"indexed": false,
|
|
272
|
+
"internalType": "bool"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"anonymous": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "event",
|
|
279
|
+
"name": "SwapRouterInitialized",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "spaceFactory",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"indexed": false,
|
|
285
|
+
"internalType": "address"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"anonymous": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "error",
|
|
292
|
+
"name": "SwapFacet__SwapFailed",
|
|
293
|
+
"inputs": []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"type": "error",
|
|
297
|
+
"name": "SwapFacet__SwapRouterNotSet",
|
|
298
|
+
"inputs": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "error",
|
|
302
|
+
"name": "SwapFacet__TotalFeeTooHigh",
|
|
303
|
+
"inputs": []
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "error",
|
|
307
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
308
|
+
"inputs": []
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "error",
|
|
312
|
+
"name": "SwapRouter__InvalidAmount",
|
|
313
|
+
"inputs": []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "error",
|
|
317
|
+
"name": "SwapRouter__InvalidRouter",
|
|
318
|
+
"inputs": []
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "error",
|
|
322
|
+
"name": "SwapRouter__UnexpectedETH",
|
|
323
|
+
"inputs": []
|
|
324
|
+
}
|
|
325
|
+
]
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "function",
|
|
4
|
+
"name": "executeSwap",
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"name": "params",
|
|
8
|
+
"type": "tuple",
|
|
9
|
+
"internalType": "struct ISwapRouterBase.ExactInputParams",
|
|
10
|
+
"components": [
|
|
11
|
+
{
|
|
12
|
+
"name": "tokenIn",
|
|
13
|
+
"type": "address",
|
|
14
|
+
"internalType": "address"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "tokenOut",
|
|
18
|
+
"type": "address",
|
|
19
|
+
"internalType": "address"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "amountIn",
|
|
23
|
+
"type": "uint256",
|
|
24
|
+
"internalType": "uint256"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "minAmountOut",
|
|
28
|
+
"type": "uint256",
|
|
29
|
+
"internalType": "uint256"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "recipient",
|
|
33
|
+
"type": "address",
|
|
34
|
+
"internalType": "address"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "routerParams",
|
|
40
|
+
"type": "tuple",
|
|
41
|
+
"internalType": "struct ISwapRouterBase.RouterParams",
|
|
42
|
+
"components": [
|
|
43
|
+
{
|
|
44
|
+
"name": "router",
|
|
45
|
+
"type": "address",
|
|
46
|
+
"internalType": "address"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "approveTarget",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"internalType": "address"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "swapData",
|
|
55
|
+
"type": "bytes",
|
|
56
|
+
"internalType": "bytes"
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "poster",
|
|
62
|
+
"type": "address",
|
|
63
|
+
"internalType": "address"
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"outputs": [
|
|
67
|
+
{
|
|
68
|
+
"name": "amountOut",
|
|
69
|
+
"type": "uint256",
|
|
70
|
+
"internalType": "uint256"
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"stateMutability": "payable"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"type": "function",
|
|
77
|
+
"name": "getSwapFees",
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"outputs": [
|
|
80
|
+
{
|
|
81
|
+
"name": "treasuryBps",
|
|
82
|
+
"type": "uint16",
|
|
83
|
+
"internalType": "uint16"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "posterBps",
|
|
87
|
+
"type": "uint16",
|
|
88
|
+
"internalType": "uint16"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "collectPosterFeeToSpace",
|
|
92
|
+
"type": "bool",
|
|
93
|
+
"internalType": "bool"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"stateMutability": "view"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"type": "function",
|
|
100
|
+
"name": "getSwapRouter",
|
|
101
|
+
"inputs": [],
|
|
102
|
+
"outputs": [
|
|
103
|
+
{
|
|
104
|
+
"name": "",
|
|
105
|
+
"type": "address",
|
|
106
|
+
"internalType": "address"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"stateMutability": "view"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "function",
|
|
113
|
+
"name": "setSwapFeeConfig",
|
|
114
|
+
"inputs": [
|
|
115
|
+
{
|
|
116
|
+
"name": "posterFeeBps",
|
|
117
|
+
"type": "uint16",
|
|
118
|
+
"internalType": "uint16"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "collectPosterFeeToSpace",
|
|
122
|
+
"type": "bool",
|
|
123
|
+
"internalType": "bool"
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"outputs": [],
|
|
127
|
+
"stateMutability": "nonpayable"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "event",
|
|
131
|
+
"name": "FeeDistribution",
|
|
132
|
+
"inputs": [
|
|
133
|
+
{
|
|
134
|
+
"name": "token",
|
|
135
|
+
"type": "address",
|
|
136
|
+
"indexed": true,
|
|
137
|
+
"internalType": "address"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "treasury",
|
|
141
|
+
"type": "address",
|
|
142
|
+
"indexed": true,
|
|
143
|
+
"internalType": "address"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "poster",
|
|
147
|
+
"type": "address",
|
|
148
|
+
"indexed": true,
|
|
149
|
+
"internalType": "address"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "treasuryAmount",
|
|
153
|
+
"type": "uint256",
|
|
154
|
+
"indexed": false,
|
|
155
|
+
"internalType": "uint256"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "posterAmount",
|
|
159
|
+
"type": "uint256",
|
|
160
|
+
"indexed": false,
|
|
161
|
+
"internalType": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"anonymous": false
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"type": "event",
|
|
168
|
+
"name": "Swap",
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"name": "router",
|
|
172
|
+
"type": "address",
|
|
173
|
+
"indexed": true,
|
|
174
|
+
"internalType": "address"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "caller",
|
|
178
|
+
"type": "address",
|
|
179
|
+
"indexed": true,
|
|
180
|
+
"internalType": "address"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "tokenIn",
|
|
184
|
+
"type": "address",
|
|
185
|
+
"indexed": false,
|
|
186
|
+
"internalType": "address"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "tokenOut",
|
|
190
|
+
"type": "address",
|
|
191
|
+
"indexed": false,
|
|
192
|
+
"internalType": "address"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"name": "amountIn",
|
|
196
|
+
"type": "uint256",
|
|
197
|
+
"indexed": false,
|
|
198
|
+
"internalType": "uint256"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "amountOut",
|
|
202
|
+
"type": "uint256",
|
|
203
|
+
"indexed": false,
|
|
204
|
+
"internalType": "uint256"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "recipient",
|
|
208
|
+
"type": "address",
|
|
209
|
+
"indexed": false,
|
|
210
|
+
"internalType": "address"
|
|
211
|
+
}
|
|
212
|
+
],
|
|
213
|
+
"anonymous": false
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"type": "event",
|
|
217
|
+
"name": "SwapExecuted",
|
|
218
|
+
"inputs": [
|
|
219
|
+
{
|
|
220
|
+
"name": "recipient",
|
|
221
|
+
"type": "address",
|
|
222
|
+
"indexed": true,
|
|
223
|
+
"internalType": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"name": "tokenIn",
|
|
227
|
+
"type": "address",
|
|
228
|
+
"indexed": true,
|
|
229
|
+
"internalType": "address"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"name": "tokenOut",
|
|
233
|
+
"type": "address",
|
|
234
|
+
"indexed": true,
|
|
235
|
+
"internalType": "address"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"name": "amountIn",
|
|
239
|
+
"type": "uint256",
|
|
240
|
+
"indexed": false,
|
|
241
|
+
"internalType": "uint256"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "amountOut",
|
|
245
|
+
"type": "uint256",
|
|
246
|
+
"indexed": false,
|
|
247
|
+
"internalType": "uint256"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"name": "poster",
|
|
251
|
+
"type": "address",
|
|
252
|
+
"indexed": false,
|
|
253
|
+
"internalType": "address"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"anonymous": false
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"type": "event",
|
|
260
|
+
"name": "SwapFeeConfigUpdated",
|
|
261
|
+
"inputs": [
|
|
262
|
+
{
|
|
263
|
+
"name": "posterFeeBps",
|
|
264
|
+
"type": "uint16",
|
|
265
|
+
"indexed": false,
|
|
266
|
+
"internalType": "uint16"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "collectPosterFeeToSpace",
|
|
270
|
+
"type": "bool",
|
|
271
|
+
"indexed": false,
|
|
272
|
+
"internalType": "bool"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"anonymous": false
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"type": "event",
|
|
279
|
+
"name": "SwapRouterInitialized",
|
|
280
|
+
"inputs": [
|
|
281
|
+
{
|
|
282
|
+
"name": "spaceFactory",
|
|
283
|
+
"type": "address",
|
|
284
|
+
"indexed": false,
|
|
285
|
+
"internalType": "address"
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"anonymous": false
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"type": "error",
|
|
292
|
+
"name": "SwapFacet__SwapFailed",
|
|
293
|
+
"inputs": []
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"type": "error",
|
|
297
|
+
"name": "SwapFacet__SwapRouterNotSet",
|
|
298
|
+
"inputs": []
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"type": "error",
|
|
302
|
+
"name": "SwapFacet__TotalFeeTooHigh",
|
|
303
|
+
"inputs": []
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "error",
|
|
307
|
+
"name": "SwapRouter__InsufficientOutput",
|
|
308
|
+
"inputs": []
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"type": "error",
|
|
312
|
+
"name": "SwapRouter__InvalidAmount",
|
|
313
|
+
"inputs": []
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "error",
|
|
317
|
+
"name": "SwapRouter__InvalidRouter",
|
|
318
|
+
"inputs": []
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"type": "error",
|
|
322
|
+
"name": "SwapRouter__UnexpectedETH",
|
|
323
|
+
"inputs": []
|
|
324
|
+
}
|
|
325
|
+
] as const
|