@matterlabs/zksync-js 0.0.10 → 0.0.11
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/dist/adapters/ethers/client.cjs +632 -649
- package/dist/adapters/ethers/client.cjs.map +1 -1
- package/dist/adapters/ethers/client.js +5 -5
- package/dist/adapters/ethers/index.cjs +670 -662
- package/dist/adapters/ethers/index.cjs.map +1 -1
- package/dist/adapters/ethers/index.js +7 -7
- package/dist/adapters/ethers/sdk.cjs +669 -661
- package/dist/adapters/ethers/sdk.cjs.map +1 -1
- package/dist/adapters/ethers/sdk.js +5 -5
- package/dist/adapters/viem/client.js +5 -5
- package/dist/adapters/viem/index.js +7 -7
- package/dist/adapters/viem/sdk.js +5 -5
- package/dist/{chunk-IYEDEUXG.js → chunk-6IT5PEEN.js} +1 -1
- package/dist/{chunk-ZBGQQ63V.js → chunk-CCUAGJ6K.js} +3 -3
- package/dist/{chunk-VKUTFNZA.js → chunk-EWBYKU4G.js} +3 -3
- package/dist/{chunk-HOZTREW6.js → chunk-FXSFLZ6D.js} +4 -4
- package/dist/{chunk-SRPKTXIF.js → chunk-H3BPVVMN.js} +1 -1
- package/dist/{chunk-AIFHAPJC.js → chunk-IQVH7YZT.js} +1 -1
- package/dist/{chunk-QDJOEVGJ.js → chunk-N4PR5SVB.js} +2 -2
- package/dist/{chunk-FBKBF7YM.js → chunk-QFEYV4O3.js} +669 -661
- package/dist/{chunk-N3FVEFOK.js → chunk-QUI3J42E.js} +2 -2
- package/dist/{chunk-MBEMIFYS.js → chunk-TL26ZONW.js} +6 -6
- package/dist/{chunk-UIXU35ZU.js → chunk-USXSAFYA.js} +1 -1
- package/dist/core/abi.d.ts +2 -2
- package/dist/core/index.cjs +668 -660
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +3 -3
- package/dist/core/internal/abis/IInteropCenter.d.ts +425 -121
- package/dist/core/internal/abis/IInteropHandler.d.ts +121 -69
- package/dist/core/internal/abis/IInteropRootStorage.d.ts +40 -0
- package/dist/index.cjs +668 -660
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/core/internal/abis/InteropCenter.d.ts +0 -578
- package/dist/core/internal/abis/InteropRootStorage.d.ts +0 -20
|
@@ -3697,1001 +3697,1009 @@ var MailboxABI = [
|
|
|
3697
3697
|
];
|
|
3698
3698
|
var Mailbox_default = MailboxABI;
|
|
3699
3699
|
|
|
3700
|
-
// src/core/internal/abis/
|
|
3701
|
-
var
|
|
3700
|
+
// src/core/internal/abis/IInteropCenter.ts
|
|
3701
|
+
var IInteropCenterABI = [
|
|
3702
3702
|
{
|
|
3703
|
-
|
|
3703
|
+
type: "function",
|
|
3704
|
+
name: "L1_CHAIN_ID",
|
|
3705
|
+
inputs: [],
|
|
3706
|
+
outputs: [
|
|
3704
3707
|
{
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
+
name: "",
|
|
3709
|
+
type: "uint256",
|
|
3710
|
+
internalType: "uint256"
|
|
3708
3711
|
}
|
|
3709
3712
|
],
|
|
3710
|
-
|
|
3711
|
-
type: "error"
|
|
3713
|
+
stateMutability: "view"
|
|
3712
3714
|
},
|
|
3713
3715
|
{
|
|
3714
|
-
|
|
3716
|
+
type: "function",
|
|
3717
|
+
name: "ZK_INTEROP_FEE",
|
|
3718
|
+
inputs: [],
|
|
3719
|
+
outputs: [
|
|
3715
3720
|
{
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
}
|
|
3721
|
+
name: "",
|
|
3722
|
+
type: "uint256",
|
|
3723
|
+
internalType: "uint256"
|
|
3724
|
+
}
|
|
3725
|
+
],
|
|
3726
|
+
stateMutability: "view"
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
type: "function",
|
|
3730
|
+
name: "ZK_TOKEN_ASSET_ID",
|
|
3731
|
+
inputs: [],
|
|
3732
|
+
outputs: [
|
|
3720
3733
|
{
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3734
|
+
name: "",
|
|
3735
|
+
type: "bytes32",
|
|
3736
|
+
internalType: "bytes32"
|
|
3724
3737
|
}
|
|
3725
3738
|
],
|
|
3726
|
-
|
|
3727
|
-
type: "error"
|
|
3739
|
+
stateMutability: "view"
|
|
3728
3740
|
},
|
|
3729
3741
|
{
|
|
3742
|
+
type: "function",
|
|
3743
|
+
name: "accumulatedProtocolFees",
|
|
3730
3744
|
inputs: [
|
|
3731
3745
|
{
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
}
|
|
3746
|
+
name: "coinbase",
|
|
3747
|
+
type: "address",
|
|
3748
|
+
internalType: "address"
|
|
3749
|
+
}
|
|
3750
|
+
],
|
|
3751
|
+
outputs: [
|
|
3736
3752
|
{
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3753
|
+
name: "",
|
|
3754
|
+
type: "uint256",
|
|
3755
|
+
internalType: "uint256"
|
|
3740
3756
|
}
|
|
3741
3757
|
],
|
|
3742
|
-
|
|
3743
|
-
type: "error"
|
|
3758
|
+
stateMutability: "view"
|
|
3744
3759
|
},
|
|
3745
3760
|
{
|
|
3761
|
+
type: "function",
|
|
3762
|
+
name: "accumulatedZKFees",
|
|
3746
3763
|
inputs: [
|
|
3747
3764
|
{
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3765
|
+
name: "coinbase",
|
|
3766
|
+
type: "address",
|
|
3767
|
+
internalType: "address"
|
|
3768
|
+
}
|
|
3769
|
+
],
|
|
3770
|
+
outputs: [
|
|
3771
|
+
{
|
|
3772
|
+
name: "",
|
|
3773
|
+
type: "uint256",
|
|
3774
|
+
internalType: "uint256"
|
|
3751
3775
|
}
|
|
3752
3776
|
],
|
|
3753
|
-
|
|
3754
|
-
type: "error"
|
|
3777
|
+
stateMutability: "view"
|
|
3755
3778
|
},
|
|
3756
3779
|
{
|
|
3780
|
+
type: "function",
|
|
3781
|
+
name: "claimProtocolFees",
|
|
3757
3782
|
inputs: [
|
|
3758
3783
|
{
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3784
|
+
name: "_receiver",
|
|
3785
|
+
type: "address",
|
|
3786
|
+
internalType: "address"
|
|
3762
3787
|
}
|
|
3763
3788
|
],
|
|
3764
|
-
|
|
3765
|
-
|
|
3789
|
+
outputs: [],
|
|
3790
|
+
stateMutability: "nonpayable"
|
|
3766
3791
|
},
|
|
3767
3792
|
{
|
|
3793
|
+
type: "function",
|
|
3794
|
+
name: "claimZKFees",
|
|
3768
3795
|
inputs: [
|
|
3769
3796
|
{
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3797
|
+
name: "_receiver",
|
|
3798
|
+
type: "address",
|
|
3799
|
+
internalType: "address"
|
|
3773
3800
|
}
|
|
3774
3801
|
],
|
|
3775
|
-
|
|
3776
|
-
|
|
3802
|
+
outputs: [],
|
|
3803
|
+
stateMutability: "nonpayable"
|
|
3777
3804
|
},
|
|
3778
3805
|
{
|
|
3806
|
+
type: "function",
|
|
3807
|
+
name: "forwardTransactionOnGatewayWithBalanceChange",
|
|
3779
3808
|
inputs: [
|
|
3780
3809
|
{
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3810
|
+
name: "_chainId",
|
|
3811
|
+
type: "uint256",
|
|
3812
|
+
internalType: "uint256"
|
|
3784
3813
|
},
|
|
3785
3814
|
{
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3815
|
+
name: "_canonicalTxHash",
|
|
3816
|
+
type: "bytes32",
|
|
3817
|
+
internalType: "bytes32"
|
|
3818
|
+
},
|
|
3819
|
+
{
|
|
3820
|
+
name: "_expirationTimestamp",
|
|
3821
|
+
type: "uint64",
|
|
3822
|
+
internalType: "uint64"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
name: "_balanceChange",
|
|
3826
|
+
type: "tuple",
|
|
3827
|
+
internalType: "struct BalanceChange",
|
|
3828
|
+
components: [
|
|
3829
|
+
{
|
|
3830
|
+
name: "version",
|
|
3831
|
+
type: "bytes1",
|
|
3832
|
+
internalType: "bytes1"
|
|
3833
|
+
},
|
|
3834
|
+
{
|
|
3835
|
+
name: "originToken",
|
|
3836
|
+
type: "address",
|
|
3837
|
+
internalType: "address"
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
name: "baseTokenAssetId",
|
|
3841
|
+
type: "bytes32",
|
|
3842
|
+
internalType: "bytes32"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
name: "baseTokenAmount",
|
|
3846
|
+
type: "uint256",
|
|
3847
|
+
internalType: "uint256"
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
name: "assetId",
|
|
3851
|
+
type: "bytes32",
|
|
3852
|
+
internalType: "bytes32"
|
|
3853
|
+
},
|
|
3854
|
+
{
|
|
3855
|
+
name: "amount",
|
|
3856
|
+
type: "uint256",
|
|
3857
|
+
internalType: "uint256"
|
|
3858
|
+
},
|
|
3859
|
+
{
|
|
3860
|
+
name: "tokenOriginChainId",
|
|
3861
|
+
type: "uint256",
|
|
3862
|
+
internalType: "uint256"
|
|
3863
|
+
}
|
|
3864
|
+
]
|
|
3789
3865
|
}
|
|
3790
3866
|
],
|
|
3791
|
-
|
|
3792
|
-
|
|
3867
|
+
outputs: [],
|
|
3868
|
+
stateMutability: "nonpayable"
|
|
3793
3869
|
},
|
|
3794
3870
|
{
|
|
3871
|
+
type: "function",
|
|
3872
|
+
name: "getZKTokenAddress",
|
|
3795
3873
|
inputs: [],
|
|
3796
|
-
|
|
3797
|
-
|
|
3874
|
+
outputs: [
|
|
3875
|
+
{
|
|
3876
|
+
name: "",
|
|
3877
|
+
type: "address",
|
|
3878
|
+
internalType: "address"
|
|
3879
|
+
}
|
|
3880
|
+
],
|
|
3881
|
+
stateMutability: "view"
|
|
3798
3882
|
},
|
|
3799
3883
|
{
|
|
3884
|
+
type: "function",
|
|
3885
|
+
name: "initL2",
|
|
3800
3886
|
inputs: [
|
|
3801
3887
|
{
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3888
|
+
name: "_l1ChainId",
|
|
3889
|
+
type: "uint256",
|
|
3890
|
+
internalType: "uint256"
|
|
3805
3891
|
},
|
|
3806
3892
|
{
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3893
|
+
name: "_owner",
|
|
3894
|
+
type: "address",
|
|
3895
|
+
internalType: "address"
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
name: "_zkTokenAssetId",
|
|
3899
|
+
type: "bytes32",
|
|
3900
|
+
internalType: "bytes32"
|
|
3810
3901
|
}
|
|
3811
3902
|
],
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
},
|
|
3815
|
-
{
|
|
3816
|
-
inputs: [],
|
|
3817
|
-
name: "SlotOccupied",
|
|
3818
|
-
type: "error"
|
|
3903
|
+
outputs: [],
|
|
3904
|
+
stateMutability: "nonpayable"
|
|
3819
3905
|
},
|
|
3820
3906
|
{
|
|
3907
|
+
type: "function",
|
|
3908
|
+
name: "interopBundleNonce",
|
|
3821
3909
|
inputs: [
|
|
3822
3910
|
{
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3911
|
+
name: "sender",
|
|
3912
|
+
type: "address",
|
|
3913
|
+
internalType: "address"
|
|
3826
3914
|
}
|
|
3827
3915
|
],
|
|
3828
|
-
|
|
3829
|
-
type: "error"
|
|
3830
|
-
},
|
|
3831
|
-
{
|
|
3832
|
-
inputs: [
|
|
3916
|
+
outputs: [
|
|
3833
3917
|
{
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3918
|
+
name: "",
|
|
3919
|
+
type: "uint256",
|
|
3920
|
+
internalType: "uint256"
|
|
3837
3921
|
}
|
|
3838
3922
|
],
|
|
3839
|
-
|
|
3840
|
-
type: "error"
|
|
3923
|
+
stateMutability: "view"
|
|
3841
3924
|
},
|
|
3842
3925
|
{
|
|
3843
|
-
|
|
3844
|
-
|
|
3926
|
+
type: "function",
|
|
3927
|
+
name: "interopProtocolFee",
|
|
3928
|
+
inputs: [],
|
|
3929
|
+
outputs: [
|
|
3845
3930
|
{
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
type: "uint8"
|
|
3931
|
+
name: "",
|
|
3932
|
+
type: "uint256",
|
|
3933
|
+
internalType: "uint256"
|
|
3850
3934
|
}
|
|
3851
3935
|
],
|
|
3852
|
-
|
|
3853
|
-
type: "event"
|
|
3936
|
+
stateMutability: "view"
|
|
3854
3937
|
},
|
|
3855
3938
|
{
|
|
3856
|
-
|
|
3939
|
+
type: "function",
|
|
3940
|
+
name: "parseAttributes",
|
|
3857
3941
|
inputs: [
|
|
3858
3942
|
{
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
type: "bytes32"
|
|
3943
|
+
name: "_attributes",
|
|
3944
|
+
type: "bytes[]",
|
|
3945
|
+
internalType: "bytes[]"
|
|
3863
3946
|
},
|
|
3864
3947
|
{
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3948
|
+
name: "_restriction",
|
|
3949
|
+
type: "uint8",
|
|
3950
|
+
internalType: "enum IInteropCenter.AttributeParsingRestrictions"
|
|
3951
|
+
}
|
|
3952
|
+
],
|
|
3953
|
+
outputs: [
|
|
3870
3954
|
{
|
|
3955
|
+
name: "callAttributes",
|
|
3956
|
+
type: "tuple",
|
|
3957
|
+
internalType: "struct CallAttributes",
|
|
3871
3958
|
components: [
|
|
3872
3959
|
{
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3960
|
+
name: "interopCallValue",
|
|
3961
|
+
type: "uint256",
|
|
3962
|
+
internalType: "uint256"
|
|
3876
3963
|
},
|
|
3877
3964
|
{
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3965
|
+
name: "indirectCall",
|
|
3966
|
+
type: "bool",
|
|
3967
|
+
internalType: "bool"
|
|
3881
3968
|
},
|
|
3882
3969
|
{
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
}
|
|
3970
|
+
name: "indirectCallMessageValue",
|
|
3971
|
+
type: "uint256",
|
|
3972
|
+
internalType: "uint256"
|
|
3973
|
+
}
|
|
3974
|
+
]
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
name: "bundleAttributes",
|
|
3978
|
+
type: "tuple",
|
|
3979
|
+
internalType: "struct BundleAttributes",
|
|
3980
|
+
components: [
|
|
3887
3981
|
{
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3982
|
+
name: "executionAddress",
|
|
3983
|
+
type: "bytes",
|
|
3984
|
+
internalType: "bytes"
|
|
3891
3985
|
},
|
|
3892
3986
|
{
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
name: "version",
|
|
3897
|
-
type: "bytes1"
|
|
3898
|
-
},
|
|
3899
|
-
{
|
|
3900
|
-
internalType: "bool",
|
|
3901
|
-
name: "shadowAccount",
|
|
3902
|
-
type: "bool"
|
|
3903
|
-
},
|
|
3904
|
-
{
|
|
3905
|
-
internalType: "address",
|
|
3906
|
-
name: "to",
|
|
3907
|
-
type: "address"
|
|
3908
|
-
},
|
|
3909
|
-
{
|
|
3910
|
-
internalType: "address",
|
|
3911
|
-
name: "from",
|
|
3912
|
-
type: "address"
|
|
3913
|
-
},
|
|
3914
|
-
{
|
|
3915
|
-
internalType: "uint256",
|
|
3916
|
-
name: "value",
|
|
3917
|
-
type: "uint256"
|
|
3918
|
-
},
|
|
3919
|
-
{
|
|
3920
|
-
internalType: "bytes",
|
|
3921
|
-
name: "data",
|
|
3922
|
-
type: "bytes"
|
|
3923
|
-
}
|
|
3924
|
-
],
|
|
3925
|
-
internalType: "struct InteropCall[]",
|
|
3926
|
-
name: "calls",
|
|
3927
|
-
type: "tuple[]"
|
|
3987
|
+
name: "unbundlerAddress",
|
|
3988
|
+
type: "bytes",
|
|
3989
|
+
internalType: "bytes"
|
|
3928
3990
|
},
|
|
3929
3991
|
{
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
name: "executionAddress",
|
|
3934
|
-
type: "bytes"
|
|
3935
|
-
},
|
|
3936
|
-
{
|
|
3937
|
-
internalType: "bytes",
|
|
3938
|
-
name: "unbundlerAddress",
|
|
3939
|
-
type: "bytes"
|
|
3940
|
-
}
|
|
3941
|
-
],
|
|
3942
|
-
internalType: "struct BundleAttributes",
|
|
3943
|
-
name: "bundleAttributes",
|
|
3944
|
-
type: "tuple"
|
|
3992
|
+
name: "useFixedFee",
|
|
3993
|
+
type: "bool",
|
|
3994
|
+
internalType: "bool"
|
|
3945
3995
|
}
|
|
3946
|
-
]
|
|
3947
|
-
indexed: false,
|
|
3948
|
-
internalType: "struct InteropBundle",
|
|
3949
|
-
name: "interopBundle",
|
|
3950
|
-
type: "tuple"
|
|
3996
|
+
]
|
|
3951
3997
|
}
|
|
3952
3998
|
],
|
|
3953
|
-
|
|
3954
|
-
type: "event"
|
|
3999
|
+
stateMutability: "pure"
|
|
3955
4000
|
},
|
|
3956
4001
|
{
|
|
3957
|
-
|
|
4002
|
+
type: "function",
|
|
4003
|
+
name: "pause",
|
|
4004
|
+
inputs: [],
|
|
4005
|
+
outputs: [],
|
|
4006
|
+
stateMutability: "nonpayable"
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
type: "function",
|
|
4010
|
+
name: "sendBundle",
|
|
3958
4011
|
inputs: [
|
|
3959
4012
|
{
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
type: "bytes32"
|
|
3964
|
-
},
|
|
3965
|
-
{
|
|
3966
|
-
indexed: false,
|
|
3967
|
-
internalType: "bytes",
|
|
3968
|
-
name: "sender",
|
|
3969
|
-
type: "bytes"
|
|
3970
|
-
},
|
|
3971
|
-
{
|
|
3972
|
-
indexed: false,
|
|
3973
|
-
internalType: "bytes",
|
|
3974
|
-
name: "recipient",
|
|
3975
|
-
type: "bytes"
|
|
4013
|
+
name: "_destinationChainId",
|
|
4014
|
+
type: "bytes",
|
|
4015
|
+
internalType: "bytes"
|
|
3976
4016
|
},
|
|
3977
4017
|
{
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
4018
|
+
name: "_callStarters",
|
|
4019
|
+
type: "tuple[]",
|
|
4020
|
+
internalType: "struct InteropCallStarter[]",
|
|
4021
|
+
components: [
|
|
4022
|
+
{
|
|
4023
|
+
name: "to",
|
|
4024
|
+
type: "bytes",
|
|
4025
|
+
internalType: "bytes"
|
|
4026
|
+
},
|
|
4027
|
+
{
|
|
4028
|
+
name: "data",
|
|
4029
|
+
type: "bytes",
|
|
4030
|
+
internalType: "bytes"
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
name: "callAttributes",
|
|
4034
|
+
type: "bytes[]",
|
|
4035
|
+
internalType: "bytes[]"
|
|
4036
|
+
}
|
|
4037
|
+
]
|
|
3982
4038
|
},
|
|
3983
4039
|
{
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
4040
|
+
name: "_bundleAttributes",
|
|
4041
|
+
type: "bytes[]",
|
|
4042
|
+
internalType: "bytes[]"
|
|
4043
|
+
}
|
|
4044
|
+
],
|
|
4045
|
+
outputs: [
|
|
3989
4046
|
{
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
type: "bytes[]"
|
|
4047
|
+
name: "bundleHash",
|
|
4048
|
+
type: "bytes32",
|
|
4049
|
+
internalType: "bytes32"
|
|
3994
4050
|
}
|
|
3995
4051
|
],
|
|
3996
|
-
|
|
3997
|
-
type: "event"
|
|
4052
|
+
stateMutability: "payable"
|
|
3998
4053
|
},
|
|
3999
4054
|
{
|
|
4000
|
-
|
|
4055
|
+
type: "function",
|
|
4056
|
+
name: "setInteropFee",
|
|
4001
4057
|
inputs: [
|
|
4002
4058
|
{
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
type: "address"
|
|
4007
|
-
},
|
|
4008
|
-
{
|
|
4009
|
-
indexed: true,
|
|
4010
|
-
internalType: "address",
|
|
4011
|
-
name: "newAssetRouter",
|
|
4012
|
-
type: "address"
|
|
4059
|
+
name: "_fee",
|
|
4060
|
+
type: "uint256",
|
|
4061
|
+
internalType: "uint256"
|
|
4013
4062
|
}
|
|
4014
4063
|
],
|
|
4015
|
-
|
|
4016
|
-
|
|
4064
|
+
outputs: [],
|
|
4065
|
+
stateMutability: "nonpayable"
|
|
4017
4066
|
},
|
|
4018
4067
|
{
|
|
4019
|
-
|
|
4068
|
+
type: "function",
|
|
4069
|
+
name: "unpause",
|
|
4070
|
+
inputs: [],
|
|
4071
|
+
outputs: [],
|
|
4072
|
+
stateMutability: "nonpayable"
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
type: "function",
|
|
4076
|
+
name: "updateL2",
|
|
4020
4077
|
inputs: [
|
|
4021
4078
|
{
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
type: "address"
|
|
4079
|
+
name: "_l1ChainId",
|
|
4080
|
+
type: "uint256",
|
|
4081
|
+
internalType: "uint256"
|
|
4026
4082
|
},
|
|
4027
4083
|
{
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
type: "address"
|
|
4084
|
+
name: "_owner",
|
|
4085
|
+
type: "address",
|
|
4086
|
+
internalType: "address"
|
|
4032
4087
|
}
|
|
4033
4088
|
],
|
|
4034
|
-
|
|
4035
|
-
|
|
4089
|
+
outputs: [],
|
|
4090
|
+
stateMutability: "nonpayable"
|
|
4036
4091
|
},
|
|
4037
4092
|
{
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
internalType: "address",
|
|
4043
|
-
name: "previousOwner",
|
|
4044
|
-
type: "address"
|
|
4045
|
-
},
|
|
4093
|
+
type: "function",
|
|
4094
|
+
name: "zkToken",
|
|
4095
|
+
inputs: [],
|
|
4096
|
+
outputs: [
|
|
4046
4097
|
{
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
type: "address"
|
|
4098
|
+
name: "",
|
|
4099
|
+
type: "address",
|
|
4100
|
+
internalType: "contract IERC20"
|
|
4051
4101
|
}
|
|
4052
4102
|
],
|
|
4053
|
-
|
|
4054
|
-
type: "event"
|
|
4103
|
+
stateMutability: "view"
|
|
4055
4104
|
},
|
|
4056
4105
|
{
|
|
4057
|
-
|
|
4106
|
+
type: "event",
|
|
4107
|
+
name: "FixedZKFeesAccumulated",
|
|
4058
4108
|
inputs: [
|
|
4059
4109
|
{
|
|
4110
|
+
name: "payer",
|
|
4111
|
+
type: "address",
|
|
4060
4112
|
indexed: true,
|
|
4061
|
-
internalType: "address"
|
|
4062
|
-
name: "previousOwner",
|
|
4063
|
-
type: "address"
|
|
4113
|
+
internalType: "address"
|
|
4064
4114
|
},
|
|
4065
4115
|
{
|
|
4116
|
+
name: "coinbase",
|
|
4117
|
+
type: "address",
|
|
4066
4118
|
indexed: true,
|
|
4067
|
-
internalType: "address"
|
|
4068
|
-
|
|
4069
|
-
type: "address"
|
|
4070
|
-
}
|
|
4071
|
-
],
|
|
4072
|
-
name: "OwnershipTransferred",
|
|
4073
|
-
type: "event"
|
|
4074
|
-
},
|
|
4075
|
-
{
|
|
4076
|
-
anonymous: false,
|
|
4077
|
-
inputs: [
|
|
4119
|
+
internalType: "address"
|
|
4120
|
+
},
|
|
4078
4121
|
{
|
|
4122
|
+
name: "amount",
|
|
4123
|
+
type: "uint256",
|
|
4079
4124
|
indexed: false,
|
|
4080
|
-
internalType: "
|
|
4081
|
-
name: "account",
|
|
4082
|
-
type: "address"
|
|
4125
|
+
internalType: "uint256"
|
|
4083
4126
|
}
|
|
4084
4127
|
],
|
|
4085
|
-
|
|
4086
|
-
type: "event"
|
|
4128
|
+
anonymous: false
|
|
4087
4129
|
},
|
|
4088
4130
|
{
|
|
4089
|
-
|
|
4131
|
+
type: "event",
|
|
4132
|
+
name: "InteropBundleSent",
|
|
4090
4133
|
inputs: [
|
|
4091
4134
|
{
|
|
4135
|
+
name: "l2l1MsgHash",
|
|
4136
|
+
type: "bytes32",
|
|
4092
4137
|
indexed: false,
|
|
4093
|
-
internalType: "
|
|
4094
|
-
name: "account",
|
|
4095
|
-
type: "address"
|
|
4096
|
-
}
|
|
4097
|
-
],
|
|
4098
|
-
name: "Unpaused",
|
|
4099
|
-
type: "event"
|
|
4100
|
-
},
|
|
4101
|
-
{
|
|
4102
|
-
inputs: [],
|
|
4103
|
-
name: "L1_CHAIN_ID",
|
|
4104
|
-
outputs: [
|
|
4105
|
-
{
|
|
4106
|
-
internalType: "uint256",
|
|
4107
|
-
name: "",
|
|
4108
|
-
type: "uint256"
|
|
4109
|
-
}
|
|
4110
|
-
],
|
|
4111
|
-
stateMutability: "view",
|
|
4112
|
-
type: "function"
|
|
4113
|
-
},
|
|
4114
|
-
{
|
|
4115
|
-
inputs: [],
|
|
4116
|
-
name: "acceptOwnership",
|
|
4117
|
-
outputs: [],
|
|
4118
|
-
stateMutability: "nonpayable",
|
|
4119
|
-
type: "function"
|
|
4120
|
-
},
|
|
4121
|
-
{
|
|
4122
|
-
inputs: [
|
|
4123
|
-
{
|
|
4124
|
-
internalType: "uint256",
|
|
4125
|
-
name: "_chainId",
|
|
4126
|
-
type: "uint256"
|
|
4127
|
-
},
|
|
4128
|
-
{
|
|
4129
|
-
internalType: "bytes32",
|
|
4130
|
-
name: "_canonicalTxHash",
|
|
4131
|
-
type: "bytes32"
|
|
4138
|
+
internalType: "bytes32"
|
|
4132
4139
|
},
|
|
4133
4140
|
{
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4141
|
+
name: "interopBundleHash",
|
|
4142
|
+
type: "bytes32",
|
|
4143
|
+
indexed: false,
|
|
4144
|
+
internalType: "bytes32"
|
|
4137
4145
|
},
|
|
4138
4146
|
{
|
|
4147
|
+
name: "interopBundle",
|
|
4148
|
+
type: "tuple",
|
|
4149
|
+
indexed: false,
|
|
4150
|
+
internalType: "struct InteropBundle",
|
|
4139
4151
|
components: [
|
|
4140
4152
|
{
|
|
4141
|
-
internalType: "bytes1",
|
|
4142
4153
|
name: "version",
|
|
4143
|
-
type: "bytes1"
|
|
4154
|
+
type: "bytes1",
|
|
4155
|
+
internalType: "bytes1"
|
|
4144
4156
|
},
|
|
4145
4157
|
{
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
},
|
|
4150
|
-
{
|
|
4151
|
-
internalType: "bytes32",
|
|
4152
|
-
name: "baseTokenAssetId",
|
|
4153
|
-
type: "bytes32"
|
|
4158
|
+
name: "sourceChainId",
|
|
4159
|
+
type: "uint256",
|
|
4160
|
+
internalType: "uint256"
|
|
4154
4161
|
},
|
|
4155
4162
|
{
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4163
|
+
name: "destinationChainId",
|
|
4164
|
+
type: "uint256",
|
|
4165
|
+
internalType: "uint256"
|
|
4159
4166
|
},
|
|
4160
4167
|
{
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4168
|
+
name: "interopBundleSalt",
|
|
4169
|
+
type: "bytes32",
|
|
4170
|
+
internalType: "bytes32"
|
|
4164
4171
|
},
|
|
4165
4172
|
{
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4173
|
+
name: "calls",
|
|
4174
|
+
type: "tuple[]",
|
|
4175
|
+
internalType: "struct InteropCall[]",
|
|
4176
|
+
components: [
|
|
4177
|
+
{
|
|
4178
|
+
name: "version",
|
|
4179
|
+
type: "bytes1",
|
|
4180
|
+
internalType: "bytes1"
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
name: "shadowAccount",
|
|
4184
|
+
type: "bool",
|
|
4185
|
+
internalType: "bool"
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
name: "to",
|
|
4189
|
+
type: "address",
|
|
4190
|
+
internalType: "address"
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
name: "from",
|
|
4194
|
+
type: "address",
|
|
4195
|
+
internalType: "address"
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
name: "value",
|
|
4199
|
+
type: "uint256",
|
|
4200
|
+
internalType: "uint256"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
name: "data",
|
|
4204
|
+
type: "bytes",
|
|
4205
|
+
internalType: "bytes"
|
|
4206
|
+
}
|
|
4207
|
+
]
|
|
4169
4208
|
},
|
|
4170
4209
|
{
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4210
|
+
name: "bundleAttributes",
|
|
4211
|
+
type: "tuple",
|
|
4212
|
+
internalType: "struct BundleAttributes",
|
|
4213
|
+
components: [
|
|
4214
|
+
{
|
|
4215
|
+
name: "executionAddress",
|
|
4216
|
+
type: "bytes",
|
|
4217
|
+
internalType: "bytes"
|
|
4218
|
+
},
|
|
4219
|
+
{
|
|
4220
|
+
name: "unbundlerAddress",
|
|
4221
|
+
type: "bytes",
|
|
4222
|
+
internalType: "bytes"
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
name: "useFixedFee",
|
|
4226
|
+
type: "bool",
|
|
4227
|
+
internalType: "bool"
|
|
4228
|
+
}
|
|
4229
|
+
]
|
|
4174
4230
|
}
|
|
4175
|
-
]
|
|
4176
|
-
internalType: "struct BalanceChange",
|
|
4177
|
-
name: "_balanceChange",
|
|
4178
|
-
type: "tuple"
|
|
4231
|
+
]
|
|
4179
4232
|
}
|
|
4180
4233
|
],
|
|
4181
|
-
|
|
4182
|
-
outputs: [],
|
|
4183
|
-
stateMutability: "nonpayable",
|
|
4184
|
-
type: "function"
|
|
4234
|
+
anonymous: false
|
|
4185
4235
|
},
|
|
4186
4236
|
{
|
|
4237
|
+
type: "event",
|
|
4238
|
+
name: "InteropFeeUpdated",
|
|
4187
4239
|
inputs: [
|
|
4188
4240
|
{
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4241
|
+
name: "oldFee",
|
|
4242
|
+
type: "uint256",
|
|
4243
|
+
indexed: true,
|
|
4244
|
+
internalType: "uint256"
|
|
4192
4245
|
},
|
|
4193
4246
|
{
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4247
|
+
name: "newFee",
|
|
4248
|
+
type: "uint256",
|
|
4249
|
+
indexed: true,
|
|
4250
|
+
internalType: "uint256"
|
|
4197
4251
|
}
|
|
4198
4252
|
],
|
|
4199
|
-
|
|
4200
|
-
outputs: [],
|
|
4201
|
-
stateMutability: "nonpayable",
|
|
4202
|
-
type: "function"
|
|
4253
|
+
anonymous: false
|
|
4203
4254
|
},
|
|
4204
4255
|
{
|
|
4256
|
+
type: "event",
|
|
4257
|
+
name: "NewAssetRouter",
|
|
4205
4258
|
inputs: [
|
|
4206
4259
|
{
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
name: "interopBundleNonce",
|
|
4213
|
-
outputs: [
|
|
4214
|
-
{
|
|
4215
|
-
internalType: "uint256",
|
|
4216
|
-
name: "numberOfBundlesSent",
|
|
4217
|
-
type: "uint256"
|
|
4218
|
-
}
|
|
4219
|
-
],
|
|
4220
|
-
stateMutability: "view",
|
|
4221
|
-
type: "function"
|
|
4222
|
-
},
|
|
4223
|
-
{
|
|
4224
|
-
inputs: [],
|
|
4225
|
-
name: "owner",
|
|
4226
|
-
outputs: [
|
|
4260
|
+
name: "oldAssetRouter",
|
|
4261
|
+
type: "address",
|
|
4262
|
+
indexed: true,
|
|
4263
|
+
internalType: "address"
|
|
4264
|
+
},
|
|
4227
4265
|
{
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4266
|
+
name: "newAssetRouter",
|
|
4267
|
+
type: "address",
|
|
4268
|
+
indexed: true,
|
|
4269
|
+
internalType: "address"
|
|
4231
4270
|
}
|
|
4232
4271
|
],
|
|
4233
|
-
|
|
4234
|
-
type: "function"
|
|
4272
|
+
anonymous: false
|
|
4235
4273
|
},
|
|
4236
4274
|
{
|
|
4275
|
+
type: "event",
|
|
4276
|
+
name: "NewAssetTracker",
|
|
4237
4277
|
inputs: [
|
|
4238
4278
|
{
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
{
|
|
4244
|
-
internalType: "enum IInteropCenter.AttributeParsingRestrictions",
|
|
4245
|
-
name: "_restriction",
|
|
4246
|
-
type: "uint8"
|
|
4247
|
-
}
|
|
4248
|
-
],
|
|
4249
|
-
name: "parseAttributes",
|
|
4250
|
-
outputs: [
|
|
4251
|
-
{
|
|
4252
|
-
components: [
|
|
4253
|
-
{
|
|
4254
|
-
internalType: "uint256",
|
|
4255
|
-
name: "interopCallValue",
|
|
4256
|
-
type: "uint256"
|
|
4257
|
-
},
|
|
4258
|
-
{
|
|
4259
|
-
internalType: "bool",
|
|
4260
|
-
name: "indirectCall",
|
|
4261
|
-
type: "bool"
|
|
4262
|
-
},
|
|
4263
|
-
{
|
|
4264
|
-
internalType: "uint256",
|
|
4265
|
-
name: "indirectCallMessageValue",
|
|
4266
|
-
type: "uint256"
|
|
4267
|
-
}
|
|
4268
|
-
],
|
|
4269
|
-
internalType: "struct CallAttributes",
|
|
4270
|
-
name: "callAttributes",
|
|
4271
|
-
type: "tuple"
|
|
4279
|
+
name: "oldAssetTracker",
|
|
4280
|
+
type: "address",
|
|
4281
|
+
indexed: true,
|
|
4282
|
+
internalType: "address"
|
|
4272
4283
|
},
|
|
4273
4284
|
{
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
type: "bytes"
|
|
4279
|
-
},
|
|
4280
|
-
{
|
|
4281
|
-
internalType: "bytes",
|
|
4282
|
-
name: "unbundlerAddress",
|
|
4283
|
-
type: "bytes"
|
|
4284
|
-
}
|
|
4285
|
-
],
|
|
4286
|
-
internalType: "struct BundleAttributes",
|
|
4287
|
-
name: "bundleAttributes",
|
|
4288
|
-
type: "tuple"
|
|
4289
|
-
}
|
|
4290
|
-
],
|
|
4291
|
-
stateMutability: "pure",
|
|
4292
|
-
type: "function"
|
|
4293
|
-
},
|
|
4294
|
-
{
|
|
4295
|
-
inputs: [],
|
|
4296
|
-
name: "pause",
|
|
4297
|
-
outputs: [],
|
|
4298
|
-
stateMutability: "nonpayable",
|
|
4299
|
-
type: "function"
|
|
4300
|
-
},
|
|
4301
|
-
{
|
|
4302
|
-
inputs: [],
|
|
4303
|
-
name: "paused",
|
|
4304
|
-
outputs: [
|
|
4305
|
-
{
|
|
4306
|
-
internalType: "bool",
|
|
4307
|
-
name: "",
|
|
4308
|
-
type: "bool"
|
|
4309
|
-
}
|
|
4310
|
-
],
|
|
4311
|
-
stateMutability: "view",
|
|
4312
|
-
type: "function"
|
|
4313
|
-
},
|
|
4314
|
-
{
|
|
4315
|
-
inputs: [],
|
|
4316
|
-
name: "pendingOwner",
|
|
4317
|
-
outputs: [
|
|
4318
|
-
{
|
|
4319
|
-
internalType: "address",
|
|
4320
|
-
name: "",
|
|
4321
|
-
type: "address"
|
|
4285
|
+
name: "newAssetTracker",
|
|
4286
|
+
type: "address",
|
|
4287
|
+
indexed: true,
|
|
4288
|
+
internalType: "address"
|
|
4322
4289
|
}
|
|
4323
4290
|
],
|
|
4324
|
-
|
|
4325
|
-
type: "function"
|
|
4326
|
-
},
|
|
4327
|
-
{
|
|
4328
|
-
inputs: [],
|
|
4329
|
-
name: "renounceOwnership",
|
|
4330
|
-
outputs: [],
|
|
4331
|
-
stateMutability: "nonpayable",
|
|
4332
|
-
type: "function"
|
|
4291
|
+
anonymous: false
|
|
4333
4292
|
},
|
|
4334
4293
|
{
|
|
4294
|
+
type: "event",
|
|
4295
|
+
name: "ProtocolFeesAccumulated",
|
|
4335
4296
|
inputs: [
|
|
4336
4297
|
{
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
{
|
|
4342
|
-
components: [
|
|
4343
|
-
{
|
|
4344
|
-
internalType: "bytes",
|
|
4345
|
-
name: "to",
|
|
4346
|
-
type: "bytes"
|
|
4347
|
-
},
|
|
4348
|
-
{
|
|
4349
|
-
internalType: "bytes",
|
|
4350
|
-
name: "data",
|
|
4351
|
-
type: "bytes"
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4354
|
-
internalType: "bytes[]",
|
|
4355
|
-
name: "callAttributes",
|
|
4356
|
-
type: "bytes[]"
|
|
4357
|
-
}
|
|
4358
|
-
],
|
|
4359
|
-
internalType: "struct InteropCallStarter[]",
|
|
4360
|
-
name: "_callStarters",
|
|
4361
|
-
type: "tuple[]"
|
|
4298
|
+
name: "coinbase",
|
|
4299
|
+
type: "address",
|
|
4300
|
+
indexed: true,
|
|
4301
|
+
internalType: "address"
|
|
4362
4302
|
},
|
|
4363
4303
|
{
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
],
|
|
4369
|
-
name: "sendBundle",
|
|
4370
|
-
outputs: [
|
|
4371
|
-
{
|
|
4372
|
-
internalType: "bytes32",
|
|
4373
|
-
name: "bundleHash",
|
|
4374
|
-
type: "bytes32"
|
|
4304
|
+
name: "amount",
|
|
4305
|
+
type: "uint256",
|
|
4306
|
+
indexed: false,
|
|
4307
|
+
internalType: "uint256"
|
|
4375
4308
|
}
|
|
4376
4309
|
],
|
|
4377
|
-
|
|
4378
|
-
type: "function"
|
|
4310
|
+
anonymous: false
|
|
4379
4311
|
},
|
|
4380
4312
|
{
|
|
4313
|
+
type: "event",
|
|
4314
|
+
name: "ProtocolFeesClaimed",
|
|
4381
4315
|
inputs: [
|
|
4382
4316
|
{
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4317
|
+
name: "coinbase",
|
|
4318
|
+
type: "address",
|
|
4319
|
+
indexed: true,
|
|
4320
|
+
internalType: "address"
|
|
4386
4321
|
},
|
|
4387
4322
|
{
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4323
|
+
name: "receiver",
|
|
4324
|
+
type: "address",
|
|
4325
|
+
indexed: true,
|
|
4326
|
+
internalType: "address"
|
|
4391
4327
|
},
|
|
4392
4328
|
{
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
],
|
|
4398
|
-
name: "sendMessage",
|
|
4399
|
-
outputs: [
|
|
4400
|
-
{
|
|
4401
|
-
internalType: "bytes32",
|
|
4402
|
-
name: "sendId",
|
|
4403
|
-
type: "bytes32"
|
|
4404
|
-
}
|
|
4405
|
-
],
|
|
4406
|
-
stateMutability: "payable",
|
|
4407
|
-
type: "function"
|
|
4408
|
-
},
|
|
4409
|
-
{
|
|
4410
|
-
inputs: [
|
|
4411
|
-
{
|
|
4412
|
-
internalType: "bytes4",
|
|
4413
|
-
name: "_attributeSelector",
|
|
4414
|
-
type: "bytes4"
|
|
4415
|
-
}
|
|
4416
|
-
],
|
|
4417
|
-
name: "supportsAttribute",
|
|
4418
|
-
outputs: [
|
|
4419
|
-
{
|
|
4420
|
-
internalType: "bool",
|
|
4421
|
-
name: "",
|
|
4422
|
-
type: "bool"
|
|
4329
|
+
name: "amount",
|
|
4330
|
+
type: "uint256",
|
|
4331
|
+
indexed: false,
|
|
4332
|
+
internalType: "uint256"
|
|
4423
4333
|
}
|
|
4424
4334
|
],
|
|
4425
|
-
|
|
4426
|
-
type: "function"
|
|
4335
|
+
anonymous: false
|
|
4427
4336
|
},
|
|
4428
4337
|
{
|
|
4338
|
+
type: "event",
|
|
4339
|
+
name: "ZKFeesClaimed",
|
|
4429
4340
|
inputs: [
|
|
4430
4341
|
{
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4342
|
+
name: "coinbase",
|
|
4343
|
+
type: "address",
|
|
4344
|
+
indexed: true,
|
|
4345
|
+
internalType: "address"
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
name: "receiver",
|
|
4349
|
+
type: "address",
|
|
4350
|
+
indexed: true,
|
|
4351
|
+
internalType: "address"
|
|
4352
|
+
},
|
|
4353
|
+
{
|
|
4354
|
+
name: "amount",
|
|
4355
|
+
type: "uint256",
|
|
4356
|
+
indexed: false,
|
|
4357
|
+
internalType: "uint256"
|
|
4434
4358
|
}
|
|
4435
4359
|
],
|
|
4436
|
-
|
|
4437
|
-
outputs: [],
|
|
4438
|
-
stateMutability: "nonpayable",
|
|
4439
|
-
type: "function"
|
|
4440
|
-
},
|
|
4441
|
-
{
|
|
4442
|
-
inputs: [],
|
|
4443
|
-
name: "unpause",
|
|
4444
|
-
outputs: [],
|
|
4445
|
-
stateMutability: "nonpayable",
|
|
4446
|
-
type: "function"
|
|
4360
|
+
anonymous: false
|
|
4447
4361
|
}
|
|
4448
4362
|
];
|
|
4449
|
-
var
|
|
4363
|
+
var IInteropCenter_default = IInteropCenterABI;
|
|
4450
4364
|
|
|
4451
4365
|
// src/core/internal/abis/IInteropHandler.ts
|
|
4452
4366
|
var IInteropHandlerABI = [
|
|
4453
4367
|
{
|
|
4454
|
-
|
|
4455
|
-
|
|
4368
|
+
type: "function",
|
|
4369
|
+
name: "L1_CHAIN_ID",
|
|
4370
|
+
inputs: [],
|
|
4371
|
+
outputs: [
|
|
4456
4372
|
{
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
type: "bytes32"
|
|
4373
|
+
name: "",
|
|
4374
|
+
type: "uint256",
|
|
4375
|
+
internalType: "uint256"
|
|
4461
4376
|
}
|
|
4462
4377
|
],
|
|
4463
|
-
|
|
4464
|
-
type: "event"
|
|
4378
|
+
stateMutability: "view"
|
|
4465
4379
|
},
|
|
4466
4380
|
{
|
|
4467
|
-
|
|
4381
|
+
type: "function",
|
|
4382
|
+
name: "bundleStatus",
|
|
4468
4383
|
inputs: [
|
|
4469
4384
|
{
|
|
4470
|
-
indexed: true,
|
|
4471
|
-
internalType: "bytes32",
|
|
4472
4385
|
name: "bundleHash",
|
|
4473
|
-
type: "bytes32"
|
|
4386
|
+
type: "bytes32",
|
|
4387
|
+
internalType: "bytes32"
|
|
4474
4388
|
}
|
|
4475
4389
|
],
|
|
4476
|
-
|
|
4477
|
-
type: "event"
|
|
4478
|
-
},
|
|
4479
|
-
{
|
|
4480
|
-
anonymous: false,
|
|
4481
|
-
inputs: [
|
|
4390
|
+
outputs: [
|
|
4482
4391
|
{
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
type: "bytes32"
|
|
4392
|
+
name: "",
|
|
4393
|
+
type: "uint8",
|
|
4394
|
+
internalType: "enum BundleStatus"
|
|
4487
4395
|
}
|
|
4488
4396
|
],
|
|
4489
|
-
|
|
4490
|
-
type: "event"
|
|
4397
|
+
stateMutability: "view"
|
|
4491
4398
|
},
|
|
4492
4399
|
{
|
|
4493
|
-
|
|
4400
|
+
type: "function",
|
|
4401
|
+
name: "callStatus",
|
|
4494
4402
|
inputs: [
|
|
4495
4403
|
{
|
|
4496
|
-
indexed: true,
|
|
4497
|
-
internalType: "bytes32",
|
|
4498
4404
|
name: "bundleHash",
|
|
4499
|
-
type: "bytes32"
|
|
4405
|
+
type: "bytes32",
|
|
4406
|
+
internalType: "bytes32"
|
|
4500
4407
|
},
|
|
4501
4408
|
{
|
|
4502
|
-
indexed: true,
|
|
4503
|
-
internalType: "uint256",
|
|
4504
4409
|
name: "callIndex",
|
|
4505
|
-
type: "uint256"
|
|
4506
|
-
|
|
4410
|
+
type: "uint256",
|
|
4411
|
+
internalType: "uint256"
|
|
4412
|
+
}
|
|
4413
|
+
],
|
|
4414
|
+
outputs: [
|
|
4507
4415
|
{
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
type: "uint8"
|
|
4416
|
+
name: "",
|
|
4417
|
+
type: "uint8",
|
|
4418
|
+
internalType: "enum CallStatus"
|
|
4512
4419
|
}
|
|
4513
4420
|
],
|
|
4514
|
-
|
|
4515
|
-
type: "event"
|
|
4421
|
+
stateMutability: "view"
|
|
4516
4422
|
},
|
|
4517
4423
|
{
|
|
4424
|
+
type: "function",
|
|
4425
|
+
name: "executeBundle",
|
|
4518
4426
|
inputs: [
|
|
4519
4427
|
{
|
|
4520
|
-
internalType: "bytes",
|
|
4521
4428
|
name: "_bundle",
|
|
4522
|
-
type: "bytes"
|
|
4429
|
+
type: "bytes",
|
|
4430
|
+
internalType: "bytes"
|
|
4523
4431
|
},
|
|
4524
4432
|
{
|
|
4433
|
+
name: "_proof",
|
|
4434
|
+
type: "tuple",
|
|
4435
|
+
internalType: "struct MessageInclusionProof",
|
|
4525
4436
|
components: [
|
|
4526
4437
|
{
|
|
4527
|
-
internalType: "uint256",
|
|
4528
4438
|
name: "chainId",
|
|
4529
|
-
type: "uint256"
|
|
4439
|
+
type: "uint256",
|
|
4440
|
+
internalType: "uint256"
|
|
4530
4441
|
},
|
|
4531
4442
|
{
|
|
4532
|
-
internalType: "uint256",
|
|
4533
4443
|
name: "l1BatchNumber",
|
|
4534
|
-
type: "uint256"
|
|
4444
|
+
type: "uint256",
|
|
4445
|
+
internalType: "uint256"
|
|
4535
4446
|
},
|
|
4536
4447
|
{
|
|
4537
|
-
internalType: "uint256",
|
|
4538
4448
|
name: "l2MessageIndex",
|
|
4539
|
-
type: "uint256"
|
|
4449
|
+
type: "uint256",
|
|
4450
|
+
internalType: "uint256"
|
|
4540
4451
|
},
|
|
4541
4452
|
{
|
|
4453
|
+
name: "message",
|
|
4454
|
+
type: "tuple",
|
|
4455
|
+
internalType: "struct L2Message",
|
|
4542
4456
|
components: [
|
|
4543
4457
|
{
|
|
4544
|
-
internalType: "uint16",
|
|
4545
4458
|
name: "txNumberInBatch",
|
|
4546
|
-
type: "uint16"
|
|
4459
|
+
type: "uint16",
|
|
4460
|
+
internalType: "uint16"
|
|
4547
4461
|
},
|
|
4548
4462
|
{
|
|
4549
|
-
internalType: "address",
|
|
4550
4463
|
name: "sender",
|
|
4551
|
-
type: "address"
|
|
4464
|
+
type: "address",
|
|
4465
|
+
internalType: "address"
|
|
4552
4466
|
},
|
|
4553
4467
|
{
|
|
4554
|
-
internalType: "bytes",
|
|
4555
4468
|
name: "data",
|
|
4556
|
-
type: "bytes"
|
|
4469
|
+
type: "bytes",
|
|
4470
|
+
internalType: "bytes"
|
|
4557
4471
|
}
|
|
4558
|
-
]
|
|
4559
|
-
internalType: "struct L2Message",
|
|
4560
|
-
name: "message",
|
|
4561
|
-
type: "tuple"
|
|
4472
|
+
]
|
|
4562
4473
|
},
|
|
4563
4474
|
{
|
|
4564
|
-
internalType: "bytes32[]",
|
|
4565
4475
|
name: "proof",
|
|
4566
|
-
type: "bytes32[]"
|
|
4476
|
+
type: "bytes32[]",
|
|
4477
|
+
internalType: "bytes32[]"
|
|
4567
4478
|
}
|
|
4568
|
-
]
|
|
4569
|
-
internalType: "struct MessageInclusionProof",
|
|
4570
|
-
name: "_proof",
|
|
4571
|
-
type: "tuple"
|
|
4479
|
+
]
|
|
4572
4480
|
}
|
|
4573
4481
|
],
|
|
4574
|
-
name: "executeBundle",
|
|
4575
4482
|
outputs: [],
|
|
4576
|
-
stateMutability: "nonpayable"
|
|
4577
|
-
type: "function"
|
|
4483
|
+
stateMutability: "nonpayable"
|
|
4578
4484
|
},
|
|
4579
4485
|
{
|
|
4486
|
+
type: "function",
|
|
4487
|
+
name: "initL2",
|
|
4488
|
+
inputs: [
|
|
4489
|
+
{
|
|
4490
|
+
name: "_l1ChainId",
|
|
4491
|
+
type: "uint256",
|
|
4492
|
+
internalType: "uint256"
|
|
4493
|
+
}
|
|
4494
|
+
],
|
|
4495
|
+
outputs: [],
|
|
4496
|
+
stateMutability: "nonpayable"
|
|
4497
|
+
},
|
|
4498
|
+
{
|
|
4499
|
+
type: "function",
|
|
4500
|
+
name: "unbundleBundle",
|
|
4580
4501
|
inputs: [
|
|
4581
4502
|
{
|
|
4582
|
-
internalType: "uint256",
|
|
4583
4503
|
name: "_sourceChainId",
|
|
4584
|
-
type: "uint256"
|
|
4504
|
+
type: "uint256",
|
|
4505
|
+
internalType: "uint256"
|
|
4585
4506
|
},
|
|
4586
4507
|
{
|
|
4587
|
-
internalType: "bytes",
|
|
4588
4508
|
name: "_bundle",
|
|
4589
|
-
type: "bytes"
|
|
4509
|
+
type: "bytes",
|
|
4510
|
+
internalType: "bytes"
|
|
4590
4511
|
},
|
|
4591
4512
|
{
|
|
4592
|
-
internalType: "enum CallStatus[]",
|
|
4593
4513
|
name: "_callStatus",
|
|
4594
|
-
type: "uint8[]"
|
|
4514
|
+
type: "uint8[]",
|
|
4515
|
+
internalType: "enum CallStatus[]"
|
|
4595
4516
|
}
|
|
4596
4517
|
],
|
|
4597
|
-
name: "unbundleBundle",
|
|
4598
4518
|
outputs: [],
|
|
4599
|
-
stateMutability: "nonpayable"
|
|
4600
|
-
type: "function"
|
|
4519
|
+
stateMutability: "nonpayable"
|
|
4601
4520
|
},
|
|
4602
4521
|
{
|
|
4522
|
+
type: "function",
|
|
4523
|
+
name: "verifyBundle",
|
|
4603
4524
|
inputs: [
|
|
4604
4525
|
{
|
|
4605
|
-
internalType: "bytes",
|
|
4606
4526
|
name: "_bundle",
|
|
4607
|
-
type: "bytes"
|
|
4527
|
+
type: "bytes",
|
|
4528
|
+
internalType: "bytes"
|
|
4608
4529
|
},
|
|
4609
4530
|
{
|
|
4531
|
+
name: "_proof",
|
|
4532
|
+
type: "tuple",
|
|
4533
|
+
internalType: "struct MessageInclusionProof",
|
|
4610
4534
|
components: [
|
|
4611
4535
|
{
|
|
4612
|
-
internalType: "uint256",
|
|
4613
4536
|
name: "chainId",
|
|
4614
|
-
type: "uint256"
|
|
4537
|
+
type: "uint256",
|
|
4538
|
+
internalType: "uint256"
|
|
4615
4539
|
},
|
|
4616
4540
|
{
|
|
4617
|
-
internalType: "uint256",
|
|
4618
4541
|
name: "l1BatchNumber",
|
|
4619
|
-
type: "uint256"
|
|
4542
|
+
type: "uint256",
|
|
4543
|
+
internalType: "uint256"
|
|
4620
4544
|
},
|
|
4621
4545
|
{
|
|
4622
|
-
internalType: "uint256",
|
|
4623
4546
|
name: "l2MessageIndex",
|
|
4624
|
-
type: "uint256"
|
|
4547
|
+
type: "uint256",
|
|
4548
|
+
internalType: "uint256"
|
|
4625
4549
|
},
|
|
4626
4550
|
{
|
|
4551
|
+
name: "message",
|
|
4552
|
+
type: "tuple",
|
|
4553
|
+
internalType: "struct L2Message",
|
|
4627
4554
|
components: [
|
|
4628
4555
|
{
|
|
4629
|
-
internalType: "uint16",
|
|
4630
4556
|
name: "txNumberInBatch",
|
|
4631
|
-
type: "uint16"
|
|
4557
|
+
type: "uint16",
|
|
4558
|
+
internalType: "uint16"
|
|
4632
4559
|
},
|
|
4633
4560
|
{
|
|
4634
|
-
internalType: "address",
|
|
4635
4561
|
name: "sender",
|
|
4636
|
-
type: "address"
|
|
4562
|
+
type: "address",
|
|
4563
|
+
internalType: "address"
|
|
4637
4564
|
},
|
|
4638
4565
|
{
|
|
4639
|
-
internalType: "bytes",
|
|
4640
4566
|
name: "data",
|
|
4641
|
-
type: "bytes"
|
|
4567
|
+
type: "bytes",
|
|
4568
|
+
internalType: "bytes"
|
|
4642
4569
|
}
|
|
4643
|
-
]
|
|
4644
|
-
internalType: "struct L2Message",
|
|
4645
|
-
name: "message",
|
|
4646
|
-
type: "tuple"
|
|
4570
|
+
]
|
|
4647
4571
|
},
|
|
4648
4572
|
{
|
|
4649
|
-
internalType: "bytes32[]",
|
|
4650
4573
|
name: "proof",
|
|
4651
|
-
type: "bytes32[]"
|
|
4574
|
+
type: "bytes32[]",
|
|
4575
|
+
internalType: "bytes32[]"
|
|
4652
4576
|
}
|
|
4653
|
-
]
|
|
4654
|
-
internalType: "struct MessageInclusionProof",
|
|
4655
|
-
name: "_proof",
|
|
4656
|
-
type: "tuple"
|
|
4577
|
+
]
|
|
4657
4578
|
}
|
|
4658
4579
|
],
|
|
4659
|
-
name: "verifyBundle",
|
|
4660
4580
|
outputs: [],
|
|
4661
|
-
stateMutability: "nonpayable"
|
|
4662
|
-
|
|
4581
|
+
stateMutability: "nonpayable"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
type: "event",
|
|
4585
|
+
name: "BundleExecuted",
|
|
4586
|
+
inputs: [
|
|
4587
|
+
{
|
|
4588
|
+
name: "bundleHash",
|
|
4589
|
+
type: "bytes32",
|
|
4590
|
+
indexed: true,
|
|
4591
|
+
internalType: "bytes32"
|
|
4592
|
+
}
|
|
4593
|
+
],
|
|
4594
|
+
anonymous: false
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
type: "event",
|
|
4598
|
+
name: "BundleUnbundled",
|
|
4599
|
+
inputs: [
|
|
4600
|
+
{
|
|
4601
|
+
name: "bundleHash",
|
|
4602
|
+
type: "bytes32",
|
|
4603
|
+
indexed: true,
|
|
4604
|
+
internalType: "bytes32"
|
|
4605
|
+
}
|
|
4606
|
+
],
|
|
4607
|
+
anonymous: false
|
|
4608
|
+
},
|
|
4609
|
+
{
|
|
4610
|
+
type: "event",
|
|
4611
|
+
name: "BundleVerified",
|
|
4612
|
+
inputs: [
|
|
4613
|
+
{
|
|
4614
|
+
name: "bundleHash",
|
|
4615
|
+
type: "bytes32",
|
|
4616
|
+
indexed: true,
|
|
4617
|
+
internalType: "bytes32"
|
|
4618
|
+
}
|
|
4619
|
+
],
|
|
4620
|
+
anonymous: false
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
type: "event",
|
|
4624
|
+
name: "CallProcessed",
|
|
4625
|
+
inputs: [
|
|
4626
|
+
{
|
|
4627
|
+
name: "bundleHash",
|
|
4628
|
+
type: "bytes32",
|
|
4629
|
+
indexed: true,
|
|
4630
|
+
internalType: "bytes32"
|
|
4631
|
+
},
|
|
4632
|
+
{
|
|
4633
|
+
name: "callIndex",
|
|
4634
|
+
type: "uint256",
|
|
4635
|
+
indexed: true,
|
|
4636
|
+
internalType: "uint256"
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
name: "status",
|
|
4640
|
+
type: "uint8",
|
|
4641
|
+
indexed: false,
|
|
4642
|
+
internalType: "enum CallStatus"
|
|
4643
|
+
}
|
|
4644
|
+
],
|
|
4645
|
+
anonymous: false
|
|
4663
4646
|
}
|
|
4664
4647
|
];
|
|
4665
4648
|
var IInteropHandler_default = IInteropHandlerABI;
|
|
4666
4649
|
|
|
4667
|
-
// src/core/internal/abis/
|
|
4650
|
+
// src/core/internal/abis/IInteropRootStorage.ts
|
|
4668
4651
|
var InteropRootStorageABI = [
|
|
4669
4652
|
{
|
|
4653
|
+
type: "function",
|
|
4654
|
+
name: "interopRoots",
|
|
4670
4655
|
inputs: [
|
|
4671
4656
|
{
|
|
4672
|
-
internalType: "uint256",
|
|
4673
4657
|
name: "chainId",
|
|
4674
|
-
type: "uint256"
|
|
4658
|
+
type: "uint256",
|
|
4659
|
+
internalType: "uint256"
|
|
4675
4660
|
},
|
|
4676
4661
|
{
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4662
|
+
name: "blockOrBatchNumber",
|
|
4663
|
+
type: "uint256",
|
|
4664
|
+
internalType: "uint256"
|
|
4680
4665
|
}
|
|
4681
4666
|
],
|
|
4682
|
-
name: "interopRoots",
|
|
4683
4667
|
outputs: [
|
|
4684
4668
|
{
|
|
4685
|
-
internalType: "bytes32",
|
|
4686
4669
|
name: "",
|
|
4687
|
-
type: "bytes32"
|
|
4670
|
+
type: "bytes32",
|
|
4671
|
+
internalType: "bytes32"
|
|
4688
4672
|
}
|
|
4689
4673
|
],
|
|
4690
|
-
stateMutability: "view"
|
|
4691
|
-
|
|
4674
|
+
stateMutability: "view"
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
type: "event",
|
|
4678
|
+
name: "InteropRootAdded",
|
|
4679
|
+
inputs: [
|
|
4680
|
+
{
|
|
4681
|
+
name: "chainId",
|
|
4682
|
+
type: "uint256",
|
|
4683
|
+
indexed: true,
|
|
4684
|
+
internalType: "uint256"
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
name: "blockNumber",
|
|
4688
|
+
type: "uint256",
|
|
4689
|
+
indexed: true,
|
|
4690
|
+
internalType: "uint256"
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
name: "sides",
|
|
4694
|
+
type: "bytes32[]",
|
|
4695
|
+
indexed: false,
|
|
4696
|
+
internalType: "bytes32[]"
|
|
4697
|
+
}
|
|
4698
|
+
],
|
|
4699
|
+
anonymous: false
|
|
4692
4700
|
}
|
|
4693
4701
|
];
|
|
4694
|
-
var
|
|
4702
|
+
var IInteropRootStorage_default = InteropRootStorageABI;
|
|
4695
4703
|
|
|
4696
4704
|
// src/core/types/fees.ts
|
|
4697
4705
|
function toGasOverrides(overrides) {
|
|
@@ -7795,7 +7803,7 @@ async function commonCtx3(dstProvider, params, client, tokens, contracts, attrib
|
|
|
7795
7803
|
client.baseToken(chainId),
|
|
7796
7804
|
client.baseToken(dstChainId)
|
|
7797
7805
|
]);
|
|
7798
|
-
const interopCenterIface = new ethers.Interface(
|
|
7806
|
+
const interopCenterIface = new ethers.Interface(IInteropCenter_default);
|
|
7799
7807
|
const interopHandlerIface = new ethers.Interface(IInteropHandler_default);
|
|
7800
7808
|
const baseMatches = srcBaseToken.toLowerCase() === dstBaseToken.toLowerCase();
|
|
7801
7809
|
return {
|
|
@@ -7820,7 +7828,7 @@ async function commonCtx3(dstProvider, params, client, tokens, contracts, attrib
|
|
|
7820
7828
|
};
|
|
7821
7829
|
}
|
|
7822
7830
|
function getTopics() {
|
|
7823
|
-
const centerIface = new ethers.Interface(
|
|
7831
|
+
const centerIface = new ethers.Interface(IInteropCenter_default);
|
|
7824
7832
|
const handlerIface = new ethers.Interface(IInteropHandler_default);
|
|
7825
7833
|
const topics = {
|
|
7826
7834
|
interopBundleSent: centerIface.getEvent("InteropBundleSent").topicHash,
|
|
@@ -7916,7 +7924,7 @@ async function getInteropRoot(provider, rootChainId, batchNumber) {
|
|
|
7916
7924
|
async () => {
|
|
7917
7925
|
const rootStorage = new ethers.Contract(
|
|
7918
7926
|
L2_INTEROP_ROOT_STORAGE_ADDRESS,
|
|
7919
|
-
|
|
7927
|
+
IInteropRootStorage_default,
|
|
7920
7928
|
provider
|
|
7921
7929
|
);
|
|
7922
7930
|
return await rootStorage.interopRoots(rootChainId, batchNumber);
|