22 lines
579 B
TypeScript
22 lines
579 B
TypeScript
import { RouteInfo } from '@jup-ag/core'
|
|
|
|
export type TokenInfo = {
|
|
decimals: number
|
|
symbol: string
|
|
}
|
|
|
|
export type Routes = {
|
|
routesInfos: RouteInfo[]
|
|
cached: boolean
|
|
}
|
|
|
|
export interface Token {
|
|
chainId: number // 101,
|
|
address: string // 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
symbol: string // 'USDC',
|
|
name: string // 'Wrapped USDC',
|
|
decimals: number // 6,
|
|
logoURI: string // 'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/BXXkv6z8ykpG1yuvUDPgh732wzVHB69RnB9YgSYh3itW/logo.png',
|
|
tags: string[] // [ 'stablecoin' ]
|
|
}
|