Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Oct 31, 2023
1 parent feedbcd commit bca045f
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions scripts/test/omnichain_swap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@

set -e

echo "Testing omnichain Swap"

# source "$(dirname "$0")/../common.sh"
source "$(dirname "$0")/../common.sh"

# echo $SENDER
echo $SENDER

# pushd "./omnichain/swap"
pushd "./omnichain/swap"

# yarn
yarn

# npx hardhat compile --force
npx hardhat compile --force

# echo "Testing omnichain Swap"
echo "Testing omnichain Swap"

# OMNI_SWAP_CONTRACT=$(npx hardhat deploy --network zeta_testnet --json | jq -r '.address')
# # echo "omnichain.swap.zeta_testnet=$OMNI_SWAP_CONTRACT" >> contracts.toml
# OMNI_SWAP_TX=$(npx hardhat interact --contract $OMNI_SWAP_CONTRACT --network goerli_testnet --amount 0.01 --recipient $SENDER --destination mumbai_testnet --json | jq -r '.hash')
# echo $OMNI_SWAP_TX
# OMNI_SWAP_CCTX=$(npx hardhat cctx $OMNI_SWAP_TX --json)
# echo $OMNI_SWAP_CCTX
OMNI_SWAP_CONTRACT=$(npx hardhat deploy --network zeta_testnet --json | jq -r '.address')
# echo "omnichain.swap.zeta_testnet=$OMNI_SWAP_CONTRACT" >> contracts.toml
OMNI_SWAP_TX=$(npx hardhat interact --contract $OMNI_SWAP_CONTRACT --network goerli_testnet --amount 0.01 --recipient $SENDER --destination mumbai_testnet --json | jq -r '.hash')
echo $OMNI_SWAP_TX
OMNI_SWAP_CCTX=$(npx hardhat cctx $OMNI_SWAP_TX --json)
echo $OMNI_SWAP_CCTX

# popd
popd

0 comments on commit bca045f

Please sign in to comment.