@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
@@ -78,100 +78,79 @@ const _abi = [
78
78
  name: "InvalidInitialization",
79
79
  type: "error",
80
80
  },
81
- {
82
- inputs: [],
83
- name: "NotInitializing",
84
- type: "error",
85
- },
86
81
  {
87
82
  inputs: [
88
83
  {
89
- internalType: "uint32",
90
- name: "nextEpochIndex",
91
- type: "uint32",
92
- },
93
- {
94
- internalType: "uint32",
95
- name: "deliveries",
96
- type: "uint32",
84
+ internalType: "uint256",
85
+ name: "position",
86
+ type: "uint256",
97
87
  },
98
88
  ],
99
- name: "OPP_BootstrapWindowClosed",
89
+ name: "MalformedEnvelope",
100
90
  type: "error",
101
91
  },
102
92
  {
103
93
  inputs: [
104
94
  {
105
- internalType: "address",
106
- name: "operator_",
107
- type: "address",
95
+ internalType: "uint256",
96
+ name: "position",
97
+ type: "uint256",
108
98
  },
109
99
  ],
110
- name: "OPP_ChunkBufferMissing",
100
+ name: "MalformedVarint",
111
101
  type: "error",
112
102
  },
113
103
  {
114
- inputs: [
115
- {
116
- internalType: "uint32",
117
- name: "epochIndex",
118
- type: "uint32",
119
- },
120
- ],
121
- name: "OPP_ChunkBufferShapeMismatch",
104
+ inputs: [],
105
+ name: "NotInitializing",
122
106
  type: "error",
123
107
  },
124
108
  {
125
109
  inputs: [
126
110
  {
127
- internalType: "uint16",
128
- name: "chunkIndex",
129
- type: "uint16",
111
+ internalType: "uint32",
112
+ name: "nextEpochIndex",
113
+ type: "uint32",
130
114
  },
131
115
  {
132
- internalType: "uint16",
133
- name: "totalChunks",
134
- type: "uint16",
116
+ internalType: "uint32",
117
+ name: "deliveries",
118
+ type: "uint32",
135
119
  },
136
120
  ],
137
- name: "OPP_ChunkIndexOutOfRange",
121
+ name: "OPP_BootstrapWindowClosed",
138
122
  type: "error",
139
123
  },
140
124
  {
141
125
  inputs: [
142
126
  {
143
- internalType: "uint16",
127
+ internalType: "bytes32",
144
128
  name: "expected",
145
- type: "uint16",
129
+ type: "bytes32",
146
130
  },
147
131
  {
148
- internalType: "uint16",
149
- name: "actual",
150
- type: "uint16",
132
+ internalType: "bytes32",
133
+ name: "found",
134
+ type: "bytes32",
151
135
  },
152
136
  ],
153
- name: "OPP_ChunkOutOfOrder",
137
+ name: "OPP_DigestMismatch",
154
138
  type: "error",
155
139
  },
156
140
  {
157
141
  inputs: [
158
- {
159
- internalType: "uint16",
160
- name: "chunkIndex",
161
- type: "uint16",
162
- },
163
142
  {
164
143
  internalType: "uint256",
165
- name: "expected",
144
+ name: "gasLeft",
166
145
  type: "uint256",
167
146
  },
168
147
  {
169
148
  internalType: "uint256",
170
- name: "actual",
149
+ name: "floor",
171
150
  type: "uint256",
172
151
  },
173
152
  ],
174
- name: "OPP_ChunkSizeMismatch",
153
+ name: "OPP_DispatchUnderfunded",
175
154
  type: "error",
176
155
  },
