solarti-token-cli

Crates.iosolarti-token-cli
lib.rssolarti-token-cli
version3.0.0
sourcesrc
created_at2023-05-05 00:51:09.003923
updated_at2023-11-24 05:45:58.667006
descriptionSolarti Token Command-line Utility
homepagehttps://spl.miraland.top/token
repositoryhttps://github.com/miraland-labs/solarti-program-library
max_upload_size
id857214
size641,560
Miraland (miralandlabs)

documentation

README

Solarti 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
Commit count: 3123

cargo fmt