@fangorn-network/sdk 2026.11.3-dev → 2026.11.3

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.
@@ -5,941 +5,941 @@
5
5
  */
6
6
  const SETTLEMENT_REGISTRY_ABI = [
7
7
  {
8
- "type": "constructor",
9
- "inputs": [],
10
- "stateMutability": "nonpayable"
8
+ type: "constructor",
9
+ inputs: [],
10
+ stateMutability: "nonpayable"
11
11
  },
12
12
  {
13
- "type": "function",
14
- "name": "TERMS_TYPEHASH",
15
- "inputs": [],
16
- "outputs": [{
17
- "name": "",
18
- "type": "bytes32",
19
- "internalType": "bytes32"
13
+ type: "function",
14
+ name: "TERMS_TYPEHASH",
15
+ inputs: [],
16
+ outputs: [{
17
+ name: "",
18
+ type: "bytes32",
19
+ internalType: "bytes32"
20
20
  }],
21
- "stateMutability": "view"
21
+ stateMutability: "view"
22
22
  },
23
23
  {
24
- "type": "function",
25
- "name": "UPGRADE_INTERFACE_VERSION",
26
- "inputs": [],
27
- "outputs": [{
28
- "name": "",
29
- "type": "string",
30
- "internalType": "string"
24
+ type: "function",
25
+ name: "UPGRADE_INTERFACE_VERSION",
26
+ inputs: [],
27
+ outputs: [{
28
+ name: "",
29
+ type: "string",
30
+ internalType: "string"
31
31
  }],
32
- "stateMutability": "view"
32
+ stateMutability: "view"
33
33
  },
34
34
  {
35
- "type": "function",
36
- "name": "admin",
37
- "inputs": [],
38
- "outputs": [{
39
- "name": "",
40
- "type": "address",
41
- "internalType": "address"
35
+ type: "function",
36
+ name: "admin",
37
+ inputs: [],
38
+ outputs: [{
39
+ name: "",
40
+ type: "address",
41
+ internalType: "address"
42
42
  }],
43
- "stateMutability": "view"
43
+ stateMutability: "view"
44
44
  },
45
45
  {
46
- "type": "function",
47
- "name": "canRead",
48
- "inputs": [
46
+ type: "function",
47
+ name: "canRead",
48
+ inputs: [
49
49
  {
50
- "name": "reader",
51
- "type": "address",
52
- "internalType": "address"
50
+ name: "reader",
51
+ type: "address",
52
+ internalType: "address"
53
53
  },
54
54
  {
55
- "name": "publisher",
56
- "type": "address",
57
- "internalType": "address"
55
+ name: "publisher",
56
+ type: "address",
57
+ internalType: "address"
58
58
  },
59
59
  {
60
- "name": "repo",
61
- "type": "bytes32",
62
- "internalType": "bytes32"
60
+ name: "repo",
61
+ type: "bytes32",
62
+ internalType: "bytes32"
63
63
  },
64
64
  {
65
- "name": "key",
66
- "type": "bytes32",
67
- "internalType": "bytes32"
65
+ name: "key",
66
+ type: "bytes32",
67
+ internalType: "bytes32"
68
68
  }
69
69
  ],
70
- "outputs": [{
71
- "name": "",
72
- "type": "bool",
73
- "internalType": "bool"
70
+ outputs: [{
71
+ name: "",
72
+ type: "bool",
73
+ internalType: "bool"
74
74
  }],
75
- "stateMutability": "view"
75
+ stateMutability: "view"
76
76
  },
77
77
  {
78
- "type": "function",
79
- "name": "eip712Domain",
80
- "inputs": [],
81
- "outputs": [
78
+ type: "function",
79
+ name: "eip712Domain",
80
+ inputs: [],
81
+ outputs: [
82
82
  {
83
- "name": "fields",
84
- "type": "bytes1",
85
- "internalType": "bytes1"
83
+ name: "fields",
84
+ type: "bytes1",
85
+ internalType: "bytes1"
86
86
  },
87
87
  {
88
- "name": "name",
89
- "type": "string",
90
- "internalType": "string"
88
+ name: "name",
89
+ type: "string",
90
+ internalType: "string"
91
91
  },
92
92
  {
93
- "name": "version",
94
- "type": "string",
95
- "internalType": "string"
93
+ name: "version",
94
+ type: "string",
95
+ internalType: "string"
96
96
  },
97
97
  {
98
- "name": "chainId",
99
- "type": "uint256",
100
- "internalType": "uint256"
98
+ name: "chainId",
99
+ type: "uint256",
100
+ internalType: "uint256"
101
101
  },
102
102
  {
103
- "name": "verifyingContract",
104
- "type": "address",
105
- "internalType": "address"
103
+ name: "verifyingContract",
104
+ type: "address",
105
+ internalType: "address"
106
106
  },
107
107
  {
108
- "name": "salt",
109
- "type": "bytes32",
110
- "internalType": "bytes32"
108
+ name: "salt",
109
+ type: "bytes32",
110
+ internalType: "bytes32"
111
111
  },
112
112
  {
113
- "name": "extensions",
114
- "type": "uint256[]",
115
- "internalType": "uint256[]"
113
+ name: "extensions",
114
+ type: "uint256[]",
115
+ internalType: "uint256[]"
116
116
  }
117
117
  ],
118
- "stateMutability": "view"
118
+ stateMutability: "view"
119
119
  },
120
120
  {
121
- "type": "function",
122
- "name": "generationOf",
123
- "inputs": [{
124
- "name": "",
125
- "type": "address",
126
- "internalType": "address"
121
+ type: "function",
122
+ name: "generationOf",
123
+ inputs: [{
124
+ name: "",
125
+ type: "address",
126
+ internalType: "address"
127
127
  }, {
128
- "name": "",
129
- "type": "bytes32",
130
- "internalType": "bytes32"
128
+ name: "",
129
+ type: "bytes32",
130
+ internalType: "bytes32"
131
131
  }],
132
- "outputs": [{
133
- "name": "",
134
- "type": "uint64",
135
- "internalType": "uint64"
132
+ outputs: [{
133
+ name: "",
134
+ type: "uint64",
135
+ internalType: "uint64"
136
136
  }],
137
- "stateMutability": "view"
137
+ stateMutability: "view"
138
138
  },
139
139
  {
140
- "type": "function",
141
- "name": "groupOf",
142
- "inputs": [{
143
- "name": "subject",
144
- "type": "bytes32",
145
- "internalType": "bytes32"
140
+ type: "function",
141
+ name: "groupOf",
142
+ inputs: [{
143
+ name: "subject",
144
+ type: "bytes32",
145
+ internalType: "bytes32"
146
146
  }],
147
- "outputs": [{
148
- "name": "",
149
- "type": "uint256",
150
- "internalType": "uint256"
147
+ outputs: [{
148
+ name: "",
149
+ type: "uint256",
150
+ internalType: "uint256"
151
151
  }],
152
- "stateMutability": "view"
152
+ stateMutability: "view"
153
153
  },
154
154
  {
155
- "type": "function",
156
- "name": "hashTerms",
157
- "inputs": [{
158
- "name": "t",
159
- "type": "tuple",
160
- "internalType": "struct SettlementRegistry.Terms",
161
- "components": [
155
+ type: "function",
156
+ name: "hashTerms",
157
+ inputs: [{
158
+ name: "t",
159
+ type: "tuple",
160
+ internalType: "struct SettlementRegistry.Terms",
161
+ components: [
162
162
  {
163
- "name": "publisher",
164
- "type": "address",
165
- "internalType": "address"
163
+ name: "publisher",
164
+ type: "address",
165
+ internalType: "address"
166
166
  },
167
167
  {
168
- "name": "repo",
169
- "type": "bytes32",
170
- "internalType": "bytes32"
168
+ name: "repo",
169
+ type: "bytes32",
170
+ internalType: "bytes32"
171
171
  },
172
172
  {
173
- "name": "key",
174
- "type": "bytes32",
175
- "internalType": "bytes32"
173
+ name: "key",
174
+ type: "bytes32",
175
+ internalType: "bytes32"
176
176
  },
177
177
  {
178
- "name": "price",
179
- "type": "uint256",
180
- "internalType": "uint256"
178
+ name: "price",
179
+ type: "uint256",
180
+ internalType: "uint256"
181
181
  },
182
182
  {
183
- "name": "shareBps",
184
- "type": "uint16",
185
- "internalType": "uint16"
183
+ name: "shareBps",
184
+ type: "uint16",
185
+ internalType: "uint16"
186
186
  },
187
187
  {
188
- "name": "generation",
189
- "type": "uint64",
190
- "internalType": "uint64"
188
+ name: "generation",
189
+ type: "uint64",
190
+ internalType: "uint64"
191
191
  },
192
192
  {
193
- "name": "deadline",
194
- "type": "uint64",
195
- "internalType": "uint64"
193
+ name: "deadline",
194
+ type: "uint64",
195
+ internalType: "uint64"
196
196
  }
197
197
  ]
198
198
  }],
199
- "outputs": [{
200
- "name": "",
201
- "type": "bytes32",
202
- "internalType": "bytes32"
199
+ outputs: [{
200
+ name: "",
201
+ type: "bytes32",
202
+ internalType: "bytes32"
203
203
  }],
204
- "stateMutability": "view"
204
+ stateMutability: "view"
205
205
  },
206
206
  {
207
- "type": "function",
208
- "name": "initialize",
209
- "inputs": [
207
+ type: "function",
208
+ name: "initialize",
209
+ inputs: [
210
210
  {
211
- "name": "admin_",
212
- "type": "address",
213
- "internalType": "address"
211
+ name: "admin_",
212
+ type: "address",
213
+ internalType: "address"
214
214
  },
215
215
  {
216
- "name": "usdc_",
217
- "type": "address",
218
- "internalType": "address"
216
+ name: "usdc_",
217
+ type: "address",
218
+ internalType: "address"
219
219
  },
220
220
  {
221
- "name": "semaphore_",
222
- "type": "address",
223
- "internalType": "address"
221
+ name: "semaphore_",
222
+ type: "address",
223
+ internalType: "address"
224
224
  }
225
225
  ],
226
- "outputs": [],
227
- "stateMutability": "nonpayable"
226
+ outputs: [],
227
+ stateMutability: "nonpayable"
228
228
  },
229
229
  {
230
- "type": "function",
231
- "name": "isDenied",
232
- "inputs": [{
233
- "name": "",
234
- "type": "address",
235
- "internalType": "address"
230
+ type: "function",
231
+ name: "isDenied",
232
+ inputs: [{
233
+ name: "",
234
+ type: "address",
235
+ internalType: "address"
236
236
  }, {
237
- "name": "",
238
- "type": "address",
239
- "internalType": "address"
237
+ name: "",
238
+ type: "address",
239
+ internalType: "address"
240
240
  }],
241
- "outputs": [{
242
- "name": "",
243
- "type": "bool",
244
- "internalType": "bool"
241
+ outputs: [{
242
+ name: "",
243
+ type: "bool",
244
+ internalType: "bool"
245
245
  }],
246
- "stateMutability": "view"
246
+ stateMutability: "view"
247
247
  },
248
248
  {
249
- "type": "function",
250
- "name": "isDisabled",
251
- "inputs": [{
252
- "name": "",
253
- "type": "bytes32",
254
- "internalType": "bytes32"
249
+ type: "function",
250
+ name: "isDisabled",
251
+ inputs: [{
252
+ name: "",
253
+ type: "bytes32",
254
+ internalType: "bytes32"
255
255
  }],
256
- "outputs": [{
257
- "name": "",
258
- "type": "bool",
259
- "internalType": "bool"
256
+ outputs: [{
257
+ name: "",
258
+ type: "bool",
259
+ internalType: "bool"
260
260
  }],
261
- "stateMutability": "view"
261
+ stateMutability: "view"
262
262
  },
263
263
  {
264
- "type": "function",
265
- "name": "isRegistered",
266
- "inputs": [{
267
- "name": "subject",
268
- "type": "bytes32",
269
- "internalType": "bytes32"
264
+ type: "function",
265
+ name: "isRegistered",
266
+ inputs: [{
267
+ name: "subject",
268
+ type: "bytes32",
269
+ internalType: "bytes32"
270
270
  }, {
271
- "name": "commitment",
272
- "type": "uint256",
273
- "internalType": "uint256"
271
+ name: "commitment",
272
+ type: "uint256",
273
+ internalType: "uint256"
274
274
  }],
275
- "outputs": [{
276
- "name": "",
277
- "type": "bool",
278
- "internalType": "bool"
275
+ outputs: [{
276
+ name: "",
277
+ type: "bool",
278
+ internalType: "bool"
279
279
  }],
280
- "stateMutability": "view"
280
+ stateMutability: "view"
281
281
  },
282
282
  {
283
- "type": "function",
284
- "name": "isSettled",
285
- "inputs": [{
286
- "name": "reader",
287
- "type": "address",
288
- "internalType": "address"
283
+ type: "function",
284
+ name: "isSettled",
285
+ inputs: [{
286
+ name: "reader",
287
+ type: "address",
288
+ internalType: "address"
289
289
  }, {
290
- "name": "subject",
291
- "type": "bytes32",
292
- "internalType": "bytes32"
290
+ name: "subject",
291
+ type: "bytes32",
292
+ internalType: "bytes32"
293
293
  }],
294
- "outputs": [{
295
- "name": "",
296
- "type": "bool",
297
- "internalType": "bool"
294
+ outputs: [{
295
+ name: "",
296
+ type: "bool",
297
+ internalType: "bool"
298
298
  }],
299
- "stateMutability": "view"
299
+ stateMutability: "view"
300
300
  },
301
301
  {
302
- "type": "function",
303
- "name": "proxiableUUID",
304
- "inputs": [],
305
- "outputs": [{
306
- "name": "",
307
- "type": "bytes32",
308
- "internalType": "bytes32"
302
+ type: "function",
303
+ name: "proxiableUUID",
304
+ inputs: [],
305
+ outputs: [{
306
+ name: "",
307
+ type: "bytes32",
308
+ internalType: "bytes32"
309
309
  }],
310
- "stateMutability": "view"
310
+ stateMutability: "view"
311
311
  },
312
312
  {
313
- "type": "function",
314
- "name": "raiseGeneration",
315
- "inputs": [{
316
- "name": "repo",
317
- "type": "bytes32",
318
- "internalType": "bytes32"
313
+ type: "function",
314
+ name: "raiseGeneration",
315
+ inputs: [{
316
+ name: "repo",
317
+ type: "bytes32",
318
+ internalType: "bytes32"
319
319
  }],
320
- "outputs": [{
321
- "name": "generation",
322
- "type": "uint64",
323
- "internalType": "uint64"
320
+ outputs: [{
321
+ name: "generation",
322
+ type: "uint64",
323
+ internalType: "uint64"
324
324
  }],
325
- "stateMutability": "nonpayable"
325
+ stateMutability: "nonpayable"
326
326
  },
327
327
  {
328
- "type": "function",
329
- "name": "register",
330
- "inputs": [
328
+ type: "function",
329
+ name: "register",
330
+ inputs: [
331
331
  {
332
- "name": "t",
333
- "type": "tuple",
334
- "internalType": "struct SettlementRegistry.Terms",
335
- "components": [
332
+ name: "t",
333
+ type: "tuple",
334
+ internalType: "struct SettlementRegistry.Terms",
335
+ components: [
336
336
  {
337
- "name": "publisher",
338
- "type": "address",
339
- "internalType": "address"
337
+ name: "publisher",
338
+ type: "address",
339
+ internalType: "address"
340
340
  },
341
341
  {
342
- "name": "repo",
343
- "type": "bytes32",
344
- "internalType": "bytes32"
342
+ name: "repo",
343
+ type: "bytes32",
344
+ internalType: "bytes32"
345
345
  },
346
346
  {
347
- "name": "key",
348
- "type": "bytes32",
349
- "internalType": "bytes32"
347
+ name: "key",
348
+ type: "bytes32",
349
+ internalType: "bytes32"
350
350
  },
351
351
  {
352
- "name": "price",
353
- "type": "uint256",
354
- "internalType": "uint256"
352
+ name: "price",
353
+ type: "uint256",
354
+ internalType: "uint256"
355
355
  },
356
356
  {
357
- "name": "shareBps",
358
- "type": "uint16",
359
- "internalType": "uint16"
357
+ name: "shareBps",
358
+ type: "uint16",
359
+ internalType: "uint16"
360
360
  },
361
361
  {
362
- "name": "generation",
363
- "type": "uint64",
364
- "internalType": "uint64"
362
+ name: "generation",
363
+ type: "uint64",
364
+ internalType: "uint64"
365
365
  },
366
366
  {
367
- "name": "deadline",
368
- "type": "uint64",
369
- "internalType": "uint64"
367
+ name: "deadline",
368
+ type: "uint64",
369
+ internalType: "uint64"
370
370
  }
371
371
  ]
372
372
  },
373
373
  {
374
- "name": "signature",
375
- "type": "bytes",
376
- "internalType": "bytes"
374
+ name: "signature",
375
+ type: "bytes",
376
+ internalType: "bytes"
377
377
  },
378
378
  {
379
- "name": "commitment",
380
- "type": "uint256",
381
- "internalType": "uint256"
379
+ name: "commitment",
380
+ type: "uint256",
381
+ internalType: "uint256"
382
382
  },
383
383
  {
384
- "name": "referrer",
385
- "type": "address",
386
- "internalType": "address"
384
+ name: "referrer",
385
+ type: "address",
386
+ internalType: "address"
387
387
  },
388
388
  {
389
- "name": "salt",
390
- "type": "bytes32",
391
- "internalType": "bytes32"
389
+ name: "salt",
390
+ type: "bytes32",
391
+ internalType: "bytes32"
392
392
  },
393
393
  {
394
- "name": "pay",
395
- "type": "tuple",
396
- "internalType": "struct SettlementRegistry.Payment",
397
- "components": [
394
+ name: "pay",
395
+ type: "tuple",
396
+ internalType: "struct SettlementRegistry.Payment",
397
+ components: [
398
398
  {
399
- "name": "from",
400
- "type": "address",
401
- "internalType": "address"
399
+ name: "from",
400
+ type: "address",
401
+ internalType: "address"
402
402
  },
403
403
  {
404
- "name": "value",
405
- "type": "uint256",
406
- "internalType": "uint256"
404
+ name: "value",
405
+ type: "uint256",
406
+ internalType: "uint256"
407
407
  },
408
408
  {
409
- "name": "validAfter",
410
- "type": "uint256",
411
- "internalType": "uint256"
409
+ name: "validAfter",
410
+ type: "uint256",
411
+ internalType: "uint256"
412
412
  },
413
413
  {
414
- "name": "validBefore",
415
- "type": "uint256",
416
- "internalType": "uint256"
414
+ name: "validBefore",
415
+ type: "uint256",
416
+ internalType: "uint256"
417
417
  },
418
418
  {
419
- "name": "nonce",
420
- "type": "bytes32",
421
- "internalType": "bytes32"
419
+ name: "nonce",
420
+ type: "bytes32",
421
+ internalType: "bytes32"
422
422
  },
423
423
  {
424
- "name": "v",
425
- "type": "uint8",
426
- "internalType": "uint8"
424
+ name: "v",
425
+ type: "uint8",
426
+ internalType: "uint8"
427
427
  },
428
428
  {
429
- "name": "r",
430
- "type": "bytes32",
431
- "internalType": "bytes32"
429
+ name: "r",
430
+ type: "bytes32",
431
+ internalType: "bytes32"
432
432
  },
433
433
  {
434
- "name": "s",
435
- "type": "bytes32",
436
- "internalType": "bytes32"
434
+ name: "s",
435
+ type: "bytes32",
436
+ internalType: "bytes32"
437
437
  }
438
438
  ]
439
439
  }
440
440
  ],
441
- "outputs": [{
442
- "name": "subject",
443
- "type": "bytes32",
444
- "internalType": "bytes32"
441
+ outputs: [{
442
+ name: "subject",
443
+ type: "bytes32",
444
+ internalType: "bytes32"
445
445
  }],
446
- "stateMutability": "nonpayable"
446
+ stateMutability: "nonpayable"
447
447
  },
448
448
  {
449
- "type": "function",
450
- "name": "registerNonce",
451
- "inputs": [
449
+ type: "function",
450
+ name: "registerNonce",
451
+ inputs: [
452
452
  {
453
- "name": "subject",
454
- "type": "bytes32",
455
- "internalType": "bytes32"
453
+ name: "subject",
454
+ type: "bytes32",
455
+ internalType: "bytes32"
456
456
  },
457
457
  {
458
- "name": "commitment",
459
- "type": "uint256",
460
- "internalType": "uint256"
458
+ name: "commitment",
459
+ type: "uint256",
460
+ internalType: "uint256"
461
461
  },
462
462
  {
463
- "name": "referrer",
464
- "type": "address",
465
- "internalType": "address"
463
+ name: "referrer",
464
+ type: "address",
465
+ internalType: "address"
466
466
  },
467
467
  {
468
- "name": "salt",
469
- "type": "bytes32",
470
- "internalType": "bytes32"
468
+ name: "salt",
469
+ type: "bytes32",
470
+ internalType: "bytes32"
471
471
  }
472
472
  ],
473
- "outputs": [{
474
- "name": "",
475
- "type": "bytes32",
476
- "internalType": "bytes32"
473
+ outputs: [{
474
+ name: "",
475
+ type: "bytes32",
476
+ internalType: "bytes32"
477
477
  }],
478
- "stateMutability": "pure"
478
+ stateMutability: "pure"
479
479
  },
480
480
  {
481
- "type": "function",
482
- "name": "semaphore",
483
- "inputs": [],
484
- "outputs": [{
485
- "name": "",
486
- "type": "address",
487
- "internalType": "address"
481
+ type: "function",
482
+ name: "semaphore",
483
+ inputs: [],
484
+ outputs: [{
485
+ name: "",
486
+ type: "address",
487
+ internalType: "address"
488
488
  }],
489
- "stateMutability": "view"
489
+ stateMutability: "view"
490
490
  },
491
491
  {
492
- "type": "function",
493
- "name": "setAdmin",
494
- "inputs": [{
495
- "name": "new_admin",
496
- "type": "address",
497
- "internalType": "address"
492
+ type: "function",
493
+ name: "setAdmin",
494
+ inputs: [{
495
+ name: "new_admin",
496
+ type: "address",
497
+ internalType: "address"
498
498
  }],
499
- "outputs": [],
500
- "stateMutability": "nonpayable"
499
+ outputs: [],
500
+ stateMutability: "nonpayable"
501
501
  },
502
502
  {
503
- "type": "function",
504
- "name": "setDenied",
505
- "inputs": [{
506
- "name": "referrer",
507
- "type": "address",
508
- "internalType": "address"
503
+ type: "function",
504
+ name: "setDenied",
505
+ inputs: [{
506
+ name: "referrer",
507
+ type: "address",
508
+ internalType: "address"
509
509
  }, {
510
- "name": "denied",
511
- "type": "bool",
512
- "internalType": "bool"
510
+ name: "denied",
511
+ type: "bool",
512
+ internalType: "bool"
513
513
  }],
514
- "outputs": [],
515
- "stateMutability": "nonpayable"
514
+ outputs: [],
515
+ stateMutability: "nonpayable"
516
516
  },
517
517
  {
518
- "type": "function",
519
- "name": "setDisabled",
520
- "inputs": [
518
+ type: "function",
519
+ name: "setDisabled",
520
+ inputs: [
521
521
  {
522
- "name": "publisher",
523
- "type": "address",
524
- "internalType": "address"
522
+ name: "publisher",
523
+ type: "address",
524
+ internalType: "address"
525
525
  },
526
526
  {
527
- "name": "repo",
528
- "type": "bytes32",
529
- "internalType": "bytes32"
527
+ name: "repo",
528
+ type: "bytes32",
529
+ internalType: "bytes32"
530
530
  },
531
531
  {
532
- "name": "key",
533
- "type": "bytes32",
534
- "internalType": "bytes32"
532
+ name: "key",
533
+ type: "bytes32",
534
+ internalType: "bytes32"
535
535
  },
536
536
  {
537
- "name": "disabled",
538
- "type": "bool",
539
- "internalType": "bool"
537
+ name: "disabled",
538
+ type: "bool",
539
+ internalType: "bool"
540
540
  }
541
541
  ],
542
- "outputs": [],
543
- "stateMutability": "nonpayable"
542
+ outputs: [],
543
+ stateMutability: "nonpayable"
544
544
  },
545
545
  {
546
- "type": "function",
547
- "name": "settle",
548
- "inputs": [
546
+ type: "function",
547
+ name: "settle",
548
+ inputs: [
549
549
  {
550
- "name": "subject",
551
- "type": "bytes32",
552
- "internalType": "bytes32"
550
+ name: "subject",
551
+ type: "bytes32",
552
+ internalType: "bytes32"
553
553
  },
554
554
  {
555
- "name": "reader",
556
- "type": "address",
557
- "internalType": "address"
555
+ name: "reader",
556
+ type: "address",
557
+ internalType: "address"
558
558
  },
559
559
  {
560
- "name": "merkleTreeDepth",
561
- "type": "uint256",
562
- "internalType": "uint256"
560
+ name: "merkleTreeDepth",
561
+ type: "uint256",
562
+ internalType: "uint256"
563
563
  },
564
564
  {
565
- "name": "merkleTreeRoot",
566
- "type": "uint256",
567
- "internalType": "uint256"
565
+ name: "merkleTreeRoot",
566
+ type: "uint256",
567
+ internalType: "uint256"
568
568
  },
569
569
  {
570
- "name": "nullifier",
571
- "type": "uint256",
572
- "internalType": "uint256"
570
+ name: "nullifier",
571
+ type: "uint256",
572
+ internalType: "uint256"
573
573
  },
574
574
  {
575
- "name": "points",
576
- "type": "uint256[8]",
577
- "internalType": "uint256[8]"
575
+ name: "points",
576
+ type: "uint256[8]",
577
+ internalType: "uint256[8]"
578
578
  }
579
579
  ],
580
- "outputs": [],
581
- "stateMutability": "nonpayable"
580
+ outputs: [],
581
+ stateMutability: "nonpayable"
582
582
  },
583
583
  {
584
- "type": "function",
585
- "name": "subjectOf",
586
- "inputs": [
584
+ type: "function",
585
+ name: "subjectOf",
586
+ inputs: [
587
587
  {
588
- "name": "publisher",
589
- "type": "address",
590
- "internalType": "address"
588
+ name: "publisher",
589
+ type: "address",
590
+ internalType: "address"
591
591
  },
592
592
  {
593
- "name": "repo",
594
- "type": "bytes32",
595
- "internalType": "bytes32"
593
+ name: "repo",
594
+ type: "bytes32",
595
+ internalType: "bytes32"
596
596
  },
597
597
  {
598
- "name": "key",
599
- "type": "bytes32",
600
- "internalType": "bytes32"
598
+ name: "key",
599
+ type: "bytes32",
600
+ internalType: "bytes32"
601
601
  }
602
602
  ],
603
- "outputs": [{
604
- "name": "",
605
- "type": "bytes32",
606
- "internalType": "bytes32"
603
+ outputs: [{
604
+ name: "",
605
+ type: "bytes32",
606
+ internalType: "bytes32"
607
607
  }],
608
- "stateMutability": "pure"
608
+ stateMutability: "pure"
609
609
  },
610
610
  {
611
- "type": "function",
612
- "name": "upgradeToAndCall",
613
- "inputs": [{
614
- "name": "newImplementation",
615
- "type": "address",
616
- "internalType": "address"
611
+ type: "function",
612
+ name: "upgradeToAndCall",
613
+ inputs: [{
614
+ name: "newImplementation",
615
+ type: "address",
616
+ internalType: "address"
617
617
  }, {
618
- "name": "data",
619
- "type": "bytes",
620
- "internalType": "bytes"
618
+ name: "data",
619
+ type: "bytes",
620
+ internalType: "bytes"
621
621
  }],
622
- "outputs": [],
623
- "stateMutability": "payable"
622
+ outputs: [],
623
+ stateMutability: "payable"
624
624
  },
625
625
  {
626
- "type": "function",
627
- "name": "usdc",
628
- "inputs": [],
629
- "outputs": [{
630
- "name": "",
631
- "type": "address",
632
- "internalType": "address"
626
+ type: "function",
627
+ name: "usdc",
628
+ inputs: [],
629
+ outputs: [{
630
+ name: "",
631
+ type: "address",
632
+ internalType: "address"
633
633
  }],
634
- "stateMutability": "view"
634
+ stateMutability: "view"
635
635
  },
636
636
  {
637
- "type": "event",
638
- "name": "AdminChanged",
639
- "inputs": [{
640
- "name": "previous_admin",
641
- "type": "address",
642
- "indexed": false,
643
- "internalType": "address"
637
+ type: "event",
638
+ name: "AdminChanged",
639
+ inputs: [{
640
+ name: "previous_admin",
641
+ type: "address",
642
+ indexed: false,
643
+ internalType: "address"
644
644
  }, {
645
- "name": "new_admin",
646
- "type": "address",
647
- "indexed": false,
648
- "internalType": "address"
645
+ name: "new_admin",
646
+ type: "address",
647
+ indexed: false,
648
+ internalType: "address"
649
649
  }],
650
- "anonymous": false
650
+ anonymous: false
651
651
  },
652
652
  {
653
- "type": "event",
654
- "name": "DenialSet",
655
- "inputs": [
653
+ type: "event",
654
+ name: "DenialSet",
655
+ inputs: [
656
656
  {
657
- "name": "publisher",
658
- "type": "address",
659
- "indexed": true,
660
- "internalType": "address"
657
+ name: "publisher",
658
+ type: "address",
659
+ indexed: true,
660
+ internalType: "address"
661
661
  },
662
662
  {
663
- "name": "referrer",
664
- "type": "address",
665
- "indexed": true,
666
- "internalType": "address"
663
+ name: "referrer",
664
+ type: "address",
665
+ indexed: true,
666
+ internalType: "address"
667
667
  },
668
668
  {
669
- "name": "denied",
670
- "type": "bool",
671
- "indexed": false,
672
- "internalType": "bool"
669
+ name: "denied",
670
+ type: "bool",
671
+ indexed: false,
672
+ internalType: "bool"
673
673
  }
674
674
  ],
675
- "anonymous": false
675
+ anonymous: false
676
676
  },
677
677
  {
678
- "type": "event",
679
- "name": "DisabledSet",
680
- "inputs": [
678
+ type: "event",
679
+ name: "DisabledSet",
680
+ inputs: [
681
681
  {
682
- "name": "subject",
683
- "type": "bytes32",
684
- "indexed": true,
685
- "internalType": "bytes32"
682
+ name: "subject",
683
+ type: "bytes32",
684
+ indexed: true,
685
+ internalType: "bytes32"
686
686
  },
687
687
  {
688
- "name": "disabled",
689
- "type": "bool",
690
- "indexed": false,
691
- "internalType": "bool"
688
+ name: "disabled",
689
+ type: "bool",
690
+ indexed: false,
691
+ internalType: "bool"
692
692
  },
693
693
  {
694
- "name": "by",
695
- "type": "address",
696
- "indexed": false,
697
- "internalType": "address"
694
+ name: "by",
695
+ type: "address",
696
+ indexed: false,
697
+ internalType: "address"
698
698
  }
699
699
  ],
700
- "anonymous": false
700
+ anonymous: false
701
701
  },
702
702
  {
703
- "type": "event",
704
- "name": "EIP712DomainChanged",
705
- "inputs": [],
706
- "anonymous": false
703
+ type: "event",
704
+ name: "EIP712DomainChanged",
705
+ inputs: [],
706
+ anonymous: false
707
707
  },
708
708
  {
709
- "type": "event",
710
- "name": "GenerationRaised",
711
- "inputs": [
709
+ type: "event",
710
+ name: "GenerationRaised",
711
+ inputs: [
712
712
  {
713
- "name": "publisher",
714
- "type": "address",
715
- "indexed": true,
716
- "internalType": "address"
713
+ name: "publisher",
714
+ type: "address",
715
+ indexed: true,
716
+ internalType: "address"
717
717
  },
718
718
  {
719
- "name": "repo",
720
- "type": "bytes32",
721
- "indexed": true,
722
- "internalType": "bytes32"
719
+ name: "repo",
720
+ type: "bytes32",
721
+ indexed: true,
722
+ internalType: "bytes32"
723
723
  },
724
724
  {
725
- "name": "generation",
726
- "type": "uint64",
727
- "indexed": false,
728
- "internalType": "uint64"
725
+ name: "generation",
726
+ type: "uint64",
727
+ indexed: false,
728
+ internalType: "uint64"
729
729
  }
730
730
  ],
731
- "anonymous": false
731
+ anonymous: false
732
732
  },
733
733
  {
734
- "type": "event",
735
- "name": "Initialized",
736
- "inputs": [{
737
- "name": "version",
738
- "type": "uint64",
739
- "indexed": false,
740
- "internalType": "uint64"
734
+ type: "event",
735
+ name: "Initialized",
736
+ inputs: [{
737
+ name: "version",
738
+ type: "uint64",
739
+ indexed: false,
740
+ internalType: "uint64"
741
741
  }],
742
- "anonymous": false
742
+ anonymous: false
743
743
  },
744
744
  {
745
- "type": "event",
746
- "name": "Registered",
747
- "inputs": [
745
+ type: "event",
746
+ name: "Registered",
747
+ inputs: [
748
748
  {
749
- "name": "subject",
750
- "type": "bytes32",
751
- "indexed": true,
752
- "internalType": "bytes32"
749
+ name: "subject",
750
+ type: "bytes32",
751
+ indexed: true,
752
+ internalType: "bytes32"
753
753
  },
754
754
  {
755
- "name": "publisher",
756
- "type": "address",
757
- "indexed": true,
758
- "internalType": "address"
755
+ name: "publisher",
756
+ type: "address",
757
+ indexed: true,
758
+ internalType: "address"
759
759
  },
760
760
  {
761
- "name": "referrer",
762
- "type": "address",
763
- "indexed": true,
764
- "internalType": "address"
761
+ name: "referrer",
762
+ type: "address",
763
+ indexed: true,
764
+ internalType: "address"
765
765
  },
766
766
  {
767
- "name": "commitment",
768
- "type": "uint256",
769
- "indexed": false,
770
- "internalType": "uint256"
767
+ name: "commitment",
768
+ type: "uint256",
769
+ indexed: false,
770
+ internalType: "uint256"
771
771
  },
772
772
  {
773
- "name": "price",
774
- "type": "uint256",
775
- "indexed": false,
776
- "internalType": "uint256"
773
+ name: "price",
774
+ type: "uint256",
775
+ indexed: false,
776
+ internalType: "uint256"
777
777
  },
778
778
  {
779
- "name": "referrer_cut",
780
- "type": "uint256",
781
- "indexed": false,
782
- "internalType": "uint256"
779
+ name: "referrer_cut",
780
+ type: "uint256",
781
+ indexed: false,
782
+ internalType: "uint256"
783
783
  }
784
784
  ],
785
- "anonymous": false
785
+ anonymous: false
786
786
  },
787
787
  {
788
- "type": "event",
789
- "name": "Settled",
790
- "inputs": [
788
+ type: "event",
789
+ name: "Settled",
790
+ inputs: [
791
791
  {
792
- "name": "subject",
793
- "type": "bytes32",
794
- "indexed": true,
795
- "internalType": "bytes32"
792
+ name: "subject",
793
+ type: "bytes32",
794
+ indexed: true,
795
+ internalType: "bytes32"
796
796
  },
797
797
  {
798
- "name": "nullifier",
799
- "type": "uint256",
800
- "indexed": true,
801
- "internalType": "uint256"
798
+ name: "nullifier",
799
+ type: "uint256",
800
+ indexed: true,
801
+ internalType: "uint256"
802
802
  },
803
803
  {
804
- "name": "reader",
805
- "type": "address",
806
- "indexed": false,
807
- "internalType": "address"
804
+ name: "reader",
805
+ type: "address",
806
+ indexed: false,
807
+ internalType: "address"
808
808
  }
809
809
  ],
810
- "anonymous": false
810
+ anonymous: false
811
811
  },
812
812
  {
813
- "type": "event",
814
- "name": "Upgraded",
815
- "inputs": [{
816
- "name": "implementation",
817
- "type": "address",
818
- "indexed": true,
819
- "internalType": "address"
813
+ type: "event",
814
+ name: "Upgraded",
815
+ inputs: [{
816
+ name: "implementation",
817
+ type: "address",
818
+ indexed: true,
819
+ internalType: "address"
820
820
  }],
821
- "anonymous": false
821
+ anonymous: false
822
822
  },
823
823
  {
824
- "type": "error",
825
- "name": "AddressEmptyCode",
826
- "inputs": [{
827
- "name": "target",
828
- "type": "address",
829
- "internalType": "address"
824
+ type: "error",
825
+ name: "AddressEmptyCode",
826
+ inputs: [{
827
+ name: "target",
828
+ type: "address",
829
+ internalType: "address"
830
830
  }]
831
831
  },
832
832
  {
833
- "type": "error",
834
- "name": "AlreadyRegistered",
835
- "inputs": []
833
+ type: "error",
834
+ name: "AlreadyRegistered",
835
+ inputs: []
836
836
  },
837
837
  {
838
- "type": "error",
839
- "name": "AlreadySettled",
840
- "inputs": []
838
+ type: "error",
839
+ name: "AlreadySettled",
840
+ inputs: []
841
841
  },
842
842
  {
843
- "type": "error",
844
- "name": "BadShare",
845
- "inputs": []
843
+ type: "error",
844
+ name: "BadShare",
845
+ inputs: []
846
846
  },
847
847
  {
848
- "type": "error",
849
- "name": "BadSignature",
850
- "inputs": []
848
+ type: "error",
849
+ name: "BadSignature",
850
+ inputs: []
851
851
  },
852
852
  {
853
- "type": "error",
854
- "name": "Disabled",
855
- "inputs": []
853
+ type: "error",
854
+ name: "Disabled",
855
+ inputs: []
856
856
  },
857
857
  {
858
- "type": "error",
859
- "name": "ERC1967InvalidImplementation",
860
- "inputs": [{
861
- "name": "implementation",
862
- "type": "address",
863
- "internalType": "address"
858
+ type: "error",
859
+ name: "ERC1967InvalidImplementation",
860
+ inputs: [{
861
+ name: "implementation",
862
+ type: "address",
863
+ internalType: "address"
864
864
  }]
865
865
  },
866
866
  {
867
- "type": "error",
868
- "name": "ERC1967NonPayable",
869
- "inputs": []
867
+ type: "error",
868
+ name: "ERC1967NonPayable",
869
+ inputs: []
870
870
  },
871
871
  {
872
- "type": "error",
873
- "name": "Expired",
874
- "inputs": []
872
+ type: "error",
873
+ name: "Expired",
874
+ inputs: []
875
875
  },
876
876
  {
877
- "type": "error",
878
- "name": "FailedCall",
879
- "inputs": []
877
+ type: "error",
878
+ name: "FailedCall",
879
+ inputs: []
880
880
  },
881
881
  {
882
- "type": "error",
883
- "name": "InvalidInitialization",
884
- "inputs": []
882
+ type: "error",
883
+ name: "InvalidInitialization",
884
+ inputs: []
885
885
  },
886
886
  {
887
- "type": "error",
888
- "name": "NoGroup",
889
- "inputs": []
887
+ type: "error",
888
+ name: "NoGroup",
889
+ inputs: []
890
890
  },
891
891
  {
892
- "type": "error",
893
- "name": "NonceNotBound",
894
- "inputs": []
892
+ type: "error",
893
+ name: "NonceNotBound",
894
+ inputs: []
895
895
  },
896
896
  {
897
- "type": "error",
898
- "name": "NotInitializing",
899
- "inputs": []
897
+ type: "error",
898
+ name: "NotInitializing",
899
+ inputs: []
900
900
  },
901
901
  {
902
- "type": "error",
903
- "name": "ReentrancyGuardReentrantCall",
904
- "inputs": []
902
+ type: "error",
903
+ name: "ReentrancyGuardReentrantCall",
904
+ inputs: []
905
905
  },
906
906
  {
907
- "type": "error",
908
- "name": "SafeERC20FailedOperation",
909
- "inputs": [{
910
- "name": "token",
911
- "type": "address",
912
- "internalType": "address"
907
+ type: "error",
908
+ name: "SafeERC20FailedOperation",
909
+ inputs: [{
910
+ name: "token",
911
+ type: "address",
912
+ internalType: "address"
913
913
  }]
914
914
  },
915
915
  {
916
- "type": "error",
917
- "name": "StaleTerms",
918
- "inputs": []
916
+ type: "error",
917
+ name: "StaleTerms",
918
+ inputs: []
919
919
  },
920
920
  {
921
- "type": "error",
922
- "name": "UUPSUnauthorizedCallContext",
923
- "inputs": []
921
+ type: "error",
922
+ name: "UUPSUnauthorizedCallContext",
923
+ inputs: []
924
924
  },
925
925
  {
926
- "type": "error",
927
- "name": "UUPSUnsupportedProxiableUUID",
928
- "inputs": [{
929
- "name": "slot",
930
- "type": "bytes32",
931
- "internalType": "bytes32"
926
+ type: "error",
927
+ name: "UUPSUnsupportedProxiableUUID",
928
+ inputs: [{
929
+ name: "slot",
930
+ type: "bytes32",
931
+ internalType: "bytes32"
932
932
  }]
933
933
  },
934
934
  {
935
- "type": "error",
936
- "name": "Unauthorized",
937
- "inputs": []
935
+ type: "error",
936
+ name: "Unauthorized",
937
+ inputs: []
938
938
  },
939
939
  {
940
- "type": "error",
941
- "name": "WrongAmount",
942
- "inputs": []
940
+ type: "error",
941
+ name: "WrongAmount",
942
+ inputs: []
943
943
  }
944
944
  ];
945
945