viem 2.23.1 → 2.23.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 +38 -0
- package/_cjs/chains/definitions/b3.js +6 -0
- package/_cjs/chains/definitions/b3.js.map +1 -1
- package/_cjs/chains/definitions/b3Sepolia.js +6 -0
- package/_cjs/chains/definitions/b3Sepolia.js.map +1 -1
- package/_cjs/chains/definitions/berachainTestnet.js +6 -0
- package/_cjs/chains/definitions/berachainTestnet.js.map +1 -1
- package/_cjs/chains/definitions/donatuz.js +1 -1
- package/_cjs/chains/definitions/donatuz.js.map +1 -1
- package/_cjs/chains/definitions/hashkeyChainTestnet.js +1 -0
- package/_cjs/chains/definitions/hashkeyChainTestnet.js.map +1 -1
- package/_cjs/chains/definitions/haustTestnet.js +26 -0
- package/_cjs/chains/definitions/haustTestnet.js.map +1 -0
- package/_cjs/chains/definitions/lumoz.js +26 -0
- package/_cjs/chains/definitions/lumoz.js.map +1 -0
- package/_cjs/chains/definitions/lumozTestnet.js +20 -0
- package/_cjs/chains/definitions/lumozTestnet.js.map +1 -0
- package/_cjs/chains/definitions/newton.js +26 -0
- package/_cjs/chains/definitions/newton.js.map +1 -0
- package/_cjs/chains/definitions/peaq.js +41 -0
- package/_cjs/chains/definitions/peaq.js.map +1 -0
- package/_cjs/chains/definitions/polynomial.js +31 -0
- package/_cjs/chains/definitions/polynomial.js.map +1 -0
- package/_cjs/chains/definitions/polynomialSepolia.js +31 -0
- package/_cjs/chains/definitions/polynomialSepolia.js.map +1 -0
- package/_cjs/chains/definitions/pumpfiTestnet.js +26 -0
- package/_cjs/chains/definitions/pumpfiTestnet.js.map +1 -0
- package/_cjs/chains/definitions/story.js +7 -0
- package/_cjs/chains/definitions/story.js.map +1 -1
- package/_cjs/chains/definitions/storyAeneid.js +31 -0
- package/_cjs/chains/definitions/storyAeneid.js.map +1 -0
- package/_cjs/chains/definitions/unichain.js +21 -1
- package/_cjs/chains/definitions/unichain.js.map +1 -1
- package/_cjs/chains/definitions/worldchain.js +1 -1
- package/_cjs/chains/index.js +25 -7
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/op-stack/abis.js +7 -96
- package/_cjs/op-stack/abis.js.map +1 -1
- package/_cjs/op-stack/actions/getWithdrawalStatus.js +21 -14
- package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_cjs/op-stack/chains.js +3 -1
- package/_cjs/op-stack/chains.js.map +1 -1
- package/_cjs/zksync/actions/finalizeWithdrawal.js +99 -0
- package/_cjs/zksync/actions/finalizeWithdrawal.js.map +1 -0
- package/_cjs/zksync/constants/abis.js +724 -1
- package/_cjs/zksync/constants/abis.js.map +1 -1
- package/_cjs/zksync/constants/address.js +2 -1
- package/_cjs/zksync/constants/address.js.map +1 -1
- package/_cjs/zksync/decorators/walletL1.js +2 -0
- package/_cjs/zksync/decorators/walletL1.js.map +1 -1
- package/_cjs/zksync/errors/bridge.js +11 -1
- package/_cjs/zksync/errors/bridge.js.map +1 -1
- package/_cjs/zksync/index.js +4 -2
- package/_cjs/zksync/index.js.map +1 -1
- package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +19 -0
- package/_cjs/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
- package/_cjs/zksync/utils/bridge/getWithdrawalLog.js +19 -0
- package/_cjs/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
- package/_esm/chains/definitions/b3.js +6 -0
- package/_esm/chains/definitions/b3.js.map +1 -1
- package/_esm/chains/definitions/b3Sepolia.js +6 -0
- package/_esm/chains/definitions/b3Sepolia.js.map +1 -1
- package/_esm/chains/definitions/berachainTestnet.js +6 -0
- package/_esm/chains/definitions/berachainTestnet.js.map +1 -1
- package/_esm/chains/definitions/donatuz.js +1 -1
- package/_esm/chains/definitions/donatuz.js.map +1 -1
- package/_esm/chains/definitions/hashkeyChainTestnet.js +1 -0
- package/_esm/chains/definitions/hashkeyChainTestnet.js.map +1 -1
- package/_esm/chains/definitions/haustTestnet.js +23 -0
- package/_esm/chains/definitions/haustTestnet.js.map +1 -0
- package/_esm/chains/definitions/lumoz.js +23 -0
- package/_esm/chains/definitions/lumoz.js.map +1 -0
- package/_esm/chains/definitions/lumozTestnet.js +17 -0
- package/_esm/chains/definitions/lumozTestnet.js.map +1 -0
- package/_esm/chains/definitions/newton.js +23 -0
- package/_esm/chains/definitions/newton.js.map +1 -0
- package/_esm/chains/definitions/peaq.js +38 -0
- package/_esm/chains/definitions/peaq.js.map +1 -0
- package/_esm/chains/definitions/polynomial.js +28 -0
- package/_esm/chains/definitions/polynomial.js.map +1 -0
- package/_esm/chains/definitions/polynomialSepolia.js +28 -0
- package/_esm/chains/definitions/polynomialSepolia.js.map +1 -0
- package/_esm/chains/definitions/pumpfiTestnet.js +23 -0
- package/_esm/chains/definitions/pumpfiTestnet.js.map +1 -0
- package/_esm/chains/definitions/story.js +7 -0
- package/_esm/chains/definitions/story.js.map +1 -1
- package/_esm/chains/definitions/storyAeneid.js +28 -0
- package/_esm/chains/definitions/storyAeneid.js.map +1 -0
- package/_esm/chains/definitions/unichain.js +21 -1
- package/_esm/chains/definitions/unichain.js.map +1 -1
- package/_esm/chains/definitions/worldchain.js +1 -1
- package/_esm/chains/index.js +11 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/op-stack/abis.js +7 -96
- package/_esm/op-stack/abis.js.map +1 -1
- package/_esm/op-stack/actions/getWithdrawalStatus.js +25 -14
- package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_esm/op-stack/chains.js +1 -0
- package/_esm/op-stack/chains.js.map +1 -1
- package/_esm/zksync/actions/finalizeWithdrawal.js +147 -0
- package/_esm/zksync/actions/finalizeWithdrawal.js.map +1 -0
- package/_esm/zksync/constants/abis.js +723 -0
- package/_esm/zksync/constants/abis.js.map +1 -1
- package/_esm/zksync/constants/address.js +1 -0
- package/_esm/zksync/constants/address.js.map +1 -1
- package/_esm/zksync/decorators/walletL1.js +2 -0
- package/_esm/zksync/decorators/walletL1.js.map +1 -1
- package/_esm/zksync/errors/bridge.js +9 -0
- package/_esm/zksync/errors/bridge.js.map +1 -1
- package/_esm/zksync/index.js +1 -0
- package/_esm/zksync/index.js.map +1 -1
- package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js +17 -0
- package/_esm/zksync/utils/bridge/getWithdrawalL2ToL1Log.js.map +1 -0
- package/_esm/zksync/utils/bridge/getWithdrawalLog.js +17 -0
- package/_esm/zksync/utils/bridge/getWithdrawalLog.js.map +1 -0
- package/_types/chains/definitions/b3.d.ts +6 -10
- package/_types/chains/definitions/b3.d.ts.map +1 -1
- package/_types/chains/definitions/b3Sepolia.d.ts +6 -10
- package/_types/chains/definitions/b3Sepolia.d.ts.map +1 -1
- package/_types/chains/definitions/berachainTestnet.d.ts +6 -10
- package/_types/chains/definitions/berachainTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/donatuz.d.ts +1 -1
- package/_types/chains/definitions/hashkeyChainTestnet.d.ts +1 -1
- package/_types/chains/definitions/hashkeyChainTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/haustTestnet.d.ts +37 -0
- package/_types/chains/definitions/haustTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/lumoz.d.ts +37 -0
- package/_types/chains/definitions/lumoz.d.ts.map +1 -0
- package/_types/chains/definitions/lumozTestnet.d.ts +43 -0
- package/_types/chains/definitions/lumozTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/newton.d.ts +37 -0
- package/_types/chains/definitions/newton.d.ts.map +1 -0
- package/_types/chains/definitions/peaq.d.ts +34 -0
- package/_types/chains/definitions/peaq.d.ts.map +1 -0
- package/_types/chains/definitions/polynomial.d.ts +32 -0
- package/_types/chains/definitions/polynomial.d.ts.map +1 -0
- package/_types/chains/definitions/polynomialSepolia.d.ts +32 -0
- package/_types/chains/definitions/polynomialSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/pumpfiTestnet.d.ts +37 -0
- package/_types/chains/definitions/pumpfiTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/story.d.ts +6 -11
- package/_types/chains/definitions/story.d.ts.map +1 -1
- package/_types/chains/definitions/storyAeneid.d.ts +34 -0
- package/_types/chains/definitions/storyAeneid.d.ts.map +1 -0
- package/_types/chains/definitions/unichain.d.ts +269 -4
- package/_types/chains/definitions/unichain.d.ts.map +1 -1
- package/_types/chains/definitions/worldchain.d.ts +1 -1
- package/_types/chains/index.d.ts +11 -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 +7 -77
- package/_types/op-stack/abis.d.ts.map +1 -1
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
- package/_types/op-stack/chains.d.ts +1 -0
- package/_types/op-stack/chains.d.ts.map +1 -1
- package/_types/zksync/actions/finalizeWithdrawal.d.ts +73 -0
- package/_types/zksync/actions/finalizeWithdrawal.d.ts.map +1 -0
- package/_types/zksync/constants/abis.d.ts +567 -0
- package/_types/zksync/constants/abis.d.ts.map +1 -1
- package/_types/zksync/constants/address.d.ts +1 -0
- package/_types/zksync/constants/address.d.ts.map +1 -1
- package/_types/zksync/decorators/walletL1.d.ts +31 -0
- package/_types/zksync/decorators/walletL1.d.ts.map +1 -1
- package/_types/zksync/errors/bridge.d.ts +9 -0
- package/_types/zksync/errors/bridge.d.ts.map +1 -1
- package/_types/zksync/index.d.ts +1 -0
- package/_types/zksync/index.d.ts.map +1 -1
- package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts +20 -0
- package/_types/zksync/utils/bridge/getWithdrawalL2ToL1Log.d.ts.map +1 -0
- package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts +20 -0
- package/_types/zksync/utils/bridge/getWithdrawalLog.d.ts.map +1 -0
- package/chains/definitions/b3.ts +6 -0
- package/chains/definitions/b3Sepolia.ts +6 -0
- package/chains/definitions/berachainTestnet.ts +6 -0
- package/chains/definitions/donatuz.ts +1 -1
- package/chains/definitions/hashkeyChainTestnet.ts +1 -0
- package/chains/definitions/haustTestnet.ts +23 -0
- package/chains/definitions/lumoz.ts +23 -0
- package/chains/definitions/lumozTestnet.ts +17 -0
- package/chains/definitions/newton.ts +23 -0
- package/chains/definitions/peaq.ts +38 -0
- package/chains/definitions/polynomial.ts +28 -0
- package/chains/definitions/polynomialSepolia.ts +28 -0
- package/chains/definitions/pumpfiTestnet.ts +23 -0
- package/chains/definitions/story.ts +7 -0
- package/chains/definitions/storyAeneid.ts +28 -0
- package/chains/definitions/unichain.ts +22 -1
- package/chains/definitions/worldchain.ts +1 -1
- package/chains/index.ts +11 -0
- package/errors/version.ts +1 -1
- package/op-stack/abis.ts +7 -96
- package/op-stack/actions/getWithdrawalStatus.ts +28 -17
- package/op-stack/chains.ts +1 -0
- package/package.json +1 -1
- package/zksync/actions/finalizeWithdrawal.ts +248 -0
- package/zksync/constants/abis.ts +724 -0
- package/zksync/constants/address.ts +3 -0
- package/zksync/decorators/walletL1.ts +48 -0
- package/zksync/errors/bridge.ts +17 -0
- package/zksync/index.ts +6 -0
- package/zksync/utils/bridge/getWithdrawalL2ToL1Log.ts +47 -0
- package/zksync/utils/bridge/getWithdrawalLog.ts +47 -0
package/zksync/constants/abis.ts
CHANGED
@@ -647,6 +647,730 @@ export const l2SharedBridgeAbi = [
|
|
647
647
|
},
|
648
648
|
] as const
|
649
649
|
|
650
|
+
export const l1SharedBridgeAbi = [
|
651
|
+
{
|
652
|
+
anonymous: false,
|
653
|
+
inputs: [
|
654
|
+
{
|
655
|
+
indexed: true,
|
656
|
+
internalType: 'uint256',
|
657
|
+
name: 'chainId',
|
658
|
+
type: 'uint256',
|
659
|
+
},
|
660
|
+
{
|
661
|
+
indexed: true,
|
662
|
+
internalType: 'address',
|
663
|
+
name: 'from',
|
664
|
+
type: 'address',
|
665
|
+
},
|
666
|
+
{
|
667
|
+
indexed: false,
|
668
|
+
internalType: 'address',
|
669
|
+
name: 'l1Token',
|
670
|
+
type: 'address',
|
671
|
+
},
|
672
|
+
{
|
673
|
+
indexed: false,
|
674
|
+
internalType: 'uint256',
|
675
|
+
name: 'amount',
|
676
|
+
type: 'uint256',
|
677
|
+
},
|
678
|
+
],
|
679
|
+
name: 'BridgehubDepositBaseTokenInitiated',
|
680
|
+
type: 'event',
|
681
|
+
},
|
682
|
+
{
|
683
|
+
anonymous: false,
|
684
|
+
inputs: [
|
685
|
+
{
|
686
|
+
indexed: true,
|
687
|
+
internalType: 'uint256',
|
688
|
+
name: 'chainId',
|
689
|
+
type: 'uint256',
|
690
|
+
},
|
691
|
+
{
|
692
|
+
indexed: true,
|
693
|
+
internalType: 'bytes32',
|
694
|
+
name: 'txDataHash',
|
695
|
+
type: 'bytes32',
|
696
|
+
},
|
697
|
+
{
|
698
|
+
indexed: true,
|
699
|
+
internalType: 'bytes32',
|
700
|
+
name: 'l2DepositTxHash',
|
701
|
+
type: 'bytes32',
|
702
|
+
},
|
703
|
+
],
|
704
|
+
name: 'BridgehubDepositFinalized',
|
705
|
+
type: 'event',
|
706
|
+
},
|
707
|
+
{
|
708
|
+
anonymous: false,
|
709
|
+
inputs: [
|
710
|
+
{
|
711
|
+
indexed: true,
|
712
|
+
internalType: 'uint256',
|
713
|
+
name: 'chainId',
|
714
|
+
type: 'uint256',
|
715
|
+
},
|
716
|
+
{
|
717
|
+
indexed: true,
|
718
|
+
internalType: 'bytes32',
|
719
|
+
name: 'txDataHash',
|
720
|
+
type: 'bytes32',
|
721
|
+
},
|
722
|
+
{
|
723
|
+
indexed: true,
|
724
|
+
internalType: 'address',
|
725
|
+
name: 'from',
|
726
|
+
type: 'address',
|
727
|
+
},
|
728
|
+
{
|
729
|
+
indexed: false,
|
730
|
+
internalType: 'address',
|
731
|
+
name: 'to',
|
732
|
+
type: 'address',
|
733
|
+
},
|
734
|
+
{
|
735
|
+
indexed: false,
|
736
|
+
internalType: 'address',
|
737
|
+
name: 'l1Token',
|
738
|
+
type: 'address',
|
739
|
+
},
|
740
|
+
{
|
741
|
+
indexed: false,
|
742
|
+
internalType: 'uint256',
|
743
|
+
name: 'amount',
|
744
|
+
type: 'uint256',
|
745
|
+
},
|
746
|
+
],
|
747
|
+
name: 'BridgehubDepositInitiated',
|
748
|
+
type: 'event',
|
749
|
+
},
|
750
|
+
{
|
751
|
+
anonymous: false,
|
752
|
+
inputs: [
|
753
|
+
{
|
754
|
+
indexed: true,
|
755
|
+
internalType: 'uint256',
|
756
|
+
name: 'chainId',
|
757
|
+
type: 'uint256',
|
758
|
+
},
|
759
|
+
{
|
760
|
+
indexed: true,
|
761
|
+
internalType: 'address',
|
762
|
+
name: 'to',
|
763
|
+
type: 'address',
|
764
|
+
},
|
765
|
+
{
|
766
|
+
indexed: true,
|
767
|
+
internalType: 'address',
|
768
|
+
name: 'l1Token',
|
769
|
+
type: 'address',
|
770
|
+
},
|
771
|
+
{
|
772
|
+
indexed: false,
|
773
|
+
internalType: 'uint256',
|
774
|
+
name: 'amount',
|
775
|
+
type: 'uint256',
|
776
|
+
},
|
777
|
+
],
|
778
|
+
name: 'ClaimedFailedDepositSharedBridge',
|
779
|
+
type: 'event',
|
780
|
+
},
|
781
|
+
{
|
782
|
+
anonymous: false,
|
783
|
+
inputs: [
|
784
|
+
{
|
785
|
+
indexed: true,
|
786
|
+
internalType: 'uint256',
|
787
|
+
name: 'chainId',
|
788
|
+
type: 'uint256',
|
789
|
+
},
|
790
|
+
{
|
791
|
+
indexed: true,
|
792
|
+
internalType: 'bytes32',
|
793
|
+
name: 'l2DepositTxHash',
|
794
|
+
type: 'bytes32',
|
795
|
+
},
|
796
|
+
{
|
797
|
+
indexed: true,
|
798
|
+
internalType: 'address',
|
799
|
+
name: 'from',
|
800
|
+
type: 'address',
|
801
|
+
},
|
802
|
+
{
|
803
|
+
indexed: false,
|
804
|
+
internalType: 'address',
|
805
|
+
name: 'to',
|
806
|
+
type: 'address',
|
807
|
+
},
|
808
|
+
{
|
809
|
+
indexed: false,
|
810
|
+
internalType: 'address',
|
811
|
+
name: 'l1Token',
|
812
|
+
type: 'address',
|
813
|
+
},
|
814
|
+
{
|
815
|
+
indexed: false,
|
816
|
+
internalType: 'uint256',
|
817
|
+
name: 'amount',
|
818
|
+
type: 'uint256',
|
819
|
+
},
|
820
|
+
],
|
821
|
+
name: 'LegacyDepositInitiated',
|
822
|
+
type: 'event',
|
823
|
+
},
|
824
|
+
{
|
825
|
+
anonymous: false,
|
826
|
+
inputs: [
|
827
|
+
{
|
828
|
+
indexed: true,
|
829
|
+
internalType: 'uint256',
|
830
|
+
name: 'chainId',
|
831
|
+
type: 'uint256',
|
832
|
+
},
|
833
|
+
{
|
834
|
+
indexed: true,
|
835
|
+
internalType: 'address',
|
836
|
+
name: 'to',
|
837
|
+
type: 'address',
|
838
|
+
},
|
839
|
+
{
|
840
|
+
indexed: true,
|
841
|
+
internalType: 'address',
|
842
|
+
name: 'l1Token',
|
843
|
+
type: 'address',
|
844
|
+
},
|
845
|
+
{
|
846
|
+
indexed: false,
|
847
|
+
internalType: 'uint256',
|
848
|
+
name: 'amount',
|
849
|
+
type: 'uint256',
|
850
|
+
},
|
851
|
+
],
|
852
|
+
name: 'WithdrawalFinalizedSharedBridge',
|
853
|
+
type: 'event',
|
854
|
+
},
|
855
|
+
{
|
856
|
+
inputs: [],
|
857
|
+
name: 'BRIDGE_HUB',
|
858
|
+
outputs: [
|
859
|
+
{
|
860
|
+
internalType: 'contract IBridgehub',
|
861
|
+
name: '',
|
862
|
+
type: 'address',
|
863
|
+
},
|
864
|
+
],
|
865
|
+
stateMutability: 'view',
|
866
|
+
type: 'function',
|
867
|
+
},
|
868
|
+
{
|
869
|
+
inputs: [],
|
870
|
+
name: 'L1_WETH_TOKEN',
|
871
|
+
outputs: [
|
872
|
+
{
|
873
|
+
internalType: 'address',
|
874
|
+
name: '',
|
875
|
+
type: 'address',
|
876
|
+
},
|
877
|
+
],
|
878
|
+
stateMutability: 'view',
|
879
|
+
type: 'function',
|
880
|
+
},
|
881
|
+
{
|
882
|
+
inputs: [
|
883
|
+
{
|
884
|
+
internalType: 'uint256',
|
885
|
+
name: '_chainId',
|
886
|
+
type: 'uint256',
|
887
|
+
},
|
888
|
+
{
|
889
|
+
internalType: 'bytes32',
|
890
|
+
name: '_txDataHash',
|
891
|
+
type: 'bytes32',
|
892
|
+
},
|
893
|
+
{
|
894
|
+
internalType: 'bytes32',
|
895
|
+
name: '_txHash',
|
896
|
+
type: 'bytes32',
|
897
|
+
},
|
898
|
+
],
|
899
|
+
name: 'bridgehubConfirmL2Transaction',
|
900
|
+
outputs: [],
|
901
|
+
stateMutability: 'nonpayable',
|
902
|
+
type: 'function',
|
903
|
+
},
|
904
|
+
{
|
905
|
+
inputs: [
|
906
|
+
{
|
907
|
+
internalType: 'uint256',
|
908
|
+
name: '_chainId',
|
909
|
+
type: 'uint256',
|
910
|
+
},
|
911
|
+
{
|
912
|
+
internalType: 'address',
|
913
|
+
name: '_prevMsgSender',
|
914
|
+
type: 'address',
|
915
|
+
},
|
916
|
+
{
|
917
|
+
internalType: 'uint256',
|
918
|
+
name: '_l2Value',
|
919
|
+
type: 'uint256',
|
920
|
+
},
|
921
|
+
{
|
922
|
+
internalType: 'bytes',
|
923
|
+
name: '_data',
|
924
|
+
type: 'bytes',
|
925
|
+
},
|
926
|
+
],
|
927
|
+
name: 'bridgehubDeposit',
|
928
|
+
outputs: [
|
929
|
+
{
|
930
|
+
components: [
|
931
|
+
{
|
932
|
+
internalType: 'bytes32',
|
933
|
+
name: 'magicValue',
|
934
|
+
type: 'bytes32',
|
935
|
+
},
|
936
|
+
{
|
937
|
+
internalType: 'address',
|
938
|
+
name: 'l2Contract',
|
939
|
+
type: 'address',
|
940
|
+
},
|
941
|
+
{
|
942
|
+
internalType: 'bytes',
|
943
|
+
name: 'l2Calldata',
|
944
|
+
type: 'bytes',
|
945
|
+
},
|
946
|
+
{
|
947
|
+
internalType: 'bytes[]',
|
948
|
+
name: 'factoryDeps',
|
949
|
+
type: 'bytes[]',
|
950
|
+
},
|
951
|
+
{
|
952
|
+
internalType: 'bytes32',
|
953
|
+
name: 'txDataHash',
|
954
|
+
type: 'bytes32',
|
955
|
+
},
|
956
|
+
],
|
957
|
+
internalType: 'struct L2TransactionRequestTwoBridgesInner',
|
958
|
+
name: 'request',
|
959
|
+
type: 'tuple',
|
960
|
+
},
|
961
|
+
],
|
962
|
+
stateMutability: 'payable',
|
963
|
+
type: 'function',
|
964
|
+
},
|
965
|
+
{
|
966
|
+
inputs: [
|
967
|
+
{
|
968
|
+
internalType: 'uint256',
|
969
|
+
name: '_chainId',
|
970
|
+
type: 'uint256',
|
971
|
+
},
|
972
|
+
{
|
973
|
+
internalType: 'address',
|
974
|
+
name: '_prevMsgSender',
|
975
|
+
type: 'address',
|
976
|
+
},
|
977
|
+
{
|
978
|
+
internalType: 'address',
|
979
|
+
name: '_l1Token',
|
980
|
+
type: 'address',
|
981
|
+
},
|
982
|
+
{
|
983
|
+
internalType: 'uint256',
|
984
|
+
name: '_amount',
|
985
|
+
type: 'uint256',
|
986
|
+
},
|
987
|
+
],
|
988
|
+
name: 'bridgehubDepositBaseToken',
|
989
|
+
outputs: [],
|
990
|
+
stateMutability: 'payable',
|
991
|
+
type: 'function',
|
992
|
+
},
|
993
|
+
{
|
994
|
+
inputs: [
|
995
|
+
{
|
996
|
+
internalType: 'uint256',
|
997
|
+
name: '_chainId',
|
998
|
+
type: 'uint256',
|
999
|
+
},
|
1000
|
+
{
|
1001
|
+
internalType: 'address',
|
1002
|
+
name: '_depositSender',
|
1003
|
+
type: 'address',
|
1004
|
+
},
|
1005
|
+
{
|
1006
|
+
internalType: 'address',
|
1007
|
+
name: '_l1Token',
|
1008
|
+
type: 'address',
|
1009
|
+
},
|
1010
|
+
{
|
1011
|
+
internalType: 'uint256',
|
1012
|
+
name: '_amount',
|
1013
|
+
type: 'uint256',
|
1014
|
+
},
|
1015
|
+
{
|
1016
|
+
internalType: 'bytes32',
|
1017
|
+
name: '_l2TxHash',
|
1018
|
+
type: 'bytes32',
|
1019
|
+
},
|
1020
|
+
{
|
1021
|
+
internalType: 'uint256',
|
1022
|
+
name: '_l2BatchNumber',
|
1023
|
+
type: 'uint256',
|
1024
|
+
},
|
1025
|
+
{
|
1026
|
+
internalType: 'uint256',
|
1027
|
+
name: '_l2MessageIndex',
|
1028
|
+
type: 'uint256',
|
1029
|
+
},
|
1030
|
+
{
|
1031
|
+
internalType: 'uint16',
|
1032
|
+
name: '_l2TxNumberInBatch',
|
1033
|
+
type: 'uint16',
|
1034
|
+
},
|
1035
|
+
{
|
1036
|
+
internalType: 'bytes32[]',
|
1037
|
+
name: '_merkleProof',
|
1038
|
+
type: 'bytes32[]',
|
1039
|
+
},
|
1040
|
+
],
|
1041
|
+
name: 'claimFailedDeposit',
|
1042
|
+
outputs: [],
|
1043
|
+
stateMutability: 'nonpayable',
|
1044
|
+
type: 'function',
|
1045
|
+
},
|
1046
|
+
{
|
1047
|
+
inputs: [
|
1048
|
+
{
|
1049
|
+
internalType: 'address',
|
1050
|
+
name: '_depositSender',
|
1051
|
+
type: 'address',
|
1052
|
+
},
|
1053
|
+
{
|
1054
|
+
internalType: 'address',
|
1055
|
+
name: '_l1Token',
|
1056
|
+
type: 'address',
|
1057
|
+
},
|
1058
|
+
{
|
1059
|
+
internalType: 'uint256',
|
1060
|
+
name: '_amount',
|
1061
|
+
type: 'uint256',
|
1062
|
+
},
|
1063
|
+
{
|
1064
|
+
internalType: 'bytes32',
|
1065
|
+
name: '_l2TxHash',
|
1066
|
+
type: 'bytes32',
|
1067
|
+
},
|
1068
|
+
{
|
1069
|
+
internalType: 'uint256',
|
1070
|
+
name: '_l2BatchNumber',
|
1071
|
+
type: 'uint256',
|
1072
|
+
},
|
1073
|
+
{
|
1074
|
+
internalType: 'uint256',
|
1075
|
+
name: '_l2MessageIndex',
|
1076
|
+
type: 'uint256',
|
1077
|
+
},
|
1078
|
+
{
|
1079
|
+
internalType: 'uint16',
|
1080
|
+
name: '_l2TxNumberInBatch',
|
1081
|
+
type: 'uint16',
|
1082
|
+
},
|
1083
|
+
{
|
1084
|
+
internalType: 'bytes32[]',
|
1085
|
+
name: '_merkleProof',
|
1086
|
+
type: 'bytes32[]',
|
1087
|
+
},
|
1088
|
+
],
|
1089
|
+
name: 'claimFailedDepositLegacyErc20Bridge',
|
1090
|
+
outputs: [],
|
1091
|
+
stateMutability: 'nonpayable',
|
1092
|
+
type: 'function',
|
1093
|
+
},
|
1094
|
+
{
|
1095
|
+
inputs: [
|
1096
|
+
{
|
1097
|
+
internalType: 'uint256',
|
1098
|
+
name: '_chainId',
|
1099
|
+
type: 'uint256',
|
1100
|
+
},
|
1101
|
+
{
|
1102
|
+
internalType: 'bytes32',
|
1103
|
+
name: '_l2TxHash',
|
1104
|
+
type: 'bytes32',
|
1105
|
+
},
|
1106
|
+
],
|
1107
|
+
name: 'depositHappened',
|
1108
|
+
outputs: [
|
1109
|
+
{
|
1110
|
+
internalType: 'bytes32',
|
1111
|
+
name: '',
|
1112
|
+
type: 'bytes32',
|
1113
|
+
},
|
1114
|
+
],
|
1115
|
+
stateMutability: 'view',
|
1116
|
+
type: 'function',
|
1117
|
+
},
|
1118
|
+
{
|
1119
|
+
inputs: [
|
1120
|
+
{
|
1121
|
+
internalType: 'address',
|
1122
|
+
name: '_msgSender',
|
1123
|
+
type: 'address',
|
1124
|
+
},
|
1125
|
+
{
|
1126
|
+
internalType: 'address',
|
1127
|
+
name: '_l2Receiver',
|
1128
|
+
type: 'address',
|
1129
|
+
},
|
1130
|
+
{
|
1131
|
+
internalType: 'address',
|
1132
|
+
name: '_l1Token',
|
1133
|
+
type: 'address',
|
1134
|
+
},
|
1135
|
+
{
|
1136
|
+
internalType: 'uint256',
|
1137
|
+
name: '_amount',
|
1138
|
+
type: 'uint256',
|
1139
|
+
},
|
1140
|
+
{
|
1141
|
+
internalType: 'uint256',
|
1142
|
+
name: '_l2TxGasLimit',
|
1143
|
+
type: 'uint256',
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
internalType: 'uint256',
|
1147
|
+
name: '_l2TxGasPerPubdataByte',
|
1148
|
+
type: 'uint256',
|
1149
|
+
},
|
1150
|
+
{
|
1151
|
+
internalType: 'address',
|
1152
|
+
name: '_refundRecipient',
|
1153
|
+
type: 'address',
|
1154
|
+
},
|
1155
|
+
],
|
1156
|
+
name: 'depositLegacyErc20Bridge',
|
1157
|
+
outputs: [
|
1158
|
+
{
|
1159
|
+
internalType: 'bytes32',
|
1160
|
+
name: 'txHash',
|
1161
|
+
type: 'bytes32',
|
1162
|
+
},
|
1163
|
+
],
|
1164
|
+
stateMutability: 'payable',
|
1165
|
+
type: 'function',
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
inputs: [
|
1169
|
+
{
|
1170
|
+
internalType: 'uint256',
|
1171
|
+
name: '_chainId',
|
1172
|
+
type: 'uint256',
|
1173
|
+
},
|
1174
|
+
{
|
1175
|
+
internalType: 'uint256',
|
1176
|
+
name: '_l2BatchNumber',
|
1177
|
+
type: 'uint256',
|
1178
|
+
},
|
1179
|
+
{
|
1180
|
+
internalType: 'uint256',
|
1181
|
+
name: '_l2MessageIndex',
|
1182
|
+
type: 'uint256',
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
internalType: 'uint16',
|
1186
|
+
name: '_l2TxNumberInBatch',
|
1187
|
+
type: 'uint16',
|
1188
|
+
},
|
1189
|
+
{
|
1190
|
+
internalType: 'bytes',
|
1191
|
+
name: '_message',
|
1192
|
+
type: 'bytes',
|
1193
|
+
},
|
1194
|
+
{
|
1195
|
+
internalType: 'bytes32[]',
|
1196
|
+
name: '_merkleProof',
|
1197
|
+
type: 'bytes32[]',
|
1198
|
+
},
|
1199
|
+
],
|
1200
|
+
name: 'finalizeWithdrawal',
|
1201
|
+
outputs: [],
|
1202
|
+
stateMutability: 'nonpayable',
|
1203
|
+
type: 'function',
|
1204
|
+
},
|
1205
|
+
{
|
1206
|
+
inputs: [
|
1207
|
+
{
|
1208
|
+
internalType: 'uint256',
|
1209
|
+
name: '_l2BatchNumber',
|
1210
|
+
type: 'uint256',
|
1211
|
+
},
|
1212
|
+
{
|
1213
|
+
internalType: 'uint256',
|
1214
|
+
name: '_l2MessageIndex',
|
1215
|
+
type: 'uint256',
|
1216
|
+
},
|
1217
|
+
{
|
1218
|
+
internalType: 'uint16',
|
1219
|
+
name: '_l2TxNumberInBatch',
|
1220
|
+
type: 'uint16',
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
internalType: 'bytes',
|
1224
|
+
name: '_message',
|
1225
|
+
type: 'bytes',
|
1226
|
+
},
|
1227
|
+
{
|
1228
|
+
internalType: 'bytes32[]',
|
1229
|
+
name: '_merkleProof',
|
1230
|
+
type: 'bytes32[]',
|
1231
|
+
},
|
1232
|
+
],
|
1233
|
+
name: 'finalizeWithdrawalLegacyErc20Bridge',
|
1234
|
+
outputs: [
|
1235
|
+
{
|
1236
|
+
internalType: 'address',
|
1237
|
+
name: 'l1Receiver',
|
1238
|
+
type: 'address',
|
1239
|
+
},
|
1240
|
+
{
|
1241
|
+
internalType: 'address',
|
1242
|
+
name: 'l1Token',
|
1243
|
+
type: 'address',
|
1244
|
+
},
|
1245
|
+
{
|
1246
|
+
internalType: 'uint256',
|
1247
|
+
name: 'amount',
|
1248
|
+
type: 'uint256',
|
1249
|
+
},
|
1250
|
+
],
|
1251
|
+
stateMutability: 'nonpayable',
|
1252
|
+
type: 'function',
|
1253
|
+
},
|
1254
|
+
{
|
1255
|
+
inputs: [
|
1256
|
+
{
|
1257
|
+
internalType: 'uint256',
|
1258
|
+
name: '_chainId',
|
1259
|
+
type: 'uint256',
|
1260
|
+
},
|
1261
|
+
{
|
1262
|
+
internalType: 'uint256',
|
1263
|
+
name: '_l2BatchNumber',
|
1264
|
+
type: 'uint256',
|
1265
|
+
},
|
1266
|
+
{
|
1267
|
+
internalType: 'uint256',
|
1268
|
+
name: '_l2MessageIndex',
|
1269
|
+
type: 'uint256',
|
1270
|
+
},
|
1271
|
+
],
|
1272
|
+
name: 'isWithdrawalFinalized',
|
1273
|
+
outputs: [
|
1274
|
+
{
|
1275
|
+
internalType: 'bool',
|
1276
|
+
name: '',
|
1277
|
+
type: 'bool',
|
1278
|
+
},
|
1279
|
+
],
|
1280
|
+
stateMutability: 'view',
|
1281
|
+
type: 'function',
|
1282
|
+
},
|
1283
|
+
{
|
1284
|
+
inputs: [
|
1285
|
+
{
|
1286
|
+
internalType: 'uint256',
|
1287
|
+
name: '_chainId',
|
1288
|
+
type: 'uint256',
|
1289
|
+
},
|
1290
|
+
],
|
1291
|
+
name: 'l2BridgeAddress',
|
1292
|
+
outputs: [
|
1293
|
+
{
|
1294
|
+
internalType: 'address',
|
1295
|
+
name: '',
|
1296
|
+
type: 'address',
|
1297
|
+
},
|
1298
|
+
],
|
1299
|
+
stateMutability: 'view',
|
1300
|
+
type: 'function',
|
1301
|
+
},
|
1302
|
+
{
|
1303
|
+
inputs: [],
|
1304
|
+
name: 'legacyBridge',
|
1305
|
+
outputs: [
|
1306
|
+
{
|
1307
|
+
internalType: 'contract IL1ERC20Bridge',
|
1308
|
+
name: '',
|
1309
|
+
type: 'address',
|
1310
|
+
},
|
1311
|
+
],
|
1312
|
+
stateMutability: 'view',
|
1313
|
+
type: 'function',
|
1314
|
+
},
|
1315
|
+
{
|
1316
|
+
inputs: [
|
1317
|
+
{
|
1318
|
+
internalType: 'uint256',
|
1319
|
+
name: '_chainId',
|
1320
|
+
type: 'uint256',
|
1321
|
+
},
|
1322
|
+
],
|
1323
|
+
name: 'receiveEth',
|
1324
|
+
outputs: [],
|
1325
|
+
stateMutability: 'payable',
|
1326
|
+
type: 'function',
|
1327
|
+
},
|
1328
|
+
{
|
1329
|
+
inputs: [
|
1330
|
+
{
|
1331
|
+
internalType: 'uint256',
|
1332
|
+
name: '_eraLegacyBridgeLastDepositBatch',
|
1333
|
+
type: 'uint256',
|
1334
|
+
},
|
1335
|
+
{
|
1336
|
+
internalType: 'uint256',
|
1337
|
+
name: '_eraLegacyBridgeLastDepositTxNumber',
|
1338
|
+
type: 'uint256',
|
1339
|
+
},
|
1340
|
+
],
|
1341
|
+
name: 'setEraLegacyBridgeLastDepositTime',
|
1342
|
+
outputs: [],
|
1343
|
+
stateMutability: 'nonpayable',
|
1344
|
+
type: 'function',
|
1345
|
+
},
|
1346
|
+
{
|
1347
|
+
inputs: [
|
1348
|
+
{
|
1349
|
+
internalType: 'uint256',
|
1350
|
+
name: '_eraPostDiamondUpgradeFirstBatch',
|
1351
|
+
type: 'uint256',
|
1352
|
+
},
|
1353
|
+
],
|
1354
|
+
name: 'setEraPostDiamondUpgradeFirstBatch',
|
1355
|
+
outputs: [],
|
1356
|
+
stateMutability: 'nonpayable',
|
1357
|
+
type: 'function',
|
1358
|
+
},
|
1359
|
+
{
|
1360
|
+
inputs: [
|
1361
|
+
{
|
1362
|
+
internalType: 'uint256',
|
1363
|
+
name: '_eraPostLegacyBridgeUpgradeFirstBatch',
|
1364
|
+
type: 'uint256',
|
1365
|
+
},
|
1366
|
+
],
|
1367
|
+
name: 'setEraPostLegacyBridgeUpgradeFirstBatch',
|
1368
|
+
outputs: [],
|
1369
|
+
stateMutability: 'nonpayable',
|
1370
|
+
type: 'function',
|
1371
|
+
},
|
1372
|
+
] as const
|
1373
|
+
|
650
1374
|
export const ethTokenAbi = [
|
651
1375
|
{
|
652
1376
|
anonymous: false,
|
@@ -14,3 +14,6 @@ export const ethAddressInContracts =
|
|
14
14
|
/** The address of the base token. */
|
15
15
|
export const l2BaseTokenAddress =
|
16
16
|
'0x000000000000000000000000000000000000800a' as const
|
17
|
+
|
18
|
+
export const l1MessengerAddress =
|
19
|
+
'0x0000000000000000000000000000000000008008' as const
|