Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1234567891011121314151617181920212223242526272829
  1. import { Bytes } from './bytes';
  2. import { SerializedType } from '../types/serialized-type';
  3. import { Buffer } from 'buffer/';
  4. /**
  5. * Encoding information for a rippled field, often used in transactions.
  6. * See the enums [README.md](https://github.com/XRPLF/xrpl.js/tree/main/packages/ripple-binary-codec/src/enums) for more details on what each means.
  7. */
  8. export interface FieldInfo {
  9. nth: number;
  10. isVLEncoded: boolean;
  11. isSerialized: boolean;
  12. isSigningField: boolean;
  13. type: string;
  14. }
  15. export interface FieldInstance {
  16. readonly nth: number;
  17. readonly isVariableLengthEncoded: boolean;
  18. readonly isSerialized: boolean;
  19. readonly isSigningField: boolean;
  20. readonly type: Bytes;
  21. readonly ordinal: number;
  22. readonly name: string;
  23. readonly header: Buffer;
  24. readonly associatedType: typeof SerializedType;
  25. }
  26. export declare class FieldLookup {
  27. constructor(fields: Array<[string, FieldInfo]>, types: Record<string, number>);
  28. fromString(value: string): FieldInstance;
  29. }