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