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