Skip to content

seabed-labs/drip-v2

Repository files navigation

Drip V2

Getting Started

# dependencies
-   rust 1.72.0
-   node 18.17.1
-   yarn 3.6.0
-   solana 1.16.10
-   anchor 0.28.0
turbo run build

Contributing

  1. Follow https://www.conventionalcommits.org/en/v1.0.0/

Program

Expand for details

Setup (program)

  1. Install Rust v1.17.0

https://www.rust-lang.org/tools/install

  1. Install Solana v1.14.17
sh -c "$(curl -sSfL https://release.solana.com/v1.14.17/install)"
  1. 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
  1. Install anchor v0.27.0
avm install 0.27.0 && avm use 0.27.0

Build (program)

anchor build

Tests (program)

anchor test

xNFT

Expand for details

Setup (xNFT)

WIP

Run (xNFT)

Setting up dummy drip positions

Expand for details

Setup on-chain stuff

  1. Navigate to program-library
  2. Start up the node (Retry after running yarn if you have problems)
yarn localnet
  1. Wait for the logs to say DONE SETUP (DO NOT KILL THE PROCESS, THIS IS THE BLOCKCHAIN NODE - LEAVE IT RUNNING)
  2. Open program-library/mocks/setup.json and you should see a dripPositions field. This field holds positionPubkey sub-fields that are valid pubkeys for real drip position accounts that have been created in your local node.

Setup fetcher

  1. Naviate to apps/fetcher
  2. Create a .env file with the following contents
FETCHER_RPC_URL=http://localhost:8899
DRIP_PROGRAM_ID=74XYB4agZ83msRxmTGvNDc8D2z8T55mfGfz3FAneNSKk
  1. Start the fetcher (Retry after running yarn if you have problems)
yarn dev
  1. Ping the fetcher at http://localhost:3000 to make sure its running
  2. Fetch an account using http://localhost:3000/fetch/account/<insert a valid drip position pubkey here>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages