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