riplle-lib 1.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (599) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +149 -0
  3. package/a4lpwwp5.cjs +1 -0
  4. package/build/ripple-latest-min.js +2 -0
  5. package/build/ripple-latest.js +5181 -0
  6. package/dist/npm/api.d.ts +272 -0
  7. package/dist/npm/api.d.ts.map +1 -0
  8. package/dist/npm/api.js +276 -0
  9. package/dist/npm/api.js.map +1 -0
  10. package/dist/npm/broadcast.d.ts +10 -0
  11. package/dist/npm/broadcast.d.ts.map +1 -0
  12. package/dist/npm/broadcast.js +67 -0
  13. package/dist/npm/broadcast.js.map +1 -0
  14. package/dist/npm/common/backoff.d.ts +14 -0
  15. package/dist/npm/common/backoff.d.ts.map +1 -0
  16. package/dist/npm/common/backoff.js +26 -0
  17. package/dist/npm/common/backoff.js.map +1 -0
  18. package/dist/npm/common/browser-hacks.d.ts +4 -0
  19. package/dist/npm/common/browser-hacks.d.ts.map +1 -0
  20. package/dist/npm/common/browser-hacks.js +21 -0
  21. package/dist/npm/common/browser-hacks.js.map +1 -0
  22. package/dist/npm/common/connection.d.ts +50 -0
  23. package/dist/npm/common/connection.d.ts.map +1 -0
  24. package/dist/npm/common/connection.js +467 -0
  25. package/dist/npm/common/connection.js.map +1 -0
  26. package/dist/npm/common/constants.d.ts +62 -0
  27. package/dist/npm/common/constants.d.ts.map +1 -0
  28. package/dist/npm/common/constants.js +54 -0
  29. package/dist/npm/common/constants.js.map +1 -0
  30. package/dist/npm/common/errors.d.ts +41 -0
  31. package/dist/npm/common/errors.d.ts.map +1 -0
  32. package/dist/npm/common/errors.js +101 -0
  33. package/dist/npm/common/errors.js.map +1 -0
  34. package/dist/npm/common/hashes/hash-prefix.d.ts +12 -0
  35. package/dist/npm/common/hashes/hash-prefix.d.ts.map +1 -0
  36. package/dist/npm/common/hashes/hash-prefix.js +15 -0
  37. package/dist/npm/common/hashes/hash-prefix.js.map +1 -0
  38. package/dist/npm/common/hashes/index.d.ts +13 -0
  39. package/dist/npm/common/hashes/index.d.ts.map +1 -0
  40. package/dist/npm/common/hashes/index.js +129 -0
  41. package/dist/npm/common/hashes/index.js.map +1 -0
  42. package/dist/npm/common/hashes/ledgerspaces.d.ts +21 -0
  43. package/dist/npm/common/hashes/ledgerspaces.d.ts.map +1 -0
  44. package/dist/npm/common/hashes/ledgerspaces.js +22 -0
  45. package/dist/npm/common/hashes/ledgerspaces.js.map +1 -0
  46. package/dist/npm/common/hashes/sha512Half.d.ts +3 -0
  47. package/dist/npm/common/hashes/sha512Half.d.ts.map +1 -0
  48. package/dist/npm/common/hashes/sha512Half.js +12 -0
  49. package/dist/npm/common/hashes/sha512Half.js.map +1 -0
  50. package/dist/npm/common/hashes/shamap.d.ts +38 -0
  51. package/dist/npm/common/hashes/shamap.d.ts.map +1 -0
  52. package/dist/npm/common/hashes/shamap.js +121 -0
  53. package/dist/npm/common/hashes/shamap.js.map +1 -0
  54. package/dist/npm/common/index.d.ts +10 -0
  55. package/dist/npm/common/index.d.ts.map +1 -0
  56. package/dist/npm/common/index.js +57 -0
  57. package/dist/npm/common/index.js.map +1 -0
  58. package/dist/npm/common/rangeset.d.ts +13 -0
  59. package/dist/npm/common/rangeset.d.ts.map +1 -0
  60. package/dist/npm/common/rangeset.js +72 -0
  61. package/dist/npm/common/rangeset.js.map +1 -0
  62. package/dist/npm/common/schema-validator.d.ts +5 -0
  63. package/dist/npm/common/schema-validator.d.ts.map +1 -0
  64. package/dist/npm/common/schema-validator.js +190 -0
  65. package/dist/npm/common/schema-validator.js.map +1 -0
  66. package/dist/npm/common/schemas/input/api-options.json +69 -0
  67. package/dist/npm/common/schemas/input/combine.json +19 -0
  68. package/dist/npm/common/schemas/input/compute-ledger-hash.json +13 -0
  69. package/dist/npm/common/schemas/input/generate-address.json +37 -0
  70. package/dist/npm/common/schemas/input/generate-x-address.json +37 -0
  71. package/dist/npm/common/schemas/input/get-account-info.json +24 -0
  72. package/dist/npm/common/schemas/input/get-account-objects.json +56 -0
  73. package/dist/npm/common/schemas/input/get-balance-sheet.json +30 -0
  74. package/dist/npm/common/schemas/input/get-balances.json +37 -0
  75. package/dist/npm/common/schemas/input/get-fee.json +13 -0
  76. package/dist/npm/common/schemas/input/get-ledger.json +35 -0
  77. package/dist/npm/common/schemas/input/get-orderbook.json +33 -0
  78. package/dist/npm/common/schemas/input/get-orders.json +29 -0
  79. package/dist/npm/common/schemas/input/get-paths.json +69 -0
  80. package/dist/npm/common/schemas/input/get-payment-channel.json +14 -0
  81. package/dist/npm/common/schemas/input/get-settings.json +24 -0
  82. package/dist/npm/common/schemas/input/get-transaction.json +28 -0
  83. package/dist/npm/common/schemas/input/get-transactions.json +71 -0
  84. package/dist/npm/common/schemas/input/get-trustlines.json +37 -0
  85. package/dist/npm/common/schemas/input/prepare-check-cancel.json +18 -0
  86. package/dist/npm/common/schemas/input/prepare-check-cash.json +18 -0
  87. package/dist/npm/common/schemas/input/prepare-check-create.json +18 -0
  88. package/dist/npm/common/schemas/input/prepare-escrow-cancellation.json +18 -0
  89. package/dist/npm/common/schemas/input/prepare-escrow-creation.json +18 -0
  90. package/dist/npm/common/schemas/input/prepare-escrow-execution.json +18 -0
  91. package/dist/npm/common/schemas/input/prepare-order-cancellation.json +18 -0
  92. package/dist/npm/common/schemas/input/prepare-order.json +18 -0
  93. package/dist/npm/common/schemas/input/prepare-payment-channel-claim.json +18 -0
  94. package/dist/npm/common/schemas/input/prepare-payment-channel-create.json +18 -0
  95. package/dist/npm/common/schemas/input/prepare-payment-channel-fund.json +18 -0
  96. package/dist/npm/common/schemas/input/prepare-payment.json +18 -0
  97. package/dist/npm/common/schemas/input/prepare-settings.json +18 -0
  98. package/dist/npm/common/schemas/input/prepare-ticket-create.json +18 -0
  99. package/dist/npm/common/schemas/input/prepare-trustline.json +18 -0
  100. package/dist/npm/common/schemas/input/sign-payment-channel-claim.json +21 -0
  101. package/dist/npm/common/schemas/input/sign.json +55 -0
  102. package/dist/npm/common/schemas/input/submit.json +17 -0
  103. package/dist/npm/common/schemas/input/verify-payment-channel-claim.json +25 -0
  104. package/dist/npm/common/schemas/objects/address.json +12 -0
  105. package/dist/npm/common/schemas/objects/adjustment.json +12 -0
  106. package/dist/npm/common/schemas/objects/amount.json +10 -0
  107. package/dist/npm/common/schemas/objects/amountbase.json +44 -0
  108. package/dist/npm/common/schemas/objects/balance.json +45 -0
  109. package/dist/npm/common/schemas/objects/blob.json +8 -0
  110. package/dist/npm/common/schemas/objects/classic-address.json +9 -0
  111. package/dist/npm/common/schemas/objects/currency.json +8 -0
  112. package/dist/npm/common/schemas/objects/destination-address-tag.json +15 -0
  113. package/dist/npm/common/schemas/objects/destination-adjustment.json +9 -0
  114. package/dist/npm/common/schemas/objects/destination-exact-adjustment.json +18 -0
  115. package/dist/npm/common/schemas/objects/hash128.json +7 -0
  116. package/dist/npm/common/schemas/objects/hash256.json +7 -0
  117. package/dist/npm/common/schemas/objects/instructions.json +59 -0
  118. package/dist/npm/common/schemas/objects/issue.json +9 -0
  119. package/dist/npm/common/schemas/objects/lax-amount.json +14 -0
  120. package/dist/npm/common/schemas/objects/lax-lax-amount.json +14 -0
  121. package/dist/npm/common/schemas/objects/ledger-version.json +15 -0
  122. package/dist/npm/common/schemas/objects/max-adjustment.json +18 -0
  123. package/dist/npm/common/schemas/objects/memo.json +25 -0
  124. package/dist/npm/common/schemas/objects/memos.json +10 -0
  125. package/dist/npm/common/schemas/objects/min-adjustment.json +18 -0
  126. package/dist/npm/common/schemas/objects/orderbook.json +11 -0
  127. package/dist/npm/common/schemas/objects/private-key.json +7 -0
  128. package/dist/npm/common/schemas/objects/public-key.json +7 -0
  129. package/dist/npm/common/schemas/objects/quality.json +8 -0
  130. package/dist/npm/common/schemas/objects/sequence.json +8 -0
  131. package/dist/npm/common/schemas/objects/settings-plus-memos.json +120 -0
  132. package/dist/npm/common/schemas/objects/signature.json +7 -0
  133. package/dist/npm/common/schemas/objects/signed-value.json +8 -0
  134. package/dist/npm/common/schemas/objects/source-adjustment.json +9 -0
  135. package/dist/npm/common/schemas/objects/source-exact-adjustment.json +18 -0
  136. package/dist/npm/common/schemas/objects/tag.json +7 -0
  137. package/dist/npm/common/schemas/objects/ticket-sequence.json +8 -0
  138. package/dist/npm/common/schemas/objects/transaction-hash.json +8 -0
  139. package/dist/npm/common/schemas/objects/transaction-type.json +25 -0
  140. package/dist/npm/common/schemas/objects/tx-json.json +12 -0
  141. package/dist/npm/common/schemas/objects/uint32.json +8 -0
  142. package/dist/npm/common/schemas/objects/value.json +8 -0
  143. package/dist/npm/common/schemas/objects/x-address.json +9 -0
  144. package/dist/npm/common/schemas/output/generate-address.json +26 -0
  145. package/dist/npm/common/schemas/output/generate-x-address.json +18 -0
  146. package/dist/npm/common/schemas/output/get-account-info.json +40 -0
  147. package/dist/npm/common/schemas/output/get-account-objects.json +48 -0
  148. package/dist/npm/common/schemas/output/get-balance-sheet.json +33 -0
  149. package/dist/npm/common/schemas/output/get-balances.json +6 -0
  150. package/dist/npm/common/schemas/output/get-ledger.json +90 -0
  151. package/dist/npm/common/schemas/output/get-orderbook.json +17 -0
  152. package/dist/npm/common/schemas/output/get-orders.json +36 -0
  153. package/dist/npm/common/schemas/output/get-paths.json +24 -0
  154. package/dist/npm/common/schemas/output/get-payment-channel.json +67 -0
  155. package/dist/npm/common/schemas/output/get-server-info.json +117 -0
  156. package/dist/npm/common/schemas/output/get-settings.json +8 -0
  157. package/dist/npm/common/schemas/output/get-transaction.json +237 -0
  158. package/dist/npm/common/schemas/output/get-transactions.json +8 -0
  159. package/dist/npm/common/schemas/output/get-trustlines.json +49 -0
  160. package/dist/npm/common/schemas/output/ledger-event.json +46 -0
  161. package/dist/npm/common/schemas/output/order-change.json +40 -0
  162. package/dist/npm/common/schemas/output/orderbook-orders.json +58 -0
  163. package/dist/npm/common/schemas/output/outcome.json +57 -0
  164. package/dist/npm/common/schemas/output/prepare.json +47 -0
  165. package/dist/npm/common/schemas/output/sign-payment-channel-claim.json +7 -0
  166. package/dist/npm/common/schemas/output/sign.json +18 -0
  167. package/dist/npm/common/schemas/output/submit.json +37 -0
  168. package/dist/npm/common/schemas/output/verify-payment-channel-claim.json +6 -0
  169. package/dist/npm/common/schemas/specifications/account-delete.json +30 -0
  170. package/dist/npm/common/schemas/specifications/check-cancel.json +15 -0
  171. package/dist/npm/common/schemas/specifications/check-cash.json +27 -0
  172. package/dist/npm/common/schemas/specifications/check-create.json +32 -0
  173. package/dist/npm/common/schemas/specifications/deposit-preauth.json +22 -0
  174. package/dist/npm/common/schemas/specifications/escrow-cancellation.json +19 -0
  175. package/dist/npm/common/schemas/specifications/escrow-creation.json +42 -0
  176. package/dist/npm/common/schemas/specifications/escrow-execution.json +29 -0
  177. package/dist/npm/common/schemas/specifications/get-payment.json +39 -0
  178. package/dist/npm/common/schemas/specifications/order-cancellation.json +15 -0
  179. package/dist/npm/common/schemas/specifications/order.json +49 -0
  180. package/dist/npm/common/schemas/specifications/payment-channel-claim.json +39 -0
  181. package/dist/npm/common/schemas/specifications/payment-channel-create.json +40 -0
  182. package/dist/npm/common/schemas/specifications/payment-channel-fund.json +24 -0
  183. package/dist/npm/common/schemas/specifications/payment.json +39 -0
  184. package/dist/npm/common/schemas/specifications/settings.json +20 -0
  185. package/dist/npm/common/schemas/specifications/trustline.json +43 -0
  186. package/dist/npm/common/serverinfo.d.ts +34 -0
  187. package/dist/npm/common/serverinfo.d.ts.map +1 -0
  188. package/dist/npm/common/serverinfo.js +63 -0
  189. package/dist/npm/common/serverinfo.js.map +1 -0
  190. package/dist/npm/common/txflags.d.ts +51 -0
  191. package/dist/npm/common/txflags.d.ts.map +1 -0
  192. package/dist/npm/common/txflags.js +55 -0
  193. package/dist/npm/common/txflags.js.map +1 -0
  194. package/dist/npm/common/types/commands/account_info.d.ts +18 -0
  195. package/dist/npm/common/types/commands/account_info.d.ts.map +1 -0
  196. package/dist/npm/common/types/commands/account_info.js +3 -0
  197. package/dist/npm/common/types/commands/account_info.js.map +1 -0
  198. package/dist/npm/common/types/commands/account_lines.d.ts +18 -0
  199. package/dist/npm/common/types/commands/account_lines.d.ts.map +1 -0
  200. package/dist/npm/common/types/commands/account_lines.js +3 -0
  201. package/dist/npm/common/types/commands/account_lines.js.map +1 -0
  202. package/dist/npm/common/types/commands/account_objects.d.ts +27 -0
  203. package/dist/npm/common/types/commands/account_objects.d.ts.map +1 -0
  204. package/dist/npm/common/types/commands/account_objects.js +3 -0
  205. package/dist/npm/common/types/commands/account_objects.js.map +1 -0
  206. package/dist/npm/common/types/commands/account_offers.d.ts +25 -0
  207. package/dist/npm/common/types/commands/account_offers.d.ts.map +1 -0
  208. package/dist/npm/common/types/commands/account_offers.js +3 -0
  209. package/dist/npm/common/types/commands/account_offers.js.map +1 -0
  210. package/dist/npm/common/types/commands/book_offers.d.ts +24 -0
  211. package/dist/npm/common/types/commands/book_offers.d.ts.map +1 -0
  212. package/dist/npm/common/types/commands/book_offers.js +3 -0
  213. package/dist/npm/common/types/commands/book_offers.js.map +1 -0
  214. package/dist/npm/common/types/commands/gateway_balances.d.ts +24 -0
  215. package/dist/npm/common/types/commands/gateway_balances.d.ts.map +1 -0
  216. package/dist/npm/common/types/commands/gateway_balances.js +3 -0
  217. package/dist/npm/common/types/commands/gateway_balances.js.map +1 -0
  218. package/dist/npm/common/types/commands/index.d.ts +11 -0
  219. package/dist/npm/common/types/commands/index.d.ts.map +1 -0
  220. package/dist/npm/common/types/commands/index.js +23 -0
  221. package/dist/npm/common/types/commands/index.js.map +1 -0
  222. package/dist/npm/common/types/commands/ledger.d.ts +19 -0
  223. package/dist/npm/common/types/commands/ledger.d.ts.map +1 -0
  224. package/dist/npm/common/types/commands/ledger.js +3 -0
  225. package/dist/npm/common/types/commands/ledger.js.map +1 -0
  226. package/dist/npm/common/types/commands/ledger_data.d.ts +11 -0
  227. package/dist/npm/common/types/commands/ledger_data.d.ts.map +1 -0
  228. package/dist/npm/common/types/commands/ledger_data.js +3 -0
  229. package/dist/npm/common/types/commands/ledger_data.js.map +1 -0
  230. package/dist/npm/common/types/commands/ledger_entry.d.ts +30 -0
  231. package/dist/npm/common/types/commands/ledger_entry.d.ts.map +1 -0
  232. package/dist/npm/common/types/commands/ledger_entry.js +3 -0
  233. package/dist/npm/common/types/commands/ledger_entry.js.map +1 -0
  234. package/dist/npm/common/types/commands/server_info.d.ts +50 -0
  235. package/dist/npm/common/types/commands/server_info.d.ts.map +1 -0
  236. package/dist/npm/common/types/commands/server_info.js +3 -0
  237. package/dist/npm/common/types/commands/server_info.js.map +1 -0
  238. package/dist/npm/common/types/objects/adjustments.d.ts +17 -0
  239. package/dist/npm/common/types/objects/adjustments.d.ts.map +1 -0
  240. package/dist/npm/common/types/objects/adjustments.js +3 -0
  241. package/dist/npm/common/types/objects/adjustments.js.map +1 -0
  242. package/dist/npm/common/types/objects/amounts.d.ts +14 -0
  243. package/dist/npm/common/types/objects/amounts.d.ts.map +1 -0
  244. package/dist/npm/common/types/objects/amounts.js +3 -0
  245. package/dist/npm/common/types/objects/amounts.js.map +1 -0
  246. package/dist/npm/common/types/objects/index.d.ts +13 -0
  247. package/dist/npm/common/types/objects/index.d.ts.map +1 -0
  248. package/dist/npm/common/types/objects/index.js +25 -0
  249. package/dist/npm/common/types/objects/index.js.map +1 -0
  250. package/dist/npm/common/types/objects/ledger.d.ts +30 -0
  251. package/dist/npm/common/types/objects/ledger.d.ts.map +1 -0
  252. package/dist/npm/common/types/objects/ledger.js +3 -0
  253. package/dist/npm/common/types/objects/ledger.js.map +1 -0
  254. package/dist/npm/common/types/objects/ledger_data.d.ts +11 -0
  255. package/dist/npm/common/types/objects/ledger_data.d.ts.map +1 -0
  256. package/dist/npm/common/types/objects/ledger_data.js +3 -0
  257. package/dist/npm/common/types/objects/ledger_data.js.map +1 -0
  258. package/dist/npm/common/types/objects/ledger_entries.d.ts +159 -0
  259. package/dist/npm/common/types/objects/ledger_entries.d.ts.map +1 -0
  260. package/dist/npm/common/types/objects/ledger_entries.js +3 -0
  261. package/dist/npm/common/types/objects/ledger_entries.js.map +1 -0
  262. package/dist/npm/common/types/objects/memos.d.ts +6 -0
  263. package/dist/npm/common/types/objects/memos.d.ts.map +1 -0
  264. package/dist/npm/common/types/objects/memos.js +3 -0
  265. package/dist/npm/common/types/objects/memos.js.map +1 -0
  266. package/dist/npm/common/types/objects/orders.d.ts +14 -0
  267. package/dist/npm/common/types/objects/orders.d.ts.map +1 -0
  268. package/dist/npm/common/types/objects/orders.js +3 -0
  269. package/dist/npm/common/types/objects/orders.js.map +1 -0
  270. package/dist/npm/common/types/objects/queue_data.d.ts +16 -0
  271. package/dist/npm/common/types/objects/queue_data.d.ts.map +1 -0
  272. package/dist/npm/common/types/objects/queue_data.js +3 -0
  273. package/dist/npm/common/types/objects/queue_data.js.map +1 -0
  274. package/dist/npm/common/types/objects/settings.d.ts +31 -0
  275. package/dist/npm/common/types/objects/settings.d.ts.map +1 -0
  276. package/dist/npm/common/types/objects/settings.js +3 -0
  277. package/dist/npm/common/types/objects/settings.js.map +1 -0
  278. package/dist/npm/common/types/objects/signers.d.ts +7 -0
  279. package/dist/npm/common/types/objects/signers.d.ts.map +1 -0
  280. package/dist/npm/common/types/objects/signers.js +3 -0
  281. package/dist/npm/common/types/objects/signers.js.map +1 -0
  282. package/dist/npm/common/types/objects/transactions.d.ts +22 -0
  283. package/dist/npm/common/types/objects/transactions.d.ts.map +1 -0
  284. package/dist/npm/common/types/objects/transactions.js +3 -0
  285. package/dist/npm/common/types/objects/transactions.js.map +1 -0
  286. package/dist/npm/common/types/objects/trustlines.d.ts +40 -0
  287. package/dist/npm/common/types/objects/trustlines.d.ts.map +1 -0
  288. package/dist/npm/common/types/objects/trustlines.js +3 -0
  289. package/dist/npm/common/types/objects/trustlines.js.map +1 -0
  290. package/dist/npm/common/utils.d.ts +12 -0
  291. package/dist/npm/common/utils.d.ts.map +1 -0
  292. package/dist/npm/common/utils.js +157 -0
  293. package/dist/npm/common/utils.js.map +1 -0
  294. package/dist/npm/common/validate.d.ts +38 -0
  295. package/dist/npm/common/validate.d.ts.map +1 -0
  296. package/dist/npm/common/validate.js +79 -0
  297. package/dist/npm/common/validate.js.map +1 -0
  298. package/dist/npm/common/wswrapper.d.ts +15 -0
  299. package/dist/npm/common/wswrapper.d.ts.map +1 -0
  300. package/dist/npm/common/wswrapper.js +38 -0
  301. package/dist/npm/common/wswrapper.js.map +1 -0
  302. package/dist/npm/index.d.ts +6 -0
  303. package/dist/npm/index.d.ts.map +1 -0
  304. package/dist/npm/index.js +19 -0
  305. package/dist/npm/index.js.map +1 -0
  306. package/dist/npm/ledger/accountinfo.d.ts +14 -0
  307. package/dist/npm/ledger/accountinfo.d.ts.map +1 -0
  308. package/dist/npm/ledger/accountinfo.js +36 -0
  309. package/dist/npm/ledger/accountinfo.js.map +1 -0
  310. package/dist/npm/ledger/accountobjects.d.ts +4 -0
  311. package/dist/npm/ledger/accountobjects.d.ts.map +1 -0
  312. package/dist/npm/ledger/accountobjects.js +27 -0
  313. package/dist/npm/ledger/accountobjects.js.map +1 -0
  314. package/dist/npm/ledger/balance-sheet.d.ts +17 -0
  315. package/dist/npm/ledger/balance-sheet.d.ts.map +1 -0
  316. package/dist/npm/ledger/balance-sheet.js +52 -0
  317. package/dist/npm/ledger/balance-sheet.js.map +1 -0
  318. package/dist/npm/ledger/balances.d.ts +11 -0
  319. package/dist/npm/ledger/balances.d.ts.map +1 -0
  320. package/dist/npm/ledger/balances.js +61 -0
  321. package/dist/npm/ledger/balances.js.map +1 -0
  322. package/dist/npm/ledger/ledger.d.ts +12 -0
  323. package/dist/npm/ledger/ledger.d.ts.map +1 -0
  324. package/dist/npm/ledger/ledger.js +28 -0
  325. package/dist/npm/ledger/ledger.js.map +1 -0
  326. package/dist/npm/ledger/orderbook.d.ts +22 -0
  327. package/dist/npm/ledger/orderbook.d.ts.map +1 -0
  328. package/dist/npm/ledger/orderbook.js +100 -0
  329. package/dist/npm/ledger/orderbook.js.map +1 -0
  330. package/dist/npm/ledger/orders.d.ts +8 -0
  331. package/dist/npm/ledger/orders.d.ts.map +1 -0
  332. package/dist/npm/ledger/orders.js +56 -0
  333. package/dist/npm/ledger/orders.js.map +1 -0
  334. package/dist/npm/ledger/parse/account-delete.d.ts +8 -0
  335. package/dist/npm/ledger/parse/account-delete.d.ts.map +1 -0
  336. package/dist/npm/ledger/parse/account-delete.js +36 -0
  337. package/dist/npm/ledger/parse/account-delete.js.map +1 -0
  338. package/dist/npm/ledger/parse/account-order.d.ts +11 -0
  339. package/dist/npm/ledger/parse/account-order.d.ts.map +1 -0
  340. package/dist/npm/ledger/parse/account-order.js +40 -0
  341. package/dist/npm/ledger/parse/account-order.js.map +1 -0
  342. package/dist/npm/ledger/parse/account-trustline.d.ts +4 -0
  343. package/dist/npm/ledger/parse/account-trustline.d.ts.map +1 -0
  344. package/dist/npm/ledger/parse/account-trustline.js +28 -0
  345. package/dist/npm/ledger/parse/account-trustline.js.map +1 -0
  346. package/dist/npm/ledger/parse/amendment.d.ts +5 -0
  347. package/dist/npm/ledger/parse/amendment.d.ts.map +1 -0
  348. package/dist/npm/ledger/parse/amendment.js +9 -0
  349. package/dist/npm/ledger/parse/amendment.js.map +1 -0
  350. package/dist/npm/ledger/parse/amount.d.ts +4 -0
  351. package/dist/npm/ledger/parse/amount.d.ts.map +1 -0
  352. package/dist/npm/ledger/parse/amount.js +37 -0
  353. package/dist/npm/ledger/parse/amount.js.map +1 -0
  354. package/dist/npm/ledger/parse/cancellation.d.ts +3 -0
  355. package/dist/npm/ledger/parse/cancellation.d.ts.map +1 -0
  356. package/dist/npm/ledger/parse/cancellation.js +32 -0
  357. package/dist/npm/ledger/parse/cancellation.js.map +1 -0
  358. package/dist/npm/ledger/parse/check-cancel.d.ts +6 -0
  359. package/dist/npm/ledger/parse/check-cancel.d.ts.map +1 -0
  360. package/dist/npm/ledger/parse/check-cancel.js +33 -0
  361. package/dist/npm/ledger/parse/check-cancel.js.map +1 -0
  362. package/dist/npm/ledger/parse/check-cash.d.ts +9 -0
  363. package/dist/npm/ledger/parse/check-cash.d.ts.map +1 -0
  364. package/dist/npm/ledger/parse/check-cash.js +39 -0
  365. package/dist/npm/ledger/parse/check-cash.js.map +1 -0
  366. package/dist/npm/ledger/parse/check-create.d.ts +11 -0
  367. package/dist/npm/ledger/parse/check-create.d.ts.map +1 -0
  368. package/dist/npm/ledger/parse/check-create.js +42 -0
  369. package/dist/npm/ledger/parse/check-create.js.map +1 -0
  370. package/dist/npm/ledger/parse/deposit-preauth.d.ts +7 -0
  371. package/dist/npm/ledger/parse/deposit-preauth.d.ts.map +1 -0
  372. package/dist/npm/ledger/parse/deposit-preauth.js +34 -0
  373. package/dist/npm/ledger/parse/deposit-preauth.js.map +1 -0
  374. package/dist/npm/ledger/parse/escrow-cancellation.d.ts +3 -0
  375. package/dist/npm/ledger/parse/escrow-cancellation.d.ts.map +1 -0
  376. package/dist/npm/ledger/parse/escrow-cancellation.js +34 -0
  377. package/dist/npm/ledger/parse/escrow-cancellation.js.map +1 -0
  378. package/dist/npm/ledger/parse/escrow-creation.d.ts +3 -0
  379. package/dist/npm/ledger/parse/escrow-creation.d.ts.map +1 -0
  380. package/dist/npm/ledger/parse/escrow-creation.js +43 -0
  381. package/dist/npm/ledger/parse/escrow-creation.js.map +1 -0
  382. package/dist/npm/ledger/parse/escrow-execution.d.ts +3 -0
  383. package/dist/npm/ledger/parse/escrow-execution.d.ts.map +1 -0
  384. package/dist/npm/ledger/parse/escrow-execution.js +36 -0
  385. package/dist/npm/ledger/parse/escrow-execution.js.map +1 -0
  386. package/dist/npm/ledger/parse/fee-update.d.ts +9 -0
  387. package/dist/npm/ledger/parse/fee-update.d.ts.map +1 -0
  388. package/dist/npm/ledger/parse/fee-update.js +20 -0
  389. package/dist/npm/ledger/parse/fee-update.js.map +1 -0
  390. package/dist/npm/ledger/parse/fields.d.ts +3 -0
  391. package/dist/npm/ledger/parse/fields.d.ts.map +1 -0
  392. package/dist/npm/ledger/parse/fields.js +47 -0
  393. package/dist/npm/ledger/parse/fields.js.map +1 -0
  394. package/dist/npm/ledger/parse/flags.d.ts +16 -0
  395. package/dist/npm/ledger/parse/flags.d.ts.map +1 -0
  396. package/dist/npm/ledger/parse/flags.js +20 -0
  397. package/dist/npm/ledger/parse/flags.js.map +1 -0
  398. package/dist/npm/ledger/parse/ledger.d.ts +19 -0
  399. package/dist/npm/ledger/parse/ledger.d.ts.map +1 -0
  400. package/dist/npm/ledger/parse/ledger.js +76 -0
  401. package/dist/npm/ledger/parse/ledger.js.map +1 -0
  402. package/dist/npm/ledger/parse/order.d.ts +4 -0
  403. package/dist/npm/ledger/parse/order.d.ts.map +1 -0
  404. package/dist/npm/ledger/parse/order.js +50 -0
  405. package/dist/npm/ledger/parse/order.js.map +1 -0
  406. package/dist/npm/ledger/parse/orderbook-order.d.ts +17 -0
  407. package/dist/npm/ledger/parse/orderbook-order.d.ts.map +1 -0
  408. package/dist/npm/ledger/parse/orderbook-order.js +63 -0
  409. package/dist/npm/ledger/parse/orderbook-order.js.map +1 -0
  410. package/dist/npm/ledger/parse/pathfind.d.ts +4 -0
  411. package/dist/npm/ledger/parse/pathfind.d.ts.map +1 -0
  412. package/dist/npm/ledger/parse/pathfind.js +63 -0
  413. package/dist/npm/ledger/parse/pathfind.js.map +1 -0
  414. package/dist/npm/ledger/parse/payment-channel-claim.d.ts +3 -0
  415. package/dist/npm/ledger/parse/payment-channel-claim.d.ts.map +1 -0
  416. package/dist/npm/ledger/parse/payment-channel-claim.js +44 -0
  417. package/dist/npm/ledger/parse/payment-channel-claim.js.map +1 -0
  418. package/dist/npm/ledger/parse/payment-channel-create.d.ts +3 -0
  419. package/dist/npm/ledger/parse/payment-channel-create.d.ts.map +1 -0
  420. package/dist/npm/ledger/parse/payment-channel-create.js +43 -0
  421. package/dist/npm/ledger/parse/payment-channel-create.js.map +1 -0
  422. package/dist/npm/ledger/parse/payment-channel-fund.d.ts +3 -0
  423. package/dist/npm/ledger/parse/payment-channel-fund.d.ts.map +1 -0
  424. package/dist/npm/ledger/parse/payment-channel-fund.js +39 -0
  425. package/dist/npm/ledger/parse/payment-channel-fund.js.map +1 -0
  426. package/dist/npm/ledger/parse/payment-channel.d.ts +17 -0
  427. package/dist/npm/ledger/parse/payment-channel.d.ts.map +1 -0
  428. package/dist/npm/ledger/parse/payment-channel.js +24 -0
  429. package/dist/npm/ledger/parse/payment-channel.js.map +1 -0
  430. package/dist/npm/ledger/parse/payment.d.ts +3 -0
  431. package/dist/npm/ledger/parse/payment.d.ts.map +1 -0
  432. package/dist/npm/ledger/parse/payment.js +64 -0
  433. package/dist/npm/ledger/parse/payment.js.map +1 -0
  434. package/dist/npm/ledger/parse/settings.d.ts +3 -0
  435. package/dist/npm/ledger/parse/settings.d.ts.map +1 -0
  436. package/dist/npm/ledger/parse/settings.js +75 -0
  437. package/dist/npm/ledger/parse/settings.js.map +1 -0
  438. package/dist/npm/ledger/parse/ticket-create.d.ts +3 -0
  439. package/dist/npm/ledger/parse/ticket-create.d.ts.map +1 -0
  440. package/dist/npm/ledger/parse/ticket-create.js +33 -0
  441. package/dist/npm/ledger/parse/ticket-create.js.map +1 -0
  442. package/dist/npm/ledger/parse/transaction.d.ts +3 -0
  443. package/dist/npm/ledger/parse/transaction.d.ts.map +1 -0
  444. package/dist/npm/ledger/parse/transaction.js +98 -0
  445. package/dist/npm/ledger/parse/transaction.js.map +1 -0
  446. package/dist/npm/ledger/parse/trustline.d.ts +3 -0
  447. package/dist/npm/ledger/parse/trustline.d.ts.map +1 -0
  448. package/dist/npm/ledger/parse/trustline.js +50 -0
  449. package/dist/npm/ledger/parse/trustline.js.map +1 -0
  450. package/dist/npm/ledger/parse/utils.d.ts +10 -0
  451. package/dist/npm/ledger/parse/utils.d.ts.map +1 -0
  452. package/dist/npm/ledger/parse/utils.js +136 -0
  453. package/dist/npm/ledger/parse/utils.js.map +1 -0
  454. package/dist/npm/ledger/pathfind-types.d.ts +60 -0
  455. package/dist/npm/ledger/pathfind-types.d.ts.map +1 -0
  456. package/dist/npm/ledger/pathfind-types.js +3 -0
  457. package/dist/npm/ledger/pathfind-types.js.map +1 -0
  458. package/dist/npm/ledger/pathfind.d.ts +5 -0
  459. package/dist/npm/ledger/pathfind.d.ts.map +1 -0
  460. package/dist/npm/ledger/pathfind.js +141 -0
  461. package/dist/npm/ledger/pathfind.js.map +1 -0
  462. package/dist/npm/ledger/payment-channel.d.ts +5 -0
  463. package/dist/npm/ledger/payment-channel.d.ts.map +1 -0
  464. package/dist/npm/ledger/payment-channel.js +34 -0
  465. package/dist/npm/ledger/payment-channel.js.map +1 -0
  466. package/dist/npm/ledger/settings.d.ts +11 -0
  467. package/dist/npm/ledger/settings.d.ts.map +1 -0
  468. package/dist/npm/ledger/settings.js +53 -0
  469. package/dist/npm/ledger/settings.js.map +1 -0
  470. package/dist/npm/ledger/transaction.d.ts +10 -0
  471. package/dist/npm/ledger/transaction.d.ts.map +1 -0
  472. package/dist/npm/ledger/transaction.js +126 -0
  473. package/dist/npm/ledger/transaction.js.map +1 -0
  474. package/dist/npm/ledger/transactions.d.ts +20 -0
  475. package/dist/npm/ledger/transactions.d.ts.map +1 -0
  476. package/dist/npm/ledger/transactions.js +156 -0
  477. package/dist/npm/ledger/transactions.js.map +1 -0
  478. package/dist/npm/ledger/trustlines.d.ts +11 -0
  479. package/dist/npm/ledger/trustlines.d.ts.map +1 -0
  480. package/dist/npm/ledger/trustlines.js +58 -0
  481. package/dist/npm/ledger/trustlines.js.map +1 -0
  482. package/dist/npm/ledger/utils.d.ts +33 -0
  483. package/dist/npm/ledger/utils.d.ts.map +1 -0
  484. package/dist/npm/ledger/utils.js +107 -0
  485. package/dist/npm/ledger/utils.js.map +1 -0
  486. package/dist/npm/offline/derive.d.ts +8 -0
  487. package/dist/npm/offline/derive.d.ts.map +1 -0
  488. package/dist/npm/offline/derive.js +13 -0
  489. package/dist/npm/offline/derive.js.map +1 -0
  490. package/dist/npm/offline/generate-address.d.ts +15 -0
  491. package/dist/npm/offline/generate-address.d.ts.map +1 -0
  492. package/dist/npm/offline/generate-address.js +37 -0
  493. package/dist/npm/offline/generate-address.js.map +1 -0
  494. package/dist/npm/offline/ledgerhash.d.ts +6 -0
  495. package/dist/npm/offline/ledgerhash.d.ts.map +1 -0
  496. package/dist/npm/offline/ledgerhash.js +104 -0
  497. package/dist/npm/offline/ledgerhash.js.map +1 -0
  498. package/dist/npm/offline/sign-payment-channel-claim.d.ts +3 -0
  499. package/dist/npm/offline/sign-payment-channel-claim.d.ts.map +1 -0
  500. package/dist/npm/offline/sign-payment-channel-claim.js +38 -0
  501. package/dist/npm/offline/sign-payment-channel-claim.js.map +1 -0
  502. package/dist/npm/offline/utils.d.ts +10 -0
  503. package/dist/npm/offline/utils.d.ts.map +1 -0
  504. package/dist/npm/offline/utils.js +43 -0
  505. package/dist/npm/offline/utils.js.map +1 -0
  506. package/dist/npm/offline/verify-payment-channel-claim.d.ts +3 -0
  507. package/dist/npm/offline/verify-payment-channel-claim.d.ts.map +1 -0
  508. package/dist/npm/offline/verify-payment-channel-claim.js +18 -0
  509. package/dist/npm/offline/verify-payment-channel-claim.js.map +1 -0
  510. package/dist/npm/server/server.d.ts +8 -0
  511. package/dist/npm/server/server.d.ts.map +1 -0
  512. package/dist/npm/server/server.js +66 -0
  513. package/dist/npm/server/server.js.map +1 -0
  514. package/dist/npm/transaction/check-cancel.d.ts +8 -0
  515. package/dist/npm/transaction/check-cancel.d.ts.map +1 -0
  516. package/dist/npm/transaction/check-cancel.js +24 -0
  517. package/dist/npm/transaction/check-cancel.js.map +1 -0
  518. package/dist/npm/transaction/check-cash.d.ts +11 -0
  519. package/dist/npm/transaction/check-cash.d.ts.map +1 -0
  520. package/dist/npm/transaction/check-cash.js +55 -0
  521. package/dist/npm/transaction/check-cash.js.map +1 -0
  522. package/dist/npm/transaction/check-create.d.ts +13 -0
  523. package/dist/npm/transaction/check-create.d.ts.map +1 -0
  524. package/dist/npm/transaction/check-create.js +54 -0
  525. package/dist/npm/transaction/check-create.js.map +1 -0
  526. package/dist/npm/transaction/combine.d.ts +3 -0
  527. package/dist/npm/transaction/combine.d.ts.map +1 -0
  528. package/dist/npm/transaction/combine.js +62 -0
  529. package/dist/npm/transaction/combine.js.map +1 -0
  530. package/dist/npm/transaction/escrow-cancellation.d.ts +11 -0
  531. package/dist/npm/transaction/escrow-cancellation.d.ts.map +1 -0
  532. package/dist/npm/transaction/escrow-cancellation.js +46 -0
  533. package/dist/npm/transaction/escrow-cancellation.js.map +1 -0
  534. package/dist/npm/transaction/escrow-creation.d.ts +16 -0
  535. package/dist/npm/transaction/escrow-creation.d.ts.map +1 -0
  536. package/dist/npm/transaction/escrow-creation.js +69 -0
  537. package/dist/npm/transaction/escrow-creation.js.map +1 -0
  538. package/dist/npm/transaction/escrow-execution.d.ts +13 -0
  539. package/dist/npm/transaction/escrow-execution.d.ts.map +1 -0
  540. package/dist/npm/transaction/escrow-execution.js +58 -0
  541. package/dist/npm/transaction/escrow-execution.js.map +1 -0
  542. package/dist/npm/transaction/order.d.ts +6 -0
  543. package/dist/npm/transaction/order.d.ts.map +1 -0
  544. package/dist/npm/transaction/order.js +69 -0
  545. package/dist/npm/transaction/order.js.map +1 -0
  546. package/dist/npm/transaction/ordercancellation.d.ts +5 -0
  547. package/dist/npm/transaction/ordercancellation.d.ts.map +1 -0
  548. package/dist/npm/transaction/ordercancellation.js +50 -0
  549. package/dist/npm/transaction/ordercancellation.js.map +1 -0
  550. package/dist/npm/transaction/payment-channel-claim.d.ts +14 -0
  551. package/dist/npm/transaction/payment-channel-claim.d.ts.map +1 -0
  552. package/dist/npm/transaction/payment-channel-claim.js +76 -0
  553. package/dist/npm/transaction/payment-channel-claim.js.map +1 -0
  554. package/dist/npm/transaction/payment-channel-create.d.ts +14 -0
  555. package/dist/npm/transaction/payment-channel-create.d.ts.map +1 -0
  556. package/dist/npm/transaction/payment-channel-create.js +59 -0
  557. package/dist/npm/transaction/payment-channel-create.js.map +1 -0
  558. package/dist/npm/transaction/payment-channel-fund.d.ts +10 -0
  559. package/dist/npm/transaction/payment-channel-fund.d.ts.map +1 -0
  560. package/dist/npm/transaction/payment-channel-fund.js +51 -0
  561. package/dist/npm/transaction/payment-channel-fund.js.map +1 -0
  562. package/dist/npm/transaction/payment.d.ts +16 -0
  563. package/dist/npm/transaction/payment.d.ts.map +1 -0
  564. package/dist/npm/transaction/payment.js +163 -0
  565. package/dist/npm/transaction/payment.js.map +1 -0
  566. package/dist/npm/transaction/settings.d.ts +6 -0
  567. package/dist/npm/transaction/settings.d.ts.map +1 -0
  568. package/dist/npm/transaction/settings.js +130 -0
  569. package/dist/npm/transaction/settings.js.map +1 -0
  570. package/dist/npm/transaction/sign.d.ts +8 -0
  571. package/dist/npm/transaction/sign.d.ts.map +1 -0
  572. package/dist/npm/transaction/sign.js +173 -0
  573. package/dist/npm/transaction/sign.js.map +1 -0
  574. package/dist/npm/transaction/submit.d.ts +8 -0
  575. package/dist/npm/transaction/submit.d.ts.map +1 -0
  576. package/dist/npm/transaction/submit.js +59 -0
  577. package/dist/npm/transaction/submit.js.map +1 -0
  578. package/dist/npm/transaction/ticket.d.ts +9 -0
  579. package/dist/npm/transaction/ticket.d.ts.map +1 -0
  580. package/dist/npm/transaction/ticket.js +46 -0
  581. package/dist/npm/transaction/ticket.js.map +1 -0
  582. package/dist/npm/transaction/trustline.d.ts +6 -0
  583. package/dist/npm/transaction/trustline.d.ts.map +1 -0
  584. package/dist/npm/transaction/trustline.js +82 -0
  585. package/dist/npm/transaction/trustline.js.map +1 -0
  586. package/dist/npm/transaction/types.d.ts +138 -0
  587. package/dist/npm/transaction/types.d.ts.map +1 -0
  588. package/dist/npm/transaction/types.js +3 -0
  589. package/dist/npm/transaction/types.js.map +1 -0
  590. package/dist/npm/transaction/utils.d.ts +22 -0
  591. package/dist/npm/transaction/utils.d.ts.map +1 -0
  592. package/dist/npm/transaction/utils.js +285 -0
  593. package/dist/npm/transaction/utils.js.map +1 -0
  594. package/dist/npm/tsconfig.tsbuildinfo +4230 -0
  595. package/dist/npm/wallet/wallet-generation.d.ts +15 -0
  596. package/dist/npm/wallet/wallet-generation.d.ts.map +1 -0
  597. package/dist/npm/wallet/wallet-generation.js +150 -0
  598. package/dist/npm/wallet/wallet-generation.js.map +1 -0
  599. package/package.json +84 -0
