@towns-protocol/generated 0.0.283 → 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.
@@ -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": "poster",
284
- "type": "address",
285
- "internalType": "address"
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": "poster",
284
- "type": "address",
285
- "internalType": "address"
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",
@@ -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),address)": FunctionFragment;
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.Permit2ParamsStruct,
118
- PromiseOrValue<string>
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
 
@@ -62,6 +62,16 @@ export declare namespace ISwapRouterBase {
62
62
  swapData: string;
63
63
  };
64
64
 
65
+ export type FeeConfigStruct = {
66
+ recipient: PromiseOrValue<string>;
67
+ feeBps: PromiseOrValue<BigNumberish>;
68
+ };
69
+
70
+ export type FeeConfigStructOutput = [string, number] & {
71
+ recipient: string;
72
+ feeBps: number;
73
+ };
74
+
65
75
  export type Permit2ParamsStruct = {
66
76
  owner: PromiseOrValue<string>;
67
77
  nonce: PromiseOrValue<BigNumberish>;
@@ -85,9 +95,9 @@ export declare namespace ISwapRouterBase {
85
95
  export interface ISwapRouterInterface extends utils.Interface {
86
96
  functions: {
87
97
  "executeSwap((address,address,uint256,uint256,address),(address,address,bytes),address)": FunctionFragment;
88
- "executeSwapWithPermit((address,address,uint256,uint256,address),(address,address,bytes),(address,uint256,uint256,bytes),address)": FunctionFragment;
98
+ "executeSwapWithPermit((address,address,uint256,uint256,address),(address,address,bytes),(address,uint16),(address,uint256,uint256,bytes))": FunctionFragment;
89
99
  "getETHInputFees(uint256,address,address)": FunctionFragment;
90
- "getPermit2MessageHash((address,address,uint256,uint256,address),(address,address,bytes),address,uint256,uint256,uint256)": FunctionFragment;
100
+ "getPermit2MessageHash((address,address,uint256,uint256,address),(address,address,bytes),(address,uint16),uint256,uint256,uint256)": FunctionFragment;
91
101
  "getPermit2Nonce(address,uint256)": FunctionFragment;
92
102
  };
93
103
 
@@ -113,8 +123,8 @@ export interface ISwapRouterInterface extends utils.Interface {
113
123
  values: [
114
124
  ISwapRouterBase.ExactInputParamsStruct,
115
125
  ISwapRouterBase.RouterParamsStruct,
116
- ISwapRouterBase.Permit2ParamsStruct,
117
- PromiseOrValue<string>
126
+ ISwapRouterBase.FeeConfigStruct,
127
+ ISwapRouterBase.Permit2ParamsStruct
118
128
  ]
119
129
  ): string;
120
130
  encodeFunctionData(
@@ -130,7 +140,7 @@ export interface ISwapRouterInterface extends utils.Interface {
130
140
  values: [
131
141
  ISwapRouterBase.ExactInputParamsStruct,
132
142
  ISwapRouterBase.RouterParamsStruct,
133
- PromiseOrValue<string>,
143
+ ISwapRouterBase.FeeConfigStruct,
134
144
  PromiseOrValue<BigNumberish>,
135
145
  PromiseOrValue<BigNumberish>,
136
146
  PromiseOrValue<BigNumberish>
@@ -251,8 +261,8 @@ export interface ISwapRouter extends BaseContract {
251
261
  executeSwapWithPermit(
252
262
  params: ISwapRouterBase.ExactInputParamsStruct,
253
263
  routerParams: ISwapRouterBase.RouterParamsStruct,
264
+ posterFee: ISwapRouterBase.FeeConfigStruct,
254
265
  permit: ISwapRouterBase.Permit2ParamsStruct,
255
- poster: PromiseOrValue<string>,
256
266
  overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
257
267
  ): Promise<ContractTransaction>;
258
268
 
@@ -272,7 +282,7 @@ export interface ISwapRouter extends BaseContract {
272
282
  getPermit2MessageHash(
273
283
  params: ISwapRouterBase.ExactInputParamsStruct,
274
284
  routerParams: ISwapRouterBase.RouterParamsStruct,
275
- poster: PromiseOrValue<string>,
285
+ posterFee: ISwapRouterBase.FeeConfigStruct,
276
286
  amount: PromiseOrValue<BigNumberish>,
277
287
  nonce: PromiseOrValue<BigNumberish>,
278
288
  deadline: PromiseOrValue<BigNumberish>,
@@ -296,8 +306,8 @@ export interface ISwapRouter extends BaseContract {
296
306
  executeSwapWithPermit(
297
307
  params: ISwapRouterBase.ExactInputParamsStruct,
298
308
  routerParams: ISwapRouterBase.RouterParamsStruct,
309
+ posterFee: ISwapRouterBase.FeeConfigStruct,
299
310
  permit: ISwapRouterBase.Permit2ParamsStruct,
300
- poster: PromiseOrValue<string>,
301
311
  overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
302
312
  ): Promise<ContractTransaction>;
303
313
 
@@ -317,7 +327,7 @@ export interface ISwapRouter extends BaseContract {
317
327
  getPermit2MessageHash(
318
328
  params: ISwapRouterBase.ExactInputParamsStruct,
319
329
  routerParams: ISwapRouterBase.RouterParamsStruct,
320
- poster: PromiseOrValue<string>,
330
+ posterFee: ISwapRouterBase.FeeConfigStruct,
321
331
  amount: PromiseOrValue<BigNumberish>,
322
332
  nonce: PromiseOrValue<BigNumberish>,
323
333
  deadline: PromiseOrValue<BigNumberish>,
@@ -343,8 +353,8 @@ export interface ISwapRouter extends BaseContract {
343
353
  executeSwapWithPermit(
344
354
  params: ISwapRouterBase.ExactInputParamsStruct,
345
355
  routerParams: ISwapRouterBase.RouterParamsStruct,
356
+ posterFee: ISwapRouterBase.FeeConfigStruct,
346
357
  permit: ISwapRouterBase.Permit2ParamsStruct,
347
- poster: PromiseOrValue<string>,
348
358
  overrides?: CallOverrides
349
359
  ): Promise<
350
360
  [BigNumber, BigNumber] & { amountOut: BigNumber; protocolFee: BigNumber }
@@ -366,7 +376,7 @@ export interface ISwapRouter extends BaseContract {
366
376
  getPermit2MessageHash(
367
377
  params: ISwapRouterBase.ExactInputParamsStruct,
368
378
  routerParams: ISwapRouterBase.RouterParamsStruct,
369
- poster: PromiseOrValue<string>,
379
+ posterFee: ISwapRouterBase.FeeConfigStruct,
370
380
  amount: PromiseOrValue<BigNumberish>,
371
381
  nonce: PromiseOrValue<BigNumberish>,
372
382
  deadline: PromiseOrValue<BigNumberish>,
@@ -434,8 +444,8 @@ export interface ISwapRouter extends BaseContract {
434
444
  executeSwapWithPermit(
435
445
  params: ISwapRouterBase.ExactInputParamsStruct,
436
446
  routerParams: ISwapRouterBase.RouterParamsStruct,
447
+ posterFee: ISwapRouterBase.FeeConfigStruct,
437
448
  permit: ISwapRouterBase.Permit2ParamsStruct,
438
- poster: PromiseOrValue<string>,
439
449
  overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
440
450
  ): Promise<BigNumber>;
441
451
 
@@ -449,7 +459,7 @@ export interface ISwapRouter extends BaseContract {
449
459
  getPermit2MessageHash(
450
460
  params: ISwapRouterBase.ExactInputParamsStruct,
451
461
  routerParams: ISwapRouterBase.RouterParamsStruct,
452
- poster: PromiseOrValue<string>,
462
+ posterFee: ISwapRouterBase.FeeConfigStruct,
453
463
  amount: PromiseOrValue<BigNumberish>,
454
464
  nonce: PromiseOrValue<BigNumberish>,
455
465
  deadline: PromiseOrValue<BigNumberish>,
@@ -474,8 +484,8 @@ export interface ISwapRouter extends BaseContract {
474
484
  executeSwapWithPermit(
475
485
  params: ISwapRouterBase.ExactInputParamsStruct,
476
486
  routerParams: ISwapRouterBase.RouterParamsStruct,
487
+ posterFee: ISwapRouterBase.FeeConfigStruct,
477
488
  permit: ISwapRouterBase.Permit2ParamsStruct,
478
- poster: PromiseOrValue<string>,
479
489
  overrides?: PayableOverrides & { from?: PromiseOrValue<string> }
480
490
  ): Promise<PopulatedTransaction>;
481
491
 
@@ -489,7 +499,7 @@ export interface ISwapRouter extends BaseContract {
489
499
  getPermit2MessageHash(
490
500
  params: ISwapRouterBase.ExactInputParamsStruct,
491
501
  routerParams: ISwapRouterBase.RouterParamsStruct,
492
- poster: PromiseOrValue<string>,
502
+ posterFee: ISwapRouterBase.FeeConfigStruct,
493
503
  amount: PromiseOrValue<BigNumberish>,
494
504
  nonce: PromiseOrValue<BigNumberish>,
495
505
  deadline: PromiseOrValue<BigNumberish>,