@wireio/outpost-ethereum-artifacts 0.2.2 → 0.4.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.
Files changed (59) hide show
  1. package/README.md +1 -1
  2. package/abis/BAR.json +244 -182
  3. package/abis/OPP.json +127 -16
  4. package/abis/OPPInbound.json +343 -59
  5. package/lib/cjs/Manifest.d.ts +0 -34
  6. package/lib/cjs/Manifest.js +29 -181
  7. package/lib/cjs/contracts/BAR.d.ts +1 -9
  8. package/lib/cjs/contracts/OPPInbound.d.ts +139 -43
  9. package/lib/cjs/contracts/factories/BAR__factory.d.ts +188 -146
  10. package/lib/cjs/contracts/factories/BAR__factory.js +243 -181
  11. package/lib/cjs/contracts/factories/OPPInbound__factory.d.ts +264 -48
  12. package/lib/cjs/contracts/factories/OPPInbound__factory.js +343 -59
  13. package/lib/cjs/contracts/factories/OPP__factory.d.ts +96 -12
  14. package/lib/cjs/contracts/factories/OPP__factory.js +127 -16
  15. package/lib/cjs/contracts/factories/index.d.ts +0 -2
  16. package/lib/cjs/contracts/factories/index.js +1 -5
  17. package/lib/cjs/contracts/index.d.ts +0 -4
  18. package/lib/cjs/contracts/index.js +1 -5
  19. package/lib/cjs/index.d.ts +0 -1
  20. package/lib/esm/Manifest.d.ts +0 -34
  21. package/lib/esm/Manifest.js +29 -181
  22. package/lib/esm/contracts/BAR.d.ts +1 -9
  23. package/lib/esm/contracts/OPPInbound.d.ts +139 -43
  24. package/lib/esm/contracts/factories/BAR__factory.d.ts +188 -146
  25. package/lib/esm/contracts/factories/BAR__factory.js +243 -181
  26. package/lib/esm/contracts/factories/OPPInbound__factory.d.ts +264 -48
  27. package/lib/esm/contracts/factories/OPPInbound__factory.js +343 -59
  28. package/lib/esm/contracts/factories/OPP__factory.d.ts +96 -12
  29. package/lib/esm/contracts/factories/OPP__factory.js +127 -16
  30. package/lib/esm/contracts/factories/index.d.ts +0 -2
  31. package/lib/esm/contracts/factories/index.js +0 -2
  32. package/lib/esm/contracts/index.d.ts +0 -4
  33. package/lib/esm/contracts/index.js +0 -2
  34. package/lib/esm/index.d.ts +0 -1
  35. package/manifest.json +29 -181
  36. package/package.json +1 -1
  37. package/runtime/BAR.bin +0 -0
  38. package/runtime/OPP.bin +0 -0
  39. package/runtime/OPPInbound.bin +0 -0
  40. package/abis/OperatorRegistry.json +0 -1978
  41. package/abis/ReserveManager.json +0 -2770
  42. package/lib/cjs/contracts/OperatorRegistry.d.ts +0 -592
  43. package/lib/cjs/contracts/OperatorRegistry.js +0 -2
  44. package/lib/cjs/contracts/ReserveManager.d.ts +0 -1138
  45. package/lib/cjs/contracts/ReserveManager.js +0 -2
  46. package/lib/cjs/contracts/factories/OperatorRegistry__factory.d.ts +0 -1517
  47. package/lib/cjs/contracts/factories/OperatorRegistry__factory.js +0 -1991
  48. package/lib/cjs/contracts/factories/ReserveManager__factory.d.ts +0 -2146
  49. package/lib/cjs/contracts/factories/ReserveManager__factory.js +0 -2783
  50. package/lib/esm/contracts/OperatorRegistry.d.ts +0 -592
  51. package/lib/esm/contracts/OperatorRegistry.js +0 -1
  52. package/lib/esm/contracts/ReserveManager.d.ts +0 -1138
  53. package/lib/esm/contracts/ReserveManager.js +0 -1
  54. package/lib/esm/contracts/factories/OperatorRegistry__factory.d.ts +0 -1517
  55. package/lib/esm/contracts/factories/OperatorRegistry__factory.js +0 -1987
  56. package/lib/esm/contracts/factories/ReserveManager__factory.d.ts +0 -2146
  57. package/lib/esm/contracts/factories/ReserveManager__factory.js +0 -2779
  58. package/runtime/OperatorRegistry.bin +0 -0
  59. package/runtime/ReserveManager.bin +0 -0
