Co-authored-by: Daniel Gushchyan <d.gushchyan@gmail.com> Co-authored-by: hu55a1n1 <sufialhussaini@gmail.com> Co-authored-by: David Kajpust <kajpustd@gmail.com> Co-authored-by: Daniel Gushchyan <39884512+dangush@users.noreply.github.com>
24 lines
618 B
Bash
Executable file
24 lines
618 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
ROOT=${ROOT:-$HOME}
|
|
|
|
|
|
echo "--------------------------------------------------------"
|
|
echo "instantiate"
|
|
cd $ROOT/cycles-quartz/relayer/
|
|
export INSTANTIATE_MSG=$(./scripts/relay.sh Instantiate | jq '{quartz: .} + {denom: "ucosm"}' )
|
|
echo "--------------------------------------------------------"
|
|
|
|
echo "deploy contract"
|
|
cd $ROOT/cycles-quartz/apps/transfers/contracts/
|
|
|
|
bash deploy-contract.sh target/wasm32-unknown-unknown/release/transfers_contracts.wasm |& tee output
|
|
export CONTRACT=$(cat output | grep Address | awk '{print $NF}' | sed 's/\x1b\[[0-9;]*m//g')
|
|
echo $CONTRACT
|
|
|
|
|
|
|
|
|