From 9aa0027983bfd72ff79275f1305a55b6bdd40592 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 9 Dec 2024 15:23:55 +0300 Subject: [PATCH] rename task --- examples/swap/hardhat.config.ts | 11 ++--------- examples/swap/scripts/localnet.sh | 4 ++-- examples/swap/tasks/{evmGatewaySwap.ts => evmSwap.ts} | 2 +- 3 files changed, 5 insertions(+), 12 deletions(-) rename examples/swap/tasks/{evmGatewaySwap.ts => evmSwap.ts} (97%) diff --git a/examples/swap/hardhat.config.ts b/examples/swap/hardhat.config.ts index 32a1790..8a31c48 100644 --- a/examples/swap/hardhat.config.ts +++ b/examples/swap/hardhat.config.ts @@ -2,7 +2,7 @@ import "./tasks/deploy"; import "./tasks/companionSwap"; import "./tasks/deployCompanion"; import "./tasks/zetachainSwap"; -import "./tasks/evmGatewaySwap"; +import "./tasks/evmSwap"; import "@zetachain/localnet/tasks"; import "@nomicfoundation/hardhat-toolbox"; import "@zetachain/toolkit/tasks"; @@ -18,14 +18,7 @@ const config: HardhatUserConfig = { ...getHardhatConfigNetworks(), }, solidity: { - compilers: [ - { version: "0.5.10" /** For create2 factory */ }, - { version: "0.6.6" /** For uniswap v2 router*/ }, - { version: "0.5.16" /** For uniswap v2 core*/ }, - { version: "0.4.19" /** For weth*/ }, - { version: "0.8.7" }, - { version: "0.8.26" }, - ], + compilers: [{ version: "0.8.20" }, { version: "0.8.26" }], }, }; diff --git a/examples/swap/scripts/localnet.sh b/examples/swap/scripts/localnet.sh index 5b7ada9..c46b0d4 100755 --- a/examples/swap/scripts/localnet.sh +++ b/examples/swap/scripts/localnet.sh @@ -42,7 +42,7 @@ npx hardhat companion-swap \ npx hardhat localnet-check -npx hardhat evm-gateway-swap \ +npx hardhat evm-swap \ --network localhost \ --receiver "$CONTRACT_SWAP" \ --amount 1 \ @@ -51,7 +51,7 @@ npx hardhat evm-gateway-swap \ npx hardhat localnet-check -npx hardhat evm-gateway-swap \ +npx hardhat evm-swap \ --network localhost \ --receiver "$CONTRACT_SWAP" \ --amount 1 \ diff --git a/examples/swap/tasks/evmGatewaySwap.ts b/examples/swap/tasks/evmSwap.ts similarity index 97% rename from examples/swap/tasks/evmGatewaySwap.ts rename to examples/swap/tasks/evmSwap.ts index 2c591ab..860d47b 100644 --- a/examples/swap/tasks/evmGatewaySwap.ts +++ b/examples/swap/tasks/evmSwap.ts @@ -37,7 +37,7 @@ export const evmDepositAndCall = async ( } }; -task("evm-gateway-swap", "Swap tokens from EVM", evmDepositAndCall) +task("evm-swap", "Swap tokens from EVM", evmDepositAndCall) .addParam("receiver", "Receiver address on ZetaChain") .addOptionalParam( "gatewayEvm",