@matterlabs/zksync-js 0.0.9 → 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.cjs +39 -40
- package/dist/adapters/viem/client.cjs.map +1 -1
- package/dist/adapters/viem/client.js +5 -5
- package/dist/adapters/viem/index.cjs +97 -182
- package/dist/adapters/viem/index.cjs.map +1 -1
- package/dist/adapters/viem/index.js +7 -7
- package/dist/adapters/viem/sdk.js +5 -4
- package/dist/{chunk-IYEDEUXG.js → chunk-6IT5PEEN.js} +1 -1
- package/dist/{chunk-5AG6B7UX.js → chunk-CCUAGJ6K.js} +5 -112
- package/dist/{chunk-KLNFDFLA.js → chunk-EWBYKU4G.js} +3 -3
- package/dist/{chunk-JNWHQJU3.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-QUI3J42E.js +113 -0
- package/dist/{chunk-RRKVUW3G.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
package/dist/index.cjs
CHANGED
|
@@ -73,12 +73,12 @@ __export(abi_exports, {
|
|
|
73
73
|
IBridgehubABI: () => IBridgehub_default,
|
|
74
74
|
IERC20ABI: () => IERC20_default,
|
|
75
75
|
IERC7786AttributesABI: () => IERC7786Attributes_default,
|
|
76
|
+
IInteropCenterABI: () => IInteropCenter_default,
|
|
76
77
|
IInteropHandlerABI: () => IInteropHandler_default,
|
|
78
|
+
IInteropRootStorageABI: () => IInteropRootStorage_default,
|
|
77
79
|
IL1AssetRouterABI: () => IL1AssetRouter_default,
|
|
78
80
|
IL1NullifierABI: () => IL1Nullifier_default,
|
|
79
81
|
IL2AssetRouterABI: () => IL2AssetRouter_default,
|
|
80
|
-
InteropCenterABI: () => InteropCenter_default,
|
|
81
|
-
InteropRootStorageABI: () => InteropRootStorage_default,
|
|
82
82
|
L1NativeTokenVaultABI: () => L1NativeTokenVault_default,
|
|
83
83
|
L2MessageVerificationABI: () => L2MessageVerification_default,
|
|
84
84
|
L2NativeTokenVaultABI: () => L2NativeTokenVault_default,
|
|
@@ -4630,1001 +4630,1009 @@ var MailboxABI = [
|
|
|
4630
4630
|
];
|
|
4631
4631
|
var Mailbox_default = MailboxABI;
|
|
4632
4632
|
|
|
4633
|
-
// src/core/internal/abis/
|
|
4634
|
-
var
|
|
4633
|
+
// src/core/internal/abis/IInteropCenter.ts
|
|
4634
|
+
var IInteropCenterABI = [
|
|
4635
4635
|
{
|
|
4636
|
-
|
|
4636
|
+
type: "function",
|
|
4637
|
+
name: "L1_CHAIN_ID",
|
|
4638
|
+
inputs: [],
|
|
4639
|
+
outputs: [
|
|
4637
4640
|
{
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
+
name: "",
|
|
4642
|
+
type: "uint256",
|
|
4643
|
+
internalType: "uint256"
|
|
4641
4644
|
}
|
|
4642
4645
|
],
|
|
4643
|
-
|
|
4644
|
-
type: "error"
|
|
4646
|
+
stateMutability: "view"
|
|
4645
4647
|
},
|
|
4646
4648
|
{
|
|
4647
|
-
|
|
4649
|
+
type: "function",
|
|
4650
|
+
name: "ZK_INTEROP_FEE",
|
|
4651
|
+
inputs: [],
|
|
4652
|
+
outputs: [
|
|
4648
4653
|
{
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
}
|
|
4654
|
+
name: "",
|
|
4655
|
+
type: "uint256",
|
|
4656
|
+
internalType: "uint256"
|
|
4657
|
+
}
|
|
4658
|
+
],
|
|
4659
|
+
stateMutability: "view"
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
type: "function",
|
|
4663
|
+
name: "ZK_TOKEN_ASSET_ID",
|
|
4664
|
+
inputs: [],
|
|
4665
|
+
outputs: [
|
|
4653
4666
|
{
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4667
|
+
name: "",
|
|
4668
|
+
type: "bytes32",
|
|
4669
|
+
internalType: "bytes32"
|
|
4657
4670
|
}
|
|
4658
4671
|
],
|
|
4659
|
-
|
|
4660
|
-
type: "error"
|
|
4672
|
+
stateMutability: "view"
|
|
4661
4673
|
},
|
|
4662
4674
|
{
|
|
4675
|
+
type: "function",
|
|
4676
|
+
name: "accumulatedProtocolFees",
|
|
4663
4677
|
inputs: [
|
|
4664
4678
|
{
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
}
|
|
4679
|
+
name: "coinbase",
|
|
4680
|
+
type: "address",
|
|
4681
|
+
internalType: "address"
|
|
4682
|
+
}
|
|
4683
|
+
],
|
|
4684
|
+
outputs: [
|
|
4669
4685
|
{
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4686
|
+
name: "",
|
|
4687
|
+
type: "uint256",
|
|
4688
|
+
internalType: "uint256"
|
|
4673
4689
|
}
|
|
4674
4690
|
],
|
|
4675
|
-
|
|
4676
|
-
type: "error"
|
|
4691
|
+
stateMutability: "view"
|
|
4677
4692
|
},
|
|
4678
4693
|
{
|
|
4694
|
+
type: "function",
|
|
4695
|
+
name: "accumulatedZKFees",
|
|
4679
4696
|
inputs: [
|
|
4680
4697
|
{
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4698
|
+
name: "coinbase",
|
|
4699
|
+
type: "address",
|
|
4700
|
+
internalType: "address"
|
|
4684
4701
|
}
|
|
4685
4702
|
],
|
|
4686
|
-
|
|
4687
|
-
|
|
4703
|
+
outputs: [
|
|
4704
|
+
{
|
|
4705
|
+
name: "",
|
|
4706
|
+
type: "uint256",
|
|
4707
|
+
internalType: "uint256"
|
|
4708
|
+
}
|
|
4709
|
+
],
|
|
4710
|
+
stateMutability: "view"
|
|
4688
4711
|
},
|
|
4689
4712
|
{
|
|
4713
|
+
type: "function",
|
|
4714
|
+
name: "claimProtocolFees",
|
|
4690
4715
|
inputs: [
|
|
4691
4716
|
{
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4717
|
+
name: "_receiver",
|
|
4718
|
+
type: "address",
|
|
4719
|
+
internalType: "address"
|
|
4695
4720
|
}
|
|
4696
4721
|
],
|
|
4697
|
-
|
|
4698
|
-
|
|
4722
|
+
outputs: [],
|
|
4723
|
+
stateMutability: "nonpayable"
|
|
4699
4724
|
},
|
|
4700
4725
|
{
|
|
4726
|
+
type: "function",
|
|
4727
|
+
name: "claimZKFees",
|
|
4701
4728
|
inputs: [
|
|
4702
4729
|
{
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4730
|
+
name: "_receiver",
|
|
4731
|
+
type: "address",
|
|
4732
|
+
internalType: "address"
|
|
4706
4733
|
}
|
|
4707
4734
|
],
|
|
4708
|
-
|
|
4709
|
-
|
|
4735
|
+
outputs: [],
|
|
4736
|
+
stateMutability: "nonpayable"
|
|
4710
4737
|
},
|
|
4711
4738
|
{
|
|
4739
|
+
type: "function",
|
|
4740
|
+
name: "forwardTransactionOnGatewayWithBalanceChange",
|
|
4712
4741
|
inputs: [
|
|
4713
4742
|
{
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4743
|
+
name: "_chainId",
|
|
4744
|
+
type: "uint256",
|
|
4745
|
+
internalType: "uint256"
|
|
4717
4746
|
},
|
|
4718
4747
|
{
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4748
|
+
name: "_canonicalTxHash",
|
|
4749
|
+
type: "bytes32",
|
|
4750
|
+
internalType: "bytes32"
|
|
4751
|
+
},
|
|
4752
|
+
{
|
|
4753
|
+
name: "_expirationTimestamp",
|
|
4754
|
+
type: "uint64",
|
|
4755
|
+
internalType: "uint64"
|
|
4756
|
+
},
|
|
4757
|
+
{
|
|
4758
|
+
name: "_balanceChange",
|
|
4759
|
+
type: "tuple",
|
|
4760
|
+
internalType: "struct BalanceChange",
|
|
4761
|
+
components: [
|
|
4762
|
+
{
|
|
4763
|
+
name: "version",
|
|
4764
|
+
type: "bytes1",
|
|
4765
|
+
internalType: "bytes1"
|
|
4766
|
+
},
|
|
4767
|
+
{
|
|
4768
|
+
name: "originToken",
|
|
4769
|
+
type: "address",
|
|
4770
|
+
internalType: "address"
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
name: "baseTokenAssetId",
|
|
4774
|
+
type: "bytes32",
|
|
4775
|
+
internalType: "bytes32"
|
|
4776
|
+
},
|
|
4777
|
+
{
|
|
4778
|
+
name: "baseTokenAmount",
|
|
4779
|
+
type: "uint256",
|
|
4780
|
+
internalType: "uint256"
|
|
4781
|
+
},
|
|
4782
|
+
{
|
|
4783
|
+
name: "assetId",
|
|
4784
|
+
type: "bytes32",
|
|
4785
|
+
internalType: "bytes32"
|
|
4786
|
+
},
|
|
4787
|
+
{
|
|
4788
|
+
name: "amount",
|
|
4789
|
+
type: "uint256",
|
|
4790
|
+
internalType: "uint256"
|
|
4791
|
+
},
|
|
4792
|
+
{
|
|
4793
|
+
name: "tokenOriginChainId",
|
|
4794
|
+
type: "uint256",
|
|
4795
|
+
internalType: "uint256"
|
|
4796
|
+
}
|
|
4797
|
+
]
|
|
4722
4798
|
}
|
|
4723
4799
|
],
|
|
4724
|
-
|
|
4725
|
-
|
|
4800
|
+
outputs: [],
|
|
4801
|
+
stateMutability: "nonpayable"
|
|
4726
4802
|
},
|
|
4727
4803
|
{
|
|
4804
|
+
type: "function",
|
|
4805
|
+
name: "getZKTokenAddress",
|
|
4728
4806
|
inputs: [],
|
|
4729
|
-
|
|
4730
|
-
|
|
4807
|
+
outputs: [
|
|
4808
|
+
{
|
|
4809
|
+
name: "",
|
|
4810
|
+
type: "address",
|
|
4811
|
+
internalType: "address"
|
|
4812
|
+
}
|
|
4813
|
+
],
|
|
4814
|
+
stateMutability: "view"
|
|
4731
4815
|
},
|
|
4732
4816
|
{
|
|
4817
|
+
type: "function",
|
|
4818
|
+
name: "initL2",
|
|
4733
4819
|
inputs: [
|
|
4734
4820
|
{
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4821
|
+
name: "_l1ChainId",
|
|
4822
|
+
type: "uint256",
|
|
4823
|
+
internalType: "uint256"
|
|
4738
4824
|
},
|
|
4739
4825
|
{
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4826
|
+
name: "_owner",
|
|
4827
|
+
type: "address",
|
|
4828
|
+
internalType: "address"
|
|
4829
|
+
},
|
|
4830
|
+
{
|
|
4831
|
+
name: "_zkTokenAssetId",
|
|
4832
|
+
type: "bytes32",
|
|
4833
|
+
internalType: "bytes32"
|
|
4743
4834
|
}
|
|
4744
4835
|
],
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
},
|
|
4748
|
-
{
|
|
4749
|
-
inputs: [],
|
|
4750
|
-
name: "SlotOccupied",
|
|
4751
|
-
type: "error"
|
|
4836
|
+
outputs: [],
|
|
4837
|
+
stateMutability: "nonpayable"
|
|
4752
4838
|
},
|
|
4753
4839
|
{
|
|
4840
|
+
type: "function",
|
|
4841
|
+
name: "interopBundleNonce",
|
|
4754
4842
|
inputs: [
|
|
4755
4843
|
{
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4844
|
+
name: "sender",
|
|
4845
|
+
type: "address",
|
|
4846
|
+
internalType: "address"
|
|
4759
4847
|
}
|
|
4760
4848
|
],
|
|
4761
|
-
|
|
4762
|
-
type: "error"
|
|
4763
|
-
},
|
|
4764
|
-
{
|
|
4765
|
-
inputs: [
|
|
4849
|
+
outputs: [
|
|
4766
4850
|
{
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4851
|
+
name: "",
|
|
4852
|
+
type: "uint256",
|
|
4853
|
+
internalType: "uint256"
|
|
4770
4854
|
}
|
|
4771
4855
|
],
|
|
4772
|
-
|
|
4773
|
-
type: "error"
|
|
4856
|
+
stateMutability: "view"
|
|
4774
4857
|
},
|
|
4775
4858
|
{
|
|
4776
|
-
|
|
4777
|
-
|
|
4859
|
+
type: "function",
|
|
4860
|
+
name: "interopProtocolFee",
|
|
4861
|
+
inputs: [],
|
|
4862
|
+
outputs: [
|
|
4778
4863
|
{
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
type: "uint8"
|
|
4864
|
+
name: "",
|
|
4865
|
+
type: "uint256",
|
|
4866
|
+
internalType: "uint256"
|
|
4783
4867
|
}
|
|
4784
4868
|
],
|
|
4785
|
-
|
|
4786
|
-
type: "event"
|
|
4869
|
+
stateMutability: "view"
|
|
4787
4870
|
},
|
|
4788
4871
|
{
|
|
4789
|
-
|
|
4872
|
+
type: "function",
|
|
4873
|
+
name: "parseAttributes",
|
|
4790
4874
|
inputs: [
|
|
4791
4875
|
{
|
|
4792
|
-
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
type: "bytes32"
|
|
4876
|
+
name: "_attributes",
|
|
4877
|
+
type: "bytes[]",
|
|
4878
|
+
internalType: "bytes[]"
|
|
4796
4879
|
},
|
|
4797
4880
|
{
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4881
|
+
name: "_restriction",
|
|
4882
|
+
type: "uint8",
|
|
4883
|
+
internalType: "enum IInteropCenter.AttributeParsingRestrictions"
|
|
4884
|
+
}
|
|
4885
|
+
],
|
|
4886
|
+
outputs: [
|
|
4803
4887
|
{
|
|
4888
|
+
name: "callAttributes",
|
|
4889
|
+
type: "tuple",
|
|
4890
|
+
internalType: "struct CallAttributes",
|
|
4804
4891
|
components: [
|
|
4805
4892
|
{
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
|
|
4893
|
+
name: "interopCallValue",
|
|
4894
|
+
type: "uint256",
|
|
4895
|
+
internalType: "uint256"
|
|
4809
4896
|
},
|
|
4810
4897
|
{
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4898
|
+
name: "indirectCall",
|
|
4899
|
+
type: "bool",
|
|
4900
|
+
internalType: "bool"
|
|
4814
4901
|
},
|
|
4815
4902
|
{
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
}
|
|
4903
|
+
name: "indirectCallMessageValue",
|
|
4904
|
+
type: "uint256",
|
|
4905
|
+
internalType: "uint256"
|
|
4906
|
+
}
|
|
4907
|
+
]
|
|
4908
|
+
},
|
|
4909
|
+
{
|
|
4910
|
+
name: "bundleAttributes",
|
|
4911
|
+
type: "tuple",
|
|
4912
|
+
internalType: "struct BundleAttributes",
|
|
4913
|
+
components: [
|
|
4820
4914
|
{
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4915
|
+
name: "executionAddress",
|
|
4916
|
+
type: "bytes",
|
|
4917
|
+
internalType: "bytes"
|
|
4824
4918
|
},
|
|
4825
4919
|
{
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
name: "version",
|
|
4830
|
-
type: "bytes1"
|
|
4831
|
-
},
|
|
4832
|
-
{
|
|
4833
|
-
internalType: "bool",
|
|
4834
|
-
name: "shadowAccount",
|
|
4835
|
-
type: "bool"
|
|
4836
|
-
},
|
|
4837
|
-
{
|
|
4838
|
-
internalType: "address",
|
|
4839
|
-
name: "to",
|
|
4840
|
-
type: "address"
|
|
4841
|
-
},
|
|
4842
|
-
{
|
|
4843
|
-
internalType: "address",
|
|
4844
|
-
name: "from",
|
|
4845
|
-
type: "address"
|
|
4846
|
-
},
|
|
4847
|
-
{
|
|
4848
|
-
internalType: "uint256",
|
|
4849
|
-
name: "value",
|
|
4850
|
-
type: "uint256"
|
|
4851
|
-
},
|
|
4852
|
-
{
|
|
4853
|
-
internalType: "bytes",
|
|
4854
|
-
name: "data",
|
|
4855
|
-
type: "bytes"
|
|
4856
|
-
}
|
|
4857
|
-
],
|
|
4858
|
-
internalType: "struct InteropCall[]",
|
|
4859
|
-
name: "calls",
|
|
4860
|
-
type: "tuple[]"
|
|
4920
|
+
name: "unbundlerAddress",
|
|
4921
|
+
type: "bytes",
|
|
4922
|
+
internalType: "bytes"
|
|
4861
4923
|
},
|
|
4862
4924
|
{
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
name: "executionAddress",
|
|
4867
|
-
type: "bytes"
|
|
4868
|
-
},
|
|
4869
|
-
{
|
|
4870
|
-
internalType: "bytes",
|
|
4871
|
-
name: "unbundlerAddress",
|
|
4872
|
-
type: "bytes"
|
|
4873
|
-
}
|
|
4874
|
-
],
|
|
4875
|
-
internalType: "struct BundleAttributes",
|
|
4876
|
-
name: "bundleAttributes",
|
|
4877
|
-
type: "tuple"
|
|
4925
|
+
name: "useFixedFee",
|
|
4926
|
+
type: "bool",
|
|
4927
|
+
internalType: "bool"
|
|
4878
4928
|
}
|
|
4879
|
-
]
|
|
4880
|
-
indexed: false,
|
|
4881
|
-
internalType: "struct InteropBundle",
|
|
4882
|
-
name: "interopBundle",
|
|
4883
|
-
type: "tuple"
|
|
4929
|
+
]
|
|
4884
4930
|
}
|
|
4885
4931
|
],
|
|
4886
|
-
|
|
4887
|
-
type: "event"
|
|
4932
|
+
stateMutability: "pure"
|
|
4888
4933
|
},
|
|
4889
4934
|
{
|
|
4890
|
-
|
|
4935
|
+
type: "function",
|
|
4936
|
+
name: "pause",
|
|
4937
|
+
inputs: [],
|
|
4938
|
+
outputs: [],
|
|
4939
|
+
stateMutability: "nonpayable"
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
type: "function",
|
|
4943
|
+
name: "sendBundle",
|
|
4891
4944
|
inputs: [
|
|
4892
4945
|
{
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
type: "bytes32"
|
|
4897
|
-
},
|
|
4898
|
-
{
|
|
4899
|
-
indexed: false,
|
|
4900
|
-
internalType: "bytes",
|
|
4901
|
-
name: "sender",
|
|
4902
|
-
type: "bytes"
|
|
4903
|
-
},
|
|
4904
|
-
{
|
|
4905
|
-
indexed: false,
|
|
4906
|
-
internalType: "bytes",
|
|
4907
|
-
name: "recipient",
|
|
4908
|
-
type: "bytes"
|
|
4946
|
+
name: "_destinationChainId",
|
|
4947
|
+
type: "bytes",
|
|
4948
|
+
internalType: "bytes"
|
|
4909
4949
|
},
|
|
4910
4950
|
{
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4951
|
+
name: "_callStarters",
|
|
4952
|
+
type: "tuple[]",
|
|
4953
|
+
internalType: "struct InteropCallStarter[]",
|
|
4954
|
+
components: [
|
|
4955
|
+
{
|
|
4956
|
+
name: "to",
|
|
4957
|
+
type: "bytes",
|
|
4958
|
+
internalType: "bytes"
|
|
4959
|
+
},
|
|
4960
|
+
{
|
|
4961
|
+
name: "data",
|
|
4962
|
+
type: "bytes",
|
|
4963
|
+
internalType: "bytes"
|
|
4964
|
+
},
|
|
4965
|
+
{
|
|
4966
|
+
name: "callAttributes",
|
|
4967
|
+
type: "bytes[]",
|
|
4968
|
+
internalType: "bytes[]"
|
|
4969
|
+
}
|
|
4970
|
+
]
|
|
4915
4971
|
},
|
|
4916
4972
|
{
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4973
|
+
name: "_bundleAttributes",
|
|
4974
|
+
type: "bytes[]",
|
|
4975
|
+
internalType: "bytes[]"
|
|
4976
|
+
}
|
|
4977
|
+
],
|
|
4978
|
+
outputs: [
|
|
4922
4979
|
{
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
type: "bytes[]"
|
|
4980
|
+
name: "bundleHash",
|
|
4981
|
+
type: "bytes32",
|
|
4982
|
+
internalType: "bytes32"
|
|
4927
4983
|
}
|
|
4928
4984
|
],
|
|
4929
|
-
|
|
4930
|
-
type: "event"
|
|
4985
|
+
stateMutability: "payable"
|
|
4931
4986
|
},
|
|
4932
4987
|
{
|
|
4933
|
-
|
|
4988
|
+
type: "function",
|
|
4989
|
+
name: "setInteropFee",
|
|
4934
4990
|
inputs: [
|
|
4935
4991
|
{
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
type: "address"
|
|
4940
|
-
},
|
|
4941
|
-
{
|
|
4942
|
-
indexed: true,
|
|
4943
|
-
internalType: "address",
|
|
4944
|
-
name: "newAssetRouter",
|
|
4945
|
-
type: "address"
|
|
4992
|
+
name: "_fee",
|
|
4993
|
+
type: "uint256",
|
|
4994
|
+
internalType: "uint256"
|
|
4946
4995
|
}
|
|
4947
4996
|
],
|
|
4948
|
-
|
|
4949
|
-
|
|
4997
|
+
outputs: [],
|
|
4998
|
+
stateMutability: "nonpayable"
|
|
4950
4999
|
},
|
|
4951
5000
|
{
|
|
4952
|
-
|
|
5001
|
+
type: "function",
|
|
5002
|
+
name: "unpause",
|
|
5003
|
+
inputs: [],
|
|
5004
|
+
outputs: [],
|
|
5005
|
+
stateMutability: "nonpayable"
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
type: "function",
|
|
5009
|
+
name: "updateL2",
|
|
4953
5010
|
inputs: [
|
|
4954
5011
|
{
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
type: "address"
|
|
5012
|
+
name: "_l1ChainId",
|
|
5013
|
+
type: "uint256",
|
|
5014
|
+
internalType: "uint256"
|
|
4959
5015
|
},
|
|
4960
5016
|
{
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
type: "address"
|
|
5017
|
+
name: "_owner",
|
|
5018
|
+
type: "address",
|
|
5019
|
+
internalType: "address"
|
|
4965
5020
|
}
|
|
4966
5021
|
],
|
|
4967
|
-
|
|
4968
|
-
|
|
5022
|
+
outputs: [],
|
|
5023
|
+
stateMutability: "nonpayable"
|
|
4969
5024
|
},
|
|
4970
5025
|
{
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
internalType: "address",
|
|
4976
|
-
name: "previousOwner",
|
|
4977
|
-
type: "address"
|
|
4978
|
-
},
|
|
5026
|
+
type: "function",
|
|
5027
|
+
name: "zkToken",
|
|
5028
|
+
inputs: [],
|
|
5029
|
+
outputs: [
|
|
4979
5030
|
{
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
type: "address"
|
|
5031
|
+
name: "",
|
|
5032
|
+
type: "address",
|
|
5033
|
+
internalType: "contract IERC20"
|
|
4984
5034
|
}
|
|
4985
5035
|
],
|
|
4986
|
-
|
|
4987
|
-
type: "event"
|
|
5036
|
+
stateMutability: "view"
|
|
4988
5037
|
},
|
|
4989
5038
|
{
|
|
4990
|
-
|
|
5039
|
+
type: "event",
|
|
5040
|
+
name: "FixedZKFeesAccumulated",
|
|
4991
5041
|
inputs: [
|
|
4992
5042
|
{
|
|
5043
|
+
name: "payer",
|
|
5044
|
+
type: "address",
|
|
4993
5045
|
indexed: true,
|
|
4994
|
-
internalType: "address"
|
|
4995
|
-
name: "previousOwner",
|
|
4996
|
-
type: "address"
|
|
5046
|
+
internalType: "address"
|
|
4997
5047
|
},
|
|
4998
5048
|
{
|
|
5049
|
+
name: "coinbase",
|
|
5050
|
+
type: "address",
|
|
4999
5051
|
indexed: true,
|
|
5000
|
-
internalType: "address"
|
|
5001
|
-
|
|
5002
|
-
type: "address"
|
|
5003
|
-
}
|
|
5004
|
-
],
|
|
5005
|
-
name: "OwnershipTransferred",
|
|
5006
|
-
type: "event"
|
|
5007
|
-
},
|
|
5008
|
-
{
|
|
5009
|
-
anonymous: false,
|
|
5010
|
-
inputs: [
|
|
5052
|
+
internalType: "address"
|
|
5053
|
+
},
|
|
5011
5054
|
{
|
|
5055
|
+
name: "amount",
|
|
5056
|
+
type: "uint256",
|
|
5012
5057
|
indexed: false,
|
|
5013
|
-
internalType: "
|
|
5014
|
-
name: "account",
|
|
5015
|
-
type: "address"
|
|
5058
|
+
internalType: "uint256"
|
|
5016
5059
|
}
|
|
5017
5060
|
],
|
|
5018
|
-
|
|
5019
|
-
type: "event"
|
|
5061
|
+
anonymous: false
|
|
5020
5062
|
},
|
|
5021
5063
|
{
|
|
5022
|
-
|
|
5064
|
+
type: "event",
|
|
5065
|
+
name: "InteropBundleSent",
|
|
5023
5066
|
inputs: [
|
|
5024
5067
|
{
|
|
5068
|
+
name: "l2l1MsgHash",
|
|
5069
|
+
type: "bytes32",
|
|
5025
5070
|
indexed: false,
|
|
5026
|
-
internalType: "
|
|
5027
|
-
name: "account",
|
|
5028
|
-
type: "address"
|
|
5029
|
-
}
|
|
5030
|
-
],
|
|
5031
|
-
name: "Unpaused",
|
|
5032
|
-
type: "event"
|
|
5033
|
-
},
|
|
5034
|
-
{
|
|
5035
|
-
inputs: [],
|
|
5036
|
-
name: "L1_CHAIN_ID",
|
|
5037
|
-
outputs: [
|
|
5038
|
-
{
|
|
5039
|
-
internalType: "uint256",
|
|
5040
|
-
name: "",
|
|
5041
|
-
type: "uint256"
|
|
5042
|
-
}
|
|
5043
|
-
],
|
|
5044
|
-
stateMutability: "view",
|
|
5045
|
-
type: "function"
|
|
5046
|
-
},
|
|
5047
|
-
{
|
|
5048
|
-
inputs: [],
|
|
5049
|
-
name: "acceptOwnership",
|
|
5050
|
-
outputs: [],
|
|
5051
|
-
stateMutability: "nonpayable",
|
|
5052
|
-
type: "function"
|
|
5053
|
-
},
|
|
5054
|
-
{
|
|
5055
|
-
inputs: [
|
|
5056
|
-
{
|
|
5057
|
-
internalType: "uint256",
|
|
5058
|
-
name: "_chainId",
|
|
5059
|
-
type: "uint256"
|
|
5060
|
-
},
|
|
5061
|
-
{
|
|
5062
|
-
internalType: "bytes32",
|
|
5063
|
-
name: "_canonicalTxHash",
|
|
5064
|
-
type: "bytes32"
|
|
5071
|
+
internalType: "bytes32"
|
|
5065
5072
|
},
|
|
5066
5073
|
{
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5074
|
+
name: "interopBundleHash",
|
|
5075
|
+
type: "bytes32",
|
|
5076
|
+
indexed: false,
|
|
5077
|
+
internalType: "bytes32"
|
|
5070
5078
|
},
|
|
5071
5079
|
{
|
|
5080
|
+
name: "interopBundle",
|
|
5081
|
+
type: "tuple",
|
|
5082
|
+
indexed: false,
|
|
5083
|
+
internalType: "struct InteropBundle",
|
|
5072
5084
|
components: [
|
|
5073
5085
|
{
|
|
5074
|
-
internalType: "bytes1",
|
|
5075
5086
|
name: "version",
|
|
5076
|
-
type: "bytes1"
|
|
5087
|
+
type: "bytes1",
|
|
5088
|
+
internalType: "bytes1"
|
|
5077
5089
|
},
|
|
5078
5090
|
{
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
},
|
|
5083
|
-
{
|
|
5084
|
-
internalType: "bytes32",
|
|
5085
|
-
name: "baseTokenAssetId",
|
|
5086
|
-
type: "bytes32"
|
|
5091
|
+
name: "sourceChainId",
|
|
5092
|
+
type: "uint256",
|
|
5093
|
+
internalType: "uint256"
|
|
5087
5094
|
},
|
|
5088
5095
|
{
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5096
|
+
name: "destinationChainId",
|
|
5097
|
+
type: "uint256",
|
|
5098
|
+
internalType: "uint256"
|
|
5092
5099
|
},
|
|
5093
5100
|
{
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5101
|
+
name: "interopBundleSalt",
|
|
5102
|
+
type: "bytes32",
|
|
5103
|
+
internalType: "bytes32"
|
|
5097
5104
|
},
|
|
5098
5105
|
{
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5106
|
+
name: "calls",
|
|
5107
|
+
type: "tuple[]",
|
|
5108
|
+
internalType: "struct InteropCall[]",
|
|
5109
|
+
components: [
|
|
5110
|
+
{
|
|
5111
|
+
name: "version",
|
|
5112
|
+
type: "bytes1",
|
|
5113
|
+
internalType: "bytes1"
|
|
5114
|
+
},
|
|
5115
|
+
{
|
|
5116
|
+
name: "shadowAccount",
|
|
5117
|
+
type: "bool",
|
|
5118
|
+
internalType: "bool"
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
name: "to",
|
|
5122
|
+
type: "address",
|
|
5123
|
+
internalType: "address"
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
name: "from",
|
|
5127
|
+
type: "address",
|
|
5128
|
+
internalType: "address"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
name: "value",
|
|
5132
|
+
type: "uint256",
|
|
5133
|
+
internalType: "uint256"
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
name: "data",
|
|
5137
|
+
type: "bytes",
|
|
5138
|
+
internalType: "bytes"
|
|
5139
|
+
}
|
|
5140
|
+
]
|
|
5102
5141
|
},
|
|
5103
5142
|
{
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5143
|
+
name: "bundleAttributes",
|
|
5144
|
+
type: "tuple",
|
|
5145
|
+
internalType: "struct BundleAttributes",
|
|
5146
|
+
components: [
|
|
5147
|
+
{
|
|
5148
|
+
name: "executionAddress",
|
|
5149
|
+
type: "bytes",
|
|
5150
|
+
internalType: "bytes"
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
name: "unbundlerAddress",
|
|
5154
|
+
type: "bytes",
|
|
5155
|
+
internalType: "bytes"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
name: "useFixedFee",
|
|
5159
|
+
type: "bool",
|
|
5160
|
+
internalType: "bool"
|
|
5161
|
+
}
|
|
5162
|
+
]
|
|
5107
5163
|
}
|
|
5108
|
-
]
|
|
5109
|
-
internalType: "struct BalanceChange",
|
|
5110
|
-
name: "_balanceChange",
|
|
5111
|
-
type: "tuple"
|
|
5164
|
+
]
|
|
5112
5165
|
}
|
|
5113
5166
|
],
|
|
5114
|
-
|
|
5115
|
-
outputs: [],
|
|
5116
|
-
stateMutability: "nonpayable",
|
|
5117
|
-
type: "function"
|
|
5167
|
+
anonymous: false
|
|
5118
5168
|
},
|
|
5119
5169
|
{
|
|
5170
|
+
type: "event",
|
|
5171
|
+
name: "InteropFeeUpdated",
|
|
5120
5172
|
inputs: [
|
|
5121
5173
|
{
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5174
|
+
name: "oldFee",
|
|
5175
|
+
type: "uint256",
|
|
5176
|
+
indexed: true,
|
|
5177
|
+
internalType: "uint256"
|
|
5125
5178
|
},
|
|
5126
5179
|
{
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5180
|
+
name: "newFee",
|
|
5181
|
+
type: "uint256",
|
|
5182
|
+
indexed: true,
|
|
5183
|
+
internalType: "uint256"
|
|
5130
5184
|
}
|
|
5131
5185
|
],
|
|
5132
|
-
|
|
5133
|
-
outputs: [],
|
|
5134
|
-
stateMutability: "nonpayable",
|
|
5135
|
-
type: "function"
|
|
5186
|
+
anonymous: false
|
|
5136
5187
|
},
|
|
5137
5188
|
{
|
|
5189
|
+
type: "event",
|
|
5190
|
+
name: "NewAssetRouter",
|
|
5138
5191
|
inputs: [
|
|
5139
5192
|
{
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
name: "interopBundleNonce",
|
|
5146
|
-
outputs: [
|
|
5147
|
-
{
|
|
5148
|
-
internalType: "uint256",
|
|
5149
|
-
name: "numberOfBundlesSent",
|
|
5150
|
-
type: "uint256"
|
|
5151
|
-
}
|
|
5152
|
-
],
|
|
5153
|
-
stateMutability: "view",
|
|
5154
|
-
type: "function"
|
|
5155
|
-
},
|
|
5156
|
-
{
|
|
5157
|
-
inputs: [],
|
|
5158
|
-
name: "owner",
|
|
5159
|
-
outputs: [
|
|
5193
|
+
name: "oldAssetRouter",
|
|
5194
|
+
type: "address",
|
|
5195
|
+
indexed: true,
|
|
5196
|
+
internalType: "address"
|
|
5197
|
+
},
|
|
5160
5198
|
{
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5199
|
+
name: "newAssetRouter",
|
|
5200
|
+
type: "address",
|
|
5201
|
+
indexed: true,
|
|
5202
|
+
internalType: "address"
|
|
5164
5203
|
}
|
|
5165
5204
|
],
|
|
5166
|
-
|
|
5167
|
-
type: "function"
|
|
5205
|
+
anonymous: false
|
|
5168
5206
|
},
|
|
5169
5207
|
{
|
|
5208
|
+
type: "event",
|
|
5209
|
+
name: "NewAssetTracker",
|
|
5170
5210
|
inputs: [
|
|
5171
5211
|
{
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
{
|
|
5177
|
-
internalType: "enum IInteropCenter.AttributeParsingRestrictions",
|
|
5178
|
-
name: "_restriction",
|
|
5179
|
-
type: "uint8"
|
|
5180
|
-
}
|
|
5181
|
-
],
|
|
5182
|
-
name: "parseAttributes",
|
|
5183
|
-
outputs: [
|
|
5184
|
-
{
|
|
5185
|
-
components: [
|
|
5186
|
-
{
|
|
5187
|
-
internalType: "uint256",
|
|
5188
|
-
name: "interopCallValue",
|
|
5189
|
-
type: "uint256"
|
|
5190
|
-
},
|
|
5191
|
-
{
|
|
5192
|
-
internalType: "bool",
|
|
5193
|
-
name: "indirectCall",
|
|
5194
|
-
type: "bool"
|
|
5195
|
-
},
|
|
5196
|
-
{
|
|
5197
|
-
internalType: "uint256",
|
|
5198
|
-
name: "indirectCallMessageValue",
|
|
5199
|
-
type: "uint256"
|
|
5200
|
-
}
|
|
5201
|
-
],
|
|
5202
|
-
internalType: "struct CallAttributes",
|
|
5203
|
-
name: "callAttributes",
|
|
5204
|
-
type: "tuple"
|
|
5212
|
+
name: "oldAssetTracker",
|
|
5213
|
+
type: "address",
|
|
5214
|
+
indexed: true,
|
|
5215
|
+
internalType: "address"
|
|
5205
5216
|
},
|
|
5206
5217
|
{
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
type: "bytes"
|
|
5212
|
-
},
|
|
5213
|
-
{
|
|
5214
|
-
internalType: "bytes",
|
|
5215
|
-
name: "unbundlerAddress",
|
|
5216
|
-
type: "bytes"
|
|
5217
|
-
}
|
|
5218
|
-
],
|
|
5219
|
-
internalType: "struct BundleAttributes",
|
|
5220
|
-
name: "bundleAttributes",
|
|
5221
|
-
type: "tuple"
|
|
5222
|
-
}
|
|
5223
|
-
],
|
|
5224
|
-
stateMutability: "pure",
|
|
5225
|
-
type: "function"
|
|
5226
|
-
},
|
|
5227
|
-
{
|
|
5228
|
-
inputs: [],
|
|
5229
|
-
name: "pause",
|
|
5230
|
-
outputs: [],
|
|
5231
|
-
stateMutability: "nonpayable",
|
|
5232
|
-
type: "function"
|
|
5233
|
-
},
|
|
5234
|
-
{
|
|
5235
|
-
inputs: [],
|
|
5236
|
-
name: "paused",
|
|
5237
|
-
outputs: [
|
|
5238
|
-
{
|
|
5239
|
-
internalType: "bool",
|
|
5240
|
-
name: "",
|
|
5241
|
-
type: "bool"
|
|
5242
|
-
}
|
|
5243
|
-
],
|
|
5244
|
-
stateMutability: "view",
|
|
5245
|
-
type: "function"
|
|
5246
|
-
},
|
|
5247
|
-
{
|
|
5248
|
-
inputs: [],
|
|
5249
|
-
name: "pendingOwner",
|
|
5250
|
-
outputs: [
|
|
5251
|
-
{
|
|
5252
|
-
internalType: "address",
|
|
5253
|
-
name: "",
|
|
5254
|
-
type: "address"
|
|
5218
|
+
name: "newAssetTracker",
|
|
5219
|
+
type: "address",
|
|
5220
|
+
indexed: true,
|
|
5221
|
+
internalType: "address"
|
|
5255
5222
|
}
|
|
5256
5223
|
],
|
|
5257
|
-
|
|
5258
|
-
type: "function"
|
|
5259
|
-
},
|
|
5260
|
-
{
|
|
5261
|
-
inputs: [],
|
|
5262
|
-
name: "renounceOwnership",
|
|
5263
|
-
outputs: [],
|
|
5264
|
-
stateMutability: "nonpayable",
|
|
5265
|
-
type: "function"
|
|
5224
|
+
anonymous: false
|
|
5266
5225
|
},
|
|
5267
5226
|
{
|
|
5227
|
+
type: "event",
|
|
5228
|
+
name: "ProtocolFeesAccumulated",
|
|
5268
5229
|
inputs: [
|
|
5269
5230
|
{
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
{
|
|
5275
|
-
components: [
|
|
5276
|
-
{
|
|
5277
|
-
internalType: "bytes",
|
|
5278
|
-
name: "to",
|
|
5279
|
-
type: "bytes"
|
|
5280
|
-
},
|
|
5281
|
-
{
|
|
5282
|
-
internalType: "bytes",
|
|
5283
|
-
name: "data",
|
|
5284
|
-
type: "bytes"
|
|
5285
|
-
},
|
|
5286
|
-
{
|
|
5287
|
-
internalType: "bytes[]",
|
|
5288
|
-
name: "callAttributes",
|
|
5289
|
-
type: "bytes[]"
|
|
5290
|
-
}
|
|
5291
|
-
],
|
|
5292
|
-
internalType: "struct InteropCallStarter[]",
|
|
5293
|
-
name: "_callStarters",
|
|
5294
|
-
type: "tuple[]"
|
|
5231
|
+
name: "coinbase",
|
|
5232
|
+
type: "address",
|
|
5233
|
+
indexed: true,
|
|
5234
|
+
internalType: "address"
|
|
5295
5235
|
},
|
|
5296
5236
|
{
|
|
5297
|
-
|
|
5298
|
-
|
|
5299
|
-
|
|
5300
|
-
|
|
5301
|
-
],
|
|
5302
|
-
name: "sendBundle",
|
|
5303
|
-
outputs: [
|
|
5304
|
-
{
|
|
5305
|
-
internalType: "bytes32",
|
|
5306
|
-
name: "bundleHash",
|
|
5307
|
-
type: "bytes32"
|
|
5237
|
+
name: "amount",
|
|
5238
|
+
type: "uint256",
|
|
5239
|
+
indexed: false,
|
|
5240
|
+
internalType: "uint256"
|
|
5308
5241
|
}
|
|
5309
5242
|
],
|
|
5310
|
-
|
|
5311
|
-
type: "function"
|
|
5243
|
+
anonymous: false
|
|
5312
5244
|
},
|
|
5313
5245
|
{
|
|
5246
|
+
type: "event",
|
|
5247
|
+
name: "ProtocolFeesClaimed",
|
|
5314
5248
|
inputs: [
|
|
5315
5249
|
{
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5250
|
+
name: "coinbase",
|
|
5251
|
+
type: "address",
|
|
5252
|
+
indexed: true,
|
|
5253
|
+
internalType: "address"
|
|
5319
5254
|
},
|
|
5320
5255
|
{
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5256
|
+
name: "receiver",
|
|
5257
|
+
type: "address",
|
|
5258
|
+
indexed: true,
|
|
5259
|
+
internalType: "address"
|
|
5324
5260
|
},
|
|
5325
5261
|
{
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
],
|
|
5331
|
-
name: "sendMessage",
|
|
5332
|
-
outputs: [
|
|
5333
|
-
{
|
|
5334
|
-
internalType: "bytes32",
|
|
5335
|
-
name: "sendId",
|
|
5336
|
-
type: "bytes32"
|
|
5337
|
-
}
|
|
5338
|
-
],
|
|
5339
|
-
stateMutability: "payable",
|
|
5340
|
-
type: "function"
|
|
5341
|
-
},
|
|
5342
|
-
{
|
|
5343
|
-
inputs: [
|
|
5344
|
-
{
|
|
5345
|
-
internalType: "bytes4",
|
|
5346
|
-
name: "_attributeSelector",
|
|
5347
|
-
type: "bytes4"
|
|
5348
|
-
}
|
|
5349
|
-
],
|
|
5350
|
-
name: "supportsAttribute",
|
|
5351
|
-
outputs: [
|
|
5352
|
-
{
|
|
5353
|
-
internalType: "bool",
|
|
5354
|
-
name: "",
|
|
5355
|
-
type: "bool"
|
|
5262
|
+
name: "amount",
|
|
5263
|
+
type: "uint256",
|
|
5264
|
+
indexed: false,
|
|
5265
|
+
internalType: "uint256"
|
|
5356
5266
|
}
|
|
5357
5267
|
],
|
|
5358
|
-
|
|
5359
|
-
type: "function"
|
|
5268
|
+
anonymous: false
|
|
5360
5269
|
},
|
|
5361
5270
|
{
|
|
5271
|
+
type: "event",
|
|
5272
|
+
name: "ZKFeesClaimed",
|
|
5362
5273
|
inputs: [
|
|
5363
5274
|
{
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5275
|
+
name: "coinbase",
|
|
5276
|
+
type: "address",
|
|
5277
|
+
indexed: true,
|
|
5278
|
+
internalType: "address"
|
|
5279
|
+
},
|
|
5280
|
+
{
|
|
5281
|
+
name: "receiver",
|
|
5282
|
+
type: "address",
|
|
5283
|
+
indexed: true,
|
|
5284
|
+
internalType: "address"
|
|
5285
|
+
},
|
|
5286
|
+
{
|
|
5287
|
+
name: "amount",
|
|
5288
|
+
type: "uint256",
|
|
5289
|
+
indexed: false,
|
|
5290
|
+
internalType: "uint256"
|
|
5367
5291
|
}
|
|
5368
5292
|
],
|
|
5369
|
-
|
|
5370
|
-
outputs: [],
|
|
5371
|
-
stateMutability: "nonpayable",
|
|
5372
|
-
type: "function"
|
|
5373
|
-
},
|
|
5374
|
-
{
|
|
5375
|
-
inputs: [],
|
|
5376
|
-
name: "unpause",
|
|
5377
|
-
outputs: [],
|
|
5378
|
-
stateMutability: "nonpayable",
|
|
5379
|
-
type: "function"
|
|
5293
|
+
anonymous: false
|
|
5380
5294
|
}
|
|
5381
5295
|
];
|
|
5382
|
-
var
|
|
5296
|
+
var IInteropCenter_default = IInteropCenterABI;
|
|
5383
5297
|
|
|
5384
5298
|
// src/core/internal/abis/IInteropHandler.ts
|
|
5385
5299
|
var IInteropHandlerABI = [
|
|
5386
5300
|
{
|
|
5387
|
-
|
|
5388
|
-
|
|
5301
|
+
type: "function",
|
|
5302
|
+
name: "L1_CHAIN_ID",
|
|
5303
|
+
inputs: [],
|
|
5304
|
+
outputs: [
|
|
5389
5305
|
{
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
type: "bytes32"
|
|
5306
|
+
name: "",
|
|
5307
|
+
type: "uint256",
|
|
5308
|
+
internalType: "uint256"
|
|
5394
5309
|
}
|
|
5395
5310
|
],
|
|
5396
|
-
|
|
5397
|
-
type: "event"
|
|
5311
|
+
stateMutability: "view"
|
|
5398
5312
|
},
|
|
5399
5313
|
{
|
|
5400
|
-
|
|
5314
|
+
type: "function",
|
|
5315
|
+
name: "bundleStatus",
|
|
5401
5316
|
inputs: [
|
|
5402
5317
|
{
|
|
5403
|
-
indexed: true,
|
|
5404
|
-
internalType: "bytes32",
|
|
5405
5318
|
name: "bundleHash",
|
|
5406
|
-
type: "bytes32"
|
|
5319
|
+
type: "bytes32",
|
|
5320
|
+
internalType: "bytes32"
|
|
5407
5321
|
}
|
|
5408
5322
|
],
|
|
5409
|
-
|
|
5410
|
-
type: "event"
|
|
5411
|
-
},
|
|
5412
|
-
{
|
|
5413
|
-
anonymous: false,
|
|
5414
|
-
inputs: [
|
|
5323
|
+
outputs: [
|
|
5415
5324
|
{
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
type: "bytes32"
|
|
5325
|
+
name: "",
|
|
5326
|
+
type: "uint8",
|
|
5327
|
+
internalType: "enum BundleStatus"
|
|
5420
5328
|
}
|
|
5421
5329
|
],
|
|
5422
|
-
|
|
5423
|
-
type: "event"
|
|
5330
|
+
stateMutability: "view"
|
|
5424
5331
|
},
|
|
5425
5332
|
{
|
|
5426
|
-
|
|
5333
|
+
type: "function",
|
|
5334
|
+
name: "callStatus",
|
|
5427
5335
|
inputs: [
|
|
5428
5336
|
{
|
|
5429
|
-
indexed: true,
|
|
5430
|
-
internalType: "bytes32",
|
|
5431
5337
|
name: "bundleHash",
|
|
5432
|
-
type: "bytes32"
|
|
5338
|
+
type: "bytes32",
|
|
5339
|
+
internalType: "bytes32"
|
|
5433
5340
|
},
|
|
5434
5341
|
{
|
|
5435
|
-
indexed: true,
|
|
5436
|
-
internalType: "uint256",
|
|
5437
5342
|
name: "callIndex",
|
|
5438
|
-
type: "uint256"
|
|
5439
|
-
|
|
5343
|
+
type: "uint256",
|
|
5344
|
+
internalType: "uint256"
|
|
5345
|
+
}
|
|
5346
|
+
],
|
|
5347
|
+
outputs: [
|
|
5440
5348
|
{
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
type: "uint8"
|
|
5349
|
+
name: "",
|
|
5350
|
+
type: "uint8",
|
|
5351
|
+
internalType: "enum CallStatus"
|
|
5445
5352
|
}
|
|
5446
5353
|
],
|
|
5447
|
-
|
|
5448
|
-
type: "event"
|
|
5354
|
+
stateMutability: "view"
|
|
5449
5355
|
},
|
|
5450
5356
|
{
|
|
5357
|
+
type: "function",
|
|
5358
|
+
name: "executeBundle",
|
|
5451
5359
|
inputs: [
|
|
5452
5360
|
{
|
|
5453
|
-
internalType: "bytes",
|
|
5454
5361
|
name: "_bundle",
|
|
5455
|
-
type: "bytes"
|
|
5362
|
+
type: "bytes",
|
|
5363
|
+
internalType: "bytes"
|
|
5456
5364
|
},
|
|
5457
5365
|
{
|
|
5366
|
+
name: "_proof",
|
|
5367
|
+
type: "tuple",
|
|
5368
|
+
internalType: "struct MessageInclusionProof",
|
|
5458
5369
|
components: [
|
|
5459
5370
|
{
|
|
5460
|
-
internalType: "uint256",
|
|
5461
5371
|
name: "chainId",
|
|
5462
|
-
type: "uint256"
|
|
5372
|
+
type: "uint256",
|
|
5373
|
+
internalType: "uint256"
|
|
5463
5374
|
},
|
|
5464
5375
|
{
|
|
5465
|
-
internalType: "uint256",
|
|
5466
5376
|
name: "l1BatchNumber",
|
|
5467
|
-
type: "uint256"
|
|
5377
|
+
type: "uint256",
|
|
5378
|
+
internalType: "uint256"
|
|
5468
5379
|
},
|
|
5469
5380
|
{
|
|
5470
|
-
internalType: "uint256",
|
|
5471
5381
|
name: "l2MessageIndex",
|
|
5472
|
-
type: "uint256"
|
|
5382
|
+
type: "uint256",
|
|
5383
|
+
internalType: "uint256"
|
|
5473
5384
|
},
|
|
5474
5385
|
{
|
|
5386
|
+
name: "message",
|
|
5387
|
+
type: "tuple",
|
|
5388
|
+
internalType: "struct L2Message",
|
|
5475
5389
|
components: [
|
|
5476
5390
|
{
|
|
5477
|
-
internalType: "uint16",
|
|
5478
5391
|
name: "txNumberInBatch",
|
|
5479
|
-
type: "uint16"
|
|
5392
|
+
type: "uint16",
|
|
5393
|
+
internalType: "uint16"
|
|
5480
5394
|
},
|
|
5481
5395
|
{
|
|
5482
|
-
internalType: "address",
|
|
5483
5396
|
name: "sender",
|
|
5484
|
-
type: "address"
|
|
5397
|
+
type: "address",
|
|
5398
|
+
internalType: "address"
|
|
5485
5399
|
},
|
|
5486
5400
|
{
|
|
5487
|
-
internalType: "bytes",
|
|
5488
5401
|
name: "data",
|
|
5489
|
-
type: "bytes"
|
|
5402
|
+
type: "bytes",
|
|
5403
|
+
internalType: "bytes"
|
|
5490
5404
|
}
|
|
5491
|
-
]
|
|
5492
|
-
internalType: "struct L2Message",
|
|
5493
|
-
name: "message",
|
|
5494
|
-
type: "tuple"
|
|
5405
|
+
]
|
|
5495
5406
|
},
|
|
5496
5407
|
{
|
|
5497
|
-
internalType: "bytes32[]",
|
|
5498
5408
|
name: "proof",
|
|
5499
|
-
type: "bytes32[]"
|
|
5409
|
+
type: "bytes32[]",
|
|
5410
|
+
internalType: "bytes32[]"
|
|
5500
5411
|
}
|
|
5501
|
-
]
|
|
5502
|
-
internalType: "struct MessageInclusionProof",
|
|
5503
|
-
name: "_proof",
|
|
5504
|
-
type: "tuple"
|
|
5412
|
+
]
|
|
5505
5413
|
}
|
|
5506
5414
|
],
|
|
5507
|
-
name: "executeBundle",
|
|
5508
5415
|
outputs: [],
|
|
5509
|
-
stateMutability: "nonpayable"
|
|
5510
|
-
type: "function"
|
|
5416
|
+
stateMutability: "nonpayable"
|
|
5511
5417
|
},
|
|
5512
5418
|
{
|
|
5419
|
+
type: "function",
|
|
5420
|
+
name: "initL2",
|
|
5421
|
+
inputs: [
|
|
5422
|
+
{
|
|
5423
|
+
name: "_l1ChainId",
|
|
5424
|
+
type: "uint256",
|
|
5425
|
+
internalType: "uint256"
|
|
5426
|
+
}
|
|
5427
|
+
],
|
|
5428
|
+
outputs: [],
|
|
5429
|
+
stateMutability: "nonpayable"
|
|
5430
|
+
},
|
|
5431
|
+
{
|
|
5432
|
+
type: "function",
|
|
5433
|
+
name: "unbundleBundle",
|
|
5513
5434
|
inputs: [
|
|
5514
5435
|
{
|
|
5515
|
-
internalType: "uint256",
|
|
5516
5436
|
name: "_sourceChainId",
|
|
5517
|
-
type: "uint256"
|
|
5437
|
+
type: "uint256",
|
|
5438
|
+
internalType: "uint256"
|
|
5518
5439
|
},
|
|
5519
5440
|
{
|
|
5520
|
-
internalType: "bytes",
|
|
5521
5441
|
name: "_bundle",
|
|
5522
|
-
type: "bytes"
|
|
5442
|
+
type: "bytes",
|
|
5443
|
+
internalType: "bytes"
|
|
5523
5444
|
},
|
|
5524
5445
|
{
|
|
5525
|
-
internalType: "enum CallStatus[]",
|
|
5526
5446
|
name: "_callStatus",
|
|
5527
|
-
type: "uint8[]"
|
|
5447
|
+
type: "uint8[]",
|
|
5448
|
+
internalType: "enum CallStatus[]"
|
|
5528
5449
|
}
|
|
5529
5450
|
],
|
|
5530
|
-
name: "unbundleBundle",
|
|
5531
5451
|
outputs: [],
|
|
5532
|
-
stateMutability: "nonpayable"
|
|
5533
|
-
type: "function"
|
|
5452
|
+
stateMutability: "nonpayable"
|
|
5534
5453
|
},
|
|
5535
5454
|
{
|
|
5455
|
+
type: "function",
|
|
5456
|
+
name: "verifyBundle",
|
|
5536
5457
|
inputs: [
|
|
5537
5458
|
{
|
|
5538
|
-
internalType: "bytes",
|
|
5539
5459
|
name: "_bundle",
|
|
5540
|
-
type: "bytes"
|
|
5460
|
+
type: "bytes",
|
|
5461
|
+
internalType: "bytes"
|
|
5541
5462
|
},
|
|
5542
5463
|
{
|
|
5464
|
+
name: "_proof",
|
|
5465
|
+
type: "tuple",
|
|
5466
|
+
internalType: "struct MessageInclusionProof",
|
|
5543
5467
|
components: [
|
|
5544
5468
|
{
|
|
5545
|
-
internalType: "uint256",
|
|
5546
5469
|
name: "chainId",
|
|
5547
|
-
type: "uint256"
|
|
5470
|
+
type: "uint256",
|
|
5471
|
+
internalType: "uint256"
|
|
5548
5472
|
},
|
|
5549
5473
|
{
|
|
5550
|
-
internalType: "uint256",
|
|
5551
5474
|
name: "l1BatchNumber",
|
|
5552
|
-
type: "uint256"
|
|
5475
|
+
type: "uint256",
|
|
5476
|
+
internalType: "uint256"
|
|
5553
5477
|
},
|
|
5554
5478
|
{
|
|
5555
|
-
internalType: "uint256",
|
|
5556
5479
|
name: "l2MessageIndex",
|
|
5557
|
-
type: "uint256"
|
|
5480
|
+
type: "uint256",
|
|
5481
|
+
internalType: "uint256"
|
|
5558
5482
|
},
|
|
5559
5483
|
{
|
|
5484
|
+
name: "message",
|
|
5485
|
+
type: "tuple",
|
|
5486
|
+
internalType: "struct L2Message",
|
|
5560
5487
|
components: [
|
|
5561
5488
|
{
|
|
5562
|
-
internalType: "uint16",
|
|
5563
5489
|
name: "txNumberInBatch",
|
|
5564
|
-
type: "uint16"
|
|
5490
|
+
type: "uint16",
|
|
5491
|
+
internalType: "uint16"
|
|
5565
5492
|
},
|
|
5566
5493
|
{
|
|
5567
|
-
internalType: "address",
|
|
5568
5494
|
name: "sender",
|
|
5569
|
-
type: "address"
|
|
5495
|
+
type: "address",
|
|
5496
|
+
internalType: "address"
|
|
5570
5497
|
},
|
|
5571
5498
|
{
|
|
5572
|
-
internalType: "bytes",
|
|
5573
5499
|
name: "data",
|
|
5574
|
-
type: "bytes"
|
|
5500
|
+
type: "bytes",
|
|
5501
|
+
internalType: "bytes"
|
|
5575
5502
|
}
|
|
5576
|
-
]
|
|
5577
|
-
internalType: "struct L2Message",
|
|
5578
|
-
name: "message",
|
|
5579
|
-
type: "tuple"
|
|
5503
|
+
]
|
|
5580
5504
|
},
|
|
5581
5505
|
{
|
|
5582
|
-
internalType: "bytes32[]",
|
|
5583
5506
|
name: "proof",
|
|
5584
|
-
type: "bytes32[]"
|
|
5507
|
+
type: "bytes32[]",
|
|
5508
|
+
internalType: "bytes32[]"
|
|
5585
5509
|
}
|
|
5586
|
-
]
|
|
5587
|
-
internalType: "struct MessageInclusionProof",
|
|
5588
|
-
name: "_proof",
|
|
5589
|
-
type: "tuple"
|
|
5510
|
+
]
|
|
5590
5511
|
}
|
|
5591
5512
|
],
|
|
5592
|
-
name: "verifyBundle",
|
|
5593
5513
|
outputs: [],
|
|
5594
|
-
stateMutability: "nonpayable"
|
|
5595
|
-
|
|
5514
|
+
stateMutability: "nonpayable"
|
|
5515
|
+
},
|
|
5516
|
+
{
|
|
5517
|
+
type: "event",
|
|
5518
|
+
name: "BundleExecuted",
|
|
5519
|
+
inputs: [
|
|
5520
|
+
{
|
|
5521
|
+
name: "bundleHash",
|
|
5522
|
+
type: "bytes32",
|
|
5523
|
+
indexed: true,
|
|
5524
|
+
internalType: "bytes32"
|
|
5525
|
+
}
|
|
5526
|
+
],
|
|
5527
|
+
anonymous: false
|
|
5528
|
+
},
|
|
5529
|
+
{
|
|
5530
|
+
type: "event",
|
|
5531
|
+
name: "BundleUnbundled",
|
|
5532
|
+
inputs: [
|
|
5533
|
+
{
|
|
5534
|
+
name: "bundleHash",
|
|
5535
|
+
type: "bytes32",
|
|
5536
|
+
indexed: true,
|
|
5537
|
+
internalType: "bytes32"
|
|
5538
|
+
}
|
|
5539
|
+
],
|
|
5540
|
+
anonymous: false
|
|
5541
|
+
},
|
|
5542
|
+
{
|
|
5543
|
+
type: "event",
|
|
5544
|
+
name: "BundleVerified",
|
|
5545
|
+
inputs: [
|
|
5546
|
+
{
|
|
5547
|
+
name: "bundleHash",
|
|
5548
|
+
type: "bytes32",
|
|
5549
|
+
indexed: true,
|
|
5550
|
+
internalType: "bytes32"
|
|
5551
|
+
}
|
|
5552
|
+
],
|
|
5553
|
+
anonymous: false
|
|
5554
|
+
},
|
|
5555
|
+
{
|
|
5556
|
+
type: "event",
|
|
5557
|
+
name: "CallProcessed",
|
|
5558
|
+
inputs: [
|
|
5559
|
+
{
|
|
5560
|
+
name: "bundleHash",
|
|
5561
|
+
type: "bytes32",
|
|
5562
|
+
indexed: true,
|
|
5563
|
+
internalType: "bytes32"
|
|
5564
|
+
},
|
|
5565
|
+
{
|
|
5566
|
+
name: "callIndex",
|
|
5567
|
+
type: "uint256",
|
|
5568
|
+
indexed: true,
|
|
5569
|
+
internalType: "uint256"
|
|
5570
|
+
},
|
|
5571
|
+
{
|
|
5572
|
+
name: "status",
|
|
5573
|
+
type: "uint8",
|
|
5574
|
+
indexed: false,
|
|
5575
|
+
internalType: "enum CallStatus"
|
|
5576
|
+
}
|
|
5577
|
+
],
|
|
5578
|
+
anonymous: false
|
|
5596
5579
|
}
|
|
5597
5580
|
];
|
|
5598
5581
|
var IInteropHandler_default = IInteropHandlerABI;
|
|
5599
5582
|
|
|
5600
|
-
// src/core/internal/abis/
|
|
5583
|
+
// src/core/internal/abis/IInteropRootStorage.ts
|
|
5601
5584
|
var InteropRootStorageABI = [
|
|
5602
5585
|
{
|
|
5586
|
+
type: "function",
|
|
5587
|
+
name: "interopRoots",
|
|
5603
5588
|
inputs: [
|
|
5604
5589
|
{
|
|
5605
|
-
internalType: "uint256",
|
|
5606
5590
|
name: "chainId",
|
|
5607
|
-
type: "uint256"
|
|
5591
|
+
type: "uint256",
|
|
5592
|
+
internalType: "uint256"
|
|
5608
5593
|
},
|
|
5609
5594
|
{
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5595
|
+
name: "blockOrBatchNumber",
|
|
5596
|
+
type: "uint256",
|
|
5597
|
+
internalType: "uint256"
|
|
5613
5598
|
}
|
|
5614
5599
|
],
|
|
5615
|
-
name: "interopRoots",
|
|
5616
5600
|
outputs: [
|
|
5617
5601
|
{
|
|
5618
|
-
internalType: "bytes32",
|
|
5619
5602
|
name: "",
|
|
5620
|
-
type: "bytes32"
|
|
5603
|
+
type: "bytes32",
|
|
5604
|
+
internalType: "bytes32"
|
|
5621
5605
|
}
|
|
5622
5606
|
],
|
|
5623
|
-
stateMutability: "view"
|
|
5624
|
-
|
|
5607
|
+
stateMutability: "view"
|
|
5608
|
+
},
|
|
5609
|
+
{
|
|
5610
|
+
type: "event",
|
|
5611
|
+
name: "InteropRootAdded",
|
|
5612
|
+
inputs: [
|
|
5613
|
+
{
|
|
5614
|
+
name: "chainId",
|
|
5615
|
+
type: "uint256",
|
|
5616
|
+
indexed: true,
|
|
5617
|
+
internalType: "uint256"
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
name: "blockNumber",
|
|
5621
|
+
type: "uint256",
|
|
5622
|
+
indexed: true,
|
|
5623
|
+
internalType: "uint256"
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
name: "sides",
|
|
5627
|
+
type: "bytes32[]",
|
|
5628
|
+
indexed: false,
|
|
5629
|
+
internalType: "bytes32[]"
|
|
5630
|
+
}
|
|
5631
|
+
],
|
|
5632
|
+
anonymous: false
|
|
5625
5633
|
}
|
|
5626
5634
|
];
|
|
5627
|
-
var
|
|
5635
|
+
var IInteropRootStorage_default = InteropRootStorageABI;
|
|
5628
5636
|
|
|
5629
5637
|
// src/core/internal/abis/L2MessageVerification.ts
|
|
5630
5638
|
var L2MessageVerificationABI = [
|