# dependencies
- rust 1.72.0
- node 18.17.1
- yarn 3.6.0
- solana 1.16.10
- anchor 0.28.0
turbo run build
Expand for details
- Install Rust v1.17.0
https://www.rust-lang.org/tools/install
- Install Solana v1.14.17
sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
- Install avm (Anchor Version Manager)
cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
On linux systems:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
- Install anchor v0.27.0
avm install 0.27.0 && avm use 0.27.0
anchor build
anchor test
Expand for details
- Navigate to
program-library
- Start up the node (Retry after running
yarn
if you have problems)
yarn localnet
- Wait for the logs to say
DONE SETUP
(DO NOT KILL THE PROCESS, THIS IS THE BLOCKCHAIN NODE - LEAVE IT RUNNING) - Open
program-library/mocks/setup.json
and you should see adripPositions
field. This field holdspositionPubkey
sub-fields that are valid pubkeys for real drip position accounts that have been created in your local node.
- Naviate to
apps/fetcher
- Create a
.env
file with the following contents
FETCHER_RPC_URL=http://localhost:8899
DRIP_PROGRAM_ID=74XYB4agZ83msRxmTGvNDc8D2z8T55mfGfz3FAneNSKk
- Start the fetcher (Retry after running
yarn
if you have problems)
yarn dev
- Ping the fetcher at
http://localhost:3000
to make sure its running - Fetch an account using
http://localhost:3000/fetch/account/<insert a valid drip position pubkey here>