From 0822d07e5245340f34f959ddd0561c41c4b2d0e1 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Mon, 7 Aug 2023 20:54:57 +0200 Subject: [PATCH] Linting only --- .../deploy_l2/00_resolve_base_wormhole_gateway.ts | 8 ++------ ...15_update_with_base_in_wormhole_gateway_mapping.ts | 7 ++----- .../deploy_l2/00_resolve_base_wormhole_gateway.ts | 8 ++------ ...15_update_with_base_in_wormhole_gateway_mapping.ts | 7 ++----- .../00_resolve_base_wormhole_gateway.ts | 8 ++------ ...15_update_with_base_in_wormhole_gateway_mapping.ts | 11 +++-------- 6 files changed, 13 insertions(+), 36 deletions(-) diff --git a/cross-chain/arbitrum/deploy_l2/00_resolve_base_wormhole_gateway.ts b/cross-chain/arbitrum/deploy_l2/00_resolve_base_wormhole_gateway.ts index 598d1c494..b615c4850 100644 --- a/cross-chain/arbitrum/deploy_l2/00_resolve_base_wormhole_gateway.ts +++ b/cross-chain/arbitrum/deploy_l2/00_resolve_base_wormhole_gateway.ts @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { helpers, deployments } = hre const { log } = deployments - const BaseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") if ( BaseWormholeGateway && helpers.address.isValid(BaseWormholeGateway.address) ) { - log( - `using existing BaseWormholeGateway at ${BaseWormholeGateway.address}` - ) + log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`) } else if (hre.network.name === "hardhat") { log("using fake BaseWormholeGateway for hardhat network") } else { diff --git a/cross-chain/arbitrum/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts b/cross-chain/arbitrum/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts index fbdfa25d2..bed5ff5ad 100644 --- a/cross-chain/arbitrum/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts +++ b/cross-chain/arbitrum/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts @@ -7,16 +7,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { deployer } = await getNamedAccounts() // Fake BaseWormholeGateway for local development purposes only. - const fakeBaseWormholeGateway = - "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9" + const fakeBaseWormholeGateway = "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9" // See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base // This ID is valid for both Base Testnet and Mainnet const baseWormholeChainID = 30 - const baseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") let baseWormholeGatewayAddress = baseWormholeGateway?.address if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") { diff --git a/cross-chain/optimism/deploy_l2/00_resolve_base_wormhole_gateway.ts b/cross-chain/optimism/deploy_l2/00_resolve_base_wormhole_gateway.ts index 598d1c494..b615c4850 100644 --- a/cross-chain/optimism/deploy_l2/00_resolve_base_wormhole_gateway.ts +++ b/cross-chain/optimism/deploy_l2/00_resolve_base_wormhole_gateway.ts @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { helpers, deployments } = hre const { log } = deployments - const BaseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") if ( BaseWormholeGateway && helpers.address.isValid(BaseWormholeGateway.address) ) { - log( - `using existing BaseWormholeGateway at ${BaseWormholeGateway.address}` - ) + log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`) } else if (hre.network.name === "hardhat") { log("using fake BaseWormholeGateway for hardhat network") } else { diff --git a/cross-chain/optimism/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts b/cross-chain/optimism/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts index 854060ea4..8c69bec2a 100644 --- a/cross-chain/optimism/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts +++ b/cross-chain/optimism/deploy_l2/15_update_with_base_in_wormhole_gateway_mapping.ts @@ -7,16 +7,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { deployer } = await getNamedAccounts() // Fake BaseWormholeGateway for local development purposes only. - const fakeBaseWormholeGateway = - "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9" + const fakeBaseWormholeGateway = "0x1af5DC16568EFF2d480a43A77E6C409e497FcFb9" // See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base // This ID is valid for both Base Testnet and Mainnet const baseWormholeChainID = 30 - const baseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") let baseWormholeGatewayAddress = baseWormholeGateway?.address if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") { diff --git a/cross-chain/polygon/deploy_sidechain/00_resolve_base_wormhole_gateway.ts b/cross-chain/polygon/deploy_sidechain/00_resolve_base_wormhole_gateway.ts index 598d1c494..b615c4850 100644 --- a/cross-chain/polygon/deploy_sidechain/00_resolve_base_wormhole_gateway.ts +++ b/cross-chain/polygon/deploy_sidechain/00_resolve_base_wormhole_gateway.ts @@ -5,17 +5,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { helpers, deployments } = hre const { log } = deployments - const BaseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const BaseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") if ( BaseWormholeGateway && helpers.address.isValid(BaseWormholeGateway.address) ) { - log( - `using existing BaseWormholeGateway at ${BaseWormholeGateway.address}` - ) + log(`using existing BaseWormholeGateway at ${BaseWormholeGateway.address}`) } else if (hre.network.name === "hardhat") { log("using fake BaseWormholeGateway for hardhat network") } else { diff --git a/cross-chain/polygon/deploy_sidechain/15_update_with_base_in_wormhole_gateway_mapping.ts b/cross-chain/polygon/deploy_sidechain/15_update_with_base_in_wormhole_gateway_mapping.ts index d5f4d771d..c0db4cbff 100644 --- a/cross-chain/polygon/deploy_sidechain/15_update_with_base_in_wormhole_gateway_mapping.ts +++ b/cross-chain/polygon/deploy_sidechain/15_update_with_base_in_wormhole_gateway_mapping.ts @@ -7,23 +7,18 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { const { deployer } = await getNamedAccounts() // Fake BaseWormholeGateway for local development purposes only. - const fakeBaseWormholeGateway = - "0x2af5DC16568EFF2d480a43A77E6C409e497FcFb9" + const fakeBaseWormholeGateway = "0x2af5DC16568EFF2d480a43A77E6C409e497FcFb9" // See https://docs.wormhole.com/wormhole/blockchain-environments/evm#base // This ID is valid for both Base Goerli and Mainnet const baseWormholeChainID = 30 - const baseWormholeGateway = await deployments.getOrNull( - "BaseWormholeGateway" - ) + const baseWormholeGateway = await deployments.getOrNull("BaseWormholeGateway") let baseWormholeGatewayAddress = baseWormholeGateway?.address if (!baseWormholeGatewayAddress && hre.network.name === "hardhat") { baseWormholeGatewayAddress = fakeBaseWormholeGateway - log( - `fake BaseWormholeGateway address ${baseWormholeGatewayAddress}` - ) + log(`fake BaseWormholeGateway address ${baseWormholeGatewayAddress}`) } await execute(