MCPcopy Index your code
hub / github.com/ExtropyIO/SolanaBootcamp

github.com/ExtropyIO/SolanaBootcamp @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
299 symbols 489 edges 111 files 47 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SolanaBootcamp

Note: We're expecting you have both rust and solana cli installed. If you are running on the MacOS M1 and encounter issues, we suggest NOT to use brew to install rust, instead use curl or install from source.

  1. Install and build - creates binary files for each of the examples in examples_baremtal/ creates inside target/

zsh npm i npm run build

  1. Set your config to localhost

zsh solana config set --url localhost

  1. Run in separate terminal window. This will spin up local solana cluster for you with RPC endpoint defaulted to localhost:8899, same as running solana-test-validator --reset

zsh npm run start-local-cluster

  1. Monitor the logs in separate window by running

zsh solana logs

Commands for each example

  1. For each example run the following commands. The program would be deployed to the network specified in solana config

zsh npm run deploy:n

where n is example number from 1 to 7 what this script does in the background solana program deploy ./examples_baremetal/target/deploy/nameOfExampleProgram.so

  1. To interact with the contract, we'll be running the typescript code located in client/ within each example

zsh npm run call:n

where n is example number from 1 to 7

Devnet

  1. If you want to use devnet run:

```zsh solana config set --url https://api.devnet.solana.com

# or

solana config set --url devnet ```

Extension points exported contracts — how you extend this code

AppendBar (Interface)
(no doc) [1 implementers]
homeworks_rust/homeworks/homework7/traits/traits1.rs
Beats (Interface)
(no doc) [1 implementers]
examples_anchor/programs/example2-rps/src/lib.rs
AppendBar (Interface)
(no doc)
homeworks_rust/homeworks/homework7/traits/traits2.rs

Core symbols most depended-on inside this repo

getBalance
called by 12
utils/utils.ts
getUserInput
called by 7
utils/utils.ts
checkBinaryExists
called by 6
utils/utils.ts
checkAccountDeployed
called by 6
utils/utils.ts
temp_file
called by 6
homeworks_rust/src/exercise.rs
establishConnection
called by 5
utils/utils.ts
establishEnoughSol
called by 5
utils/utils.ts
getPayer
called by 5
utils/utils.ts

Shape

Function 204
Class 46
Method 29
Enum 17
Interface 3

Languages

Rust88%
TypeScript12%

Modules by API surface

homeworks_rust/tests/integration_tests.rs22 symbols
homeworks_rust/src/exercise.rs20 symbols
utils/utils.ts17 symbols
examples_anchor/programs/example3-consortium/src/lib.rs17 symbols
examples_anchor/programs/example2-rps/src/lib.rs17 symbols
homeworks_rust/src/main.rs13 symbols
examples_anchor/programs/example1-lottery/src/lib.rs10 symbols
homeworks_rust/src/verify.rs9 symbols
homeworks_rust/homeworks/homework7/error_handling/errors6.rs9 symbols
homeworks_rust/homeworks/homework6/enums/enums3.rs9 symbols
examples_baremetal/example6-pda/client/main.ts8 symbols
homeworks_rust/homeworks/homework6/collections/hashmap2.rs6 symbols

For agents

$ claude mcp add SolanaBootcamp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact