- 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 thesolana_device_id
directory to the localnet.
anchor depoly
- Fourth, run
device-did-run.ts
ts-node device-did-run.ts
we also made a PoC using spl-token-2022
Token Extension in poc-for-next
folder which will be our next iteration.