@@ -104,6 +104,22 @@
104
104
  "name": "NotInitializing",
105
105
  "type": "error"
106
106
  },
107
+ {
108
+ "inputs": [
109
+ {
110
+ "internalType": "uint32",
111
+ "name": "nextEpochIndex",
112
+ "type": "uint32"
113
+ },
114
+ {
115
+ "internalType": "uint32",
116
+ "name": "deliveries",
117
+ "type": "uint32"
118
+ }
119
+ ],
120
+ "name": "OPP_BootstrapWindowClosed",
121
+ "type": "error"
122
+ },
107
123
  {
108
124
  "inputs": [
109
125
  {
@@ -254,22 +270,6 @@
254
270
  "name": "OPP_InboundEnvelopeStillInRetention",
255
271
  "type": "error"
256
272
  },
257
- {
258
- "inputs": [
259
- {
260
- "internalType": "uint256",
261
- "name": "required",
262
- "type": "uint256"
263
- },
264
- {
265
- "internalType": "uint256",
266
- "name": "provided",
267
- "type": "uint256"
268
- }
269
- ],
270
- "name": "OPP_InsufficientSignatureWeight",
271
- "type": "error"
272
- },
273
273
  {
274
274
  "inputs": [
275
275
  {
@@ -286,6 +286,17 @@
286
286
  "name": "OPP_InvalidChunkCount",
287
287
  "type": "error"
288
288
  },
289
+ {
290
+ "inputs": [
291
+ {
292
+ "internalType": "string",
293
+ "name": "reason",
294
+ "type": "string"
295
+ }
296
+ ],
297
+ "name": "OPP_InvalidInitialRoster",
298
+ "type": "error"
299
+ },
289
300
  {
290
301
  "inputs": [
291
302
  {
@@ -307,6 +318,27 @@
307
318
  "name": "OPP_InvalidRetentionConfig",
308
319
  "type": "error"
309
320
  },
321
+ {
322
+ "inputs": [
323
+ {
324
+ "internalType": "uint256",
325
+ "name": "index",
326
+ "type": "uint256"
327
+ },
328
+ {
329
+ "internalType": "bytes32",
330
+ "name": "expected",
331
+ "type": "bytes32"
332
+ },
333
+ {
334
+ "internalType": "bytes32",
335
+ "name": "actual",
336
+ "type": "bytes32"
337
+ }
338
+ ],
339
+ "name": "OPP_MessageChainMismatch",
340
+ "type": "error"
341
+ },
310
342
  {
311
343
  "inputs": [
312
344
  {
@@ -344,6 +376,22 @@
344
376
  "name": "OPP_NoPendingAttestations",
345
377
  "type": "error"
346
378
  },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "uint256",
383
+ "name": "index",
384
+ "type": "uint256"
385
+ },
386
+ {
387
+ "internalType": "bytes",
388
+ "name": "messageId",
389
+ "type": "bytes"
390
+ }
391
+ ],
392
+ "name": "OPP_NonCanonicalMessageId",
393
+ "type": "error"
394
+ },
347
395
  {
348
396
  "inputs": [
349
397
  {
@@ -355,6 +403,22 @@
355
403
  "name": "OPP_NonCanonicalPreviousEpochHash",
356
404
  "type": "error"
357
405
  },
406
+ {
407
+ "inputs": [
408
+ {
409
+ "internalType": "uint256",
410
+ "name": "index",
411
+ "type": "uint256"
412
+ },
413
+ {
414
+ "internalType": "bytes",
415
+ "name": "previousMessageId",
416
+ "type": "bytes"
417
+ }
418
+ ],
419
+ "name": "OPP_NonCanonicalPreviousMessageId",
420
+ "type": "error"
421
+ },
358
422
  {
359
423
  "inputs": [
360
424
  {
@@ -371,6 +435,27 @@
371
435
  "name": "OPP_NonSequentialEpoch",
372
436
  "type": "error"
373
437
  },
438
+ {
439
+ "inputs": [
440
+ {
441
+ "internalType": "uint256",
442
+ "name": "index",
443
+ "type": "uint256"
444
+ },
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "expected",
448
+ "type": "uint256"
449
+ },
450
+ {
451
+ "internalType": "uint256",
452
+ "name": "actual",
453
+ "type": "uint256"
454
+ }
455
+ ],
456
+ "name": "OPP_NonSequentialMessage",
457
+ "type": "error"
458
+ },
374
459
  {
375
460
  "inputs": [
376
461
  {
@@ -483,6 +568,32 @@
483
568
  "name": "OPP_UnauthorizedAttestationType",
484
569
  "type": "error"
485
570
  },
571
+ {
572
+ "inputs": [
573
+ {
574
+ "internalType": "uint32",
575
+ "name": "epochIndex",
576
+ "type": "uint32"
577
+ },
578
+ {
579
+ "internalType": "uint32",
580
+ "name": "rosterEpochIndex",
581
+ "type": "uint32"
582
+ },
583
+ {
584
+ "internalType": "uint32",
585
+ "name": "activeGroupIndex",
586
+ "type": "uint32"
587
+ },
588
+ {
589
+ "internalType": "uint32",
590
+ "name": "groupCount",
591
+ "type": "uint32"
592
+ }
593
+ ],
594
+ "name": "OPP_UnmappedEpochGroup",
595
+ "type": "error"
596
+ },
486
597
  {
487
598
  "inputs": [
488
599
  {
@@ -649,6 +760,31 @@
649
760
  "name": "AuthorityUpdated",
650
761
  "type": "event"
651
762
  },
763
+ {
764
+ "anonymous": false,
765
+ "inputs": [
766
+ {
767
+ "indexed": false,
768
+ "internalType": "uint32",
769
+ "name": "epochIndex",
770
+ "type": "uint32"
771
+ },
772
+ {
773
+ "indexed": false,
774
+ "internalType": "uint32",
775
+ "name": "attestedEpochIndex",
776
+ "type": "uint32"
777
+ },
778
+ {
779
+ "indexed": false,
780
+ "internalType": "enum OPPInboundLib.GroupsRejection",
781
+ "name": "rejection",
782
+ "type": "uint8"
783
+ }
784
+ ],
785
+ "name": "BatchOperatorGroupsRejected",
786
+ "type": "event"
787
+ },
652
788
  {
653
789
  "anonymous": false,
654
790
  "inputs": [
@@ -824,12 +960,18 @@
824
960
  "inputs": [
825
961
  {
826
962
  "indexed": false,
827
- "internalType": "uint64",
828
- "name": "version",
829
- "type": "uint64"
963
+ "internalType": "uint32",
964
+ "name": "groupCount",
965
+ "type": "uint32"
966
+ },
967
+ {
968
+ "indexed": false,
969
+ "internalType": "uint32",
970
+ "name": "operatorCount",
971
+ "type": "uint32"
830
972
  }
831
973
  ],
832
- "name": "Initialized",
974
+ "name": "InitialRosterInstalled",
833
975
  "type": "event"
834
976
  },
835
977
  {
@@ -837,18 +979,12 @@
837
979
  "inputs": [
838
980
  {
839
981
  "indexed": false,
840
- "internalType": "address",
841
- "name": "newReserveManager",
842
- "type": "address"
843
- },
844
- {
845
- "indexed": false,
846
- "internalType": "address",
847
- "name": "oldReserveManager",
848
- "type": "address"
982
+ "internalType": "uint64",
983
+ "name": "version",
984
+ "type": "uint64"
849
985
  }
850
986
  ],
851
- "name": "ReserveManagerAddressSet",
987
+ "name": "Initialized",
852
988
  "type": "event"
853
989
  },
854
990
  {
@@ -866,12 +1002,12 @@
866
1002
  },
867
1003
  {
868
1004
  "inputs": [],
869
- "name": "MAX_CHUNKS",
1005
+ "name": "FIRST_INBOUND_EPOCH_INDEX",
870
1006
  "outputs": [
871
1007
  {
872
- "internalType": "uint16",
1008
+ "internalType": "uint32",
873
1009
  "name": "",
874
- "type": "uint16"
1010
+ "type": "uint32"
875
1011
  }
876
1012
  ],
877
1013
  "stateMutability": "view",
@@ -879,12 +1015,12 @@
879
1015
  },
880
1016
  {
881
1017
  "inputs": [],
882
- "name": "MAX_CHUNK_BYTES",
1018
+ "name": "MAX_CHUNKS",
883
1019
  "outputs": [
884
1020
  {
885
- "internalType": "uint32",
1021
+ "internalType": "uint16",
886
1022
  "name": "",
887
- "type": "uint32"
1023
+ "type": "uint16"
888
1024
  }
889
1025
  ],
890
1026
  "stateMutability": "view",
@@ -892,12 +1028,12 @@
892
1028
  },
893
1029
  {
894
1030
  "inputs": [],
895
- "name": "MAX_CHUNK_SLOTS",
1031
+ "name": "MAX_CHUNK_BYTES",
896
1032
  "outputs": [
897
1033
  {
898
- "internalType": "uint16",
1034
+ "internalType": "uint32",
899
1035
  "name": "",
900
- "type": "uint16"
1036
+ "type": "uint32"
901
1037
  }
902
1038
  ],
903
1039
  "stateMutability": "view",
@@ -905,12 +1041,12 @@
905
1041
  },
906
1042
  {
907
1043
  "inputs": [],
908
- "name": "MAX_ENVELOPE_BYTES",
1044
+ "name": "MAX_CHUNK_SLOTS",
909
1045
  "outputs": [
910
1046
  {
911
- "internalType": "uint256",
1047
+ "internalType": "uint16",
912
1048
  "name": "",
913
- "type": "uint256"
1049
+ "type": "uint16"
914
1050
  }
915
1051
  ],
916
1052
  "stateMutability": "view",
@@ -918,7 +1054,7 @@
918
1054
  },
919
1055
  {
920
1056
  "inputs": [],
921
- "name": "MIN_SIG_WEIGHT",
1057
+ "name": "MAX_ENVELOPE_BYTES",
922
1058
  "outputs": [
923
1059
  {
924
1060
  "internalType": "uint256",
@@ -1013,6 +1149,30 @@
1013
1149
  "stateMutability": "view",
1014
1150
  "type": "function"
1015
1151
  },
1152
+ {
1153
+ "inputs": [
1154
+ {
1155
+ "internalType": "uint32",
1156
+ "name": "epochIndex_",
1157
+ "type": "uint32"
1158
+ }
1159
+ ],
1160
+ "name": "authorizedGroupIndexFor",
1161
+ "outputs": [
1162
+ {
1163
+ "internalType": "uint32",
1164
+ "name": "groupIndex",
1165
+ "type": "uint32"
1166
+ },
1167
+ {
1168
+ "internalType": "bool",
1169
+ "name": "ok",
1170
+ "type": "bool"
1171
+ }
1172
+ ],
1173
+ "stateMutability": "view",
1174
+ "type": "function"
1175
+ },
1016
1176
  {
1017
1177
  "inputs": [
1018
1178
  {
@@ -1342,6 +1502,19 @@
1342
1502
  "stateMutability": "view",
1343
1503
  "type": "function"
1344
1504
  },
1505
+ {
1506
+ "inputs": [],
1507
+ "name": "inboundMessageTip",
1508
+ "outputs": [
1509
+ {
1510
+ "internalType": "bytes32",
1511
+ "name": "",
1512
+ "type": "bytes32"
1513
+ }
1514
+ ],
1515
+ "stateMutability": "view",
1516
+ "type": "function"
1517
+ },
1345
1518
  {
1346
1519
  "inputs": [],
1347
1520
  "name": "inboundRetentionConfig",
@@ -1361,6 +1534,52 @@
1361
1534
  "internalType": "address",
1362
1535
  "name": "oppManager",
1363
1536
  "type": "address"
1537
+ },
1538
+ {
1539
+ "components": [
1540
+ {
1541
+ "internalType": "uint32",
1542
+ "name": "activeGroupIndex",
1543
+ "type": "uint32"
1544
+ },
1545
+ {
1546
+ "internalType": "uint32",
1547
+ "name": "epochIndex",
1548
+ "type": "uint32"
1549
+ },
1550
+ {
1551
+ "components": [
1552
+ {
1553
+ "components": [
1554
+ {
1555
+ "internalType": "ChainKind",
1556
+ "name": "kind",
1557
+ "type": "uint8"
1558
+ },
1559
+ {
1560
+ "internalType": "bytes",
1561
+ "name": "address_",
1562
+ "type": "bytes"
1563
+ }
1564
+ ],
1565
+ "internalType": "struct ChainAddress[]",
1566
+ "name": "operators",
1567
+ "type": "tuple[]"
1568
+ }
1569
+ ],
1570
+ "internalType": "struct BatchOperatorGroup[]",
1571
+ "name": "groups",
1572
+ "type": "tuple[]"
1573
+ },
1574
+ {
1575
+ "internalType": "uint32",
1576
+ "name": "epochDurationSec",
1577
+ "type": "uint32"
1578
+ }
1579
+ ],
1580
+ "internalType": "struct BatchOperatorGroups",
1581
+ "name": "initialGroups",
1582
+ "type": "tuple"
1364
1583
  }
1365
1584
  ],
1366
1585
  "name": "initialize",
@@ -1375,6 +1594,60 @@
1375
1594
  "stateMutability": "nonpayable",
1376
1595
  "type": "function"
1377
1596
  },
1597
+ {
1598
+ "inputs": [
1599
+ {
1600
+ "components": [
1601
+ {
1602
+ "internalType": "uint32",
1603
+ "name": "activeGroupIndex",
1604
+ "type": "uint32"
1605
+ },
1606
+ {
1607
+ "internalType": "uint32",
1608
+ "name": "epochIndex",
1609
+ "type": "uint32"
1610
+ },
1611
+ {
1612
+ "components": [
1613
+ {
1614
+ "components": [
1615
+ {
1616
+ "internalType": "ChainKind",
1617
+ "name": "kind",
1618
+ "type": "uint8"
1619
+ },
1620
+ {
1621
+ "internalType": "bytes",
1622
+ "name": "address_",
1623
+ "type": "bytes"
1624
+ }
1625
+ ],
1626
+ "internalType": "struct ChainAddress[]",
1627
+ "name": "operators",
1628
+ "type": "tuple[]"
1629
+ }
1630
+ ],
1631
+ "internalType": "struct BatchOperatorGroup[]",
1632
+ "name": "groups",
1633
+ "type": "tuple[]"
1634
+ },
1635
+ {
1636
+ "internalType": "uint32",
1637
+ "name": "epochDurationSec",
1638
+ "type": "uint32"
1639
+ }
1640
+ ],
1641
+ "internalType": "struct BatchOperatorGroups",
1642
+ "name": "initialGroups",
1643
+ "type": "tuple"
1644
+ }
1645
+ ],
1646
+ "name": "installInitialRoster",
1647
+ "outputs": [],
1648
+ "stateMutability": "nonpayable",
1649
+ "type": "function"
1650
+ },
1378
1651
  {
1379
1652
  "inputs": [
1380
1653
  {
@@ -1394,6 +1667,30 @@
1394
1667
  "stateMutability": "view",
1395
1668
  "type": "function"
1396
1669
  },
1670
+ {
1671
+ "inputs": [
1672
+ {
1673
+ "internalType": "address",
1674
+ "name": "operator_",
1675
+ "type": "address"
1676
+ },
1677
+ {
1678
+ "internalType": "uint32",
1679
+ "name": "epochIndex_",
1680
+ "type": "uint32"
1681
+ }
1682
+ ],
1683
+ "name": "isActiveOperatorForEpoch",
1684
+ "outputs": [
1685
+ {
1686
+ "internalType": "bool",
1687
+ "name": "",
1688
+ "type": "bool"
1689
+ }
1690
+ ],
1691
+ "stateMutability": "view",
1692
+ "type": "function"
1693
+ },
1397
1694
  {
1398
1695
  "inputs": [],
1399
1696
  "name": "isConsumingScheduledOp",
@@ -1767,12 +2064,12 @@
1767
2064
  },
1768
2065
  {
1769
2066
  "inputs": [],
1770
- "name": "reserveManagerAddress",
2067
+ "name": "rosterEpochIndex",
1771
2068
  "outputs": [
1772
2069
  {
1773
- "internalType": "address",
2070
+ "internalType": "uint32",
1774
2071
  "name": "",
1775
- "type": "address"
2072
+ "type": "uint32"
1776
2073
  }
1777
2074
  ],
1778
2075
  "stateMutability": "view",
@@ -1861,19 +2158,6 @@
1861
2158
  "stateMutability": "nonpayable",
1862
2159
  "type": "function"
1863
2160
  },
1864
- {
1865
- "inputs": [
1866
- {
1867
- "internalType": "address",
1868
- "name": "newReserveManager",
1869
- "type": "address"
1870
- }
1871
- ],
1872
- "name": "setReserveManagerAddress",
1873
- "outputs": [],
1874
- "stateMutability": "nonpayable",
1875
- "type": "function"
1876
- },
1877
2161
  {
1878
2162
  "inputs": [
1879
2163
  {
@@ -45,40 +45,6 @@ export declare const EthereumOutpostArtifactManifest: {
45
45
  length: number;
46
46
  }[];
47
47
  };
48
- OperatorRegistry: {
49
- path: string;
50
- abiSha256: string;
51
- runtimeBytecodePath: string;
52
- runtimeBytecodeLength: number;
53
- runtimeBytecodeSha256: string;
54
- runtimeLinkReferences: {
55
- sourceName: string;
56
- libraryName: string;
57
- start: number;
58
- length: number;
59
- }[];
60
- runtimeImmutableReferences: {
61
- start: number;
62
- length: number;
63
- }[];
64
- };
65
- ReserveManager: {
66
- path: string;
67
- abiSha256: string;
68
- runtimeBytecodePath: string;
69
- runtimeBytecodeLength: number;
70
- runtimeBytecodeSha256: string;
71
- runtimeLinkReferences: {
72
- sourceName: string;
73
- libraryName: string;
74
- start: number;
75
- length: number;
76
- }[];
77
- runtimeImmutableReferences: {
78
- start: number;
79
- length: number;
80
- }[];
81
- };
82
48
  BAR: {
83
49
  path: string;
84
50
  abiSha256: string;