@towns-protocol/generated 0.0.211 → 0.0.213

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 (37) hide show
  1. package/dev/abis/Channels.abi.json +30 -0
  2. package/dev/abis/Channels.abi.ts +30 -0
  3. package/dev/abis/DropFacet.abi.json +36 -0
  4. package/dev/abis/DropFacet.abi.ts +36 -0
  5. package/dev/abis/MembershipFacet.abi.json +5 -0
  6. package/dev/abis/MembershipFacet.abi.ts +5 -0
  7. package/dev/abis/Roles.abi.json +5 -0
  8. package/dev/abis/Roles.abi.ts +5 -0
  9. package/dev/typings/Architect.ts +513 -0
  10. package/dev/typings/Channels.ts +1003 -0
  11. package/dev/typings/DropFacet.ts +687 -0
  12. package/dev/typings/EntitlementsManager.ts +612 -0
  13. package/dev/typings/IDropFacet.ts +11 -3
  14. package/dev/typings/MockLegacyArchitect.ts +402 -0
  15. package/dev/typings/NodeRegistry.ts +470 -0
  16. package/dev/typings/OperatorRegistry.ts +345 -0
  17. package/dev/typings/Roles.ts +984 -0
  18. package/dev/typings/StreamRegistry.ts +737 -0
  19. package/dev/typings/WalletLink.ts +975 -0
  20. package/dev/typings/factories/Architect__factory.ts +406 -0
  21. package/dev/typings/factories/Channels__factory.ts +1037 -0
  22. package/dev/typings/factories/DropFacet__factory.ts +816 -0
  23. package/dev/typings/factories/EntitlementsManager__factory.ts +688 -0
  24. package/dev/typings/factories/IChannel__factory.ts +25 -0
  25. package/dev/typings/factories/IDropFacet__factory.ts +15 -0
  26. package/dev/typings/factories/IRoles__factory.ts +5 -0
  27. package/dev/typings/factories/MembershipFacet__factory.ts +6 -1
  28. package/dev/typings/factories/MockLegacyArchitect__factory.ts +433 -0
  29. package/dev/typings/factories/NodeRegistry__factory.ts +335 -0
  30. package/dev/typings/factories/OperatorRegistry__factory.ts +254 -0
  31. package/dev/typings/factories/Roles__factory.ts +998 -0
  32. package/dev/typings/factories/SpaceOwner__factory.ts +1 -11
  33. package/dev/typings/factories/StreamRegistry__factory.ts +604 -0
  34. package/dev/typings/factories/WalletLink__factory.ts +899 -0
  35. package/dev/typings/factories/index.ts +10 -0
  36. package/dev/typings/index.ts +20 -0
  37. package/package.json +2 -2
