@d20dao/vrf-sdk 0.3.4 → 0.5.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.
- package/AGENTS.md +29 -19
- package/API.md +574 -223
- package/BUILD-MANIFEST.json +40 -26
- package/CHANGELOG.md +97 -0
- package/PROTOCOL-PROVENANCE.json +17 -10
- package/README.md +174 -113
- package/THIRD_PARTY_NOTICES.md +3 -1
- package/abi/D20BeaconVerifier.json +165 -0
- package/abi/EpochEntropy.json +605 -26
- package/dist/abi.d.ts +593 -22
- package/dist/abi.js +2 -1
- package/dist/beacon.d.ts +28 -0
- package/dist/beacon.js +133 -0
- package/dist/epoch.d.ts +50 -78
- package/dist/epoch.js +184 -29
- package/dist/index.d.ts +8 -4
- package/dist/index.js +4 -2
- package/dist/sources.d.ts +11 -0
- package/dist/sources.js +74 -0
- package/dist/templates.d.ts +22 -0
- package/dist/templates.js +220 -0
- package/examples/DiceConsumer.sol +37 -29
- package/examples/LootDropConsumer.sol +60 -0
- package/examples/RaffleConsumer.sol +71 -0
- package/notices/BLS-BN254-LICENSE +21 -0
- package/notices/PROVENANCE.md +12 -0
- package/package.json +31 -4
- package/contracts/examples/MiningRandomnessConsumer.sol +0 -59
package/abi/EpochEntropy.json
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
"name": "AnchorUnavailable",
|
|
26
26
|
"type": "error"
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [],
|
|
30
|
+
"name": "BeaconGasTooLow",
|
|
31
|
+
"type": "error"
|
|
32
|
+
},
|
|
28
33
|
{
|
|
29
34
|
"inputs": [],
|
|
30
35
|
"name": "ECDSAInvalidSignature",
|
|
@@ -103,11 +108,21 @@
|
|
|
103
108
|
"name": "InvalidInitialization",
|
|
104
109
|
"type": "error"
|
|
105
110
|
},
|
|
111
|
+
{
|
|
112
|
+
"inputs": [],
|
|
113
|
+
"name": "InvalidRecipe",
|
|
114
|
+
"type": "error"
|
|
115
|
+
},
|
|
106
116
|
{
|
|
107
117
|
"inputs": [],
|
|
108
118
|
"name": "InvalidSigner",
|
|
109
119
|
"type": "error"
|
|
110
120
|
},
|
|
121
|
+
{
|
|
122
|
+
"inputs": [],
|
|
123
|
+
"name": "InvalidTemplate",
|
|
124
|
+
"type": "error"
|
|
125
|
+
},
|
|
111
126
|
{
|
|
112
127
|
"inputs": [],
|
|
113
128
|
"name": "InvalidTime",
|
|
@@ -160,6 +175,22 @@
|
|
|
160
175
|
"name": "RenounceDisabled",
|
|
161
176
|
"type": "error"
|
|
162
177
|
},
|
|
178
|
+
{
|
|
179
|
+
"inputs": [
|
|
180
|
+
{
|
|
181
|
+
"internalType": "uint256",
|
|
182
|
+
"name": "value",
|
|
183
|
+
"type": "uint256"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"internalType": "uint256",
|
|
187
|
+
"name": "length",
|
|
188
|
+
"type": "uint256"
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"name": "StringsInsufficientHexLength",
|
|
192
|
+
"type": "error"
|
|
193
|
+
},
|
|
163
194
|
{
|
|
164
195
|
"inputs": [],
|
|
165
196
|
"name": "UUPSUnauthorizedCallContext",
|
|
@@ -176,6 +207,68 @@
|
|
|
176
207
|
"name": "UUPSUnsupportedProxiableUUID",
|
|
177
208
|
"type": "error"
|
|
178
209
|
},
|
|
210
|
+
{
|
|
211
|
+
"anonymous": false,
|
|
212
|
+
"inputs": [
|
|
213
|
+
{
|
|
214
|
+
"indexed": true,
|
|
215
|
+
"internalType": "address",
|
|
216
|
+
"name": "account",
|
|
217
|
+
"type": "address"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"indexed": false,
|
|
221
|
+
"internalType": "bool",
|
|
222
|
+
"name": "allowed",
|
|
223
|
+
"type": "bool"
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"name": "BackupCommitterSet",
|
|
227
|
+
"type": "event"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"anonymous": false,
|
|
231
|
+
"inputs": [
|
|
232
|
+
{
|
|
233
|
+
"indexed": true,
|
|
234
|
+
"internalType": "uint8",
|
|
235
|
+
"name": "recipe",
|
|
236
|
+
"type": "uint8"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"indexed": true,
|
|
240
|
+
"internalType": "address",
|
|
241
|
+
"name": "verifier",
|
|
242
|
+
"type": "address"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"indexed": true,
|
|
246
|
+
"internalType": "bytes32",
|
|
247
|
+
"name": "chainHash",
|
|
248
|
+
"type": "bytes32"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"indexed": false,
|
|
252
|
+
"internalType": "bytes",
|
|
253
|
+
"name": "publicKey",
|
|
254
|
+
"type": "bytes"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"indexed": false,
|
|
258
|
+
"internalType": "uint64",
|
|
259
|
+
"name": "genesis",
|
|
260
|
+
"type": "uint64"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"indexed": false,
|
|
264
|
+
"internalType": "uint64",
|
|
265
|
+
"name": "period",
|
|
266
|
+
"type": "uint64"
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"name": "BeaconRegistered",
|
|
270
|
+
"type": "event"
|
|
271
|
+
},
|
|
179
272
|
{
|
|
180
273
|
"anonymous": false,
|
|
181
274
|
"inputs": [
|
|
@@ -193,9 +286,15 @@
|
|
|
193
286
|
},
|
|
194
287
|
{
|
|
195
288
|
"indexed": false,
|
|
196
|
-
"internalType": "
|
|
289
|
+
"internalType": "uint8[]",
|
|
290
|
+
"name": "recipes",
|
|
291
|
+
"type": "uint8[]"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"indexed": false,
|
|
295
|
+
"internalType": "address[]",
|
|
197
296
|
"name": "signers",
|
|
198
|
-
"type": "address[
|
|
297
|
+
"type": "address[]"
|
|
199
298
|
}
|
|
200
299
|
],
|
|
201
300
|
"name": "CatalogScheduled",
|
|
@@ -296,6 +395,43 @@
|
|
|
296
395
|
"name": "OwnershipTransferred",
|
|
297
396
|
"type": "event"
|
|
298
397
|
},
|
|
398
|
+
{
|
|
399
|
+
"anonymous": false,
|
|
400
|
+
"inputs": [
|
|
401
|
+
{
|
|
402
|
+
"indexed": true,
|
|
403
|
+
"internalType": "uint8",
|
|
404
|
+
"name": "recipe",
|
|
405
|
+
"type": "uint8"
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"indexed": true,
|
|
409
|
+
"internalType": "bytes32",
|
|
410
|
+
"name": "queryHash",
|
|
411
|
+
"type": "bytes32"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"indexed": false,
|
|
415
|
+
"internalType": "string",
|
|
416
|
+
"name": "canonicalRequest",
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"indexed": false,
|
|
421
|
+
"internalType": "bytes",
|
|
422
|
+
"name": "template",
|
|
423
|
+
"type": "bytes"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"indexed": false,
|
|
427
|
+
"internalType": "string",
|
|
428
|
+
"name": "body",
|
|
429
|
+
"type": "string"
|
|
430
|
+
}
|
|
431
|
+
],
|
|
432
|
+
"name": "RecipeRegistered",
|
|
433
|
+
"type": "event"
|
|
434
|
+
},
|
|
299
435
|
{
|
|
300
436
|
"anonymous": false,
|
|
301
437
|
"inputs": [
|
|
@@ -309,6 +445,32 @@
|
|
|
309
445
|
"name": "Upgraded",
|
|
310
446
|
"type": "event"
|
|
311
447
|
},
|
|
448
|
+
{
|
|
449
|
+
"inputs": [],
|
|
450
|
+
"name": "BEACON_DOMAIN",
|
|
451
|
+
"outputs": [
|
|
452
|
+
{
|
|
453
|
+
"internalType": "bytes32",
|
|
454
|
+
"name": "",
|
|
455
|
+
"type": "bytes32"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"stateMutability": "view",
|
|
459
|
+
"type": "function"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"inputs": [],
|
|
463
|
+
"name": "BEACON_VERIFY_GAS",
|
|
464
|
+
"outputs": [
|
|
465
|
+
{
|
|
466
|
+
"internalType": "uint256",
|
|
467
|
+
"name": "",
|
|
468
|
+
"type": "uint256"
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"stateMutability": "view",
|
|
472
|
+
"type": "function"
|
|
473
|
+
},
|
|
312
474
|
{
|
|
313
475
|
"inputs": [],
|
|
314
476
|
"name": "EPOCH_DOMAIN",
|
|
@@ -363,12 +525,38 @@
|
|
|
363
525
|
},
|
|
364
526
|
{
|
|
365
527
|
"inputs": [],
|
|
366
|
-
"name": "
|
|
528
|
+
"name": "MAX_BACKUP_COMMITTERS",
|
|
367
529
|
"outputs": [
|
|
368
530
|
{
|
|
369
|
-
"internalType": "
|
|
531
|
+
"internalType": "uint256",
|
|
370
532
|
"name": "",
|
|
371
|
-
"type": "
|
|
533
|
+
"type": "uint256"
|
|
534
|
+
}
|
|
535
|
+
],
|
|
536
|
+
"stateMutability": "view",
|
|
537
|
+
"type": "function"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"inputs": [],
|
|
541
|
+
"name": "MAX_BODY_BYTES",
|
|
542
|
+
"outputs": [
|
|
543
|
+
{
|
|
544
|
+
"internalType": "uint256",
|
|
545
|
+
"name": "",
|
|
546
|
+
"type": "uint256"
|
|
547
|
+
}
|
|
548
|
+
],
|
|
549
|
+
"stateMutability": "view",
|
|
550
|
+
"type": "function"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"inputs": [],
|
|
554
|
+
"name": "MAX_DATA_BYTES",
|
|
555
|
+
"outputs": [
|
|
556
|
+
{
|
|
557
|
+
"internalType": "uint256",
|
|
558
|
+
"name": "",
|
|
559
|
+
"type": "uint256"
|
|
372
560
|
}
|
|
373
561
|
],
|
|
374
562
|
"stateMutability": "view",
|
|
@@ -387,6 +575,58 @@
|
|
|
387
575
|
"stateMutability": "view",
|
|
388
576
|
"type": "function"
|
|
389
577
|
},
|
|
578
|
+
{
|
|
579
|
+
"inputs": [],
|
|
580
|
+
"name": "MAX_RECIPES",
|
|
581
|
+
"outputs": [
|
|
582
|
+
{
|
|
583
|
+
"internalType": "uint256",
|
|
584
|
+
"name": "",
|
|
585
|
+
"type": "uint256"
|
|
586
|
+
}
|
|
587
|
+
],
|
|
588
|
+
"stateMutability": "view",
|
|
589
|
+
"type": "function"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"inputs": [],
|
|
593
|
+
"name": "MAX_REQUEST_BYTES",
|
|
594
|
+
"outputs": [
|
|
595
|
+
{
|
|
596
|
+
"internalType": "uint256",
|
|
597
|
+
"name": "",
|
|
598
|
+
"type": "uint256"
|
|
599
|
+
}
|
|
600
|
+
],
|
|
601
|
+
"stateMutability": "view",
|
|
602
|
+
"type": "function"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"inputs": [],
|
|
606
|
+
"name": "MAX_SOURCES",
|
|
607
|
+
"outputs": [
|
|
608
|
+
{
|
|
609
|
+
"internalType": "uint256",
|
|
610
|
+
"name": "",
|
|
611
|
+
"type": "uint256"
|
|
612
|
+
}
|
|
613
|
+
],
|
|
614
|
+
"stateMutability": "view",
|
|
615
|
+
"type": "function"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"inputs": [],
|
|
619
|
+
"name": "MAX_TEMPLATE_BYTES",
|
|
620
|
+
"outputs": [
|
|
621
|
+
{
|
|
622
|
+
"internalType": "uint256",
|
|
623
|
+
"name": "",
|
|
624
|
+
"type": "uint256"
|
|
625
|
+
}
|
|
626
|
+
],
|
|
627
|
+
"stateMutability": "view",
|
|
628
|
+
"type": "function"
|
|
629
|
+
},
|
|
390
630
|
{
|
|
391
631
|
"inputs": [],
|
|
392
632
|
"name": "RECIPE_DOMAIN",
|
|
@@ -435,12 +675,58 @@
|
|
|
435
675
|
},
|
|
436
676
|
{
|
|
437
677
|
"inputs": [],
|
|
438
|
-
"name": "
|
|
678
|
+
"name": "backupCommitterCount",
|
|
439
679
|
"outputs": [
|
|
440
680
|
{
|
|
441
|
-
"internalType": "
|
|
681
|
+
"internalType": "uint256",
|
|
442
682
|
"name": "",
|
|
443
|
-
"type": "
|
|
683
|
+
"type": "uint256"
|
|
684
|
+
}
|
|
685
|
+
],
|
|
686
|
+
"stateMutability": "view",
|
|
687
|
+
"type": "function"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"inputs": [
|
|
691
|
+
{
|
|
692
|
+
"internalType": "uint8",
|
|
693
|
+
"name": "recipe",
|
|
694
|
+
"type": "uint8"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"name": "beaconOf",
|
|
698
|
+
"outputs": [
|
|
699
|
+
{
|
|
700
|
+
"components": [
|
|
701
|
+
{
|
|
702
|
+
"internalType": "address",
|
|
703
|
+
"name": "verifier",
|
|
704
|
+
"type": "address"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"internalType": "uint64",
|
|
708
|
+
"name": "genesis",
|
|
709
|
+
"type": "uint64"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"internalType": "uint64",
|
|
713
|
+
"name": "period",
|
|
714
|
+
"type": "uint64"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"internalType": "bytes32",
|
|
718
|
+
"name": "chainHash",
|
|
719
|
+
"type": "bytes32"
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
"internalType": "bytes",
|
|
723
|
+
"name": "publicKey",
|
|
724
|
+
"type": "bytes"
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"internalType": "struct EpochEntropy.Beacon",
|
|
728
|
+
"name": "",
|
|
729
|
+
"type": "tuple"
|
|
444
730
|
}
|
|
445
731
|
],
|
|
446
732
|
"stateMutability": "view",
|
|
@@ -460,31 +746,41 @@
|
|
|
460
746
|
"type": "function"
|
|
461
747
|
},
|
|
462
748
|
{
|
|
463
|
-
"inputs": [
|
|
464
|
-
|
|
749
|
+
"inputs": [
|
|
750
|
+
{
|
|
751
|
+
"internalType": "uint64",
|
|
752
|
+
"name": "epochId",
|
|
753
|
+
"type": "uint64"
|
|
754
|
+
}
|
|
755
|
+
],
|
|
756
|
+
"name": "catalogAt",
|
|
465
757
|
"outputs": [
|
|
466
758
|
{
|
|
467
759
|
"internalType": "bytes32",
|
|
468
|
-
"name": "",
|
|
760
|
+
"name": "hash",
|
|
469
761
|
"type": "bytes32"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"internalType": "uint8[]",
|
|
765
|
+
"name": "recipes",
|
|
766
|
+
"type": "uint8[]"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"internalType": "address[]",
|
|
770
|
+
"name": "signers",
|
|
771
|
+
"type": "address[]"
|
|
470
772
|
}
|
|
471
773
|
],
|
|
472
774
|
"stateMutability": "view",
|
|
473
775
|
"type": "function"
|
|
474
776
|
},
|
|
475
777
|
{
|
|
476
|
-
"inputs": [
|
|
477
|
-
|
|
478
|
-
"internalType": "uint64",
|
|
479
|
-
"name": "epochId",
|
|
480
|
-
"type": "uint64"
|
|
481
|
-
}
|
|
482
|
-
],
|
|
483
|
-
"name": "catalogHashAt",
|
|
778
|
+
"inputs": [],
|
|
779
|
+
"name": "catalogHash",
|
|
484
780
|
"outputs": [
|
|
485
781
|
{
|
|
486
782
|
"internalType": "bytes32",
|
|
487
|
-
"name": "
|
|
783
|
+
"name": "",
|
|
488
784
|
"type": "bytes32"
|
|
489
785
|
}
|
|
490
786
|
],
|
|
@@ -668,6 +964,19 @@
|
|
|
668
964
|
"stateMutability": "view",
|
|
669
965
|
"type": "function"
|
|
670
966
|
},
|
|
967
|
+
{
|
|
968
|
+
"inputs": [],
|
|
969
|
+
"name": "ethereumBlockSigner",
|
|
970
|
+
"outputs": [
|
|
971
|
+
{
|
|
972
|
+
"internalType": "address",
|
|
973
|
+
"name": "",
|
|
974
|
+
"type": "address"
|
|
975
|
+
}
|
|
976
|
+
],
|
|
977
|
+
"stateMutability": "view",
|
|
978
|
+
"type": "function"
|
|
979
|
+
},
|
|
671
980
|
{
|
|
672
981
|
"inputs": [
|
|
673
982
|
{
|
|
@@ -793,6 +1102,11 @@
|
|
|
793
1102
|
"name": "source",
|
|
794
1103
|
"type": "uint8"
|
|
795
1104
|
},
|
|
1105
|
+
{
|
|
1106
|
+
"internalType": "uint8",
|
|
1107
|
+
"name": "recipe",
|
|
1108
|
+
"type": "uint8"
|
|
1109
|
+
},
|
|
796
1110
|
{
|
|
797
1111
|
"internalType": "address",
|
|
798
1112
|
"name": "airnode",
|
|
@@ -839,6 +1153,11 @@
|
|
|
839
1153
|
"name": "source",
|
|
840
1154
|
"type": "uint8"
|
|
841
1155
|
},
|
|
1156
|
+
{
|
|
1157
|
+
"internalType": "uint8",
|
|
1158
|
+
"name": "recipe",
|
|
1159
|
+
"type": "uint8"
|
|
1160
|
+
},
|
|
842
1161
|
{
|
|
843
1162
|
"internalType": "address",
|
|
844
1163
|
"name": "airnode",
|
|
@@ -868,6 +1187,40 @@
|
|
|
868
1187
|
"stateMutability": "view",
|
|
869
1188
|
"type": "function"
|
|
870
1189
|
},
|
|
1190
|
+
{
|
|
1191
|
+
"inputs": [
|
|
1192
|
+
{
|
|
1193
|
+
"internalType": "uint8",
|
|
1194
|
+
"name": "recipe",
|
|
1195
|
+
"type": "uint8"
|
|
1196
|
+
}
|
|
1197
|
+
],
|
|
1198
|
+
"name": "getRecipe",
|
|
1199
|
+
"outputs": [
|
|
1200
|
+
{
|
|
1201
|
+
"internalType": "bytes32",
|
|
1202
|
+
"name": "queryHash",
|
|
1203
|
+
"type": "bytes32"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"internalType": "string",
|
|
1207
|
+
"name": "canonicalRequest",
|
|
1208
|
+
"type": "string"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"internalType": "bytes",
|
|
1212
|
+
"name": "template",
|
|
1213
|
+
"type": "bytes"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"internalType": "string",
|
|
1217
|
+
"name": "body",
|
|
1218
|
+
"type": "string"
|
|
1219
|
+
}
|
|
1220
|
+
],
|
|
1221
|
+
"stateMutability": "view",
|
|
1222
|
+
"type": "function"
|
|
1223
|
+
},
|
|
871
1224
|
{
|
|
872
1225
|
"inputs": [],
|
|
873
1226
|
"name": "hyperliquidSigner",
|
|
@@ -904,6 +1257,51 @@
|
|
|
904
1257
|
"stateMutability": "nonpayable",
|
|
905
1258
|
"type": "function"
|
|
906
1259
|
},
|
|
1260
|
+
{
|
|
1261
|
+
"inputs": [],
|
|
1262
|
+
"name": "initializeRecipeRegistry",
|
|
1263
|
+
"outputs": [],
|
|
1264
|
+
"stateMutability": "nonpayable",
|
|
1265
|
+
"type": "function"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"inputs": [
|
|
1269
|
+
{
|
|
1270
|
+
"internalType": "address",
|
|
1271
|
+
"name": "account",
|
|
1272
|
+
"type": "address"
|
|
1273
|
+
}
|
|
1274
|
+
],
|
|
1275
|
+
"name": "isAuthorizedCommitter",
|
|
1276
|
+
"outputs": [
|
|
1277
|
+
{
|
|
1278
|
+
"internalType": "bool",
|
|
1279
|
+
"name": "",
|
|
1280
|
+
"type": "bool"
|
|
1281
|
+
}
|
|
1282
|
+
],
|
|
1283
|
+
"stateMutability": "view",
|
|
1284
|
+
"type": "function"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"inputs": [
|
|
1288
|
+
{
|
|
1289
|
+
"internalType": "address",
|
|
1290
|
+
"name": "account",
|
|
1291
|
+
"type": "address"
|
|
1292
|
+
}
|
|
1293
|
+
],
|
|
1294
|
+
"name": "isBackupCommitter",
|
|
1295
|
+
"outputs": [
|
|
1296
|
+
{
|
|
1297
|
+
"internalType": "bool",
|
|
1298
|
+
"name": "",
|
|
1299
|
+
"type": "bool"
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
"stateMutability": "view",
|
|
1303
|
+
"type": "function"
|
|
1304
|
+
},
|
|
907
1305
|
{
|
|
908
1306
|
"inputs": [
|
|
909
1307
|
{
|
|
@@ -962,6 +1360,116 @@
|
|
|
962
1360
|
"stateMutability": "view",
|
|
963
1361
|
"type": "function"
|
|
964
1362
|
},
|
|
1363
|
+
{
|
|
1364
|
+
"inputs": [],
|
|
1365
|
+
"name": "recipeCount",
|
|
1366
|
+
"outputs": [
|
|
1367
|
+
{
|
|
1368
|
+
"internalType": "uint256",
|
|
1369
|
+
"name": "",
|
|
1370
|
+
"type": "uint256"
|
|
1371
|
+
}
|
|
1372
|
+
],
|
|
1373
|
+
"stateMutability": "view",
|
|
1374
|
+
"type": "function"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"inputs": [
|
|
1378
|
+
{
|
|
1379
|
+
"internalType": "uint8",
|
|
1380
|
+
"name": "recipe",
|
|
1381
|
+
"type": "uint8"
|
|
1382
|
+
}
|
|
1383
|
+
],
|
|
1384
|
+
"name": "recipeRequest",
|
|
1385
|
+
"outputs": [
|
|
1386
|
+
{
|
|
1387
|
+
"internalType": "string",
|
|
1388
|
+
"name": "",
|
|
1389
|
+
"type": "string"
|
|
1390
|
+
}
|
|
1391
|
+
],
|
|
1392
|
+
"stateMutability": "view",
|
|
1393
|
+
"type": "function"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"inputs": [
|
|
1397
|
+
{
|
|
1398
|
+
"internalType": "address",
|
|
1399
|
+
"name": "verifier",
|
|
1400
|
+
"type": "address"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"internalType": "bytes32",
|
|
1404
|
+
"name": "chainHash",
|
|
1405
|
+
"type": "bytes32"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"internalType": "bytes",
|
|
1409
|
+
"name": "publicKey",
|
|
1410
|
+
"type": "bytes"
|
|
1411
|
+
},
|
|
1412
|
+
{
|
|
1413
|
+
"internalType": "uint64",
|
|
1414
|
+
"name": "genesis",
|
|
1415
|
+
"type": "uint64"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"internalType": "uint64",
|
|
1419
|
+
"name": "period",
|
|
1420
|
+
"type": "uint64"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"internalType": "uint64",
|
|
1424
|
+
"name": "sampleRound",
|
|
1425
|
+
"type": "uint64"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"internalType": "bytes",
|
|
1429
|
+
"name": "sampleSignature",
|
|
1430
|
+
"type": "bytes"
|
|
1431
|
+
}
|
|
1432
|
+
],
|
|
1433
|
+
"name": "registerBeacon",
|
|
1434
|
+
"outputs": [
|
|
1435
|
+
{
|
|
1436
|
+
"internalType": "uint8",
|
|
1437
|
+
"name": "recipe",
|
|
1438
|
+
"type": "uint8"
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
"stateMutability": "nonpayable",
|
|
1442
|
+
"type": "function"
|
|
1443
|
+
},
|
|
1444
|
+
{
|
|
1445
|
+
"inputs": [
|
|
1446
|
+
{
|
|
1447
|
+
"internalType": "string",
|
|
1448
|
+
"name": "canonicalRequest",
|
|
1449
|
+
"type": "string"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"internalType": "bytes",
|
|
1453
|
+
"name": "template",
|
|
1454
|
+
"type": "bytes"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"internalType": "string",
|
|
1458
|
+
"name": "body",
|
|
1459
|
+
"type": "string"
|
|
1460
|
+
}
|
|
1461
|
+
],
|
|
1462
|
+
"name": "registerRecipe",
|
|
1463
|
+
"outputs": [
|
|
1464
|
+
{
|
|
1465
|
+
"internalType": "uint8",
|
|
1466
|
+
"name": "recipe",
|
|
1467
|
+
"type": "uint8"
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
"stateMutability": "nonpayable",
|
|
1471
|
+
"type": "function"
|
|
1472
|
+
},
|
|
965
1473
|
{
|
|
966
1474
|
"inputs": [],
|
|
967
1475
|
"name": "renounceOwnership",
|
|
@@ -972,9 +1480,14 @@
|
|
|
972
1480
|
{
|
|
973
1481
|
"inputs": [
|
|
974
1482
|
{
|
|
975
|
-
"internalType": "
|
|
1483
|
+
"internalType": "uint8[]",
|
|
1484
|
+
"name": "recipes",
|
|
1485
|
+
"type": "uint8[]"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"internalType": "address[]",
|
|
976
1489
|
"name": "signers",
|
|
977
|
-
"type": "address[
|
|
1490
|
+
"type": "address[]"
|
|
978
1491
|
},
|
|
979
1492
|
{
|
|
980
1493
|
"internalType": "uint64",
|
|
@@ -987,6 +1500,24 @@
|
|
|
987
1500
|
"stateMutability": "nonpayable",
|
|
988
1501
|
"type": "function"
|
|
989
1502
|
},
|
|
1503
|
+
{
|
|
1504
|
+
"inputs": [
|
|
1505
|
+
{
|
|
1506
|
+
"internalType": "address",
|
|
1507
|
+
"name": "account",
|
|
1508
|
+
"type": "address"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"internalType": "bool",
|
|
1512
|
+
"name": "allowed",
|
|
1513
|
+
"type": "bool"
|
|
1514
|
+
}
|
|
1515
|
+
],
|
|
1516
|
+
"name": "setBackupCommitter",
|
|
1517
|
+
"outputs": [],
|
|
1518
|
+
"stateMutability": "nonpayable",
|
|
1519
|
+
"type": "function"
|
|
1520
|
+
},
|
|
990
1521
|
{
|
|
991
1522
|
"inputs": [
|
|
992
1523
|
{
|
|
@@ -1000,6 +1531,25 @@
|
|
|
1000
1531
|
"stateMutability": "nonpayable",
|
|
1001
1532
|
"type": "function"
|
|
1002
1533
|
},
|
|
1534
|
+
{
|
|
1535
|
+
"inputs": [
|
|
1536
|
+
{
|
|
1537
|
+
"internalType": "uint8",
|
|
1538
|
+
"name": "recipe",
|
|
1539
|
+
"type": "uint8"
|
|
1540
|
+
}
|
|
1541
|
+
],
|
|
1542
|
+
"name": "slotSigner",
|
|
1543
|
+
"outputs": [
|
|
1544
|
+
{
|
|
1545
|
+
"internalType": "address",
|
|
1546
|
+
"name": "",
|
|
1547
|
+
"type": "address"
|
|
1548
|
+
}
|
|
1549
|
+
],
|
|
1550
|
+
"stateMutability": "view",
|
|
1551
|
+
"type": "function"
|
|
1552
|
+
},
|
|
1003
1553
|
{
|
|
1004
1554
|
"inputs": [
|
|
1005
1555
|
{
|
|
@@ -1008,12 +1558,12 @@
|
|
|
1008
1558
|
"type": "uint64"
|
|
1009
1559
|
}
|
|
1010
1560
|
],
|
|
1011
|
-
"name": "
|
|
1561
|
+
"name": "sourceCountAt",
|
|
1012
1562
|
"outputs": [
|
|
1013
1563
|
{
|
|
1014
|
-
"internalType": "
|
|
1015
|
-
"name": "
|
|
1016
|
-
"type": "
|
|
1564
|
+
"internalType": "uint256",
|
|
1565
|
+
"name": "",
|
|
1566
|
+
"type": "uint256"
|
|
1017
1567
|
}
|
|
1018
1568
|
],
|
|
1019
1569
|
"stateMutability": "view",
|
|
@@ -1049,5 +1599,34 @@
|
|
|
1049
1599
|
"outputs": [],
|
|
1050
1600
|
"stateMutability": "payable",
|
|
1051
1601
|
"type": "function"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"inputs": [
|
|
1605
|
+
{
|
|
1606
|
+
"internalType": "uint8",
|
|
1607
|
+
"name": "recipe",
|
|
1608
|
+
"type": "uint8"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"internalType": "uint64",
|
|
1612
|
+
"name": "round",
|
|
1613
|
+
"type": "uint64"
|
|
1614
|
+
},
|
|
1615
|
+
{
|
|
1616
|
+
"internalType": "bytes",
|
|
1617
|
+
"name": "signature",
|
|
1618
|
+
"type": "bytes"
|
|
1619
|
+
}
|
|
1620
|
+
],
|
|
1621
|
+
"name": "verifyBeacon",
|
|
1622
|
+
"outputs": [
|
|
1623
|
+
{
|
|
1624
|
+
"internalType": "bool",
|
|
1625
|
+
"name": "",
|
|
1626
|
+
"type": "bool"
|
|
1627
|
+
}
|
|
1628
|
+
],
|
|
1629
|
+
"stateMutability": "view",
|
|
1630
|
+
"type": "function"
|
|
1052
1631
|
}
|
|
1053
1632
|
]
|