Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/me-imfhd/solana-contracts
This comprises of some popular solana/anchor programs from basic to advance. On latest versions of anchor and solana.
https://github.com/me-imfhd/solana-contracts
anchor-lang nft-collection rust solana spl-token spl-token-2022
Last synced: 3 months ago
JSON representation
This comprises of some popular solana/anchor programs from basic to advance. On latest versions of anchor and solana.
- Host: GitHub
- URL: https://github.com/me-imfhd/solana-contracts
- Owner: me-imfhd
- Created: 2024-07-14T19:10:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-08-05T00:34:49.000Z (6 months ago)
- Last Synced: 2024-08-05T16:29:14.059Z (6 months ago)
- Topics: anchor-lang, nft-collection, rust, solana, spl-token, spl-token-2022
- Language: Rust
- Homepage:
- Size: 229 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This comprises of some popular solana programs from basic to advance
Required Versions:
```
anchor-cli 0.30.1
solana-cli 1.18.17
```Set solana config to localhost with
- ``` solana config set --url localhost ```## Building
1) `anchor build`: Builds all programs
2) Update the program IDs for each program with the corresponding generated program ID.## Running Tests
Test by program name
- ```anchor test --detach --program-name ```## Logging
Look at program logs in `.anchor/program-logs`
Or use `solana logs`
Also set skipPreflight to true to see logs in case of failures in sending transaction.If facing any issue, try deleting target dir and revert any changes to cargo.lock and retry, else feel free to create an issue to discuss.