import { BN } from '@coral-xyz/anchor'; import { PublicKey } from '@solana/web3.js'; export const BuyEventName = 'BuyEvent'; export interface BuyEvent { timestamp: BN; salePhaseName: string; tierId: string; orderId: string; user: PublicKey; userPayer: PublicKey; priceFeed: PublicKey; paymentReceiver: PublicKey; fullDiscountReceiver: PublicKey; halfDiscountReceiver: PublicKey; totalPriceInLamport: BN; fullDiscountInLamport: BN; halfDiscountInLamport: BN; userDiscountInLamport: BN; totalPriceInUsd: BN; fullDiscountInUsd: BN; halfDiscountInUsd: BN; userDiscountInUsd: BN; quantity: BN; isWhitelist: boolean; pythPrice: BN; pythExpo: BN; allowFullDiscount: boolean; fullDiscount: number; allowHalfDiscount: boolean; halfDiscount: number; allowUserDiscount: boolean; userDiscount: number; }