Skip to content

Commit

Permalink
chore: update document
Browse files Browse the repository at this point in the history
  • Loading branch information
quanghuynguyen1902 committed Jan 31, 2023
1 parent 87bd8b5 commit f3f3b2d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Deployment

## Deploy on devnet

- Changing the cluster: `solana config set --url devnet`
- Setup Anchor.toml:
```
[programs.localnet]
superteam_dao_contract = "9fHpouSqNrqBKLka9WeUXkRuh2Qt97nvqtP1Km99LKXb"
freeze_nft_contract = "CQamCKHdgid5vgpRvuc88GQCFXvifPUYRTUmpgv3bDuG"
[programs.devnet]
superteam_dao_contract = "9fHpouSqNrqBKLka9WeUXkRuh2Qt97nvqtP1Km99LKXb"
freeze_nft_contract = "CQamCKHdgid5vgpRvuc88GQCFXvifPUYRTUmpgv3bDuG"
# ...
[provider]
cluster = "devnet"
wallet = "/{your_path}/.config/solana/id.json"
```
- Airdropping on devnet: `solana airdop 2` (The number of sol that need to be airdropped depends on your program)
- Deploying the program
```
anchor build
anchor deploy
```
## References
- https://lorisleiva.com/create-a-solana-dapp-from-scratch/deploying-to-devnet

0 comments on commit f3f3b2d

Please sign in to comment.