@@ -0,0 +1,406 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type { PromiseOrValue } from "../common";
7
+ import type { Architect, ArchitectInterface } from "../Architect";
8
+
9
+ const _abi = [
10
+ {
11
+ type: "function",
12
+ name: "__Architect_init",
13
+ inputs: [
14
+ {
15
+ name: "ownerImplementation",
16
+ type: "address",
17
+ internalType: "contract ISpaceOwner",
18
+ },
19
+ {
20
+ name: "userEntitlementImplementation",
21
+ type: "address",
22
+ internalType: "contract IUserEntitlement",
23
+ },
24
+ {
25
+ name: "ruleEntitlementImplementation",
26
+ type: "address",
27
+ internalType: "contract IRuleEntitlementV2",
28
+ },
29
+ {
30
+ name: "legacyRuleEntitlement",
31
+ type: "address",
32
+ internalType: "contract IRuleEntitlement",
33
+ },
34
+ ],
35
+ outputs: [],
36
+ stateMutability: "nonpayable",
37
+ },
38
+ {
39
+ type: "function",
40
+ name: "getProxyInitializer",
41
+ inputs: [],
42
+ outputs: [
43
+ {
44
+ name: "",
45
+ type: "address",
46
+ internalType: "contract ISpaceProxyInitializer",
47
+ },
48
+ ],
49
+ stateMutability: "view",
50
+ },
51
+ {
52
+ type: "function",
53
+ name: "getSpaceArchitectImplementations",
54
+ inputs: [],
55
+ outputs: [
56
+ {
57
+ name: "spaceToken",
58
+ type: "address",
59
+ internalType: "contract ISpaceOwner",
60
+ },
61
+ {
62
+ name: "userEntitlementImplementation",
63
+ type: "address",
64
+ internalType: "contract IUserEntitlement",
65
+ },
66
+ {
67
+ name: "ruleEntitlementImplementation",
68
+ type: "address",
69
+ internalType: "contract IRuleEntitlementV2",
70
+ },
71
+ {
72
+ name: "legacyRuleEntitlement",
73
+ type: "address",
74
+ internalType: "contract IRuleEntitlement",
75
+ },
76
+ ],
77
+ stateMutability: "view",
78
+ },
79
+ {
80
+ type: "function",
81
+ name: "getSpaceByTokenId",
82
+ inputs: [
83
+ {
84
+ name: "tokenId",
85
+ type: "uint256",
86
+ internalType: "uint256",
87
+ },
88
+ ],
89
+ outputs: [
90
+ {
91
+ name: "",
92
+ type: "address",
93
+ internalType: "address",
94
+ },
95
+ ],
96
+ stateMutability: "view",
97
+ },
98
+ {
99
+ type: "function",
100
+ name: "getTokenIdBySpace",
101
+ inputs: [
102
+ {
103
+ name: "space",
104
+ type: "address",
105
+ internalType: "address",
106
+ },
107
+ ],
108
+ outputs: [
109
+ {
110
+ name: "",
111
+ type: "uint256",
112
+ internalType: "uint256",
113
+ },
114
+ ],
115
+ stateMutability: "view",
116
+ },
117
+ {
118
+ type: "function",
119
+ name: "setProxyInitializer",
120
+ inputs: [
121
+ {
122
+ name: "proxyInitializer",
123
+ type: "address",
124
+ internalType: "contract ISpaceProxyInitializer",
125
+ },
126
+ ],
127
+ outputs: [],
128
+ stateMutability: "nonpayable",
129
+ },
130
+ {
131
+ type: "function",
132
+ name: "setSpaceArchitectImplementations",
133
+ inputs: [
134
+ {
135
+ name: "spaceToken",
136
+ type: "address",
137
+ internalType: "contract ISpaceOwner",
138
+ },
139
+ {
140
+ name: "userEntitlementImplementation",
141
+ type: "address",
142
+ internalType: "contract IUserEntitlement",
143
+ },
144
+ {
145
+ name: "ruleEntitlementImplementation",
146
+ type: "address",
147
+ internalType: "contract IRuleEntitlementV2",
148
+ },
149
+ {
150
+ name: "legacyRuleEntitlement",
151
+ type: "address",
152
+ internalType: "contract IRuleEntitlement",
153
+ },
154
+ ],
155
+ outputs: [],
156
+ stateMutability: "nonpayable",
157
+ },
158
+ {
159
+ type: "event",
160
+ name: "Architect__ProxyInitializerSet",
161
+ inputs: [
162
+ {
163
+ name: "proxyInitializer",
164
+ type: "address",
165
+ indexed: true,
166
+ internalType: "address",
167
+ },
168
+ ],
169
+ anonymous: false,
170
+ },
171
+ {
172
+ type: "event",
173
+ name: "Initialized",
174
+ inputs: [
175
+ {
176
+ name: "version",
177
+ type: "uint32",
178
+ indexed: false,
179
+ internalType: "uint32",
180
+ },
181
+ ],
182
+ anonymous: false,
183
+ },
184
+ {
185
+ type: "event",
186
+ name: "InterfaceAdded",
187
+ inputs: [
188
+ {
189
+ name: "interfaceId",
190
+ type: "bytes4",
191
+ indexed: true,
192
+ internalType: "bytes4",
193
+ },
194
+ ],
195
+ anonymous: false,
196
+ },
197
+ {
198
+ type: "event",
199
+ name: "InterfaceRemoved",
200
+ inputs: [
201
+ {
202
+ name: "interfaceId",
203
+ type: "bytes4",
204
+ indexed: true,
205
+ internalType: "bytes4",
206
+ },
207
+ ],
208
+ anonymous: false,
209
+ },
210
+ {
211
+ type: "event",
212
+ name: "OwnershipTransferred",
213
+ inputs: [
214
+ {
215
+ name: "previousOwner",
216
+ type: "address",
217
+ indexed: true,
218
+ internalType: "address",
219
+ },
220
+ {
221
+ name: "newOwner",
222
+ type: "address",
223
+ indexed: true,
224
+ internalType: "address",
225
+ },
226
+ ],
227
+ anonymous: false,
228
+ },
229
+ {
230
+ type: "event",
231
+ name: "Paused",
232
+ inputs: [
233
+ {
234
+ name: "account",
235
+ type: "address",
236
+ indexed: false,
237
+ internalType: "address",
238
+ },
239
+ ],
240
+ anonymous: false,
241
+ },
242
+ {
243
+ type: "event",
244
+ name: "SpaceCreated",
245
+ inputs: [
246
+ {
247
+ name: "owner",
248
+ type: "address",
249
+ indexed: true,
250
+ internalType: "address",
251
+ },
252
+ {
253
+ name: "tokenId",
254
+ type: "uint256",
255
+ indexed: true,
256
+ internalType: "uint256",
257
+ },
258
+ {
259
+ name: "space",
260
+ type: "address",
261
+ indexed: true,
262
+ internalType: "address",
263
+ },
264
+ ],
265
+ anonymous: false,
266
+ },
267
+ {
268
+ type: "event",
269
+ name: "Unpaused",
270
+ inputs: [
271
+ {
272
+ name: "account",
273
+ type: "address",
274
+ indexed: false,
275
+ internalType: "address",
276
+ },
277
+ ],
278
+ anonymous: false,
279
+ },
280
+ {
281
+ type: "error",
282
+ name: "Architect__InvalidAddress",
283
+ inputs: [],
284
+ },
285
+ {
286
+ type: "error",
287
+ name: "Architect__InvalidNetworkId",
288
+ inputs: [],
289
+ },
290
+ {
291
+ type: "error",
292
+ name: "Architect__InvalidPricingModule",
293
+ inputs: [],
294
+ },
295
+ {
296
+ type: "error",
297
+ name: "Architect__InvalidStringLength",
298
+ inputs: [],
299
+ },
300
+ {
301
+ type: "error",
302
+ name: "Architect__NotContract",
303
+ inputs: [],
304
+ },
305
+ {
306
+ type: "error",
307
+ name: "Initializable_InInitializingState",
308
+ inputs: [],
309
+ },
310
+ {
311
+ type: "error",
312
+ name: "Initializable_NotInInitializingState",
313
+ inputs: [],
314
+ },
315
+ {
316
+ type: "error",
317
+ name: "Introspection_AlreadySupported",
318
+ inputs: [],
319
+ },
320
+ {
321
+ type: "error",
322
+ name: "Introspection_NotSupported",
323
+ inputs: [],
324
+ },
325
+ {
326
+ type: "error",
327
+ name: "Ownable__NotOwner",
328
+ inputs: [
329
+ {
330
+ name: "account",
331
+ type: "address",
332
+ internalType: "address",
333
+ },
334
+ ],
335
+ },
336
+ {
337
+ type: "error",
338
+ name: "Ownable__ZeroAddress",
339
+ inputs: [],
340
+ },
341
+ {
342
+ type: "error",
343
+ name: "Pausable__NotPaused",
344
+ inputs: [],
345
+ },
346
+ {
347
+ type: "error",
348
+ name: "Pausable__Paused",
349
+ inputs: [],
350
+ },
351
+ {
352
+ type: "error",
353
+ name: "Reentrancy",
354
+ inputs: [],
355
+ },
356
+ ] as const;
357
+
358
+ const _bytecode =
359
+ "0x6080604052348015600e575f5ffd5b5060156019565b60bd565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef520008054640100000000900460ff16156064576040516366008a2d60e01b815260040160405180910390fd5b805463ffffffff908116101560ba57805463ffffffff191663ffffffff90811782556040519081527fe9c9b456cb2994b80aeef036cf59d26e9617df80f816a6ee5a5b4166e07e2f5c9060200160405180910390a15b50565b6107b0806100ca5f395ff3fe608060405234801561000f575f5ffd5b506004361061007a575f3560e01c80636bd837f4116100585780636bd837f414610118578063c0bc679614610120578063cd7242b814610141578063e6907c9d14610154575f5ffd5b80631a424b661461007e578063545efb2d14610093578063673f0dd5146100e0575b5f5ffd5b61009161008c36600461071e565b610167565b005b61009b6101dc565b6040805173ffffffffffffffffffffffffffffffffffffffff958616815293851660208501529184169183019190915290911660608201526080015b60405180910390f35b6100f36100ee366004610777565b61029f565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100d7565b6100f36102e9565b61013361012e36600461078e565b61032d565b6040519081526020016100d7565b61009161014f36600461071e565b610376565b61009161016236600461078e565b6103ed565b7f59b501c3653afc186af7d48dda36cf6732bd21629a6295693664240a6ef5200054640100000000900460ff166101ca576040517f77a399b800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6101d68484848461046b565b50505050565b5f5f5f5f6102917f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d00547f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d01547f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d02547f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d055473ffffffffffffffffffffffffffffffffffffffff938416949284169391821692911690565b935093509350935090919293565b5f8181527f06bd04a817647c31ee485c8a0baab96facd62dbfd4b475796bb17ca2c12f0002602052604081205473ffffffffffffffffffffffffffffffffffffffff165b92915050565b5f6103287f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d065473ffffffffffffffffffffffffffffffffffffffff1690565b905090565b73ffffffffffffffffffffffffffffffffffffffff81165f9081527f06bd04a817647c31ee485c8a0baab96facd62dbfd4b475796bb17ca2c12f000160205260408120546102e3565b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff1633146101ca576040517f65f490650000000000000000000000000000000000000000000000000000000081523360048201526024015b60405180910390fd5b7f4675fa8241f86f37157864d3d49b85ad4b164352c516da28e1678a90470ae3005473ffffffffffffffffffffffffffffffffffffffff16331461045f576040517f65f490650000000000000000000000000000000000000000000000000000000081523360048201526024016103e4565b6104688161064c565b50565b8373ffffffffffffffffffffffffffffffffffffffff163b5f036104bb576040517f02f3d00b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff163b5f0361050b576040517f02f3d00b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff163b5f0361055b576040517f02f3d00b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b7f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0080547fffffffffffffffffffffffff000000000000000000000000000000000000000090811673ffffffffffffffffffffffffffffffffffffffff968716179091557f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0180548216948616949094179093557f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0280548416928516929092179091557f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0580549092169216919091179055565b7f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f9e34afa7b4d27d347d25d9d9dab4f1a106fa081382e6c4243e834d093e787d0091907f50d234a64b07fd5931eedf717c2eca7f76ef13920a1330cc774176dbf9c66b3e905f90a25050565b73ffffffffffffffffffffffffffffffffffffffff81168114610468575f5ffd5b5f5f5f5f60808587031215610731575f5ffd5b843561073c816106fd565b9350602085013561074c816106fd565b9250604085013561075c816106fd565b9150606085013561076c816106fd565b939692955090935050565b5f60208284031215610787575f5ffd5b5035919050565b5f6020828403121561079e575f5ffd5b81356107a9816106fd565b939250505056";
360
+
361
+ type ArchitectConstructorParams =
362
+ | [signer?: Signer]
363
+ | ConstructorParameters<typeof ContractFactory>;
364
+
365
+ const isSuperArgs = (
366
+ xs: ArchitectConstructorParams
367
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
368
+
369
+ export class Architect__factory extends ContractFactory {
370
+ constructor(...args: ArchitectConstructorParams) {
371
+ if (isSuperArgs(args)) {
372
+ super(...args);
373
+ } else {
374
+ super(_abi, _bytecode, args[0]);
375
+ }
376
+ }
377
+
378
+ override deploy(
379
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
380
+ ): Promise<Architect> {
381
+ return super.deploy(overrides || {}) as Promise<Architect>;
382
+ }
383
+ override getDeployTransaction(
384
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
385
+ ): TransactionRequest {
386
+ return super.getDeployTransaction(overrides || {});
387
+ }
388
+ override attach(address: string): Architect {
389
+ return super.attach(address) as Architect;
390
+ }
391
+ override connect(signer: Signer): Architect__factory {
392
+ return super.connect(signer) as Architect__factory;
393
+ }
394
+
395
+ static readonly bytecode = _bytecode;
396
+ static readonly abi = _abi;
397
+ static createInterface(): ArchitectInterface {
398
+ return new utils.Interface(_abi) as ArchitectInterface;
399
+ }
400
+ static connect(
401
+ address: string,
402
+ signerOrProvider: Signer | Provider
403
+ ): Architect {
404
+ return new Contract(address, _abi, signerOrProvider) as Architect;
405
+ }
406
+ }