@d20dao/vrf-sdk 0.1.0

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.
@@ -0,0 +1,803 @@
1
+ [
2
+ {
3
+ "inputs": [],
4
+ "stateMutability": "nonpayable",
5
+ "type": "constructor"
6
+ },
7
+ {
8
+ "inputs": [
9
+ {
10
+ "internalType": "address",
11
+ "name": "target",
12
+ "type": "address"
13
+ }
14
+ ],
15
+ "name": "AddressEmptyCode",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "AlreadyCommitted",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "AnchorUnavailable",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "ECDSAInvalidSignature",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "length",
38
+ "type": "uint256"
39
+ }
40
+ ],
41
+ "name": "ECDSAInvalidSignatureLength",
42
+ "type": "error"
43
+ },
44
+ {
45
+ "inputs": [
46
+ {
47
+ "internalType": "bytes32",
48
+ "name": "s",
49
+ "type": "bytes32"
50
+ }
51
+ ],
52
+ "name": "ECDSAInvalidSignatureS",
53
+ "type": "error"
54
+ },
55
+ {
56
+ "inputs": [
57
+ {
58
+ "internalType": "address",
59
+ "name": "implementation",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "name": "ERC1967InvalidImplementation",
64
+ "type": "error"
65
+ },
66
+ {
67
+ "inputs": [],
68
+ "name": "ERC1967NonPayable",
69
+ "type": "error"
70
+ },
71
+ {
72
+ "inputs": [],
73
+ "name": "FailedCall",
74
+ "type": "error"
75
+ },
76
+ {
77
+ "inputs": [],
78
+ "name": "InvalidConfig",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "InvalidData",
84
+ "type": "error"
85
+ },
86
+ {
87
+ "inputs": [],
88
+ "name": "InvalidEpoch",
89
+ "type": "error"
90
+ },
91
+ {
92
+ "inputs": [],
93
+ "name": "InvalidInitialization",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [],
98
+ "name": "InvalidSigner",
99
+ "type": "error"
100
+ },
101
+ {
102
+ "inputs": [],
103
+ "name": "InvalidTime",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [],
108
+ "name": "NotInitializing",
109
+ "type": "error"
110
+ },
111
+ {
112
+ "inputs": [],
113
+ "name": "OnlyCommitter",
114
+ "type": "error"
115
+ },
116
+ {
117
+ "inputs": [
118
+ {
119
+ "internalType": "address",
120
+ "name": "owner",
121
+ "type": "address"
122
+ }
123
+ ],
124
+ "name": "OwnableInvalidOwner",
125
+ "type": "error"
126
+ },
127
+ {
128
+ "inputs": [
129
+ {
130
+ "internalType": "address",
131
+ "name": "account",
132
+ "type": "address"
133
+ }
134
+ ],
135
+ "name": "OwnableUnauthorizedAccount",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [],
140
+ "name": "PacketTooLarge",
141
+ "type": "error"
142
+ },
143
+ {
144
+ "inputs": [],
145
+ "name": "PreparationClosed",
146
+ "type": "error"
147
+ },
148
+ {
149
+ "inputs": [],
150
+ "name": "UUPSUnauthorizedCallContext",
151
+ "type": "error"
152
+ },
153
+ {
154
+ "inputs": [
155
+ {
156
+ "internalType": "bytes32",
157
+ "name": "slot",
158
+ "type": "bytes32"
159
+ }
160
+ ],
161
+ "name": "UUPSUnsupportedProxiableUUID",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "anonymous": false,
166
+ "inputs": [
167
+ {
168
+ "indexed": true,
169
+ "internalType": "address",
170
+ "name": "previousCommitter",
171
+ "type": "address"
172
+ },
173
+ {
174
+ "indexed": true,
175
+ "internalType": "address",
176
+ "name": "newCommitter",
177
+ "type": "address"
178
+ }
179
+ ],
180
+ "name": "CommitterChanged",
181
+ "type": "event"
182
+ },
183
+ {
184
+ "anonymous": false,
185
+ "inputs": [
186
+ {
187
+ "indexed": true,
188
+ "internalType": "uint64",
189
+ "name": "epochId",
190
+ "type": "uint64"
191
+ },
192
+ {
193
+ "indexed": true,
194
+ "internalType": "bytes32",
195
+ "name": "epochHash",
196
+ "type": "bytes32"
197
+ },
198
+ {
199
+ "indexed": false,
200
+ "internalType": "bytes",
201
+ "name": "packet",
202
+ "type": "bytes"
203
+ }
204
+ ],
205
+ "name": "EpochCommitted",
206
+ "type": "event"
207
+ },
208
+ {
209
+ "anonymous": false,
210
+ "inputs": [
211
+ {
212
+ "indexed": false,
213
+ "internalType": "uint64",
214
+ "name": "version",
215
+ "type": "uint64"
216
+ }
217
+ ],
218
+ "name": "Initialized",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": true,
226
+ "internalType": "address",
227
+ "name": "previousOwner",
228
+ "type": "address"
229
+ },
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "newOwner",
234
+ "type": "address"
235
+ }
236
+ ],
237
+ "name": "OwnershipTransferStarted",
238
+ "type": "event"
239
+ },
240
+ {
241
+ "anonymous": false,
242
+ "inputs": [
243
+ {
244
+ "indexed": true,
245
+ "internalType": "address",
246
+ "name": "previousOwner",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": true,
251
+ "internalType": "address",
252
+ "name": "newOwner",
253
+ "type": "address"
254
+ }
255
+ ],
256
+ "name": "OwnershipTransferred",
257
+ "type": "event"
258
+ },
259
+ {
260
+ "anonymous": false,
261
+ "inputs": [
262
+ {
263
+ "indexed": true,
264
+ "internalType": "address",
265
+ "name": "implementation",
266
+ "type": "address"
267
+ }
268
+ ],
269
+ "name": "Upgraded",
270
+ "type": "event"
271
+ },
272
+ {
273
+ "inputs": [],
274
+ "name": "EPOCH_DOMAIN",
275
+ "outputs": [
276
+ {
277
+ "internalType": "bytes32",
278
+ "name": "",
279
+ "type": "bytes32"
280
+ }
281
+ ],
282
+ "stateMutability": "view",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [],
287
+ "name": "EPOCH_LENGTH",
288
+ "outputs": [
289
+ {
290
+ "internalType": "uint64",
291
+ "name": "",
292
+ "type": "uint64"
293
+ }
294
+ ],
295
+ "stateMutability": "view",
296
+ "type": "function"
297
+ },
298
+ {
299
+ "inputs": [],
300
+ "name": "MAX_PACKET_BYTES",
301
+ "outputs": [
302
+ {
303
+ "internalType": "uint256",
304
+ "name": "",
305
+ "type": "uint256"
306
+ }
307
+ ],
308
+ "stateMutability": "view",
309
+ "type": "function"
310
+ },
311
+ {
312
+ "inputs": [],
313
+ "name": "RECIPE_DOMAIN",
314
+ "outputs": [
315
+ {
316
+ "internalType": "bytes32",
317
+ "name": "",
318
+ "type": "bytes32"
319
+ }
320
+ ],
321
+ "stateMutability": "view",
322
+ "type": "function"
323
+ },
324
+ {
325
+ "inputs": [],
326
+ "name": "SELECT_DOMAIN",
327
+ "outputs": [
328
+ {
329
+ "internalType": "bytes32",
330
+ "name": "",
331
+ "type": "bytes32"
332
+ }
333
+ ],
334
+ "stateMutability": "view",
335
+ "type": "function"
336
+ },
337
+ {
338
+ "inputs": [],
339
+ "name": "UPGRADE_INTERFACE_VERSION",
340
+ "outputs": [
341
+ {
342
+ "internalType": "string",
343
+ "name": "",
344
+ "type": "string"
345
+ }
346
+ ],
347
+ "stateMutability": "view",
348
+ "type": "function"
349
+ },
350
+ {
351
+ "inputs": [],
352
+ "name": "acceptOwnership",
353
+ "outputs": [],
354
+ "stateMutability": "nonpayable",
355
+ "type": "function"
356
+ },
357
+ {
358
+ "inputs": [],
359
+ "name": "anuSigner",
360
+ "outputs": [
361
+ {
362
+ "internalType": "address",
363
+ "name": "",
364
+ "type": "address"
365
+ }
366
+ ],
367
+ "stateMutability": "view",
368
+ "type": "function"
369
+ },
370
+ {
371
+ "inputs": [],
372
+ "name": "btcTradeSigner",
373
+ "outputs": [
374
+ {
375
+ "internalType": "address",
376
+ "name": "",
377
+ "type": "address"
378
+ }
379
+ ],
380
+ "stateMutability": "view",
381
+ "type": "function"
382
+ },
383
+ {
384
+ "inputs": [],
385
+ "name": "catalogHash",
386
+ "outputs": [
387
+ {
388
+ "internalType": "bytes32",
389
+ "name": "",
390
+ "type": "bytes32"
391
+ }
392
+ ],
393
+ "stateMutability": "view",
394
+ "type": "function"
395
+ },
396
+ {
397
+ "inputs": [
398
+ {
399
+ "internalType": "uint64",
400
+ "name": "epochId",
401
+ "type": "uint64"
402
+ }
403
+ ],
404
+ "name": "checkpointEpoch",
405
+ "outputs": [
406
+ {
407
+ "internalType": "bytes32",
408
+ "name": "anchor",
409
+ "type": "bytes32"
410
+ }
411
+ ],
412
+ "stateMutability": "nonpayable",
413
+ "type": "function"
414
+ },
415
+ {
416
+ "inputs": [
417
+ {
418
+ "internalType": "uint64",
419
+ "name": "epochId",
420
+ "type": "uint64"
421
+ },
422
+ {
423
+ "components": [
424
+ {
425
+ "internalType": "uint256",
426
+ "name": "timestamp",
427
+ "type": "uint256"
428
+ },
429
+ {
430
+ "internalType": "bytes",
431
+ "name": "data",
432
+ "type": "bytes"
433
+ },
434
+ {
435
+ "internalType": "bytes",
436
+ "name": "signature",
437
+ "type": "bytes"
438
+ }
439
+ ],
440
+ "internalType": "struct EpochEntropy.Attestation",
441
+ "name": "a",
442
+ "type": "tuple"
443
+ }
444
+ ],
445
+ "name": "commitEpoch",
446
+ "outputs": [],
447
+ "stateMutability": "nonpayable",
448
+ "type": "function"
449
+ },
450
+ {
451
+ "inputs": [],
452
+ "name": "committer",
453
+ "outputs": [
454
+ {
455
+ "internalType": "address",
456
+ "name": "",
457
+ "type": "address"
458
+ }
459
+ ],
460
+ "stateMutability": "view",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [
465
+ {
466
+ "internalType": "uint64",
467
+ "name": "",
468
+ "type": "uint64"
469
+ }
470
+ ],
471
+ "name": "epochAnchors",
472
+ "outputs": [
473
+ {
474
+ "internalType": "bytes32",
475
+ "name": "",
476
+ "type": "bytes32"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [
484
+ {
485
+ "internalType": "uint256",
486
+ "name": "number",
487
+ "type": "uint256"
488
+ }
489
+ ],
490
+ "name": "epochForBlock",
491
+ "outputs": [
492
+ {
493
+ "internalType": "uint64",
494
+ "name": "",
495
+ "type": "uint64"
496
+ }
497
+ ],
498
+ "stateMutability": "view",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "uint64",
505
+ "name": "epochId",
506
+ "type": "uint64"
507
+ }
508
+ ],
509
+ "name": "epochStart",
510
+ "outputs": [
511
+ {
512
+ "internalType": "uint64",
513
+ "name": "",
514
+ "type": "uint64"
515
+ }
516
+ ],
517
+ "stateMutability": "view",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [],
522
+ "name": "ethTradeSigner",
523
+ "outputs": [
524
+ {
525
+ "internalType": "address",
526
+ "name": "",
527
+ "type": "address"
528
+ }
529
+ ],
530
+ "stateMutability": "view",
531
+ "type": "function"
532
+ },
533
+ {
534
+ "inputs": [],
535
+ "name": "firstEpochStart",
536
+ "outputs": [
537
+ {
538
+ "internalType": "uint64",
539
+ "name": "",
540
+ "type": "uint64"
541
+ }
542
+ ],
543
+ "stateMutability": "view",
544
+ "type": "function"
545
+ },
546
+ {
547
+ "inputs": [
548
+ {
549
+ "internalType": "uint64",
550
+ "name": "epochId",
551
+ "type": "uint64"
552
+ }
553
+ ],
554
+ "name": "getEpoch",
555
+ "outputs": [
556
+ {
557
+ "components": [
558
+ {
559
+ "internalType": "bytes32",
560
+ "name": "epochHash",
561
+ "type": "bytes32"
562
+ },
563
+ {
564
+ "internalType": "bytes32",
565
+ "name": "catalogHash",
566
+ "type": "bytes32"
567
+ },
568
+ {
569
+ "internalType": "bytes32",
570
+ "name": "anchorHash",
571
+ "type": "bytes32"
572
+ },
573
+ {
574
+ "internalType": "uint8",
575
+ "name": "source",
576
+ "type": "uint8"
577
+ },
578
+ {
579
+ "internalType": "bytes32",
580
+ "name": "queryHash",
581
+ "type": "bytes32"
582
+ },
583
+ {
584
+ "internalType": "bytes32",
585
+ "name": "dataHash",
586
+ "type": "bytes32"
587
+ },
588
+ {
589
+ "internalType": "bytes32",
590
+ "name": "attestationHash",
591
+ "type": "bytes32"
592
+ },
593
+ {
594
+ "internalType": "uint256",
595
+ "name": "signedAt",
596
+ "type": "uint256"
597
+ },
598
+ {
599
+ "internalType": "uint64",
600
+ "name": "committedBlock",
601
+ "type": "uint64"
602
+ }
603
+ ],
604
+ "internalType": "struct EpochEntropy.Epoch",
605
+ "name": "",
606
+ "type": "tuple"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [
614
+ {
615
+ "internalType": "uint64",
616
+ "name": "epochId",
617
+ "type": "uint64"
618
+ }
619
+ ],
620
+ "name": "getEpochSelection",
621
+ "outputs": [
622
+ {
623
+ "components": [
624
+ {
625
+ "internalType": "uint8",
626
+ "name": "source",
627
+ "type": "uint8"
628
+ },
629
+ {
630
+ "internalType": "address",
631
+ "name": "airnode",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "internalType": "bytes32",
636
+ "name": "selector",
637
+ "type": "bytes32"
638
+ },
639
+ {
640
+ "internalType": "bytes32",
641
+ "name": "queryHash",
642
+ "type": "bytes32"
643
+ },
644
+ {
645
+ "internalType": "string",
646
+ "name": "canonicalRequest",
647
+ "type": "string"
648
+ }
649
+ ],
650
+ "internalType": "struct EpochEntropy.Selection",
651
+ "name": "s",
652
+ "type": "tuple"
653
+ }
654
+ ],
655
+ "stateMutability": "view",
656
+ "type": "function"
657
+ },
658
+ {
659
+ "inputs": [],
660
+ "name": "hyperliquidSigner",
661
+ "outputs": [
662
+ {
663
+ "internalType": "address",
664
+ "name": "",
665
+ "type": "address"
666
+ }
667
+ ],
668
+ "stateMutability": "view",
669
+ "type": "function"
670
+ },
671
+ {
672
+ "inputs": [
673
+ {
674
+ "internalType": "address[4]",
675
+ "name": "signers",
676
+ "type": "address[4]"
677
+ },
678
+ {
679
+ "internalType": "address",
680
+ "name": "initialOwner",
681
+ "type": "address"
682
+ },
683
+ {
684
+ "internalType": "address",
685
+ "name": "initialCommitter",
686
+ "type": "address"
687
+ }
688
+ ],
689
+ "name": "initialize",
690
+ "outputs": [],
691
+ "stateMutability": "nonpayable",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [
696
+ {
697
+ "internalType": "uint256",
698
+ "name": "number",
699
+ "type": "uint256"
700
+ }
701
+ ],
702
+ "name": "nextEpochToPrepare",
703
+ "outputs": [
704
+ {
705
+ "internalType": "uint64",
706
+ "name": "",
707
+ "type": "uint64"
708
+ }
709
+ ],
710
+ "stateMutability": "view",
711
+ "type": "function"
712
+ },
713
+ {
714
+ "inputs": [],
715
+ "name": "owner",
716
+ "outputs": [
717
+ {
718
+ "internalType": "address",
719
+ "name": "",
720
+ "type": "address"
721
+ }
722
+ ],
723
+ "stateMutability": "view",
724
+ "type": "function"
725
+ },
726
+ {
727
+ "inputs": [],
728
+ "name": "pendingOwner",
729
+ "outputs": [
730
+ {
731
+ "internalType": "address",
732
+ "name": "",
733
+ "type": "address"
734
+ }
735
+ ],
736
+ "stateMutability": "view",
737
+ "type": "function"
738
+ },
739
+ {
740
+ "inputs": [],
741
+ "name": "proxiableUUID",
742
+ "outputs": [
743
+ {
744
+ "internalType": "bytes32",
745
+ "name": "",
746
+ "type": "bytes32"
747
+ }
748
+ ],
749
+ "stateMutability": "view",
750
+ "type": "function"
751
+ },
752
+ {
753
+ "inputs": [],
754
+ "name": "renounceOwnership",
755
+ "outputs": [],
756
+ "stateMutability": "nonpayable",
757
+ "type": "function"
758
+ },
759
+ {
760
+ "inputs": [
761
+ {
762
+ "internalType": "address",
763
+ "name": "next",
764
+ "type": "address"
765
+ }
766
+ ],
767
+ "name": "setCommitter",
768
+ "outputs": [],
769
+ "stateMutability": "nonpayable",
770
+ "type": "function"
771
+ },
772
+ {
773
+ "inputs": [
774
+ {
775
+ "internalType": "address",
776
+ "name": "newOwner",
777
+ "type": "address"
778
+ }
779
+ ],
780
+ "name": "transferOwnership",
781
+ "outputs": [],
782
+ "stateMutability": "nonpayable",
783
+ "type": "function"
784
+ },
785
+ {
786
+ "inputs": [
787
+ {
788
+ "internalType": "address",
789
+ "name": "newImplementation",
790
+ "type": "address"
791
+ },
792
+ {
793
+ "internalType": "bytes",
794
+ "name": "data",
795
+ "type": "bytes"
796
+ }
797
+ ],
798
+ "name": "upgradeToAndCall",
799
+ "outputs": [],
800
+ "stateMutability": "payable",
801
+ "type": "function"
802
+ }
803
+ ]