-
Notifications
You must be signed in to change notification settings - Fork 4
/
init-governance.sh
executable file
·17 lines (13 loc) · 1.29 KB
/
init-governance.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -euo pipefail
solana -v --keypair artifacts/payer.keypair airdrop 100
solana -v --keypair artifacts/voters/voter1.keypair airdrop 100
solana -v --keypair artifacts/voters/voter2.keypair airdrop 100
solana -v --keypair artifacts/voters/voter3.keypair airdrop 100
solana -v --keypair artifacts/voters/voter4.keypair airdrop 100
solana -v --keypair artifacts/voters/voter5.keypair airdrop 100
spl-token create-token --decimals 9 --fee-payer artifacts/payer.keypair --mint-authority artifacts/creator.keypair -- artifacts/community-mint.keypair
solana program deploy -v --keypair artifacts/payer.keypair --upgrade-authority artifacts/creator.keypair --program-id artifacts/spl-governance.keypair deploy/spl_governance.so
solana program deploy -v --keypair artifacts/payer.keypair --upgrade-authority artifacts/creator.keypair --program-id artifacts/addin-fixed-weights.keypair deploy/spl_governance_addin_fixed_weights.so
solana program deploy -v --keypair artifacts/payer.keypair --upgrade-authority artifacts/creator.keypair --program-id artifacts/addin-vesting.keypair deploy/spl_governance_addin_vesting.so
solana program deploy -v --keypair artifacts/payer.keypair --upgrade-authority artifacts/creator.keypair --program-id artifacts/maintenance.keypair deploy/maintenance.so