UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

40 lines (39 loc) 1.38 kB
import { LedgerEntry, OfferCreateFlags } from "xrpl"; import { FormattedBaseSpecification } from "./specification"; import { FormattedIssuedCurrencyAmount } from "./amounts"; import { TxGlobalFlagsKeysInterface } from "./global"; export declare const OfferCreateFlagsKeys: { passive: OfferCreateFlags; immediateOrCancel: OfferCreateFlags; fillOrKill: OfferCreateFlags; sell: OfferCreateFlags; }; export declare function getOfferCreateFlagsKeys(nativeCurrency?: string): Record<string, number>; export interface OfferCreateFlagsKeysInterface extends TxGlobalFlagsKeysInterface { passive: boolean; immediateOrCancel: boolean; fillOrKill: boolean; sell: boolean; } export declare const OfferFlagsKeys: { passive: LedgerEntry.OfferFlags; sell: LedgerEntry.OfferFlags; }; export interface OfferFlagsKeysInterface { passive: boolean; sell: boolean; } export type FormattedOfferCancelSpecification = { orderSequence: number; } & FormattedBaseSpecification; export type FormattedOfferCreateSpecification = { flags: OfferCreateFlagsKeysInterface; quantity: FormattedIssuedCurrencyAmount; totalPrice: FormattedIssuedCurrencyAmount; expirationTime?: string; orderToReplace?: number; direction: string; immediateOrCancel?: boolean; fillOrKill?: boolean; passive?: boolean; } & FormattedBaseSpecification;