UNPKG

escrow-market-sdk

Version:
43 lines (42 loc) 786 B
import { PublicKey } from '@solana/web3.js'; import BN from 'bn.js'; /** * Interface cho Config account */ export interface Config { admin: PublicKey; operator: PublicKey; bump: number; } /** * Interface cho Deal account */ export interface Deal { dealId: string; seller: PublicKey; buyer: PublicKey; tokenTransfer: PublicKey; tokenWithdraw: PublicKey; transferAmount: BN; withdrawAmount: BN; deadline: BN; status: number; bump: number; } /** * Interface cho WithdrawNonce account */ export interface WithdrawNonce { user: PublicKey; nonce: BN; bump: number; } /** * Interface cho UserDeposit account */ export interface UserDeposit { owner: PublicKey; mint: PublicKey; amount: BN; bump: number; }