@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
@@ -108,6 +108,22 @@ const _abi = [
108
108
  name: "NotInitializing",
109
109
  type: "error",
110
110
  },
111
+ {
112
+ inputs: [
113
+ {
114
+ internalType: "uint32",
115
+ name: "nextEpochIndex",
116
+ type: "uint32",
117
+ },
118
+ {
119
+ internalType: "uint32",
120
+ name: "deliveries",
121
+ type: "uint32",
122
+ },
123
+ ],
124
+ name: "OPP_BootstrapWindowClosed",
125
+ type: "error",
126
+ },
111
127
  {
112
128
  inputs: [
113
129
  {
@@ -258,22 +274,6 @@ const _abi = [
258
274
  name: "OPP_InboundEnvelopeStillInRetention",
259
275
  type: "error",
260
276
  },
261
- {
262
- inputs: [
263
- {
264
- internalType: "uint256",
265
- name: "required",
266
- type: "uint256",
267
- },
268
- {
269
- internalType: "uint256",
270
- name: "provided",
271
- type: "uint256",
272
- },
273
- ],
274
- name: "OPP_InsufficientSignatureWeight",
275
- type: "error",
276
- },
277
277
  {
278
278
  inputs: [
279
279
  {
@@ -290,6 +290,17 @@ const _abi = [
290
290
  name: "OPP_InvalidChunkCount",
291
291
  type: "error",
292
292
  },
293
+ {
294
+ inputs: [
295
+ {
296
+ internalType: "string",
297
+ name: "reason",
298
+ type: "string",
299
+ },
300
+ ],
301
+ name: "OPP_InvalidInitialRoster",
302
+ type: "error",
303
+ },
293
304
  {
294
305
  inputs: [
295
306
  {
@@ -311,6 +322,27 @@ const _abi = [
311
322
  name: "OPP_InvalidRetentionConfig",
312
323
  type: "error",
313
324
  },
325
+ {
326
+ inputs: [
327
+ {
328
+ internalType: "uint256",
329
+ name: "index",
330
+ type: "uint256",
331
+ },
332
+ {
333
+ internalType: "bytes32",
334
+ name: "expected",
335
+ type: "bytes32",
336
+ },
337
+ {
338
+ internalType: "bytes32",
339
+ name: "actual",
340
+ type: "bytes32",
341
+ },
342
+ ],
343
+ name: "OPP_MessageChainMismatch",
344
+ type: "error",
345
+ },
314
346
  {
315
347
  inputs: [
316
348
  {
@@ -348,6 +380,22 @@ const _abi = [
348
380
  name: "OPP_NoPendingAttestations",
349
381
  type: "error",
350
382
  },
383
+ {
384
+ inputs: [
385
+ {
386
+ internalType: "uint256",
387
+ name: "index",
388
+ type: "uint256",
389
+ },
390
+ {
391
+ internalType: "bytes",
392
+ name: "messageId",
393
+ type: "bytes",
394
+ },
395
+ ],
396
+ name: "OPP_NonCanonicalMessageId",
397
+ type: "error",
398
+ },
351
399
  {
352
400
  inputs: [
353
401
  {
@@ -359,6 +407,22 @@ const _abi = [
359
407
  name: "OPP_NonCanonicalPreviousEpochHash",
360
408
  type: "error",
361
409
  },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "uint256",
414
+ name: "index",
415
+ type: "uint256",
416
+ },
417
+ {
418
+ internalType: "bytes",
419
+ name: "previousMessageId",
420
+ type: "bytes",
421
+ },
422
+ ],
423
+ name: "OPP_NonCanonicalPreviousMessageId",
424
+ type: "error",
425
+ },
362
426
  {
363
427
  inputs: [
364
428
  {
@@ -375,6 +439,27 @@ const _abi = [
375
439
  name: "OPP_NonSequentialEpoch",
376
440
  type: "error",
377
441
  },
442
+ {
443
+ inputs: [
444
+ {
445
+ internalType: "uint256",
446
+ name: "index",
447
+ type: "uint256",
448
+ },
449
+ {
450
+ internalType: "uint256",
451
+ name: "expected",
452
+ type: "uint256",
453
+ },
454
+ {
455
+ internalType: "uint256",
456
+ name: "actual",
457
+ type: "uint256",
458
+ },
459
+ ],
460
+ name: "OPP_NonSequentialMessage",
461
+ type: "error",
462
+ },
378
463
  {
379
464
  inputs: [
380
465
  {
@@ -487,6 +572,32 @@ const _abi = [
487
572
  name: "OPP_UnauthorizedAttestationType",
488
573
  type: "error",
489
574
  },
575
+ {
576
+ inputs: [
577
+ {
578
+ internalType: "uint32",
579
+ name: "epochIndex",
580
+ type: "uint32",
581
+ },
582
+ {
583
+ internalType: "uint32",
584
+ name: "rosterEpochIndex",
585
+ type: "uint32",
586
+ },
587
+ {
588
+ internalType: "uint32",
589
+ name: "activeGroupIndex",
590
+ type: "uint32",
591
+ },
592
+ {
593
+ internalType: "uint32",
594
+ name: "groupCount",
595
+ type: "uint32",
596
+ },
597
+ ],
598
+ name: "OPP_UnmappedEpochGroup",
599
+ type: "error",
600
+ },
490
601
  {
491
602
  inputs: [
492
603
  {
@@ -653,6 +764,31 @@ const _abi = [
653
764
  name: "AuthorityUpdated",
654
765
  type: "event",
655
766
  },
767
+ {
768
+ anonymous: false,
769
+ inputs: [
770
+ {
771
+ indexed: false,
772
+ internalType: "uint32",
773
+ name: "epochIndex",
774
+ type: "uint32",
775
+ },
776
+ {
777
+ indexed: false,
778
+ internalType: "uint32",
779
+ name: "attestedEpochIndex",
780
+ type: "uint32",
781
+ },
782
+ {
783
+ indexed: false,
784
+ internalType: "enum OPPInboundLib.GroupsRejection",
785
+ name: "rejection",
786
+ type: "uint8",
787
+ },
788
+ ],
789
+ name: "BatchOperatorGroupsRejected",
790
+ type: "event",
791
+ },
656
792
  {
657
793
  anonymous: false,
658
794
  inputs: [
@@ -828,12 +964,18 @@ const _abi = [
828
964
  inputs: [
829
965
  {
830
966
  indexed: false,
831
- internalType: "uint64",
832
- name: "version",
833
- type: "uint64",
967
+ internalType: "uint32",
968
+ name: "groupCount",
969
+ type: "uint32",
970
+ },
971
+ {
972
+ indexed: false,
973
+ internalType: "uint32",
974
+ name: "operatorCount",
975
+ type: "uint32",
834
976
  },
835
977
  ],
836
- name: "Initialized",
978
+ name: "InitialRosterInstalled",
837
979
  type: "event",
838
980
  },
839
981
  {
@@ -841,18 +983,12 @@ const _abi = [
841
983
  inputs: [
842
984
  {
843
985
  indexed: false,
844
- internalType: "address",
845
- name: "newReserveManager",
846
- type: "address",
847
- },
848
- {
849
- indexed: false,
850
- internalType: "address",
851
- name: "oldReserveManager",
852
- type: "address",
986
+ internalType: "uint64",
987
+ name: "version",
988
+ type: "uint64",
853
989
  },
854
990
  ],
855
- name: "ReserveManagerAddressSet",
991
+ name: "Initialized",
856
992
  type: "event",
857
993
  },
858
994
  {
@@ -870,12 +1006,12 @@ const _abi = [
870
1006
  },
871
1007
  {
872
1008
  inputs: [],
873
- name: "MAX_CHUNKS",
1009
+ name: "FIRST_INBOUND_EPOCH_INDEX",
874
1010
  outputs: [
875
1011
  {
876
- internalType: "uint16",
1012
+ internalType: "uint32",
877
1013
  name: "",
878
- type: "uint16",
1014
+ type: "uint32",
879
1015
  },
880
1016
  ],
881
1017
  stateMutability: "view",
@@ -883,12 +1019,12 @@ const _abi = [
883
1019
  },
884
1020
  {
885
1021
  inputs: [],
886
- name: "MAX_CHUNK_BYTES",
1022
+ name: "MAX_CHUNKS",
887
1023
  outputs: [
888
1024
  {
889
- internalType: "uint32",
1025
+ internalType: "uint16",
890
1026
  name: "",
891
- type: "uint32",
1027
+ type: "uint16",
892
1028
  },
893
1029
  ],
894
1030
  stateMutability: "view",
@@ -896,12 +1032,12 @@ const _abi = [
896
1032
  },
897
1033
  {
898
1034
  inputs: [],
899
- name: "MAX_CHUNK_SLOTS",
1035
+ name: "MAX_CHUNK_BYTES",
900
1036
  outputs: [
901
1037
  {
902
- internalType: "uint16",
1038
+ internalType: "uint32",
903
1039
  name: "",
904
- type: "uint16",
1040
+ type: "uint32",
905
1041
  },
906
1042
  ],
907
1043
  stateMutability: "view",
@@ -909,12 +1045,12 @@ const _abi = [
909
1045
  },
910
1046
  {
911
1047
  inputs: [],
912
- name: "MAX_ENVELOPE_BYTES",
1048
+ name: "MAX_CHUNK_SLOTS",
913
1049
  outputs: [
914
1050
  {
915
- internalType: "uint256",
1051
+ internalType: "uint16",
916
1052
  name: "",
917
- type: "uint256",
1053
+ type: "uint16",
918
1054
  },
919
1055
  ],
920
1056
  stateMutability: "view",
@@ -922,7 +1058,7 @@ const _abi = [
922
1058
  },
923
1059
  {
924
1060
  inputs: [],
925
- name: "MIN_SIG_WEIGHT",
1061
+ name: "MAX_ENVELOPE_BYTES",
926
1062
  outputs: [
927
1063
  {
928
1064
  internalType: "uint256",
@@ -1017,6 +1153,30 @@ const _abi = [
1017
1153
  stateMutability: "view",
1018
1154
  type: "function",
1019
1155
  },
1156
+ {
1157
+ inputs: [
1158
+ {
1159
+ internalType: "uint32",
1160
+ name: "epochIndex_",
1161
+ type: "uint32",
1162
+ },
1163
+ ],
1164
+ name: "authorizedGroupIndexFor",
1165
+ outputs: [
1166
+ {
1167
+ internalType: "uint32",
1168
+ name: "groupIndex",
1169
+ type: "uint32",
1170
+ },
1171
+ {
1172
+ internalType: "bool",
1173
+ name: "ok",
1174
+ type: "bool",
1175
+ },
1176
+ ],
1177
+ stateMutability: "view",
1178
+ type: "function",
1179
+ },
1020
1180
  {
1021
1181
  inputs: [
1022
1182
  {
@@ -1346,6 +1506,19 @@ const _abi = [
1346
1506
  stateMutability: "view",
1347
1507
  type: "function",
1348
1508
  },
1509
+ {
1510
+ inputs: [],
1511
+ name: "inboundMessageTip",
1512
+ outputs: [
1513
+ {
1514
+ internalType: "bytes32",
1515
+ name: "",
1516
+ type: "bytes32",
1517
+ },
1518
+ ],
1519
+ stateMutability: "view",
1520
+ type: "function",
1521
+ },
1349
1522
  {
1350
1523
  inputs: [],
1351
1524
  name: "inboundRetentionConfig",
@@ -1366,6 +1539,52 @@ const _abi = [
1366
1539
  name: "oppManager",
1367
1540
  type: "address",
1368
1541
  },
1542
+ {
1543
+ components: [
1544
+ {
1545
+ internalType: "uint32",
1546
+ name: "activeGroupIndex",
1547
+ type: "uint32",
1548
+ },
1549
+ {
1550
+ internalType: "uint32",
1551
+ name: "epochIndex",
1552
+ type: "uint32",
1553
+ },
1554
+ {
1555
+ components: [
1556
+ {
1557
+ components: [
1558
+ {
1559
+ internalType: "ChainKind",
1560
+ name: "kind",
1561
+ type: "uint8",
1562
+ },
1563
+ {
1564
+ internalType: "bytes",
1565
+ name: "address_",
1566
+ type: "bytes",
1567
+ },
1568
+ ],
1569
+ internalType: "struct ChainAddress[]",
1570
+ name: "operators",
1571
+ type: "tuple[]",
1572
+ },
1573
+ ],
1574
+ internalType: "struct BatchOperatorGroup[]",
1575
+ name: "groups",
1576
+ type: "tuple[]",
1577
+ },
1578
+ {
1579
+ internalType: "uint32",
1580
+ name: "epochDurationSec",
1581
+ type: "uint32",
1582
+ },
1583
+ ],
1584
+ internalType: "struct BatchOperatorGroups",
1585
+ name: "initialGroups",
1586
+ type: "tuple",
1587
+ },
1369
1588
  ],
1370
1589
  name: "initialize",
1371
1590
  outputs: [],
@@ -1379,6 +1598,60 @@ const _abi = [
1379
1598
  stateMutability: "nonpayable",
1380
1599
  type: "function",
1381
1600
  },
1601
+ {
1602
+ inputs: [
1603
+ {
1604
+ components: [
1605
+ {
1606
+ internalType: "uint32",
1607
+ name: "activeGroupIndex",
1608
+ type: "uint32",
1609
+ },
1610
+ {
1611
+ internalType: "uint32",
1612
+ name: "epochIndex",
1613
+ type: "uint32",
1614
+ },
1615
+ {
1616
+ components: [
1617
+ {
1618
+ components: [
1619
+ {
1620
+ internalType: "ChainKind",
1621
+ name: "kind",
1622
+ type: "uint8",
1623
+ },
1624
+ {
1625
+ internalType: "bytes",
1626
+ name: "address_",
1627
+ type: "bytes",
1628
+ },
1629
+ ],
1630
+ internalType: "struct ChainAddress[]",
1631
+ name: "operators",
1632
+ type: "tuple[]",
1633
+ },
1634
+ ],
1635
+ internalType: "struct BatchOperatorGroup[]",
1636
+ name: "groups",
1637
+ type: "tuple[]",
1638
+ },
1639
+ {
1640
+ internalType: "uint32",
1641
+ name: "epochDurationSec",
1642
+ type: "uint32",
1643
+ },
1644
+ ],
1645
+ internalType: "struct BatchOperatorGroups",
1646
+ name: "initialGroups",
1647
+ type: "tuple",
1648
+ },
1649
+ ],
1650
+ name: "installInitialRoster",
1651
+ outputs: [],
1652
+ stateMutability: "nonpayable",
1653
+ type: "function",
1654
+ },
1382
1655
  {
1383
1656
  inputs: [
1384
1657
  {
@@ -1398,6 +1671,30 @@ const _abi = [
1398
1671
  stateMutability: "view",
1399
1672
  type: "function",
1400
1673
  },
1674
+ {
1675
+ inputs: [
1676
+ {
1677
+ internalType: "address",
1678
+ name: "operator_",
1679
+ type: "address",
1680
+ },
1681
+ {
1682
+ internalType: "uint32",
1683
+ name: "epochIndex_",
1684
+ type: "uint32",
1685
+ },
1686
+ ],
1687
+ name: "isActiveOperatorForEpoch",
1688
+ outputs: [
1689
+ {
1690
+ internalType: "bool",
1691
+ name: "",
1692
+ type: "bool",
1693
+ },
1694
+ ],
1695
+ stateMutability: "view",
1696
+ type: "function",
1697
+ },
1401
1698
  {
1402
1699
  inputs: [],
1403
1700
  name: "isConsumingScheduledOp",
@@ -1771,12 +2068,12 @@ const _abi = [
1771
2068
  },
1772
2069
  {
1773
2070
  inputs: [],
1774
- name: "reserveManagerAddress",
2071
+ name: "rosterEpochIndex",
1775
2072
  outputs: [
1776
2073
  {
1777
- internalType: "address",
2074
+ internalType: "uint32",
1778
2075
  name: "",
1779
- type: "address",
2076
+ type: "uint32",
1780
2077
  },
1781
2078
  ],
1782
2079
  stateMutability: "view",
@@ -1865,19 +2162,6 @@ const _abi = [
1865
2162
  stateMutability: "nonpayable",
1866
2163
  type: "function",
1867
2164
  },
1868
- {
1869
- inputs: [
1870
- {
1871
- internalType: "address",
1872
- name: "newReserveManager",
1873
- type: "address",
1874
- },
1875
- ],
1876
- name: "setReserveManagerAddress",
1877
- outputs: [],
1878
- stateMutability: "nonpayable",
1879
- type: "function",
1880
- },
1881
2165
  {
1882
2166
  inputs: [
1883
2167
  {