Skip to content

Commit

Permalink
default addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 18, 2024
1 parent f5ad522 commit 051ee41
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/call/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
2 changes: 1 addition & 1 deletion examples/nft/scripts/testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
8 changes: 6 additions & 2 deletions examples/nft/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
8 changes: 6 additions & 2 deletions examples/swap/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);
8 changes: 6 additions & 2 deletions examples/token/tasks/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
);

0 comments on commit 051ee41

Please sign in to comment.