-
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
1e6903d
commit a1ec379
Showing
9 changed files
with
774 additions
and
33 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,2 @@ | ||
ANCHOR_PROVIDER_URL="http://localhost:8899" | ||
ANCHOR_WALLET="/home/xiaolong/.config/solana/id.json" |
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,23 @@ | ||
# Device did | ||
|
||
## In the localnet | ||
|
||
- First change the .env file, we need to the `ANCHOR_WALLET` to our local config wallet: | ||
``` | ||
ANCHOR_WALLET="/home/yourWalletConfig/.config/solana/id.json" | ||
``` | ||
|
||
- Second, run `solana-test-validator` in a new terminal: | ||
``` | ||
solana-test-validator -r | ||
``` | ||
|
||
- Third, `anchor deploy` our program which in the `solana_device_id` directory to the localnet. | ||
``` | ||
anchor depoly | ||
``` | ||
|
||
- Fourth, run `device-did-run.ts` | ||
``` | ||
ts-node device-did-run.ts | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.