@towns-protocol/generated 0.0.212 → 0.0.214

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.
Files changed (47) hide show
  1. package/deployments/gamma/base/addresses/swapRouter.json +3 -0
  2. package/deployments/omega/base/addresses/swapRouter.json +3 -0
  3. package/dev/abis/Channels.abi.json +30 -0
  4. package/dev/abis/Channels.abi.ts +30 -0
  5. package/dev/abis/ISwapFacet.abi.json +320 -0
  6. package/dev/abis/ISwapFacet.abi.ts +320 -0
  7. package/dev/abis/ISwapFacetBase.abi.json +79 -0
  8. package/dev/abis/ISwapFacetBase.abi.ts +79 -0
  9. package/dev/abis/ISwapRouter.abi.json +189 -0
  10. package/dev/abis/ISwapRouter.abi.ts +189 -0
  11. package/dev/abis/ISwapRouterBase.abi.json +116 -0
  12. package/dev/abis/ISwapRouterBase.abi.ts +116 -0
  13. package/dev/abis/MembershipFacet.abi.json +5 -0
  14. package/dev/abis/MembershipFacet.abi.ts +5 -0
  15. package/dev/abis/Roles.abi.json +5 -0
  16. package/dev/abis/Roles.abi.ts +5 -0
  17. package/dev/typings/Architect.ts +513 -0
  18. package/dev/typings/Channels.ts +1003 -0
  19. package/dev/typings/DropFacet.ts +687 -0
  20. package/dev/typings/EntitlementsManager.ts +612 -0
  21. package/dev/typings/ISwapFacet.ts +415 -0
  22. package/dev/typings/ISwapRouter.ts +250 -0
  23. package/dev/typings/MockLegacyArchitect.ts +402 -0
  24. package/dev/typings/NodeRegistry.ts +470 -0
  25. package/dev/typings/OperatorRegistry.ts +345 -0
  26. package/dev/typings/Roles.ts +984 -0
  27. package/dev/typings/StreamRegistry.ts +737 -0
  28. package/dev/typings/WalletLink.ts +975 -0
  29. package/dev/typings/factories/Architect__factory.ts +406 -0
  30. package/dev/typings/factories/Channels__factory.ts +1037 -0
  31. package/dev/typings/factories/DropFacet__factory.ts +816 -0
  32. package/dev/typings/factories/EntitlementsManager__factory.ts +688 -0
  33. package/dev/typings/factories/IChannel__factory.ts +25 -0
  34. package/dev/typings/factories/IRoles__factory.ts +5 -0
  35. package/dev/typings/factories/ISwapFacet__factory.ts +341 -0
  36. package/dev/typings/factories/ISwapRouter__factory.ts +210 -0
  37. package/dev/typings/factories/MembershipFacet__factory.ts +6 -1
  38. package/dev/typings/factories/MockLegacyArchitect__factory.ts +433 -0
  39. package/dev/typings/factories/NodeRegistry__factory.ts +335 -0
  40. package/dev/typings/factories/OperatorRegistry__factory.ts +254 -0
  41. package/dev/typings/factories/Roles__factory.ts +998 -0
  42. package/dev/typings/factories/SpaceOwner__factory.ts +1 -11
  43. package/dev/typings/factories/StreamRegistry__factory.ts +604 -0
  44. package/dev/typings/factories/WalletLink__factory.ts +899 -0
  45. package/dev/typings/factories/index.ts +12 -0
  46. package/dev/typings/index.ts +24 -0
  47. package/package.json +2 -2
@@ -339,6 +339,31 @@ const _abi = [
339
339
  ],
340
340
  anonymous: false,
341
341
  },
342
+ {
343
+ type: "error",
344
+ name: "ChannelService__ChannelAlreadyExists",
345
+ inputs: [],
346
+ },
347
+ {
348
+ type: "error",
349
+ name: "ChannelService__ChannelDisabled",
350
+ inputs: [],
351
+ },
352
+ {
353
+ type: "error",
354
+ name: "ChannelService__ChannelDoesNotExist",
355
+ inputs: [],
356
+ },
357
+ {
358
+ type: "error",
359
+ name: "ChannelService__RoleAlreadyExists",
360
+ inputs: [],
361
+ },
362
+ {
363
+ type: "error",
364
+ name: "ChannelService__RoleDoesNotExist",
365
+ inputs: [],
366
+ },
342
367
  ] as const;
343
368
 
344
369
  export class IChannel__factory {
@@ -534,6 +534,11 @@ const _abi = [
534
534
  name: "Roles__RoleDoesNotExist",
535
535
  inputs: [],
536
536
  },
537
+ {
538
+ type: "error",
539
+ name: "Roles__RoleIsImmutable",
540
+ inputs: [],
541
+ },
537
542
  ] as const;
