@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
@@ -105,6 +105,22 @@ const _abi = [
105
105
  name: "NotInitializing",
106
106
  type: "error",
107
107
  },
108
+ {
109
+ inputs: [
110
+ {
111
+ internalType: "uint32",
112
+ name: "nextEpochIndex",
113
+ type: "uint32",
114
+ },
115
+ {
116
+ internalType: "uint32",
117
+ name: "deliveries",
118
+ type: "uint32",
119
+ },
120
+ ],
121
+ name: "OPP_BootstrapWindowClosed",
122
+ type: "error",
123
+ },
108
124
  {
109
125
  inputs: [
110
126
  {
@@ -255,22 +271,6 @@ const _abi = [
255
271
  name: "OPP_InboundEnvelopeStillInRetention",
256
272
  type: "error",
257
273
  },
258
- {
259
- inputs: [
260
- {
261
- internalType: "uint256",
262
- name: "required",
263
- type: "uint256",
264
- },
265
- {
266
- internalType: "uint256",
267
- name: "provided",
268
- type: "uint256",
269
- },
270
- ],
271
- name: "OPP_InsufficientSignatureWeight",
272
- type: "error",
273
- },
274
274
  {
275
275
  inputs: [
276
276
  {
@@ -287,6 +287,17 @@ const _abi = [
287
287
  name: "OPP_InvalidChunkCount",
288
288
  type: "error",
289
289
  },
290
+ {
291
+ inputs: [
292
+ {
293
+ internalType: "string",
294
+ name: "reason",
295
+ type: "string",
296
+ },
297
+ ],
298
+ name: "OPP_InvalidInitialRoster",
299
+ type: "error",
300
+ },
290
301
  {
291
302
  inputs: [
292
303
  {
@@ -308,6 +319,27 @@ const _abi = [
308
319
  name: "OPP_InvalidRetentionConfig",
309
320
  type: "error",
310
321
  },
322
+ {
323
+ inputs: [
324
+ {
325
+ internalType: "uint256",
326
+ name: "index",
327
+ type: "uint256",
328
+ },
329
+ {
330
+ internalType: "bytes32",
331
+ name: "expected",
332
+ type: "bytes32",
333
+ },
334
+ {
335
+ internalType: "bytes32",
336
+ name: "actual",
337
+ type: "bytes32",
338
+ },
339
+ ],
340
+ name: "OPP_MessageChainMismatch",
341
+ type: "error",
342
+ },
311
343
  {
312
344
  inputs: [
313
345
  {
@@ -345,6 +377,22 @@ const _abi = [
345
377
  name: "OPP_NoPendingAttestations",
346
378
  type: "error",
347
379
  },
380
+ {
381
+ inputs: [
382
+ {
383
+ internalType: "uint256",
384
+ name: "index",
385
+ type: "uint256",
386
+ },
387
+ {
388
+ internalType: "bytes",
389
+ name: "messageId",
390
+ type: "bytes",
391
+ },
392
+ ],
393
+ name: "OPP_NonCanonicalMessageId",
394
+ type: "error",
395
+ },
348
396
  {
349
397
  inputs: [
350
398
  {
@@ -356,6 +404,22 @@ const _abi = [
356
404
  name: "OPP_NonCanonicalPreviousEpochHash",
357
405
  type: "error",
358
406
  },
407
+ {
408
+ inputs: [
409
+ {
410
+ internalType: "uint256",
411
+ name: "index",
412
+ type: "uint256",
413
+ },
414
+ {
415
+ internalType: "bytes",
416
+ name: "previousMessageId",
417
+ type: "bytes",
418
+ },
419
+ ],
420
+ name: "OPP_NonCanonicalPreviousMessageId",
421
+ type: "error",
422
+ },
359
423
  {
360
424
  inputs: [
361
425
  {
@@ -372,6 +436,27 @@ const _abi = [
372
436
  name: "OPP_NonSequentialEpoch",
373
437
  type: "error",
374
438
  },
439
+ {
440
+ inputs: [
441
+ {
442
+ internalType: "uint256",
443
+ name: "index",
444
+ type: "uint256",
445
+ },
446
+ {
447
+ internalType: "uint256",
448
+ name: "expected",
449
+ type: "uint256",
450
+ },
451
+ {
452
+ internalType: "uint256",
453
+ name: "actual",
454
+ type: "uint256",
455
+ },
456
+ ],
457
+ name: "OPP_NonSequentialMessage",
458
+ type: "error",
459
+ },
375
460
  {
376
461
  inputs: [
377
462
  {
@@ -484,6 +569,32 @@ const _abi = [
484
569
  name: "OPP_UnauthorizedAttestationType",
485
570
  type: "error",
486
571
  },
572
+ {
573
+ inputs: [
574
+ {
575
+ internalType: "uint32",
576
+ name: "epochIndex",
577
+ type: "uint32",
578
+ },
579
+ {
580
+ internalType: "uint32",
581
+ name: "rosterEpochIndex",
582
+ type: "uint32",
583
+ },
584
+ {
585
+ internalType: "uint32",
586
+ name: "activeGroupIndex",
587
+ type: "uint32",
588
+ },
589
+ {
590
+ internalType: "uint32",
591
+ name: "groupCount",
592
+ type: "uint32",
593
+ },
594
+ ],
595
+ name: "OPP_UnmappedEpochGroup",
596
+ type: "error",
597
+ },
487
598
  {
488
599
  inputs: [
489
600
  {
@@ -650,6 +761,31 @@ const _abi = [
650
761
  name: "AuthorityUpdated",
651
762
  type: "event",
652
763
  },
764
+ {
765
+ anonymous: false,
766
+ inputs: [
767
+ {
768
+ indexed: false,
769
+ internalType: "uint32",
770
+ name: "epochIndex",
771
+ type: "uint32",
772
+ },
773
+ {
774
+ indexed: false,
775
+ internalType: "uint32",
776
+ name: "attestedEpochIndex",
777
+ type: "uint32",
778
+ },
779
+ {
780
+ indexed: false,
781
+ internalType: "enum OPPInboundLib.GroupsRejection",
782
+ name: "rejection",
783
+ type: "uint8",
784
+ },
785
+ ],
786
+ name: "BatchOperatorGroupsRejected",
787
+ type: "event",
788
+ },
653
789
  {
654
790
  anonymous: false,
655
791
  inputs: [
@@ -825,12 +961,18 @@ const _abi = [
825
961
  inputs: [
826
962
  {
827
963
  indexed: false,
828
- internalType: "uint64",
829
- name: "version",
830
- type: "uint64",
964
+ internalType: "uint32",
965
+ name: "groupCount",
966
+ type: "uint32",
967
+ },
968
+ {
969
+ indexed: false,
970
+ internalType: "uint32",
971
+ name: "operatorCount",
972
+ type: "uint32",
831
973
  },
832
974
  ],
833
- name: "Initialized",
975
+ name: "InitialRosterInstalled",
834
976
  type: "event",
835
977
  },
836
978
  {
@@ -838,18 +980,12 @@ const _abi = [
838
980
  inputs: [
839
981
  {
840
982
  indexed: false,
841
- internalType: "address",
842
- name: "newReserveManager",
843
- type: "address",
844
- },
845
- {
846
- indexed: false,
847
- internalType: "address",
848
- name: "oldReserveManager",
849
- type: "address",
983
+ internalType: "uint64",
984
+ name: "version",
985
+ type: "uint64",
850
986
  },
851
987
  ],
852
- name: "ReserveManagerAddressSet",
988
+ name: "Initialized",
853
989
  type: "event",
854
990
  },
855
991
  {
@@ -867,12 +1003,12 @@ const _abi = [
867
1003
  },
868
1004
  {
869
1005
  inputs: [],
870
- name: "MAX_CHUNKS",
1006
+ name: "FIRST_INBOUND_EPOCH_INDEX",
871
1007
  outputs: [
872
1008
  {
873
- internalType: "uint16",
1009
+ internalType: "uint32",
874
1010
  name: "",
875
- type: "uint16",
1011
+ type: "uint32",
876
1012
  },
877
1013
  ],
878
1014
  stateMutability: "view",
@@ -880,12 +1016,12 @@ const _abi = [
880
1016
  },
881
1017
  {
882
1018
  inputs: [],
883
- name: "MAX_CHUNK_BYTES",
1019
+ name: "MAX_CHUNKS",
884
1020
  outputs: [
885
1021
  {
886
- internalType: "uint32",
1022
+ internalType: "uint16",
887
1023
  name: "",
888
- type: "uint32",
1024
+ type: "uint16",
889
1025
  },
890
1026
  ],
891
1027
  stateMutability: "view",
@@ -893,12 +1029,12 @@ const _abi = [
893
1029
  },
894
1030
  {
895
1031
  inputs: [],
896
- name: "MAX_CHUNK_SLOTS",
1032
+ name: "MAX_CHUNK_BYTES",
897
1033
  outputs: [
898
1034
  {
899
- internalType: "uint16",
1035
+ internalType: "uint32",
900
1036
  name: "",
901
- type: "uint16",
1037
+ type: "uint32",
902
1038
  },
903
1039
  ],
904
1040
  stateMutability: "view",
@@ -906,12 +1042,12 @@ const _abi = [
906
1042
  },
907
1043
  {
908
1044
  inputs: [],
909
- name: "MAX_ENVELOPE_BYTES",
1045
+ name: "MAX_CHUNK_SLOTS",
910
1046
  outputs: [
911
1047
  {
912
- internalType: "uint256",
1048
+ internalType: "uint16",
913
1049
  name: "",
914
- type: "uint256",
1050
+ type: "uint16",
915
1051
  },
916
1052
  ],
917
1053
  stateMutability: "view",
@@ -919,7 +1055,7 @@ const _abi = [
919
1055
  },
920
1056
  {
921
1057
  inputs: [],
922
- name: "MIN_SIG_WEIGHT",
1058
+ name: "MAX_ENVELOPE_BYTES",
923
1059
  outputs: [
924
1060
  {
925
1061
  internalType: "uint256",
@@ -1014,6 +1150,30 @@ const _abi = [
1014
1150
  stateMutability: "view",
1015
1151
  type: "function",
1016
1152
  },
1153
+ {
1154
+ inputs: [
1155
+ {
1156
+ internalType: "uint32",
1157
+ name: "epochIndex_",
1158
+ type: "uint32",
1159
+ },
1160
+ ],
1161
+ name: "authorizedGroupIndexFor",
1162
+ outputs: [
1163
+ {
1164
+ internalType: "uint32",
1165
+ name: "groupIndex",
1166
+ type: "uint32",
1167
+ },
1168
+ {
1169
+ internalType: "bool",
1170
+ name: "ok",
1171
+ type: "bool",
1172
+ },
1173
+ ],
1174
+ stateMutability: "view",
1175
+ type: "function",
1176
+ },
1017
1177
  {
1018
1178
  inputs: [
1019
1179
  {
@@ -1343,6 +1503,19 @@ const _abi = [
1343
1503
  stateMutability: "view",
1344
1504
  type: "function",
1345
1505
  },
1506
+ {
1507
+ inputs: [],
1508
+ name: "inboundMessageTip",
1509
+ outputs: [
1510
+ {
1511
+ internalType: "bytes32",
1512
+ name: "",
1513
+ type: "bytes32",
1514
+ },
1515
+ ],
1516
+ stateMutability: "view",
1517
+ type: "function",
1518
+ },
1346
1519
  {
1347
1520
  inputs: [],
1348
1521
  name: "inboundRetentionConfig",
@@ -1363,6 +1536,52 @@ const _abi = [
1363
1536
  name: "oppManager",
1364
1537
  type: "address",
1365
1538
  },
1539
+ {
1540
+ components: [
1541
+ {
1542
+ internalType: "uint32",
1543
+ name: "activeGroupIndex",
1544
+ type: "uint32",
1545
+ },
1546
+ {
1547
+ internalType: "uint32",
1548
+ name: "epochIndex",
1549
+ type: "uint32",
1550
+ },
1551
+ {
1552
+ components: [
1553
+ {
1554
+ components: [
1555
+ {
1556
+ internalType: "ChainKind",
1557
+ name: "kind",
1558
+ type: "uint8",
1559
+ },
1560
+ {
1561
+ internalType: "bytes",
1562
+ name: "address_",
1563
+ type: "bytes",
1564
+ },
1565
+ ],
1566
+ internalType: "struct ChainAddress[]",
1567
+ name: "operators",
1568
+ type: "tuple[]",
1569
+ },
1570
+ ],
1571
+ internalType: "struct BatchOperatorGroup[]",
1572
+ name: "groups",
1573
+ type: "tuple[]",
1574
+ },
1575
+ {
1576
+ internalType: "uint32",
1577
+ name: "epochDurationSec",
1578
+ type: "uint32",
1579
+ },
1580
+ ],
1581
+ internalType: "struct BatchOperatorGroups",
1582
+ name: "initialGroups",
1583
+ type: "tuple",
1584
+ },
1366
1585
  ],
1367
1586
  name: "initialize",
1368
1587
  outputs: [],
@@ -1376,6 +1595,60 @@ const _abi = [
1376
1595
  stateMutability: "nonpayable",
1377
1596
  type: "function",
1378
1597
  },
1598
+ {
1599
+ inputs: [
1600
+ {
1601
+ components: [
1602
+ {
1603
+ internalType: "uint32",
1604
+ name: "activeGroupIndex",
1605
+ type: "uint32",
1606
+ },
1607
+ {
1608
+ internalType: "uint32",
1609
+ name: "epochIndex",
1610
+ type: "uint32",
1611
+ },
1612
+ {
1613
+ components: [
1614
+ {
1615
+ components: [
1616
+ {
1617
+ internalType: "ChainKind",
1618
+ name: "kind",
1619
+ type: "uint8",
1620
+ },
1621
+ {
1622
+ internalType: "bytes",
1623
+ name: "address_",
1624
+ type: "bytes",
1625
+ },
1626
+ ],
1627
+ internalType: "struct ChainAddress[]",
1628
+ name: "operators",
1629
+ type: "tuple[]",
1630
+ },
1631
+ ],
1632
+ internalType: "struct BatchOperatorGroup[]",
1633
+ name: "groups",
1634
+ type: "tuple[]",
1635
+ },
1636
+ {
1637
+ internalType: "uint32",
1638
+ name: "epochDurationSec",
1639
+ type: "uint32",
1640
+ },
1641
+ ],
1642
+ internalType: "struct BatchOperatorGroups",
1643
+ name: "initialGroups",
1644
+ type: "tuple",
1645
+ },
1646
+ ],
1647
+ name: "installInitialRoster",
1648
+ outputs: [],
1649
+ stateMutability: "nonpayable",
1650
+ type: "function",
1651
+ },
1379
1652
  {
1380
1653
  inputs: [
1381
1654
  {
@@ -1395,6 +1668,30 @@ const _abi = [
1395
1668
  stateMutability: "view",
1396
1669
  type: "function",
1397
1670
  },
1671
+ {
1672
+ inputs: [
1673
+ {
1674
+ internalType: "address",
1675
+ name: "operator_",
1676
+ type: "address",
1677
+ },
1678
+ {
1679
+ internalType: "uint32",
1680
+ name: "epochIndex_",
1681
+ type: "uint32",
1682
+ },
1683
+ ],
1684
+ name: "isActiveOperatorForEpoch",
1685
+ outputs: [
1686
+ {
1687
+ internalType: "bool",
1688
+ name: "",
1689
+ type: "bool",
1690
+ },
1691
+ ],
1692
+ stateMutability: "view",
1693
+ type: "function",
1694
+ },
1398
1695
  {
1399
1696
  inputs: [],
1400
1697
  name: "isConsumingScheduledOp",
@@ -1768,12 +2065,12 @@ const _abi = [
1768
2065
  },
1769
2066
  {
1770
2067
  inputs: [],
1771
- name: "reserveManagerAddress",
2068
+ name: "rosterEpochIndex",
1772
2069
  outputs: [
1773
2070
  {
1774
- internalType: "address",
2071
+ internalType: "uint32",
1775
2072
  name: "",
1776
- type: "address",
2073
+ type: "uint32",
1777
2074
  },
1778
2075
  ],
1779
2076
  stateMutability: "view",
@@ -1862,19 +2159,6 @@ const _abi = [
1862
2159
  stateMutability: "nonpayable",
1863
2160
  type: "function",
1864
2161
  },
1865
- {
1866
- inputs: [
1867
- {
1868
- internalType: "address",
1869
- name: "newReserveManager",
1870
- type: "address",
1871
- },
1872
- ],
1873
- name: "setReserveManagerAddress",
1874
- outputs: [],
1875
- stateMutability: "nonpayable",
1876
- type: "function",
1877
- },
1878
2162
  {
1879
2163
  inputs: [
1880
2164
  {