@towns-protocol/generated 0.0.253 → 0.0.256

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.
@@ -229,6 +229,25 @@
229
229
  ],
230
230
  "stateMutability": "view"
231
231
  },
232
+ {
233
+ "type": "function",
234
+ "name": "getAppPrice",
235
+ "inputs": [
236
+ {
237
+ "name": "app",
238
+ "type": "address",
239
+ "internalType": "address"
240
+ }
241
+ ],
242
+ "outputs": [
243
+ {
244
+ "name": "",
245
+ "type": "uint256",
246
+ "internalType": "uint256"
247
+ }
248
+ ],
249
+ "stateMutability": "view"
250
+ },
232
251
  {
233
252
  "type": "function",
234
253
  "name": "getAppSchema",
@@ -229,6 +229,25 @@ export default [
229
229
  ],
230
230
  "stateMutability": "view"
231
231
  },
232
+ {
233
+ "type": "function",
234
+ "name": "getAppPrice",
235
+ "inputs": [
236
+ {
237
+ "name": "app",
238
+ "type": "address",
239
+ "internalType": "address"
240
+ }
241
+ ],
242
+ "outputs": [
243
+ {
244
+ "name": "",
245
+ "type": "uint256",
246
+ "internalType": "uint256"
247
+ }
248
+ ],
249
+ "stateMutability": "view"
250
+ },
232
251
  {
233
252
  "type": "function",
234
253
  "name": "getAppSchema",
@@ -72,6 +72,106 @@
72
72
  ],
73
73
  "stateMutability": "payable"
74
74
  },
