@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
@@ -86,6 +86,22 @@ const _abi = [
86
86
  name: "NotInitializing",
87
87
  type: "error",
88
88
  },
89
+ {
90
+ inputs: [
91
+ {
92
+ internalType: "uint32",
93
+ name: "nextEpochIndex",
94
+ type: "uint32",
95
+ },
96
+ {
97
+ internalType: "uint32",
98
+ name: "deliveries",
99
+ type: "uint32",
100
+ },
101
+ ],
102
+ name: "OPP_BootstrapWindowClosed",
103
+ type: "error",
104
+ },
89
105
  {
90
106
  inputs: [
91
107
  {
@@ -236,22 +252,6 @@ const _abi = [
236
252
  name: "OPP_InboundEnvelopeStillInRetention",
237
253
  type: "error",
238
254
  },
239
- {
240
- inputs: [
241
- {
242
- internalType: "uint256",
243
- name: "required",
244
- type: "uint256",
245
- },
246
- {
247
- internalType: "uint256",
248
- name: "provided",
249
- type: "uint256",
250
- },
251
- ],
252
- name: "OPP_InsufficientSignatureWeight",
253
- type: "error",
254
- },
255
255
  {
256
256
  inputs: [
257
257
  {
@@ -268,6 +268,17 @@ const _abi = [
268
268
  name: "OPP_InvalidChunkCount",
269
269
  type: "error",
270
270
  },
271
+ {
272
+ inputs: [
273
+ {
274
+ internalType: "string",
275
+ name: "reason",
276
+ type: "string",
277
+ },
278
+ ],
279
+ name: "OPP_InvalidInitialRoster",
280
+ type: "error",
281
+ },
271
282
  {
272
283
  inputs: [
273
284
  {
@@ -289,6 +300,27 @@ const _abi = [
289
300
  name: "OPP_InvalidRetentionConfig",
290
301
  type: "error",
291
302
  },
303
+ {
304
+ inputs: [
305
+ {
306
+ internalType: "uint256",
307
+ name: "index",
308
+ type: "uint256",
309
+ },
310
+ {
311
+ internalType: "bytes32",
312
+ name: "expected",
313
+ type: "bytes32",
314
+ },
315
+ {
316
+ internalType: "bytes32",
317
+ name: "actual",
318
+ type: "bytes32",
319
+ },
320
+ ],
321
+ name: "OPP_MessageChainMismatch",
322
+ type: "error",
323
+ },
292
324
  {
293
325
  inputs: [
294
326
  {
@@ -326,6 +358,22 @@ const _abi = [
326
358
  name: "OPP_NoPendingAttestations",
327
359
  type: "error",
328
360
  },
361
+ {
362
+ inputs: [
363
+ {
364
+ internalType: "uint256",
365
+ name: "index",
366
+ type: "uint256",
367
+ },
368
+ {
369
+ internalType: "bytes",
370
+ name: "messageId",
371
+ type: "bytes",
372
+ },
373
+ ],
374
+ name: "OPP_NonCanonicalMessageId",
375
+ type: "error",
376
+ },
329
377
  {
330
378
  inputs: [
331
379
  {
@@ -337,6 +385,22 @@ const _abi = [
337
385
  name: "OPP_NonCanonicalPreviousEpochHash",
338
386
  type: "error",
339
387
  },
388
+ {
389
+ inputs: [
390
+ {
391
+ internalType: "uint256",
392
+ name: "index",
393
+ type: "uint256",
394
+ },
395
+ {
396
+ internalType: "bytes",
397
+ name: "previousMessageId",
398
+ type: "bytes",
399
+ },
400
+ ],
401
+ name: "OPP_NonCanonicalPreviousMessageId",
402
+ type: "error",
403
+ },
340
404
  {
341
405
  inputs: [
342
406
  {
@@ -353,6 +417,27 @@ const _abi = [
353
417
  name: "OPP_NonSequentialEpoch",
354
418
  type: "error",
355
419
  },
420
+ {
421
+ inputs: [
422
+ {
423
+ internalType: "uint256",
424
+ name: "index",
425
+ type: "uint256",
426
+ },
427
+ {
428
+ internalType: "uint256",
429
+ name: "expected",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ internalType: "uint256",
434
+ name: "actual",
435
+ type: "uint256",
436
+ },
437
+ ],
438
+ name: "OPP_NonSequentialMessage",
439
+ type: "error",
440
+ },
356
441
  {
357
442
  inputs: [
358
443
  {
@@ -465,6 +550,32 @@ const _abi = [
465
550
  name: "OPP_UnauthorizedAttestationType",
466
551
  type: "error",
467
552
  },
553
+ {
554
+ inputs: [
555
+ {
556
+ internalType: "uint32",
557
+ name: "epochIndex",
558
+ type: "uint32",
559
+ },
560
+ {
561
+ internalType: "uint32",
562
+ name: "rosterEpochIndex",
563
+ type: "uint32",
564
+ },
565
+ {
566
+ internalType: "uint32",
567
+ name: "activeGroupIndex",
568
+ type: "uint32",
569
+ },
570
+ {
571
+ internalType: "uint32",
572
+ name: "groupCount",
573
+ type: "uint32",
574
+ },
575
+ ],
576
+ name: "OPP_UnmappedEpochGroup",
577
+ type: "error",
578
+ },
468
579
  {
469
580
  inputs: [
470
581
  {
@@ -507,6 +618,38 @@ const _abi = [
507
618
  name: "UUPSUnsupportedProxiableUUID",
508
619
  type: "error",
509
620
  },
621
+ {
622
+ inputs: [
623
+ {
624
+ internalType: "uint256",
625
+ name: "nativeAmount",
626
+ type: "uint256",
627
+ },
628
+ {
629
+ internalType: "uint8",
630
+ name: "nativePrecision",
631
+ type: "uint8",
632
+ },
633
+ ],
634
+ name: "WIRE_AmountBelowDepotUnit",
635
+ type: "error",
636
+ },
637
+ {
638
+ inputs: [
639
+ {
640
+ internalType: "uint256",
641
+ name: "provided",
642
+ type: "uint256",
643
+ },
644
+ {
645
+ internalType: "uint256",
646
+ name: "maximum",
647
+ type: "uint256",
648
+ },
649
+ ],
650
+ name: "WIRE_AmountExceedsWireRange",
651
+ type: "error",
652
+ },
510
653
  {
511
654
  inputs: [
512
655
  {
@@ -555,16 +698,6 @@ const _abi = [
555
698
  name: "WIRE_DepositorKeyMismatch",
556
699
  type: "error",
557
700
  },
558
- {
559
- inputs: [],
560
- name: "WIRE_Erc20DepositValueNonZero",
561
- type: "error",
562
- },
563
- {
564
- inputs: [],
565
- name: "WIRE_Erc20TransferFailed",
566
- type: "error",
567
- },
568
701
  {
569
702
  inputs: [
570
703
  {
@@ -581,20 +714,25 @@ const _abi = [
581
714
  name: "WIRE_EthSendFailed",
582
715
  type: "error",
583
716
  },
717
+ {
718
+ inputs: [],
719
+ name: "WIRE_GoLiveInProgress",
720
+ type: "error",
721
+ },
584
722
  {
585
723
  inputs: [
586
724
  {
587
725
  internalType: "uint64",
588
- name: "tokenCode",
726
+ name: "initialPrincipal",
727
+ type: "uint64",
728
+ },
729
+ {
730
+ internalType: "uint64",
731
+ name: "balanceDepot",
589
732
  type: "uint64",
590
733
  },
591
734
  ],
592
- name: "WIRE_FeeOnTransferUnsupported",
593
- type: "error",
594
- },
595
- {
596
- inputs: [],
597
- name: "WIRE_GoLiveInProgress",
735
+ name: "WIRE_InitialPrincipalExceedsBalance",
598
736
  type: "error",
599
737
  },
600
738
  {
@@ -690,12 +828,7 @@ const _abi = [
690
828
  },
691
829
  {
692
830
  inputs: [],
693
- name: "WIRE_MultipleNativeTrackedCodes",
694
- type: "error",
695
- },
696
- {
697
- inputs: [],
698
- name: "WIRE_NativeDepositValueMismatch",
831
+ name: "WIRE_LiqTokenCodeUnset",
699
832
  type: "error",
700
833
  },
701
834
  {
@@ -714,6 +847,17 @@ const _abi = [
714
847
  name: "WIRE_NoBonds",
715
848
  type: "error",
716
849
  },
850
+ {
851
+ inputs: [
852
+ {
853
+ internalType: "uint64",
854
+ name: "requestId",
855
+ type: "uint64",
856
+ },
857
+ ],
858
+ name: "WIRE_NoPendingDesyndication",
859
+ type: "error",
860
+ },
717
861
  {
718
862
  inputs: [],
719
863
  name: "WIRE_NoPricesRecorded",
@@ -745,11 +889,6 @@ const _abi = [
745
889
  name: "WIRE_NodeTokenNotOwned",
746
890
  type: "error",
747
891
  },
748
- {
749
- inputs: [],
750
- name: "WIRE_NonCanonicalUnderwriteIntentCommit",
751
- type: "error",
752
- },
753
892
  {
754
893
  inputs: [
755
894
  {
@@ -771,6 +910,11 @@ const _abi = [
771
910
  name: "WIRE_NotReceiptOwner",
772
911
  type: "error",
773
912
  },
913
+ {
914
+ inputs: [],
915
+ name: "WIRE_OneWayToggle",
916
+ type: "error",
917
+ },
774
918
  {
775
919
  inputs: [
776
920
  {
@@ -784,28 +928,50 @@ const _abi = [
784
928
  },
785
929
  {
786
930
  inputs: [],
787
- name: "WIRE_OppInboundCallerUnauthorized",
931
+ name: "WIRE_OutpostChainCodeUnset",
788
932
  type: "error",
789
933
  },
790
934
  {
791
- inputs: [],
792
- name: "WIRE_OutpostChainCodeUnset",
935
+ inputs: [
936
+ {
937
+ internalType: "uint64",
938
+ name: "requestId",
939
+ type: "uint64",
940
+ },
941
+ {
942
+ internalType: "string",
943
+ name: "reason",
944
+ type: "string",
945
+ },
946
+ ],
947
+ name: "WIRE_PendingDesyndicationUnpayable",
793
948
  type: "error",
794
949
  },
795
950
  {
796
951
  inputs: [
797
952
  {
798
- internalType: "bytes",
799
- name: "innerRevert",
800
- type: "bytes",
953
+ internalType: "uint64",
954
+ name: "principal",
955
+ type: "uint64",
801
956
  },
802
957
  ],
803
- name: "WIRE_PermitFailed",
958
+ name: "WIRE_PoolHasPrincipal",
804
959
  type: "error",
805
960
  },
806
961
  {
807
- inputs: [],
808
- name: "WIRE_PrecisionOverflow",
962
+ inputs: [
963
+ {
964
+ internalType: "uint64",
965
+ name: "balanceDepot",
966
+ type: "uint64",
967
+ },
968
+ {
969
+ internalType: "uint64",
970
+ name: "principal",
971
+ type: "uint64",
972
+ },
973
+ ],
974
+ name: "WIRE_PoolUnderbacked",
809
975
  type: "error",
810
976
  },
811
977
  {
@@ -861,70 +1027,20 @@ const _abi = [
861
1027
  name: "WIRE_RefundingOnly",
862
1028
  type: "error",
863
1029
  },
864
- {
865
- inputs: [],
866
- name: "WIRE_ReserveAlreadyExists",
867
- type: "error",
868
- },
869
- {
870
- inputs: [],
871
- name: "WIRE_ReserveBadParam",
872
- type: "error",
873
- },
874
- {
875
- inputs: [],
876
- name: "WIRE_ReserveCancelNotCreator",
877
- type: "error",
878
- },
879
- {
880
- inputs: [],
881
- name: "WIRE_ReserveNotCancellable",
882
- type: "error",
883
- },
884
- {
885
- inputs: [],
886
- name: "WIRE_SwapEmptyRecipient",
887
- type: "error",
888
- },
889
- {
890
- inputs: [],
891
- name: "WIRE_SwapIdenticalEndpoints",
892
- type: "error",
893
- },
894
- {
895
- inputs: [],
896
- name: "WIRE_SwapSourceNotNative",
897
- type: "error",
898
- },
899
- {
900
- inputs: [],
901
- name: "WIRE_SwapSourceReserveUnavailable",
902
- type: "error",
903
- },
904
1030
  {
905
1031
  inputs: [
906
1032
  {
907
- internalType: "uint64",
908
- name: "tokenCode",
909
- type: "uint64",
1033
+ internalType: "uint256",
1034
+ name: "amount",
1035
+ type: "uint256",
1036
+ },
1037
+ {
1038
+ internalType: "uint256",
1039
+ name: "maximum",
1040
+ type: "uint256",
910
1041
  },
911
1042
  ],
912
- name: "WIRE_SwapSourceTokenNotRegistered",
913
- type: "error",
914
- },
915
- {
916
- inputs: [],
917
- name: "WIRE_SwapUnknownSlugName",
918
- type: "error",
919
- },
920
- {
921
- inputs: [],
922
- name: "WIRE_SwapZeroSourceAmount",
923
- type: "error",
924
- },
925
- {
926
- inputs: [],
927
- name: "WIRE_TokenAddressUnset",
1043
+ name: "WIRE_SyndicationAboveMaximum",
928
1044
  type: "error",
929
1045
  },
930
1046
  {
@@ -949,93 +1065,52 @@ const _abi = [
949
1065
  name: "WIRE_TokenPrecisionUnset",
950
1066
  type: "error",
951
1067
  },
952
- {
953
- inputs: [],
954
- name: "WIRE_TrackedCodeZero",
955
- type: "error",
956
- },
957
1068
  {
958
1069
  inputs: [
959
1070
  {
960
- internalType: "uint256",
961
- name: "provided",
962
- type: "uint256",
963
- },
964
- {
965
- internalType: "uint256",
966
- name: "maximum",
967
- type: "uint256",
1071
+ internalType: "string",
1072
+ name: "reason",
1073
+ type: "string",
968
1074
  },
969
1075
  ],
970
- name: "WIRE_UnderwriteIntentCommitTooLarge",
1076
+ name: "WIRE_UnexpectedError",
971
1077
  type: "error",
972
1078
  },
973
1079
  {
974
1080
  inputs: [
975
1081
  {
976
1082
  internalType: "address",
977
- name: "caller",
1083
+ name: "token",
978
1084
  type: "address",
979
1085
  },
980
- {
981
- internalType: "bytes32",
982
- name: "accountKey",
983
- type: "bytes32",
984
- },
985
1086
  {
986
1087
  internalType: "address",
987
- name: "rosterAddress",
1088
+ name: "operator",
988
1089
  type: "address",
989
1090
  },
990
- {
991
- internalType: "uint64",
992
- name: "entryGeneration",
993
- type: "uint64",
994
- },
995
- {
996
- internalType: "uint64",
997
- name: "rosterGeneration",
998
- type: "uint64",
999
- },
1000
1091
  ],
1001
- name: "WIRE_UnderwriterAccountMismatch",
1092
+ name: "WIRE_UnexpectedTokenDeposit",
1002
1093
  type: "error",
1003
1094
  },
1004
1095
  {
1005
1096
  inputs: [],
1006
- name: "WIRE_UnderwriterExternalAddressMismatch",
1007
- type: "error",
1008
- },
1009
- {
1010
- inputs: [
1011
- {
1012
- internalType: "string",
1013
- name: "reason",
1014
- type: "string",
1015
- },
1016
- ],
1017
- name: "WIRE_UnexpectedError",
1097
+ name: "WIRE_WireNodesContractNotSet",
1018
1098
  type: "error",
1019
1099
  },
1020
1100
  {
1021
1101
  inputs: [
1022
1102
  {
1023
- internalType: "address",
1024
- name: "token",
1025
- type: "address",
1103
+ internalType: "uint64",
1104
+ name: "delta",
1105
+ type: "uint64",
1026
1106
  },
1027
1107
  {
1028
- internalType: "address",
1029
- name: "operator",
1030
- type: "address",
1108
+ internalType: "uint64",
1109
+ name: "deadband",
1110
+ type: "uint64",
1031
1111
  },
1032
1112
  ],
1033
- name: "WIRE_UnexpectedTokenDeposit",
1034
- type: "error",
1035
- },
1036
- {
1037
- inputs: [],
1038
- name: "WIRE_WireNodesContractNotSet",
1113
+ name: "WIRE_YieldBelowDeadband",
1039
1114
  type: "error",
1040
1115
  },
1041
1116
  {
@@ -1330,19 +1405,6 @@ const _abi = [
1330
1405
  stateMutability: "view",
1331
1406
  type: "function",
1332
1407
  },
1333
- {
1334
- inputs: [
1335
- {
1336
- internalType: "address",
1337
- name: "owner",
1338
- type: "address",
1339
- },
1340
- ],
1341
- name: "__OPPEndpointManaged_init",
1342
- outputs: [],
1343
- stateMutability: "nonpayable",
1344
- type: "function",
1345
- },
1346
1408
  {
1347
1409
  inputs: [],
1348
1410
  name: "authority",