-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment_command.sh
executable file
·27 lines (19 loc) · 1.19 KB
/
deployment_command.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
#!/bin/bash
# Define PXE URL - set to obsidion URL based on config.ts
PXE_URL="https://pxe.obsidion.xyz"
NETWORK_FLAG="-n $PXE_URL"
# NETWORK_FLAG=""
echo "" > deployment.log
# Create account
output_account=$(aztec-wallet create-account -a my-wallet $NETWORK_FLAG)
echo "$output_account" | tee -a deployment.log
# Deploy Token Contracts
output_token1=$(aztec-wallet deploy TokenContractArtifact --from accounts:my-wallet --args "accounts:my-wallet TestToken1 TST1 18" -a testtoken1 $NETWORK_FLAG)
echo "$output_token1" | tee -a deployment.log
output_token2=$(aztec-wallet deploy TokenContractArtifact --from accounts:my-wallet --args "accounts:my-wallet TestToken2 TST2 18" -a testtoken2 $NETWORK_FLAG)
echo "$output_token2" | tee -a deployment.log
output_token3=$(aztec-wallet deploy TokenContractArtifact --from accounts:my-wallet --args "accounts:my-wallet TestToken3 TST3 18" -a testtoken3 $NETWORK_FLAG)
echo "$output_token3" | tee -a deployment.log
# Deploy RockPaperScissors Contract
output_rps=$(aztec-wallet deploy src/contracts/target/rock_paper_scissors-RockPaperScissors.json --from accounts:my-wallet --args "accounts:my-wallet 2" -a rps $NETWORK_FLAG)
echo "$output_rps" | tee -a deployment.log