xrpjson 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (367) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +183 -0
  3. package/dist/errors.d.ts +20 -0
  4. package/dist/errors.d.ts.map +1 -0
  5. package/dist/errors.js +27 -0
  6. package/dist/errors.js.map +1 -0
  7. package/dist/fp/factories/account-delete.d.ts +33 -0
  8. package/dist/fp/factories/account-delete.d.ts.map +1 -0
  9. package/dist/fp/factories/account-delete.js +138 -0
  10. package/dist/fp/factories/account-delete.js.map +1 -0
  11. package/dist/fp/factories/account-set.d.ts +31 -0
  12. package/dist/fp/factories/account-set.d.ts.map +1 -0
  13. package/dist/fp/factories/account-set.js +44 -0
  14. package/dist/fp/factories/account-set.js.map +1 -0
  15. package/dist/fp/factories/amm-bid.d.ts +134 -0
  16. package/dist/fp/factories/amm-bid.d.ts.map +1 -0
  17. package/dist/fp/factories/amm-bid.js +82 -0
  18. package/dist/fp/factories/amm-bid.js.map +1 -0
  19. package/dist/fp/factories/amm-clawback.d.ts +166 -0
  20. package/dist/fp/factories/amm-clawback.d.ts.map +1 -0
  21. package/dist/fp/factories/amm-clawback.js +143 -0
  22. package/dist/fp/factories/amm-clawback.js.map +1 -0
  23. package/dist/fp/factories/amm-create.d.ts +91 -0
  24. package/dist/fp/factories/amm-create.d.ts.map +1 -0
  25. package/dist/fp/factories/amm-create.js +140 -0
  26. package/dist/fp/factories/amm-create.js.map +1 -0
  27. package/dist/fp/factories/amm-delete.d.ts +84 -0
  28. package/dist/fp/factories/amm-delete.d.ts.map +1 -0
  29. package/dist/fp/factories/amm-delete.js +36 -0
  30. package/dist/fp/factories/amm-delete.js.map +1 -0
  31. package/dist/fp/factories/amm-deposit.d.ts +109 -0
  32. package/dist/fp/factories/amm-deposit.d.ts.map +1 -0
  33. package/dist/fp/factories/amm-deposit.js +68 -0
  34. package/dist/fp/factories/amm-deposit.js.map +1 -0
  35. package/dist/fp/factories/amm-vote.d.ts +87 -0
  36. package/dist/fp/factories/amm-vote.d.ts.map +1 -0
  37. package/dist/fp/factories/amm-vote.js +53 -0
  38. package/dist/fp/factories/amm-vote.js.map +1 -0
  39. package/dist/fp/factories/amm-withdraw.d.ts +131 -0
  40. package/dist/fp/factories/amm-withdraw.d.ts.map +1 -0
  41. package/dist/fp/factories/amm-withdraw.js +147 -0
  42. package/dist/fp/factories/amm-withdraw.js.map +1 -0
  43. package/dist/fp/factories/batch.d.ts +133 -0
  44. package/dist/fp/factories/batch.d.ts.map +1 -0
  45. package/dist/fp/factories/batch.js +264 -0
  46. package/dist/fp/factories/batch.js.map +1 -0
  47. package/dist/fp/factories/check-cancel.d.ts +22 -0
  48. package/dist/fp/factories/check-cancel.d.ts.map +1 -0
  49. package/dist/fp/factories/check-cancel.js +119 -0
  50. package/dist/fp/factories/check-cancel.js.map +1 -0
  51. package/dist/fp/factories/check-cash.d.ts +84 -0
  52. package/dist/fp/factories/check-cash.d.ts.map +1 -0
  53. package/dist/fp/factories/check-cash.js +95 -0
  54. package/dist/fp/factories/check-cash.js.map +1 -0
  55. package/dist/fp/factories/check-create.d.ts +82 -0
  56. package/dist/fp/factories/check-create.d.ts.map +1 -0
  57. package/dist/fp/factories/check-create.js +101 -0
  58. package/dist/fp/factories/check-create.js.map +1 -0
  59. package/dist/fp/factories/clawback.d.ts +160 -0
  60. package/dist/fp/factories/clawback.d.ts.map +1 -0
  61. package/dist/fp/factories/clawback.js +111 -0
  62. package/dist/fp/factories/clawback.js.map +1 -0
  63. package/dist/fp/factories/confidential-mpt-clawback.d.ts +24 -0
  64. package/dist/fp/factories/confidential-mpt-clawback.d.ts.map +1 -0
  65. package/dist/fp/factories/confidential-mpt-clawback.js +200 -0
  66. package/dist/fp/factories/confidential-mpt-clawback.js.map +1 -0
  67. package/dist/fp/factories/confidential-mpt-convert-back.d.ts +32 -0
  68. package/dist/fp/factories/confidential-mpt-convert-back.d.ts.map +1 -0
  69. package/dist/fp/factories/confidential-mpt-convert-back.js +203 -0
  70. package/dist/fp/factories/confidential-mpt-convert-back.js.map +1 -0
  71. package/dist/fp/factories/confidential-mpt-convert.d.ts +32 -0
  72. package/dist/fp/factories/confidential-mpt-convert.d.ts.map +1 -0
  73. package/dist/fp/factories/confidential-mpt-convert.js +209 -0
  74. package/dist/fp/factories/confidential-mpt-convert.js.map +1 -0
  75. package/dist/fp/factories/confidential-mpt-merge-inbox.d.ts +18 -0
  76. package/dist/fp/factories/confidential-mpt-merge-inbox.d.ts.map +1 -0
  77. package/dist/fp/factories/confidential-mpt-merge-inbox.js +130 -0
  78. package/dist/fp/factories/confidential-mpt-merge-inbox.js.map +1 -0
  79. package/dist/fp/factories/confidential-mpt-send.d.ts +38 -0
  80. package/dist/fp/factories/confidential-mpt-send.d.ts.map +1 -0
  81. package/dist/fp/factories/confidential-mpt-send.js +254 -0
  82. package/dist/fp/factories/confidential-mpt-send.js.map +1 -0
  83. package/dist/fp/factories/credential-accept.d.ts +23 -0
  84. package/dist/fp/factories/credential-accept.d.ts.map +1 -0
  85. package/dist/fp/factories/credential-accept.js +135 -0
  86. package/dist/fp/factories/credential-accept.js.map +1 -0
  87. package/dist/fp/factories/credential-create.d.ts +24 -0
  88. package/dist/fp/factories/credential-create.d.ts.map +1 -0
  89. package/dist/fp/factories/credential-create.js +204 -0
  90. package/dist/fp/factories/credential-create.js.map +1 -0
  91. package/dist/fp/factories/credential-delete.d.ts +33 -0
  92. package/dist/fp/factories/credential-delete.d.ts.map +1 -0
  93. package/dist/fp/factories/credential-delete.js +167 -0
  94. package/dist/fp/factories/credential-delete.js.map +1 -0
  95. package/dist/fp/factories/delegate-set.d.ts +52 -0
  96. package/dist/fp/factories/delegate-set.d.ts.map +1 -0
  97. package/dist/fp/factories/delegate-set.js +190 -0
  98. package/dist/fp/factories/delegate-set.js.map +1 -0
  99. package/dist/fp/factories/deposit-preauth.d.ts +183 -0
  100. package/dist/fp/factories/deposit-preauth.d.ts.map +1 -0
  101. package/dist/fp/factories/deposit-preauth.js +159 -0
  102. package/dist/fp/factories/deposit-preauth.js.map +1 -0
  103. package/dist/fp/factories/did-delete.d.ts +22 -0
  104. package/dist/fp/factories/did-delete.d.ts.map +1 -0
  105. package/dist/fp/factories/did-delete.js +126 -0
  106. package/dist/fp/factories/did-delete.js.map +1 -0
  107. package/dist/fp/factories/did-set.d.ts +68 -0
  108. package/dist/fp/factories/did-set.d.ts.map +1 -0
  109. package/dist/fp/factories/did-set.js +178 -0
  110. package/dist/fp/factories/did-set.js.map +1 -0
  111. package/dist/fp/factories/escrow-cancel.d.ts +28 -0
  112. package/dist/fp/factories/escrow-cancel.d.ts.map +1 -0
  113. package/dist/fp/factories/escrow-cancel.js +127 -0
  114. package/dist/fp/factories/escrow-cancel.js.map +1 -0
  115. package/dist/fp/factories/escrow-create.d.ts +103 -0
  116. package/dist/fp/factories/escrow-create.d.ts.map +1 -0
  117. package/dist/fp/factories/escrow-create.js +133 -0
  118. package/dist/fp/factories/escrow-create.js.map +1 -0
  119. package/dist/fp/factories/escrow-finish.d.ts +39 -0
  120. package/dist/fp/factories/escrow-finish.d.ts.map +1 -0
  121. package/dist/fp/factories/escrow-finish.js +173 -0
  122. package/dist/fp/factories/escrow-finish.js.map +1 -0
  123. package/dist/fp/factories/ledger-state-fix.d.ts +31 -0
  124. package/dist/fp/factories/ledger-state-fix.d.ts.map +1 -0
  125. package/dist/fp/factories/ledger-state-fix.js +163 -0
  126. package/dist/fp/factories/ledger-state-fix.js.map +1 -0
  127. package/dist/fp/factories/loan-broker-cover-clawback.d.ts +106 -0
  128. package/dist/fp/factories/loan-broker-cover-clawback.d.ts.map +1 -0
  129. package/dist/fp/factories/loan-broker-cover-clawback.js +122 -0
  130. package/dist/fp/factories/loan-broker-cover-clawback.js.map +1 -0
  131. package/dist/fp/factories/loan-broker-cover-deposit.d.ts +65 -0
  132. package/dist/fp/factories/loan-broker-cover-deposit.d.ts.map +1 -0
  133. package/dist/fp/factories/loan-broker-cover-deposit.js +81 -0
  134. package/dist/fp/factories/loan-broker-cover-deposit.js.map +1 -0
  135. package/dist/fp/factories/loan-broker-cover-withdraw.d.ts +96 -0
  136. package/dist/fp/factories/loan-broker-cover-withdraw.d.ts.map +1 -0
  137. package/dist/fp/factories/loan-broker-cover-withdraw.js +116 -0
  138. package/dist/fp/factories/loan-broker-cover-withdraw.js.map +1 -0
  139. package/dist/fp/factories/loan-broker-delete.d.ts +20 -0
  140. package/dist/fp/factories/loan-broker-delete.d.ts.map +1 -0
  141. package/dist/fp/factories/loan-broker-delete.js +94 -0
  142. package/dist/fp/factories/loan-broker-delete.js.map +1 -0
  143. package/dist/fp/factories/loan-broker-set.d.ts +108 -0
  144. package/dist/fp/factories/loan-broker-set.d.ts.map +1 -0
  145. package/dist/fp/factories/loan-broker-set.js +133 -0
  146. package/dist/fp/factories/loan-broker-set.js.map +1 -0
  147. package/dist/fp/factories/loan-delete.d.ts +18 -0
  148. package/dist/fp/factories/loan-delete.d.ts.map +1 -0
  149. package/dist/fp/factories/loan-delete.js +95 -0
  150. package/dist/fp/factories/loan-delete.js.map +1 -0
  151. package/dist/fp/factories/loan-manage.d.ts +72 -0
  152. package/dist/fp/factories/loan-manage.d.ts.map +1 -0
  153. package/dist/fp/factories/loan-manage.js +79 -0
  154. package/dist/fp/factories/loan-manage.js.map +1 -0
  155. package/dist/fp/factories/loan-pay.d.ts +70 -0
  156. package/dist/fp/factories/loan-pay.d.ts.map +1 -0
  157. package/dist/fp/factories/loan-pay.js +115 -0
  158. package/dist/fp/factories/loan-pay.js.map +1 -0
  159. package/dist/fp/factories/loan-set.d.ts +67 -0
  160. package/dist/fp/factories/loan-set.d.ts.map +1 -0
  161. package/dist/fp/factories/loan-set.js +102 -0
  162. package/dist/fp/factories/loan-set.js.map +1 -0
  163. package/dist/fp/factories/mptoken-authorize.d.ts +83 -0
  164. package/dist/fp/factories/mptoken-authorize.d.ts.map +1 -0
  165. package/dist/fp/factories/mptoken-authorize.js +63 -0
  166. package/dist/fp/factories/mptoken-authorize.js.map +1 -0
  167. package/dist/fp/factories/mptoken-issuance-create.d.ts +71 -0
  168. package/dist/fp/factories/mptoken-issuance-create.d.ts.map +1 -0
  169. package/dist/fp/factories/mptoken-issuance-create.js +135 -0
  170. package/dist/fp/factories/mptoken-issuance-create.js.map +1 -0
  171. package/dist/fp/factories/mptoken-issuance-destroy.d.ts +32 -0
  172. package/dist/fp/factories/mptoken-issuance-destroy.d.ts.map +1 -0
  173. package/dist/fp/factories/mptoken-issuance-destroy.js +105 -0
  174. package/dist/fp/factories/mptoken-issuance-destroy.js.map +1 -0
  175. package/dist/fp/factories/mptoken-issuance-set.d.ts +196 -0
  176. package/dist/fp/factories/mptoken-issuance-set.d.ts.map +1 -0
  177. package/dist/fp/factories/mptoken-issuance-set.js +333 -0
  178. package/dist/fp/factories/mptoken-issuance-set.js.map +1 -0
  179. package/dist/fp/factories/nftoken-accept-offer.d.ts +108 -0
  180. package/dist/fp/factories/nftoken-accept-offer.d.ts.map +1 -0
  181. package/dist/fp/factories/nftoken-accept-offer.js +105 -0
  182. package/dist/fp/factories/nftoken-accept-offer.js.map +1 -0
  183. package/dist/fp/factories/nftoken-burn.d.ts +27 -0
  184. package/dist/fp/factories/nftoken-burn.d.ts.map +1 -0
  185. package/dist/fp/factories/nftoken-burn.js +125 -0
  186. package/dist/fp/factories/nftoken-burn.js.map +1 -0
  187. package/dist/fp/factories/nftoken-cancel-offer.d.ts +19 -0
  188. package/dist/fp/factories/nftoken-cancel-offer.d.ts.map +1 -0
  189. package/dist/fp/factories/nftoken-cancel-offer.js +143 -0
  190. package/dist/fp/factories/nftoken-cancel-offer.js.map +1 -0
  191. package/dist/fp/factories/nftoken-create-offer.d.ts +159 -0
  192. package/dist/fp/factories/nftoken-create-offer.d.ts.map +1 -0
  193. package/dist/fp/factories/nftoken-create-offer.js +212 -0
  194. package/dist/fp/factories/nftoken-create-offer.js.map +1 -0
  195. package/dist/fp/factories/nftoken-mint.d.ts +155 -0
  196. package/dist/fp/factories/nftoken-mint.d.ts.map +1 -0
  197. package/dist/fp/factories/nftoken-mint.js +165 -0
  198. package/dist/fp/factories/nftoken-mint.js.map +1 -0
  199. package/dist/fp/factories/nftoken-modify.d.ts +28 -0
  200. package/dist/fp/factories/nftoken-modify.d.ts.map +1 -0
  201. package/dist/fp/factories/nftoken-modify.js +209 -0
  202. package/dist/fp/factories/nftoken-modify.js.map +1 -0
  203. package/dist/fp/factories/offer-cancel.d.ts +21 -0
  204. package/dist/fp/factories/offer-cancel.d.ts.map +1 -0
  205. package/dist/fp/factories/offer-cancel.js +99 -0
  206. package/dist/fp/factories/offer-cancel.js.map +1 -0
  207. package/dist/fp/factories/offer-create.d.ts +125 -0
  208. package/dist/fp/factories/offer-create.d.ts.map +1 -0
  209. package/dist/fp/factories/offer-create.js +230 -0
  210. package/dist/fp/factories/offer-create.js.map +1 -0
  211. package/dist/fp/factories/oracle-delete.d.ts +21 -0
  212. package/dist/fp/factories/oracle-delete.d.ts.map +1 -0
  213. package/dist/fp/factories/oracle-delete.js +101 -0
  214. package/dist/fp/factories/oracle-delete.js.map +1 -0
  215. package/dist/fp/factories/oracle-set.d.ts +40 -0
  216. package/dist/fp/factories/oracle-set.d.ts.map +1 -0
  217. package/dist/fp/factories/oracle-set.js +257 -0
  218. package/dist/fp/factories/oracle-set.js.map +1 -0
  219. package/dist/fp/factories/payment-channel-claim.d.ts +153 -0
  220. package/dist/fp/factories/payment-channel-claim.d.ts.map +1 -0
  221. package/dist/fp/factories/payment-channel-claim.js +118 -0
  222. package/dist/fp/factories/payment-channel-claim.js.map +1 -0
  223. package/dist/fp/factories/payment-channel-create.d.ts +30 -0
  224. package/dist/fp/factories/payment-channel-create.d.ts.map +1 -0
  225. package/dist/fp/factories/payment-channel-create.js +172 -0
  226. package/dist/fp/factories/payment-channel-create.js.map +1 -0
  227. package/dist/fp/factories/payment-channel-fund.d.ts +25 -0
  228. package/dist/fp/factories/payment-channel-fund.d.ts.map +1 -0
  229. package/dist/fp/factories/payment-channel-fund.js +142 -0
  230. package/dist/fp/factories/payment-channel-fund.js.map +1 -0
  231. package/dist/fp/factories/payment.d.ts +65 -0
  232. package/dist/fp/factories/payment.d.ts.map +1 -0
  233. package/dist/fp/factories/payment.js +48 -0
  234. package/dist/fp/factories/payment.js.map +1 -0
  235. package/dist/fp/factories/permissioned-domain-delete.d.ts +18 -0
  236. package/dist/fp/factories/permissioned-domain-delete.d.ts.map +1 -0
  237. package/dist/fp/factories/permissioned-domain-delete.js +88 -0
  238. package/dist/fp/factories/permissioned-domain-delete.js.map +1 -0
  239. package/dist/fp/factories/permissioned-domain-set.d.ts +118 -0
  240. package/dist/fp/factories/permissioned-domain-set.d.ts.map +1 -0
  241. package/dist/fp/factories/permissioned-domain-set.js +100 -0
  242. package/dist/fp/factories/permissioned-domain-set.js.map +1 -0
  243. package/dist/fp/factories/set-regular-key.d.ts +30 -0
  244. package/dist/fp/factories/set-regular-key.d.ts.map +1 -0
  245. package/dist/fp/factories/set-regular-key.js +81 -0
  246. package/dist/fp/factories/set-regular-key.js.map +1 -0
  247. package/dist/fp/factories/signer-list-set.d.ts +61 -0
  248. package/dist/fp/factories/signer-list-set.d.ts.map +1 -0
  249. package/dist/fp/factories/signer-list-set.js +250 -0
  250. package/dist/fp/factories/signer-list-set.js.map +1 -0
  251. package/dist/fp/factories/sponsorship-set.d.ts +148 -0
  252. package/dist/fp/factories/sponsorship-set.d.ts.map +1 -0
  253. package/dist/fp/factories/sponsorship-set.js +201 -0
  254. package/dist/fp/factories/sponsorship-set.js.map +1 -0
  255. package/dist/fp/factories/sponsorship-transfer.d.ts +173 -0
  256. package/dist/fp/factories/sponsorship-transfer.d.ts.map +1 -0
  257. package/dist/fp/factories/sponsorship-transfer.js +195 -0
  258. package/dist/fp/factories/sponsorship-transfer.js.map +1 -0
  259. package/dist/fp/factories/ticket-create.d.ts +20 -0
  260. package/dist/fp/factories/ticket-create.d.ts.map +1 -0
  261. package/dist/fp/factories/ticket-create.js +120 -0
  262. package/dist/fp/factories/ticket-create.js.map +1 -0
  263. package/dist/fp/factories/trust-set.d.ts +100 -0
  264. package/dist/fp/factories/trust-set.d.ts.map +1 -0
  265. package/dist/fp/factories/trust-set.js +111 -0
  266. package/dist/fp/factories/trust-set.js.map +1 -0
  267. package/dist/fp/factories/vault-clawback.d.ts +83 -0
  268. package/dist/fp/factories/vault-clawback.d.ts.map +1 -0
  269. package/dist/fp/factories/vault-clawback.js +91 -0
  270. package/dist/fp/factories/vault-clawback.js.map +1 -0
  271. package/dist/fp/factories/vault-create.d.ts +51 -0
  272. package/dist/fp/factories/vault-create.d.ts.map +1 -0
  273. package/dist/fp/factories/vault-create.js +141 -0
  274. package/dist/fp/factories/vault-create.js.map +1 -0
  275. package/dist/fp/factories/vault-delete.d.ts +20 -0
  276. package/dist/fp/factories/vault-delete.d.ts.map +1 -0
  277. package/dist/fp/factories/vault-delete.js +103 -0
  278. package/dist/fp/factories/vault-delete.js.map +1 -0
  279. package/dist/fp/factories/vault-deposit.d.ts +56 -0
  280. package/dist/fp/factories/vault-deposit.d.ts.map +1 -0
  281. package/dist/fp/factories/vault-deposit.js +85 -0
  282. package/dist/fp/factories/vault-deposit.js.map +1 -0
  283. package/dist/fp/factories/vault-set.d.ts +32 -0
  284. package/dist/fp/factories/vault-set.d.ts.map +1 -0
  285. package/dist/fp/factories/vault-set.js +135 -0
  286. package/dist/fp/factories/vault-set.js.map +1 -0
  287. package/dist/fp/factories/vault-withdraw.d.ts +82 -0
  288. package/dist/fp/factories/vault-withdraw.d.ts.map +1 -0
  289. package/dist/fp/factories/vault-withdraw.js +122 -0
  290. package/dist/fp/factories/vault-withdraw.js.map +1 -0
  291. package/dist/fp/factories/xchain-account-create-commit.d.ts +180 -0
  292. package/dist/fp/factories/xchain-account-create-commit.d.ts.map +1 -0
  293. package/dist/fp/factories/xchain-account-create-commit.js +99 -0
  294. package/dist/fp/factories/xchain-account-create-commit.js.map +1 -0
  295. package/dist/fp/factories/xchain-add-account-create-attestation.d.ts +213 -0
  296. package/dist/fp/factories/xchain-add-account-create-attestation.d.ts.map +1 -0
  297. package/dist/fp/factories/xchain-add-account-create-attestation.js +95 -0
  298. package/dist/fp/factories/xchain-add-account-create-attestation.js.map +1 -0
  299. package/dist/fp/factories/xchain-add-claim-attestation.d.ts +206 -0
  300. package/dist/fp/factories/xchain-add-claim-attestation.d.ts.map +1 -0
  301. package/dist/fp/factories/xchain-add-claim-attestation.js +97 -0
  302. package/dist/fp/factories/xchain-add-claim-attestation.js.map +1 -0
  303. package/dist/fp/factories/xchain-claim.d.ts +187 -0
  304. package/dist/fp/factories/xchain-claim.d.ts.map +1 -0
  305. package/dist/fp/factories/xchain-claim.js +140 -0
  306. package/dist/fp/factories/xchain-claim.js.map +1 -0
  307. package/dist/fp/factories/xchain-commit.d.ts +168 -0
  308. package/dist/fp/factories/xchain-commit.d.ts.map +1 -0
  309. package/dist/fp/factories/xchain-commit.js +137 -0
  310. package/dist/fp/factories/xchain-commit.js.map +1 -0
  311. package/dist/fp/factories/xchain-create-bridge.d.ts +206 -0
  312. package/dist/fp/factories/xchain-create-bridge.d.ts.map +1 -0
  313. package/dist/fp/factories/xchain-create-bridge.js +100 -0
  314. package/dist/fp/factories/xchain-create-bridge.js.map +1 -0
  315. package/dist/fp/factories/xchain-create-claim-id.d.ts +199 -0
  316. package/dist/fp/factories/xchain-create-claim-id.d.ts.map +1 -0
  317. package/dist/fp/factories/xchain-create-claim-id.js +78 -0
  318. package/dist/fp/factories/xchain-create-claim-id.js.map +1 -0
  319. package/dist/fp/factories/xchain-modify-bridge.d.ts +198 -0
  320. package/dist/fp/factories/xchain-modify-bridge.d.ts.map +1 -0
  321. package/dist/fp/factories/xchain-modify-bridge.js +102 -0
  322. package/dist/fp/factories/xchain-modify-bridge.js.map +1 -0
  323. package/dist/fp/index.d.ts +124 -0
  324. package/dist/fp/index.d.ts.map +1 -0
  325. package/dist/fp/index.js +152 -0
  326. package/dist/fp/index.js.map +1 -0
  327. package/dist/fp/shape.d.ts +34 -0
  328. package/dist/fp/shape.d.ts.map +1 -0
  329. package/dist/fp/shape.js +80 -0
  330. package/dist/fp/shape.js.map +1 -0
  331. package/dist/types/amounts.d.ts +49 -0
  332. package/dist/types/amounts.d.ts.map +1 -0
  333. package/dist/types/amounts.js +8 -0
  334. package/dist/types/amounts.js.map +1 -0
  335. package/dist/types/base.d.ts +103 -0
  336. package/dist/types/base.d.ts.map +1 -0
  337. package/dist/types/base.js +2 -0
  338. package/dist/types/base.js.map +1 -0
  339. package/dist/types/common.d.ts +163 -0
  340. package/dist/types/common.d.ts.map +1 -0
  341. package/dist/types/common.js +5 -0
  342. package/dist/types/common.js.map +1 -0
  343. package/dist/types/flags.d.ts +317 -0
  344. package/dist/types/flags.d.ts.map +1 -0
  345. package/dist/types/flags.js +253 -0
  346. package/dist/types/flags.js.map +1 -0
  347. package/dist/types/index.d.ts +10 -0
  348. package/dist/types/index.d.ts.map +1 -0
  349. package/dist/types/index.js +2 -0
  350. package/dist/types/index.js.map +1 -0
  351. package/dist/types/transaction-types.d.ts +7 -0
  352. package/dist/types/transaction-types.d.ts.map +1 -0
  353. package/dist/types/transaction-types.js +2 -0
  354. package/dist/types/transaction-types.js.map +1 -0
  355. package/dist/validation/base.d.ts +8 -0
  356. package/dist/validation/base.d.ts.map +1 -0
  357. package/dist/validation/base.js +79 -0
  358. package/dist/validation/base.js.map +1 -0
  359. package/dist/validation/helpers.d.ts +42 -0
  360. package/dist/validation/helpers.d.ts.map +1 -0
  361. package/dist/validation/helpers.js +154 -0
  362. package/dist/validation/helpers.js.map +1 -0
  363. package/dist/validation/index.d.ts +3 -0
  364. package/dist/validation/index.d.ts.map +1 -0
  365. package/dist/validation/index.js +3 -0
  366. package/dist/validation/index.js.map +1 -0
  367. package/package.json +67 -0
