@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,502 +5,502 @@
5
5
  */
6
6
  const DATA_REGISTRY_ABI = [
7
7
  {
8
- "type": "constructor",
9
- "inputs": [],
10
- "stateMutability": "nonpayable"
11
- },
12
- {
13
- "type": "function",
14
- "name": "EPOCH_SECONDS",
15
- "inputs": [],
16
- "outputs": [{
17
- "name": "",
18
- "type": "uint64",
19
- "internalType": "uint64"
8
+ type: "constructor",
9
+ inputs: [],
10
+ stateMutability: "nonpayable"
11
+ },
12
+ {
13
+ type: "function",
14
+ name: "EPOCH_SECONDS",
15
+ inputs: [],
16
+ outputs: [{
17
+ name: "",
18
+ type: "uint64",
19
+ internalType: "uint64"
20
20
  }],
21
- "stateMutability": "view"
21
+ stateMutability: "view"
22
22
  },
23
23
  {
24
- "type": "function",
25
- "name": "UPDATE_TYPEHASH",
26
- "inputs": [],
27
- "outputs": [{
28
- "name": "",
29
- "type": "bytes32",
30
- "internalType": "bytes32"
24
+ type: "function",
25
+ name: "UPDATE_TYPEHASH",
26
+ inputs: [],
27
+ outputs: [{
28
+ name: "",
29
+ type: "bytes32",
30
+ internalType: "bytes32"
31
31
  }],
32
- "stateMutability": "view"
32
+ stateMutability: "view"
33
33
  },
34
34
  {
35
- "type": "function",
36
- "name": "UPGRADE_INTERFACE_VERSION",
37
- "inputs": [],
38
- "outputs": [{
39
- "name": "",
40
- "type": "string",
41
- "internalType": "string"
35
+ type: "function",
36
+ name: "UPGRADE_INTERFACE_VERSION",
37
+ inputs: [],
38
+ outputs: [{
39
+ name: "",
40
+ type: "string",
41
+ internalType: "string"
42
42
  }],
43
- "stateMutability": "view"
43
+ stateMutability: "view"
44
44
  },
45
45
  {
46
- "type": "function",
47
- "name": "WINDOW",
48
- "inputs": [],
49
- "outputs": [{
50
- "name": "",
51
- "type": "uint64",
52
- "internalType": "uint64"
46
+ type: "function",
47
+ name: "WINDOW",
48
+ inputs: [],
49
+ outputs: [{
50
+ name: "",
51
+ type: "uint64",
52
+ internalType: "uint64"
53
53
  }],
54
- "stateMutability": "view"
54
+ stateMutability: "view"
55
55
  },
56
56
  {
57
- "type": "function",
58
- "name": "admin",
59
- "inputs": [],
60
- "outputs": [{
61
- "name": "",
62
- "type": "address",
63
- "internalType": "address"
57
+ type: "function",
58
+ name: "admin",
59
+ inputs: [],
60
+ outputs: [{
61
+ name: "",
62
+ type: "address",
63
+ internalType: "address"
64
64
  }],
65
- "stateMutability": "view"
65
+ stateMutability: "view"
66
66
  },
67
67
  {
68
- "type": "function",
69
- "name": "commitHead",
70
- "inputs": [
68
+ type: "function",
69
+ name: "commitHead",
70
+ inputs: [
71
71
  {
72
- "name": "repo",
73
- "type": "string",
74
- "internalType": "string"
72
+ name: "repo",
73
+ type: "string",
74
+ internalType: "string"
75
75
  },
76
76
  {
77
- "name": "epoch",
78
- "type": "uint64",
79
- "internalType": "uint64"
77
+ name: "epoch",
78
+ type: "uint64",
79
+ internalType: "uint64"
80
80
  },
81
81
  {
82
- "name": "parent",
83
- "type": "bytes32",
84
- "internalType": "bytes32"
82
+ name: "parent",
83
+ type: "bytes32",
84
+ internalType: "bytes32"
85
85
  },
86
86
  {
87
- "name": "root",
88
- "type": "bytes32",
89
- "internalType": "bytes32"
87
+ name: "root",
88
+ type: "bytes32",
89
+ internalType: "bytes32"
90
90
  },
91
91
  {
92
- "name": "car",
93
- "type": "bytes",
94
- "internalType": "bytes"
92
+ name: "car",
93
+ type: "bytes",
94
+ internalType: "bytes"
95
95
  }
96
96
  ],
97
- "outputs": [{
98
- "name": "",
99
- "type": "bytes32",
100
- "internalType": "bytes32"
97
+ outputs: [{
98
+ name: "",
99
+ type: "bytes32",
100
+ internalType: "bytes32"
101
101
  }],
102
- "stateMutability": "pure"
102
+ stateMutability: "pure"
103
103
  },
104
104
  {
105
- "type": "function",
106
- "name": "currentEpoch",
107
- "inputs": [],
108
- "outputs": [{
109
- "name": "",
110
- "type": "uint64",
111
- "internalType": "uint64"
105
+ type: "function",
106
+ name: "currentEpoch",
107
+ inputs: [],
108
+ outputs: [{
109
+ name: "",
110
+ type: "uint64",
111
+ internalType: "uint64"
112
112
  }],
113
- "stateMutability": "view"
113
+ stateMutability: "view"
114
114
  },
115
115
  {
116
- "type": "function",
117
- "name": "domainSeparator",
118
- "inputs": [],
119
- "outputs": [{
120
- "name": "",
121
- "type": "bytes32",
122
- "internalType": "bytes32"
116
+ type: "function",
117
+ name: "domainSeparator",
118
+ inputs: [],
119
+ outputs: [{
120
+ name: "",
121
+ type: "bytes32",
122
+ internalType: "bytes32"
123
123
  }],
124
- "stateMutability": "view"
124
+ stateMutability: "view"
125
125
  },
126
126
  {
127
- "type": "function",
128
- "name": "getHead",
129
- "inputs": [{
130
- "name": "publisher",
131
- "type": "address",
132
- "internalType": "address"
127
+ type: "function",
128
+ name: "getHead",
129
+ inputs: [{
130
+ name: "publisher",
131
+ type: "address",
132
+ internalType: "address"
133
133
  }, {
134
- "name": "repo_id",
135
- "type": "bytes32",
136
- "internalType": "bytes32"
134
+ name: "repo_id",
135
+ type: "bytes32",
136
+ internalType: "bytes32"
137
137
  }],
138
- "outputs": [{
139
- "name": "pos",
140
- "type": "uint64",
141
- "internalType": "uint64"
138
+ outputs: [{
139
+ name: "pos",
140
+ type: "uint64",
141
+ internalType: "uint64"
142
142
  }, {
143
- "name": "head",
144
- "type": "bytes32",
145
- "internalType": "bytes32"
143
+ name: "head",
144
+ type: "bytes32",
145
+ internalType: "bytes32"
146
146
  }],
147
- "stateMutability": "view"
147
+ stateMutability: "view"
148
148
  },
149
149
  {
150
- "type": "function",
151
- "name": "initialize",
152
- "inputs": [{
153
- "name": "admin_",
154
- "type": "address",
155
- "internalType": "address"
150
+ type: "function",
151
+ name: "initialize",
152
+ inputs: [{
153
+ name: "admin_",
154
+ type: "address",
155
+ internalType: "address"
156
156
  }],
157
- "outputs": [],
158
- "stateMutability": "nonpayable"
157
+ outputs: [],
158
+ stateMutability: "nonpayable"
159
159
  },
160
160
  {
161
- "type": "function",
162
- "name": "logLength",
163
- "inputs": [],
164
- "outputs": [{
165
- "name": "",
166
- "type": "uint64",
167
- "internalType": "uint64"
161
+ type: "function",
162
+ name: "logLength",
163
+ inputs: [],
164
+ outputs: [{
165
+ name: "",
166
+ type: "uint64",
167
+ internalType: "uint64"
168
168
  }],
169
- "stateMutability": "view"
169
+ stateMutability: "view"
170
170
  },
171
171
  {
172
- "type": "function",
173
- "name": "logRoot",
174
- "inputs": [],
175
- "outputs": [{
176
- "name": "",
177
- "type": "bytes32",
178
- "internalType": "bytes32"
172
+ type: "function",
173
+ name: "logRoot",
174
+ inputs: [],
175
+ outputs: [{
176
+ name: "",
177
+ type: "bytes32",
178
+ internalType: "bytes32"
179
179
  }],
180
- "stateMutability": "view"
180
+ stateMutability: "view"
181
181
  },
182
182
  {
183
- "type": "function",
184
- "name": "peaks",
185
- "inputs": [{
186
- "name": "",
187
- "type": "uint256",
188
- "internalType": "uint256"
183
+ type: "function",
184
+ name: "peaks",
185
+ inputs: [{
186
+ name: "",
187
+ type: "uint256",
188
+ internalType: "uint256"
189
189
  }],
190
- "outputs": [{
191
- "name": "",
192
- "type": "bytes32",
193
- "internalType": "bytes32"
190
+ outputs: [{
191
+ name: "",
192
+ type: "bytes32",
193
+ internalType: "bytes32"
194
194
  }],
195
- "stateMutability": "view"
195
+ stateMutability: "view"
196
196
  },
197
197
  {
198
- "type": "function",
199
- "name": "proxiableUUID",
200
- "inputs": [],
201
- "outputs": [{
202
- "name": "",
203
- "type": "bytes32",
204
- "internalType": "bytes32"
198
+ type: "function",
199
+ name: "proxiableUUID",
200
+ inputs: [],
201
+ outputs: [{
202
+ name: "",
203
+ type: "bytes32",
204
+ internalType: "bytes32"
205
205
  }],
206
- "stateMutability": "view"
206
+ stateMutability: "view"
207
207
  },
208
208
  {
209
- "type": "function",
210
- "name": "repoCount",
211
- "inputs": [{
212
- "name": "publisher",
213
- "type": "address",
214
- "internalType": "address"
209
+ type: "function",
210
+ name: "repoCount",
211
+ inputs: [{
212
+ name: "publisher",
213
+ type: "address",
214
+ internalType: "address"
215
215
  }],
216
- "outputs": [{
217
- "name": "",
218
- "type": "uint256",
219
- "internalType": "uint256"
216
+ outputs: [{
217
+ name: "",
218
+ type: "uint256",
219
+ internalType: "uint256"
220
220
  }],
221
- "stateMutability": "view"
221
+ stateMutability: "view"
222
222
  },
223
223
  {
224
- "type": "function",
225
- "name": "repoIds",
226
- "inputs": [{
227
- "name": "",
228
- "type": "address",
229
- "internalType": "address"
224
+ type: "function",
225
+ name: "repoIds",
226
+ inputs: [{
227
+ name: "",
228
+ type: "address",
229
+ internalType: "address"
230
230
  }, {
231
- "name": "",
232
- "type": "uint256",
233
- "internalType": "uint256"
231
+ name: "",
232
+ type: "uint256",
233
+ internalType: "uint256"
234
234
  }],
235
- "outputs": [{
236
- "name": "",
237
- "type": "bytes32",
238
- "internalType": "bytes32"
235
+ outputs: [{
236
+ name: "",
237
+ type: "bytes32",
238
+ internalType: "bytes32"
239
239
  }],
240
- "stateMutability": "view"
240
+ stateMutability: "view"
241
241
  },
242
242
  {
243
- "type": "function",
244
- "name": "setAdmin",
245
- "inputs": [{
246
- "name": "new_admin",
247
- "type": "address",
248
- "internalType": "address"
243
+ type: "function",
244
+ name: "setAdmin",
245
+ inputs: [{
246
+ name: "new_admin",
247
+ type: "address",
248
+ internalType: "address"
249
249
  }],
250
- "outputs": [],
251
- "stateMutability": "nonpayable"
250
+ outputs: [],
251
+ stateMutability: "nonpayable"
252
252
  },
253
253
  {
254
- "type": "function",
255
- "name": "update",
256
- "inputs": [
254
+ type: "function",
255
+ name: "update",
256
+ inputs: [
257
257
  {
258
- "name": "repo",
259
- "type": "string",
260
- "internalType": "string"
258
+ name: "repo",
259
+ type: "string",
260
+ internalType: "string"
261
261
  },
262
262
  {
263
- "name": "epoch",
264
- "type": "uint64",
265
- "internalType": "uint64"
263
+ name: "epoch",
264
+ type: "uint64",
265
+ internalType: "uint64"
266
266
  },
267
267
  {
268
- "name": "parent",
269
- "type": "bytes32",
270
- "internalType": "bytes32"
268
+ name: "parent",
269
+ type: "bytes32",
270
+ internalType: "bytes32"
271
271
  },
272
272
  {
273
- "name": "root",
274
- "type": "bytes32",
275
- "internalType": "bytes32"
273
+ name: "root",
274
+ type: "bytes32",
275
+ internalType: "bytes32"
276
276
  },
277
277
  {
278
- "name": "car",
279
- "type": "bytes",
280
- "internalType": "bytes"
278
+ name: "car",
279
+ type: "bytes",
280
+ internalType: "bytes"
281
281
  }
282
282
  ],
283
- "outputs": [{
284
- "name": "",
285
- "type": "bytes32",
286
- "internalType": "bytes32"
283
+ outputs: [{
284
+ name: "",
285
+ type: "bytes32",
286
+ internalType: "bytes32"
287
287
  }],
288
- "stateMutability": "nonpayable"
288
+ stateMutability: "nonpayable"
289
289
  },
290
290
  {
291
- "type": "function",
292
- "name": "updateBySig",
293
- "inputs": [
291
+ type: "function",
292
+ name: "updateBySig",
293
+ inputs: [
294
294
  {
295
- "name": "publisher",
296
- "type": "address",
297
- "internalType": "address"
295
+ name: "publisher",
296
+ type: "address",
297
+ internalType: "address"
298
298
  },
299
299
  {
300
- "name": "repo",
301
- "type": "string",
302
- "internalType": "string"
300
+ name: "repo",
301
+ type: "string",
302
+ internalType: "string"
303
303
  },
304
304
  {
305
- "name": "epoch",
306
- "type": "uint64",
307
- "internalType": "uint64"
305
+ name: "epoch",
306
+ type: "uint64",
307
+ internalType: "uint64"
308
308
  },
309
309
  {
310
- "name": "parent",
311
- "type": "bytes32",
312
- "internalType": "bytes32"
310
+ name: "parent",
311
+ type: "bytes32",
312
+ internalType: "bytes32"
313
313
  },
314
314
  {
315
- "name": "root",
316
- "type": "bytes32",
317
- "internalType": "bytes32"
315
+ name: "root",
316
+ type: "bytes32",
317
+ internalType: "bytes32"
318
318
  },
319
319
  {
320
- "name": "car",
321
- "type": "bytes",
322
- "internalType": "bytes"
320
+ name: "car",
321
+ type: "bytes",
322
+ internalType: "bytes"
323
323
  },
324
324
  {
325
- "name": "signature",
326
- "type": "bytes",
327
- "internalType": "bytes"
325
+ name: "signature",
326
+ type: "bytes",
327
+ internalType: "bytes"
328
328
  }
329
329
  ],
330
- "outputs": [{
331
- "name": "",
332
- "type": "bytes32",
333
- "internalType": "bytes32"
330
+ outputs: [{
331
+ name: "",
332
+ type: "bytes32",
333
+ internalType: "bytes32"
334
334
  }],
335
- "stateMutability": "nonpayable"
335
+ stateMutability: "nonpayable"
336
336
  },
337
337
  {
338
- "type": "function",
339
- "name": "upgradeToAndCall",
340
- "inputs": [{
341
- "name": "newImplementation",
342
- "type": "address",
343
- "internalType": "address"
338
+ type: "function",
339
+ name: "upgradeToAndCall",
340
+ inputs: [{
341
+ name: "newImplementation",
342
+ type: "address",
343
+ internalType: "address"
344
344
  }, {
345
- "name": "data",
346
- "type": "bytes",
347
- "internalType": "bytes"
345
+ name: "data",
346
+ type: "bytes",
347
+ internalType: "bytes"
348
348
  }],
349
- "outputs": [],
350
- "stateMutability": "payable"
349
+ outputs: [],
350
+ stateMutability: "payable"
351
351
  },
352
352
  {
353
- "type": "event",
354
- "name": "AdminChanged",
355
- "inputs": [{
356
- "name": "previous_admin",
357
- "type": "address",
358
- "indexed": false,
359
- "internalType": "address"
353
+ type: "event",
354
+ name: "AdminChanged",
355
+ inputs: [{
356
+ name: "previous_admin",
357
+ type: "address",
358
+ indexed: false,
359
+ internalType: "address"
360
360
  }, {
361
- "name": "new_admin",
362
- "type": "address",
363
- "indexed": false,
364
- "internalType": "address"
361
+ name: "new_admin",
362
+ type: "address",
363
+ indexed: false,
364
+ internalType: "address"
365
365
  }],
366
- "anonymous": false
366
+ anonymous: false
367
367
  },
368
368
  {
369
- "type": "event",
370
- "name": "Initialized",
371
- "inputs": [{
372
- "name": "version",
373
- "type": "uint64",
374
- "indexed": false,
375
- "internalType": "uint64"
369
+ type: "event",
370
+ name: "Initialized",
371
+ inputs: [{
372
+ name: "version",
373
+ type: "uint64",
374
+ indexed: false,
375
+ internalType: "uint64"
376
376
  }],
377
- "anonymous": false
377
+ anonymous: false
378
378
  },
379
379
  {
380
- "type": "event",
381
- "name": "Updated",
382
- "inputs": [
380
+ type: "event",
381
+ name: "Updated",
382
+ inputs: [
383
383
  {
384
- "name": "publisher",
385
- "type": "address",
386
- "indexed": true,
387
- "internalType": "address"
384
+ name: "publisher",
385
+ type: "address",
386
+ indexed: true,
387
+ internalType: "address"
388
388
  },
389
389
  {
390
- "name": "repo_id",
391
- "type": "bytes32",
392
- "indexed": true,
393
- "internalType": "bytes32"
390
+ name: "repo_id",
391
+ type: "bytes32",
392
+ indexed: true,
393
+ internalType: "bytes32"
394
394
  },
395
395
  {
396
- "name": "repo",
397
- "type": "string",
398
- "indexed": false,
399
- "internalType": "string"
396
+ name: "repo",
397
+ type: "string",
398
+ indexed: false,
399
+ internalType: "string"
400
400
  },
401
401
  {
402
- "name": "pos",
403
- "type": "uint64",
404
- "indexed": false,
405
- "internalType": "uint64"
402
+ name: "pos",
403
+ type: "uint64",
404
+ indexed: false,
405
+ internalType: "uint64"
406
406
  },
407
407
  {
408
- "name": "parent",
409
- "type": "bytes32",
410
- "indexed": false,
411
- "internalType": "bytes32"
408
+ name: "parent",
409
+ type: "bytes32",
410
+ indexed: false,
411
+ internalType: "bytes32"
412
412
  },
413
413
  {
414
- "name": "head",
415
- "type": "bytes32",
416
- "indexed": false,
417
- "internalType": "bytes32"
414
+ name: "head",
415
+ type: "bytes32",
416
+ indexed: false,
417
+ internalType: "bytes32"
418
418
  }
419
419
  ],
420
- "anonymous": false
420
+ anonymous: false
421
421
  },
422
422
  {
423
- "type": "event",
424
- "name": "Upgraded",
425
- "inputs": [{
426
- "name": "implementation",
427
- "type": "address",
428
- "indexed": true,
429
- "internalType": "address"
423
+ type: "event",
424
+ name: "Upgraded",
425
+ inputs: [{
426
+ name: "implementation",
427
+ type: "address",
428
+ indexed: true,
429
+ internalType: "address"
430
430
  }],
431
- "anonymous": false
431
+ anonymous: false
432
432
  },
433
433
  {
434
- "type": "error",
435
- "name": "AddressEmptyCode",
436
- "inputs": [{
437
- "name": "target",
438
- "type": "address",
439
- "internalType": "address"
434
+ type: "error",
435
+ name: "AddressEmptyCode",
436
+ inputs: [{
437
+ name: "target",
438
+ type: "address",
439
+ internalType: "address"
440
440
  }]
441
441
  },
442
442
  {
443
- "type": "error",
444
- "name": "BadSignature",
445
- "inputs": []
443
+ type: "error",
444
+ name: "BadSignature",
445
+ inputs: []
446
446
  },
447
447
  {
448
- "type": "error",
449
- "name": "ERC1967InvalidImplementation",
450
- "inputs": [{
451
- "name": "implementation",
452
- "type": "address",
453
- "internalType": "address"
448
+ type: "error",
449
+ name: "ERC1967InvalidImplementation",
450
+ inputs: [{
451
+ name: "implementation",
452
+ type: "address",
453
+ internalType: "address"
454
454
  }]
455
455
  },
456
456
  {
457
- "type": "error",
458
- "name": "ERC1967NonPayable",
459
- "inputs": []
457
+ type: "error",
458
+ name: "ERC1967NonPayable",
459
+ inputs: []
460
460
  },
461
461
  {
462
- "type": "error",
463
- "name": "EpochOutOfWindow",
464
- "inputs": []
462
+ type: "error",
463
+ name: "EpochOutOfWindow",
464
+ inputs: []
465
465
  },
466
466
  {
467
- "type": "error",
468
- "name": "FailedCall",
469
- "inputs": []
467
+ type: "error",
468
+ name: "FailedCall",
469
+ inputs: []
470
470
  },
471
471
  {
472
- "type": "error",
473
- "name": "InvalidInitialization",
474
- "inputs": []
472
+ type: "error",
473
+ name: "InvalidInitialization",
474
+ inputs: []
475
475
  },
476
476
  {
477
- "type": "error",
478
- "name": "NotInitializing",
479
- "inputs": []
477
+ type: "error",
478
+ name: "NotInitializing",
479
+ inputs: []
480
480
  },
481
481
  {
482
- "type": "error",
483
- "name": "StaleStateRoot",
484
- "inputs": []
482
+ type: "error",
483
+ name: "StaleStateRoot",
484
+ inputs: []
485
485
  },
486
486
  {
487
- "type": "error",
488
- "name": "UUPSUnauthorizedCallContext",
489
- "inputs": []
487
+ type: "error",
488
+ name: "UUPSUnauthorizedCallContext",
489
+ inputs: []
490
490
  },
491
491
  {
492
- "type": "error",
493
- "name": "UUPSUnsupportedProxiableUUID",
494
- "inputs": [{
495
- "name": "slot",
496
- "type": "bytes32",
497
- "internalType": "bytes32"
492
+ type: "error",
493
+ name: "UUPSUnsupportedProxiableUUID",
494
+ inputs: [{
495
+ name: "slot",
496
+ type: "bytes32",
497
+ internalType: "bytes32"
498
498
  }]
499
499
  },
500
500
  {
501
- "type": "error",
502
- "name": "Unauthorized",
503
- "inputs": []
501
+ type: "error",
502
+ name: "Unauthorized",
503
+ inputs: []
504
504
  }
505
505
  ];
506
506