@fangorn-network/sdk 2026.11.3-dev → 2026.11.4-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.
@@ -5,941 +5,956 @@
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: "membersOf",
304
+ inputs: [{
305
+ name: "subject",
306
+ type: "bytes32",
307
+ internalType: "bytes32"
309
308
  }],
310
- "stateMutability": "view"
309
+ outputs: [{
310
+ name: "",
311
+ type: "uint256[]",
312
+ internalType: "uint256[]"
313
+ }],
314
+ stateMutability: "view"
315
+ },
316
+ {
317
+ type: "function",
318
+ name: "proxiableUUID",
319
+ inputs: [],
320
+ outputs: [{
321
+ name: "",
322
+ type: "bytes32",
323
+ internalType: "bytes32"
324
+ }],
325
+ stateMutability: "view"
311
326
  },
312
327
  {
313
- "type": "function",
314
- "name": "raiseGeneration",
315
- "inputs": [{
316
- "name": "repo",
317
- "type": "bytes32",
318
- "internalType": "bytes32"
328
+ type: "function",
329
+ name: "raiseGeneration",
330
+ inputs: [{
331
+ name: "repo",
332
+ type: "bytes32",
333
+ internalType: "bytes32"
319
334
  }],
320
- "outputs": [{
321
- "name": "generation",
322
- "type": "uint64",
323
- "internalType": "uint64"
335
+ outputs: [{
336
+ name: "generation",
337
+ type: "uint64",
338
+ internalType: "uint64"
324
339
  }],
325
- "stateMutability": "nonpayable"
340
+ stateMutability: "nonpayable"
326
341
  },
327
342
  {
328
- "type": "function",
329
- "name": "register",
330
- "inputs": [
343
+ type: "function",
344
+ name: "register",
345
+ inputs: [
331
346
  {
332
- "name": "t",
333
- "type": "tuple",
334
- "internalType": "struct SettlementRegistry.Terms",
335
- "components": [
347
+ name: "t",
348
+ type: "tuple",
349
+ internalType: "struct SettlementRegistry.Terms",
350
+ components: [
336
351
  {
337
- "name": "publisher",
338
- "type": "address",
339
- "internalType": "address"
352
+ name: "publisher",
353
+ type: "address",
354
+ internalType: "address"
340
355
  },
341
356
  {
342
- "name": "repo",
343
- "type": "bytes32",
344
- "internalType": "bytes32"
357
+ name: "repo",
358
+ type: "bytes32",
359
+ internalType: "bytes32"
345
360
  },
346
361
  {
347
- "name": "key",
348
- "type": "bytes32",
349
- "internalType": "bytes32"
362
+ name: "key",
363
+ type: "bytes32",
364
+ internalType: "bytes32"
350
365
  },
351
366
  {
352
- "name": "price",
353
- "type": "uint256",
354
- "internalType": "uint256"
367
+ name: "price",
368
+ type: "uint256",
369
+ internalType: "uint256"
355
370
  },
356
371
  {
357
- "name": "shareBps",
358
- "type": "uint16",
359
- "internalType": "uint16"
372
+ name: "shareBps",
373
+ type: "uint16",
374
+ internalType: "uint16"
360
375
  },
361
376
  {
362
- "name": "generation",
363
- "type": "uint64",
364
- "internalType": "uint64"
377
+ name: "generation",
378
+ type: "uint64",
379
+ internalType: "uint64"
365
380
  },
366
381
  {
367
- "name": "deadline",
368
- "type": "uint64",
369
- "internalType": "uint64"
382
+ name: "deadline",
383
+ type: "uint64",
384
+ internalType: "uint64"
370
385
  }
371
386
  ]
372
387
  },
373
388
  {
374
- "name": "signature",
375
- "type": "bytes",
376
- "internalType": "bytes"
389
+ name: "signature",
390
+ type: "bytes",
391
+ internalType: "bytes"
377
392
  },
378
393
  {
379
- "name": "commitment",
380
- "type": "uint256",
381
- "internalType": "uint256"
394
+ name: "commitment",
395
+ type: "uint256",
396
+ internalType: "uint256"
382
397
  },
383
398
  {
384
- "name": "referrer",
385
- "type": "address",
386
- "internalType": "address"
399
+ name: "referrer",
400
+ type: "address",
401
+ internalType: "address"
387
402
  },
388
403
  {
389
- "name": "salt",
390
- "type": "bytes32",
391
- "internalType": "bytes32"
404
+ name: "salt",
405
+ type: "bytes32",
406
+ internalType: "bytes32"
392
407
  },
393
408
  {
394
- "name": "pay",
395
- "type": "tuple",
396
- "internalType": "struct SettlementRegistry.Payment",
397
- "components": [
409
+ name: "pay",
410
+ type: "tuple",
411
+ internalType: "struct SettlementRegistry.Payment",
412
+ components: [
398
413
  {
399
- "name": "from",
400
- "type": "address",
401
- "internalType": "address"
414
+ name: "from",
415
+ type: "address",
416
+ internalType: "address"
402
417
  },
403
418
  {
404
- "name": "value",
405
- "type": "uint256",
406
- "internalType": "uint256"
419
+ name: "value",
420
+ type: "uint256",
421
+ internalType: "uint256"
407
422
  },
408
423
  {
409
- "name": "validAfter",
410
- "type": "uint256",
411
- "internalType": "uint256"
424
+ name: "validAfter",
425
+ type: "uint256",
426
+ internalType: "uint256"
412
427
  },
413
428
  {
414
- "name": "validBefore",
415
- "type": "uint256",
416
- "internalType": "uint256"
429
+ name: "validBefore",
430
+ type: "uint256",
431
+ internalType: "uint256"
417
432
  },
418
433
  {
419
- "name": "nonce",
420
- "type": "bytes32",
421
- "internalType": "bytes32"
434
+ name: "nonce",
435
+ type: "bytes32",
436
+ internalType: "bytes32"
422
437
  },
423
438
  {
424
- "name": "v",
425
- "type": "uint8",
426
- "internalType": "uint8"
439
+ name: "v",
440
+ type: "uint8",
441
+ internalType: "uint8"
427
442
  },
428
443
  {
429
- "name": "r",
430
- "type": "bytes32",
431
- "internalType": "bytes32"
444
+ name: "r",
445
+ type: "bytes32",
446
+ internalType: "bytes32"
432
447
  },
433
448
  {
434
- "name": "s",
435
- "type": "bytes32",
436
- "internalType": "bytes32"
449
+ name: "s",
450
+ type: "bytes32",
451
+ internalType: "bytes32"
437
452
  }
438
453
  ]
439
454
  }
440
455
  ],
441
- "outputs": [{
442
- "name": "subject",
443
- "type": "bytes32",
444
- "internalType": "bytes32"
456
+ outputs: [{
457
+ name: "subject",
458
+ type: "bytes32",
459
+ internalType: "bytes32"
445
460
  }],
446
- "stateMutability": "nonpayable"
461
+ stateMutability: "nonpayable"
447
462
  },
448
463
  {
449
- "type": "function",
450
- "name": "registerNonce",
451
- "inputs": [
464
+ type: "function",
465
+ name: "registerNonce",
466
+ inputs: [
452
467
  {
453
- "name": "subject",
454
- "type": "bytes32",
455
- "internalType": "bytes32"
468
+ name: "subject",
469
+ type: "bytes32",
470
+ internalType: "bytes32"
456
471
  },
457
472
  {
458
- "name": "commitment",
459
- "type": "uint256",
460
- "internalType": "uint256"
473
+ name: "commitment",
474
+ type: "uint256",
475
+ internalType: "uint256"
461
476
  },
462
477
  {
463
- "name": "referrer",
464
- "type": "address",
465
- "internalType": "address"
478
+ name: "referrer",
479
+ type: "address",
480
+ internalType: "address"
466
481
  },
467
482
  {
468
- "name": "salt",
469
- "type": "bytes32",
470
- "internalType": "bytes32"
483
+ name: "salt",
484
+ type: "bytes32",
485
+ internalType: "bytes32"
471
486
  }
472
487
  ],
473
- "outputs": [{
474
- "name": "",
475
- "type": "bytes32",
476
- "internalType": "bytes32"
488
+ outputs: [{
489
+ name: "",
490
+ type: "bytes32",
491
+ internalType: "bytes32"
477
492
  }],
478
- "stateMutability": "pure"
493
+ stateMutability: "pure"
479
494
  },
480
495
  {
481
- "type": "function",
482
- "name": "semaphore",
483
- "inputs": [],
484
- "outputs": [{
485
- "name": "",
486
- "type": "address",
487
- "internalType": "address"
496
+ type: "function",
497
+ name: "semaphore",
498
+ inputs: [],
499
+ outputs: [{
500
+ name: "",
501
+ type: "address",
502
+ internalType: "address"
488
503
  }],
489
- "stateMutability": "view"
504
+ stateMutability: "view"
490
505
  },
491
506
  {
492
- "type": "function",
493
- "name": "setAdmin",
494
- "inputs": [{
495
- "name": "new_admin",
496
- "type": "address",
497
- "internalType": "address"
507
+ type: "function",
508
+ name: "setAdmin",
509
+ inputs: [{
510
+ name: "new_admin",
511
+ type: "address",
512
+ internalType: "address"
498
513
  }],
499
- "outputs": [],
500
- "stateMutability": "nonpayable"
514
+ outputs: [],
515
+ stateMutability: "nonpayable"
501
516
  },
502
517
  {
503
- "type": "function",
504
- "name": "setDenied",
505
- "inputs": [{
506
- "name": "referrer",
507
- "type": "address",
508
- "internalType": "address"
518
+ type: "function",
519
+ name: "setDenied",
520
+ inputs: [{
521
+ name: "referrer",
522
+ type: "address",
523
+ internalType: "address"
509
524
  }, {
510
- "name": "denied",
511
- "type": "bool",
512
- "internalType": "bool"
525
+ name: "denied",
526
+ type: "bool",
527
+ internalType: "bool"
513
528
  }],
514
- "outputs": [],
515
- "stateMutability": "nonpayable"
529
+ outputs: [],
530
+ stateMutability: "nonpayable"
516
531
  },
517
532
  {
518
- "type": "function",
519
- "name": "setDisabled",
520
- "inputs": [
533
+ type: "function",
534
+ name: "setDisabled",
535
+ inputs: [
521
536
  {
522
- "name": "publisher",
523
- "type": "address",
524
- "internalType": "address"
537
+ name: "publisher",
538
+ type: "address",
539
+ internalType: "address"
525
540
  },
526
541
  {
527
- "name": "repo",
528
- "type": "bytes32",
529
- "internalType": "bytes32"
542
+ name: "repo",
543
+ type: "bytes32",
544
+ internalType: "bytes32"
530
545
  },
531
546
  {
532
- "name": "key",
533
- "type": "bytes32",
534
- "internalType": "bytes32"
547
+ name: "key",
548
+ type: "bytes32",
549
+ internalType: "bytes32"
535
550
  },
536
551
  {
537
- "name": "disabled",
538
- "type": "bool",
539
- "internalType": "bool"
552
+ name: "disabled",
553
+ type: "bool",
554
+ internalType: "bool"
540
555
  }
541
556
  ],
542
- "outputs": [],
543
- "stateMutability": "nonpayable"
557
+ outputs: [],
558
+ stateMutability: "nonpayable"
544
559
  },
545
560
  {
546
- "type": "function",
547
- "name": "settle",
548
- "inputs": [
561
+ type: "function",
562
+ name: "settle",
563
+ inputs: [
549
564
  {
550
- "name": "subject",
551
- "type": "bytes32",
552
- "internalType": "bytes32"
565
+ name: "subject",
566
+ type: "bytes32",
567
+ internalType: "bytes32"
553
568
  },
554
569
  {
555
- "name": "reader",
556
- "type": "address",
557
- "internalType": "address"
570
+ name: "reader",
571
+ type: "address",
572
+ internalType: "address"
558
573
  },
559
574
  {
560
- "name": "merkleTreeDepth",
561
- "type": "uint256",
562
- "internalType": "uint256"
575
+ name: "merkleTreeDepth",
576
+ type: "uint256",
577
+ internalType: "uint256"
563
578
  },
564
579
  {
565
- "name": "merkleTreeRoot",
566
- "type": "uint256",
567
- "internalType": "uint256"
580
+ name: "merkleTreeRoot",
581
+ type: "uint256",
582
+ internalType: "uint256"
568
583
  },
569
584
  {
570
- "name": "nullifier",
571
- "type": "uint256",
572
- "internalType": "uint256"
585
+ name: "nullifier",
586
+ type: "uint256",
587
+ internalType: "uint256"
573
588
  },
574
589
  {
575
- "name": "points",
576
- "type": "uint256[8]",
577
- "internalType": "uint256[8]"
590
+ name: "points",
591
+ type: "uint256[8]",
592
+ internalType: "uint256[8]"
578
593
  }
579
594
  ],
580
- "outputs": [],
581
- "stateMutability": "nonpayable"
595
+ outputs: [],
596
+ stateMutability: "nonpayable"
582
597
  },
583
598
  {
584
- "type": "function",
585
- "name": "subjectOf",
586
- "inputs": [
599
+ type: "function",
600
+ name: "subjectOf",
601
+ inputs: [
587
602
  {
588
- "name": "publisher",
589
- "type": "address",
590
- "internalType": "address"
603
+ name: "publisher",
604
+ type: "address",
605
+ internalType: "address"
591
606
  },
592
607
  {
593
- "name": "repo",
594
- "type": "bytes32",
595
- "internalType": "bytes32"
608
+ name: "repo",
609
+ type: "bytes32",
610
+ internalType: "bytes32"
596
611
  },
597
612
  {
598
- "name": "key",
599
- "type": "bytes32",
600
- "internalType": "bytes32"
613
+ name: "key",
614
+ type: "bytes32",
615
+ internalType: "bytes32"
601
616
  }
602
617
  ],
603
- "outputs": [{
604
- "name": "",
605
- "type": "bytes32",
606
- "internalType": "bytes32"
618
+ outputs: [{
619
+ name: "",
620
+ type: "bytes32",
621
+ internalType: "bytes32"
607
622
  }],
608
- "stateMutability": "pure"
623
+ stateMutability: "pure"
609
624
  },
610
625
  {
611
- "type": "function",
612
- "name": "upgradeToAndCall",
613
- "inputs": [{
614
- "name": "newImplementation",
615
- "type": "address",
616
- "internalType": "address"
626
+ type: "function",
627
+ name: "upgradeToAndCall",
628
+ inputs: [{
629
+ name: "newImplementation",
630
+ type: "address",
631
+ internalType: "address"
617
632
  }, {
618
- "name": "data",
619
- "type": "bytes",
620
- "internalType": "bytes"
633
+ name: "data",
634
+ type: "bytes",
635
+ internalType: "bytes"
621
636
  }],
622
- "outputs": [],
623
- "stateMutability": "payable"
637
+ outputs: [],
638
+ stateMutability: "payable"
624
639
  },
625
640
  {
626
- "type": "function",
627
- "name": "usdc",
628
- "inputs": [],
629
- "outputs": [{
630
- "name": "",
631
- "type": "address",
632
- "internalType": "address"
641
+ type: "function",
642
+ name: "usdc",
643
+ inputs: [],
644
+ outputs: [{
645
+ name: "",
646
+ type: "address",
647
+ internalType: "address"
633
648
  }],
634
- "stateMutability": "view"
649
+ stateMutability: "view"
635
650
  },
636
651
  {
637
- "type": "event",
638
- "name": "AdminChanged",
639
- "inputs": [{
640
- "name": "previous_admin",
641
- "type": "address",
642
- "indexed": false,
643
- "internalType": "address"
652
+ type: "event",
653
+ name: "AdminChanged",
654
+ inputs: [{
655
+ name: "previous_admin",
656
+ type: "address",
657
+ indexed: false,
658
+ internalType: "address"
644
659
  }, {
645
- "name": "new_admin",
646
- "type": "address",
647
- "indexed": false,
648
- "internalType": "address"
660
+ name: "new_admin",
661
+ type: "address",
662
+ indexed: false,
663
+ internalType: "address"
649
664
  }],
650
- "anonymous": false
665
+ anonymous: false
651
666
  },
652
667
  {
653
- "type": "event",
654
- "name": "DenialSet",
655
- "inputs": [
668
+ type: "event",
669
+ name: "DenialSet",
670
+ inputs: [
656
671
  {
657
- "name": "publisher",
658
- "type": "address",
659
- "indexed": true,
660
- "internalType": "address"
672
+ name: "publisher",
673
+ type: "address",
674
+ indexed: true,
675
+ internalType: "address"
661
676
  },
662
677
  {
663
- "name": "referrer",
664
- "type": "address",
665
- "indexed": true,
666
- "internalType": "address"
678
+ name: "referrer",
679
+ type: "address",
680
+ indexed: true,
681
+ internalType: "address"
667
682
  },
668
683
  {
669
- "name": "denied",
670
- "type": "bool",
671
- "indexed": false,
672
- "internalType": "bool"
684
+ name: "denied",
685
+ type: "bool",
686
+ indexed: false,
687
+ internalType: "bool"
673
688
  }
674
689
  ],
675
- "anonymous": false
690
+ anonymous: false
676
691
  },
677
692
  {
678
- "type": "event",
679
- "name": "DisabledSet",
680
- "inputs": [
693
+ type: "event",
694
+ name: "DisabledSet",
695
+ inputs: [
681
696
  {
682
- "name": "subject",
683
- "type": "bytes32",
684
- "indexed": true,
685
- "internalType": "bytes32"
697
+ name: "subject",
698
+ type: "bytes32",
699
+ indexed: true,
700
+ internalType: "bytes32"
686
701
  },
687
702
  {
688
- "name": "disabled",
689
- "type": "bool",
690
- "indexed": false,
691
- "internalType": "bool"
703
+ name: "disabled",
704
+ type: "bool",
705
+ indexed: false,
706
+ internalType: "bool"
692
707
  },
693
708
  {
694
- "name": "by",
695
- "type": "address",
696
- "indexed": false,
697
- "internalType": "address"
709
+ name: "by",
710
+ type: "address",
711
+ indexed: false,
712
+ internalType: "address"
698
713
  }
699
714
  ],
700
- "anonymous": false
715
+ anonymous: false
701
716
  },
702
717
  {
703
- "type": "event",
704
- "name": "EIP712DomainChanged",
705
- "inputs": [],
706
- "anonymous": false
718
+ type: "event",
719
+ name: "EIP712DomainChanged",
720
+ inputs: [],
721
+ anonymous: false
707
722
  },
708
723
  {
709
- "type": "event",
710
- "name": "GenerationRaised",
711
- "inputs": [
724
+ type: "event",
725
+ name: "GenerationRaised",
726
+ inputs: [
712
727
  {
713
- "name": "publisher",
714
- "type": "address",
715
- "indexed": true,
716
- "internalType": "address"
728
+ name: "publisher",
729
+ type: "address",
730
+ indexed: true,
731
+ internalType: "address"
717
732
  },
718
733
  {
719
- "name": "repo",
720
- "type": "bytes32",
721
- "indexed": true,
722
- "internalType": "bytes32"
734
+ name: "repo",
735
+ type: "bytes32",
736
+ indexed: true,
737
+ internalType: "bytes32"
723
738
  },
724
739
  {
725
- "name": "generation",
726
- "type": "uint64",
727
- "indexed": false,
728
- "internalType": "uint64"
740
+ name: "generation",
741
+ type: "uint64",
742
+ indexed: false,
743
+ internalType: "uint64"
729
744
  }
730
745
  ],
731
- "anonymous": false
746
+ anonymous: false
732
747
  },
733
748
  {
734
- "type": "event",
735
- "name": "Initialized",
736
- "inputs": [{
737
- "name": "version",
738
- "type": "uint64",
739
- "indexed": false,
740
- "internalType": "uint64"
749
+ type: "event",
750
+ name: "Initialized",
751
+ inputs: [{
752
+ name: "version",
753
+ type: "uint64",
754
+ indexed: false,
755
+ internalType: "uint64"
741
756
  }],
742
- "anonymous": false
757
+ anonymous: false
743
758
  },
744
759
  {
745
- "type": "event",
746
- "name": "Registered",
747
- "inputs": [
760
+ type: "event",
761
+ name: "Registered",
762
+ inputs: [
748
763
  {
749
- "name": "subject",
750
- "type": "bytes32",
751
- "indexed": true,
752
- "internalType": "bytes32"
764
+ name: "subject",
765
+ type: "bytes32",
766
+ indexed: true,
767
+ internalType: "bytes32"
753
768
  },
754
769
  {
755
- "name": "publisher",
756
- "type": "address",
757
- "indexed": true,
758
- "internalType": "address"
770
+ name: "publisher",
771
+ type: "address",
772
+ indexed: true,
773
+ internalType: "address"
759
774
  },
760
775
  {
761
- "name": "referrer",
762
- "type": "address",
763
- "indexed": true,
764
- "internalType": "address"
776
+ name: "referrer",
777
+ type: "address",
778
+ indexed: true,
779
+ internalType: "address"
765
780
  },
766
781
  {
767
- "name": "commitment",
768
- "type": "uint256",
769
- "indexed": false,
770
- "internalType": "uint256"
782
+ name: "commitment",
783
+ type: "uint256",
784
+ indexed: false,
785
+ internalType: "uint256"
771
786
  },
772
787
  {
773
- "name": "price",
774
- "type": "uint256",
775
- "indexed": false,
776
- "internalType": "uint256"
788
+ name: "price",
789
+ type: "uint256",
790
+ indexed: false,
791
+ internalType: "uint256"
777
792
  },
778
793
  {
779
- "name": "referrer_cut",
780
- "type": "uint256",
781
- "indexed": false,
782
- "internalType": "uint256"
794
+ name: "referrer_cut",
795
+ type: "uint256",
796
+ indexed: false,
797
+ internalType: "uint256"
783
798
  }
784
799
  ],
785
- "anonymous": false
800
+ anonymous: false
786
801
  },
787
802
  {
788
- "type": "event",
789
- "name": "Settled",
790
- "inputs": [
803
+ type: "event",
804
+ name: "Settled",
805
+ inputs: [
791
806
  {
792
- "name": "subject",
793
- "type": "bytes32",
794
- "indexed": true,
795
- "internalType": "bytes32"
807
+ name: "subject",
808
+ type: "bytes32",
809
+ indexed: true,
810
+ internalType: "bytes32"
796
811
  },
797
812
  {
798
- "name": "nullifier",
799
- "type": "uint256",
800
- "indexed": true,
801
- "internalType": "uint256"
813
+ name: "nullifier",
814
+ type: "uint256",
815
+ indexed: true,
816
+ internalType: "uint256"
802
817
  },
803
818
  {
804
- "name": "reader",
805
- "type": "address",
806
- "indexed": false,
807
- "internalType": "address"
819
+ name: "reader",
820
+ type: "address",
821
+ indexed: false,
822
+ internalType: "address"
808
823
  }
809
824
  ],
810
- "anonymous": false
825
+ anonymous: false
811
826
  },
812
827
  {
813
- "type": "event",
814
- "name": "Upgraded",
815
- "inputs": [{
816
- "name": "implementation",
817
- "type": "address",
818
- "indexed": true,
819
- "internalType": "address"
828
+ type: "event",
829
+ name: "Upgraded",
830
+ inputs: [{
831
+ name: "implementation",
832
+ type: "address",
833
+ indexed: true,
834
+ internalType: "address"
820
835
  }],
821
- "anonymous": false
836
+ anonymous: false
822
837
  },
823
838
  {
824
- "type": "error",
825
- "name": "AddressEmptyCode",
826
- "inputs": [{
827
- "name": "target",
828
- "type": "address",
829
- "internalType": "address"
839
+ type: "error",
840
+ name: "AddressEmptyCode",
841
+ inputs: [{
842
+ name: "target",
843
+ type: "address",
844
+ internalType: "address"
830
845
  }]
831
846
  },
832
847
  {
833
- "type": "error",
834
- "name": "AlreadyRegistered",
835
- "inputs": []
848
+ type: "error",
849
+ name: "AlreadyRegistered",
850
+ inputs: []
836
851
  },
837
852
  {
838
- "type": "error",
839
- "name": "AlreadySettled",
840
- "inputs": []
853
+ type: "error",
854
+ name: "AlreadySettled",
855
+ inputs: []
841
856
  },
842
857
  {
843
- "type": "error",
844
- "name": "BadShare",
845
- "inputs": []
858
+ type: "error",
859
+ name: "BadShare",
860
+ inputs: []
846
861
  },
847
862
  {
848
- "type": "error",
849
- "name": "BadSignature",
850
- "inputs": []
863
+ type: "error",
864
+ name: "BadSignature",
865
+ inputs: []
851
866
  },
852
867
  {
853
- "type": "error",
854
- "name": "Disabled",
855
- "inputs": []
868
+ type: "error",
869
+ name: "Disabled",
870
+ inputs: []
856
871
  },
857
872
  {
858
- "type": "error",
859
- "name": "ERC1967InvalidImplementation",
860
- "inputs": [{
861
- "name": "implementation",
862
- "type": "address",
863
- "internalType": "address"
873
+ type: "error",
874
+ name: "ERC1967InvalidImplementation",
875
+ inputs: [{
876
+ name: "implementation",
877
+ type: "address",
878
+ internalType: "address"
864
879
  }]
865
880
  },
866
881
  {
867
- "type": "error",
868
- "name": "ERC1967NonPayable",
869
- "inputs": []
882
+ type: "error",
883
+ name: "ERC1967NonPayable",
884
+ inputs: []
870
885
  },
871
886
  {
872
- "type": "error",
873
- "name": "Expired",
874
- "inputs": []
887
+ type: "error",
888
+ name: "Expired",
889
+ inputs: []
875
890
  },
876
891
  {
877
- "type": "error",
878
- "name": "FailedCall",
879
- "inputs": []
892
+ type: "error",
893
+ name: "FailedCall",
894
+ inputs: []
880
895
  },
881
896
  {
882
- "type": "error",
883
- "name": "InvalidInitialization",
884
- "inputs": []
897
+ type: "error",
898
+ name: "InvalidInitialization",
899
+ inputs: []
885
900
  },
886
901
  {
887
- "type": "error",
888
- "name": "NoGroup",
889
- "inputs": []
902
+ type: "error",
903
+ name: "NoGroup",
904
+ inputs: []
890
905
  },
891
906
  {
892
- "type": "error",
893
- "name": "NonceNotBound",
894
- "inputs": []
907
+ type: "error",
908
+ name: "NonceNotBound",
909
+ inputs: []
895
910
  },
896
911
  {
897
- "type": "error",
898
- "name": "NotInitializing",
899
- "inputs": []
912
+ type: "error",
913
+ name: "NotInitializing",
914
+ inputs: []
900
915
  },
901
916
  {
902
- "type": "error",
903
- "name": "ReentrancyGuardReentrantCall",
904
- "inputs": []
917
+ type: "error",
918
+ name: "ReentrancyGuardReentrantCall",
919
+ inputs: []
905
920
  },
906
921
  {
907
- "type": "error",
908
- "name": "SafeERC20FailedOperation",
909
- "inputs": [{
910
- "name": "token",
911
- "type": "address",
912
- "internalType": "address"
922
+ type: "error",
923
+ name: "SafeERC20FailedOperation",
924
+ inputs: [{
925
+ name: "token",
926
+ type: "address",
927
+ internalType: "address"
913
928
  }]
914
929
  },
915
930
  {
916
- "type": "error",
917
- "name": "StaleTerms",
918
- "inputs": []
931
+ type: "error",
932
+ name: "StaleTerms",
933
+ inputs: []
919
934
  },
920
935
  {
921
- "type": "error",
922
- "name": "UUPSUnauthorizedCallContext",
923
- "inputs": []
936
+ type: "error",
937
+ name: "UUPSUnauthorizedCallContext",
938
+ inputs: []
924
939
  },
925
940
  {
926
- "type": "error",
927
- "name": "UUPSUnsupportedProxiableUUID",
928
- "inputs": [{
929
- "name": "slot",
930
- "type": "bytes32",
931
- "internalType": "bytes32"
941
+ type: "error",
942
+ name: "UUPSUnsupportedProxiableUUID",
943
+ inputs: [{
944
+ name: "slot",
945
+ type: "bytes32",
946
+ internalType: "bytes32"
932
947
  }]
933
948
  },
934
949
  {
935
- "type": "error",
936
- "name": "Unauthorized",
937
- "inputs": []
950
+ type: "error",
951
+ name: "Unauthorized",
952
+ inputs: []
938
953
  },
939
954
  {
940
- "type": "error",
941
- "name": "WrongAmount",
942
- "inputs": []
955
+ type: "error",
956
+ name: "WrongAmount",
957
+ inputs: []
943
958
  }
944
959
  ];
945
960