Skip to content

Commit

Permalink
fix swap test
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Feb 12, 2025
1 parent 7e5c97d commit 31212a4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions examples/call/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": ">=12.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@zetachain/localnet": "6.0.0-rc5",
"@zetachain/localnet": "6.0.0-rc6",
"@zetachain/toolkit": "13.0.0-rc15",
"axios": "^1.3.6",
"chai": "^4.2.0",
Expand Down Expand Up @@ -61,4 +61,4 @@
"@zetachain/protocol-contracts": "11.0.0-rc3",
"@zetachain/protocol-contracts-solana": "2.0.0-rc1"
}
}
}
8 changes: 4 additions & 4 deletions examples/call/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2370,10 +2370,10 @@
typescript "5.5.4"
zod "3.22.4"

"@zetachain/[email protected]rc5":
version "6.0.0-rc5"
resolved "https://registry.yarnpkg.com/@zetachain/localnet/-/localnet-6.0.0-rc5.tgz#ebb2abfea80ae260ae96320bda29c28c288dd5d4"
integrity sha512-iZeJpS11dARW8wbPEAWsx98vLH1ZissBHgZK9X+gEa2iZNC/LomFS6SS3oKoyqFzLzDA8boBWjKnYu0GZldkuw==
"@zetachain/[email protected]rc6":
version "6.0.0-rc6"
resolved "https://registry.yarnpkg.com/@zetachain/localnet/-/localnet-6.0.0-rc6.tgz#4cb8ce2f3388019b2d90ef74de87e271ceb9cfc1"
integrity sha512-3AMK/ya9SJxBENeGs1+bZtVwXgDZCuTTOP2cfxHq90qPwrpMeZnHGhhm9PCcLhoodXDOx8z+S/4vkzWRj9ghdw==
dependencies:
"@coral-xyz/anchor" "^0.30.1"
"@inquirer/prompts" "^5.5.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/hello/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@types/node": ">=12.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@zetachain/localnet": "6.0.0-rc5",
"@zetachain/localnet": "6.0.0-rc6",
"@zetachain/toolkit": "13.0.0-rc15",
"axios": "^1.3.6",
"chai": "^4.2.0",
Expand Down Expand Up @@ -60,4 +60,4 @@
"@zetachain/networks": "10.0.0-rc4",
"@zetachain/protocol-contracts": "11.0.0-rc3"
}
}
}
8 changes: 4 additions & 4 deletions examples/hello/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2370,10 +2370,10 @@
typescript "5.5.4"
zod "3.22.4"

"@zetachain/[email protected]rc5":
version "6.0.0-rc5"
resolved "https://registry.yarnpkg.com/@zetachain/localnet/-/localnet-6.0.0-rc5.tgz#ebb2abfea80ae260ae96320bda29c28c288dd5d4"
integrity sha512-iZeJpS11dARW8wbPEAWsx98vLH1ZissBHgZK9X+gEa2iZNC/LomFS6SS3oKoyqFzLzDA8boBWjKnYu0GZldkuw==
"@zetachain/[email protected]rc6":
version "6.0.0-rc6"
resolved "https://registry.yarnpkg.com/@zetachain/localnet/-/localnet-6.0.0-rc6.tgz#4cb8ce2f3388019b2d90ef74de87e271ceb9cfc1"
integrity sha512-3AMK/ya9SJxBENeGs1+bZtVwXgDZCuTTOP2cfxHq90qPwrpMeZnHGhhm9PCcLhoodXDOx8z+S/4vkzWRj9ghdw==
dependencies:
"@coral-xyz/anchor" "^0.30.1"
"@inquirer/prompts" "^5.5.0"
Expand Down
4 changes: 3 additions & 1 deletion examples/swap/scripts/localnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ npx hardhat evm-swap \
--receiver "$CONTRACT_SWAP" \
--amount 0.1 \
--target "$ZRC20_USDC" \
--skip-checks \
--recipient "$SENDER"

npx hardhat localnet-check
Expand All @@ -51,6 +52,7 @@ npx hardhat localnet-check

npx hardhat companion-swap \
--network localhost \
--skip-checks \
--contract "$COMPANION" \
--universal-contract "$CONTRACT_SWAP" \
--amount 0.1 \
Expand Down Expand Up @@ -127,4 +129,4 @@ npx hardhat localnet-check

# npx hardhat localnet-check

if [ "$1" = "start" ]; then npx hardhat localnet-stop; fi
# if [ "$1" = "start" ]; then npx hardhat localnet-stop; fi
2 changes: 1 addition & 1 deletion examples/swap/tasks/evmSwap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ task("evm-swap", "Swap tokens from EVM", evmDepositAndCall)
.addOptionalParam(
"gasLimit",
"The gas limit for the transaction",
50000,
500000,
types.int
)
.addOptionalParam(
Expand Down

0 comments on commit 31212a4

Please sign in to comment.