-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.sh
executable file
·28 lines (20 loc) · 994 Bytes
/
deploy.sh
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
26
27
28
#!/bin/bash
set -e
# build the canister before disconnecting clients, so that the deployment is faster
echo -e "\nBuilding canister..."
dfx build ic_side_services_backend --check
echo -e "\nDisconnecting all HTTP request executor clients..."
dfx canister call --ic ic_side_services_backend disconnect_all_clients
echo -e "\nDeploying canister..."
dfx deploy ic_side_services_backend --ic --argument '(variant { mainnet })'
# make the canister fetch the ECDSA public key and store in its state
# only needed the first time
# echo -e "\nSetting up ECDSA public key in the canister..."
# dfx canister call --ic ic_side_services_backend set_canister_public_key
# log addresses to see if everything went well
echo -e "\nZelId and ZelCash addresses on canister:"
dfx canister call --ic ic_side_services_backend get_addresses --query
# just log the status (controllers, balance, etc.)
echo -e "\nFetching canister status..."
dfx canister status ic_side_services_backend --ic
echo -e "\nDone!"