@wireio/outpost-ethereum-artifacts 0.4.2 → 0.4.4

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 (57) hide show
  1. package/README.md +7 -0
  2. package/abis/BAR.json +83 -434
  3. package/abis/OPP.json +122 -67
  4. package/abis/OPPInbound.json +226 -367
  5. package/abis/SyndicationPool.json +83 -83
  6. package/abis/WithdrawalQueue.json +968 -0
  7. package/lib/cjs/Manifest.d.ts +12 -0
  8. package/lib/cjs/Manifest.js +70 -46
  9. package/lib/cjs/contracts/BAR.d.ts +2 -180
  10. package/lib/cjs/contracts/OPP.d.ts +13 -1
  11. package/lib/cjs/contracts/OPPInbound.d.ts +118 -196
  12. package/lib/cjs/contracts/WithdrawalQueue.d.ts +457 -0
  13. package/lib/cjs/contracts/WithdrawalQueue.js +2 -0
  14. package/lib/cjs/contracts/factories/BAR__factory.d.ts +69 -341
  15. package/lib/cjs/contracts/factories/BAR__factory.js +83 -434
  16. package/lib/cjs/contracts/factories/OPPInbound__factory.d.ts +188 -298
  17. package/lib/cjs/contracts/factories/OPPInbound__factory.js +226 -367
  18. package/lib/cjs/contracts/factories/OPP__factory.d.ts +99 -57
  19. package/lib/cjs/contracts/factories/OPP__factory.js +122 -67
  20. package/lib/cjs/contracts/factories/SyndicationPool__factory.d.ts +69 -69
  21. package/lib/cjs/contracts/factories/SyndicationPool__factory.js +83 -83
  22. package/lib/cjs/contracts/factories/WithdrawalQueue__factory.d.ts +741 -0
  23. package/lib/cjs/contracts/factories/WithdrawalQueue__factory.js +981 -0
  24. package/lib/cjs/contracts/factories/index.d.ts +1 -0
  25. package/lib/cjs/contracts/factories/index.js +3 -1
  26. package/lib/cjs/contracts/index.d.ts +2 -0
  27. package/lib/cjs/contracts/index.js +3 -1
  28. package/lib/esm/Manifest.d.ts +12 -0
  29. package/lib/esm/Manifest.js +70 -46
  30. package/lib/esm/contracts/BAR.d.ts +2 -180
  31. package/lib/esm/contracts/OPP.d.ts +13 -1
  32. package/lib/esm/contracts/OPPInbound.d.ts +118 -196
  33. package/lib/esm/contracts/WithdrawalQueue.d.ts +457 -0
  34. package/lib/esm/contracts/WithdrawalQueue.js +1 -0
  35. package/lib/esm/contracts/factories/BAR__factory.d.ts +69 -341
  36. package/lib/esm/contracts/factories/BAR__factory.js +83 -434
  37. package/lib/esm/contracts/factories/OPPInbound__factory.d.ts +188 -298
  38. package/lib/esm/contracts/factories/OPPInbound__factory.js +226 -367
  39. package/lib/esm/contracts/factories/OPP__factory.d.ts +99 -57
  40. package/lib/esm/contracts/factories/OPP__factory.js +122 -67
  41. package/lib/esm/contracts/factories/SyndicationPool__factory.d.ts +69 -69
  42. package/lib/esm/contracts/factories/SyndicationPool__factory.js +83 -83
  43. package/lib/esm/contracts/factories/WithdrawalQueue__factory.d.ts +741 -0
  44. package/lib/esm/contracts/factories/WithdrawalQueue__factory.js +977 -0
  45. package/lib/esm/contracts/factories/index.d.ts +1 -0
  46. package/lib/esm/contracts/factories/index.js +1 -0
  47. package/lib/esm/contracts/index.d.ts +2 -0
  48. package/lib/esm/contracts/index.js +1 -0
  49. package/manifest.json +70 -46
  50. package/package.json +1 -1
  51. package/runtime/BAR.bin +0 -0
  52. package/runtime/DepositManager.bin +0 -0
  53. package/runtime/LiqEthToken.bin +0 -0
  54. package/runtime/OPP.bin +0 -0
  55. package/runtime/OPPInbound.bin +0 -0
  56. package/runtime/SyndicationPool.bin +0 -0
  57. package/runtime/WithdrawalQueue.bin +0 -0
package/README.md CHANGED
@@ -10,6 +10,13 @@ Its manifest records the source revision, checksums, and library-link byte
10
10
  ranges. It deliberately contains no deployed addresses, RPC endpoints, private
11
11
  keys, or environment configuration.
