test-raydium-sdk-v2
Version:
An SDK for building applications on top of Raydium.
37 lines (34 loc) • 1.54 kB
TypeScript
import { Connection, PublicKey } from '@solana/web3.js';
import { RawMint } from '@solana/spl-token';
import { bx as TokenInfo, a7 as BigNumberish, b$ as TokenAmount, e as ApiV3Token } from '../../type-91d108de.js';
import { Token } from '../../module/token.js';
import 'bn.js';
import '../../common/txTool/txType.js';
import '../../common/owner.js';
import '../../common/txTool/lookupTable.js';
import 'decimal.js';
import '../../marshmallow/index.js';
import '../../marshmallow/buffer-layout.js';
import '../../common/logger.js';
import '../../module/currency.js';
import '../../common/pubKey.js';
declare const parseTokenInfo: ({ connection, mint, }: {
connection: Connection;
mint: PublicKey | string;
}) => Promise<RawMint | undefined>;
declare const toTokenInfo: ({ mint, decimals, programId, logoURI, priority, }: {
mint: PublicKey;
decimals: number;
programId?: string | PublicKey | undefined;
priority?: number | undefined;
logoURI?: string | undefined;
}) => TokenInfo;
declare const toToken: (props: Omit<TokenInfo, "priority">) => Token;
declare const toTokenAmount: ({ amount, isRaw, name, ...props }: Omit<TokenInfo, "priority"> & {
amount: BigNumberish;
isRaw?: boolean | undefined;
name?: string | undefined;
}) => TokenAmount;
declare function solToWSolToken<T extends ApiV3Token | TokenInfo>(token: T): T;
declare function wSolToSolToken<T extends ApiV3Token | TokenInfo>(token: T): T;
export { parseTokenInfo, solToWSolToken, toToken, toTokenAmount, toTokenInfo, wSolToSolToken };