-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add dev env * fix ci
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# default provider Devnet | ||
|
||
export ANCHOR_PROVIDER_URL="https://api.devnet.solana.com" | ||
export ANCHOR_WALLET='./id.json' | ||
|
||
# Airdrop some sols to the wallet | ||
solana airdrop 2 $(solana-keygen pubkey $ANCHOR_WALLET) --url https://api.devnet.solana.com && solana airdrop 2 $(solana-keygen pubkey $ANCHOR_WALLET) --url https://api.devnet.solana.com | ||
|
||
# Build program | ||
anchor build --provider.cluster devnet | ||
|
||
# Copy binary to anchor | ||
mkdir -p ./target/deploy/ | ||
cp ./program-keypair.json ./target/deploy/oracle-keypair.json | ||
cp ./programs/oracle/target/deploy/oracle.so ./target/deploy/oracle.so | ||
|
||
# deploy program to the Devnet | ||
|
||
anchor deploy --provider.cluster devnet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Devnet program: | ||
BFGzZeqA47Kgxv7x1D1bZ7RENbjgV1FjrDd3z7Pse9Q4 |