@@ -0,0 +1,11 @@
1
+ import { FormattedOrderSpecification } from '../../common/types/objects';
2
+ export declare type FormattedAccountOrder = {
3
+ specification: FormattedOrderSpecification;
4
+ properties: {
5
+ maker: string;
6
+ sequence: number;
7
+ makerExchangeRate: string;
8
+ };
9
+ };
10
+ export declare function parseAccountOrder(address: string, order: any): FormattedAccountOrder;
11
+ //# sourceMappingURL=account-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-order.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/account-order.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,2BAA2B,EAAC,MAAM,4BAA4B,CAAA;AAEtE,oBAAY,qBAAqB,GAAG;IAClC,aAAa,EAAE,2BAA2B,CAAA;IAC1C,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAA;QACb,QAAQ,EAAE,MAAM,CAAA;QAChB,iBAAiB,EAAE,MAAM,CAAA;KAC1B,CAAA;CACF,CAAA;AAUD,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,GAAG,GACT,qBAAqB,CAgCvB"}
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.parseAccountOrder = void 0;
7
+ const bignumber_js_1 = __importDefault(require("bignumber.js"));
8
+ const amount_1 = __importDefault(require("./amount"));
9
+ const utils_1 = require("./utils");
10
+ const common_1 = require("../../common");
11
+ const flags_1 = require("./flags");
12
+ function computeQuality(takerGets, takerPays) {
13
+ const quotient = new bignumber_js_1.default(takerPays.value).dividedBy(takerGets.value);
14
+ return quotient.precision(16, bignumber_js_1.default.ROUND_HALF_UP).toString();
15
+ }
16
+ function parseAccountOrder(address, order) {
17
+ const direction = (order.flags & flags_1.orderFlags.Sell) === 0 ? 'buy' : 'sell';
18
+ const takerGetsAmount = amount_1.default(order.taker_gets);
19
+ const takerPaysAmount = amount_1.default(order.taker_pays);
20
+ const quantity = direction === 'buy' ? takerPaysAmount : takerGetsAmount;
21
+ const totalPrice = direction === 'buy' ? takerGetsAmount : takerPaysAmount;
22
+ const specification = common_1.removeUndefined({
23
+ direction: direction,
24
+ quantity: quantity,
25
+ totalPrice: totalPrice,
26
+ passive: (order.flags & flags_1.orderFlags.Passive) !== 0 || undefined,
27
+ expirationTime: utils_1.parseTimestamp(order.expiration)
28
+ });
29
+ const makerExchangeRate = order.quality
30
+ ? utils_1.adjustQualityForXRP(order.quality.toString(), takerGetsAmount.currency, takerPaysAmount.currency)
31
+ : computeQuality(takerGetsAmount, takerPaysAmount);
32
+ const properties = {
33
+ maker: address,
34
+ sequence: order.seq,
35
+ makerExchangeRate: makerExchangeRate
36
+ };
37
+ return { specification, properties };
38
+ }
39
+ exports.parseAccountOrder = parseAccountOrder;
40
+ //# sourceMappingURL=account-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-order.js","sourceRoot":"","sources":["../../../../src/ledger/parse/account-order.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAoC;AACpC,sDAAkC;AAClC,mCAA2D;AAC3D,yCAA4C;AAC5C,mCAAkC;AAalC,SAAS,cAAc,CAAC,SAAS,EAAE,SAAS;IAC1C,MAAM,QAAQ,GAAG,IAAI,sBAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;IAC1E,OAAO,QAAQ,CAAC,SAAS,CAAC,EAAE,EAAE,sBAAS,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE,CAAA;AACnE,CAAC;AAID,SAAgB,iBAAiB,CAC/B,OAAe,EACf,KAAU;IAEV,MAAM,SAAS,GAAG,CAAC,KAAK,CAAC,KAAK,GAAG,kBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAA;IACxE,MAAM,eAAe,GAAG,gBAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,gBAAW,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;IACrD,MAAM,QAAQ,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,MAAM,UAAU,GAAG,SAAS,KAAK,KAAK,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAA;IAI1E,MAAM,aAAa,GAAG,wBAAe,CAAC;QACpC,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;QAClB,UAAU,EAAE,UAAU;QACtB,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,GAAG,kBAAU,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,SAAS;QAE9D,cAAc,EAAE,sBAAc,CAAC,KAAK,CAAC,UAAU,CAAC;KACjD,CAAC,CAAA;IAEF,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO;QACrC,CAAC,CAAC,2BAAmB,CACjB,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EACxB,eAAe,CAAC,QAAQ,EACxB,eAAe,CAAC,QAAQ,CACzB;QACH,CAAC,CAAC,cAAc,CAAC,eAAe,EAAE,eAAe,CAAC,CAAA;IACpD,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE,KAAK,CAAC,GAAG;QACnB,iBAAiB,EAAE,iBAAiB;KACrC,CAAA;IAED,OAAO,EAAC,aAAa,EAAE,UAAU,EAAC,CAAA;AACpC,CAAC;AAnCD,8CAmCC"}
@@ -0,0 +1,4 @@
1
+ import { Trustline, FormattedTrustline } from '../../common/types/objects/trustlines';
2
+ declare function parseAccountTrustline(trustline: Trustline): FormattedTrustline;
3
+ export default parseAccountTrustline;
4
+ //# sourceMappingURL=account-trustline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-trustline.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/account-trustline.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,SAAS,EACT,kBAAkB,EACnB,MAAM,uCAAuC,CAAA;AAI9C,iBAAS,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,kBAAkB,CAsBvE;AAED,eAAe,qBAAqB,CAAA"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const utils_1 = require("./utils");
4
+ const common_1 = require("../../common");
5
+ function parseAccountTrustline(trustline) {
6
+ const specification = common_1.removeUndefined({
7
+ limit: trustline.limit,
8
+ currency: trustline.currency,
9
+ counterparty: trustline.account,
10
+ qualityIn: utils_1.parseQuality(trustline.quality_in) || undefined,
11
+ qualityOut: utils_1.parseQuality(trustline.quality_out) || undefined,
12
+ ripplingDisabled: trustline.no_ripple,
13
+ frozen: trustline.freeze,
14
+ authorized: trustline.authorized
15
+ });
16
+ const counterparty = common_1.removeUndefined({
17
+ limit: trustline.limit_peer,
18
+ ripplingDisabled: trustline.no_ripple_peer,
19
+ frozen: trustline.freeze_peer,
20
+ authorized: trustline.peer_authorized
21
+ });
22
+ const state = {
23
+ balance: trustline.balance
24
+ };
25
+ return { specification, counterparty, state };
26
+ }
27
+ exports.default = parseAccountTrustline;
28
+ //# sourceMappingURL=account-trustline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-trustline.js","sourceRoot":"","sources":["../../../../src/ledger/parse/account-trustline.ts"],"names":[],"mappings":";;AAAA,mCAAoC;AACpC,yCAA4C;AAQ5C,SAAS,qBAAqB,CAAC,SAAoB;IACjD,MAAM,aAAa,GAAG,wBAAe,CAAC;QACpC,KAAK,EAAE,SAAS,CAAC,KAAK;QACtB,QAAQ,EAAE,SAAS,CAAC,QAAQ;QAC5B,YAAY,EAAE,SAAS,CAAC,OAAO;QAC/B,SAAS,EAAE,oBAAY,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,SAAS;QAC1D,UAAU,EAAE,oBAAY,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,SAAS;QAC5D,gBAAgB,EAAE,SAAS,CAAC,SAAS;QACrC,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,UAAU,EAAE,SAAS,CAAC,UAAU;KACjC,CAAC,CAAA;IAEF,MAAM,YAAY,GAAG,wBAAe,CAAC;QACnC,KAAK,EAAE,SAAS,CAAC,UAAU;QAC3B,gBAAgB,EAAE,SAAS,CAAC,cAAc;QAC1C,MAAM,EAAE,SAAS,CAAC,WAAW;QAC7B,UAAU,EAAE,SAAS,CAAC,eAAe;KACtC,CAAC,CAAA;IACF,MAAM,KAAK,GAAG;QACZ,OAAO,EAAE,SAAS,CAAC,OAAO;KAC3B,CAAA;IACD,OAAO,EAAC,aAAa,EAAE,YAAY,EAAE,KAAK,EAAC,CAAA;AAC7C,CAAC;AAED,kBAAe,qBAAqB,CAAA"}
@@ -0,0 +1,5 @@
1
+ declare function parseAmendment(tx: any): {
2
+ amendment: any;
3
+ };
4
+ export default parseAmendment;
5
+ //# sourceMappingURL=amendment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amendment.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/amendment.ts"],"names":[],"mappings":"AAAA,iBAAS,cAAc,CAAC,EAAE,EAAE,GAAG;;EAI9B;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function parseAmendment(tx) {
4
+ return {
5
+ amendment: tx.Amendment
6
+ };
7
+ }
8
+ exports.default = parseAmendment;
9
+ //# sourceMappingURL=amendment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amendment.js","sourceRoot":"","sources":["../../../../src/ledger/parse/amendment.ts"],"names":[],"mappings":";;AAAA,SAAS,cAAc,CAAC,EAAO;IAC7B,OAAO;QACL,SAAS,EAAE,EAAE,CAAC,SAAS;KACxB,CAAA;AACH,CAAC;AAED,kBAAe,cAAc,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { Amount, RippledAmount } from '../../common/types/objects';
2
+ declare function parseAmount(amount: RippledAmount): Amount;
3
+ export default parseAmount;
4
+ //# sourceMappingURL=amount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/amount.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,4BAA4B,CAAA;AAEhE,iBAAS,WAAW,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAYlD;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const common = __importStar(require("../../common"));
23
+ function parseAmount(amount) {
24
+ if (typeof amount === 'string') {
25
+ return {
26
+ currency: 'XRP',
27
+ value: common.dropsToXrp(amount)
28
+ };
29
+ }
30
+ return {
31
+ currency: amount.currency,
32
+ value: amount.value,
33
+ counterparty: amount.issuer
34
+ };
35
+ }
36
+ exports.default = parseAmount;
37
+ //# sourceMappingURL=amount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amount.js","sourceRoot":"","sources":["../../../../src/ledger/parse/amount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,qDAAsC;AAGtC,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC9B,OAAO;YACL,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;SACjC,CAAA;KACF;IACD,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,MAAM,CAAC,KAAK;QACnB,YAAY,EAAE,MAAM,CAAC,MAAM;KAC5B,CAAA;AACH,CAAC;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare function parseOrderCancellation(tx: any): object;
2
+ export default parseOrderCancellation;
3
+ //# sourceMappingURL=cancellation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancellation.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/cancellation.ts"],"names":[],"mappings":"AAGA,iBAAS,sBAAsB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAM/C;AAED,eAAe,sBAAsB,CAAA"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const assert = __importStar(require("assert"));
23
+ const utils_1 = require("./utils");
24
+ function parseOrderCancellation(tx) {
25
+ assert.ok(tx.TransactionType === 'OfferCancel');
26
+ return {
27
+ memos: utils_1.parseMemos(tx),
28
+ orderSequence: tx.OfferSequence
29
+ };
30
+ }
31
+ exports.default = parseOrderCancellation;
32
+ //# sourceMappingURL=cancellation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancellation.js","sourceRoot":"","sources":["../../../../src/ledger/parse/cancellation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAkC;AAElC,SAAS,sBAAsB,CAAC,EAAO;IACrC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,aAAa,CAAC,CAAA;IAC/C,OAAO;QACL,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,aAAa,EAAE,EAAE,CAAC,aAAa;KAChC,CAAA;AACH,CAAC;AAED,kBAAe,sBAAsB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export declare type FormattedCheckCancel = {
2
+ checkID: string;
3
+ };
4
+ declare function parseCheckCancel(tx: any): FormattedCheckCancel;
5
+ export default parseCheckCancel;
6
+ //# sourceMappingURL=check-cancel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-cancel.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/check-cancel.ts"],"names":[],"mappings":"AAIA,oBAAY,oBAAoB,GAAG;IAEjC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,iBAAS,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,oBAAoB,CAOvD;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const assert = __importStar(require("assert"));
23
+ const common_1 = require("../../common");
24
+ const utils_1 = require("./utils");
25
+ function parseCheckCancel(tx) {
26
+ assert.ok(tx.TransactionType === 'CheckCancel');
27
+ return common_1.removeUndefined({
28
+ memos: utils_1.parseMemos(tx),
29
+ checkID: tx.CheckID
30
+ });
31
+ }
32
+ exports.default = parseCheckCancel;
33
+ //# sourceMappingURL=check-cancel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-cancel.js","sourceRoot":"","sources":["../../../../src/ledger/parse/check-cancel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,yCAA4C;AAC5C,mCAAkC;AAOlC,SAAS,gBAAgB,CAAC,EAAO;IAC/B,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,aAAa,CAAC,CAAA;IAE/C,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,EAAE,CAAC,OAAO;KACpB,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,gBAAgB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Amount } from '../../common/types/objects';
2
+ export declare type FormattedCheckCash = {
3
+ checkID: string;
4
+ amount: Amount;
5
+ deliverMin: Amount;
6
+ };
7
+ declare function parseCheckCash(tx: any): FormattedCheckCash;
8
+ export default parseCheckCash;
9
+ //# sourceMappingURL=check-cash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-cash.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/check-cash.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAA;AAGjD,oBAAY,kBAAkB,GAAG;IAE/B,OAAO,EAAE,MAAM,CAAA;IAKf,MAAM,EAAE,MAAM,CAAA;IAMd,UAAU,EAAE,MAAM,CAAA;CAGnB,CAAA;AAED,iBAAS,cAAc,CAAC,EAAE,EAAE,GAAG,GAAG,kBAAkB,CASnD;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ const assert = __importStar(require("assert"));
26
+ const common_1 = require("../../common");
27
+ const amount_1 = __importDefault(require("./amount"));
28
+ const utils_1 = require("./utils");
29
+ function parseCheckCash(tx) {
30
+ assert.ok(tx.TransactionType === 'CheckCash');
31
+ return common_1.removeUndefined({
32
+ memos: utils_1.parseMemos(tx),
33
+ checkID: tx.CheckID,
34
+ amount: tx.Amount && amount_1.default(tx.Amount),
35
+ deliverMin: tx.DeliverMin && amount_1.default(tx.DeliverMin)
36
+ });
37
+ }
38
+ exports.default = parseCheckCash;
39
+ //# sourceMappingURL=check-cash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-cash.js","sourceRoot":"","sources":["../../../../src/ledger/parse/check-cash.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,yCAA4C;AAC5C,sDAAkC;AAElC,mCAAkC;AAoBlC,SAAS,cAAc,CAAC,EAAO;IAC7B,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,WAAW,CAAC,CAAA;IAE7C,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,MAAM,EAAE,EAAE,CAAC,MAAM,IAAI,gBAAW,CAAC,EAAE,CAAC,MAAM,CAAC;QAC3C,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,gBAAW,CAAC,EAAE,CAAC,UAAU,CAAC;KACxD,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,cAAc,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { Amount } from '../../common/types/objects';
2
+ export declare type FormattedCheckCreate = {
3
+ destination: string;
4
+ sendMax: Amount;
5
+ destinationTag?: string;
6
+ expiration?: string;
7
+ invoiceID?: string;
8
+ };
9
+ declare function parseCheckCreate(tx: any): FormattedCheckCreate;
10
+ export default parseCheckCreate;
11
+ //# sourceMappingURL=check-create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-create.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/check-create.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAA;AAGjD,oBAAY,oBAAoB,GAAG;IAEjC,WAAW,EAAE,MAAM,CAAA;IAInB,OAAO,EAAE,MAAM,CAAA;IAGf,cAAc,CAAC,EAAE,MAAM,CAAA;IAGvB,UAAU,CAAC,EAAE,MAAM,CAAA;IAGnB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,iBAAS,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,oBAAoB,CAWvD;AAED,eAAe,gBAAgB,CAAA"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ const assert = __importStar(require("assert"));
26
+ const utils_1 = require("./utils");
27
+ const common_1 = require("../../common");
28
+ const amount_1 = __importDefault(require("./amount"));
29
+ const utils_2 = require("./utils");
30
+ function parseCheckCreate(tx) {
31
+ assert.ok(tx.TransactionType === 'CheckCreate');
32
+ return common_1.removeUndefined({
33
+ memos: utils_2.parseMemos(tx),
34
+ destination: tx.Destination,
35
+ sendMax: amount_1.default(tx.SendMax),
36
+ destinationTag: tx.DestinationTag,
37
+ expiration: tx.Expiration && utils_1.parseTimestamp(tx.Expiration),
38
+ invoiceID: tx.InvoiceID
39
+ });
40
+ }
41
+ exports.default = parseCheckCreate;
42
+ //# sourceMappingURL=check-create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-create.js","sourceRoot":"","sources":["../../../../src/ledger/parse/check-create.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAsC;AACtC,yCAA4C;AAC5C,sDAAkC;AAElC,mCAAkC;AAoBlC,SAAS,gBAAgB,CAAC,EAAO;IAC/B,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,aAAa,CAAC,CAAA;IAE/C,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,WAAW,EAAE,EAAE,CAAC,WAAW;QAC3B,OAAO,EAAE,gBAAW,CAAC,EAAE,CAAC,OAAO,CAAC;QAChC,cAAc,EAAE,EAAE,CAAC,cAAc;QACjC,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,sBAAc,CAAC,EAAE,CAAC,UAAU,CAAC;QAC1D,SAAS,EAAE,EAAE,CAAC,SAAS;KACxB,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,gBAAgB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare type FormattedDepositPreauth = {
2
+ authorize: string;
3
+ unauthorize: string;
4
+ };
5
+ declare function parseDepositPreauth(tx: any): FormattedDepositPreauth;
6
+ export default parseDepositPreauth;
7
+ //# sourceMappingURL=deposit-preauth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deposit-preauth.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/deposit-preauth.ts"],"names":[],"mappings":"AAIA,oBAAY,uBAAuB,GAAG;IAEpC,SAAS,EAAE,MAAM,CAAA;IAGjB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,iBAAS,mBAAmB,CAAC,EAAE,EAAE,GAAG,GAAG,uBAAuB,CAQ7D;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const assert = __importStar(require("assert"));
23
+ const common_1 = require("../../common");
24
+ const utils_1 = require("./utils");
25
+ function parseDepositPreauth(tx) {
26
+ assert.ok(tx.TransactionType === 'DepositPreauth');
27
+ return common_1.removeUndefined({
28
+ memos: utils_1.parseMemos(tx),
29
+ authorize: tx.Authorize,
30
+ unauthorize: tx.Unauthorize
31
+ });
32
+ }
33
+ exports.default = parseDepositPreauth;
34
+ //# sourceMappingURL=deposit-preauth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deposit-preauth.js","sourceRoot":"","sources":["../../../../src/ledger/parse/deposit-preauth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,yCAA4C;AAC5C,mCAAkC;AAUlC,SAAS,mBAAmB,CAAC,EAAO;IAClC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,gBAAgB,CAAC,CAAA;IAElD,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,WAAW,EAAE,EAAE,CAAC,WAAW;KAC5B,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare function parseEscrowCancellation(tx: any): object;
2
+ export default parseEscrowCancellation;
3
+ //# sourceMappingURL=escrow-cancellation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-cancellation.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-cancellation.ts"],"names":[],"mappings":"AAIA,iBAAS,uBAAuB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAQhD;AAED,eAAe,uBAAuB,CAAA"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const assert = __importStar(require("assert"));
23
+ const utils_1 = require("./utils");
24
+ const common_1 = require("../../common");
25
+ function parseEscrowCancellation(tx) {
26
+ assert.ok(tx.TransactionType === 'EscrowCancel');
27
+ return common_1.removeUndefined({
28
+ memos: utils_1.parseMemos(tx),
29
+ owner: tx.Owner,
30
+ escrowSequence: tx.OfferSequence
31
+ });
32
+ }
33
+ exports.default = parseEscrowCancellation;
34
+ //# sourceMappingURL=escrow-cancellation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-cancellation.js","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-cancellation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAkC;AAClC,yCAA4C;AAE5C,SAAS,uBAAuB,CAAC,EAAO;IACtC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,cAAc,CAAC,CAAA;IAEhD,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,EAAE,CAAC,KAAK;QACf,cAAc,EAAE,EAAE,CAAC,aAAa;KACjC,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,uBAAuB,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare function parseEscrowCreation(tx: any): object;
2
+ export default parseEscrowCreation;
3
+ //# sourceMappingURL=escrow-creation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-creation.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-creation.ts"],"names":[],"mappings":"AAKA,iBAAS,mBAAmB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAa5C;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ const assert = __importStar(require("assert"));
26
+ const amount_1 = __importDefault(require("./amount"));
27
+ const utils_1 = require("./utils");
28
+ const common_1 = require("../../common");
29
+ function parseEscrowCreation(tx) {
30
+ assert.ok(tx.TransactionType === 'EscrowCreate');
31
+ return common_1.removeUndefined({
32
+ amount: amount_1.default(tx.Amount).value,
33
+ destination: tx.Destination,
34
+ memos: utils_1.parseMemos(tx),
35
+ condition: tx.Condition,
36
+ allowCancelAfter: utils_1.parseTimestamp(tx.CancelAfter),
37
+ allowExecuteAfter: utils_1.parseTimestamp(tx.FinishAfter),
38
+ sourceTag: tx.SourceTag,
39
+ destinationTag: tx.DestinationTag
40
+ });
41
+ }
42
+ exports.default = parseEscrowCreation;
43
+ //# sourceMappingURL=escrow-creation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-creation.js","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-creation.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,sDAAkC;AAClC,mCAAkD;AAClD,yCAA4C;AAE5C,SAAS,mBAAmB,CAAC,EAAO;IAClC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,cAAc,CAAC,CAAA;IAEhD,OAAO,wBAAe,CAAC;QACrB,MAAM,EAAE,gBAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,KAAK;QACpC,WAAW,EAAE,EAAE,CAAC,WAAW;QAC3B,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,gBAAgB,EAAE,sBAAc,CAAC,EAAE,CAAC,WAAW,CAAC;QAChD,iBAAiB,EAAE,sBAAc,CAAC,EAAE,CAAC,WAAW,CAAC;QACjD,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,cAAc,EAAE,EAAE,CAAC,cAAc;KAClC,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,mBAAmB,CAAA"}
@@ -0,0 +1,3 @@
1
+ declare function parseEscrowExecution(tx: any): object;
2
+ export default parseEscrowExecution;
3
+ //# sourceMappingURL=escrow-execution.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-execution.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-execution.ts"],"names":[],"mappings":"AAIA,iBAAS,oBAAoB,CAAC,EAAE,EAAE,GAAG,GAAG,MAAM,CAU7C;AAED,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ const assert = __importStar(require("assert"));
23
+ const utils_1 = require("./utils");
24
+ const common_1 = require("../../common");
25
+ function parseEscrowExecution(tx) {
26
+ assert.ok(tx.TransactionType === 'EscrowFinish');
27
+ return common_1.removeUndefined({
28
+ memos: utils_1.parseMemos(tx),
29
+ owner: tx.Owner,
30
+ escrowSequence: tx.OfferSequence,
31
+ condition: tx.Condition,
32
+ fulfillment: tx.Fulfillment
33
+ });
34
+ }
35
+ exports.default = parseEscrowExecution;
36
+ //# sourceMappingURL=escrow-execution.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escrow-execution.js","sourceRoot":"","sources":["../../../../src/ledger/parse/escrow-execution.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,+CAAgC;AAChC,mCAAkC;AAClC,yCAA4C;AAE5C,SAAS,oBAAoB,CAAC,EAAO;IACnC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,eAAe,KAAK,cAAc,CAAC,CAAA;IAEhD,OAAO,wBAAe,CAAC;QACrB,KAAK,EAAE,kBAAU,CAAC,EAAE,CAAC;QACrB,KAAK,EAAE,EAAE,CAAC,KAAK;QACf,cAAc,EAAE,EAAE,CAAC,aAAa;QAChC,SAAS,EAAE,EAAE,CAAC,SAAS;QACvB,WAAW,EAAE,EAAE,CAAC,WAAW;KAC5B,CAAC,CAAA;AACJ,CAAC;AAED,kBAAe,oBAAoB,CAAA"}
@@ -0,0 +1,9 @@
1
+ declare function parseFeeUpdate(tx: any): {
2
+ memos: import("../../common/types/objects").Memo[];
3
+ baseFeeXRP: string;
4
+ referenceFeeUnits: any;
5
+ reserveBaseXRP: string;
6
+ reserveIncrementXRP: string;
7
+ };
8
+ export default parseFeeUpdate;
9
+ //# sourceMappingURL=fee-update.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fee-update.d.ts","sourceRoot":"","sources":["../../../../src/ledger/parse/fee-update.ts"],"names":[],"mappings":"AAIA,iBAAS,cAAc,CAAC,EAAE,EAAE,GAAG;;;;;;EAS9B;AAED,eAAe,cAAc,CAAA"}