UNPKG

test-raydium-sdk-v2

Version:

An SDK for building applications on top of Raydium.

31 lines (28 loc) 824 B
import { PublicKey } from '@solana/web3.js'; import { PublicKeyish } from '../common/pubKey.js'; /** * A token is any fungible financial instrument on Solana, including SOL and all SPL tokens. */ interface TokenProps { mint: PublicKeyish; decimals: number; symbol?: string; name?: string; skipMint?: boolean; isToken2022?: boolean; } declare class Token { readonly symbol?: string; readonly name?: string; readonly decimals: number; readonly isToken2022: boolean; readonly mint: PublicKey; static readonly WSOL: Token; /** * * @param mint - pass "sol" as mint will auto generate wsol token config */ constructor({ mint, decimals, symbol, name, skipMint, isToken2022 }: TokenProps); equals(other: Token): boolean; } export { Token, TokenProps };