75
+ {
76
+ "type": "function",
77
+ "name": "executeSwapWithPermit",
78
+ "inputs": [
79
+ {
80
+ "name": "params",
81
+ "type": "tuple",
82
+ "internalType": "struct ISwapRouterBase.ExactInputParams",
83
+ "components": [
84
+ {
85
+ "name": "tokenIn",
86
+ "type": "address",
87
+ "internalType": "address"
88
+ },
89
+ {
90
+ "name": "tokenOut",
91
+ "type": "address",
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "amountIn",
96
+ "type": "uint256",
97
+ "internalType": "uint256"
98
+ },
99
+ {
100
+ "name": "minAmountOut",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
103
+ },
104
+ {
105
+ "name": "recipient",
106
+ "type": "address",
107
+ "internalType": "address"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "name": "routerParams",
113
+ "type": "tuple",
114
+ "internalType": "struct ISwapRouterBase.RouterParams",
115
+ "components": [
116
+ {
117
+ "name": "router",
118
+ "type": "address",
119
+ "internalType": "address"
120
+ },
121
+ {
122
+ "name": "approveTarget",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "swapData",
128
+ "type": "bytes",
129
+ "internalType": "bytes"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "name": "permit",
135
+ "type": "tuple",
136
+ "internalType": "struct ISwapRouterBase.Permit2Params",
137
+ "components": [
138
+ {
139
+ "name": "owner",
140
+ "type": "address",
141
+ "internalType": "address"
142
+ },
143
+ {
144
+ "name": "nonce",
145
+ "type": "uint256",
146
+ "internalType": "uint256"
147
+ },
148
+ {
149
+ "name": "deadline",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ },
153
+ {
154
+ "name": "signature",
155
+ "type": "bytes",
156
+ "internalType": "bytes"
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "name": "poster",
162
+ "type": "address",
163
+ "internalType": "address"
164
+ }
165
+ ],
166
+ "outputs": [
167
+ {
168
+ "name": "amountOut",
169
+ "type": "uint256",
170
+ "internalType": "uint256"
171
+ }
172
+ ],
173
+ "stateMutability": "payable"
174
+ },
75
175
  {
76
176
  "type": "function",
77
177
  "name": "getSwapFees",
@@ -297,6 +397,11 @@
297
397
  "name": "SwapFacet__TotalFeeTooHigh",
298
398
  "inputs": []
299
399
  },
400
+ {
401
+ "type": "error",
402
+ "name": "SwapFacet__UnexpectedETH",
403
+ "inputs": []
404
+ },
300
405
  {
301
406
  "type": "error",
302
407
  "name": "SwapRouter__InsufficientOutput",
@@ -322,6 +427,11 @@
322
427
  "name": "SwapRouter__NativeTokenNotSupportedWithPermit",
323
428
  "inputs": []
324
429
  },
430
+ {
431
+ "type": "error",
432
+ "name": "SwapRouter__RecipientRequired",
433
+ "inputs": []
434
+ },
325
435
  {
326
436
  "type": "error",
327
437
  "name": "SwapRouter__UnexpectedETH",
@@ -72,6 +72,106 @@ export default [
72
72
  ],
73
73
  "stateMutability": "payable"
74
74
  },
75
+ {
76
+ "type": "function",
77
+ "name": "executeSwapWithPermit",
78
+ "inputs": [
79
+ {
80
+ "name": "params",
81
+ "type": "tuple",
82
+ "internalType": "struct ISwapRouterBase.ExactInputParams",
83
+ "components": [
84
+ {
85
+ "name": "tokenIn",
86
+ "type": "address",
87
+ "internalType": "address"
88
+ },
89
+ {
90
+ "name": "tokenOut",
91
+ "type": "address",
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "amountIn",
96
+ "type": "uint256",
97
+ "internalType": "uint256"
98
+ },
99
+ {
100
+ "name": "minAmountOut",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
103
+ },
104
+ {
105
+ "name": "recipient",
106
+ "type": "address",
107
+ "internalType": "address"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "name": "routerParams",
113
+ "type": "tuple",
114
+ "internalType": "struct ISwapRouterBase.RouterParams",
115
+ "components": [
116
+ {
117
+ "name": "router",
118
+ "type": "address",
119
+ "internalType": "address"
120
+ },
121
+ {
122
+ "name": "approveTarget",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "swapData",
128
+ "type": "bytes",
129
+ "internalType": "bytes"
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "name": "permit",
135
+ "type": "tuple",
136
+ "internalType": "struct ISwapRouterBase.Permit2Params",
137
+ "components": [
138
+ {
139
+ "name": "owner",
140
+ "type": "address",
141
+ "internalType": "address"
142
+ },
143
+ {
144
+ "name": "nonce",
145
+ "type": "uint256",
146
+ "internalType": "uint256"
147
+ },
148
+ {
149
+ "name": "deadline",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ },
153
+ {
154
+ "name": "signature",
155
+ "type": "bytes",
156
+ "internalType": "bytes"
157
+ }
158
+ ]
159
+ },
160
+ {
161
+ "name": "poster",
162
+ "type": "address",
163
+ "internalType": "address"
164
+ }
165
+ ],
166
+ "outputs": [
167
+ {
168
+ "name": "amountOut",
169
+ "type": "uint256",
170
+ "internalType": "uint256"
171
+ }
172
+ ],
173
+ "stateMutability": "payable"
174
+ },
75
175
  {
76
176
  "type": "function",
77
177
  "name": "getSwapFees",
@@ -297,6 +397,11 @@ export default [
297
397
  "name": "SwapFacet__TotalFeeTooHigh",
298
398
  "inputs": []
299
399
  },
400
+ {
401
+ "type": "error",
402
+ "name": "SwapFacet__UnexpectedETH",
403
+ "inputs": []
404
+ },
300
405
  {
301
406
  "type": "error",
302
407
  "name": "SwapRouter__InsufficientOutput",
@@ -322,6 +427,11 @@ export default [
322
427
  "name": "SwapRouter__NativeTokenNotSupportedWithPermit",
323
428
  "inputs": []
324
429
  },
430
+ {
431
+ "type": "error",
432
+ "name": "SwapRouter__RecipientRequired",
433
+ "inputs": []
434
+ },
325
435
  {
326
436
  "type": "error",
327
437
  "name": "SwapRouter__UnexpectedETH",
@@ -70,5 +70,10 @@
70
70
  "type": "error",
71
71
  "name": "SwapFacet__TotalFeeTooHigh",
72
72
  "inputs": []
73
+ },
74
+ {
75
+ "type": "error",
76
+ "name": "SwapFacet__UnexpectedETH",
77
+ "inputs": []
73
78
  }
74
79
  ]
@@ -70,5 +70,10 @@ export default [
70
70
  "type": "error",
71
71
  "name": "SwapFacet__TotalFeeTooHigh",
72
72
  "inputs": []
73
+ },
74
+ {
75
+ "type": "error",
76
+ "name": "SwapFacet__UnexpectedETH",
77
+ "inputs": []
73
78
  }
74
79
  ] as const
@@ -77,6 +77,111 @@
77
77
  ],
78
78
  "stateMutability": "payable"
79
79
  },
80
+ {
81
+ "type": "function",
82
+ "name": "executeSwapWithPermit",
83
+ "inputs": [
84
+ {
85
+ "name": "params",
86
+ "type": "tuple",
87
+ "internalType": "struct ISwapRouterBase.ExactInputParams",
88
+ "components": [
89
+ {
90
+ "name": "tokenIn",
91
+ "type": "address",
92
+ "internalType": "address"
93
+ },
94
+ {
95
+ "name": "tokenOut",
96
+ "type": "address",
97
+ "internalType": "address"
98
+ },
99
+ {
100
+ "name": "amountIn",
101
+ "type": "uint256",
102
+ "internalType": "uint256"
103
+ },
104
+ {
105
+ "name": "minAmountOut",
106
+ "type": "uint256",
107
+ "internalType": "uint256"
108
+ },
109
+ {
110
+ "name": "recipient",
111
+ "type": "address",
112
+ "internalType": "address"
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "name": "routerParams",
118
+ "type": "tuple",
119
+ "internalType": "struct ISwapRouterBase.RouterParams",
120
+ "components": [
121
+ {
122
+ "name": "router",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "approveTarget",
128
+ "type": "address",
129
+ "internalType": "address"
130
+ },
131
+ {
132
+ "name": "swapData",
133
+ "type": "bytes",
134
+ "internalType": "bytes"
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ "name": "permit",
140
+ "type": "tuple",
141
+ "internalType": "struct ISwapRouterBase.Permit2Params",
142
+ "components": [
143
+ {
144
+ "name": "owner",
145
+ "type": "address",
146
+ "internalType": "address"
147
+ },
148
+ {
149
+ "name": "nonce",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ },
153
+ {
154
+ "name": "deadline",
155
+ "type": "uint256",
156
+ "internalType": "uint256"
157
+ },
158
+ {
159
+ "name": "signature",
160
+ "type": "bytes",
161
+ "internalType": "bytes"
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "poster",
167
+ "type": "address",
168
+ "internalType": "address"
169
+ }
170
+ ],
171
+ "outputs": [
172
+ {
173
+ "name": "amountOut",
174
+ "type": "uint256",
175
+ "internalType": "uint256"
176
+ },
177
+ {
178
+ "name": "protocolFee",
179
+ "type": "uint256",
180
+ "internalType": "uint256"
181
+ }
182
+ ],
183
+ "stateMutability": "payable"
184
+ },
80
185
  {
81
186
  "type": "function",
82
187
  "name": "getETHInputFees",
@@ -116,6 +221,118 @@
116
221
  ],
117
222
  "stateMutability": "view"
118
223
  },
224
+ {
225
+ "type": "function",
226
+ "name": "getPermit2MessageHash",
227
+ "inputs": [
228
+ {
229
+ "name": "params",
230
+ "type": "tuple",
231
+ "internalType": "struct ISwapRouterBase.ExactInputParams",
232
+ "components": [
233
+ {
234
+ "name": "tokenIn",
235
+ "type": "address",
236
+ "internalType": "address"
237
+ },
238
+ {
239
+ "name": "tokenOut",
240
+ "type": "address",
241
+ "internalType": "address"
242
+ },
243
+ {
244
+ "name": "amountIn",
245
+ "type": "uint256",
246
+ "internalType": "uint256"
247
+ },
248
+ {
249
+ "name": "minAmountOut",
250
+ "type": "uint256",
251
+ "internalType": "uint256"
252
+ },
253
+ {
254
+ "name": "recipient",
255
+ "type": "address",
256
+ "internalType": "address"
257
+ }
258
+ ]
259
+ },
260
+ {
261
+ "name": "routerParams",
262
+ "type": "tuple",
263
+ "internalType": "struct ISwapRouterBase.RouterParams",
264
+ "components": [
265
+ {
266
+ "name": "router",
267
+ "type": "address",
268
+ "internalType": "address"
269
+ },
270
+ {
271
+ "name": "approveTarget",
272
+ "type": "address",
273
+ "internalType": "address"
274
+ },
275
+ {
276
+ "name": "swapData",
277
+ "type": "bytes",
278
+ "internalType": "bytes"
279
+ }
280
+ ]
281
+ },
282
+ {
283
+ "name": "poster",
284
+ "type": "address",
285
+ "internalType": "address"
286
+ },
287
+ {
288
+ "name": "amount",
289
+ "type": "uint256",
290
+ "internalType": "uint256"
291
+ },
292
+ {
293
+ "name": "nonce",
294
+ "type": "uint256",
295
+ "internalType": "uint256"
296
+ },
297
+ {
298
+ "name": "deadline",
299
+ "type": "uint256",
300
+ "internalType": "uint256"
301
+ }
302
+ ],
303
+ "outputs": [
304
+ {
305
+ "name": "messageHash",
306
+ "type": "bytes32",
307
+ "internalType": "bytes32"
308
+ }
309
+ ],
310
+ "stateMutability": "view"
311
+ },
312
+ {
313
+ "type": "function",
314
+ "name": "getPermit2Nonce",
315
+ "inputs": [
316
+ {
317
+ "name": "owner",
318
+ "type": "address",
319
+ "internalType": "address"
320
+ },
321
+ {
322
+ "name": "startNonce",
323
+ "type": "uint256",
324
+ "internalType": "uint256"
325
+ }
326
+ ],
327
+ "outputs": [
328
+ {
329
+ "name": "nonce",
330
+ "type": "uint256",
331
+ "internalType": "uint256"
332
+ }
333
+ ],
334
+ "stateMutability": "view"
335
+ },
119
336
  {
120
337
  "type": "event",
121
338
  "name": "FeeDistribution",
@@ -240,6 +457,11 @@
240
457
  "name": "SwapRouter__NativeTokenNotSupportedWithPermit",
241
458
  "inputs": []
242
459
  },
460
+ {
461
+ "type": "error",
462
+ "name": "SwapRouter__RecipientRequired",
463
+ "inputs": []
464
+ },
243
465
  {
244
466
  "type": "error",
245
467
  "name": "SwapRouter__UnexpectedETH",