Pyra Tokens
A Rust crate containing supported tokens for Pyra Solana smart contracts. This crate provides a shared interface for token metadata that can be used by both on-chain programs and backend services.
Usage
Add this to your Cargo.toml:
[]
= "0.1.0"
Basic Usage
use ;
// Access all supported tokens
for token in SUPPORTED_TOKENS.iter
// Find token by market index
if let Some = find_by_market_index
// Find token by mint address
use pubkey;
let usdc_mint = pubkey!;
if let Some = find_by_mint
License
This project is licensed under MIT license.