solana-program-library/token/cli
Jon Cinque d50f2745f8
token-cli: Support transfer fee extension (#3792)
* token-cli: Add transfer fee to create-token

* Add `expected-fee` arg to transfer

* Add withdraw-withheld-tokens implementation

* Add optional `Harvest` call while closing account

* Add `set-transfer-fee` command

* Fix rebase issues
2022-11-11 19:16:51 +01:00
..
src token-cli: Support transfer fee extension (#3792) 2022-11-11 19:16:51 +01:00
tests token-cli: Move cmd test into a separate file (#3306) 2022-07-01 19:41:27 -04:00
Cargo.toml upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
README.md token-cli: Add directions for building and running tests (#3673) 2022-10-06 19:37:22 +02:00
build.rs Update rust to 1.60, solana to 1.11.6 (#3492) 2022-08-18 12:16:02 -07:00

README.md

SPL Token program command-line utility

A basic command-line for creating and using SPL Tokens. See https://spl.solana.com/token for more details

Build

To build the CLI locally, simply run:

cargo build

Testing

The tests require locally built programs for Token, Token-2022, and Associated Token Account. To build these, you can run:

BUILD_DEPENDENT_PROGRAMS=1 cargo build

This method uses the local build.rs file, which can be error-prone, so alternatively, you can build the programs by running the following commands from this directory:

cargo build-sbf --manifest-path ../program/Cargo.toml
cargo build-sbf --manifest-path ../program-2022/Cargo.toml
cargo build-sbf --manifest-path ../../associated-token-account/program/Cargo.toml

After that, you can run the tests as any other Rust project:

cargo test