-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87bd8b5
commit f3f3b2d
Showing
1 changed file
with
28 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,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 |