@across-protocol/contracts 4.0.4 → 4.0.5

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.
@@ -0,0 +1,25 @@
1
+ // SPDX-License-Identifier: BUSL-1.1
2
+ pragma solidity ^0.8.0;
3
+
4
+ import { PolygonZkEVM_SpokePool } from "./PolygonZkEVM_SpokePool.sol";
5
+
6
+ /**
7
+ * @notice Polygon zkEVM Spoke pool.
8
+ * @custom:security-contact bugs@across.to
9
+ */
10
+ contract Tatara_SpokePool is PolygonZkEVM_SpokePool {
11
+ /**
12
+ * @notice Construct Polygon zkEVM specific SpokePool.
13
+ * @param _wrappedNativeTokenAddress Address of WETH on Polygon zkEVM.
14
+ * @param _depositQuoteTimeBuffer Quote timestamps can't be set more than this amount
15
+ * into the past from the block time of the deposit.
16
+ * @param _fillDeadlineBuffer Fill deadlines can't be set more than this amount
17
+ * into the future from the block time of the deposit.
18
+ */
19
+ /// @custom:oz-upgrades-unsafe-allow constructor
20
+ constructor(
21
+ address _wrappedNativeTokenAddress,
22
+ uint32 _depositQuoteTimeBuffer,
23
+ uint32 _fillDeadlineBuffer
24
+ ) PolygonZkEVM_SpokePool(_wrappedNativeTokenAddress, _depositQuoteTimeBuffer, _fillDeadlineBuffer) {} // solhint-disable-line no-empty-blocks
25
+ }
@@ -43,8 +43,7 @@ exports.L1_ADDRESS_MAP = {
43
43
  l1AlephZeroInbox: "0x56D8EC76a421063e1907503aDd3794c395256AEb",
44
44
  l1AlephZeroERC20GatewayRouter: "0xeBb17f398ed30d02F2e8733e7c1e5cf566e17812",
45
45
  donationBox: "0x0d57392895Db5aF3280e9223323e20F3951E81B1",
46
- // bridgeHub contract for Lens,
47
- zkBridgeHub_232: "0x9dA9f5dad070649811D77c40CcDcab479cE3Fa07",
46
+ zkBridgeHub: "0x303a465B659cBB0ab36eE643eA362c509EEb5213",
48
47
  },
49
48
  [utils_1.CHAIN_IDs.SEPOLIA]: {
50
49
  finder: "0xeF684C38F94F48775959ECf2012D7E864ffb9dd4",
@@ -13,7 +13,7 @@
13
13
  "Optimism_Adapter": { "address": "0xE1e74B3D6A8E2A479B62958D4E4E6eEaea5B612b", "blockNumber": 19915034 },
14
14
  "PolygonTokenBridger": { "address": "0x0330E9b4D0325cCfF515E81DFbc7754F2a02ac57", "blockNumber": 14819539 },
15
15
  "Polygon_Adapter": { "address": "0xb4AeF0178f5725392A26eE18684C2aB62adc912e", "blockNumber": 19915066 },
16
- "ZkSync_Adapter": { "address": "0xE233009838CB898b50e0012a6E783FC9FeE447FB", "blockNumber": 17842162 },
16
+ "ZkSync_Adapter": { "address": "0x3155A91D2EBAe69443B45556e1DE5ed8eB79C90D", "blockNumber": 22031982 },
17
17
  "Base_Adapter": { "address": "0xE1421233BF7158A19f89F17c9735F9cbd3D9529c", "blockNumber": 19915087 },
18
18
  "Linea_Adapter": { "address": "0x7Ea0D1882D610095A45E512B0113f79cA98a8EfE", "blockNumber": 19402413 },
19
19
  "BondToken": { "address": "0xee1dc6bcf1ee967a350e9ac6caaaa236109002ea", "blockNumber": 17980554 },
@@ -31,6 +31,7 @@
31
31
  "AlephZero_Adapter": { "address": "0x6F4083304C2cA99B077ACE06a5DcF670615915Af", "blockNumber": 21131132 },
32
32
  "Ink_Adapter": { "address": "0x7e90a40c7519b041a7df6498fbf5662e8cfc61d2", "blockNumber": 21438590 },
33
33
  "Cher_Adapter": { "address": "0x0c9d064523177dBB55CFE52b9D0c485FBFc35FD2", "blockNumber": 21597341 },
34
+ "Lens_Adapter": { "address": "0x54976794ef6b8d630F27c0F2cCB27bBcEf9aF9D0", "blockNumber": 22119075 },
34
35
  "DoctorWho_Adapter": { "address": "0xFADcC43096756e1527306FD92982FEbBe3c629Fa", "blockNumber": 21773451 }
35
36
  },
