You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

metadata.d.ts 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { Amount } from '../common';
  2. export interface CreatedNode {
  3. CreatedNode: {
  4. LedgerEntryType: string;
  5. LedgerIndex: string;
  6. NewFields: {
  7. [field: string]: unknown;
  8. };
  9. };
  10. }
  11. export interface ModifiedNode {
  12. ModifiedNode: {
  13. LedgerEntryType: string;
  14. LedgerIndex: string;
  15. FinalFields?: {
  16. [field: string]: unknown;
  17. };
  18. PreviousFields?: {
  19. [field: string]: unknown;
  20. };
  21. PreviousTxnID?: string;
  22. PreviousTxnLgrSeq?: number;
  23. };
  24. }
  25. export interface DeletedNode {
  26. DeletedNode: {
  27. LedgerEntryType: string;
  28. LedgerIndex: string;
  29. FinalFields: {
  30. [field: string]: unknown;
  31. };
  32. };
  33. }
  34. export type Node = CreatedNode | ModifiedNode | DeletedNode;
  35. export declare function isCreatedNode(node: Node): node is CreatedNode;
  36. export declare function isModifiedNode(node: Node): node is ModifiedNode;
  37. export declare function isDeletedNode(node: Node): node is DeletedNode;
  38. export interface TransactionMetadata {
  39. AffectedNodes: Node[];
  40. DeliveredAmount?: Amount;
  41. delivered_amount?: Amount | 'unavailable';
  42. TransactionIndex: number;
  43. TransactionResult: string;
  44. }
  45. //# sourceMappingURL=metadata.d.ts.map