UNPKG

@frakt-protocol/frakt-sdk

Version:

Frakt SDK for interacting with frakt.xyz protocols

60 lines (59 loc) 1.57 kB
/// <reference types="bn.js" /> import { BN } from '@project-serum/anchor'; export interface TokenExtensions { readonly website?: string; readonly bridgeContract?: string; readonly assetContract?: string; readonly address?: string; readonly explorer?: string; readonly twitter?: string; readonly github?: string; readonly medium?: string; readonly tgann?: string; readonly tggroup?: string; readonly discord?: string; readonly serumV3Usdt?: string; readonly serumV3Usdc?: string; readonly coingeckoId?: string; readonly imageUrl?: string; readonly description?: string; } export interface TokenInfo { readonly chainId: number; readonly address: string; readonly name: string; readonly decimals: number; readonly symbol: string; readonly logoURI?: string; readonly tags?: string[]; readonly extensions?: TokenExtensions; } export interface TokenView { tokenAccountPubkey: string; mint: string; owner: string; amount: number; amountBN: BN; delegateOption: boolean; delegate: string; state: number; isNativeOption: boolean; isNative: number; delegatedAmount: number; closeAuthorityOption: boolean; closeAuthority: string; } export interface BulkNftRaw { nftMint: string; loanValue: number; interest: number; maxLoanValue: number; minLoanValue: number; amountOfDays: number; } export interface BulkNft { nftMint: string; loanValue: number; interest: number; amountOfDays: number; }