From 051ee418d8611832cf28810c7db7a6fdd3ef0e9d Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Mon, 18 Nov 2024 10:20:54 +0300 Subject: [PATCH] default addresses --- examples/call/tasks/deploy.ts | 2 +- examples/nft/scripts/testnet.sh | 2 +- examples/nft/tasks/deploy.ts | 8 ++++++-- examples/swap/tasks/deploy.ts | 8 ++++++-- examples/token/tasks/deploy.ts | 8 ++++++-- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/examples/call/tasks/deploy.ts b/examples/call/tasks/deploy.ts index 05fb883..bd438fa 100644 --- a/examples/call/tasks/deploy.ts +++ b/examples/call/tasks/deploy.ts @@ -38,6 +38,6 @@ task("deploy", "Deploy the contract", main) .addOptionalParam("name", "Contract to deploy", "Universal") .addOptionalParam( "gateway", - "Gateway address (default: ZetaChain Gateway on testnet)", + "Uniswap v2 Router address (default: ZetaChain TestnetGateway)", "0x6c533f7fe93fae114d0954697069df33c9b74fd7" ); diff --git a/examples/nft/scripts/testnet.sh b/examples/nft/scripts/testnet.sh index 4ceacb2..efea409 100755 --- a/examples/nft/scripts/testnet.sh +++ b/examples/nft/scripts/testnet.sh @@ -5,7 +5,7 @@ set -x npx hardhat compile --force --quiet -UNIVERSAL=$(npx hardhat deploy --name Universal --network zeta_testnet --gateway 0x6c533f7fe93fae114d0954697069df33c9b74fd7 --system-contract 0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B --gas-limit 500000 --json | jq -r '.contractAddress') +UNIVERSAL=$(npx hardhat deploy --name Universal --network zeta_testnet --gateway 0x6c533f7fe93fae114d0954697069df33c9b74fd7 --uniswap-router 0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe --gas-limit 500000 --json | jq -r '.contractAddress') CONNECTED_BASE=$(npx hardhat deploy --name Connected --network base_sepolia --gateway 0x0c487a766110c85d301d96e33579c5b317fa4995 --gas-limit 500000 --json | jq -r '.contractAddress') CONNECTED_BNB=$(npx hardhat deploy --name Connected --network bsc_testnet --gateway 0x0c487a766110c85d301d96e33579c5b317fa4995 --gas-limit 500000 --json | jq -r '.contractAddress') diff --git a/examples/nft/tasks/deploy.ts b/examples/nft/tasks/deploy.ts index c4be262..7a24f9e 100644 --- a/examples/nft/tasks/deploy.ts +++ b/examples/nft/tasks/deploy.ts @@ -57,11 +57,15 @@ task("deploy", "Deploy the NFT contract", main) .addOptionalParam( "gateway", "Gateway address (default: ZetaChain Gateway)", - "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" + "0x6c533f7fe93fae114d0954697069df33c9b74fd7" ) .addOptionalParam( "deployGasPrice", "Gas price for deploy transaction", "10000000000" ) - .addOptionalParam("uniswapRouter", "Uniswap v2 router address on ZetaChain"); + .addOptionalParam( + "uniswapRouter", + "Uniswap v2 Router address (default: ZetaChain TestnetGateway)", + "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe" + ); diff --git a/examples/swap/tasks/deploy.ts b/examples/swap/tasks/deploy.ts index 6d544fa..cbeee2f 100644 --- a/examples/swap/tasks/deploy.ts +++ b/examples/swap/tasks/deploy.ts @@ -39,9 +39,13 @@ const main = async (args: any, hre: HardhatRuntimeEnvironment) => { task("deploy", "Deploy the contract", main) .addFlag("json", "Output in JSON") .addOptionalParam("name", "Contract to deploy", "Swap") - .addOptionalParam("uniswapRouter", "Uniswap v2 Router address on ZetaChain") + .addOptionalParam( + "uniswapRouter", + "Uniswap v2 Router address (default: ZetaChain TestnetGateway)", + "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe" + ) .addOptionalParam( "gateway", "Gateway address (default: ZetaChain Gateway)", - "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" + "0x6c533f7fe93fae114d0954697069df33c9b74fd7" ); diff --git a/examples/token/tasks/deploy.ts b/examples/token/tasks/deploy.ts index 0cd76e9..a0afc70 100644 --- a/examples/token/tasks/deploy.ts +++ b/examples/token/tasks/deploy.ts @@ -52,6 +52,10 @@ task("deploy", "Deploy the NFT contract", main) .addOptionalParam( "gateway", "Gateway address (default: ZetaChain Gateway)", - "0x5FC8d32690cc91D4c39d9d3abcBD16989F875707" + "0x6c533f7fe93fae114d0954697069df33c9b74fd7" ) - .addOptionalParam("uniswapRouter", "Uniswap v2 Router address on ZetaChain"); + .addOptionalParam( + "uniswapRouter", + "Uniswap v2 Router address (default: ZetaChain TestnetGateway)", + "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe" + );