@fangorn-network/sdk 2026.9.22-dev → 2026.10.19-dev

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 (89) hide show
  1. package/README.md +177 -192
  2. package/lib/cli/cli.d.ts +0 -0
  3. package/lib/cli/cli.js +165 -194
  4. package/lib/config.d.ts +32 -27
  5. package/lib/config.js +17 -7
  6. package/lib/contracts/app-registry/abi.d.ts +1033 -277
  7. package/lib/contracts/app-registry/abi.js +1214 -335
  8. package/lib/contracts/app-registry/index.d.ts +105 -65
  9. package/lib/contracts/app-registry/index.js +182 -175
  10. package/lib/contracts/data-registry/abi.d.ts +166 -187
  11. package/lib/contracts/data-registry/abi.js +207 -237
  12. package/lib/contracts/data-registry/index.d.ts +4 -151
  13. package/lib/contracts/data-registry/index.js +5 -279
  14. package/lib/contracts/index.d.ts +6 -7
  15. package/lib/contracts/index.js +6 -8
  16. package/lib/contracts/logs.d.ts +4 -1
  17. package/lib/contracts/logs.js +9 -2
  18. package/lib/contracts/membership-registry/abi.d.ts +1145 -0
  19. package/lib/contracts/membership-registry/abi.js +1333 -0
  20. package/lib/contracts/membership-registry/index.d.ts +79 -0
  21. package/lib/contracts/membership-registry/index.js +104 -0
  22. package/lib/contracts/types.d.ts +3 -1
  23. package/lib/contracts/types.js +3 -1
  24. package/lib/contracts/write.d.ts +34 -2
  25. package/lib/contracts/write.js +48 -1
  26. package/lib/crypto/encryption.js +4 -4
  27. package/lib/engine/car.d.ts +2 -2
  28. package/lib/engine/car.js +10 -5
  29. package/lib/engine/index.d.ts +99 -143
  30. package/lib/engine/index.js +156 -295
  31. package/lib/engine/records.d.ts +110 -0
  32. package/lib/engine/records.js +165 -0
  33. package/lib/engine/test-helpers.d.ts +7 -14
  34. package/lib/engine/test-helpers.js +7 -18
  35. package/lib/fangorn.d.ts +129 -156
  36. package/lib/fangorn.js +250 -250
  37. package/lib/feed.d.ts +7 -4
  38. package/lib/feed.js +4 -1
  39. package/lib/index.d.ts +9 -9
  40. package/lib/index.js +8 -9
  41. package/lib/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.js +77 -0
  42. package/lib/node_modules/@vitest/expect/dist/index.js +1414 -0
  43. package/lib/node_modules/@vitest/pretty-format/dist/index.js +858 -0
  44. package/lib/node_modules/@vitest/runner/dist/chunk-tasks.js +51 -0
  45. package/lib/node_modules/@vitest/runner/dist/index.js +1199 -0
  46. package/lib/node_modules/@vitest/runner/dist/utils.js +3 -0
  47. package/lib/node_modules/@vitest/snapshot/dist/index.js +1075 -0
  48. package/lib/node_modules/@vitest/spy/dist/index.js +353 -0
  49. package/lib/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js +7 -0
  50. package/lib/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js +81 -0
  51. package/lib/node_modules/@vitest/utils/dist/diff.js +1345 -0
  52. package/lib/node_modules/@vitest/utils/dist/display.js +534 -0
  53. package/lib/node_modules/@vitest/utils/dist/error.js +30 -0
  54. package/lib/node_modules/@vitest/utils/dist/helpers.js +118 -0
  55. package/lib/node_modules/@vitest/utils/dist/serialize.js +76 -0
  56. package/lib/node_modules/@vitest/utils/dist/source-map.js +93 -0
  57. package/lib/node_modules/@vitest/utils/dist/timers.js +36 -0
  58. package/lib/node_modules/chai/index.js +2874 -0
  59. package/lib/node_modules/magic-string/dist/magic-string.es.js +939 -0
  60. package/lib/node_modules/pathe/dist/shared/pathe.M-eThtNZ.js +81 -0
  61. package/lib/node_modules/tinyrainbow/dist/index.js +85 -0
  62. package/lib/node_modules/vitest/dist/chunks/_commonjsHelpers.D26ty3Ew.js +5 -0
  63. package/lib/node_modules/vitest/dist/chunks/date.Bq6ZW5rf.js +50 -0
  64. package/lib/node_modules/vitest/dist/chunks/utils.DvEY5TfP.js +44 -0
  65. package/lib/node_modules/vitest/dist/chunks/vi.2VT5v0um.js +2578 -0
  66. package/lib/providers/storage/signed-url.d.ts +16 -6
  67. package/lib/providers/storage/signed-url.js +20 -8
  68. package/lib/registry.d.ts +116 -0
  69. package/lib/registry.js +182 -0
  70. package/lib/test/mem-registry.d.ts +51 -0
  71. package/lib/test/mem-registry.js +107 -0
  72. package/lib/test/sdk-suite.d.ts +13 -0
  73. package/lib/test/sdk-suite.js +226 -0
  74. package/lib/test/testbed.d.ts +16411 -61
  75. package/lib/test/testbed.js +190 -84
  76. package/lib/types/index.d.ts +13 -11
  77. package/package.json +89 -73
  78. package/lib/contracts/data-registry/test.d.ts +0 -1
  79. package/lib/contracts/data-registry/test.js +0 -1
  80. package/lib/contracts/settlement-registry/abi.d.ts +0 -466
  81. package/lib/contracts/settlement-registry/abi.js +0 -535
  82. package/lib/contracts/settlement-registry/index.d.ts +0 -163
  83. package/lib/contracts/settlement-registry/index.js +0 -264
  84. package/lib/contracts/subscription-registry/abi.d.ts +0 -179
  85. package/lib/contracts/subscription-registry/abi.js +0 -195
  86. package/lib/contracts/subscription-registry/index.d.ts +0 -59
  87. package/lib/contracts/subscription-registry/index.js +0 -116
  88. package/lib/engine/graph.d.ts +0 -70
  89. package/lib/engine/graph.js +0 -73
