Skip to content

jvr0x/solana-token-vesting

Repository files navigation

token-vesting

This is a Next.js app containing:

  • Tailwind and Shadcn UI for styling
  • Gill Solana SDK
  • Shadcn Wallet UI components
  • A basic Counter Solana program written in Anchor
  • codama to generate a JS sdk for the program
  • UI components for interacting with the program

Getting Started

Installation

Download the template

npx create-solana-dapp@latest -t gh:solana-foundation/templates/gill/token-vesting

Install Dependencies

npm install

Apps

anchor

This is a Solana program written in Rust using the Anchor framework.

Commands

You can use any normal anchor commands. Either move to the anchor directory and run the anchor command or prefix the command with npm, eg: npm run anchor.

Sync the program id:

Running this command will create a new keypair in the anchor/target/deploy directory and save the address to the Anchor config file and update the declare_id! macro in the ./src/lib.rs file of the program. This will also update the constant in the anchor/src/counter-exports.ts file.

npm run setup

Build the program:

npm run anchor-build

Start the test validator with the program deployed:

npm run anchor-localnet

Run the tests

npm run anchor-test

Deploy to Devnet

npm run anchor deploy --provider.cluster devnet

web

This is a React app that uses the Anchor generated client to interact with the Solana program.

Commands

Start the app

npm run dev

Build the app

npm run build

About

Token vesting program on Solana.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published