Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

xrpl-definitions.d.ts 1.2KB

123456789101112131415161718192021
  1. import { type DefinitionsData, XrplDefinitionsBase } from './xrpl-definitions-base';
  2. import { SerializedType } from '../types/serialized-type';
  3. /**
  4. * Stores the various types and fields for rippled to be used to encode/decode information later on.
  5. * Should be used instead of XrplDefinitionsBase since this defines default `types` for serializing/deserializing
  6. * ledger data.
  7. */
  8. export declare class XrplDefinitions extends XrplDefinitionsBase {
  9. /**
  10. * Present rippled types in a typed and updatable format.
  11. * For an example of the input format see `definitions.json`
  12. * To generate a new definitions file from rippled source code, use this tool: https://github.com/RichardAH/xrpl-codec-gen
  13. *
  14. * See the definitions.test.js file for examples of how to create your own updated definitions.json.
  15. *
  16. * @param enums - A json encoding of the core types, transaction types, transaction results, transaction names, and fields.
  17. * @param types - A list of type objects with the same name as the fields defined.
  18. * You can use the coreTypes object if you are not adding new types.
  19. */
  20. constructor(enums: DefinitionsData, types?: Record<string, typeof SerializedType>);
  21. }