UNPKG

ripple-binary-codec

Version:
35 lines (31 loc) 876 B
import enums from './definitions.json' import { XrplDefinitionsBase, FieldInstance, Bytes, } from './xrpl-definitions-base' /** * By default, coreTypes from the `types` folder is where known type definitions are initialized to avoid import cycles. */ const DEFAULT_DEFINITIONS = new XrplDefinitionsBase(enums, {}) const Type = DEFAULT_DEFINITIONS.type const LedgerEntryType = DEFAULT_DEFINITIONS.ledgerEntryType const TransactionType = DEFAULT_DEFINITIONS.transactionType const TransactionResult = DEFAULT_DEFINITIONS.transactionResult const Field = DEFAULT_DEFINITIONS.field /* * @brief: All valid transaction types */ const TRANSACTION_TYPES = DEFAULT_DEFINITIONS.transactionNames export { Bytes, XrplDefinitionsBase, DEFAULT_DEFINITIONS, Field, FieldInstance, Type, LedgerEntryType, TransactionResult, TransactionType, TRANSACTION_TYPES, }