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