UNPKG

xrpl

Version:

A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser

38 lines (36 loc) 831 B
/** * XRP Ledger namespace prefixes. * * The XRP Ledger is a key-value store. In order to avoid name collisions, * names are partitioned into namespaces. * * Each namespace is just a single character prefix. * * See [LedgerNameSpace enum](https://github.com/XRPLF/rippled/blob/master/src/libxrpl/protocol/Indexes.cpp#L66). */ const ledgerSpaces = { account: 'a', dirNode: 'd', generatorMap: 'g', rippleState: 'r', // Entry for an offer. offer: 'o', // Directory of things owned by an account. ownerDir: 'O', // Directory of order books. bookDir: 'B', contract: 'c', skipList: 's', escrow: 'u', amendment: 'f', feeSettings: 'e', ticket: 'T', signerList: 'S', paychan: 'x', check: 'C', depositPreauth: 'p', vault: 'V', loanBroker: 'l', loan: 'L', } export default ledgerSpaces