12
12
 
13
+ The catalog contains OPP, OPPInbound, BAR, SyndicationPool, DepositManager,
14
+ LiqEthToken and WithdrawalQueue, plus the ERC-1155 interaction interface.
15
+ These are the original bootstrap implementations; newer upgrade generations are
16
+ outside this release. Verify the manifest and live runtime before use.
17
+
18
+ WithdrawalQueue requests are claimed through DepositManager, not the queue itself.
19
+
13
20
  ```ts
14
21
  import {
15
22
  EthereumOutpostArtifactManifest,
package/abis/BAR.json CHANGED
@@ -77,100 +77,79 @@
77
77
  "name": "InvalidInitialization",
78
78
  "type": "error"
79
79
  },
80
- {
81
- "inputs": [],
82
- "name": "NotInitializing",
83
- "type": "error"
84
- },
85
80
  {
86
81
  "inputs": [
87
82
  {
88
- "internalType": "uint32",
89
- "name": "nextEpochIndex",
90
- "type": "uint32"
91
- },
92
- {
93
- "internalType": "uint32",
94
- "name": "deliveries",
95
- "type": "uint32"
83
+ "internalType": "uint256",
84
+ "name": "position",
85
+ "type": "uint256"
96
86
  }
97
87
  ],
98
- "name": "OPP_BootstrapWindowClosed",
88
+ "name": "MalformedEnvelope",
99
89
  "type": "error"
100
90
  },
101
91
  {
102
92
  "inputs": [
103
93
  {
104
- "internalType": "address",
105
- "name": "operator_",
106
- "type": "address"
94
+ "internalType": "uint256",
95
+ "name": "position",
96
+ "type": "uint256"
107
97
  }
108
98
  ],
109
- "name": "OPP_ChunkBufferMissing",
99
+ "name": "MalformedVarint",
110
100
  "type": "error"
111
101
  },
112
102
  {
113
- "inputs": [
114
- {
115
- "internalType": "uint32",
116
- "name": "epochIndex",
117
- "type": "uint32"
118
- }
119
- ],
120
- "name": "OPP_ChunkBufferShapeMismatch",
103
+ "inputs": [],
104
+ "name": "NotInitializing",
121
105
  "type": "error"
122
106
  },
123
107
  {
124
108
  "inputs": [
125
109
  {
126
- "internalType": "uint16",
127
- "name": "chunkIndex",
128
- "type": "uint16"
110
+ "internalType": "uint32",
111
+ "name": "nextEpochIndex",
112
+ "type": "uint32"
129
113
  },
130
114
  {
131
- "internalType": "uint16",
132
- "name": "totalChunks",
133
- "type": "uint16"
115
+ "internalType": "uint32",
116
+ "name": "deliveries",
117
+ "type": "uint32"
134
118
  }
135
119
  ],
136
- "name": "OPP_ChunkIndexOutOfRange",
120
+ "name": "OPP_BootstrapWindowClosed",
137
121
  "type": "error"
138
122
  },
139
123
  {
140
124
  "inputs": [
141
125
  {
142
- "internalType": "uint16",
126
+ "internalType": "bytes32",
143
127
  "name": "expected",
144
- "type": "uint16"
128
+ "type": "bytes32"
145
129
  },
146
130
  {
147
- "internalType": "uint16",
148
- "name": "actual",
149
- "type": "uint16"
131
+ "internalType": "bytes32",
132
+ "name": "found",
133
+ "type": "bytes32"
150
134
  }
151
135
  ],
152
- "name": "OPP_ChunkOutOfOrder",
136
+ "name": "OPP_DigestMismatch",
153
137
  "type": "error"
154
138
  },
155
139
  {
156
140
  "inputs": [
157
- {
158
- "internalType": "uint16",
159
- "name": "chunkIndex",
160
- "type": "uint16"
161
- },
162
141
  {
163
142
  "internalType": "uint256",
164
- "name": "expected",
143
+ "name": "gasLeft",
165
144
  "type": "uint256"
166
145
  },
167
146
  {
168
147
  "internalType": "uint256",
169
- "name": "actual",
148
+ "name": "floor",
170
149
  "type": "uint256"
171
150
  }
172
151
  ],
173
- "name": "OPP_ChunkSizeMismatch",
152
+ "name": "OPP_DispatchUnderfunded",
174
153
  "type": "error"
175
154
  },
176
155
  {
@@ -221,6 +200,27 @@
221
200
  "name": "OPP_EpochHashMismatch",
222
201
  "type": "error"
223
202
  },
203
+ {
204
+ "inputs": [
205
+ {
206
+ "internalType": "address",
207
+ "name": "handler",
208
+ "type": "address"
209
+ },
210
+ {
211
+ "internalType": "AttestationType",
212
+ "name": "attestationType",
213
+ "type": "uint16"
214
+ },
215
+ {
216
+ "internalType": "uint256",
217
+ "name": "gasBound",
218
+ "type": "uint256"
219
+ }
220
+ ],
221
+ "name": "OPP_HandlerGasExhausted",
222
+ "type": "error"
223
+ },
224
224
  {
225
225
  "inputs": [
226
226
  {
@@ -251,17 +251,12 @@
251
251
  {
252
252
  "inputs": [
253
253
  {
254
- "internalType": "uint16",
255
- "name": "expected",
256
- "type": "uint16"
257
- },
258
- {
259
- "internalType": "uint16",
260
- "name": "actual",
261
- "type": "uint16"
254
+ "internalType": "address",
255
+ "name": "caller",
256
+ "type": "address"
262
257
  }
263
258
  ],
264
- "name": "OPP_InvalidChunkCount",
259
+ "name": "OPP_InternalDispatchOnly",
265
260
  "type": "error"
266
261
  },
267
262
  {
@@ -338,17 +333,6 @@
338
333
  "name": "OPP_NoAttestationsSent",
339
334
  "type": "error"
340
335
  },
341
- {
342
- "inputs": [
343
- {
344
- "internalType": "address",
345
- "name": "operator_",
346
- "type": "address"
347
- }
348
- ],
349
- "name": "OPP_NoChunkSlot",
350
- "type": "error"
351
- },
352
336
  {
353
337
  "inputs": [],
354
338
  "name": "OPP_NoPendingAttestations",
@@ -471,6 +455,22 @@
471
455
  "name": "OPP_OperatorAlreadyDelivered",
472
456
  "type": "error"
473
457
  },
458
+ {
459
+ "inputs": [
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "warmedWords",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "wordCount",
468
+ "type": "uint256"
469
+ }
470
+ ],
471
+ "name": "OPP_OutboundBankNotWarm",
472
+ "type": "error"
473
+ },
474
474
  {
475
475
  "inputs": [
476
476
  {
@@ -487,6 +487,22 @@
487
487
  "name": "OPP_OutboundMessageUnpackable",
488
488
  "type": "error"
489
489
  },
490
+ {
491
+ "inputs": [
492
+ {
493
+ "internalType": "uint256",
494
+ "name": "warmedWords",
495
+ "type": "uint256"
496
+ },
497
+ {
498
+ "internalType": "uint256",
499
+ "name": "fromWord",
500
+ "type": "uint256"
501
+ }
502
+ ],
503
+ "name": "OPP_OutboundPrewarmNotContiguous",
504
+ "type": "error"
505
+ },
490
506
  {
491
507
  "inputs": [
492
508
  {
@@ -715,22 +731,6 @@
715
731
  "name": "WIRE_GoLiveInProgress",
716
732
  "type": "error"
717
733
  },
718
- {
719
- "inputs": [
720
- {
721
- "internalType": "uint64",
722
- "name": "initialPrincipal",
723
- "type": "uint64"
724
- },
725
- {
726
- "internalType": "uint64",
727
- "name": "balanceDepot",
728
- "type": "uint64"
729
- }
730
- ],
731
- "name": "WIRE_InitialPrincipalExceedsBalance",
732
- "type": "error"
733
- },
734
734
  {
735
735
  "inputs": [
736
736
  {
@@ -1109,68 +1109,6 @@
1109
1109
  "name": "WIRE_ZeroAmount",
1110
1110
  "type": "error"
1111
1111
  },
1112
- {
1113
- "anonymous": false,
1114
- "inputs": [
1115
- {
1116
- "indexed": true,
1117
- "internalType": "address",
1118
- "name": "actor",
1119
- "type": "address"
1120
- },
1121
- {
1122
- "indexed": false,
1123
- "internalType": "OperatorType",
1124
- "name": "operatorType",
1125
- "type": "uint8"
1126
- },
1127
- {
1128
- "indexed": false,
1129
- "internalType": "uint64",
1130
- "name": "tokenCode",
1131
- "type": "uint64"
1132
- },
1133
- {
1134
- "indexed": false,
1135
- "internalType": "int64",
1136
- "name": "amount",
1137
- "type": "int64"
1138
- }
1139
- ],
1140
- "name": "ActorBonded",
1141
- "type": "event"
1142
- },
1143
- {
1144
- "anonymous": false,
1145
- "inputs": [
1146
- {
1147
- "indexed": true,
1148
- "internalType": "address",
1149
- "name": "actor",
1150
- "type": "address"
1151
- },
1152
- {
1153
- "indexed": false,
1154
- "internalType": "OperatorType",
1155
- "name": "operatorType",
1156
- "type": "uint8"
1157
- },
1158
- {
1159
- "indexed": false,
1160
- "internalType": "uint64",
1161
- "name": "tokenCode",
1162
- "type": "uint64"
1163
- },
1164
- {
1165
- "indexed": false,
1166
- "internalType": "int64",
1167
- "name": "amount",
1168
- "type": "int64"
1169
- }
1170
- ],
1171
- "name": "ActorUnbonded",
1172
- "type": "event"
1173
- },
1174
1112
  {
1175
1113
  "anonymous": false,
1176
1114
  "inputs": [
@@ -1409,65 +1347,6 @@
1409
1347
  "stateMutability": "view",
1410
1348
  "type": "function"
1411
1349
  },
1412
- {
1413
- "inputs": [
1414
- {
1415
- "internalType": "address",
1416
- "name": "actor",
1417
- "type": "address"
1418
- },
1419
- {
1420
- "internalType": "OperatorType",
1421
- "name": "operatorType",
1422
- "type": "uint8"
1423
- },
1424
- {
1425
- "components": [
1426
- {
1427
- "internalType": "uint64",
1428
- "name": "tokenCode",
1429
- "type": "uint64"
1430
- },
1431
- {
1432
- "internalType": "int64",
1433
- "name": "amount",
1434
- "type": "int64"
1435
- }
1436
- ],
1437
- "internalType": "struct TokenAmount",
1438
- "name": "amount",
1439
- "type": "tuple"
1440
- }
1441
- ],
1442
- "name": "bond",
1443
- "outputs": [],
1444
- "stateMutability": "nonpayable",
1445
- "type": "function"
1446
- },
1447
- {
1448
- "inputs": [
1449
- {
1450
- "internalType": "address",
1451
- "name": "actor",
1452
- "type": "address"
1453
- },
1454
- {
1455
- "internalType": "OperatorType",
1456
- "name": "operatorType",
1457
- "type": "uint8"
1458
- }
1459
- ],
1460
- "name": "bondCount",
1461
- "outputs": [
1462
- {
1463
- "internalType": "uint256",
1464
- "name": "",
1465
- "type": "uint256"
1466
- }
1467
- ],
1468
- "stateMutability": "view",
1469
- "type": "function"
1470
- },
1471
1350
  {
1472
1351
  "inputs": [
1473
1352
  {
@@ -1508,201 +1387,6 @@
1508
1387
  "stateMutability": "nonpayable",
1509
1388
  "type": "function"
1510
1389
  },
1511
- {
1512
- "inputs": [
1513
- {
1514
- "internalType": "address",
1515
- "name": "actor",
1516
- "type": "address"
1517
- },
1518
- {
1519
- "internalType": "OperatorType",
1520
- "name": "operatorType",
1521
- "type": "uint8"
1522
- },
1523
- {
1524
- "internalType": "uint256",
1525
- "name": "bondIndex",
1526
- "type": "uint256"
1527
- }
1528
- ],
1529
- "name": "getBond",
1530
- "outputs": [
1531
- {
1532
- "components": [
1533
- {
1534
- "internalType": "ActionType",
1535
- "name": "actionType",
1536
- "type": "uint8"
1537
- },
1538
- {
1539
- "components": [
1540
- {
1541
- "internalType": "ChainKind",
1542
- "name": "kind",
1543
- "type": "uint8"
1544
- },
1545
- {
1546
- "internalType": "bytes",
1547
- "name": "address_",
1548
- "type": "bytes"
1549
- }
1550
- ],
1551
- "internalType": "struct ChainAddress",
1552
- "name": "opAddress",
1553
- "type": "tuple"
1554
- },
1555
- {
1556
- "internalType": "OperatorType",
1557
- "name": "type_",
1558
- "type": "uint8"
1559
- },
1560
- {
1561
- "internalType": "OperatorStatus",
1562
- "name": "status",
1563
- "type": "uint8"
1564
- },
1565
- {
1566
- "components": [
1567
- {
1568
- "internalType": "uint64",
1569
- "name": "tokenCode",
1570
- "type": "uint64"
1571
- },
1572
- {
1573
- "internalType": "int64",
1574
- "name": "amount",
1575
- "type": "int64"
1576
- }
1577
- ],
1578
- "internalType": "struct TokenAmount",
1579
- "name": "amount",
1580
- "type": "tuple"
1581
- },
1582
- {
1583
- "internalType": "uint64",
1584
- "name": "requestId",
1585
- "type": "uint64"
1586
- },
1587
- {
1588
- "internalType": "uint64",
1589
- "name": "chainCode",
1590
- "type": "uint64"
1591
- },
1592
- {
1593
- "internalType": "string",
1594
- "name": "reason",
1595
- "type": "string"
1596
- },
1597
- {
1598
- "internalType": "uint64",
1599
- "name": "reserveCode",
1600
- "type": "uint64"
1601
- }
1602
- ],
1603
- "internalType": "struct OperatorAction",
1604
- "name": "",
1605
- "type": "tuple"
1606
- }
1607
- ],
1608
- "stateMutability": "view",
1609
- "type": "function"
1610
- },
1611
- {
1612
- "inputs": [
1613
- {
1614
- "internalType": "address",
1615
- "name": "actor",
1616
- "type": "address"
1617
- },
1618
- {
1619
- "internalType": "OperatorType",
1620
- "name": "operatorType",
1621
- "type": "uint8"
1622
- }
1623
- ],
1624
- "name": "getBonds",
1625
- "outputs": [
1626
- {
1627
- "components": [
1628
- {
1629
- "internalType": "ActionType",
1630
- "name": "actionType",
1631
- "type": "uint8"
1632
- },
1633
- {
1634
- "components": [
1635
- {
1636
- "internalType": "ChainKind",
1637
- "name": "kind",
1638
- "type": "uint8"
1639
- },
1640
- {
1641
- "internalType": "bytes",
1642
- "name": "address_",
1643
- "type": "bytes"
1644
- }
1645
- ],
1646
- "internalType": "struct ChainAddress",
1647
- "name": "opAddress",
1648
- "type": "tuple"
1649
- },
1650
- {
1651
- "internalType": "OperatorType",
1652
- "name": "type_",
1653
- "type": "uint8"
1654
- },
1655
- {
1656
- "internalType": "OperatorStatus",
1657
- "name": "status",
1658
- "type": "uint8"
1659
- },
1660
- {
1661
- "components": [
1662
- {
1663
- "internalType": "uint64",
1664
- "name": "tokenCode",
1665
- "type": "uint64"
1666
- },
1667
- {
1668
- "internalType": "int64",
1669
- "name": "amount",
1670
- "type": "int64"
1671
- }
1672
- ],
1673
- "internalType": "struct TokenAmount",
1674
- "name": "amount",
1675
- "type": "tuple"
1676
- },
1677
- {
1678
- "internalType": "uint64",
1679
- "name": "requestId",
1680
- "type": "uint64"
1681
- },
1682
- {
1683
- "internalType": "uint64",
1684
- "name": "chainCode",
1685
- "type": "uint64"
1686
- },
1687
- {
1688
- "internalType": "string",
1689
- "name": "reason",
1690
- "type": "string"
1691
- },
1692
- {
1693
- "internalType": "uint64",
1694
- "name": "reserveCode",
1695
- "type": "uint64"
1696
- }
1697
- ],
1698
- "internalType": "struct OperatorAction[]",
1699
- "name": "",
1700
- "type": "tuple[]"
1701
- }
1702
- ],
1703
- "stateMutability": "view",
1704
- "type": "function"
1705
- },
1706
1390
  {
1707
1391
  "inputs": [],
1708
1392
  "name": "getSummaryAttestations",
@@ -1988,41 +1672,6 @@
1988
1672
  "stateMutability": "pure",
1989
1673
  "type": "function"
1990
1674
  },
1991
- {
1992
- "inputs": [
1993
- {
1994
- "internalType": "address",
1995
- "name": "actor",
1996
- "type": "address"
1997
- },
1998
- {
1999
- "internalType": "OperatorType",
2000
- "name": "operatorType",
2001
- "type": "uint8"
2002
- },
2003
- {
2004
- "components": [
2005
- {
2006
- "internalType": "uint64",
2007
- "name": "tokenCode",
2008
- "type": "uint64"
2009
- },
2010
- {
2011
- "internalType": "int64",
2012
- "name": "amount",
2013
- "type": "int64"
2014
- }
2015
- ],
2016
- "internalType": "struct TokenAmount",
2017
- "name": "amount",
2018
- "type": "tuple"
2019
- }
2020
- ],
2021
- "name": "unbond",
2022
- "outputs": [],
2023
- "stateMutability": "nonpayable",
2024
- "type": "function"
2025
- },
2026
1675
  {
2027
1676
  "inputs": [
2028
1677
  {