viem 2.10.0 → 2.10.2

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 (89) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/_cjs/chains/definitions/celo.js +2 -2
  3. package/_cjs/chains/definitions/celo.js.map +1 -1
  4. package/_cjs/chains/definitions/dodochainTestnet.js +23 -0
  5. package/_cjs/chains/definitions/dodochainTestnet.js.map +1 -0
  6. package/_cjs/chains/definitions/otimDevnet.js +2 -2
  7. package/_cjs/chains/definitions/otimDevnet.js.map +1 -1
  8. package/_cjs/chains/index.js +7 -5
  9. package/_cjs/chains/index.js.map +1 -1
  10. package/_cjs/errors/version.js +1 -1
  11. package/_cjs/op-stack/abis.js +142 -359
  12. package/_cjs/op-stack/abis.js.map +1 -1
  13. package/_cjs/op-stack/actions/getTimeToFinalize.js +14 -6
  14. package/_cjs/op-stack/actions/getTimeToFinalize.js.map +1 -1
  15. package/_cjs/op-stack/actions/getWithdrawalStatus.js +10 -2
  16. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  17. package/_esm/chains/definitions/celo.js +2 -2
  18. package/_esm/chains/definitions/celo.js.map +1 -1
  19. package/_esm/chains/definitions/dodochainTestnet.js +20 -0
  20. package/_esm/chains/definitions/dodochainTestnet.js.map +1 -0
  21. package/_esm/chains/definitions/otimDevnet.js +2 -2
  22. package/_esm/chains/definitions/otimDevnet.js.map +1 -1
  23. package/_esm/chains/index.js +1 -0
  24. package/_esm/chains/index.js.map +1 -1
  25. package/_esm/errors/version.js +1 -1
  26. package/_esm/op-stack/abis.js +142 -359
  27. package/_esm/op-stack/abis.js.map +1 -1
  28. package/_esm/op-stack/actions/getTimeToFinalize.js +14 -6
  29. package/_esm/op-stack/actions/getTimeToFinalize.js.map +1 -1
  30. package/_esm/op-stack/actions/getWithdrawalStatus.js +10 -2
  31. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  32. package/_types/celo/chainConfig.d.ts +20 -20
  33. package/_types/celo/formatters.d.ts +10 -10
  34. package/_types/chains/definitions/ancient8.d.ts +8 -8
  35. package/_types/chains/definitions/ancient8Sepolia.d.ts +8 -8
  36. package/_types/chains/definitions/base.d.ts +8 -8
  37. package/_types/chains/definitions/baseGoerli.d.ts +8 -8
  38. package/_types/chains/definitions/baseSepolia.d.ts +8 -8
  39. package/_types/chains/definitions/celo.d.ts +22 -22
  40. package/_types/chains/definitions/celoAlfajores.d.ts +20 -20
  41. package/_types/chains/definitions/dodochainTestnet.d.ts +36 -0
  42. package/_types/chains/definitions/dodochainTestnet.d.ts.map +1 -0
  43. package/_types/chains/definitions/fraxtal.d.ts +8 -8
  44. package/_types/chains/definitions/fraxtalTestnet.d.ts +8 -8
  45. package/_types/chains/definitions/liskSepolia.d.ts +8 -8
  46. package/_types/chains/definitions/optimism.d.ts +8 -8
  47. package/_types/chains/definitions/optimismGoerli.d.ts +8 -8
  48. package/_types/chains/definitions/optimismSepolia.d.ts +8 -8
  49. package/_types/chains/definitions/otimDevnet.d.ts +2 -2
  50. package/_types/chains/definitions/pgn.d.ts +8 -8
  51. package/_types/chains/definitions/pgnTestnet.d.ts +8 -8
  52. package/_types/chains/definitions/playfiAlbireo.d.ts +3 -3
  53. package/_types/chains/definitions/rss3.d.ts +8 -8
  54. package/_types/chains/definitions/rss3Sepolia.d.ts +8 -8
  55. package/_types/chains/definitions/zkSync.d.ts +3 -3
  56. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +3 -3
  57. package/_types/chains/definitions/zkSyncLocalNode.d.ts +3 -3
  58. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +3 -3
  59. package/_types/chains/definitions/zkSyncTestnet.d.ts +3 -3
  60. package/_types/chains/definitions/zora.d.ts +8 -8
  61. package/_types/chains/definitions/zoraSepolia.d.ts +8 -8
  62. package/_types/chains/definitions/zoraTestnet.d.ts +8 -8
  63. package/_types/chains/index.d.ts +1 -0
  64. package/_types/chains/index.d.ts.map +1 -1
  65. package/_types/errors/version.d.ts +1 -1
  66. package/_types/op-stack/abis.d.ts +174 -87
  67. package/_types/op-stack/abis.d.ts.map +1 -1
  68. package/_types/op-stack/actions/getTimeToFinalize.d.ts.map +1 -1
  69. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  70. package/_types/op-stack/chainConfig.d.ts +8 -8
  71. package/_types/op-stack/formatters.d.ts +8 -8
  72. package/_types/types/eip1193.d.ts +9 -7
  73. package/_types/types/eip1193.d.ts.map +1 -1
  74. package/_types/types/transaction.d.ts +1 -1
  75. package/_types/types/transaction.d.ts.map +1 -1
  76. package/_types/utils/formatters/transaction.d.ts +4 -4
  77. package/_types/zksync/chainConfig.d.ts +3 -3
  78. package/_types/zksync/formatters.d.ts +3 -3
  79. package/chains/definitions/celo.ts +2 -2
  80. package/chains/definitions/dodochainTestnet.ts +20 -0
  81. package/chains/definitions/otimDevnet.ts +2 -2
  82. package/chains/index.ts +1 -0
  83. package/errors/version.ts +1 -1
  84. package/op-stack/abis.ts +142 -359
  85. package/op-stack/actions/getTimeToFinalize.ts +15 -6
  86. package/op-stack/actions/getWithdrawalStatus.ts +13 -2
  87. package/package.json +1 -1
  88. package/types/eip1193.ts +13 -8
  89. package/types/transaction.ts +1 -1
