UNPKG

@hubbleprotocol/farms-sdk

Version:
39 lines (38 loc) 1.03 kB
import { PublicKey } from "@solana/web3.js"; import BN from "bn.js"; import * as types from "../types"; export interface TokenInfoFields { mint: PublicKey; decimals: BN; tokenProgram: PublicKey; padding: Array<BN>; } export interface TokenInfoJSON { mint: string; decimals: string; tokenProgram: string; padding: Array<string>; } export declare class TokenInfo { readonly mint: PublicKey; readonly decimals: BN; readonly tokenProgram: PublicKey; readonly padding: Array<BN>; constructor(fields: TokenInfoFields); static layout(property?: string): any; static fromDecoded(obj: any): types.TokenInfo; static toEncodable(fields: TokenInfoFields): { mint: PublicKey; decimals: BN; tokenProgram: PublicKey; padding: BN[]; }; toJSON(): TokenInfoJSON; static fromJSON(obj: TokenInfoJSON): TokenInfo; toEncodable(): { mint: PublicKey; decimals: BN; tokenProgram: PublicKey; padding: BN[]; }; }