UNPKG

@bithomp/xrpl-api

Version:

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

63 lines (62 loc) 2.29 kB
import { NFTokenMintFlags, NFTokenCreateOfferFlags } from "xrpl"; import { FormattedBaseSpecification } from "./specification"; import { Amount } from "./amounts"; import { FormattedSourceAddress, FormattedDestinationAddress } from "./account"; import { TxGlobalFlagsKeysInterface } from "./global"; export declare const NFTokenFlagsKeys: { burnable: NFTokenMintFlags; onlyXRP: NFTokenMintFlags; trustLine: NFTokenMintFlags; transferable: NFTokenMintFlags; mutable: NFTokenMintFlags; }; export declare function getNFTokenMintFlagsKeys(nativeCurrency?: string): Record<string, number>; export interface NFTokenFlagsKeysInterface extends TxGlobalFlagsKeysInterface { burnable?: boolean; onlyXRP?: boolean; trustLine?: boolean; transferable?: boolean; mutable?: boolean; } export declare const NFTokenOfferFlagsKeys: { sellToken: NFTokenCreateOfferFlags; }; export declare function getNFTokenOfferCreateFlagsKeys(nativeCurrency?: string): Record<string, number>; export interface NFTokenOfferFlagsKeysInterface extends TxGlobalFlagsKeysInterface { sellToken?: boolean; } export type FormattedNFTokenBurnSpecification = { nftokenID: string; } & FormattedBaseSpecification; export type FormattedNFTokenMintSpecification = { nftokenTaxon: number; issuer?: string; transferFee?: number; uri?: string | null; flags?: NFTokenFlagsKeysInterface; amount?: Amount; destination?: FormattedDestinationAddress; expiration?: number; } & FormattedBaseSpecification; export type FormattedNFTokenModifySpecification = { nftokenID: string; owner?: string; uri?: string | null; } & FormattedBaseSpecification; export type FormattedNFTokenCancelOfferSpecification = { nftokenOffers: string[]; } & FormattedBaseSpecification; export type FormattedNFTokenCreateOfferSpecification = { nftokenID: string; amount: Amount; owner?: string; source?: FormattedSourceAddress; destination?: FormattedDestinationAddress; expiration?: number; flags?: NFTokenOfferFlagsKeysInterface; } & FormattedBaseSpecification; export type FormattedNFTokenAcceptOfferSpecification = { nftokenSellOffer?: string; nftokenBuyOffer?: string; nftokenBrokerFee?: Amount; } & FormattedBaseSpecification;