hadeswap-sdk-public
Version:
HadeSwap SDK for interacting with protocol
23 lines (22 loc) • 791 B
TypeScript
import { web3 } from '@project-serum/anchor';
import { OrderType, PairType } from '../types';
export declare const getActivity: ({ programId, untilThisSignature, connection, }: {
programId: web3.PublicKey;
untilThisSignature?: string | undefined;
connection: web3.Connection;
}) => Promise<TradeActivity[]>;
export declare const getTradeTransactionsFromSignatures: ({ signatures, connection, }: {
signatures: web3.ConfirmedSignatureInfo[];
connection: web3.Connection;
}) => Promise<web3.ParsedTransactionWithMeta[]>;
export interface TradeActivity {
timestamp: number;
signature: string;
pair: string;
orderType: OrderType;
pairType: PairType | null;
nftMint: string;
solAmount: number;
userMaker: string | null;
userTaker: string;
}