import CurrencyAmount from './util/CurrencyAmount'; /** * Stores a created node. * * @property LedgerEntryType - The type of ledger object that was created. * @property LedgerIndex - The ID of the node within the ledger. * @property NewFields - The fields / data of the new node. */ export interface CreatedNode { readonly LedgerEntryType: string; readonly LedgerIndex: string; readonly NewFields: { [key: string]: unknown; }; } /** * Stores a deleted node. * * @property LedgerEntryType - The type of ledger object that was deleted. * @property LedgerIndex - The ID of the node within the ledger. * @property FinalFields - The fields / data of the deleted node (before it was deleted). * @property PreviousFields - The fields / data of the deleted node (before it was deleted). Has the same purpose as FinalFields. */ export interface DeletedNode { readonly LedgerEntryType: string; readonly LedgerIndex: string; readonly FinalFields?: { [key: string]: unknown; }; readonly PreviousFields?: { [key: string]: unknown; }; } /** * Stores a modified node. * * @property LedgerEntryType - The type of ledger object that was deleted. * @property LedgerIndex - The ID of the node within the ledger. * @property FinalFields - The fields / data of the node after it was modified. * @property PreviousFields - The previous values of any fields modified. * @property PreviousTxnID - The identifying hash of the previous transaction to modify this ledger object. * @property PreviousTxnLgrSeq - The ledger index of the ledger containing the previous transaction to modify this node. */ export interface ModifiedNode { readonly LedgerEntryType: string; readonly LedgerIndex: string; readonly FinalFields?: { [key: string]: unknown; }; readonly PreviousFields?: { [key: string]: unknown; }; readonly PreviousTxnID?: string; readonly PreviousTxnLgrSeq?: number; } /** * Stores either a created node, a deleted node, or an affected node. * * @property CreatedNode - The created node. * @property DeletedNode - The deleted node. * @property ModifiedNode - The modified node. */ export interface AffectedNode { readonly CreatedNode?: CreatedNode; readonly DeletedNode?: DeletedNode; readonly ModifiedNode?: ModifiedNode; } /** * Stores metadata about the effects of a transaction. * Taken from https://xrpl.org/transaction-metadata.html. * * @property AffectedNodes - The nodes changed by this transaction. * @property DeliveredAmount - Amount sent in transaction. Use delivered_amount if possible. * @property TransactionIndex - The transaction's position within the ledger that included it. * @property TransactionResult - The transaction's position within the ledger that included it. * @property delivered_amount - The amount actually received by the Destination account. */ export default interface Metadata { readonly AffectedNodes: AffectedNode[]; readonly DeliveredAmount?: CurrencyAmount; readonly TransactionIndex: number; readonly TransactionResult: string; readonly delivered_amount?: CurrencyAmount; } //# sourceMappingURL=Metadata.d.ts.map