177
156
  {
@@ -222,6 +201,27 @@ const _abi = [
222
201
  name: "OPP_EpochHashMismatch",
223
202
  type: "error",
224
203
  },
204
+ {
205
+ inputs: [
206
+ {
207
+ internalType: "address",
208
+ name: "handler",
209
+ type: "address",
210
+ },
211
+ {
212
+ internalType: "AttestationType",
213
+ name: "attestationType",
214
+ type: "uint16",
215
+ },
216
+ {
217
+ internalType: "uint256",
218
+ name: "gasBound",
219
+ type: "uint256",
220
+ },
221
+ ],
222
+ name: "OPP_HandlerGasExhausted",
223
+ type: "error",
224
+ },
225
225
  {
226
226
  inputs: [
227
227
  {
@@ -252,17 +252,12 @@ const _abi = [
252
252
  {
253
253
  inputs: [
254
254
  {
255
- internalType: "uint16",
256
- name: "expected",
257
- type: "uint16",
258
- },
259
- {
260
- internalType: "uint16",
261
- name: "actual",
262
- type: "uint16",
255
+ internalType: "address",
256
+ name: "caller",
257
+ type: "address",
263
258
  },
264
259
  ],
265
- name: "OPP_InvalidChunkCount",
260
+ name: "OPP_InternalDispatchOnly",
266
261
  type: "error",
267
262
  },
268
263
  {
@@ -339,17 +334,6 @@ const _abi = [
339
334
  name: "OPP_NoAttestationsSent",
340
335
  type: "error",
341
336
  },
342
- {
343
- inputs: [
344
- {
345
- internalType: "address",
346
- name: "operator_",
347
- type: "address",
348
- },
349
- ],
350
- name: "OPP_NoChunkSlot",
351
- type: "error",
352
- },
353
337
  {
354
338
  inputs: [],
355
339
  name: "OPP_NoPendingAttestations",
@@ -472,6 +456,22 @@ const _abi = [
472
456
  name: "OPP_OperatorAlreadyDelivered",
473
457
  type: "error",
474
458
  },
459
+ {
460
+ inputs: [
461
+ {
462
+ internalType: "uint256",
463
+ name: "warmedWords",
464
+ type: "uint256",
465
+ },
466
+ {
467
+ internalType: "uint256",
468
+ name: "wordCount",
469
+ type: "uint256",
470
+ },
471
+ ],
472
+ name: "OPP_OutboundBankNotWarm",
473
+ type: "error",
474
+ },
475
475
  {
476
476
  inputs: [
477
477
  {
@@ -488,6 +488,22 @@ const _abi = [
488
488
  name: "OPP_OutboundMessageUnpackable",
489
489
  type: "error",
490
490
  },
491
+ {
492
+ inputs: [
493
+ {
494
+ internalType: "uint256",
495
+ name: "warmedWords",
496
+ type: "uint256",
497
+ },
498
+ {
499
+ internalType: "uint256",
500
+ name: "fromWord",
501
+ type: "uint256",
502
+ },
503
+ ],
504
+ name: "OPP_OutboundPrewarmNotContiguous",
505
+ type: "error",
506
+ },
491
507
  {
492
508
  inputs: [
493
509
  {
@@ -716,22 +732,6 @@ const _abi = [
716
732
  name: "WIRE_GoLiveInProgress",
717
733
  type: "error",
718
734
  },
719
- {
720
- inputs: [
721
- {
722
- internalType: "uint64",
723
- name: "initialPrincipal",
724
- type: "uint64",
725
- },
726
- {
727
- internalType: "uint64",
728
- name: "balanceDepot",
729
- type: "uint64",
730
- },
731
- ],
732
- name: "WIRE_InitialPrincipalExceedsBalance",
733
- type: "error",
734
- },
735
735
  {
736
736
  inputs: [
737
737
  {
@@ -1110,68 +1110,6 @@ const _abi = [
1110
1110
  name: "WIRE_ZeroAmount",
1111
1111
  type: "error",
1112
1112
  },
1113
- {
1114
- anonymous: false,
1115
- inputs: [
1116
- {
1117
- indexed: true,
1118
- internalType: "address",
1119
- name: "actor",
1120
- type: "address",
1121
- },
1122
- {
1123
- indexed: false,
1124
- internalType: "OperatorType",
1125
- name: "operatorType",
1126
- type: "uint8",
1127
- },
1128
- {
1129
- indexed: false,
1130
- internalType: "uint64",
1131
- name: "tokenCode",
1132
- type: "uint64",
1133
- },
1134
- {
1135
- indexed: false,
1136
- internalType: "int64",
1137
- name: "amount",
1138
- type: "int64",
1139
- },
1140
- ],
1141
- name: "ActorBonded",
1142
- type: "event",
1143
- },
1144
- {
1145
- anonymous: false,
1146
- inputs: [
1147
- {
1148
- indexed: true,
1149
- internalType: "address",
1150
- name: "actor",
1151
- type: "address",
1152
- },
1153
- {
1154
- indexed: false,
1155
- internalType: "OperatorType",
1156
- name: "operatorType",
1157
- type: "uint8",
1158
- },
1159
- {
1160
- indexed: false,
1161
- internalType: "uint64",
1162
- name: "tokenCode",
1163
- type: "uint64",
1164
- },
1165
- {
1166
- indexed: false,
1167
- internalType: "int64",
1168
- name: "amount",
1169
- type: "int64",
1170
- },
1171
- ],
1172
- name: "ActorUnbonded",
1173
- type: "event",
1174
- },
1175
1113
  {
1176
1114
  anonymous: false,
1177
1115
  inputs: [
@@ -1410,65 +1348,6 @@ const _abi = [
1410
1348
  stateMutability: "view",
1411
1349
  type: "function",
1412
1350
  },
1413
- {
1414
- inputs: [
1415
- {
1416
- internalType: "address",
1417
- name: "actor",
1418
- type: "address",
1419
- },
1420
- {
1421
- internalType: "OperatorType",
1422
- name: "operatorType",
1423
- type: "uint8",
1424
- },
1425
- {
1426
- components: [
1427
- {
1428
- internalType: "uint64",
1429
- name: "tokenCode",
1430
- type: "uint64",
1431
- },
1432
- {
1433
- internalType: "int64",
1434
- name: "amount",
1435
- type: "int64",
1436
- },
1437
- ],
1438
- internalType: "struct TokenAmount",
1439
- name: "amount",
1440
- type: "tuple",
1441
- },
1442
- ],
1443
- name: "bond",
1444
- outputs: [],
1445
- stateMutability: "nonpayable",
1446
- type: "function",
1447
- },
1448
- {
1449
- inputs: [
1450
- {
1451
- internalType: "address",
1452
- name: "actor",
1453
- type: "address",
1454
- },
1455
- {
1456
- internalType: "OperatorType",
1457
- name: "operatorType",
1458
- type: "uint8",
1459
- },
1460
- ],
1461
- name: "bondCount",
1462
- outputs: [
1463
- {
1464
- internalType: "uint256",
1465
- name: "",
1466
- type: "uint256",
1467
- },
1468
- ],
1469
- stateMutability: "view",
1470
- type: "function",
1471
- },
1472
1351
  {
1473
1352
  inputs: [
1474
1353
  {
@@ -1509,201 +1388,6 @@ const _abi = [
1509
1388
  stateMutability: "nonpayable",
1510
1389
  type: "function",
1511
1390
  },
1512
- {
1513
- inputs: [
1514
- {
1515
- internalType: "address",
1516
- name: "actor",
1517
- type: "address",
1518
- },
1519
- {
1520
- internalType: "OperatorType",
1521
- name: "operatorType",
1522
- type: "uint8",
1523
- },
1524
- {
1525
- internalType: "uint256",
1526
- name: "bondIndex",
1527
- type: "uint256",
1528
- },
1529
- ],
1530
- name: "getBond",
1531
- outputs: [
1532
- {
1533
- components: [
1534
- {
1535
- internalType: "ActionType",
1536
- name: "actionType",
1537
- type: "uint8",
1538
- },
1539
- {
1540
- components: [
1541
- {
1542
- internalType: "ChainKind",
1543
- name: "kind",
1544
- type: "uint8",
1545
- },
1546
- {
1547
- internalType: "bytes",
1548
- name: "address_",
1549
- type: "bytes",
1550
- },
1551
- ],
1552
- internalType: "struct ChainAddress",
1553
- name: "opAddress",
1554
- type: "tuple",
1555
- },
1556
- {
1557
- internalType: "OperatorType",
1558
- name: "type_",
1559
- type: "uint8",
1560
- },
1561
- {
1562
- internalType: "OperatorStatus",
1563
- name: "status",
1564
- type: "uint8",
1565
- },
1566
- {
1567
- components: [
1568
- {
1569
- internalType: "uint64",
1570
- name: "tokenCode",
1571
- type: "uint64",
1572
- },
1573
- {
1574
- internalType: "int64",
1575
- name: "amount",
1576
- type: "int64",
1577
- },
1578
- ],
1579
- internalType: "struct TokenAmount",
1580
- name: "amount",
1581
- type: "tuple",
1582
- },
1583
- {
1584
- internalType: "uint64",
1585
- name: "requestId",
1586
- type: "uint64",
1587
- },
1588
- {
1589
- internalType: "uint64",
1590
- name: "chainCode",
1591
- type: "uint64",
1592
- },
1593
- {
1594
- internalType: "string",
1595
- name: "reason",
1596
- type: "string",
1597
- },
1598
- {
1599
- internalType: "uint64",
1600
- name: "reserveCode",
1601
- type: "uint64",
1602
- },
1603
- ],
1604
- internalType: "struct OperatorAction",
1605
- name: "",
1606
- type: "tuple",
1607
- },
1608
- ],
1609
- stateMutability: "view",
1610
- type: "function",
1611
- },
1612
- {
1613
- inputs: [
1614
- {
1615
- internalType: "address",
1616
- name: "actor",
1617
- type: "address",
1618
- },
1619
- {
1620
- internalType: "OperatorType",
1621
- name: "operatorType",
1622
- type: "uint8",
1623
- },
1624
- ],
1625
- name: "getBonds",
1626
- outputs: [
1627
- {
1628
- components: [
1629
- {
1630
- internalType: "ActionType",
1631
- name: "actionType",
1632
- type: "uint8",
1633
- },
1634
- {
1635
- components: [
1636
- {
1637
- internalType: "ChainKind",
1638
- name: "kind",
1639
- type: "uint8",
1640
- },
1641
- {
1642
- internalType: "bytes",
1643
- name: "address_",
1644
- type: "bytes",
1645
- },
1646
- ],
1647
- internalType: "struct ChainAddress",
1648
- name: "opAddress",
1649
- type: "tuple",
1650
- },
1651
- {
1652
- internalType: "OperatorType",
1653
- name: "type_",
1654
- type: "uint8",
1655
- },
1656
- {
1657
- internalType: "OperatorStatus",
1658
- name: "status",
1659
- type: "uint8",
1660
- },
1661
- {
1662
- components: [
1663
- {
1664
- internalType: "uint64",
1665
- name: "tokenCode",
1666
- type: "uint64",
1667
- },
1668
- {
1669
- internalType: "int64",
1670
- name: "amount",
1671
- type: "int64",
1672
- },
1673
- ],
1674
- internalType: "struct TokenAmount",
1675
- name: "amount",
1676
- type: "tuple",
1677
- },
1678
- {
1679
- internalType: "uint64",
1680
- name: "requestId",
1681
- type: "uint64",
1682
- },
1683
- {
1684
- internalType: "uint64",
1685
- name: "chainCode",
1686
- type: "uint64",
1687
- },
1688
- {
1689
- internalType: "string",
1690
- name: "reason",
1691
- type: "string",
1692
- },
1693
- {
1694
- internalType: "uint64",
1695
- name: "reserveCode",
1696
- type: "uint64",
1697
- },
1698
- ],
1699
- internalType: "struct OperatorAction[]",
1700
- name: "",
1701
- type: "tuple[]",
1702
- },
1703
- ],
1704
- stateMutability: "view",
1705
- type: "function",
1706
- },
1707
1391
  {
1708
1392
  inputs: [],
1709
1393
  name: "getSummaryAttestations",
@@ -1989,41 +1673,6 @@ const _abi = [
1989
1673
  stateMutability: "pure",
1990
1674
  type: "function",
1991
1675
  },
1992
- {
1993
- inputs: [
1994
- {
1995
- internalType: "address",
1996
- name: "actor",
1997
- type: "address",
1998
- },
1999
- {
2000
- internalType: "OperatorType",
2001
- name: "operatorType",
2002
- type: "uint8",
2003
- },
2004
- {
2005
- components: [
2006
- {
2007
- internalType: "uint64",
2008
- name: "tokenCode",
2009
- type: "uint64",
2010
- },
2011
- {
2012
- internalType: "int64",
2013
- name: "amount",
2014
- type: "int64",
2015
- },
2016
- ],
2017
- internalType: "struct TokenAmount",
2018
- name: "amount",
2019
- type: "tuple",
2020
- },
2021
- ],
2022
- name: "unbond",
2023
- outputs: [],
2024
- stateMutability: "nonpayable",
2025
- type: "function",
2026
- },
2027
1676
  {
2028
1677
  inputs: [
2029
1678
  {