@bithomp/xrpl-api
Version:
A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger
42 lines (41 loc) • 1.61 kB
TypeScript
import { URITokenMintFlags } from "../models/transactions/URITokenMint";
import { FormattedBaseSpecification } from "./specification";
import { Amount } from "./amounts";
import { FormattedSourceAddress, FormattedDestinationAddress } from "./account";
import { TxGlobalFlagsKeysInterface } from "./global";
export declare const URITokenFlagsKeys: {
burnable: URITokenMintFlags;
};
export declare function getURITokenMintFlagsKeys(nativeCurrency?: string): Record<string, number>;
export interface URITokenFlagsKeysInterface extends TxGlobalFlagsKeysInterface {
burnable?: boolean;
}
export type FormattedURITokenBurnSpecification = {
uritokenID: string;
} & FormattedBaseSpecification;
export type FormattedURITokenBuySpecification = {
uritokenID: string;
amount: string;
} & FormattedBaseSpecification;
export type FormattedURITokenMintSpecification = {
uri?: string;
flags?: URITokenFlagsKeysInterface;
digest?: string;
amount: Amount;
source?: FormattedSourceAddress;
destination?: FormattedDestinationAddress;
} & FormattedBaseSpecification;
export type FormattedURITokenCancelSellOfferSpecification = {
uritokenID: string;
} & FormattedBaseSpecification;
export type FormattedURITokenCreateSellOfferSpecification = {
uritokenID: string;
amount: string;
source?: FormattedSourceAddress;
destination?: FormattedDestinationAddress;
} & FormattedBaseSpecification;
export type FormattedURITokenAcceptOfferSpecification = {
nftokenSellOffer?: string;
nftokenBuyOffer?: string;
nftokenBrokerFee?: string;
} & FormattedBaseSpecification;