36
37
  "10": {
@@ -189,6 +190,11 @@
189
190
  "SpokePool": { "address": "0x6999526e507Cc3b03b180BbE05E1Ff938259A874", "blockNumber": 12593713 },
190
191
  "MulticallHandler": { "address": "0x924a9f036260DdD5808007E1AA95f08eD08aA569", "blockNumber": 12594561 }
191
192
  },
193
+ "129399": {
194
+ "SpokePool": { "address": "0x09aea4b2242abC8bb4BB78D537A67a245A7bEC64", "blockNumber": 2929205 },
195
+ "SpokePoolVerifier": { "address": "0x630b76C7cA96164a5aCbC1105f8BA8B739C82570", "blockNumber": 3160019 },
196
+ "MulticallHandler": { "address": "0xAC537C12fE8f544D712d71ED4376a502EEa944d7", "blockNumber": 3179705 }
197
+ },
192
198
  "133268194659241": {
193
199
  "SvmSpoke": {
194
200
  "address": "JAZWcGrpSWNPTBj8QtJ9UyQqhJCDhG9GJkDeMf5NQBiq",
@@ -106,6 +106,7 @@ const config = {
106
106
  "contracts/Ink_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
107
107
  "contracts/Cher_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
108
108
  "contracts/DoctorWho_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
109
+ "contracts/Tatara_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
109
110
  },
110
111
  },
111
112
  zksolc: {
@@ -264,6 +265,14 @@ const config = {
264
265
  accounts: { mnemonic },
265
266
  companionNetworks: { l1: "sepolia" },
266
267
  },
268
+ "tatara": {
269
+ chainId: constants_1.CHAIN_IDs.TATARA,
270
+ url: "https://rpc.tatara.katanarpc.com/<apikey>",
271
+ saveDeployments: true,
272
+ accounts: { mnemonic },
273
+ companionNetworks: { l1: "sepolia" },
274
+ ethNetwork: "sepolia",
275
+ },
267
276
  lens: {
268
277
  chainId: constants_1.CHAIN_IDs.LENS,
269
278
  url: "https://api.lens.matterhosted.dev",
@@ -382,6 +391,7 @@ const config = {
382
391
  "polygon-zk-evm-testnet": process.env.POLYGON_ZK_EVM_ETHERSCAN_API_KEY,
383
392
  mode: "blockscout",
384
393
  "mode-sepolia": "blockscout",
394
+ "tatara": "blockscout",
385
395
  lisk: "blockscout",
386
396
  "lisk-sepolia": "blockscout",
387
397
  redstone: "blockscout",
@@ -524,6 +534,14 @@ const config = {
524
534
  browserURL: "https://explorer.mode.network/",
525
535
  },
526
536
  },
537
+ {
538
+ network: "tatara",
539
+ chainId: constants_1.CHAIN_IDs.TATARA,
540
+ urls: {
541
+ apiURL: "https://explorer.tatara.katana.network/api",
542
+ browserURL: "https://explorer.tatara.katana.network",
543
+ },
544
+ },
527
545
  {
528
546
  network: "lisk",
529
547
  chainId: constants_1.CHAIN_IDs.LISK,