forked from ashuralyk/spore-dob-svg
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·25 lines (16 loc) · 853 Bytes
/
deploy.sh
File metadata and controls
executable file
·25 lines (16 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
export network=$3
export name="spore-dob-1"
if [ -z $network ]
then
export network="testnet"
fi
echo "deploying $name from $2 to $1 on $network"
ckb-cli --url $1 deploy gen-txs --from-address $2 --fee-rate 1000 --deployment-config ./deployment.toml \
--info-file ./$name.json --migration-dir ./migration/$network --sign-now
echo "ckb transacion file '$name.json' has generated"
ckb-cli --url $1 deploy apply-txs --info-file ./$name.json --migration-dir ./migration/$network
rm ./$name.json
echo "deployment finished"
# usage: ./deploy.sh https://testnet.ckbapp.dev/ ckt1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqfqmf4hphl9jkrw3934mwe6m3a2nx88rzgdlw820
# usage: ./deploy.sh https://mainnet.ckb.dev/ ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqfqmf4hphl9jkrw3934mwe6m3a2nx88rzgrd9gqh mainnet