@@ -0,0 +1,38 @@
1
+ export interface ConfidentialMptSendProps {
2
+ /** The account performing the send. Must be a valid XRPL classic/X-address. */
3
+ Account: string;
4
+ /** UInt192 — MPT issuance identifier (48-char hex). */
5
+ MPTokenIssuanceID: string;
6
+ /** AccountID — receiver of the confidential transfer. Must differ from Account. */
7
+ Destination: string;
8
+ /** UINT32 — destination tag (optional, used for hosted recipients). */
9
+ DestinationTag?: number | undefined;
10
+ /** Blob — 66-byte ElGamal ciphertext used to debit sender's spending balance. */
11
+ SenderEncryptedAmount: string;
12
+ /** Blob — 66-byte ciphertext credited to the receiver's inbox balance. */
13
+ DestinationEncryptedAmount: string;
14
+ /** Blob — 66-byte ciphertext used to update the issuer mirror balance. */
15
+ IssuerEncryptedAmount: string;
16
+ /** Blob — optional 66-byte ciphertext for the auditor. */
17
+ AuditorEncryptedAmount?: string | undefined;
18
+ /** Blob — 946-byte proof bundle (compact sigma + aggregated Bulletproof). */
19
+ ZKProof: string;
20
+ /** Blob — 33-byte Pedersen commitment to the transfer amount. */
21
+ AmountCommitment: string;
22
+ /** Blob — 33-byte Pedersen commitment to sender's spending balance. */
23
+ BalanceCommitment: string;
24
+ /** Vector256 — 1..8 credential IDs (conditional, non-empty when supplied). */
25
+ CredentialIDs?: string[] | undefined;
26
+ /** Fee in XRP (drops), base-10 integer string. */
27
+ Fee?: string | undefined;
28
+ /** Account sequence number. */
29
+ Sequence?: number | undefined;
30
+ }
31
+ export interface ConfidentialMptSend extends Readonly<ConfidentialMptSendProps> {
32
+ readonly TransactionType: 'ConfidentialMPTSend';
33
+ validate(): void;
34
+ toJSON(): Record<string, unknown>;
35
+ with(overrides: Partial<ConfidentialMptSendProps>): ConfidentialMptSend;
36
+ }
37
+ export declare function confidentialMptSend(props: ConfidentialMptSendProps): ConfidentialMptSend;
38
+ //# sourceMappingURL=confidential-mpt-send.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confidential-mpt-send.d.ts","sourceRoot":"","sources":["../../../src/fp/factories/confidential-mpt-send.ts"],"names":[],"mappings":"AA0KA,MAAM,WAAW,wBAAwB;IACvC,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mFAAmF;IACnF,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,iFAAiF;IACjF,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0EAA0E;IAC1E,0BAA0B,EAAE,MAAM,CAAC;IACnC,0EAA0E;IAC1E,qBAAqB,EAAE,MAAM,CAAC;IAC9B,0DAA0D;IAC1D,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,gBAAgB,EAAE,MAAM,CAAC;IACzB,uEAAuE;IACvE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IACrC,kDAAkD;IAClD,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,mBACf,SAAQ,QAAQ,CAAC,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC;IAChD,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,wBAAwB,CAAC,GAAG,mBAAmB,CAAC;CACzE;AA2BD,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,wBAAwB,GAC9B,mBAAmB,CA4KrB"}
@@ -0,0 +1,254 @@
1
+ /**
2
+ * Functional ConfidentialMptSend factory — frozen-object style.
3
+ *
4
+ * Sends MPT tokens to another account while keeping the transfer amount
5
+ * hidden on-ledger. The transferred amount is credited to the receiver's
6
+ * confidential inbox balance (`CB_IN`) — the receiver may later merge
7
+ * these funds into their spending balance via `ConfidentialMPTMergeInbox`.
8
+ *
9
+ * Validation happens at construction; there is no way to construct an
10
+ * invalid tx. Compare to the class-based equivalent, which exposes a
11
+ * separate `.validate()` method you must remember to call.
12
+ *
13
+ * import { confidentialMptSend } from 'xrplt/fp';
14
+ * const tx = confidentialMptSend({
15
+ * Account,
16
+ * MPTokenIssuanceID,
17
+ * Destination,
18
+ * SenderEncryptedAmount,
19
+ * DestinationEncryptedAmount,
20
+ * IssuerEncryptedAmount,
21
+ * ZKProof,
22
+ * AmountCommitment,
23
+ * BalanceCommitment,
24
+ * });
25
+ * const j = tx.toJSON();
26
+ * const tx2 = tx.with({ Fee: '100' });
27
+ *
28
+ * Requires the `ConfidentialTransfer` amendment.
29
+ *
30
+ * @see https://xrpl.org/docs/references/protocol/transactions/types/confidentialmptsend
31
+ * @see XLS-0096 §9 — Transaction: `ConfidentialMPTSend`
32
+ * (https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0096-confidential-mpt)
33
+ * @see xrpl.js — packages/xrpl/src/models/transactions/ConfidentialMPTSend.ts
34
+ *
35
+ * ## Divergences
36
+ *
37
+ * Compared with `src/transactions/confidential-mpt-send.ts`, this factory
38
+ * adds guards the class skips — and explicitly documents the two
39
+ * canonical guards that cannot be added in a zero-dependency package.
40
+ *
41
+ * - **`Account` is validated as a well-formed XRPL classic or X-address
42
+ * at construction time** (`src/validation/helpers.ts` `isAccount`,
43
+ * lines 55–60). The class delegates `Account` validation to its
44
+ * `TokenTransaction` → `Transaction` parent chain via `super.validate()`
45
+ * and never inspects `Account` directly. We re-implement the guard
46
+ * inline so a malformed Account is caught at construction.
47
+ * - Source: xrpl.js `validateBaseTransaction`
48
+ * (packages/xrpl/src/models/transactions/common.ts line 964).
49
+ * - Source: xrpl-dev-portal `confidentialmptsend.md` Fields table
50
+ * row for `Account`, JSON Type = `AccountID`.
51
+ *
52
+ * - **`Account` must NOT equal `Destination`** (XLS-0096 §9.4.1.4 mandates
53
+ * this as `temMALFORMED`; xrpl.js `validateConfidentialMPTSend` lines
54
+ * 97–101 checks it explicitly). The class API does NOT check this —
55
+ * it relies on `super.validate()` which never compares the two fields.
56
+ * - Source: XLS-0096 §9.4.1.4 Failure Conditions, item 4: the sender
57
+ * and destination accounts are the same (`temMALFORMED`).
58
+ * - Source: xrpl.js `ConfidentialMPTSend.ts` lines 97–101.
59
+ *
60
+ * - **`DestinationTag` is accepted and validated as a `UINT32`** when
61
+ * supplied. The class omits this field entirely
62
+ * (`ConfidentialMPTSendTxFields` declares no `DestinationTag`).
63
+ * - Source: XLS-0096 §9.2 Fields table, Internal Type = `UINT32`.
64
+ * - Source: xrpl.js `ConfidentialMPTSend.ts` lines 40, 114
65
+ * (`DestinationTag?: number`, `validateOptionalField(tx,
66
+ * 'DestinationTag', isNumber)`).
67
+ *
68
+ * - **`CredentialIDs` is structurally validated when supplied**: must be
69
+ * an array (not a single string), length must be in `[1, 8]`, each
70
+ * element must be a 64-character hex string (HASH256 / Vector256),
71
+ * and the array must contain no duplicates. The class declares the
72
+ * field but never inspects it. Per XLS-0096 §9.4.1 the empty-array
73
+ * case is `temMALFORMED`; per XLS-0096 §9.4.2.1 authorization checks
74
+ * on the credentials are runtime checks and not enforced here.
75
+ * - Source: XLS-0096 §9.4.1 Failure Conditions (temMALFORMED when
76
+ * CredentialIDs is empty, exceeds the maximum size, or contains
77
+ * duplicates).
78
+ * - Source: xrpl.js `validateCredentialsList` (common.ts line 1106)
79
+ * and `MAX_AUTHORIZED_CREDENTIALS = 8` (common.ts line 28).
80
+ * - Source: xrpl-dev-portal `confidentialmptsend.md` Fields table
81
+ * row for `CredentialIDs`, Internal Type = `Vector256`.
82
+ *
83
+ * - **`AuditorEncryptedAmount` is validated as exactly 132 hex chars**
84
+ * when supplied. The class already performs this check; we mirror it
85
+ * here for consistency with the other ciphertext fields.
86
+ *
87
+ * - **`Account` must NOT be the issuer of `MPTokenIssuanceID`
88
+ * (KNOWN LIMITATION — NOT IMPLEMENTED)**. XLS-0096 §9.4.1.2 mandates
89
+ * this as `temMALFORMED`:
90
+ *
91
+ * > "The sender is the issuer of the MPT. (`temMALFORMED`)"
92
+ *
93
+ * xrpl.js's `validateConfidentialMPTSend` (lines 104–108) enforces
94
+ * this via its `isMPTIssuer(account, mptIssuanceID)` helper (common.ts
95
+ * line 632), which calls `decodeAccountID` (base58 + double-SHA-256
96
+ * checksum decoding of the classic address) and compares the
97
+ * resulting 20-byte AccountID against `mptIssuanceID.slice(8)` (the
98
+ * 40-hex-char issuer portion after the 8-hex-char sequence prefix).
99
+ *
100
+ * This factory cannot add this guard because the package is
101
+ * **zero-dependency** — base58 + checksum decoding would require
102
+ * either inlining a ~50-line codec or pulling in
103
+ * `ripple-address-codec`, neither of which fits the scope of a
104
+ * single-tx factory. The class API also skips this guard (it
105
+ * relies on `super.validate()` which does not perform the
106
+ * issuer check), so this is not a coverage regression relative
107
+ * to the class — but it remains a documented gap that consumers
108
+ * must validate at the integration layer (e.g. via the ledger
109
+ * submission result).
110
+ * - Source: XLS-0096 §9.4.1.2 Failure Conditions (Data Verification),
111
+ * item 2: `temMALFORMED` when the sender is the issuer.
112
+ * - Source: xrpl-dev-portal `confidentialmptsend.md` Error Cases
113
+ * table, `temMALFORMED` row.
114
+ * - Source: xrpl.js `ConfidentialMPTSend.ts` lines 104–108
115
+ * (`isMPTIssuer` guard) and `common.ts` lines 632–646
116
+ * (`isMPTIssuer` implementation, including the base58 + AccountID
117
+ * decoding dependency).
118
+ *
119
+ * - **`Destination` must NOT be the issuer of `MPTokenIssuanceID`
120
+ * (KNOWN LIMITATION — NOT IMPLEMENTED)**. Same root cause and
121
+ * mitigation as the sender-issuer guard above.
122
+ * - Source: XLS-0096 §9.4.1.3 Failure Conditions (Data Verification),
123
+ * item 3: `temMALFORMED` when the destination is the issuer.
124
+ * - Source: xrpl.js `ConfidentialMPTSend.ts` lines 109–113
125
+ * (`isMPTIssuer` guard).
126
+ */
127
+ import { isAccount, isArray, isHex, isNumber, isString, } from '../../validation/helpers.js';
128
+ import { ValidationError } from '../../errors.js';
129
+ import { buildFrozenTx, mergeForWith, require } from '../shape.js';
130
+ // ─── Spec constants ──────────────────────────────────────────────────
131
+ // `MPTokenIssuanceID` is a `UINT192`, hex-encoded to exactly 48 chars
132
+ // (192 / 8 = 24 bytes = 48 hex chars). XLS-0096 §9.2; xrpl-dev-portal
133
+ // `confidentialmptsend.md` Fields table.
134
+ const MPT_ISSUANCE_ID_HEX_LENGTH = 48;
135
+ // Pedersen commitments are 33-byte compressed EC points (BLOB).
136
+ // XLS-0096 §9.2 (AmountCommitment / BalanceCommitment), Internal Type = BLOB;
137
+ // xrpl.js `CONFIDENTIAL_EC_POINT_BYTES = 33`.
138
+ const CONFIDENTIAL_EC_POINT_HEX_LENGTH = 66;
139
+ // ElGamal ciphertexts are 66 bytes (two compressed EC points).
140
+ // XLS-0096 §9.2; xrpl.js `CONFIDENTIAL_ELGAMAL_CIPHERTEXT_BYTES = 66`.
141
+ const CONFIDENTIAL_CIPHERTEXT_HEX_LENGTH = 132;
142
+ // ConfidentialMPTSend ZKProof is a 946-byte bundle (192-byte compact
143
+ // sigma + 754-byte aggregated Bulletproof). XLS-0096 §9.2 / §9.4.1.5
144
+ // mandates the length exactly; xrpl.js `CONFIDENTIAL_SEND_PROOF_BYTES = 946`.
145
+ const CONFIDENTIAL_SEND_PROOF_HEX_LENGTH = 2 * 946;
146
+ // Vector256 = 64 hex chars per credential ID. XLS-70 / XLS-0096 §9.2.
147
+ const CREDENTIAL_ID_HEX_LENGTH = 64;
148
+ // Maximum number of credential IDs per transaction (XLS-70). XLS-0096
149
+ // §9.4.1 requires CredentialIDs not to exceed the maximum size;
150
+ // xrpl.js `MAX_AUTHORIZED_CREDENTIALS = 8`.
151
+ const MAX_AUTHORIZED_CREDENTIALS = 8;
152
+ // DestinationTag is a UINT32 (0 .. 2^32 − 1).
153
+ const MAX_UINT32 = 0xffffffff;
154
+ // ─── Helpers ─────────────────────────────────────────────────────────
155
+ /**
156
+ * Validate a hex blob of a specific byte length (length = 2 × bytes).
157
+ */
158
+ function requireHexOfByteLength(field, value, bytes, errorPrefix) {
159
+ const hexLen = bytes * 2;
160
+ if (!isString(value) ||
161
+ !isHex(value) ||
162
+ value.length !== hexLen) {
163
+ throw new ValidationError(`${errorPrefix}: ${field} must be a ${hexLen}-character hex string (${bytes} bytes)`);
164
+ }
165
+ }
166
+ // ─── Factory ─────────────────────────────────────────────────────────
167
+ export function confidentialMptSend(props) {
168
+ // ── Account ── required, must be a valid XRPL classic/X-address.
169
+ require(props.Account, 'ConfidentialMPTSend: Account is required', isAccount);
170
+ // ── MPTokenIssuanceID ── required, exactly 48-char hex (UINT192).
171
+ requireHexOfByteLength('MPTokenIssuanceID', props.MPTokenIssuanceID, MPT_ISSUANCE_ID_HEX_LENGTH / 2, 'ConfidentialMPTSend');
172
+ // ── Destination ── required, must be a valid XRPL classic/X-address.
173
+ require(props.Destination, 'ConfidentialMPTSend: Destination is required', isAccount);
174
+ // ── Account != Destination ── (XLS-0096 §9.4.1.4 / xrpl.js).
175
+ if (props.Account === props.Destination) {
176
+ throw new ValidationError('ConfidentialMPTSend: Destination and Account must be different');
177
+ }
178
+ // ── DestinationTag ── optional, UINT32.
179
+ if (props.DestinationTag !== undefined) {
180
+ if (!isNumber(props.DestinationTag) ||
181
+ !Number.isInteger(props.DestinationTag) ||
182
+ props.DestinationTag < 0 ||
183
+ props.DestinationTag > MAX_UINT32) {
184
+ throw new ValidationError(`ConfidentialMPTSend: DestinationTag must be an integer in [0, ${MAX_UINT32}]`);
185
+ }
186
+ }
187
+ // ── SenderEncryptedAmount ── required, 66-byte ciphertext.
188
+ requireHexOfByteLength('SenderEncryptedAmount', props.SenderEncryptedAmount, CONFIDENTIAL_CIPHERTEXT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
189
+ // ── DestinationEncryptedAmount ── required, 66-byte ciphertext.
190
+ requireHexOfByteLength('DestinationEncryptedAmount', props.DestinationEncryptedAmount, CONFIDENTIAL_CIPHERTEXT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
191
+ // ── IssuerEncryptedAmount ── required, 66-byte ciphertext.
192
+ requireHexOfByteLength('IssuerEncryptedAmount', props.IssuerEncryptedAmount, CONFIDENTIAL_CIPHERTEXT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
193
+ // ── AuditorEncryptedAmount ── optional, 66-byte ciphertext.
194
+ if (props.AuditorEncryptedAmount !== undefined) {
195
+ requireHexOfByteLength('AuditorEncryptedAmount', props.AuditorEncryptedAmount, CONFIDENTIAL_CIPHERTEXT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
196
+ }
197
+ // ── ZKProof ── required, 946-byte proof bundle.
198
+ requireHexOfByteLength('ZKProof', props.ZKProof, CONFIDENTIAL_SEND_PROOF_HEX_LENGTH / 2, 'ConfidentialMPTSend');
199
+ // ── AmountCommitment ── required, 33-byte compressed EC point.
200
+ requireHexOfByteLength('AmountCommitment', props.AmountCommitment, CONFIDENTIAL_EC_POINT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
201
+ // ── BalanceCommitment ── required, 33-byte compressed EC point.
202
+ requireHexOfByteLength('BalanceCommitment', props.BalanceCommitment, CONFIDENTIAL_EC_POINT_HEX_LENGTH / 2, 'ConfidentialMPTSend');
203
+ // ── CredentialIDs ── optional, but when present must be a non-empty
204
+ // array of unique 64-char hex strings of length 1..8.
205
+ if (props.CredentialIDs !== undefined) {
206
+ if (!isArray(props.CredentialIDs)) {
207
+ throw new ValidationError('ConfidentialMPTSend: CredentialIDs must be an array');
208
+ }
209
+ if (props.CredentialIDs.length === 0) {
210
+ throw new ValidationError('ConfidentialMPTSend: CredentialIDs cannot be an empty array');
211
+ }
212
+ if (props.CredentialIDs.length > MAX_AUTHORIZED_CREDENTIALS) {
213
+ throw new ValidationError(`ConfidentialMPTSend: CredentialIDs cannot exceed ${MAX_AUTHORIZED_CREDENTIALS} elements`);
214
+ }
215
+ const seen = new Set();
216
+ for (const cid of props.CredentialIDs) {
217
+ if (!isString(cid) ||
218
+ !isHex(cid) ||
219
+ cid.length !== CREDENTIAL_ID_HEX_LENGTH) {
220
+ throw new ValidationError(`ConfidentialMPTSend: each CredentialID must be a ${CREDENTIAL_ID_HEX_LENGTH}-character hex string (Vector256)`);
221
+ }
222
+ if (seen.has(cid)) {
223
+ throw new ValidationError('ConfidentialMPTSend: CredentialIDs cannot contain duplicates');
224
+ }
225
+ seen.add(cid);
226
+ }
227
+ }
228
+ // NOTE: Account must NOT be the issuer of MPTokenIssuanceID
229
+ // (XLS-0096 §9.4.1.2 / xrpl.js `isMPTIssuer` guard). Not enforced
230
+ // here — see `## Divergences` header for why.
231
+ // NOTE: Destination must NOT be the issuer of MPTokenIssuanceID
232
+ // (XLS-0096 §9.4.1.3 / xrpl.js `isMPTIssuer` guard). Not enforced
233
+ // here — see `## Divergences` header for why.
234
+ return buildFrozenTx('ConfidentialMPTSend', props, {
235
+ validate() {
236
+ // Validated at construction.
237
+ },
238
+ toJSON() {
239
+ const json = {};
240
+ for (const k of Object.keys(this)) {
241
+ if (k === 'validate' || k === 'toJSON' || k === 'with')
242
+ continue;
243
+ const v = this[k];
244
+ if (v !== undefined)
245
+ json[k] = v;
246
+ }
247
+ return json;
248
+ },
249
+ with(overrides) {
250
+ return confidentialMptSend(mergeForWith(this, overrides));
251
+ },
252
+ });
253
+ }
254
+ //# sourceMappingURL=confidential-mpt-send.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confidential-mpt-send.js","sourceRoot":"","sources":["../../../src/fp/factories/confidential-mpt-send.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6HG;AACH,OAAO,EACL,SAAS,EACT,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAQ,GACT,MAAM,6BAA6B,CAAC;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AClB,MAAM,IAAI,eAAe,CACvB,8DAA8D,CAC/D,CAAC;YACJ,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC;IACH,CAAC;IAED,4DAA4D;IAC5D,kEAAkE;IAClE,8CAA8C;IAE9C,gEAAgE;IAChE,kEAAkE;IAClE,8CAA8C;IAE9C,OAAO,aAAa,CAClB,qBAAqB,EACrB,KAAK,EACL;QACE,QAAQ;YACN,6BAA6B;QAC/B,CAAC;QACD,MAAM;YACJ,MAAM,IAAI,GAA4B,EAAE,CAAC;YACzC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,IAAI,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,MAAM;oBAAE,SAAS;gBACjE,MAAM,CAAC,GAAI,IAA2C,CAAC,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,KAAK,SAAS;oBAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAEF,SAA4C;YAE5C,OAAO,mBAAmB,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;QAC5D,CAAC;KACF,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,23 @@
1
+ export interface CredentialAcceptProps {
2
+ /** The subject of the credential (the Account submitting the tx). */
3
+ Account: string;
4
+ /** The issuer of the credential. XRPL classic or X-address. */
5
+ Issuer: string;
6
+ /**
7
+ * Hex-encoded identifier of the credential type. 1–64 bytes
8
+ * (2–128 hex chars), non-empty.
9
+ */
10
+ CredentialType: string;
11
+ /** Bit-flags for this transaction. */
12
+ Flags?: number | undefined;
13
+ Fee?: string | undefined;
14
+ Sequence?: number | undefined;
15
+ }
16
+ export interface CredentialAccept extends Readonly<CredentialAcceptProps> {
17
+ readonly TransactionType: 'CredentialAccept';
18
+ validate(): void;
19
+ toJSON(): Record<string, unknown>;
20
+ with(overrides: Partial<CredentialAcceptProps>): CredentialAccept;
21
+ }
22
+ export declare function credentialAccept(props: CredentialAcceptProps): CredentialAccept;
23
+ //# sourceMappingURL=credential-accept.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-accept.d.ts","sourceRoot":"","sources":["../../../src/fp/factories/credential-accept.ts"],"names":[],"mappings":"AAqFA,MAAM,WAAW,qBAAqB;IACpC,qEAAqE;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,MAAM,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,gBACf,SAAQ,QAAQ,CAAC,qBAAqB,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC;IAC7C,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,gBAAgB,CAAC;CACnE;AA6BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,gBAAgB,CAuD/E"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * Functional CredentialAccept factory — frozen-object style.
3
+ *
4
+ * Accepts a credential that was provisionally issued to the Account.
5
+ * Validation happens at construction; there is no way to construct an
6
+ * invalid tx.
7
+ *
8
+ * import { credentialAccept } from 'xrplt/fp';
9
+ * const tx = credentialAccept({
10
+ * Account,
11
+ * Issuer: iss,
12
+ * CredentialType: '6D795F63726564656E7469616C',
13
+ * });
14
+ * const j = tx.toJSON();
15
+ *
16
+ * Affected amendments:
17
+ * - `Credentials` — introduces this transaction type (XLS-0070 §4).
18
+ *
19
+ * @see https://xrpl.org/docs/references/protocol/transactions/types/credentialaccept
20
+ * @see https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0070-credentials
21
+ *
22
+ * ## Divergences
23
+ *
24
+ * The class-based API at `src/transactions/credential-accept.ts` is
25
+ * missing three rules that the canonical sources require. The factory
26
+ * adds them:
27
+ *
28
+ * 1. `CredentialType` must not be an empty string.
29
+ * The class only checks `isString(this.CredentialType)`, so `""`
30
+ * passes. XLS-0070 §2.1.3: "It has a maximum length of 64 bytes,
31
+ * and cannot be an empty string." xrpl.js `validateCredentialType`
32
+ * rejects `tx.CredentialType.length === 0`. xrpl-dev-portal's
33
+ * `credentialaccept.md` field table likewise lists the minimum
34
+ * length as 1 byte.
35
+ * Source: XLS-0070 §2.1.3; xrpl.js
36
+ * `models/transactions/common.ts:1061–1086`
37
+ * (`validateCredentialType`).
38
+ *
39
+ * 2. `CredentialType` must be hex-encoded.
40
+ * The class accepts any string (e.g. `"not-hex!"`). The spec
41
+ * encodes `CredentialType` as a `Blob` (XLS-0070 §2.1 field table
42
+ * row for `CredentialType`: Internal Type `Blob`). xrpl.js
43
+ * `validateCredentialType` enforces `HEX_REGEX.test`.
44
+ * Source: XLS-0070 §2.1 field table; xrpl.js
45
+ * `models/transactions/common.ts:1088–1092`
46
+ * (`validateCredentialType`).
47
+ *
48
+ * 3. `CredentialType` length must be at most 128 hex chars (64 bytes).
49
+ * The class has no length check. XLS-0070 §2.1.3 caps the value at
50
+ * 64 bytes; the hex-encoded form is therefore at most 128 chars.
51
+ * xrpl.js enforces `MAX_CREDENTIAL_TYPE_LENGTH = 128`
52
+ * (`common.ts:30`). The hex form must also be even-length to round-
53
+ * trip cleanly through the binary codec — the factory enforces
54
+ * even length explicitly so users get a clear error.
55
+ * Source: XLS-0070 §2.1.3; xrpl.js
56
+ * `models/transactions/common.ts:30` and
57
+ * `models/transactions/common.ts:1082–1086`.
58
+ *
59
+ * 4. `Account` is explicitly required and validated as a non-empty
60
+ * string.
61
+ * The class inherits its `Account` handling from
62
+ * `Transaction.validate()` via `super.validate()` and never
63
+ * re-checks the field. The factory has no inheritance chain, so
64
+ * the requirement is enforced here. xrpl.js enforces the same via
65
+ * `validateRequiredField(tx, 'Account', isString)`.
66
+ * Source: XLS-0070 §4.1 (Account is required, JSON Type Address);
67
+ * xrpl.js `models/transactions/CredentialAccept.ts:39`.
68
+ *
69
+ * Note on `Issuer`: the class uses `isAccount` (format-only XRPL
70
+ * address check). This is stricter than xrpl.js's `isString` and is
71
+ * retained here — `Issuer` is typed `AccountID` in XLS-0070 §4.1, so
72
+ * the format check is correct.
73
+ */
74
+ import { isAccount, isHex, isString } from '../../validation/helpers.js';
75
+ import { ValidationError } from '../../errors.js';
76
+ import { buildFrozenTx, mergeForWith, require } from '../shape.js';
77
+ // ─── Spec constants ──────────────────────────────────────────────────
78
+ // CredentialType is a hex-encoded Blob capped at 64 bytes (XLS-0070 §2.1.3).
79
+ const MAX_CREDENTIAL_TYPE_BYTES = 64;
80
+ const MAX_CREDENTIAL_TYPE_HEX_LENGTH = MAX_CREDENTIAL_TYPE_BYTES * 2;
81
+ // ─── Helpers ─────────────────────────────────────────────────────────
82
+ function validateCredentialTypeHex(value) {
83
+ if (value.length === 0) {
84
+ throw new ValidationError('CredentialAccept: CredentialType cannot be an empty string');
85
+ }
86
+ if (!isHex(value)) {
87
+ throw new ValidationError('CredentialAccept: CredentialType must be encoded in hex');
88
+ }
89
+ if (value.length % 2 !== 0) {
90
+ throw new ValidationError('CredentialAccept: CredentialType must be a hex string with an even number of characters');
91
+ }
92
+ if (value.length > MAX_CREDENTIAL_TYPE_HEX_LENGTH) {
93
+ throw new ValidationError(`CredentialAccept: CredentialType length cannot be > ${MAX_CREDENTIAL_TYPE_HEX_LENGTH} (64 bytes)`);
94
+ }
95
+ }
96
+ // ─── Factory ─────────────────────────────────────────────────────────
97
+ export function credentialAccept(props) {
98
+ // ── Account ── required, must be a non-empty string.
99
+ require(props.Account, 'CredentialAccept: Account is required', isString);
100
+ if (props.Account.length === 0) {
101
+ throw new ValidationError('CredentialAccept: Account is required');
102
+ }
103
+ // ── Issuer ── required, must look like an XRPL classic or X-address.
104
+ if (!isAccount(props.Issuer)) {
105
+ throw new ValidationError('CredentialAccept: missing or invalid Issuer');
106
+ }
107
+ // ── CredentialType ── required, hex, non-empty, even-length, ≤ 64 bytes.
108
+ if (props.CredentialType === undefined) {
109
+ throw new ValidationError('CredentialAccept: missing field CredentialType');
110
+ }
111
+ if (!isString(props.CredentialType)) {
112
+ throw new ValidationError('CredentialAccept: CredentialType must be a string');
113
+ }
114
+ validateCredentialTypeHex(props.CredentialType);
115
+ return buildFrozenTx('CredentialAccept', props, {
116
+ validate() {
117
+ // Validated at construction.
118
+ },
119
+ toJSON() {
120
+ const json = {};
121
+ for (const k of Object.keys(this)) {
122
+ if (k === 'validate' || k === 'toJSON' || k === 'with')
123
+ continue;
124
+ const v = this[k];
125
+ if (v !== undefined)
126
+ json[k] = v;
127
+ }
128
+ return json;
129
+ },
130
+ with(overrides) {
131
+ return credentialAccept(mergeForWith(this, overrides));
132
+ },
133
+ });
134
+ }
135
+ //# sourceMappingURL=credential-accept.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-accept.js","sourceRoot":"","sources":["../../../src/fp/factories/credential-accept.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEnE,wEAAwE;AAExE,6EAA6E;AAC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C,cAAc,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,eAAe,CACvB,mDAAmD,CACpD,CAAC;IACJ,CAAC;IACD,yBAAyB,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAEhD,OAAO,aAAa,CAClB,kBAAkB,EAClB,KAAK,EACL;QACE,QAAQ;YACN,6BAA6B;QAC/B,CAAC;QACD,MAAM;YACJ,MAAM,IAAI,GAA4B,EAAE,CAAC;YACzC,KAAK,MAAM,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBAClC,IAAI,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,QAAQ,IAAI,CAAC,KAAK,MAAM;oBAAE,SAAS;gBACjE,MAAM,CAAC,GAAI,IAA2C,CAAC,CAAC,CAAC,CAAC;gBAC1D,IAAI,CAAC,KAAK,SAAS;oBAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,CAEF,SAAyC;YAEzC,OAAO,gBAAgB,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;QACzD,CAAC;KACF,CACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,24 @@
1
+ export interface CredentialCreateProps {
2
+ /** The issuer of the credential. */
3
+ Account: string;
4
+ /** The subject of the credential. */
5
+ Subject: string;
6
+ /** Hex-encoded credential type, 1–64 bytes. */
7
+ CredentialType: string;
8
+ /** Optional expiration (seconds since Ripple Epoch). */
9
+ Expiration?: number | undefined;
10
+ /** Optional hex-encoded URI, 1–256 bytes. */
11
+ URI?: string | undefined;
12
+ /** Bit-flags for this transaction. (No flags are defined for this tx.) */
13
+ Flags?: number | undefined;
14
+ Fee?: string | undefined;
15
+ Sequence?: number | undefined;
16
+ }
17
+ export interface CredentialCreate extends Readonly<CredentialCreateProps> {
18
+ readonly TransactionType: 'CredentialCreate';
19
+ validate(): void;
20
+ toJSON(): Record<string, unknown>;
21
+ with(overrides: Partial<CredentialCreateProps>): CredentialCreate;
22
+ }
23
+ export declare function credentialCreate(props: CredentialCreateProps): CredentialCreate;
24
+ //# sourceMappingURL=credential-create.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential-create.d.ts","sourceRoot":"","sources":["../../../src/fp/factories/credential-create.ts"],"names":[],"mappings":"AAkHA,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,6CAA6C;IAC7C,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,gBACf,SAAQ,QAAQ,CAAC,qBAAqB,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,kBAAkB,CAAC;IAC7C,QAAQ,IAAI,IAAI,CAAC;IACjB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,qBAAqB,CAAC,GAAG,gBAAgB,CAAC;CACnE;AA8ED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,qBAAqB,GAC3B,gBAAgB,CAoElB"}