538
543
 
539
544
  export class IRoles__factory {
@@ -0,0 +1,341 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type { ISwapFacet, ISwapFacetInterface } from "../ISwapFacet";
8
+
9
+ const _abi = [
10
+ {
11
+ type: "function",
12
+ name: "executeSwap",
13
+ inputs: [
14
+ {
15
+ name: "params",
16
+ type: "tuple",
17
+ internalType: "struct ISwapRouterBase.ExactInputParams",
18
+ components: [
19
+ {
20
+ name: "tokenIn",
21
+ type: "address",
22
+ internalType: "address",
23
+ },
24
+ {
25
+ name: "tokenOut",
26
+ type: "address",
27
+ internalType: "address",
28
+ },
29
+ {
30
+ name: "amountIn",
31
+ type: "uint256",
32
+ internalType: "uint256",
33
+ },
34
+ {
35
+ name: "minAmountOut",
36
+ type: "uint256",
37
+ internalType: "uint256",
38
+ },
39
+ {
40
+ name: "recipient",
41
+ type: "address",
42
+ internalType: "address",
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ name: "routerParams",
48
+ type: "tuple",
49
+ internalType: "struct ISwapRouterBase.RouterParams",
50
+ components: [
51
+ {
52
+ name: "router",
53
+ type: "address",
54
+ internalType: "address",
55
+ },
56
+ {
57
+ name: "approveTarget",
58
+ type: "address",
59
+ internalType: "address",
60
+ },
61
+ {
62
+ name: "swapData",
63
+ type: "bytes",
64
+ internalType: "bytes",
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ name: "poster",
70
+ type: "address",
71
+ internalType: "address",
72
+ },
73
+ ],
74
+ outputs: [
75
+ {
76
+ name: "amountOut",
77
+ type: "uint256",
78
+ internalType: "uint256",
79
+ },
80
+ ],
81
+ stateMutability: "payable",
82
+ },
83
+ {
84
+ type: "function",
85
+ name: "getSwapFees",
86
+ inputs: [],
87
+ outputs: [
88
+ {
89
+ name: "treasuryBps",
90
+ type: "uint16",
91
+ internalType: "uint16",
92
+ },
93
+ {
94
+ name: "posterBps",
95
+ type: "uint16",
96
+ internalType: "uint16",
97
+ },
98
+ {
99
+ name: "collectPosterFeeToSpace",
100
+ type: "bool",
101
+ internalType: "bool",
102
+ },
103
+ ],
104
+ stateMutability: "view",
105
+ },
106
+ {
107
+ type: "function",
108
+ name: "getSwapRouter",
109
+ inputs: [],
110
+ outputs: [
111
+ {
112
+ name: "",
113
+ type: "address",
114
+ internalType: "address",
115
+ },
116
+ ],
117
+ stateMutability: "view",
118
+ },
119
+ {
120
+ type: "function",
121
+ name: "setSwapFeeConfig",
122
+ inputs: [
123
+ {
124
+ name: "posterFeeBps",
125
+ type: "uint16",
126
+ internalType: "uint16",
127
+ },
128
+ {
129
+ name: "collectPosterFeeToSpace",
130
+ type: "bool",
131
+ internalType: "bool",
132
+ },
133
+ ],
134
+ outputs: [],
135
+ stateMutability: "nonpayable",
136
+ },
137
+ {
138
+ type: "event",
139
+ name: "FeeDistribution",
140
+ inputs: [
141
+ {
142
+ name: "token",
143
+ type: "address",
144
+ indexed: true,
145
+ internalType: "address",
146
+ },
147
+ {
148
+ name: "treasury",
149
+ type: "address",
150
+ indexed: true,
151
+ internalType: "address",
152
+ },
153
+ {
154
+ name: "poster",
155
+ type: "address",
156
+ indexed: true,
157
+ internalType: "address",
158
+ },
159
+ {
160
+ name: "treasuryAmount",
161
+ type: "uint256",
162
+ indexed: false,
163
+ internalType: "uint256",
164
+ },
165
+ {
166
+ name: "posterAmount",
167
+ type: "uint256",
168
+ indexed: false,
169
+ internalType: "uint256",
170
+ },
171
+ ],
172
+ anonymous: false,
173
+ },
174
+ {
175
+ type: "event",
176
+ name: "Swap",
177
+ inputs: [
178
+ {
179
+ name: "router",
180
+ type: "address",
181
+ indexed: true,
182
+ internalType: "address",
183
+ },
184
+ {
185
+ name: "caller",
186
+ type: "address",
187
+ indexed: true,
188
+ internalType: "address",
189
+ },
190
+ {
191
+ name: "tokenIn",
192
+ type: "address",
193
+ indexed: false,
194
+ internalType: "address",
195
+ },
196
+ {
197
+ name: "tokenOut",
198
+ type: "address",
199
+ indexed: false,
200
+ internalType: "address",
201
+ },
202
+ {
203
+ name: "amountIn",
204
+ type: "uint256",
205
+ indexed: false,
206
+ internalType: "uint256",
207
+ },
208
+ {
209
+ name: "amountOut",
210
+ type: "uint256",
211
+ indexed: false,
212
+ internalType: "uint256",
213
+ },
214
+ {
215
+ name: "recipient",
216
+ type: "address",
217
+ indexed: false,
218
+ internalType: "address",
219
+ },
220
+ ],
221
+ anonymous: false,
222
+ },
223
+ {
224
+ type: "event",
225
+ name: "SwapExecuted",
226
+ inputs: [
227
+ {
228
+ name: "recipient",
229
+ type: "address",
230
+ indexed: true,
231
+ internalType: "address",
232
+ },
233
+ {
234
+ name: "tokenIn",
235
+ type: "address",
236
+ indexed: true,
237
+ internalType: "address",
238
+ },
239
+ {
240
+ name: "tokenOut",
241
+ type: "address",
242
+ indexed: true,
243
+ internalType: "address",
244
+ },
245
+ {
246
+ name: "amountIn",
247
+ type: "uint256",
248
+ indexed: false,
249
+ internalType: "uint256",
250
+ },
251
+ {
252
+ name: "amountOut",
253
+ type: "uint256",
254
+ indexed: false,
255
+ internalType: "uint256",
256
+ },
257
+ {
258
+ name: "poster",
259
+ type: "address",
260
+ indexed: false,
261
+ internalType: "address",
262
+ },
263
+ ],
264
+ anonymous: false,
265
+ },
266
+ {
267
+ type: "event",
268
+ name: "SwapFeeConfigUpdated",
269
+ inputs: [
270
+ {
271
+ name: "posterFeeBps",
272
+ type: "uint16",
273
+ indexed: false,
274
+ internalType: "uint16",
275
+ },
276
+ {
277
+ name: "collectPosterFeeToSpace",
278
+ type: "bool",
279
+ indexed: false,
280
+ internalType: "bool",
281
+ },
282
+ ],
283
+ anonymous: false,
284
+ },
285
+ {
286
+ type: "event",
287
+ name: "SwapRouterInitialized",
288
+ inputs: [
289
+ {
290
+ name: "spaceFactory",
291
+ type: "address",
292
+ indexed: false,
293
+ internalType: "address",
294
+ },
295
+ ],
296
+ anonymous: false,
297
+ },
298
+ {
299
+ type: "error",
300
+ name: "SwapFacet__SwapFailed",
301
+ inputs: [],
302
+ },
303
+ {
304
+ type: "error",
305
+ name: "SwapFacet__SwapRouterNotSet",
306
+ inputs: [],
307
+ },
308
+ {
309
+ type: "error",
310
+ name: "SwapFacet__TotalFeeTooHigh",
311
+ inputs: [],
312
+ },
313
+ {
314
+ type: "error",
315
+ name: "SwapRouter__InsufficientOutput",
316
+ inputs: [],
317
+ },
318
+ {
319
+ type: "error",
320
+ name: "SwapRouter__InvalidAmount",
321
+ inputs: [],
322
+ },
323
+ {
324
+ type: "error",
325
+ name: "SwapRouter__InvalidRouter",
326
+ inputs: [],
327
+ },
328
+ ] as const;
329
+
330
+ export class ISwapFacet__factory {
331
+ static readonly abi = _abi;
332
+ static createInterface(): ISwapFacetInterface {
333
+ return new utils.Interface(_abi) as ISwapFacetInterface;
334
+ }
335
+ static connect(
336
+ address: string,
337
+ signerOrProvider: Signer | Provider
338
+ ): ISwapFacet {
339
+ return new Contract(address, _abi, signerOrProvider) as ISwapFacet;
340
+ }
341
+ }
@@ -0,0 +1,210 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type { ISwapRouter, ISwapRouterInterface } from "../ISwapRouter";
8
+
9
+ const _abi = [
10
+ {
11
+ type: "function",
12
+ name: "executeSwap",
13
+ inputs: [
14
+ {
15
+ name: "params",
16
+ type: "tuple",
17
+ internalType: "struct ISwapRouterBase.ExactInputParams",
18
+ components: [
19
+ {
20
+ name: "tokenIn",
21
+ type: "address",
22
+ internalType: "address",
23
+ },
24
+ {
25
+ name: "tokenOut",
26
+ type: "address",
27
+ internalType: "address",
28
+ },
29
+ {
30
+ name: "amountIn",
31
+ type: "uint256",
32
+ internalType: "uint256",
33
+ },
34
+ {
35
+ name: "minAmountOut",
36
+ type: "uint256",
37
+ internalType: "uint256",
38
+ },
39
+ {
40
+ name: "recipient",
41
+ type: "address",
42
+ internalType: "address",
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ name: "routerParams",
48
+ type: "tuple",
49
+ internalType: "struct ISwapRouterBase.RouterParams",
50
+ components: [
51
+ {
52
+ name: "router",
53
+ type: "address",
54
+ internalType: "address",
55
+ },
56
+ {
57
+ name: "approveTarget",
58
+ type: "address",
59
+ internalType: "address",
60
+ },
61
+ {
62
+ name: "swapData",
63
+ type: "bytes",
64
+ internalType: "bytes",
65
+ },
66
+ ],
67
+ },
68
+ {
69
+ name: "poster",
70
+ type: "address",
71
+ internalType: "address",
72
+ },
73
+ ],
74
+ outputs: [
75
+ {
76
+ name: "amountOut",
77
+ type: "uint256",
78
+ internalType: "uint256",
79
+ },
80
+ ],
81
+ stateMutability: "payable",
82
+ },
83
+ {
84
+ type: "event",
85
+ name: "FeeDistribution",
86
+ inputs: [
87
+ {
88
+ name: "token",
89
+ type: "address",
90
+ indexed: true,
91
+ internalType: "address",
92
+ },
93
+ {
94
+ name: "treasury",
95
+ type: "address",
96
+ indexed: true,
97
+ internalType: "address",
98
+ },
99
+ {
100
+ name: "poster",
101
+ type: "address",
102
+ indexed: true,
103
+ internalType: "address",
104
+ },
105
+ {
106
+ name: "treasuryAmount",
107
+ type: "uint256",
108
+ indexed: false,
109
+ internalType: "uint256",
110
+ },
111
+ {
112
+ name: "posterAmount",
113
+ type: "uint256",
114
+ indexed: false,
115
+ internalType: "uint256",
116
+ },
117
+ ],
118
+ anonymous: false,
119
+ },
120
+ {
121
+ type: "event",
122
+ name: "Swap",
123
+ inputs: [
124
+ {
125
+ name: "router",
126
+ type: "address",
127
+ indexed: true,
128
+ internalType: "address",
129
+ },
130
+ {
131
+ name: "caller",
132
+ type: "address",
133
+ indexed: true,
134
+ internalType: "address",
135
+ },
136
+ {
137
+ name: "tokenIn",
138
+ type: "address",
139
+ indexed: false,
140
+ internalType: "address",
141
+ },
142
+ {
143
+ name: "tokenOut",
144
+ type: "address",
145
+ indexed: false,
146
+ internalType: "address",
147
+ },
148
+ {
149
+ name: "amountIn",
150
+ type: "uint256",
151
+ indexed: false,
152
+ internalType: "uint256",
153
+ },
154
+ {
155
+ name: "amountOut",
156
+ type: "uint256",
157
+ indexed: false,
158
+ internalType: "uint256",
159
+ },
160
+ {
161
+ name: "recipient",
162
+ type: "address",
163
+ indexed: false,
164
+ internalType: "address",
165
+ },
166
+ ],
167
+ anonymous: false,
168
+ },
169
+ {
170
+ type: "event",
171
+ name: "SwapRouterInitialized",
172
+ inputs: [
173
+ {
174
+ name: "spaceFactory",
175
+ type: "address",
176
+ indexed: false,
177
+ internalType: "address",
178
+ },
179
+ ],
180
+ anonymous: false,
181
+ },
182
+ {
183
+ type: "error",
184
+ name: "SwapRouter__InsufficientOutput",
185
+ inputs: [],
186
+ },
187
+ {
188
+ type: "error",
189
+ name: "SwapRouter__InvalidAmount",
190
+ inputs: [],
191
+ },
192
+ {
193
+ type: "error",
194
+ name: "SwapRouter__InvalidRouter",
195
+ inputs: [],
196
+ },
197
+ ] as const;
198
+
199
+ export class ISwapRouter__factory {
200
+ static readonly abi = _abi;
201
+ static createInterface(): ISwapRouterInterface {
202
+ return new utils.Interface(_abi) as ISwapRouterInterface;
203
+ }
204
+ static connect(
205
+ address: string,
206
+ signerOrProvider: Signer | Provider
207
+ ): ISwapRouter {
208
+ return new Contract(address, _abi, signerOrProvider) as ISwapRouter;
209
+ }
210
+ }