Skip to content
solana-programPublic

About

The SPL Token program and its clients

Resources

Security policy

Stars

208 stars

Watchers

14 watching

Forks

Repository files navigation

SPL Token

This repository contains the SPL Token program and its clients:

Project setup

This repository uses a Makefile for building, testing and linting. Package names are mapped to directories by replacing the first - with a / (for example, pinocchio-program refers to pinocchio/program and clients-js to clients/js).

Install the NPM dependencies once to make the Codama renderers available for client generation:

pnpm install

Managing programs

Build the SBF artifacts into target/deploy/ with:

make build-sbf-program
make build-sbf-pinocchio-program

The program tests run against the built artifacts using Mollusk, so build the program before testing it:

make test-program
make test-pinocchio-program

You can also format-check and lint any Rust package, for example:

make format-check-program
make clippy-program

Generating clients

The program IDL is checked in at the repository root as idl.json. Regenerate the JS client from it with:

make generate-clients

Managing clients

The following clients are available for your programs. You may use the following links to learn more about each client.

The JS client tests load target/deploy/pinocchio_token_program.so into LiteSVM, so build the pinocchio program first:

make build-sbf-pinocchio-program
make test-js-clients-js

About

The SPL Token program and its clients

Resources

Security policy

Stars

208 stars

Watchers

14 watching

Forks

Releases

Packages

Used by

Contributors

Languages