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.

index.d.ts 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. export type LedgerIndex = number | ('validated' | 'closed' | 'current');
  2. interface XRP {
  3. currency: 'XRP';
  4. }
  5. interface IssuedCurrency {
  6. currency: string;
  7. issuer: string;
  8. }
  9. export type Currency = IssuedCurrency | XRP;
  10. export interface IssuedCurrencyAmount extends IssuedCurrency {
  11. value: string;
  12. }
  13. export type Amount = IssuedCurrencyAmount | string;
  14. export interface Signer {
  15. Signer: {
  16. Account: string;
  17. TxnSignature: string;
  18. SigningPubKey: string;
  19. };
  20. }
  21. export interface Memo {
  22. Memo: {
  23. MemoData?: string;
  24. MemoType?: string;
  25. MemoFormat?: string;
  26. };
  27. }
  28. export type StreamType = 'consensus' | 'ledger' | 'manifests' | 'peer_status' | 'transactions' | 'transactions_proposed' | 'server' | 'validations';
  29. interface PathStep {
  30. account?: string;
  31. currency?: string;
  32. issuer?: string;
  33. }
  34. export type Path = PathStep[];
  35. export interface SignerEntry {
  36. SignerEntry: {
  37. Account: string;
  38. SignerWeight: number;
  39. WalletLocator?: string;
  40. };
  41. }
  42. export interface ResponseOnlyTxInfo {
  43. date?: number;
  44. hash?: string;
  45. ledger_index?: number;
  46. inLedger?: number;
  47. }
  48. export interface NFTOffer {
  49. amount: Amount;
  50. flags: number;
  51. nft_offer_index: string;
  52. owner: string;
  53. destination?: string;
  54. expiration?: number;
  55. }
  56. export {};
  57. //# sourceMappingURL=index.d.ts.map