package/op-stack/abis.ts CHANGED
@@ -1367,44 +1367,74 @@ export const portal2Abi = [
1367
1367
  name: '_disputeGameFinalityDelaySeconds',
1368
1368
  type: 'uint256',
1369
1369
  },
1370
- {
1371
- internalType: 'GameType',
1372
- name: '_initialRespectedGameType',
1373
- type: 'uint32',
1374
- },
1375
1370
  ],
1376
1371
  stateMutability: 'nonpayable',
1377
1372
  type: 'constructor',
1378
1373
  },
1374
+ { inputs: [], name: 'BadTarget', type: 'error' },
1375
+ { inputs: [], name: 'CallPaused', type: 'error' },
1376
+ { inputs: [], name: 'GasEstimation', type: 'error' },
1377
+ { inputs: [], name: 'LargeCalldata', type: 'error' },
1378
+ { inputs: [], name: 'OutOfGas', type: 'error' },
1379
+ { inputs: [], name: 'SmallGasLimit', type: 'error' },
1380
+ { inputs: [], name: 'Unauthorized', type: 'error' },
1379
1381
  {
1380
- stateMutability: 'payable',
1381
- type: 'receive',
1382
+ anonymous: false,
1383
+ inputs: [
1384
+ { indexed: false, internalType: 'uint8', name: 'version', type: 'uint8' },
1385
+ ],
1386
+ name: 'Initialized',
1387
+ type: 'event',
1382
1388
  },