@@ -0,0 +1,1145 @@
1
+ //#region src/contracts/membership-registry/abi.d.ts
2
+ /**
3
+ * Generated from `forge inspect MembershipRegistry abi` in fangorn-network/contracts
4
+ * (solidity/src/MembershipRegistry.sol). Regenerate with scripts/gen-abis.sh, do not edit.
5
+ */
6
+ declare const MEMBERSHIP_REGISTRY_ABI: readonly [{
7
+ readonly type: "constructor";
8
+ readonly inputs: readonly [];
9
+ readonly stateMutability: "nonpayable";
10
+ }, {
11
+ readonly type: "function";
12
+ readonly name: "UPGRADE_INTERFACE_VERSION";
13
+ readonly inputs: readonly [];
14
+ readonly outputs: readonly [{
15
+ readonly name: "";
16
+ readonly type: "string";
17
+ readonly internalType: "string";
18
+ }];
19
+ readonly stateMutability: "view";
20
+ }, {
21
+ readonly type: "function";
22
+ readonly name: "admin";
23
+ readonly inputs: readonly [];
24
+ readonly outputs: readonly [{
25
+ readonly name: "";
26
+ readonly type: "address";
27
+ readonly internalType: "address";
28
+ }];
29
+ readonly stateMutability: "view";
30
+ }, {
31
+ readonly type: "function";
32
+ readonly name: "appOfToken";
33
+ readonly inputs: readonly [{
34
+ readonly name: "tokenId";
35
+ readonly type: "uint256";
36
+ readonly internalType: "uint256";
37
+ }];
38
+ readonly outputs: readonly [{
39
+ readonly name: "";
40
+ readonly type: "bytes32";
41
+ readonly internalType: "bytes32";
42
+ }];
43
+ readonly stateMutability: "view";
44
+ }, {
45
+ readonly type: "function";
46
+ readonly name: "appRegistry";
47
+ readonly inputs: readonly [];
48
+ readonly outputs: readonly [{
49
+ readonly name: "";
50
+ readonly type: "address";
51
+ readonly internalType: "address";
52
+ }];
53
+ readonly stateMutability: "view";
54
+ }, {
55
+ readonly type: "function";
56
+ readonly name: "approve";
57
+ readonly inputs: readonly [{
58
+ readonly name: "to";
59
+ readonly type: "address";
60
+ readonly internalType: "address";
61
+ }, {
62
+ readonly name: "tokenId";
63
+ readonly type: "uint256";
64
+ readonly internalType: "uint256";
65
+ }];
66
+ readonly outputs: readonly [];
67
+ readonly stateMutability: "nonpayable";
68
+ }, {
69
+ readonly type: "function";
70
+ readonly name: "balanceOf";
71
+ readonly inputs: readonly [{
72
+ readonly name: "owner";
73
+ readonly type: "address";
74
+ readonly internalType: "address";
75
+ }];
76
+ readonly outputs: readonly [{
77
+ readonly name: "";
78
+ readonly type: "uint256";
79
+ readonly internalType: "uint256";
80
+ }];
81
+ readonly stateMutability: "view";
82
+ }, {
83
+ readonly type: "function";
84
+ readonly name: "canRead";
85
+ readonly inputs: readonly [{
86
+ readonly name: "tokenId";
87
+ readonly type: "uint256";
88
+ readonly internalType: "uint256";
89
+ }, {
90
+ readonly name: "who";
91
+ readonly type: "address";
92
+ readonly internalType: "address";
93
+ }];
94
+ readonly outputs: readonly [{
95
+ readonly name: "app_id";
96
+ readonly type: "bytes32";
97
+ readonly internalType: "bytes32";
98
+ }, {
99
+ readonly name: "until";
100
+ readonly type: "uint64";
101
+ readonly internalType: "uint64";
102
+ }];
103
+ readonly stateMutability: "view";
104
+ }, {
105
+ readonly type: "function";
106
+ readonly name: "cancelSubscription";
107
+ readonly inputs: readonly [{
108
+ readonly name: "";
109
+ readonly type: "uint256";
110
+ readonly internalType: "uint256";
111
+ }];
112
+ readonly outputs: readonly [];
113
+ readonly stateMutability: "payable";
114
+ }, {
115
+ readonly type: "function";
116
+ readonly name: "claim";
117
+ readonly inputs: readonly [{
118
+ readonly name: "app_id";
119
+ readonly type: "bytes32";
120
+ readonly internalType: "bytes32";
121
+ }, {
122
+ readonly name: "epoch";
123
+ readonly type: "uint256";
124
+ readonly internalType: "uint256";
125
+ }, {
126
+ readonly name: "holder";
127
+ readonly type: "address";
128
+ readonly internalType: "address";
129
+ }, {
130
+ readonly name: "merkleTreeDepth";
131
+ readonly type: "uint256";
132
+ readonly internalType: "uint256";
133
+ }, {
134
+ readonly name: "merkleTreeRoot";
135
+ readonly type: "uint256";
136
+ readonly internalType: "uint256";
137
+ }, {
138
+ readonly name: "nullifier";
139
+ readonly type: "uint256";
140
+ readonly internalType: "uint256";
141
+ }, {
142
+ readonly name: "points";
143
+ readonly type: "uint256[8]";
144
+ readonly internalType: "uint256[8]";
145
+ }];
146
+ readonly outputs: readonly [{
147
+ readonly name: "tokenId";
148
+ readonly type: "uint256";
149
+ readonly internalType: "uint256";
150
+ }];
151
+ readonly stateMutability: "nonpayable";
152
+ }, {
153
+ readonly type: "function";
154
+ readonly name: "currentEpoch";
155
+ readonly inputs: readonly [{
156
+ readonly name: "app_id";
157
+ readonly type: "bytes32";
158
+ readonly internalType: "bytes32";
159
+ }];
160
+ readonly outputs: readonly [{
161
+ readonly name: "";
162
+ readonly type: "uint256";
163
+ readonly internalType: "uint256";
164
+ }];
165
+ readonly stateMutability: "view";
166
+ }, {
167
+ readonly type: "function";
168
+ readonly name: "eip712Domain";
169
+ readonly inputs: readonly [];
170
+ readonly outputs: readonly [{
171
+ readonly name: "fields";
172
+ readonly type: "bytes1";
173
+ readonly internalType: "bytes1";
174
+ }, {
175
+ readonly name: "name";
176
+ readonly type: "string";
177
+ readonly internalType: "string";
178
+ }, {
179
+ readonly name: "version";
180
+ readonly type: "string";
181
+ readonly internalType: "string";
182
+ }, {
183
+ readonly name: "chainId";
184
+ readonly type: "uint256";
185
+ readonly internalType: "uint256";
186
+ }, {
187
+ readonly name: "verifyingContract";
188
+ readonly type: "address";
189
+ readonly internalType: "address";
190
+ }, {
191
+ readonly name: "salt";
192
+ readonly type: "bytes32";
193
+ readonly internalType: "bytes32";
194
+ }, {
195
+ readonly name: "extensions";
196
+ readonly type: "uint256[]";
197
+ readonly internalType: "uint256[]";
198
+ }];
199
+ readonly stateMutability: "view";
200
+ }, {
201
+ readonly type: "function";
202
+ readonly name: "expiresAt";
203
+ readonly inputs: readonly [{
204
+ readonly name: "tokenId";
205
+ readonly type: "uint256";
206
+ readonly internalType: "uint256";
207
+ }];
208
+ readonly outputs: readonly [{
209
+ readonly name: "";
210
+ readonly type: "uint64";
211
+ readonly internalType: "uint64";
212
+ }];
213
+ readonly stateMutability: "view";
214
+ }, {
215
+ readonly type: "function";
216
+ readonly name: "getApproved";
217
+ readonly inputs: readonly [{
218
+ readonly name: "tokenId";
219
+ readonly type: "uint256";
220
+ readonly internalType: "uint256";
221
+ }];
222
+ readonly outputs: readonly [{
223
+ readonly name: "";
224
+ readonly type: "address";
225
+ readonly internalType: "address";
226
+ }];
227
+ readonly stateMutability: "view";
228
+ }, {
229
+ readonly type: "function";
230
+ readonly name: "groupOf";
231
+ readonly inputs: readonly [{
232
+ readonly name: "app_id";
233
+ readonly type: "bytes32";
234
+ readonly internalType: "bytes32";
235
+ }, {
236
+ readonly name: "epoch";
237
+ readonly type: "uint256";
238
+ readonly internalType: "uint256";
239
+ }];
240
+ readonly outputs: readonly [{
241
+ readonly name: "";
242
+ readonly type: "uint256";
243
+ readonly internalType: "uint256";
244
+ }];
245
+ readonly stateMutability: "view";
246
+ }, {
247
+ readonly type: "function";
248
+ readonly name: "initialize";
249
+ readonly inputs: readonly [{
250
+ readonly name: "admin_";
251
+ readonly type: "address";
252
+ readonly internalType: "address";
253
+ }, {
254
+ readonly name: "usdc_";
255
+ readonly type: "address";
256
+ readonly internalType: "address";
257
+ }, {
258
+ readonly name: "semaphore_";
259
+ readonly type: "address";
260
+ readonly internalType: "address";
261
+ }, {
262
+ readonly name: "appRegistry_";
263
+ readonly type: "address";
264
+ readonly internalType: "address";
265
+ }];
266
+ readonly outputs: readonly [];
267
+ readonly stateMutability: "nonpayable";
268
+ }, {
269
+ readonly type: "function";
270
+ readonly name: "isApprovedForAll";
271
+ readonly inputs: readonly [{
272
+ readonly name: "owner";
273
+ readonly type: "address";
274
+ readonly internalType: "address";
275
+ }, {
276
+ readonly name: "operator";
277
+ readonly type: "address";
278
+ readonly internalType: "address";
279
+ }];
280
+ readonly outputs: readonly [{
281
+ readonly name: "";
282
+ readonly type: "bool";
283
+ readonly internalType: "bool";
284
+ }];
285
+ readonly stateMutability: "view";
286
+ }, {
287
+ readonly type: "function";
288
+ readonly name: "isRenewable";
289
+ readonly inputs: readonly [{
290
+ readonly name: "tokenId";
291
+ readonly type: "uint256";
292
+ readonly internalType: "uint256";
293
+ }];
294
+ readonly outputs: readonly [{
295
+ readonly name: "";
296
+ readonly type: "bool";
297
+ readonly internalType: "bool";
298
+ }];
299
+ readonly stateMutability: "view";
300
+ }, {
301
+ readonly type: "function";
302
+ readonly name: "join";
303
+ readonly inputs: readonly [{
304
+ readonly name: "app_id";
305
+ readonly type: "bytes32";
306
+ readonly internalType: "bytes32";
307
+ }, {
308
+ readonly name: "commitment";
309
+ readonly type: "uint256";
310
+ readonly internalType: "uint256";
311
+ }, {
312
+ readonly name: "salt";
313
+ readonly type: "bytes32";
314
+ readonly internalType: "bytes32";
315
+ }, {
316
+ readonly name: "pay";
317
+ readonly type: "tuple";
318
+ readonly internalType: "struct MembershipRegistry.Payment";
319
+ readonly components: readonly [{
320
+ readonly name: "from";
321
+ readonly type: "address";
322
+ readonly internalType: "address";
323
+ }, {
324
+ readonly name: "value";
325
+ readonly type: "uint256";
326
+ readonly internalType: "uint256";
327
+ }, {
328
+ readonly name: "validAfter";
329
+ readonly type: "uint256";
330
+ readonly internalType: "uint256";
331
+ }, {
332
+ readonly name: "validBefore";
333
+ readonly type: "uint256";
334
+ readonly internalType: "uint256";
335
+ }, {
336
+ readonly name: "nonce";
337
+ readonly type: "bytes32";
338
+ readonly internalType: "bytes32";
339
+ }, {
340
+ readonly name: "v";
341
+ readonly type: "uint8";
342
+ readonly internalType: "uint8";
343
+ }, {
344
+ readonly name: "r";
345
+ readonly type: "bytes32";
346
+ readonly internalType: "bytes32";
347
+ }, {
348
+ readonly name: "s";
349
+ readonly type: "bytes32";
350
+ readonly internalType: "bytes32";
351
+ }];
352
+ }];
353
+ readonly outputs: readonly [];
354
+ readonly stateMutability: "nonpayable";
355
+ }, {
356
+ readonly type: "function";
357
+ readonly name: "joinNonce";
358
+ readonly inputs: readonly [{
359
+ readonly name: "app_id";
360
+ readonly type: "bytes32";
361
+ readonly internalType: "bytes32";
362
+ }, {
363
+ readonly name: "epoch";
364
+ readonly type: "uint256";
365
+ readonly internalType: "uint256";
366
+ }, {
367
+ readonly name: "commitment";
368
+ readonly type: "uint256";
369
+ readonly internalType: "uint256";
370
+ }, {
371
+ readonly name: "salt";
372
+ readonly type: "bytes32";
373
+ readonly internalType: "bytes32";
374
+ }];
375
+ readonly outputs: readonly [{
376
+ readonly name: "";
377
+ readonly type: "bytes32";
378
+ readonly internalType: "bytes32";
379
+ }];
380
+ readonly stateMutability: "pure";
381
+ }, {
382
+ readonly type: "function";
383
+ readonly name: "locked";
384
+ readonly inputs: readonly [{
385
+ readonly name: "tokenId";
386
+ readonly type: "uint256";
387
+ readonly internalType: "uint256";
388
+ }];
389
+ readonly outputs: readonly [{
390
+ readonly name: "";
391
+ readonly type: "bool";
392
+ readonly internalType: "bool";
393
+ }];
394
+ readonly stateMutability: "view";
395
+ }, {
396
+ readonly type: "function";
397
+ readonly name: "name";
398
+ readonly inputs: readonly [];
399
+ readonly outputs: readonly [{
400
+ readonly name: "";
401
+ readonly type: "string";
402
+ readonly internalType: "string";
403
+ }];
404
+ readonly stateMutability: "view";
405
+ }, {
406
+ readonly type: "function";
407
+ readonly name: "ownerOf";
408
+ readonly inputs: readonly [{
409
+ readonly name: "tokenId";
410
+ readonly type: "uint256";
411
+ readonly internalType: "uint256";
412
+ }];
413
+ readonly outputs: readonly [{
414
+ readonly name: "";
415
+ readonly type: "address";
416
+ readonly internalType: "address";
417
+ }];
418
+ readonly stateMutability: "view";
419
+ }, {
420
+ readonly type: "function";
421
+ readonly name: "planOf";
422
+ readonly inputs: readonly [{
423
+ readonly name: "app_id";
424
+ readonly type: "bytes32";
425
+ readonly internalType: "bytes32";
426
+ }];
427
+ readonly outputs: readonly [{
428
+ readonly name: "price";
429
+ readonly type: "uint256";
430
+ readonly internalType: "uint256";
431
+ }, {
432
+ readonly name: "period";
433
+ readonly type: "uint64";
434
+ readonly internalType: "uint64";
435
+ }];
436
+ readonly stateMutability: "view";
437
+ }, {
438
+ readonly type: "function";
439
+ readonly name: "proxiableUUID";
440
+ readonly inputs: readonly [];
441
+ readonly outputs: readonly [{
442
+ readonly name: "";
443
+ readonly type: "bytes32";
444
+ readonly internalType: "bytes32";
445
+ }];
446
+ readonly stateMutability: "view";
447
+ }, {
448
+ readonly type: "function";
449
+ readonly name: "renewSubscription";
450
+ readonly inputs: readonly [{
451
+ readonly name: "";
452
+ readonly type: "uint256";
453
+ readonly internalType: "uint256";
454
+ }, {
455
+ readonly name: "";
456
+ readonly type: "uint64";
457
+ readonly internalType: "uint64";
458
+ }];
459
+ readonly outputs: readonly [];
460
+ readonly stateMutability: "payable";
461
+ }, {
462
+ readonly type: "function";
463
+ readonly name: "safeTransferFrom";
464
+ readonly inputs: readonly [{
465
+ readonly name: "from";
466
+ readonly type: "address";
467
+ readonly internalType: "address";
468
+ }, {
469
+ readonly name: "to";
470
+ readonly type: "address";
471
+ readonly internalType: "address";
472
+ }, {
473
+ readonly name: "tokenId";
474
+ readonly type: "uint256";
475
+ readonly internalType: "uint256";
476
+ }];
477
+ readonly outputs: readonly [];
478
+ readonly stateMutability: "nonpayable";
479
+ }, {
480
+ readonly type: "function";
481
+ readonly name: "safeTransferFrom";
482
+ readonly inputs: readonly [{
483
+ readonly name: "from";
484
+ readonly type: "address";
485
+ readonly internalType: "address";
486
+ }, {
487
+ readonly name: "to";
488
+ readonly type: "address";
489
+ readonly internalType: "address";
490
+ }, {
491
+ readonly name: "tokenId";
492
+ readonly type: "uint256";
493
+ readonly internalType: "uint256";
494
+ }, {
495
+ readonly name: "data";
496
+ readonly type: "bytes";
497
+ readonly internalType: "bytes";
498
+ }];
499
+ readonly outputs: readonly [];
500
+ readonly stateMutability: "nonpayable";
501
+ }, {
502
+ readonly type: "function";
503
+ readonly name: "scopeOf";
504
+ readonly inputs: readonly [{
505
+ readonly name: "app_id";
506
+ readonly type: "bytes32";
507
+ readonly internalType: "bytes32";
508
+ }, {
509
+ readonly name: "epoch";
510
+ readonly type: "uint256";
511
+ readonly internalType: "uint256";
512
+ }];
513
+ readonly outputs: readonly [{
514
+ readonly name: "";
515
+ readonly type: "uint256";
516
+ readonly internalType: "uint256";
517
+ }];
518
+ readonly stateMutability: "pure";
519
+ }, {
520
+ readonly type: "function";
521
+ readonly name: "semaphore";
522
+ readonly inputs: readonly [];
523
+ readonly outputs: readonly [{
524
+ readonly name: "";
525
+ readonly type: "address";
526
+ readonly internalType: "address";
527
+ }];
528
+ readonly stateMutability: "view";
529
+ }, {
530
+ readonly type: "function";
531
+ readonly name: "setAdmin";
532
+ readonly inputs: readonly [{
533
+ readonly name: "new_admin";
534
+ readonly type: "address";
535
+ readonly internalType: "address";
536
+ }];
537
+ readonly outputs: readonly [];
538
+ readonly stateMutability: "nonpayable";
539
+ }, {
540
+ readonly type: "function";
541
+ readonly name: "setApprovalForAll";
542
+ readonly inputs: readonly [{
543
+ readonly name: "operator";
544
+ readonly type: "address";
545
+ readonly internalType: "address";
546
+ }, {
547
+ readonly name: "approved";
548
+ readonly type: "bool";
549
+ readonly internalType: "bool";
550
+ }];
551
+ readonly outputs: readonly [];
552
+ readonly stateMutability: "nonpayable";
553
+ }, {
554
+ readonly type: "function";
555
+ readonly name: "setPlan";
556
+ readonly inputs: readonly [{
557
+ readonly name: "app_id";
558
+ readonly type: "bytes32";
559
+ readonly internalType: "bytes32";
560
+ }, {
561
+ readonly name: "price";
562
+ readonly type: "uint256";
563
+ readonly internalType: "uint256";
564
+ }, {
565
+ readonly name: "period";
566
+ readonly type: "uint64";
567
+ readonly internalType: "uint64";
568
+ }];
569
+ readonly outputs: readonly [];
570
+ readonly stateMutability: "nonpayable";
571
+ }, {
572
+ readonly type: "function";
573
+ readonly name: "setUser";
574
+ readonly inputs: readonly [{
575
+ readonly name: "tokenId";
576
+ readonly type: "uint256";
577
+ readonly internalType: "uint256";
578
+ }, {
579
+ readonly name: "user";
580
+ readonly type: "address";
581
+ readonly internalType: "address";
582
+ }, {
583
+ readonly name: "expires";
584
+ readonly type: "uint64";
585
+ readonly internalType: "uint64";
586
+ }];
587
+ readonly outputs: readonly [];
588
+ readonly stateMutability: "nonpayable";
589
+ }, {
590
+ readonly type: "function";
591
+ readonly name: "setUserBySig";
592
+ readonly inputs: readonly [{
593
+ readonly name: "tokenId";
594
+ readonly type: "uint256";
595
+ readonly internalType: "uint256";
596
+ }, {
597
+ readonly name: "user";
598
+ readonly type: "address";
599
+ readonly internalType: "address";
600
+ }, {
601
+ readonly name: "expires";
602
+ readonly type: "uint64";
603
+ readonly internalType: "uint64";
604
+ }, {
605
+ readonly name: "deadline";
606
+ readonly type: "uint256";
607
+ readonly internalType: "uint256";
608
+ }, {
609
+ readonly name: "signature";
610
+ readonly type: "bytes";
611
+ readonly internalType: "bytes";
612
+ }];
613
+ readonly outputs: readonly [];
614
+ readonly stateMutability: "nonpayable";
615
+ }, {
616
+ readonly type: "function";
617
+ readonly name: "supportsInterface";
618
+ readonly inputs: readonly [{
619
+ readonly name: "id";
620
+ readonly type: "bytes4";
621
+ readonly internalType: "bytes4";
622
+ }];
623
+ readonly outputs: readonly [{
624
+ readonly name: "";
625
+ readonly type: "bool";
626
+ readonly internalType: "bool";
627
+ }];
628
+ readonly stateMutability: "view";
629
+ }, {
630
+ readonly type: "function";
631
+ readonly name: "symbol";
632
+ readonly inputs: readonly [];
633
+ readonly outputs: readonly [{
634
+ readonly name: "";
635
+ readonly type: "string";
636
+ readonly internalType: "string";
637
+ }];
638
+ readonly stateMutability: "view";
639
+ }, {
640
+ readonly type: "function";
641
+ readonly name: "tokenIdOf";
642
+ readonly inputs: readonly [{
643
+ readonly name: "app_id";
644
+ readonly type: "bytes32";
645
+ readonly internalType: "bytes32";
646
+ }, {
647
+ readonly name: "holder";
648
+ readonly type: "address";
649
+ readonly internalType: "address";
650
+ }];
651
+ readonly outputs: readonly [{
652
+ readonly name: "";
653
+ readonly type: "uint256";
654
+ readonly internalType: "uint256";
655
+ }];
656
+ readonly stateMutability: "pure";
657
+ }, {
658
+ readonly type: "function";
659
+ readonly name: "tokenURI";
660
+ readonly inputs: readonly [{
661
+ readonly name: "tokenId";
662
+ readonly type: "uint256";
663
+ readonly internalType: "uint256";
664
+ }];
665
+ readonly outputs: readonly [{
666
+ readonly name: "";
667
+ readonly type: "string";
668
+ readonly internalType: "string";
669
+ }];
670
+ readonly stateMutability: "view";
671
+ }, {
672
+ readonly type: "function";
673
+ readonly name: "transferFrom";
674
+ readonly inputs: readonly [{
675
+ readonly name: "from";
676
+ readonly type: "address";
677
+ readonly internalType: "address";
678
+ }, {
679
+ readonly name: "to";
680
+ readonly type: "address";
681
+ readonly internalType: "address";
682
+ }, {
683
+ readonly name: "tokenId";
684
+ readonly type: "uint256";
685
+ readonly internalType: "uint256";
686
+ }];
687
+ readonly outputs: readonly [];
688
+ readonly stateMutability: "nonpayable";
689
+ }, {
690
+ readonly type: "function";
691
+ readonly name: "upgradeToAndCall";
692
+ readonly inputs: readonly [{
693
+ readonly name: "newImplementation";
694
+ readonly type: "address";
695
+ readonly internalType: "address";
696
+ }, {
697
+ readonly name: "data";
698
+ readonly type: "bytes";
699
+ readonly internalType: "bytes";
700
+ }];
701
+ readonly outputs: readonly [];
702
+ readonly stateMutability: "payable";
703
+ }, {
704
+ readonly type: "function";
705
+ readonly name: "usdc";
706
+ readonly inputs: readonly [];
707
+ readonly outputs: readonly [{
708
+ readonly name: "";
709
+ readonly type: "address";
710
+ readonly internalType: "address";
711
+ }];
712
+ readonly stateMutability: "view";
713
+ }, {
714
+ readonly type: "function";
715
+ readonly name: "userExpires";
716
+ readonly inputs: readonly [{
717
+ readonly name: "tokenId";
718
+ readonly type: "uint256";
719
+ readonly internalType: "uint256";
720
+ }];
721
+ readonly outputs: readonly [{
722
+ readonly name: "";
723
+ readonly type: "uint256";
724
+ readonly internalType: "uint256";
725
+ }];
726
+ readonly stateMutability: "view";
727
+ }, {
728
+ readonly type: "function";
729
+ readonly name: "userNonces";
730
+ readonly inputs: readonly [{
731
+ readonly name: "";
732
+ readonly type: "uint256";
733
+ readonly internalType: "uint256";
734
+ }];
735
+ readonly outputs: readonly [{
736
+ readonly name: "";
737
+ readonly type: "uint256";
738
+ readonly internalType: "uint256";
739
+ }];
740
+ readonly stateMutability: "view";
741
+ }, {
742
+ readonly type: "function";
743
+ readonly name: "userOf";
744
+ readonly inputs: readonly [{
745
+ readonly name: "tokenId";
746
+ readonly type: "uint256";
747
+ readonly internalType: "uint256";
748
+ }];
749
+ readonly outputs: readonly [{
750
+ readonly name: "";
751
+ readonly type: "address";
752
+ readonly internalType: "address";
753
+ }];
754
+ readonly stateMutability: "view";
755
+ }, {
756
+ readonly type: "event";
757
+ readonly name: "AdminChanged";
758
+ readonly inputs: readonly [{
759
+ readonly name: "previous_admin";
760
+ readonly type: "address";
761
+ readonly indexed: false;
762
+ readonly internalType: "address";
763
+ }, {
764
+ readonly name: "new_admin";
765
+ readonly type: "address";
766
+ readonly indexed: false;
767
+ readonly internalType: "address";
768
+ }];
769
+ readonly anonymous: false;
770
+ }, {
771
+ readonly type: "event";
772
+ readonly name: "Approval";
773
+ readonly inputs: readonly [{
774
+ readonly name: "owner";
775
+ readonly type: "address";
776
+ readonly indexed: true;
777
+ readonly internalType: "address";
778
+ }, {
779
+ readonly name: "approved";
780
+ readonly type: "address";
781
+ readonly indexed: true;
782
+ readonly internalType: "address";
783
+ }, {
784
+ readonly name: "tokenId";
785
+ readonly type: "uint256";
786
+ readonly indexed: true;
787
+ readonly internalType: "uint256";
788
+ }];
789
+ readonly anonymous: false;
790
+ }, {
791
+ readonly type: "event";
792
+ readonly name: "ApprovalForAll";
793
+ readonly inputs: readonly [{
794
+ readonly name: "owner";
795
+ readonly type: "address";
796
+ readonly indexed: true;
797
+ readonly internalType: "address";
798
+ }, {
799
+ readonly name: "operator";
800
+ readonly type: "address";
801
+ readonly indexed: true;
802
+ readonly internalType: "address";
803
+ }, {
804
+ readonly name: "approved";
805
+ readonly type: "bool";
806
+ readonly indexed: false;
807
+ readonly internalType: "bool";
808
+ }];
809
+ readonly anonymous: false;
810
+ }, {
811
+ readonly type: "event";
812
+ readonly name: "Claimed";
813
+ readonly inputs: readonly [{
814
+ readonly name: "app_id";
815
+ readonly type: "bytes32";
816
+ readonly indexed: true;
817
+ readonly internalType: "bytes32";
818
+ }, {
819
+ readonly name: "epoch";
820
+ readonly type: "uint256";
821
+ readonly indexed: true;
822
+ readonly internalType: "uint256";
823
+ }, {
824
+ readonly name: "tokenId";
825
+ readonly type: "uint256";
826
+ readonly indexed: true;
827
+ readonly internalType: "uint256";
828
+ }, {
829
+ readonly name: "holder";
830
+ readonly type: "address";
831
+ readonly indexed: false;
832
+ readonly internalType: "address";
833
+ }];
834
+ readonly anonymous: false;
835
+ }, {
836
+ readonly type: "event";
837
+ readonly name: "EIP712DomainChanged";
838
+ readonly inputs: readonly [];
839
+ readonly anonymous: false;
840
+ }, {
841
+ readonly type: "event";
842
+ readonly name: "Initialized";
843
+ readonly inputs: readonly [{
844
+ readonly name: "version";
845
+ readonly type: "uint64";
846
+ readonly indexed: false;
847
+ readonly internalType: "uint64";
848
+ }];
849
+ readonly anonymous: false;
850
+ }, {
851
+ readonly type: "event";
852
+ readonly name: "Joined";
853
+ readonly inputs: readonly [{
854
+ readonly name: "app_id";
855
+ readonly type: "bytes32";
856
+ readonly indexed: true;
857
+ readonly internalType: "bytes32";
858
+ }, {
859
+ readonly name: "epoch";
860
+ readonly type: "uint256";
861
+ readonly indexed: true;
862
+ readonly internalType: "uint256";
863
+ }, {
864
+ readonly name: "commitment";
865
+ readonly type: "uint256";
866
+ readonly indexed: false;
867
+ readonly internalType: "uint256";
868
+ }];
869
+ readonly anonymous: false;
870
+ }, {
871
+ readonly type: "event";
872
+ readonly name: "Locked";
873
+ readonly inputs: readonly [{
874
+ readonly name: "tokenId";
875
+ readonly type: "uint256";
876
+ readonly indexed: false;
877
+ readonly internalType: "uint256";
878
+ }];
879
+ readonly anonymous: false;
880
+ }, {
881
+ readonly type: "event";
882
+ readonly name: "PlanSet";
883
+ readonly inputs: readonly [{
884
+ readonly name: "app_id";
885
+ readonly type: "bytes32";
886
+ readonly indexed: true;
887
+ readonly internalType: "bytes32";
888
+ }, {
889
+ readonly name: "price";
890
+ readonly type: "uint256";
891
+ readonly indexed: false;
892
+ readonly internalType: "uint256";
893
+ }, {
894
+ readonly name: "period";
895
+ readonly type: "uint64";
896
+ readonly indexed: false;
897
+ readonly internalType: "uint64";
898
+ }];
899
+ readonly anonymous: false;
900
+ }, {
901
+ readonly type: "event";
902
+ readonly name: "SubscriptionUpdate";
903
+ readonly inputs: readonly [{
904
+ readonly name: "tokenId";
905
+ readonly type: "uint256";
906
+ readonly indexed: true;
907
+ readonly internalType: "uint256";
908
+ }, {
909
+ readonly name: "expiration";
910
+ readonly type: "uint64";
911
+ readonly indexed: false;
912
+ readonly internalType: "uint64";
913
+ }];
914
+ readonly anonymous: false;
915
+ }, {
916
+ readonly type: "event";
917
+ readonly name: "Transfer";
918
+ readonly inputs: readonly [{
919
+ readonly name: "from";
920
+ readonly type: "address";
921
+ readonly indexed: true;
922
+ readonly internalType: "address";
923
+ }, {
924
+ readonly name: "to";
925
+ readonly type: "address";
926
+ readonly indexed: true;
927
+ readonly internalType: "address";
928
+ }, {
929
+ readonly name: "tokenId";
930
+ readonly type: "uint256";
931
+ readonly indexed: true;
932
+ readonly internalType: "uint256";
933
+ }];
934
+ readonly anonymous: false;
935
+ }, {
936
+ readonly type: "event";
937
+ readonly name: "Unlocked";
938
+ readonly inputs: readonly [{
939
+ readonly name: "tokenId";
940
+ readonly type: "uint256";
941
+ readonly indexed: false;
942
+ readonly internalType: "uint256";
943
+ }];
944
+ readonly anonymous: false;
945
+ }, {
946
+ readonly type: "event";
947
+ readonly name: "UpdateUser";
948
+ readonly inputs: readonly [{
949
+ readonly name: "tokenId";
950
+ readonly type: "uint256";
951
+ readonly indexed: true;
952
+ readonly internalType: "uint256";
953
+ }, {
954
+ readonly name: "user";
955
+ readonly type: "address";
956
+ readonly indexed: true;
957
+ readonly internalType: "address";
958
+ }, {
959
+ readonly name: "expires";
960
+ readonly type: "uint64";
961
+ readonly indexed: false;
962
+ readonly internalType: "uint64";
963
+ }];
964
+ readonly anonymous: false;
965
+ }, {
966
+ readonly type: "event";
967
+ readonly name: "Upgraded";
968
+ readonly inputs: readonly [{
969
+ readonly name: "implementation";
970
+ readonly type: "address";
971
+ readonly indexed: true;
972
+ readonly internalType: "address";
973
+ }];
974
+ readonly anonymous: false;
975
+ }, {
976
+ readonly type: "error";
977
+ readonly name: "AddressEmptyCode";
978
+ readonly inputs: readonly [{
979
+ readonly name: "target";
980
+ readonly type: "address";
981
+ readonly internalType: "address";
982
+ }];
983
+ }, {
984
+ readonly type: "error";
985
+ readonly name: "AlreadyClaimed";
986
+ readonly inputs: readonly [];
987
+ }, {
988
+ readonly type: "error";
989
+ readonly name: "ERC1967InvalidImplementation";
990
+ readonly inputs: readonly [{
991
+ readonly name: "implementation";
992
+ readonly type: "address";
993
+ readonly internalType: "address";
994
+ }];
995
+ }, {
996
+ readonly type: "error";
997
+ readonly name: "ERC1967NonPayable";
998
+ readonly inputs: readonly [];
999
+ }, {
1000
+ readonly type: "error";
1001
+ readonly name: "ERC721IncorrectOwner";
1002
+ readonly inputs: readonly [{
1003
+ readonly name: "sender";
1004
+ readonly type: "address";
1005
+ readonly internalType: "address";
1006
+ }, {
1007
+ readonly name: "tokenId";
1008
+ readonly type: "uint256";
1009
+ readonly internalType: "uint256";
1010
+ }, {
1011
+ readonly name: "owner";
1012
+ readonly type: "address";
1013
+ readonly internalType: "address";
1014
+ }];
1015
+ }, {
1016
+ readonly type: "error";
1017
+ readonly name: "ERC721InsufficientApproval";
1018
+ readonly inputs: readonly [{
1019
+ readonly name: "operator";
1020
+ readonly type: "address";
1021
+ readonly internalType: "address";
1022
+ }, {
1023
+ readonly name: "tokenId";
1024
+ readonly type: "uint256";
1025
+ readonly internalType: "uint256";
1026
+ }];
1027
+ }, {
1028
+ readonly type: "error";
1029
+ readonly name: "ERC721InvalidApprover";
1030
+ readonly inputs: readonly [{
1031
+ readonly name: "approver";
1032
+ readonly type: "address";
1033
+ readonly internalType: "address";
1034
+ }];
1035
+ }, {
1036
+ readonly type: "error";
1037
+ readonly name: "ERC721InvalidOperator";
1038
+ readonly inputs: readonly [{
1039
+ readonly name: "operator";
1040
+ readonly type: "address";
1041
+ readonly internalType: "address";
1042
+ }];
1043
+ }, {
1044
+ readonly type: "error";
1045
+ readonly name: "ERC721InvalidOwner";
1046
+ readonly inputs: readonly [{
1047
+ readonly name: "owner";
1048
+ readonly type: "address";
1049
+ readonly internalType: "address";
1050
+ }];
1051
+ }, {
1052
+ readonly type: "error";
1053
+ readonly name: "ERC721InvalidReceiver";
1054
+ readonly inputs: readonly [{
1055
+ readonly name: "receiver";
1056
+ readonly type: "address";
1057
+ readonly internalType: "address";
1058
+ }];
1059
+ }, {
1060
+ readonly type: "error";
1061
+ readonly name: "ERC721InvalidSender";
1062
+ readonly inputs: readonly [{
1063
+ readonly name: "sender";
1064
+ readonly type: "address";
1065
+ readonly internalType: "address";
1066
+ }];
1067
+ }, {
1068
+ readonly type: "error";
1069
+ readonly name: "ERC721NonexistentToken";
1070
+ readonly inputs: readonly [{
1071
+ readonly name: "tokenId";
1072
+ readonly type: "uint256";
1073
+ readonly internalType: "uint256";
1074
+ }];
1075
+ }, {
1076
+ readonly type: "error";
1077
+ readonly name: "Expired";
1078
+ readonly inputs: readonly [];
1079
+ }, {
1080
+ readonly type: "error";
1081
+ readonly name: "FailedCall";
1082
+ readonly inputs: readonly [];
1083
+ }, {
1084
+ readonly type: "error";
1085
+ readonly name: "InvalidInitialization";
1086
+ readonly inputs: readonly [];
1087
+ }, {
1088
+ readonly type: "error";
1089
+ readonly name: "NoGroup";
1090
+ readonly inputs: readonly [];
1091
+ }, {
1092
+ readonly type: "error";
1093
+ readonly name: "NoPlan";
1094
+ readonly inputs: readonly [];
1095
+ }, {
1096
+ readonly type: "error";
1097
+ readonly name: "NonceNotBound";
1098
+ readonly inputs: readonly [];
1099
+ }, {
1100
+ readonly type: "error";
1101
+ readonly name: "NotInitializing";
1102
+ readonly inputs: readonly [];
1103
+ }, {
1104
+ readonly type: "error";
1105
+ readonly name: "NotTransferable";
1106
+ readonly inputs: readonly [];
1107
+ }, {
1108
+ readonly type: "error";
1109
+ readonly name: "ReentrancyGuardReentrantCall";
1110
+ readonly inputs: readonly [];
1111
+ }, {
1112
+ readonly type: "error";
1113
+ readonly name: "SafeERC20FailedOperation";
1114
+ readonly inputs: readonly [{
1115
+ readonly name: "token";
1116
+ readonly type: "address";
1117
+ readonly internalType: "address";
1118
+ }];
1119
+ }, {
1120
+ readonly type: "error";
1121
+ readonly name: "UUPSUnauthorizedCallContext";
1122
+ readonly inputs: readonly [];
1123
+ }, {
1124
+ readonly type: "error";
1125
+ readonly name: "UUPSUnsupportedProxiableUUID";
1126
+ readonly inputs: readonly [{
1127
+ readonly name: "slot";
1128
+ readonly type: "bytes32";
1129
+ readonly internalType: "bytes32";
1130
+ }];
1131
+ }, {
1132
+ readonly type: "error";
1133
+ readonly name: "Unauthorized";
1134
+ readonly inputs: readonly [];
1135
+ }, {
1136
+ readonly type: "error";
1137
+ readonly name: "UseJoinAndClaim";
1138
+ readonly inputs: readonly [];
1139
+ }, {
1140
+ readonly type: "error";
1141
+ readonly name: "WrongAmount";
1142
+ readonly inputs: readonly [];
1143
+ }];
1144
+ //#endregion
1145
+ export { MEMBERSHIP_REGISTRY_ABI };