https://github.com/hirokisan/solprofile
solprofile gives profile to the wallet on Solana.
https://github.com/hirokisan/solprofile
profile solana solana-program
Last synced: 2 months ago
JSON representation
solprofile gives profile to the wallet on Solana.
- Host: GitHub
- URL: https://github.com/hirokisan/solprofile
- Owner: hirokisan
- License: mit
- Created: 2024-10-24T11:55:19.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:11:23.000Z (7 months ago)
- Last Synced: 2025-02-09T13:09:43.236Z (4 months ago)
- Topics: profile, solana, solana-program
- Language: Rust
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# solprofile
solprofile gives profile to the wallet on solana.
## Setup
- [Install Rust](https://www.rust-lang.org/tools/install)
- [Install Solana CLI](https://docs.solanalabs.com/cli/install)
- [Install Anchor CLI](https://www.anchor-lang.com/docs/installation)
- [Optional] [Install just](https://github.com/casey/just)## Run on localnet
### [Optional] Create a Keypair
If `~/.config/solana/id.json` does not exist, run.
```console
$ solana-keygen new --no-bip39-passphrase
```### [Optional] Set Config
If not set, run.
```console
$ solana config set --keypair ~/.config/solana/id.json
$ solana config set --url localhost
```### Run test validator
```console
$ just run-test-validator
```### Airdrop enough SOL to pay for deploy fee
```console
$ solana airdrop 2
```### Build
```console
$ just build
```This will generate a keypair in `target/deploy`.
### Check Program ID
```console
$ just keys
```Set the Program ID to `declare_id!` and `programs.localnet.solprofile` on Anchor.toml.
### Build again
```console
$ just build
```To include the new program id in the binary.
### Deploy
```console
$ 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
```console
$ just clean
```