Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

xrpl-definitions.js 1.4KB

12345678910111213141516171819202122232425262728
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.XrplDefinitions = void 0;
  4. const xrpl_definitions_base_1 = require("./xrpl-definitions-base");
  5. const types_1 = require("../types");
  6. /**
  7. * Stores the various types and fields for rippled to be used to encode/decode information later on.
  8. * Should be used instead of XrplDefinitionsBase since this defines default `types` for serializing/deserializing
  9. * ledger data.
  10. */
  11. class XrplDefinitions extends xrpl_definitions_base_1.XrplDefinitionsBase {
  12. /**
  13. * Present rippled types in a typed and updatable format.
  14. * For an example of the input format see `definitions.json`
  15. * To generate a new definitions file from rippled source code, use this tool: https://github.com/RichardAH/xrpl-codec-gen
  16. *
  17. * See the definitions.test.js file for examples of how to create your own updated definitions.json.
  18. *
  19. * @param enums - A json encoding of the core types, transaction types, transaction results, transaction names, and fields.
  20. * @param types - A list of type objects with the same name as the fields defined.
  21. * You can use the coreTypes object if you are not adding new types.
  22. */
  23. constructor(enums, types = types_1.coreTypes) {
  24. super(enums, types);
  25. }
  26. }
  27. exports.XrplDefinitions = XrplDefinitions;
  28. //# sourceMappingURL=xrpl-definitions.js.map