@across-protocol/contracts 4.1.0 → 4.1.1

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,45 @@
1
+ // SPDX-License-Identifier: BUSL-1.1
2
+ pragma solidity ^0.8.0;
3
+ import "@eth-optimism/contracts/libraries/constants/Lib_PredeployAddresses.sol";
4
+
5
+ import "./Ovm_SpokePool.sol";
6
+ import "./external/interfaces/CCTPInterfaces.sol";
7
+
8
+ /**
9
+ * @notice Bob Spoke pool.
10
+ * @custom:security-contact bugs@across.to
11
+ */
12
+ contract Bob_SpokePool is Ovm_SpokePool {
13
+ /// @custom:oz-upgrades-unsafe-allow constructor
14
+ constructor(
15
+ address _wrappedNativeTokenAddress,
16
+ uint32 _depositQuoteTimeBuffer,
17
+ uint32 _fillDeadlineBuffer,
18
+ IERC20 _l2Usdc,
19
+ ITokenMessenger _cctpTokenMessenger
20
+ )
21
+ Ovm_SpokePool(
22
+ _wrappedNativeTokenAddress,
23
+ _depositQuoteTimeBuffer,
24
+ _fillDeadlineBuffer,
25
+ _l2Usdc,
26
+ _cctpTokenMessenger
27
+ )
28
+ {} // solhint-disable-line no-empty-blocks
29
+
30
+ /**
31
+ * @notice Construct the Bob SpokePool.
32
+ * @param _initialDepositId Starting deposit ID. Set to 0 unless this is a re-deployment in order to mitigate
33
+ * relay hash collisions.
34
+ * @param _crossDomainAdmin Cross domain admin to set. Can be changed by admin.
35
+ * @param _withdrawalRecipient Address which receives token withdrawals. Can be changed by admin. For Spoke Pools on L2, this will
36
+ * likely be the hub pool.
37
+ */
38
+ function initialize(
39
+ uint32 _initialDepositId,
40
+ address _crossDomainAdmin,
41
+ address _withdrawalRecipient
42
+ ) public initializer {
43
+ __OvmSpokePool_init(_initialDepositId, _crossDomainAdmin, _withdrawalRecipient, Lib_PredeployAddresses.OVM_ETH);
44
+ }
45
+ }
@@ -241,5 +241,9 @@
241
241
  "address": "CCTPiPYPc6AsJuwueEnWgSgucamXDZwBd53dQ11YiKX3",
242
242
  "blockNumber": 262177984
243
243
  }
244
+ },
245
+ "808813": {
246
+ "SpokePool": { "address": "0x3baD7AD0728f9917d1Bf08af5782dCbD516cDd96", "blockNumber": 15393172 },
247
+ "MulticallHandler": { "address": "0xAC537C12fE8f544D712d71ED4376a502EEa944d7", "blockNumber": 15392366 }
244
248
  }
245
249
  }
@@ -108,6 +108,7 @@ const config = {
108
108
  "contracts/Cher_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
109
109
  "contracts/DoctorWho_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
110
110
  "contracts/Tatara_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
111
+ "contracts/Bob_SpokePool.sol": LARGE_CONTRACT_COMPILER_SETTINGS,
111
112
  },
112
113
  },
113
114
  zksolc: {
@@ -378,6 +379,13 @@ const config = {
378
379
  accounts: { mnemonic },
379
380
  companionNetworks: { l1: "sepolia" },
380
381
  },
382
+ "bob-sepolia": {
383
+ chainId: constants_1.CHAIN_IDs.BOB_SEPOLIA,
384
+ url: "https://bob-sepolia.rpc.gobob.xyz",
385
+ saveDeployments: true,
386
+ accounts: { mnemonic },
387
+ companionNetworks: { l1: "sepolia" },
388
+ },
381
389
  },
382
390
  gasReporter: { enabled: process.env.REPORT_GAS !== undefined, currency: "USD" },
383
391
  etherscan: {
@@ -413,6 +421,7 @@ const config = {
413
421
  soneium: "blockscout",
414
422
  unichain: process.env.UNICHAIN_ETHERSCAN_API_KEY,
415
423
  "unichain-sepolia": process.env.UNICHAIN_ETHERSCAN_API_KEY,
424
+ "bob-sepolia": "blockscout",
416
425
  },
417
426
  customChains: [
418
427
  {
@@ -623,6 +632,14 @@ const config = {
623
632
  browserURL: "https://sepolia.uniscan.xyz",
624
633
  },
625
634
  },
635
+ {
636
+ network: "bob-sepolia",
637
+ chainId: constants_1.CHAIN_IDs.BOB_SEPOLIA,
638
+ urls: {
639
+ apiURL: "https://bob-sepolia.explorer.gobob.xyz/api",
640
+ browserURL: "https://bob-sepolia.explorer.gobob.xyz",
641
+ },
642
+ },
626
643
  ],
627
644
  },
628
645
  namedAccounts: { deployer: 0 },