Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

field.d.ts 1017B

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. }