Skip to content

hirokisan/solprofile

Repository files navigation

solprofile

solprofile gives profile to the wallet on solana.

Setup

Run on localnet

[Optional] Create a Keypair

If ~/.config/solana/id.json does not exist, run.

$ solana-keygen new --no-bip39-passphrase

[Optional] Set Config

If not set, run.

$ solana config set --keypair ~/.config/solana/id.json
$ solana config set --url localhost

Run test validator

$ just run-test-validator

Airdrop enough SOL to pay for deploy fee

$ solana airdrop 2

Build

$ just build

This will generate a keypair in target/deploy.

Check Program ID

$ just keys

Set the Program ID to declare_id! and programs.localnet.solprofile on Anchor.toml.

Build again

$ just build

To include the new program id in the binary.

Deploy

$ just deploy

Check

https://solscan.io/account/{ProgramID}?cluster=custom&customUrl=http://localhost:8899

Tips

Keep keypair secret to reuse

Keep the keypair generated in target/deploy after anchor build.

If for some reason a build doesn't pass or a test doesn't pass

$ just clean

About

solprofile gives profile to the wallet on Solana.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published