-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-testnet.sh
More file actions
executable file
Β·37 lines (28 loc) Β· 1.31 KB
/
deploy-testnet.sh
File metadata and controls
executable file
Β·37 lines (28 loc) Β· 1.31 KB
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
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Deploy LIN Protocol Simple to Flow Testnet
# This script creates a testnet account and deploys the contract
echo "π Starting Flow Testnet Deployment for LIN Protocol Simple"
# Step 1: Generate a new key pair for testnet
echo "π Generating new testnet key pair..."
KEYS=$(flow keys generate --network testnet)
echo "$KEYS"
# Extract private and public keys from output
PRIVATE_KEY=$(echo "$KEYS" | grep "Private Key" | awk '{print $3}')
PUBLIC_KEY=$(echo "$KEYS" | grep "Public Key" | awk '{print $3}')
echo "π Generated Keys:"
echo "Private Key: $PRIVATE_KEY"
echo "Public Key: $PUBLIC_KEY"
# Step 2: Create testnet account using Flow faucet
echo "π° Creating testnet account..."
echo "Please visit: https://faucet.flow.com/fund-account"
echo "Use the public key: $PUBLIC_KEY"
echo "This will create a testnet account and fund it with FLOW tokens"
echo "β³ After creating the account, update flow.json with:"
echo "- The testnet account address from the faucet"
echo "- Private key: $PRIVATE_KEY"
echo "Then run: flow project deploy --network testnet"
echo "β
Testnet deployment script completed!"
echo "π Next steps:"
echo "1. Visit Flow faucet and create account with the public key above"
echo "2. Update flow.json with the new account address and private key"
echo "3. Run deployment command"