xrpl 2.12.0 → 2.14.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 (433) hide show
  1. package/README.md +114 -5
  2. package/build/xrpl-latest-min.js +1 -1
  3. package/build/xrpl-latest-min.js.map +1 -1
  4. package/build/xrpl-latest.js +5920 -6205
  5. package/build/xrpl-latest.js.map +1 -1
  6. package/dist/npm/Wallet/defaultFaucets.d.ts +1 -3
  7. package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
  8. package/dist/npm/Wallet/defaultFaucets.js +0 -10
  9. package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
  10. package/dist/npm/client/index.d.ts +2 -1
  11. package/dist/npm/client/index.d.ts.map +1 -1
  12. package/dist/npm/client/index.js.map +1 -1
  13. package/dist/npm/client/partialPayment.d.ts.map +1 -1
  14. package/dist/npm/client/partialPayment.js.map +1 -1
  15. package/dist/npm/models/ledger/AMM.d.ts +2 -4
  16. package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
  17. package/dist/npm/models/ledger/AccountRoot.d.ts +2 -4
  18. package/dist/npm/models/ledger/AccountRoot.d.ts.map +1 -1
  19. package/dist/npm/models/ledger/AccountRoot.js.map +1 -1
  20. package/dist/npm/models/ledger/Amendments.d.ts +2 -2
  21. package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
  22. package/dist/npm/models/ledger/BaseLedgerEntry.d.ts +9 -1
  23. package/dist/npm/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
  24. package/dist/npm/models/ledger/Bridge.d.ts +3 -5
  25. package/dist/npm/models/ledger/Bridge.d.ts.map +1 -1
  26. package/dist/npm/models/ledger/Check.d.ts +2 -2
  27. package/dist/npm/models/ledger/Check.d.ts.map +1 -1
  28. package/dist/npm/models/ledger/DID.d.ts +11 -0
  29. package/dist/npm/models/ledger/DID.d.ts.map +1 -0
  30. package/dist/npm/models/ledger/DID.js +3 -0
  31. package/dist/npm/models/ledger/DID.js.map +1 -0
  32. package/dist/npm/models/ledger/DepositPreauth.d.ts +2 -4
  33. package/dist/npm/models/ledger/DepositPreauth.d.ts.map +1 -1
  34. package/dist/npm/models/ledger/DirectoryNode.d.ts +2 -2
  35. package/dist/npm/models/ledger/DirectoryNode.d.ts.map +1 -1
  36. package/dist/npm/models/ledger/Escrow.d.ts +2 -4
  37. package/dist/npm/models/ledger/Escrow.d.ts.map +1 -1
  38. package/dist/npm/models/ledger/FeeSettings.d.ts +2 -2
  39. package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
  40. package/dist/npm/models/ledger/Ledger.d.ts +3 -3
  41. package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
  42. package/dist/npm/models/ledger/LedgerEntry.d.ts +2 -1
  43. package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
  44. package/dist/npm/models/ledger/LedgerHashes.d.ts +2 -2
  45. package/dist/npm/models/ledger/LedgerHashes.d.ts.map +1 -1
  46. package/dist/npm/models/ledger/NFTokenOffer.d.ts +2 -4
  47. package/dist/npm/models/ledger/NFTokenOffer.d.ts.map +1 -1
  48. package/dist/npm/models/ledger/NFTokenPage.d.ts +2 -4
  49. package/dist/npm/models/ledger/NFTokenPage.d.ts.map +1 -1
  50. package/dist/npm/models/ledger/NegativeUNL.d.ts +2 -2
  51. package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
  52. package/dist/npm/models/ledger/Offer.d.ts +2 -4
  53. package/dist/npm/models/ledger/Offer.d.ts.map +1 -1
  54. package/dist/npm/models/ledger/Offer.js.map +1 -1
  55. package/dist/npm/models/ledger/PayChannel.d.ts +2 -4
  56. package/dist/npm/models/ledger/PayChannel.d.ts.map +1 -1
  57. package/dist/npm/models/ledger/RippleState.d.ts +2 -4
  58. package/dist/npm/models/ledger/RippleState.d.ts.map +1 -1
  59. package/dist/npm/models/ledger/RippleState.js.map +1 -1
  60. package/dist/npm/models/ledger/SignerList.d.ts +2 -4
  61. package/dist/npm/models/ledger/SignerList.d.ts.map +1 -1
  62. package/dist/npm/models/ledger/SignerList.js.map +1 -1
  63. package/dist/npm/models/ledger/Ticket.d.ts +2 -4
  64. package/dist/npm/models/ledger/Ticket.d.ts.map +1 -1
  65. package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts +2 -4
  66. package/dist/npm/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
  67. package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +2 -4
  68. package/dist/npm/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
  69. package/dist/npm/models/ledger/index.d.ts +3 -2
  70. package/dist/npm/models/ledger/index.d.ts.map +1 -1
  71. package/dist/npm/models/ledger/index.js.map +1 -1
  72. package/dist/npm/models/methods/accountObjects.d.ts +4 -3
  73. package/dist/npm/models/methods/accountObjects.d.ts.map +1 -1
  74. package/dist/npm/models/methods/index.d.ts +4 -3
  75. package/dist/npm/models/methods/index.d.ts.map +1 -1
  76. package/dist/npm/models/methods/ledger.d.ts +2 -0
  77. package/dist/npm/models/methods/ledger.d.ts.map +1 -1
  78. package/dist/npm/models/methods/ledgerData.d.ts +2 -1
  79. package/dist/npm/models/methods/ledgerData.d.ts.map +1 -1
  80. package/dist/npm/models/methods/ledgerEntry.d.ts +3 -2
  81. package/dist/npm/models/methods/ledgerEntry.d.ts.map +1 -1
  82. package/dist/npm/models/methods/serverDefinitions.d.ts +32 -0
  83. package/dist/npm/models/methods/serverDefinitions.d.ts.map +1 -0
  84. package/dist/npm/models/methods/serverDefinitions.js +3 -0
  85. package/dist/npm/models/methods/serverDefinitions.js.map +1 -0
  86. package/dist/npm/models/methods/tx.d.ts +5 -2
  87. package/dist/npm/models/methods/tx.d.ts.map +1 -1
  88. package/dist/npm/models/transactions/DIDDelete.d.ts +6 -0
  89. package/dist/npm/models/transactions/DIDDelete.d.ts.map +1 -0
  90. package/dist/npm/models/transactions/DIDDelete.js +9 -0
  91. package/dist/npm/models/transactions/DIDDelete.js.map +1 -0
  92. package/dist/npm/models/transactions/DIDSet.d.ts +9 -0
  93. package/dist/npm/models/transactions/DIDSet.d.ts.map +1 -0
  94. package/dist/npm/models/transactions/DIDSet.js +18 -0
  95. package/dist/npm/models/transactions/DIDSet.js.map +1 -0
  96. package/dist/npm/models/transactions/NFTokenBurn.d.ts +3 -3
  97. package/dist/npm/models/transactions/NFTokenBurn.d.ts.map +1 -1
  98. package/dist/npm/models/transactions/NFTokenBurn.js +2 -4
  99. package/dist/npm/models/transactions/NFTokenBurn.js.map +1 -1
  100. package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts +3 -3
  101. package/dist/npm/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
  102. package/dist/npm/models/transactions/NFTokenCreateOffer.js +2 -0
  103. package/dist/npm/models/transactions/NFTokenCreateOffer.js.map +1 -1
  104. package/dist/npm/models/transactions/NFTokenMint.d.ts +2 -2
  105. package/dist/npm/models/transactions/NFTokenMint.d.ts.map +1 -1
  106. package/dist/npm/models/transactions/NFTokenMint.js +1 -0
  107. package/dist/npm/models/transactions/NFTokenMint.js.map +1 -1
  108. package/dist/npm/models/transactions/UNLModify.d.ts +2 -1
  109. package/dist/npm/models/transactions/UNLModify.d.ts.map +1 -1
  110. package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
  111. package/dist/npm/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
  112. package/dist/npm/models/transactions/XChainAccountCreateCommit.js +1 -2
  113. package/dist/npm/models/transactions/XChainAccountCreateCommit.js.map +1 -1
  114. package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
  115. package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
  116. package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js +4 -4
  117. package/dist/npm/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
  118. package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
  119. package/dist/npm/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
  120. package/dist/npm/models/transactions/XChainAddClaimAttestation.js +4 -4
  121. package/dist/npm/models/transactions/XChainAddClaimAttestation.js.map +1 -1
  122. package/dist/npm/models/transactions/XChainClaim.d.ts +2 -2
  123. package/dist/npm/models/transactions/XChainClaim.d.ts.map +1 -1
  124. package/dist/npm/models/transactions/XChainClaim.js +1 -1
  125. package/dist/npm/models/transactions/XChainClaim.js.map +1 -1
  126. package/dist/npm/models/transactions/XChainCommit.d.ts +2 -2
  127. package/dist/npm/models/transactions/XChainCommit.d.ts.map +1 -1
  128. package/dist/npm/models/transactions/XChainCommit.js +1 -1
  129. package/dist/npm/models/transactions/XChainCommit.js.map +1 -1
  130. package/dist/npm/models/transactions/XChainCreateClaimID.d.ts +2 -2
  131. package/dist/npm/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
  132. package/dist/npm/models/transactions/XChainCreateClaimID.js +1 -1
  133. package/dist/npm/models/transactions/XChainCreateClaimID.js.map +1 -1
  134. package/dist/npm/models/transactions/accountDelete.d.ts +2 -2
  135. package/dist/npm/models/transactions/accountDelete.d.ts.map +1 -1
  136. package/dist/npm/models/transactions/accountDelete.js +2 -11
  137. package/dist/npm/models/transactions/accountDelete.js.map +1 -1
  138. package/dist/npm/models/transactions/accountSet.d.ts +2 -2
  139. package/dist/npm/models/transactions/accountSet.d.ts.map +1 -1
  140. package/dist/npm/models/transactions/accountSet.js +1 -5
  141. package/dist/npm/models/transactions/accountSet.js.map +1 -1
  142. package/dist/npm/models/transactions/checkCreate.d.ts +2 -2
  143. package/dist/npm/models/transactions/checkCreate.d.ts.map +1 -1
  144. package/dist/npm/models/transactions/checkCreate.js +2 -10
  145. package/dist/npm/models/transactions/checkCreate.js.map +1 -1
  146. package/dist/npm/models/transactions/common.d.ts +3 -1
  147. package/dist/npm/models/transactions/common.d.ts.map +1 -1
  148. package/dist/npm/models/transactions/common.js +7 -1
  149. package/dist/npm/models/transactions/common.js.map +1 -1
  150. package/dist/npm/models/transactions/escrowCancel.d.ts +2 -2
  151. package/dist/npm/models/transactions/escrowCancel.d.ts.map +1 -1
  152. package/dist/npm/models/transactions/escrowCancel.js +1 -6
  153. package/dist/npm/models/transactions/escrowCancel.js.map +1 -1
  154. package/dist/npm/models/transactions/escrowCreate.d.ts +2 -2
  155. package/dist/npm/models/transactions/escrowCreate.d.ts.map +1 -1
  156. package/dist/npm/models/transactions/escrowCreate.js +2 -10
  157. package/dist/npm/models/transactions/escrowCreate.js.map +1 -1
  158. package/dist/npm/models/transactions/escrowFinish.d.ts +2 -2
  159. package/dist/npm/models/transactions/escrowFinish.d.ts.map +1 -1
  160. package/dist/npm/models/transactions/escrowFinish.js +1 -6
  161. package/dist/npm/models/transactions/escrowFinish.js.map +1 -1
  162. package/dist/npm/models/transactions/index.d.ts +3 -1
  163. package/dist/npm/models/transactions/index.d.ts.map +1 -1
  164. package/dist/npm/models/transactions/index.js.map +1 -1
  165. package/dist/npm/models/transactions/payment.d.ts +2 -2
  166. package/dist/npm/models/transactions/payment.d.ts.map +1 -1
  167. package/dist/npm/models/transactions/payment.js +2 -9
  168. package/dist/npm/models/transactions/payment.js.map +1 -1
  169. package/dist/npm/models/transactions/paymentChannelCreate.d.ts +2 -2
  170. package/dist/npm/models/transactions/paymentChannelCreate.d.ts.map +1 -1
  171. package/dist/npm/models/transactions/paymentChannelCreate.js +2 -10
  172. package/dist/npm/models/transactions/paymentChannelCreate.js.map +1 -1
  173. package/dist/npm/models/transactions/transaction.d.ts +7 -1
  174. package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
  175. package/dist/npm/models/transactions/transaction.js +20 -12
  176. package/dist/npm/models/transactions/transaction.js.map +1 -1
  177. package/dist/npm/models/utils/flags.d.ts.map +1 -1
  178. package/dist/npm/models/utils/flags.js +17 -28
  179. package/dist/npm/models/utils/flags.js.map +1 -1
  180. package/dist/npm/snippets/src/bridgeTransfer.js +2 -2
  181. package/dist/npm/snippets/src/bridgeTransfer.js.map +1 -1
  182. package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -0
  183. package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -3
  184. package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
  185. package/dist/npm/src/Wallet/defaultFaucets.js +0 -10
  186. package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
  187. package/dist/npm/src/client/index.d.ts +2 -1
  188. package/dist/npm/src/client/index.d.ts.map +1 -1
  189. package/dist/npm/src/client/index.js.map +1 -1
  190. package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
  191. package/dist/npm/src/client/partialPayment.js.map +1 -1
  192. package/dist/npm/src/models/ledger/AMM.d.ts +2 -4
  193. package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
  194. package/dist/npm/src/models/ledger/AccountRoot.d.ts +2 -4
  195. package/dist/npm/src/models/ledger/AccountRoot.d.ts.map +1 -1
  196. package/dist/npm/src/models/ledger/AccountRoot.js.map +1 -1
  197. package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
  198. package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
  199. package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts +9 -1
  200. package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
  201. package/dist/npm/src/models/ledger/Bridge.d.ts +3 -5
  202. package/dist/npm/src/models/ledger/Bridge.d.ts.map +1 -1
  203. package/dist/npm/src/models/ledger/Check.d.ts +2 -2
  204. package/dist/npm/src/models/ledger/Check.d.ts.map +1 -1
  205. package/dist/npm/src/models/ledger/DID.d.ts +11 -0
  206. package/dist/npm/src/models/ledger/DID.d.ts.map +1 -0
  207. package/dist/npm/src/models/ledger/DID.js +3 -0
  208. package/dist/npm/src/models/ledger/DID.js.map +1 -0
  209. package/dist/npm/src/models/ledger/DepositPreauth.d.ts +2 -4
  210. package/dist/npm/src/models/ledger/DepositPreauth.d.ts.map +1 -1
  211. package/dist/npm/src/models/ledger/DirectoryNode.d.ts +2 -2
  212. package/dist/npm/src/models/ledger/DirectoryNode.d.ts.map +1 -1
  213. package/dist/npm/src/models/ledger/Escrow.d.ts +2 -4
  214. package/dist/npm/src/models/ledger/Escrow.d.ts.map +1 -1
  215. package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -2
  216. package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
  217. package/dist/npm/src/models/ledger/Ledger.d.ts +3 -3
  218. package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
  219. package/dist/npm/src/models/ledger/LedgerEntry.d.ts +2 -1
  220. package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
  221. package/dist/npm/src/models/ledger/LedgerHashes.d.ts +2 -2
  222. package/dist/npm/src/models/ledger/LedgerHashes.d.ts.map +1 -1
  223. package/dist/npm/src/models/ledger/NFTokenOffer.d.ts +2 -4
  224. package/dist/npm/src/models/ledger/NFTokenOffer.d.ts.map +1 -1
  225. package/dist/npm/src/models/ledger/NFTokenPage.d.ts +2 -4
  226. package/dist/npm/src/models/ledger/NFTokenPage.d.ts.map +1 -1
  227. package/dist/npm/src/models/ledger/NegativeUNL.d.ts +2 -2
  228. package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
  229. package/dist/npm/src/models/ledger/Offer.d.ts +2 -4
  230. package/dist/npm/src/models/ledger/Offer.d.ts.map +1 -1
  231. package/dist/npm/src/models/ledger/Offer.js.map +1 -1
  232. package/dist/npm/src/models/ledger/PayChannel.d.ts +2 -4
  233. package/dist/npm/src/models/ledger/PayChannel.d.ts.map +1 -1
  234. package/dist/npm/src/models/ledger/RippleState.d.ts +2 -4
  235. package/dist/npm/src/models/ledger/RippleState.d.ts.map +1 -1
  236. package/dist/npm/src/models/ledger/RippleState.js.map +1 -1
  237. package/dist/npm/src/models/ledger/SignerList.d.ts +2 -4
  238. package/dist/npm/src/models/ledger/SignerList.d.ts.map +1 -1
  239. package/dist/npm/src/models/ledger/SignerList.js.map +1 -1
  240. package/dist/npm/src/models/ledger/Ticket.d.ts +2 -4
  241. package/dist/npm/src/models/ledger/Ticket.d.ts.map +1 -1
  242. package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts +2 -4
  243. package/dist/npm/src/models/ledger/XChainOwnedClaimID.d.ts.map +1 -1
  244. package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts +2 -4
  245. package/dist/npm/src/models/ledger/XChainOwnedCreateAccountClaimID.d.ts.map +1 -1
  246. package/dist/npm/src/models/ledger/index.d.ts +3 -2
  247. package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
  248. package/dist/npm/src/models/ledger/index.js.map +1 -1
  249. package/dist/npm/src/models/methods/accountObjects.d.ts +4 -3
  250. package/dist/npm/src/models/methods/accountObjects.d.ts.map +1 -1
  251. package/dist/npm/src/models/methods/index.d.ts +4 -3
  252. package/dist/npm/src/models/methods/index.d.ts.map +1 -1
  253. package/dist/npm/src/models/methods/ledger.d.ts +2 -0
  254. package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
  255. package/dist/npm/src/models/methods/ledgerData.d.ts +2 -1
  256. package/dist/npm/src/models/methods/ledgerData.d.ts.map +1 -1
  257. package/dist/npm/src/models/methods/ledgerEntry.d.ts +3 -2
  258. package/dist/npm/src/models/methods/ledgerEntry.d.ts.map +1 -1
  259. package/dist/npm/src/models/methods/serverDefinitions.d.ts +32 -0
  260. package/dist/npm/src/models/methods/serverDefinitions.d.ts.map +1 -0
  261. package/dist/npm/src/models/methods/serverDefinitions.js +3 -0
  262. package/dist/npm/src/models/methods/serverDefinitions.js.map +1 -0
  263. package/dist/npm/src/models/methods/tx.d.ts +5 -2
  264. package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
  265. package/dist/npm/src/models/transactions/DIDDelete.d.ts +6 -0
  266. package/dist/npm/src/models/transactions/DIDDelete.d.ts.map +1 -0
  267. package/dist/npm/src/models/transactions/DIDDelete.js +9 -0
  268. package/dist/npm/src/models/transactions/DIDDelete.js.map +1 -0
  269. package/dist/npm/src/models/transactions/DIDSet.d.ts +9 -0
  270. package/dist/npm/src/models/transactions/DIDSet.d.ts.map +1 -0
  271. package/dist/npm/src/models/transactions/DIDSet.js +18 -0
  272. package/dist/npm/src/models/transactions/DIDSet.js.map +1 -0
  273. package/dist/npm/src/models/transactions/NFTokenBurn.d.ts +3 -3
  274. package/dist/npm/src/models/transactions/NFTokenBurn.d.ts.map +1 -1
  275. package/dist/npm/src/models/transactions/NFTokenBurn.js +2 -4
  276. package/dist/npm/src/models/transactions/NFTokenBurn.js.map +1 -1
  277. package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts +3 -3
  278. package/dist/npm/src/models/transactions/NFTokenCreateOffer.d.ts.map +1 -1
  279. package/dist/npm/src/models/transactions/NFTokenCreateOffer.js +2 -0
  280. package/dist/npm/src/models/transactions/NFTokenCreateOffer.js.map +1 -1
  281. package/dist/npm/src/models/transactions/NFTokenMint.d.ts +2 -2
  282. package/dist/npm/src/models/transactions/NFTokenMint.d.ts.map +1 -1
  283. package/dist/npm/src/models/transactions/NFTokenMint.js +1 -0
  284. package/dist/npm/src/models/transactions/NFTokenMint.js.map +1 -1
  285. package/dist/npm/src/models/transactions/UNLModify.d.ts +2 -1
  286. package/dist/npm/src/models/transactions/UNLModify.d.ts.map +1 -1
  287. package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts +2 -2
  288. package/dist/npm/src/models/transactions/XChainAccountCreateCommit.d.ts.map +1 -1
  289. package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js +1 -2
  290. package/dist/npm/src/models/transactions/XChainAccountCreateCommit.js.map +1 -1
  291. package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts +5 -5
  292. package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.d.ts.map +1 -1
  293. package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js +4 -4
  294. package/dist/npm/src/models/transactions/XChainAddAccountCreateAttestation.js.map +1 -1
  295. package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts +5 -5
  296. package/dist/npm/src/models/transactions/XChainAddClaimAttestation.d.ts.map +1 -1
  297. package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js +4 -4
  298. package/dist/npm/src/models/transactions/XChainAddClaimAttestation.js.map +1 -1
  299. package/dist/npm/src/models/transactions/XChainClaim.d.ts +2 -2
  300. package/dist/npm/src/models/transactions/XChainClaim.d.ts.map +1 -1
  301. package/dist/npm/src/models/transactions/XChainClaim.js +1 -1
  302. package/dist/npm/src/models/transactions/XChainClaim.js.map +1 -1
  303. package/dist/npm/src/models/transactions/XChainCommit.d.ts +2 -2
  304. package/dist/npm/src/models/transactions/XChainCommit.d.ts.map +1 -1
  305. package/dist/npm/src/models/transactions/XChainCommit.js +1 -1
  306. package/dist/npm/src/models/transactions/XChainCommit.js.map +1 -1
  307. package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts +2 -2
  308. package/dist/npm/src/models/transactions/XChainCreateClaimID.d.ts.map +1 -1
  309. package/dist/npm/src/models/transactions/XChainCreateClaimID.js +1 -1
  310. package/dist/npm/src/models/transactions/XChainCreateClaimID.js.map +1 -1
  311. package/dist/npm/src/models/transactions/accountDelete.d.ts +2 -2
  312. package/dist/npm/src/models/transactions/accountDelete.d.ts.map +1 -1
  313. package/dist/npm/src/models/transactions/accountDelete.js +2 -11
  314. package/dist/npm/src/models/transactions/accountDelete.js.map +1 -1
  315. package/dist/npm/src/models/transactions/accountSet.d.ts +2 -2
  316. package/dist/npm/src/models/transactions/accountSet.d.ts.map +1 -1
  317. package/dist/npm/src/models/transactions/accountSet.js +1 -5
  318. package/dist/npm/src/models/transactions/accountSet.js.map +1 -1
  319. package/dist/npm/src/models/transactions/checkCreate.d.ts +2 -2
  320. package/dist/npm/src/models/transactions/checkCreate.d.ts.map +1 -1
  321. package/dist/npm/src/models/transactions/checkCreate.js +2 -10
  322. package/dist/npm/src/models/transactions/checkCreate.js.map +1 -1
  323. package/dist/npm/src/models/transactions/common.d.ts +3 -1
  324. package/dist/npm/src/models/transactions/common.d.ts.map +1 -1
  325. package/dist/npm/src/models/transactions/common.js +7 -1
  326. package/dist/npm/src/models/transactions/common.js.map +1 -1
  327. package/dist/npm/src/models/transactions/escrowCancel.d.ts +2 -2
  328. package/dist/npm/src/models/transactions/escrowCancel.d.ts.map +1 -1
  329. package/dist/npm/src/models/transactions/escrowCancel.js +1 -6
  330. package/dist/npm/src/models/transactions/escrowCancel.js.map +1 -1
  331. package/dist/npm/src/models/transactions/escrowCreate.d.ts +2 -2
  332. package/dist/npm/src/models/transactions/escrowCreate.d.ts.map +1 -1
  333. package/dist/npm/src/models/transactions/escrowCreate.js +2 -10
  334. package/dist/npm/src/models/transactions/escrowCreate.js.map +1 -1
  335. package/dist/npm/src/models/transactions/escrowFinish.d.ts +2 -2
  336. package/dist/npm/src/models/transactions/escrowFinish.d.ts.map +1 -1
  337. package/dist/npm/src/models/transactions/escrowFinish.js +1 -6
  338. package/dist/npm/src/models/transactions/escrowFinish.js.map +1 -1
  339. package/dist/npm/src/models/transactions/index.d.ts +3 -1
  340. package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
  341. package/dist/npm/src/models/transactions/index.js.map +1 -1
  342. package/dist/npm/src/models/transactions/payment.d.ts +2 -2
  343. package/dist/npm/src/models/transactions/payment.d.ts.map +1 -1
  344. package/dist/npm/src/models/transactions/payment.js +2 -9
  345. package/dist/npm/src/models/transactions/payment.js.map +1 -1
  346. package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts +2 -2
  347. package/dist/npm/src/models/transactions/paymentChannelCreate.d.ts.map +1 -1
  348. package/dist/npm/src/models/transactions/paymentChannelCreate.js +2 -10
  349. package/dist/npm/src/models/transactions/paymentChannelCreate.js.map +1 -1
  350. package/dist/npm/src/models/transactions/transaction.d.ts +7 -1
  351. package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
  352. package/dist/npm/src/models/transactions/transaction.js +20 -12
  353. package/dist/npm/src/models/transactions/transaction.js.map +1 -1
  354. package/dist/npm/src/models/utils/flags.d.ts.map +1 -1
  355. package/dist/npm/src/models/utils/flags.js +17 -28
  356. package/dist/npm/src/models/utils/flags.js.map +1 -1
  357. package/dist/npm/src/utils/hashes/hashLedger.d.ts +2 -1
  358. package/dist/npm/src/utils/hashes/hashLedger.d.ts.map +1 -1
  359. package/dist/npm/src/utils/hashes/hashLedger.js.map +1 -1
  360. package/dist/npm/src/utils/parseNFTokenID.d.ts.map +1 -1
  361. package/dist/npm/src/utils/parseNFTokenID.js +10 -1
  362. package/dist/npm/src/utils/parseNFTokenID.js.map +1 -1
  363. package/dist/npm/utils/hashes/hashLedger.d.ts +2 -1
  364. package/dist/npm/utils/hashes/hashLedger.d.ts.map +1 -1
  365. package/dist/npm/utils/hashes/hashLedger.js.map +1 -1
  366. package/dist/npm/utils/parseNFTokenID.d.ts.map +1 -1
  367. package/dist/npm/utils/parseNFTokenID.js +10 -1
  368. package/dist/npm/utils/parseNFTokenID.js.map +1 -1
  369. package/package.json +13 -4
  370. package/src/Wallet/defaultFaucets.ts +0 -12
  371. package/src/Wallet/fundWallet.ts +1 -1
  372. package/src/client/index.ts +5 -0
  373. package/src/client/partialPayment.ts +6 -2
  374. package/src/models/ledger/AMM.ts +2 -10
  375. package/src/models/ledger/AccountRoot.ts +2 -12
  376. package/src/models/ledger/Amendments.ts +4 -2
  377. package/src/models/ledger/BaseLedgerEntry.ts +25 -1
  378. package/src/models/ledger/Bridge.ts +9 -21
  379. package/src/models/ledger/Check.ts +2 -2
  380. package/src/models/ledger/DID.ts +22 -0
  381. package/src/models/ledger/DepositPreauth.ts +4 -12
  382. package/src/models/ledger/DirectoryNode.ts +4 -2
  383. package/src/models/ledger/Escrow.ts +2 -12
  384. package/src/models/ledger/FeeSettings.ts +2 -2
  385. package/src/models/ledger/Ledger.ts +9 -3
  386. package/src/models/ledger/LedgerEntry.ts +23 -1
  387. package/src/models/ledger/LedgerHashes.ts +4 -2
  388. package/src/models/ledger/NFTokenOffer.ts +2 -4
  389. package/src/models/ledger/NFTokenPage.ts +2 -4
  390. package/src/models/ledger/NegativeUNL.ts +4 -2
  391. package/src/models/ledger/Offer.ts +2 -12
  392. package/src/models/ledger/PayChannel.ts +2 -12
  393. package/src/models/ledger/RippleState.ts +2 -12
  394. package/src/models/ledger/SignerList.ts +2 -12
  395. package/src/models/ledger/Ticket.ts +2 -12
  396. package/src/models/ledger/XChainOwnedClaimID.ts +4 -12
  397. package/src/models/ledger/XChainOwnedCreateAccountClaimID.ts +3 -12
  398. package/src/models/ledger/index.ts +4 -1
  399. package/src/models/methods/accountObjects.ts +10 -44
  400. package/src/models/methods/index.ts +8 -0
  401. package/src/models/methods/ledger.ts +5 -0
  402. package/src/models/methods/ledgerData.ts +5 -1
  403. package/src/models/methods/ledgerEntry.ts +8 -2
  404. package/src/models/methods/nftInfo.ts +1 -1
  405. package/src/models/methods/serverDefinitions.ts +61 -0
  406. package/src/models/methods/subscribe.ts +1 -1
  407. package/src/models/methods/tx.ts +16 -3
  408. package/src/models/transactions/DIDDelete.ts +20 -0
  409. package/src/models/transactions/DIDSet.ts +49 -0
  410. package/src/models/transactions/NFTokenBurn.ts +13 -9
  411. package/src/models/transactions/NFTokenCreateOffer.ts +8 -2
  412. package/src/models/transactions/NFTokenMint.ts +11 -2
  413. package/src/models/transactions/UNLModify.ts +3 -1
  414. package/src/models/transactions/XChainAccountCreateCommit.ts +5 -5
  415. package/src/models/transactions/XChainAddAccountCreateAttestation.ts +10 -8
  416. package/src/models/transactions/XChainAddClaimAttestation.ts +10 -8
  417. package/src/models/transactions/XChainClaim.ts +4 -2
  418. package/src/models/transactions/XChainCommit.ts +4 -2
  419. package/src/models/transactions/XChainCreateClaimID.ts +4 -3
  420. package/src/models/transactions/accountDelete.ts +12 -18
  421. package/src/models/transactions/accountSet.ts +10 -11
  422. package/src/models/transactions/checkCreate.ts +8 -15
  423. package/src/models/transactions/common.ts +20 -1
  424. package/src/models/transactions/escrowCancel.ts +9 -9
  425. package/src/models/transactions/escrowCreate.ts +12 -16
  426. package/src/models/transactions/escrowFinish.ts +9 -9
  427. package/src/models/transactions/index.ts +8 -1
  428. package/src/models/transactions/payment.ts +8 -14
  429. package/src/models/transactions/paymentChannelCreate.ts +12 -21
  430. package/src/models/transactions/transaction.ts +37 -20
  431. package/src/models/utils/flags.ts +18 -28
  432. package/src/utils/hashes/hashLedger.ts +4 -1
  433. package/src/utils/parseNFTokenID.ts +11 -1
