UNPKG

@atomiqlabs/sdk

Version:

atomiq labs SDK for cross-chain swaps between smart chains and bitcoin

29 lines (28 loc) 782 B
/** * Pricing information for swap validation * @category Pricing */ export type PriceInfoType = { isValid: boolean; differencePPM: bigint; satsBaseFee: bigint; feePPM: bigint; realPriceUSatPerToken?: bigint; realPriceUsdPerBitcoin?: number; swapPriceUSatPerToken: bigint; }; /** * Type guard for PriceInfoType * @category Pricing */ export declare function isPriceInfoType(obj: any): obj is PriceInfoType; /** * Serializes PriceInfoType for storage * @category Pricing */ export declare function serializePriceInfoType(obj: PriceInfoType | undefined): any; /** * Deserializes PriceInfoType from storage * @category Pricing */ export declare function deserializePriceInfoType(obj: any): PriceInfoType | undefined;