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