1383
1389
  {
1384
- inputs: [],
1385
- name: 'GUARDIAN',
1386
- outputs: [
1390
+ anonymous: false,
1391
+ inputs: [
1392
+ { indexed: true, internalType: 'address', name: 'from', type: 'address' },
1393
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
1387
1394
  {
1388
- internalType: 'address',
1389
- name: '',
1390
- type: 'address',
1395
+ indexed: true,
1396
+ internalType: 'uint256',
1397
+ name: 'version',
1398
+ type: 'uint256',
1399
+ },
1400
+ {
1401
+ indexed: false,
1402
+ internalType: 'bytes',
1403
+ name: 'opaqueData',
1404
+ type: 'bytes',
1391
1405
  },
1392
1406
  ],
1393
- stateMutability: 'view',
1394
- type: 'function',
1407
+ name: 'TransactionDeposited',
1408
+ type: 'event',
1395
1409
  },
1396
1410
  {
1397
- inputs: [],
1398
- name: 'SYSTEM_CONFIG',
1399
- outputs: [
1411
+ anonymous: false,
1412
+ inputs: [
1400
1413
  {
1401
- internalType: 'contract SystemConfig',
1402
- name: '',
1403
- type: 'address',
1414
+ indexed: true,
1415
+ internalType: 'bytes32',
1416
+ name: 'withdrawalHash',
1417
+ type: 'bytes32',
1404
1418
  },
1419
+ { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },
1405
1420
  ],
1406
- stateMutability: 'view',
1407
- type: 'function',
1421
+ name: 'WithdrawalFinalized',
1422
+ type: 'event',
1423
+ },
1424
+ {
1425
+ anonymous: false,
1426
+ inputs: [
1427
+ {
1428
+ indexed: true,
1429
+ internalType: 'bytes32',
1430
+ name: 'withdrawalHash',
1431
+ type: 'bytes32',
1432
+ },
1433
+ { indexed: true, internalType: 'address', name: 'from', type: 'address' },
1434
+ { indexed: true, internalType: 'address', name: 'to', type: 'address' },
1435
+ ],
1436
+ name: 'WithdrawalProven',
1437
+ type: 'event',
1408
1438
  },
1409
1439
  {
1410
1440
  inputs: [
@@ -1421,11 +1451,8 @@ export const portal2Abi = [
1421
1451
  },
1422
1452
  {
1423
1453
  inputs: [
1424
- {
1425
- internalType: 'bytes32',
1426
- name: '_withdrawalHash',
1427
- type: 'bytes32',
1428
- },
1454
+ { internalType: 'bytes32', name: '_withdrawalHash', type: 'bytes32' },
1455
+ { internalType: 'address', name: '_proofSubmitter', type: 'address' },
1429
1456
  ],
1430
1457
  name: 'checkWithdrawal',
1431
1458
  outputs: [],
@@ -1434,31 +1461,11 @@ export const portal2Abi = [
1434
1461
  },
1435
1462
  {
1436
1463
  inputs: [
1437
- {
1438
- internalType: 'address',
1439
- name: '_to',
1440
- type: 'address',
1441
- },
1442
- {
1443
- internalType: 'uint256',
1444
- name: '_value',
1445
- type: 'uint256',
1446
- },
1447
- {
1448
- internalType: 'uint64',
1449
- name: '_gasLimit',
1450
- type: 'uint64',
1451
- },
1452
- {
1453
- internalType: 'bool',
1454
- name: '_isCreation',
1455
- type: 'bool',
1456
- },
1457
- {
1458
- internalType: 'bytes',
1459
- name: '_data',
1460
- type: 'bytes',
1461
- },
1464
+ { internalType: 'address', name: '_to', type: 'address' },
1465
+ { internalType: 'uint256', name: '_value', type: 'uint256' },
1466
+ { internalType: 'uint64', name: '_gasLimit', type: 'uint64' },
1467
+ { internalType: 'bool', name: '_isCreation', type: 'bool' },
1468
+ { internalType: 'bytes', name: '_data', type: 'bytes' },
1462
1469
  ],
1463
1470
  name: 'depositTransaction',
1464
1471
  outputs: [],
@@ -1467,20 +1474,10 @@ export const portal2Abi = [
1467
1474
  },
1468
1475
  {
1469
1476
  inputs: [
1470
- {
1471
- internalType: 'contract IDisputeGame',
1472
- name: '',
1473
- type: 'address',
1474
- },
1477
+ { internalType: 'contract IDisputeGame', name: '', type: 'address' },
1475
1478
  ],
1476
1479
  name: 'disputeGameBlacklist',
1477
- outputs: [
1478
- {
1479
- internalType: 'bool',
1480
- name: '',
1481
- type: 'bool',
1482
- },
1483
- ],
1480
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1484
1481
  stateMutability: 'view',
1485
1482
  type: 'function',
1486
1483
  },
@@ -1500,13 +1497,7 @@ export const portal2Abi = [
1500
1497
  {
1501
1498
  inputs: [],
1502
1499
  name: 'disputeGameFinalityDelaySeconds',
1503
- outputs: [
1504
- {
1505
- internalType: 'uint256',
1506
- name: '',
1507
- type: 'uint256',
1508
- },
1509
- ],
1500
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1510
1501
  stateMutability: 'view',
1511
1502
  type: 'function',
1512
1503
  },
@@ -1521,36 +1512,12 @@ export const portal2Abi = [
1521
1512
  inputs: [
1522
1513
  {
1523
1514
  components: [
1524
- {
1525
- internalType: 'uint256',
1526
- name: 'nonce',
1527
- type: 'uint256',
1528
- },
1529
- {
1530
- internalType: 'address',
1531
- name: 'sender',
1532
- type: 'address',
1533
- },
1534
- {
1535
- internalType: 'address',
1536
- name: 'target',
1537
- type: 'address',
1538
- },
1539
- {
1540
- internalType: 'uint256',
1541
- name: 'value',
1542
- type: 'uint256',
1543
- },
1544
- {
1545
- internalType: 'uint256',
1546
- name: 'gasLimit',
1547
- type: 'uint256',
1548
- },
1549
- {
1550
- internalType: 'bytes',
1551
- name: 'data',
1552
- type: 'bytes',
1553
- },
1515
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1516
+ { internalType: 'address', name: 'sender', type: 'address' },
1517
+ { internalType: 'address', name: 'target', type: 'address' },
1518
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
1519
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1520
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
1554
1521
  ],
1555
1522
  internalType: 'struct Types.WithdrawalTransaction',
1556
1523
  name: '_tx',
@@ -1565,32 +1532,36 @@ export const portal2Abi = [
1565
1532
  {
1566
1533
  inputs: [
1567
1534
  {
1568
- internalType: 'bytes32',
1569
- name: '',
1570
- type: 'bytes32',
1535
+ components: [
1536
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1537
+ { internalType: 'address', name: 'sender', type: 'address' },
1538
+ { internalType: 'address', name: 'target', type: 'address' },
1539
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
1540
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1541
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
1542
+ ],
1543
+ internalType: 'struct Types.WithdrawalTransaction',
1544
+ name: '_tx',
1545
+ type: 'tuple',
1571
1546
  },
1547
+ { internalType: 'address', name: '_proofSubmitter', type: 'address' },
1572
1548
  ],
1549
+ name: 'finalizeWithdrawalTransactionExternalProof',
1550
+ outputs: [],
1551
+ stateMutability: 'nonpayable',
1552
+ type: 'function',
1553
+ },
1554
+ {
1555
+ inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1573
1556
  name: 'finalizedWithdrawals',
1574
- outputs: [
1575
- {
1576
- internalType: 'bool',
1577
- name: '',
1578
- type: 'bool',
1579
- },
1580
- ],
1557
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1581
1558
  stateMutability: 'view',
1582
1559
  type: 'function',
1583
1560
  },
1584
1561
  {
1585
1562
  inputs: [],
1586
1563
  name: 'guardian',
1587
- outputs: [
1588
- {
1589
- internalType: 'address',
1590
- name: '',
1591
- type: 'address',
1592
- },
1593
- ],
1564
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1594
1565
  stateMutability: 'view',
1595
1566
  type: 'function',
1596
1567
  },
@@ -1611,6 +1582,11 @@ export const portal2Abi = [
1611
1582
  name: '_superchainConfig',
1612
1583
  type: 'address',
1613
1584
  },
1585
+ {
1586
+ internalType: 'GameType',
1587
+ name: '_initialRespectedGameType',
1588
+ type: 'uint32',
1589
+ },
1614
1590
  ],
1615
1591
  name: 'initialize',
1616
1592
  outputs: [],
@@ -1620,54 +1596,33 @@ export const portal2Abi = [
1620
1596
  {
1621
1597
  inputs: [],
1622
1598
  name: 'l2Sender',
1623
- outputs: [
1624
- {
1625
- internalType: 'address',
1626
- name: '',
1627
- type: 'address',
1628
- },
1629
- ],
1599
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1630
1600
  stateMutability: 'view',
1631
1601
  type: 'function',
1632
1602
  },
1633
1603
  {
1634
- inputs: [
1635
- {
1636
- internalType: 'uint64',
1637
- name: '_byteCount',
1638
- type: 'uint64',
1639
- },
1640
- ],
1604
+ inputs: [{ internalType: 'uint64', name: '_byteCount', type: 'uint64' }],
1641
1605
  name: 'minimumGasLimit',
1642
- outputs: [
1643
- {
1644
- internalType: 'uint64',
1645
- name: '',
1646
- type: 'uint64',
1647
- },
1648
- ],
1606
+ outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
1649
1607
  stateMutability: 'pure',
1650
1608
  type: 'function',
1651
1609
  },
1610
+ {
1611
+ inputs: [
1612
+ { internalType: 'bytes32', name: '_withdrawalHash', type: 'bytes32' },
1613
+ ],
1614
+ name: 'numProofSubmitters',
1615
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1616
+ stateMutability: 'view',
1617
+ type: 'function',
1618
+ },
1652
1619
  {
1653
1620
  inputs: [],
1654
1621
  name: 'params',
1655
1622
  outputs: [
1656
- {
1657
- internalType: 'uint128',
1658
- name: 'prevBaseFee',
1659
- type: 'uint128',
1660
- },
1661
- {
1662
- internalType: 'uint64',
1663
- name: 'prevBoughtGas',
1664
- type: 'uint64',
1665
- },
1666
- {
1667
- internalType: 'uint64',
1668
- name: 'prevBlockNum',
1669
- type: 'uint64',
1670
- },
1623
+ { internalType: 'uint128', name: 'prevBaseFee', type: 'uint128' },
1624
+ { internalType: 'uint64', name: 'prevBoughtGas', type: 'uint64' },
1625
+ { internalType: 'uint64', name: 'prevBlockNum', type: 'uint64' },
1671
1626
  ],
1672
1627
  stateMutability: 'view',
1673
1628
  type: 'function',
@@ -1675,26 +1630,24 @@ export const portal2Abi = [
1675
1630
  {
1676
1631
  inputs: [],
1677
1632
  name: 'paused',
1678
- outputs: [
1679
- {
1680
- internalType: 'bool',
1681
- name: '',
1682
- type: 'bool',
1683
- },
1684
- ],
1633
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1685
1634
  stateMutability: 'view',
1686
1635
  type: 'function',
1687
1636
  },
1688
1637
  {
1689
1638
  inputs: [],
1690
1639
  name: 'proofMaturityDelaySeconds',
1691
- outputs: [
1692
- {
1693
- internalType: 'uint256',
1694
- name: '',
1695
- type: 'uint256',
1696
- },
1640
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1641
+ stateMutability: 'view',
1642
+ type: 'function',
1643
+ },
1644
+ {
1645
+ inputs: [
1646
+ { internalType: 'bytes32', name: '', type: 'bytes32' },
1647
+ { internalType: 'uint256', name: '', type: 'uint256' },
1697
1648
  ],
1649
+ name: 'proofSubmitters',
1650
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1698
1651
  stateMutability: 'view',
1699
1652
  type: 'function',
1700
1653
  },
@@ -1702,78 +1655,34 @@ export const portal2Abi = [
1702
1655
  inputs: [
1703
1656
  {
1704
1657
  components: [
1705
- {
1706
- internalType: 'uint256',
1707
- name: 'nonce',
1708
- type: 'uint256',
1709
- },
1710
- {
1711
- internalType: 'address',
1712
- name: 'sender',
1713
- type: 'address',
1714
- },
1715
- {
1716
- internalType: 'address',
1717
- name: 'target',
1718
- type: 'address',
1719
- },
1720
- {
1721
- internalType: 'uint256',
1722
- name: 'value',
1723
- type: 'uint256',
1724
- },
1725
- {
1726
- internalType: 'uint256',
1727
- name: 'gasLimit',
1728
- type: 'uint256',
1729
- },
1730
- {
1731
- internalType: 'bytes',
1732
- name: 'data',
1733
- type: 'bytes',
1734
- },
1658
+ { internalType: 'uint256', name: 'nonce', type: 'uint256' },
1659
+ { internalType: 'address', name: 'sender', type: 'address' },
1660
+ { internalType: 'address', name: 'target', type: 'address' },
1661
+ { internalType: 'uint256', name: 'value', type: 'uint256' },
1662
+ { internalType: 'uint256', name: 'gasLimit', type: 'uint256' },
1663
+ { internalType: 'bytes', name: 'data', type: 'bytes' },
1735
1664
  ],
1736
1665
  internalType: 'struct Types.WithdrawalTransaction',
1737
1666
  name: '_tx',
1738
1667
  type: 'tuple',
1739
1668
  },
1740
- {
1741
- internalType: 'uint256',
1742
- name: '_disputeGameIndex',
1743
- type: 'uint256',
1744
- },
1669
+ { internalType: 'uint256', name: '_disputeGameIndex', type: 'uint256' },
1745
1670
  {
1746
1671
  components: [
1747
- {
1748
- internalType: 'bytes32',
1749
- name: 'version',
1750
- type: 'bytes32',
1751
- },
1752
- {
1753
- internalType: 'bytes32',
1754
- name: 'stateRoot',
1755
- type: 'bytes32',
1756
- },
1672
+ { internalType: 'bytes32', name: 'version', type: 'bytes32' },
1673
+ { internalType: 'bytes32', name: 'stateRoot', type: 'bytes32' },
1757
1674
  {
1758
1675
  internalType: 'bytes32',
1759
1676
  name: 'messagePasserStorageRoot',
1760
1677
  type: 'bytes32',
1761
1678
  },
1762
- {
1763
- internalType: 'bytes32',
1764
- name: 'latestBlockhash',
1765
- type: 'bytes32',
1766
- },
1679
+ { internalType: 'bytes32', name: 'latestBlockhash', type: 'bytes32' },
1767
1680
  ],
1768
1681
  internalType: 'struct Types.OutputRootProof',
1769
1682
  name: '_outputRootProof',
1770
1683
  type: 'tuple',
1771
1684
  },
1772
- {
1773
- internalType: 'bytes[]',
1774
- name: '_withdrawalProof',
1775
- type: 'bytes[]',
1776
- },
1685
+ { internalType: 'bytes[]', name: '_withdrawalProof', type: 'bytes[]' },
1777
1686
  ],
1778
1687
  name: 'proveWithdrawalTransaction',
1779
1688
  outputs: [],
@@ -1782,11 +1691,8 @@ export const portal2Abi = [
1782
1691
  },
1783
1692
  {
1784
1693
  inputs: [
1785
- {
1786
- internalType: 'bytes32',
1787
- name: '',
1788
- type: 'bytes32',
1789
- },
1694
+ { internalType: 'bytes32', name: '', type: 'bytes32' },
1695
+ { internalType: 'address', name: '', type: 'address' },
1790
1696
  ],
1791
1697
  name: 'provenWithdrawals',
1792
1698
  outputs: [
@@ -1795,11 +1701,7 @@ export const portal2Abi = [
1795
1701
  name: 'disputeGameProxy',
1796
1702
  type: 'address',
1797
1703
  },
1798
- {
1799
- internalType: 'uint64',
1800
- name: 'timestamp',
1801
- type: 'uint64',
1802
- },
1704
+ { internalType: 'uint64', name: 'timestamp', type: 'uint64' },
1803
1705
  ],
1804
1706
  stateMutability: 'view',
1805
1707
  type: 'function',
@@ -1807,37 +1709,19 @@ export const portal2Abi = [
1807
1709
  {
1808
1710
  inputs: [],
1809
1711
  name: 'respectedGameType',
1810
- outputs: [
1811
- {
1812
- internalType: 'GameType',
1813
- name: '',
1814
- type: 'uint32',
1815
- },
1816
- ],
1712
+ outputs: [{ internalType: 'GameType', name: '', type: 'uint32' }],
1817
1713
  stateMutability: 'view',
1818
1714
  type: 'function',
1819
1715
  },
1820
1716
  {
1821
1717
  inputs: [],
1822
1718
  name: 'respectedGameTypeUpdatedAt',
1823
- outputs: [
1824
- {
1825
- internalType: 'uint64',
1826
- name: '',
1827
- type: 'uint64',
1828
- },
1829
- ],
1719
+ outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
1830
1720
  stateMutability: 'view',
1831
1721
  type: 'function',
1832
1722
  },
1833
1723
  {
1834
- inputs: [
1835
- {
1836
- internalType: 'GameType',
1837
- name: '_gameType',
1838
- type: 'uint32',
1839
- },
1840
- ],
1724
+ inputs: [{ internalType: 'GameType', name: '_gameType', type: 'uint32' }],
1841
1725
  name: 'setRespectedGameType',
1842
1726
  outputs: [],
1843
1727
  stateMutability: 'nonpayable',
@@ -1847,11 +1731,7 @@ export const portal2Abi = [
1847
1731
  inputs: [],
1848
1732
  name: 'superchainConfig',
1849
1733
  outputs: [
1850
- {
1851
- internalType: 'contract SuperchainConfig',
1852
- name: '',
1853
- type: 'address',
1854
- },
1734
+ { internalType: 'contract SuperchainConfig', name: '', type: 'address' },
1855
1735
  ],
1856
1736
  stateMutability: 'view',
1857
1737
  type: 'function',
@@ -1860,11 +1740,7 @@ export const portal2Abi = [
1860
1740
  inputs: [],
1861
1741
  name: 'systemConfig',
1862
1742
  outputs: [
1863
- {
1864
- internalType: 'contract SystemConfig',
1865
- name: '',
1866
- type: 'address',
1867
- },
1743
+ { internalType: 'contract SystemConfig', name: '', type: 'address' },
1868
1744
  ],
1869
1745
  stateMutability: 'view',
1870
1746
  type: 'function',
@@ -1872,104 +1748,11 @@ export const portal2Abi = [
1872
1748
  {
1873
1749
  inputs: [],
1874
1750
  name: 'version',
1875
- outputs: [
1876
- {
1877
- internalType: 'string',
1878
- name: '',
1879
- type: 'string',
1880
- },
1881
- ],
1751
+ outputs: [{ internalType: 'string', name: '', type: 'string' }],
1882
1752
  stateMutability: 'view',
1883
1753
  type: 'function',
1884
1754
  },
1885
- {
1886
- anonymous: false,
1887
- inputs: [
1888
- {
1889
- indexed: false,
1890
- internalType: 'uint8',
1891
- name: 'version',
1892
- type: 'uint8',
1893
- },
1894
- ],
1895
- name: 'Initialized',
1896
- type: 'event',
1897
- },
1898
- {
1899
- anonymous: false,
1900
- inputs: [
1901
- {
1902
- indexed: true,
1903
- internalType: 'address',
1904
- name: 'from',
1905
- type: 'address',
1906
- },
1907
- {
1908
- indexed: true,
1909
- internalType: 'address',
1910
- name: 'to',
1911
- type: 'address',
1912
- },
1913
- {
1914
- indexed: true,
1915
- internalType: 'uint256',
1916
- name: 'version',
1917
- type: 'uint256',
1918
- },
1919
- {
1920
- indexed: false,
1921
- internalType: 'bytes',
1922
- name: 'opaqueData',
1923
- type: 'bytes',
1924
- },
1925
- ],
1926
- name: 'TransactionDeposited',
1927
- type: 'event',
1928
- },
1929
- {
1930
- anonymous: false,
1931
- inputs: [
1932
- {
1933
- indexed: true,
1934
- internalType: 'bytes32',
1935
- name: 'withdrawalHash',
1936
- type: 'bytes32',
1937
- },
1938
- {
1939
- indexed: false,
1940
- internalType: 'bool',
1941
- name: 'success',
1942
- type: 'bool',
1943
- },
1944
- ],
1945
- name: 'WithdrawalFinalized',
1946
- type: 'event',
1947
- },
1948
- {
1949
- anonymous: false,
1950
- inputs: [
1951
- {
1952
- indexed: true,
1953
- internalType: 'bytes32',
1954
- name: 'withdrawalHash',
1955
- type: 'bytes32',
1956
- },
1957
- {
1958
- indexed: true,
1959
- internalType: 'address',
1960
- name: 'from',
1961
- type: 'address',
1962
- },
1963
- {
1964
- indexed: true,
1965
- internalType: 'address',
1966
- name: 'to',
1967
- type: 'address',
1968
- },
1969
- ],
1970
- name: 'WithdrawalProven',
1971
- type: 'event',
1972
- },
1755
+ { stateMutability: 'payable', type: 'receive' },
1973
1756
  ] as const
1974
1757
 
1975
1758
  export const portalAbi = [