@towns-protocol/generated 0.0.282 → 0.0.284
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/dev/abis/DropFacet.abi.json +5 -0
- package/dev/abis/DropFacet.abi.ts +5 -0
- package/dev/abis/ISwapFacet.abi.json +22 -5
- package/dev/abis/ISwapFacet.abi.ts +22 -5
- package/dev/abis/ISwapRouter.abi.json +37 -8
- package/dev/abis/ISwapRouter.abi.ts +37 -8
- package/dev/abis/ISwapRouterBase.abi.json +5 -0
- package/dev/abis/ISwapRouterBase.abi.ts +5 -0
- package/dev/abis/MembershipFacet.abi.json +23 -0
- package/dev/abis/MembershipFacet.abi.ts +23 -0
- package/dev/abis/SimpleApp.abi.json +65 -0
- package/dev/abis/SimpleApp.abi.ts +65 -0
- package/dev/typings/ISwapFacet.ts +18 -8
- package/dev/typings/ISwapRouter.ts +25 -15
- package/dev/typings/MembershipFacet.ts +51 -8
- package/dev/typings/SimpleApp.ts +79 -0
- package/dev/typings/factories/DropFacet__factory.ts +6 -1
- package/dev/typings/factories/IDropFacet__factory.ts +5 -0
- package/dev/typings/factories/ISwapFacet__factory.ts +22 -5
- package/dev/typings/factories/ISwapRouter__factory.ts +37 -8
- package/dev/typings/factories/Member__factory.ts +1 -1
- package/dev/typings/factories/MembershipFacet__factory.ts +24 -1
- package/dev/typings/factories/MockLegacyArchitect__factory.ts +1 -1
- package/dev/typings/factories/SimpleApp__factory.ts +66 -1
- package/dev/typings/factories/UserEntitlement__factory.ts +1 -1
- package/dev/typings/factories/multichain/Towns__factory.ts +1677 -0
- package/dev/typings/factories/multichain/index.ts +4 -0
- package/dev/typings/multichain/Towns.ts +1731 -0
- package/dev/typings/multichain/index.ts +4 -0
- package/package.json +9 -9
|
@@ -703,6 +703,11 @@
|
|
|
703
703
|
"name": "DropFacet__NoActiveClaimCondition",
|
|
704
704
|
"inputs": []
|
|
705
705
|
},
|
|
706
|
+
{
|
|
707
|
+
"type": "error",
|
|
708
|
+
"name": "DropFacet__NotClaimingAccount",
|
|
709
|
+
"inputs": []
|
|
710
|
+
},
|
|
706
711
|
{
|
|
707
712
|
"type": "error",
|
|
708
713
|
"name": "DropFacet__QuantityMustBeGreaterThanZero",
|
|
@@ -703,6 +703,11 @@ export default [
|
|
|
703
703
|
"name": "DropFacet__NoActiveClaimCondition",
|
|
704
704
|
"inputs": []
|
|
705
705
|
},
|
|
706
|
+
{
|
|
707
|
+
"type": "error",
|
|
708
|
+
"name": "DropFacet__NotClaimingAccount",
|
|
709
|
+
"inputs": []
|
|
710
|
+
},
|
|
706
711
|
{
|
|
707
712
|
"type": "error",
|
|
708
713
|
"name": "DropFacet__QuantityMustBeGreaterThanZero",
|
|
@@ -130,6 +130,23 @@
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"name": "posterFee",
|
|
135
|
+
"type": "tuple",
|
|
136
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
137
|
+
"components": [
|
|
138
|
+
{
|
|
139
|
+
"name": "recipient",
|
|
140
|
+
"type": "address",
|
|
141
|
+
"internalType": "address"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "feeBps",
|
|
145
|
+
"type": "uint16",
|
|
146
|
+
"internalType": "uint16"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
133
150
|
{
|
|
134
151
|
"name": "permit",
|
|
135
152
|
"type": "tuple",
|
|
@@ -156,11 +173,6 @@
|
|
|
156
173
|
"internalType": "bytes"
|
|
157
174
|
}
|
|
158
175
|
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "poster",
|
|
162
|
-
"type": "address",
|
|
163
|
-
"internalType": "address"
|
|
164
176
|
}
|
|
165
177
|
],
|
|
166
178
|
"outputs": [
|
|
@@ -432,6 +444,11 @@
|
|
|
432
444
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
433
445
|
"inputs": []
|
|
434
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"type": "error",
|
|
449
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
450
|
+
"inputs": []
|
|
451
|
+
},
|
|
435
452
|
{
|
|
436
453
|
"type": "error",
|
|
437
454
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -130,6 +130,23 @@ export default [
|
|
|
130
130
|
}
|
|
131
131
|
]
|
|
132
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"name": "posterFee",
|
|
135
|
+
"type": "tuple",
|
|
136
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
137
|
+
"components": [
|
|
138
|
+
{
|
|
139
|
+
"name": "recipient",
|
|
140
|
+
"type": "address",
|
|
141
|
+
"internalType": "address"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"name": "feeBps",
|
|
145
|
+
"type": "uint16",
|
|
146
|
+
"internalType": "uint16"
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
133
150
|
{
|
|
134
151
|
"name": "permit",
|
|
135
152
|
"type": "tuple",
|
|
@@ -156,11 +173,6 @@ export default [
|
|
|
156
173
|
"internalType": "bytes"
|
|
157
174
|
}
|
|
158
175
|
]
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"name": "poster",
|
|
162
|
-
"type": "address",
|
|
163
|
-
"internalType": "address"
|
|
164
176
|
}
|
|
165
177
|
],
|
|
166
178
|
"outputs": [
|
|
@@ -432,6 +444,11 @@ export default [
|
|
|
432
444
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
433
445
|
"inputs": []
|
|
434
446
|
},
|
|
447
|
+
{
|
|
448
|
+
"type": "error",
|
|
449
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
450
|
+
"inputs": []
|
|
451
|
+
},
|
|
435
452
|
{
|
|
436
453
|
"type": "error",
|
|
437
454
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -135,6 +135,23 @@
|
|
|
135
135
|
}
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
"name": "posterFee",
|
|
140
|
+
"type": "tuple",
|
|
141
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
142
|
+
"components": [
|
|
143
|
+
{
|
|
144
|
+
"name": "recipient",
|
|
145
|
+
"type": "address",
|
|
146
|
+
"internalType": "address"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "feeBps",
|
|
150
|
+
"type": "uint16",
|
|
151
|
+
"internalType": "uint16"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
138
155
|
{
|
|
139
156
|
"name": "permit",
|
|
140
157
|
"type": "tuple",
|
|
@@ -161,11 +178,6 @@
|
|
|
161
178
|
"internalType": "bytes"
|
|
162
179
|
}
|
|
163
180
|
]
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "poster",
|
|
167
|
-
"type": "address",
|
|
168
|
-
"internalType": "address"
|
|
169
181
|
}
|
|
170
182
|
],
|
|
171
183
|
"outputs": [
|
|
@@ -280,9 +292,21 @@
|
|
|
280
292
|
]
|
|
281
293
|
},
|
|
282
294
|
{
|
|
283
|
-
"name": "
|
|
284
|
-
"type": "
|
|
285
|
-
"internalType": "
|
|
295
|
+
"name": "posterFee",
|
|
296
|
+
"type": "tuple",
|
|
297
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
298
|
+
"components": [
|
|
299
|
+
{
|
|
300
|
+
"name": "recipient",
|
|
301
|
+
"type": "address",
|
|
302
|
+
"internalType": "address"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "feeBps",
|
|
306
|
+
"type": "uint16",
|
|
307
|
+
"internalType": "uint16"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
286
310
|
},
|
|
287
311
|
{
|
|
288
312
|
"name": "amount",
|
|
@@ -457,6 +481,11 @@
|
|
|
457
481
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
458
482
|
"inputs": []
|
|
459
483
|
},
|
|
484
|
+
{
|
|
485
|
+
"type": "error",
|
|
486
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
487
|
+
"inputs": []
|
|
488
|
+
},
|
|
460
489
|
{
|
|
461
490
|
"type": "error",
|
|
462
491
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -135,6 +135,23 @@ export default [
|
|
|
135
135
|
}
|
|
136
136
|
]
|
|
137
137
|
},
|
|
138
|
+
{
|
|
139
|
+
"name": "posterFee",
|
|
140
|
+
"type": "tuple",
|
|
141
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
142
|
+
"components": [
|
|
143
|
+
{
|
|
144
|
+
"name": "recipient",
|
|
145
|
+
"type": "address",
|
|
146
|
+
"internalType": "address"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "feeBps",
|
|
150
|
+
"type": "uint16",
|
|
151
|
+
"internalType": "uint16"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
},
|
|
138
155
|
{
|
|
139
156
|
"name": "permit",
|
|
140
157
|
"type": "tuple",
|
|
@@ -161,11 +178,6 @@ export default [
|
|
|
161
178
|
"internalType": "bytes"
|
|
162
179
|
}
|
|
163
180
|
]
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"name": "poster",
|
|
167
|
-
"type": "address",
|
|
168
|
-
"internalType": "address"
|
|
169
181
|
}
|
|
170
182
|
],
|
|
171
183
|
"outputs": [
|
|
@@ -280,9 +292,21 @@ export default [
|
|
|
280
292
|
]
|
|
281
293
|
},
|
|
282
294
|
{
|
|
283
|
-
"name": "
|
|
284
|
-
"type": "
|
|
285
|
-
"internalType": "
|
|
295
|
+
"name": "posterFee",
|
|
296
|
+
"type": "tuple",
|
|
297
|
+
"internalType": "struct ISwapRouterBase.FeeConfig",
|
|
298
|
+
"components": [
|
|
299
|
+
{
|
|
300
|
+
"name": "recipient",
|
|
301
|
+
"type": "address",
|
|
302
|
+
"internalType": "address"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"name": "feeBps",
|
|
306
|
+
"type": "uint16",
|
|
307
|
+
"internalType": "uint16"
|
|
308
|
+
}
|
|
309
|
+
]
|
|
286
310
|
},
|
|
287
311
|
{
|
|
288
312
|
"name": "amount",
|
|
@@ -457,6 +481,11 @@ export default [
|
|
|
457
481
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
458
482
|
"inputs": []
|
|
459
483
|
},
|
|
484
|
+
{
|
|
485
|
+
"type": "error",
|
|
486
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
487
|
+
"inputs": []
|
|
488
|
+
},
|
|
460
489
|
{
|
|
461
490
|
"type": "error",
|
|
462
491
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -123,6 +123,11 @@
|
|
|
123
123
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
124
124
|
"inputs": []
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"type": "error",
|
|
128
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
129
|
+
"inputs": []
|
|
130
|
+
},
|
|
126
131
|
{
|
|
127
132
|
"type": "error",
|
|
128
133
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -123,6 +123,11 @@ export default [
|
|
|
123
123
|
"name": "SwapRouter__NativeTokenNotSupportedWithPermit",
|
|
124
124
|
"inputs": []
|
|
125
125
|
},
|
|
126
|
+
{
|
|
127
|
+
"type": "error",
|
|
128
|
+
"name": "SwapRouter__PosterFeeMismatch",
|
|
129
|
+
"inputs": []
|
|
130
|
+
},
|
|
126
131
|
{
|
|
127
132
|
"type": "error",
|
|
128
133
|
"name": "SwapRouter__RecipientRequired",
|
|
@@ -154,6 +154,24 @@
|
|
|
154
154
|
],
|
|
155
155
|
"stateMutability": "view"
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"type": "function",
|
|
159
|
+
"name": "joinSpace",
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"name": "action",
|
|
163
|
+
"type": "uint8",
|
|
164
|
+
"internalType": "enum IMembershipBase.JoinType"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "data",
|
|
168
|
+
"type": "bytes",
|
|
169
|
+
"internalType": "bytes"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"outputs": [],
|
|
173
|
+
"stateMutability": "payable"
|
|
174
|
+
},
|
|
157
175
|
{
|
|
158
176
|
"type": "function",
|
|
159
177
|
"name": "joinSpace",
|
|
@@ -1080,6 +1098,11 @@
|
|
|
1080
1098
|
"name": "Membership__InsufficientPayment",
|
|
1081
1099
|
"inputs": []
|
|
1082
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
"type": "error",
|
|
1103
|
+
"name": "Membership__InvalidAction",
|
|
1104
|
+
"inputs": []
|
|
1105
|
+
},
|
|
1083
1106
|
{
|
|
1084
1107
|
"type": "error",
|
|
1085
1108
|
"name": "Membership__InvalidAddress",
|
|
@@ -154,6 +154,24 @@ export default [
|
|
|
154
154
|
],
|
|
155
155
|
"stateMutability": "view"
|
|
156
156
|
},
|
|
157
|
+
{
|
|
158
|
+
"type": "function",
|
|
159
|
+
"name": "joinSpace",
|
|
160
|
+
"inputs": [
|
|
161
|
+
{
|
|
162
|
+
"name": "action",
|
|
163
|
+
"type": "uint8",
|
|
164
|
+
"internalType": "enum IMembershipBase.JoinType"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "data",
|
|
168
|
+
"type": "bytes",
|
|
169
|
+
"internalType": "bytes"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"outputs": [],
|
|
173
|
+
"stateMutability": "payable"
|
|
174
|
+
},
|
|
157
175
|
{
|
|
158
176
|
"type": "function",
|
|
159
177
|
"name": "joinSpace",
|
|
@@ -1080,6 +1098,11 @@ export default [
|
|
|
1080
1098
|
"name": "Membership__InsufficientPayment",
|
|
1081
1099
|
"inputs": []
|
|
1082
1100
|
},
|
|
1101
|
+
{
|
|
1102
|
+
"type": "error",
|
|
1103
|
+
"name": "Membership__InvalidAction",
|
|
1104
|
+
"inputs": []
|
|
1105
|
+
},
|
|
1083
1106
|
{
|
|
1084
1107
|
"type": "error",
|
|
1085
1108
|
"name": "Membership__InvalidAddress",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"type": "receive",
|
|
4
|
+
"stateMutability": "payable"
|
|
5
|
+
},
|
|
2
6
|
{
|
|
3
7
|
"type": "function",
|
|
4
8
|
"name": "accessDuration",
|
|
@@ -308,6 +312,19 @@
|
|
|
308
312
|
"outputs": [],
|
|
309
313
|
"stateMutability": "nonpayable"
|
|
310
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"type": "function",
|
|
317
|
+
"name": "withdrawETH",
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"name": "recipient",
|
|
321
|
+
"type": "address",
|
|
322
|
+
"internalType": "address"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"outputs": [],
|
|
326
|
+
"stateMutability": "nonpayable"
|
|
327
|
+
},
|
|
311
328
|
{
|
|
312
329
|
"type": "event",
|
|
313
330
|
"name": "Initialized",
|
|
@@ -366,6 +383,44 @@
|
|
|
366
383
|
],
|
|
367
384
|
"anonymous": false
|
|
368
385
|
},
|
|
386
|
+
{
|
|
387
|
+
"type": "event",
|
|
388
|
+
"name": "PricingUpdated",
|
|
389
|
+
"inputs": [
|
|
390
|
+
{
|
|
391
|
+
"name": "installPrice",
|
|
392
|
+
"type": "uint256",
|
|
393
|
+
"indexed": false,
|
|
394
|
+
"internalType": "uint256"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "accessDuration",
|
|
398
|
+
"type": "uint48",
|
|
399
|
+
"indexed": false,
|
|
400
|
+
"internalType": "uint48"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"anonymous": false
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "event",
|
|
407
|
+
"name": "Withdrawal",
|
|
408
|
+
"inputs": [
|
|
409
|
+
{
|
|
410
|
+
"name": "recipient",
|
|
411
|
+
"type": "address",
|
|
412
|
+
"indexed": true,
|
|
413
|
+
"internalType": "address"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "amount",
|
|
417
|
+
"type": "uint256",
|
|
418
|
+
"indexed": false,
|
|
419
|
+
"internalType": "uint256"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"anonymous": false
|
|
423
|
+
},
|
|
369
424
|
{
|
|
370
425
|
"type": "error",
|
|
371
426
|
"name": "AlreadyInitialized",
|
|
@@ -381,6 +436,11 @@
|
|
|
381
436
|
"name": "NewOwnerIsZeroAddress",
|
|
382
437
|
"inputs": []
|
|
383
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"type": "error",
|
|
441
|
+
"name": "NoBalanceToWithdraw",
|
|
442
|
+
"inputs": []
|
|
443
|
+
},
|
|
384
444
|
{
|
|
385
445
|
"type": "error",
|
|
386
446
|
"name": "NoHandoverRequest",
|
|
@@ -395,5 +455,10 @@
|
|
|
395
455
|
"type": "error",
|
|
396
456
|
"name": "Unauthorized",
|
|
397
457
|
"inputs": []
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "error",
|
|
461
|
+
"name": "ZeroAddress",
|
|
462
|
+
"inputs": []
|
|
398
463
|
}
|
|
399
464
|
]
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default [
|
|
2
|
+
{
|
|
3
|
+
"type": "receive",
|
|
4
|
+
"stateMutability": "payable"
|
|
5
|
+
},
|
|
2
6
|
{
|
|
3
7
|
"type": "function",
|
|
4
8
|
"name": "accessDuration",
|
|
@@ -308,6 +312,19 @@ export default [
|
|
|
308
312
|
"outputs": [],
|
|
309
313
|
"stateMutability": "nonpayable"
|
|
310
314
|
},
|
|
315
|
+
{
|
|
316
|
+
"type": "function",
|
|
317
|
+
"name": "withdrawETH",
|
|
318
|
+
"inputs": [
|
|
319
|
+
{
|
|
320
|
+
"name": "recipient",
|
|
321
|
+
"type": "address",
|
|
322
|
+
"internalType": "address"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"outputs": [],
|
|
326
|
+
"stateMutability": "nonpayable"
|
|
327
|
+
},
|
|
311
328
|
{
|
|
312
329
|
"type": "event",
|
|
313
330
|
"name": "Initialized",
|
|
@@ -366,6 +383,44 @@ export default [
|
|
|
366
383
|
],
|
|
367
384
|
"anonymous": false
|
|
368
385
|
},
|
|
386
|
+
{
|
|
387
|
+
"type": "event",
|
|
388
|
+
"name": "PricingUpdated",
|
|
389
|
+
"inputs": [
|
|
390
|
+
{
|
|
391
|
+
"name": "installPrice",
|
|
392
|
+
"type": "uint256",
|
|
393
|
+
"indexed": false,
|
|
394
|
+
"internalType": "uint256"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "accessDuration",
|
|
398
|
+
"type": "uint48",
|
|
399
|
+
"indexed": false,
|
|
400
|
+
"internalType": "uint48"
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"anonymous": false
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"type": "event",
|
|
407
|
+
"name": "Withdrawal",
|
|
408
|
+
"inputs": [
|
|
409
|
+
{
|
|
410
|
+
"name": "recipient",
|
|
411
|
+
"type": "address",
|
|
412
|
+
"indexed": true,
|
|
413
|
+
"internalType": "address"
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "amount",
|
|
417
|
+
"type": "uint256",
|
|
418
|
+
"indexed": false,
|
|
419
|
+
"internalType": "uint256"
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
"anonymous": false
|
|
423
|
+
},
|
|
369
424
|
{
|
|
370
425
|
"type": "error",
|
|
371
426
|
"name": "AlreadyInitialized",
|
|
@@ -381,6 +436,11 @@ export default [
|
|
|
381
436
|
"name": "NewOwnerIsZeroAddress",
|
|
382
437
|
"inputs": []
|
|
383
438
|
},
|
|
439
|
+
{
|
|
440
|
+
"type": "error",
|
|
441
|
+
"name": "NoBalanceToWithdraw",
|
|
442
|
+
"inputs": []
|
|
443
|
+
},
|
|
384
444
|
{
|
|
385
445
|
"type": "error",
|
|
386
446
|
"name": "NoHandoverRequest",
|
|
@@ -395,5 +455,10 @@ export default [
|
|
|
395
455
|
"type": "error",
|
|
396
456
|
"name": "Unauthorized",
|
|
397
457
|
"inputs": []
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
"type": "error",
|
|
461
|
+
"name": "ZeroAddress",
|
|
462
|
+
"inputs": []
|
|
398
463
|
}
|
|
399
464
|
] as const
|
|
@@ -63,6 +63,16 @@ export declare namespace ISwapRouterBase {
|
|
|
63
63
|
swapData: string;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
+
export type FeeConfigStruct = {
|
|
67
|
+
recipient: PromiseOrValue<string>;
|
|
68
|
+
feeBps: PromiseOrValue<BigNumberish>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type FeeConfigStructOutput = [string, number] & {
|
|
72
|
+
recipient: string;
|
|
73
|
+
feeBps: number;
|
|
74
|
+
};
|
|
75
|
+
|
|
66
76
|
export type Permit2ParamsStruct = {
|
|
67
77
|
owner: PromiseOrValue<string>;
|
|
68
78
|
nonce: PromiseOrValue<BigNumberish>;
|
|
@@ -86,7 +96,7 @@ export declare namespace ISwapRouterBase {
|
|
|
86
96
|
export interface ISwapFacetInterface extends utils.Interface {
|
|
87
97
|
functions: {
|
|
88
98
|
"executeSwap((address,address,uint256,uint256,address),(address,address,bytes),address)": FunctionFragment;
|
|
89
|
-
"executeSwapWithPermit((address,address,uint256,uint256,address),(address,address,bytes),(address,uint256,uint256,bytes)
|
|
99
|
+
"executeSwapWithPermit((address,address,uint256,uint256,address),(address,address,bytes),(address,uint16),(address,uint256,uint256,bytes))": FunctionFragment;
|
|
90
100
|
"getSwapFees()": FunctionFragment;
|
|
91
101
|
"getSwapRouter()": FunctionFragment;
|
|
92
102
|
"setSwapFeeConfig(uint16,bool)": FunctionFragment;
|
|
@@ -114,8 +124,8 @@ export interface ISwapFacetInterface extends utils.Interface {
|
|
|
114
124
|
values: [
|
|
115
125
|
ISwapRouterBase.ExactInputParamsStruct,
|
|
116
126
|
ISwapRouterBase.RouterParamsStruct,
|
|
117
|
-
ISwapRouterBase.
|
|
118
|
-
|
|
127
|
+
ISwapRouterBase.FeeConfigStruct,
|
|
128
|
+
ISwapRouterBase.Permit2ParamsStruct
|
|
119
129
|
]
|
|
120
130
|
): string;
|
|
121
131
|
encodeFunctionData(
|
|
@@ -272,8 +282,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
272
282
|
executeSwapWithPermit(
|
|
273
283
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
274
284
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
285
|
+
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
275
286
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
276
|
-
poster: PromiseOrValue<string>,
|
|
277
287
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
278
288
|
): Promise<ContractTransaction>;
|
|
279
289
|
|
|
@@ -306,8 +316,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
306
316
|
executeSwapWithPermit(
|
|
307
317
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
308
318
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
319
|
+
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
309
320
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
310
|
-
poster: PromiseOrValue<string>,
|
|
311
321
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
312
322
|
): Promise<ContractTransaction>;
|
|
313
323
|
|
|
@@ -340,8 +350,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
340
350
|
executeSwapWithPermit(
|
|
341
351
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
342
352
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
353
|
+
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
343
354
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
344
|
-
poster: PromiseOrValue<string>,
|
|
345
355
|
overrides?: CallOverrides
|
|
346
356
|
): Promise<BigNumber>;
|
|
347
357
|
|
|
@@ -444,8 +454,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
444
454
|
executeSwapWithPermit(
|
|
445
455
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
446
456
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
457
|
+
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
447
458
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
448
|
-
poster: PromiseOrValue<string>,
|
|
449
459
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
450
460
|
): Promise<BigNumber>;
|
|
451
461
|
|
|
@@ -471,8 +481,8 @@ export interface ISwapFacet extends BaseContract {
|
|
|
471
481
|
executeSwapWithPermit(
|
|
472
482
|
params: ISwapRouterBase.ExactInputParamsStruct,
|
|
473
483
|
routerParams: ISwapRouterBase.RouterParamsStruct,
|
|
484
|
+
posterFee: ISwapRouterBase.FeeConfigStruct,
|
|
474
485
|
permit: ISwapRouterBase.Permit2ParamsStruct,
|
|
475
|
-
poster: PromiseOrValue<string>,
|
|
476
486
|
overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
|
|
477
487
|
): Promise<PopulatedTransaction>;
|
|
478
488
|
|