@@ -1,6 +1,6 @@
1
1
  import { Amount, XChainBridge } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
5
  /**
6
6
  * A Bridge objects represents a cross-chain bridge and includes information about
@@ -9,7 +9,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
9
9
  *
10
10
  * @category Ledger Entries
11
11
  */
12
- export default interface Bridge extends BaseLedgerEntry {
12
+ export default interface Bridge extends BaseLedgerEntry, HasPreviousTxnID {
13
13
  LedgerEntryType: 'Bridge'
14
14
 
15
15
  /** The door account that owns the bridge. */
@@ -22,13 +22,6 @@ export default interface Bridge extends BaseLedgerEntry {
22
22
  */
23
23
  SignatureReward: Amount
24
24
 
25
- /**
26
- * The minimum amount, in XRP, required for an {@link XChainAccountCreateCommit}
27
- * transaction. If this isn't present, the {@link XChainAccountCreateCommit}
28
- * transaction will fail. This field can only be present on XRP-XRP bridges.
29
- */
30
- MinAccountCreateAmount?: string
31
-
32
25
  /**
33
26
  * The door accounts and assets of the bridge this object correlates to.
34
27
  */
@@ -58,6 +51,13 @@ export default interface Bridge extends BaseLedgerEntry {
58
51
  */
59
52
  XChainAccountClaimCount: string
60
53
 
54
+ /**
55
+ * The minimum amount, in XRP, required for an {@link XChainAccountCreateCommit}
56
+ * transaction. If this isn't present, the {@link XChainAccountCreateCommit}
57
+ * transaction will fail. This field can only be present on XRP-XRP bridges.
58
+ */
59
+ MinAccountCreateAmount?: string
60
+
61
61
  /**
62
62
  * A bit-map of boolean flags. No flags are defined for Bridges, so this value
63
63
  * is always 0.
@@ -69,16 +69,4 @@ export default interface Bridge extends BaseLedgerEntry {
69
69
  * object, in case the directory consists of multiple pages.
70
70
  */
71
71
  OwnerNode: string
72
-
73
- /**
74
- * The identifying hash of the transaction that most recently modified this
75
- * object.
76
- */
77
- PreviousTxnID: string
78
-
79
- /**
80
- * The index of the ledger that contains the transaction that most recently
81
- * modified this object.
82
- */
83
- PreviousTxnLgrSeq: number
84
72
  }
@@ -1,6 +1,6 @@
1
1
  import { Amount } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
5
  /**
6
6
  * A Check object describes a check, similar to a paper personal check, which
@@ -8,7 +8,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
8
8
  *
9
9
  * @category Ledger Entries
10
10
  */
11
- export default interface Check extends BaseLedgerEntry {
11
+ export default interface Check extends BaseLedgerEntry, HasPreviousTxnID {
12
12
  LedgerEntryType: 'Check'
13
13
  /** The sender of the Check. Cashing the Check debits this address's balance. */
14
14
  Account: string
@@ -0,0 +1,22 @@
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
+
3
+ // TODO: add docs
4
+
5
+ /**
6
+ * @category Ledger Entries
7
+ */
8
+ export default interface DID extends BaseLedgerEntry, HasPreviousTxnID {
9
+ LedgerEntryType: 'DID'
10
+
11
+ Account: string
12
+
13
+ Data: string
14
+
15
+ DIDDocument: string
16
+
17
+ URI: string
18
+
19
+ Flags: 0
20
+
21
+ OwnerNode: string
22
+ }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * A DepositPreauth object tracks a preauthorization from one account to
@@ -6,7 +6,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
6
6
  *
7
7
  * @category Ledger Entries
8
8
  */
9
- export default interface DepositPreauth extends BaseLedgerEntry {
9
+ export default interface DepositPreauth
10
+ extends BaseLedgerEntry,
11
+ HasPreviousTxnID {
10
12
  LedgerEntryType: 'DepositPreauth'
11
13
  /** The account that granted the preauthorization. */
12
14
  Account: string
@@ -22,14 +24,4 @@ export default interface DepositPreauth extends BaseLedgerEntry {
22
24
  * object, in case the directory consists of multiple pages.
23
25
  */
24
26
  OwnerNode: string
25
- /**
26
- * The identifying hash of the transaction that most recently modified this
27
- * object.
28
- */
29
- PreviousTxnID: string
30
- /**
31
- * The index of the ledger that contains the transaction that most recently
32
- * modified this object.
33
- */
34
- PreviousTxnLgrSeq: number
35
27
  }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The DirectoryNode object type provides a list of links to other objects in
@@ -6,7 +6,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
6
6
  *
7
7
  * @category Ledger Entries
8
8
  */
9
- export default interface DirectoryNode extends BaseLedgerEntry {
9
+ export default interface DirectoryNode
10
+ extends BaseLedgerEntry,
11
+ MissingPreviousTxnID {
10
12
  LedgerEntryType: 'DirectoryNode'
11
13
  /**
12
14
  * A bit-map of boolean flags enabled for this directory. Currently, the
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The Escrow object type represents a held payment of XRP waiting to be
@@ -6,7 +6,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
6
6
  *
7
7
  * @category Ledger Entries
8
8
  */
9
- export default interface Escrow extends BaseLedgerEntry {
9
+ export default interface Escrow extends BaseLedgerEntry, HasPreviousTxnID {
10
10
  LedgerEntryType: 'Escrow'
11
11
  /**
12
12
  * The address of the owner (sender) of this held payment. This is the
@@ -61,14 +61,4 @@ export default interface Escrow extends BaseLedgerEntry {
61
61
  * this object, in case the directory consists of multiple pages.
62
62
  */
63
63
  DestinationNode?: string
64
- /**
65
- * The identifying hash of the transaction that most recently modified this
66
- * object.
67
- */
68
- PreviousTxnID: string
69
- /**
70
- * The index of the ledger that contains the transaction that most recently
71
- * modified this object.
72
- */
73
- PreviousTxnLgrSeq: number
74
64
  }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The unique id for the FeeSettings object https://xrpl.org/feesettings.html#feesettings-id-format
@@ -26,7 +26,7 @@ export interface FeeSettingsPostAmendmentFields {
26
26
  ReserveIncrementDrops: string
27
27
  }
28
28
 
29
- export interface FeeSettingsBase extends BaseLedgerEntry {
29
+ export interface FeeSettingsBase extends BaseLedgerEntry, MissingPreviousTxnID {
30
30
  LedgerEntryType: 'FeeSettings'
31
31
  /**
32
32
  * A bit-map of boolean flags for this object. No flags are defined for this type.
@@ -1,6 +1,10 @@
1
- import { Transaction, TransactionMetadata } from '../transactions'
1
+ import {
2
+ PseudoTransaction,
3
+ Transaction,
4
+ TransactionMetadata,
5
+ } from '../transactions'
2
6
 
3
- import LedgerEntry from './LedgerEntry'
7
+ import { LedgerEntry } from './LedgerEntry'
4
8
 
5
9
  /**
6
10
  * A ledger is a block of transactions and shared state data. It has a unique
@@ -61,5 +65,7 @@ export default interface Ledger {
61
65
  * either JSON or binary depending on whether the request specified binary
62
66
  * as true.
63
67
  */
64
- transactions?: Array<Transaction & { metaData?: TransactionMetadata }>
68
+ transactions?: Array<
69
+ (Transaction | PseudoTransaction) & { metaData?: TransactionMetadata }
70
+ >
65
71
  }
@@ -37,4 +37,26 @@ type LedgerEntry =
37
37
  | XChainOwnedClaimID
38
38
  | XChainOwnedCreateAccountClaimID
39
39
 
40
- export default LedgerEntry
40
+ type LedgerEntryFilter =
41
+ | 'account'
42
+ | 'amendments'
43
+ | 'amm'
44
+ | 'bridge'
45
+ | 'check'
46
+ | 'deposit_preauth'
47
+ | 'did'
48
+ | 'directory'
49
+ | 'escrow'
50
+ | 'fee'
51
+ | 'hashes'
52
+ | 'nft_offer'
53
+ | 'nft_page'
54
+ | 'offer'
55
+ | 'payment_channel'
56
+ | 'signer_list'
57
+ | 'state'
58
+ | 'ticket'
59
+ | 'xchain_owned_create_account_claim_id'
60
+ | 'xchain_owned_claim_id'
61
+
62
+ export { LedgerEntry, LedgerEntryFilter }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The LedgerHashes objects exist to make it possible to look up a previous
@@ -7,7 +7,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
7
7
  *
8
8
  * @category Ledger Entries
9
9
  */
10
- export default interface LedgerHashes extends BaseLedgerEntry {
10
+ export default interface LedgerHashes
11
+ extends BaseLedgerEntry,
12
+ MissingPreviousTxnID {
11
13
  LedgerEntryType: 'LedgerHashes'
12
14
  /** The Ledger Index of the last entry in this object's Hashes array. */
13
15
  LastLedgerSequence?: number
@@ -1,8 +1,8 @@
1
1
  import { Amount } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
- export interface NFTokenOffer extends BaseLedgerEntry {
5
+ export interface NFTokenOffer extends BaseLedgerEntry, HasPreviousTxnID {
6
6
  LedgerEntryType: 'NFTokenOffer'
7
7
  Amount: Amount
8
8
  Destination?: string
@@ -11,6 +11,4 @@ export interface NFTokenOffer extends BaseLedgerEntry {
11
11
  NFTokenOfferNode?: string
12
12
  Owner: string
13
13
  OwnerNode?: string
14
- PreviousTxnID: string
15
- PreviousTxnLgrSeq: number
16
14
  }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  export interface NFToken {
4
4
  NFToken: {
@@ -10,11 +10,9 @@ export interface NFToken {
10
10
  }
11
11
  }
12
12
 
13
- export interface NFTokenPage extends BaseLedgerEntry {
13
+ export interface NFTokenPage extends BaseLedgerEntry, HasPreviousTxnID {
14
14
  LedgerEntryType: 'NFTokenPage'
15
15
  NextPageMin?: string
16
16
  NFTokens: NFToken[]
17
17
  PreviousPageMin?: string
18
- PreviousTxnID?: string
19
- PreviousTxnLgrSeq?: number
20
18
  }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, MissingPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The unique id for the nUNL object https://xrpl.org/negativeunl.html#negativeunl-id-format
@@ -12,7 +12,9 @@ export const NEGATIVE_UNL_ID =
12
12
  *
13
13
  * @category Ledger Entries
14
14
  */
15
- export default interface NegativeUNL extends BaseLedgerEntry {
15
+ export default interface NegativeUNL
16
+ extends BaseLedgerEntry,
17
+ MissingPreviousTxnID {
16
18
  LedgerEntryType: 'NegativeUNL'
17
19
  /**
18
20
  * A list of trusted validators that are currently disabled.
@@ -1,8 +1,8 @@
1
1
  import { Amount } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
- export default interface Offer extends BaseLedgerEntry {
5
+ export default interface Offer extends BaseLedgerEntry, HasPreviousTxnID {
6
6
  LedgerEntryType: 'Offer'
7
7
  /** A bit-map of boolean flags enabled for this Offer. */
8
8
  Flags: number
@@ -32,16 +32,6 @@ export default interface Offer extends BaseLedgerEntry {
32
32
  * in case the directory consists of multiple pages.
33
33
  */
34
34
  OwnerNode: string
35
- /**
36
- * The identifying hash of the transaction that most recently modified this
37
- * object.
38
- */
39
- PreviousTxnID: string
40
- /**
41
- * The index of the ledger that contains the transaction that most recently
42
- * modified this object.
43
- */
44
- PreviousTxnLgrSeq: number
45
35
  /** The time this Offer expires, in seconds since the Ripple Epoch. */
46
36
  Expiration?: number
47
37
  }
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The PayChannel object type represents a payment channel. Payment channels
@@ -9,7 +9,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
9
9
  *
10
10
  * @category Ledger Entries
11
11
  */
12
- export default interface PayChannel extends BaseLedgerEntry {
12
+ export default interface PayChannel extends BaseLedgerEntry, HasPreviousTxnID {
13
13
  LedgerEntryType: 'PayChannel'
14
14
  /**
15
15
  * The source address that owns this payment channel. This comes from the
@@ -60,16 +60,6 @@ export default interface PayChannel extends BaseLedgerEntry {
60
60
  * to this object, in case the directory consists of multiple pages.
61
61
  */
62
62
  OwnerNode: string
63
- /**
64
- * The identifying hash of the transaction that most recently modified this
65
- * object.
66
- */
67
- PreviousTxnID: string
68
- /**
69
- * The index of the ledger that contains the transaction that most recently
70
- * modified this object.
71
- */
72
- PreviousTxnLgrSeq: number
73
63
  /**
74
64
  * A bit-map of boolean flags enabled for this payment channel. Currently,
75
65
  * the protocol defines no flags for PayChannel objects.
@@ -1,13 +1,13 @@
1
1
  import { IssuedCurrencyAmount } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
5
  /**
6
6
  * The RippleState object type connects two accounts in a single currency.
7
7
  *
8
8
  * @category Ledger Entries
9
9
  */
10
- export default interface RippleState extends BaseLedgerEntry {
10
+ export default interface RippleState extends BaseLedgerEntry, HasPreviousTxnID {
11
11
  LedgerEntryType: 'RippleState'
12
12
  /** A bit-map of boolean options enabled for this object. */
13
13
  Flags: number
@@ -27,16 +27,6 @@ export default interface RippleState extends BaseLedgerEntry {
27
27
  * the address of the high account that set this limit.
28
28
  */
29
29
  HighLimit: IssuedCurrencyAmount
30
- /**
31
- * The identifying hash of the transaction that most recently modified this
32
- * object.
33
- */
34
- PreviousTxnID: string
35
- /**
36
- * The index of the ledger that contains the transaction that most recently
37
- * modified this object.
38
- */
39
- PreviousTxnLgrSeq: number
40
30
  /**
41
31
  * A hint indicating which page of the low account's owner directory links to
42
32
  * this object, in case the directory consists of multiple pages.
@@ -1,6 +1,6 @@
1
1
  import { SignerEntry } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
5
  /**
6
6
  * The SignerList object type represents a list of parties that, as a group,
@@ -10,23 +10,13 @@ import BaseLedgerEntry from './BaseLedgerEntry'
10
10
  *
11
11
  * @category Ledger Entries
12
12
  */
13
- export default interface SignerList extends BaseLedgerEntry {
13
+ export default interface SignerList extends BaseLedgerEntry, HasPreviousTxnID {
14
14
  LedgerEntryType: 'SignerList'
15
15
  /**
16
16
  * A bit-map of Boolean flags enabled for this signer list. For more
17
17
  * information, see SignerList Flags.
18
18
  */
19
19
  Flags: number
20
- /**
21
- * The identifying hash of the transaction that most recently modified this
22
- * object.
23
- */
24
- PreviousTxnID: string
25
- /**
26
- * The index of the ledger that contains the transaction that most recently
27
- * modified this object.
28
- */
29
- PreviousTxnLgrSeq: number
30
20
  /**
31
21
  * A hint indicating which page of the owner directory links to this object,
32
22
  * in case the directory consists of multiple pages.
@@ -1,4 +1,4 @@
1
- import BaseLedgerEntry from './BaseLedgerEntry'
1
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
2
2
 
3
3
  /**
4
4
  * The Ticket object type represents a Ticket, which tracks an account sequence
@@ -7,7 +7,7 @@ import BaseLedgerEntry from './BaseLedgerEntry'
7
7
  *
8
8
  * @category Ledger Entries
9
9
  */
10
- export default interface Ticket extends BaseLedgerEntry {
10
+ export default interface Ticket extends BaseLedgerEntry, HasPreviousTxnID {
11
11
  LedgerEntryType: 'Ticket'
12
12
  /** The account that owns this Ticket. */
13
13
  Account: string
@@ -21,16 +21,6 @@ export default interface Ticket extends BaseLedgerEntry {
21
21
  * in case the directory consists of multiple pages.
22
22
  */
23
23
  OwnerNode: string
24
- /**
25
- * The identifying hash of the transaction that most recently modified this
26
- * object.
27
- */
28
- PreviousTxnID: string
29
- /**
30
- * The index of the ledger that contains the transaction that most recently
31
- * modified this object.
32
- */
33
- PreviousTxnLgrSeq: number
34
24
  /** The Sequence Number this Ticket sets aside. */
35
25
  TicketSequence: number
36
26
  }
@@ -2,7 +2,7 @@ import { Amount } from 'ripple-binary-codec/dist/types'
2
2
 
3
3
  import { XChainBridge } from '../common'
4
4
 
5
- import BaseLedgerEntry from './BaseLedgerEntry'
5
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
6
6
 
7
7
  /**
8
8
  * An XChainOwnedClaimID object represents one cross-chain transfer of value
@@ -11,7 +11,9 @@ import BaseLedgerEntry from './BaseLedgerEntry'
11
11
  *
12
12
  * @category Ledger Entries
13
13
  */
14
- export default interface XChainOwnedClaimID extends BaseLedgerEntry {
14
+ export default interface XChainOwnedClaimID
15
+ extends BaseLedgerEntry,
16
+ HasPreviousTxnID {
15
17
  LedgerEntryType: 'XChainOwnedClaimID'
16
18
 
17
19
  /** The account that checked out this unique claim ID value. */
@@ -76,14 +78,4 @@ export default interface XChainOwnedClaimID extends BaseLedgerEntry {
76
78
  * object, in case the directory consists of multiple pages.
77
79
  */
78
80
  OwnerNode: string
79
- /**
80
- * The identifying hash of the transaction that most recently modified this
81
- * object.
82
- */
83
- PreviousTxnID: string
84
- /**
85
- * The index of the ledger that contains the transaction that most recently
86
- * modified this object.
87
- */
88
- PreviousTxnLgrSeq: number
89
81
  }
@@ -1,6 +1,6 @@
1
1
  import { XChainBridge } from '../common'
2
2
 
3
- import BaseLedgerEntry from './BaseLedgerEntry'
3
+ import { BaseLedgerEntry, HasPreviousTxnID } from './BaseLedgerEntry'
4
4
 
5
5
  /**
6
6
  * The XChainOwnedCreateAccountClaimID ledger object is used to collect attestations
@@ -9,7 +9,8 @@ import BaseLedgerEntry from './BaseLedgerEntry'
9
9
  * @category Ledger Entries
10
10
  */
11
11
  export default interface XChainOwnedCreateAccountClaimID
12
- extends BaseLedgerEntry {
12
+ extends BaseLedgerEntry,
13
+ HasPreviousTxnID {
13
14
  LedgerEntryType: 'XChainOwnedCreateAccountClaimID'
14
15
 
15
16
  /** The account that owns this object. */
@@ -61,14 +62,4 @@ export default interface XChainOwnedCreateAccountClaimID
61
62
  * object, in case the directory consists of multiple pages.
62
63
  */
63
64
  OwnerNode: string
64
- /**
65
- * The identifying hash of the transaction that most recently modified this
66
- * object.
67
- */
68
- PreviousTxnID: string
69
- /**
70
- * The index of the ledger that contains the transaction that most recently
71
- * modified this object.
72
- */
73
- PreviousTxnLgrSeq: number
74
65
  }
@@ -7,6 +7,7 @@ import AMM, { VoteSlot } from './AMM'
7
7
  import Bridge from './Bridge'
8
8
  import Check from './Check'
9
9
  import DepositPreauth from './DepositPreauth'
10
+ import DID from './DID'
10
11
  import DirectoryNode from './DirectoryNode'
11
12
  import Escrow from './Escrow'
12
13
  import FeeSettings, {
@@ -15,7 +16,7 @@ import FeeSettings, {
15
16
  FEE_SETTINGS_ID,
16
17
  } from './FeeSettings'
17
18
  import Ledger from './Ledger'
18
- import LedgerEntry from './LedgerEntry'
19
+ import { LedgerEntry, LedgerEntryFilter } from './LedgerEntry'
19
20
  import LedgerHashes from './LedgerHashes'
20
21
  import NegativeUNL, { NEGATIVE_UNL_ID } from './NegativeUNL'
21
22
  import { NFTokenOffer } from './NFTokenOffer'
@@ -39,12 +40,14 @@ export {
39
40
  Check,
40
41
  DepositPreauth,
41
42
  DirectoryNode,
43
+ DID,
42
44
  Escrow,
43
45
  FEE_SETTINGS_ID,
44
46
  FeeSettings,
45
47
  FeeSettingsPreAmendmentFields,
46
48
  FeeSettingsPostAmendmentFields,
47
49
  Ledger,
50
+ LedgerEntryFilter,
48
51
  LedgerEntry,
49
52
  LedgerHashes,
50
53
  Majority,
@@ -1,35 +1,12 @@
1
- import {
2
- AMM,
3
- Bridge,
4
- Check,
5
- DepositPreauth,
6
- Escrow,
7
- Offer,
8
- PayChannel,
9
- RippleState,
10
- SignerList,
11
- Ticket,
12
- XChainOwnedClaimID,
13
- XChainOwnedCreateAccountClaimID,
14
- } from '../ledger'
1
+ import { Amendments, FeeSettings, LedgerHashes } from '../ledger'
2
+ import { LedgerEntry, LedgerEntryFilter } from '../ledger/LedgerEntry'
15
3
 
16
4
  import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
17
5
 
18
- export type AccountObjectType =
19
- | 'amm'
20
- | 'bridge'
21
- | 'check'
22
- | 'deposit_preauth'
23
- | 'escrow'
24
- | 'nft_offer'
25
- | 'offer'
26
- | 'payment_channel'
27
- | 'signer_list'
28
- | 'state'
29
- | 'ticket'
30
- | 'xchain_owned_create_account_claim_id'
31
- | 'xchain_owned_claim_id'
32
-
6
+ export type AccountObjectType = Exclude<
7
+ LedgerEntryFilter,
8
+ 'amendments' | 'fee' | 'hashes'
9
+ >
33
10
  /**
34
11
  * The account_objects command returns the raw ledger format for all objects
35
12
  * owned by an account. For a higher-level view of an account's trust lines and
@@ -46,8 +23,6 @@ export interface AccountObjectsRequest
46
23
  account: string
47
24
  /**
48
25
  * If included, filter results to include only this type of ledger object.
49
- * The valid types are: Check , DepositPreauth, Escrow, Offer, PayChannel,
50
- * SignerList, Ticket, and RippleState (trust line).
51
26
  */
52
27
  type?: AccountObjectType
53
28
  /**
@@ -71,19 +46,10 @@ export interface AccountObjectsRequest
71
46
  * Account Objects can be a Check, a DepositPreauth, an Escrow, an Offer, a
72
47
  * PayChannel, a SignerList, a Ticket, or a RippleState.
73
48
  */
74
- export type AccountObject =
75
- | AMM
76
- | Bridge
77
- | Check
78
- | DepositPreauth
79
- | Escrow
80
- | Offer
81
- | PayChannel
82
- | SignerList
83
- | RippleState
84
- | Ticket
85
- | XChainOwnedClaimID
86
- | XChainOwnedCreateAccountClaimID
49
+ export type AccountObject = Exclude<
50
+ LedgerEntry,
51
+ Amendments | FeeSettings | LedgerHashes
52
+ >
87
53
 
88
54
  /**
89
55
  * Response expected from an {@link AccountObjectsRequest}.