xrpl 3.0.0 → 4.0.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 (292) hide show
  1. package/README.md +3 -3
  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 +424 -893
  5. package/build/xrpl-latest.js.map +1 -1
  6. package/dist/npm/Wallet/defaultFaucets.d.ts +1 -2
  7. package/dist/npm/Wallet/defaultFaucets.d.ts.map +1 -1
  8. package/dist/npm/Wallet/defaultFaucets.js +0 -5
  9. package/dist/npm/Wallet/defaultFaucets.js.map +1 -1
  10. package/dist/npm/Wallet/fundWallet.d.ts.map +1 -1
  11. package/dist/npm/Wallet/fundWallet.js +1 -5
  12. package/dist/npm/Wallet/fundWallet.js.map +1 -1
  13. package/dist/npm/client/RequestManager.d.ts +5 -4
  14. package/dist/npm/client/RequestManager.d.ts.map +1 -1
  15. package/dist/npm/client/RequestManager.js.map +1 -1
  16. package/dist/npm/client/connection.d.ts +2 -2
  17. package/dist/npm/client/connection.d.ts.map +1 -1
  18. package/dist/npm/client/connection.js.map +1 -1
  19. package/dist/npm/client/index.d.ts +4 -3
  20. package/dist/npm/client/index.d.ts.map +1 -1
  21. package/dist/npm/client/index.js +17 -10
  22. package/dist/npm/client/index.js.map +1 -1
  23. package/dist/npm/client/partialPayment.d.ts +2 -1
  24. package/dist/npm/client/partialPayment.d.ts.map +1 -1
  25. package/dist/npm/client/partialPayment.js +10 -3
  26. package/dist/npm/client/partialPayment.js.map +1 -1
  27. package/dist/npm/models/common/index.d.ts +13 -0
  28. package/dist/npm/models/common/index.d.ts.map +1 -1
  29. package/dist/npm/models/common/index.js +4 -0
  30. package/dist/npm/models/common/index.js.map +1 -1
  31. package/dist/npm/models/ledger/AMM.d.ts +2 -2
  32. package/dist/npm/models/ledger/AMM.d.ts.map +1 -1
  33. package/dist/npm/models/ledger/Amendments.d.ts +2 -2
  34. package/dist/npm/models/ledger/Amendments.d.ts.map +1 -1
  35. package/dist/npm/models/ledger/BaseLedgerEntry.d.ts +3 -3
  36. package/dist/npm/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
  37. package/dist/npm/models/ledger/DirectoryNode.d.ts +2 -2
  38. package/dist/npm/models/ledger/DirectoryNode.d.ts.map +1 -1
  39. package/dist/npm/models/ledger/FeeSettings.d.ts +2 -2
  40. package/dist/npm/models/ledger/FeeSettings.d.ts.map +1 -1
  41. package/dist/npm/models/ledger/Ledger.d.ts +11 -2
  42. package/dist/npm/models/ledger/Ledger.d.ts.map +1 -1
  43. package/dist/npm/models/ledger/LedgerEntry.d.ts +3 -2
  44. package/dist/npm/models/ledger/LedgerEntry.d.ts.map +1 -1
  45. package/dist/npm/models/ledger/LedgerHashes.d.ts +2 -2
  46. package/dist/npm/models/ledger/LedgerHashes.d.ts.map +1 -1
  47. package/dist/npm/models/ledger/NegativeUNL.d.ts +2 -2
  48. package/dist/npm/models/ledger/NegativeUNL.d.ts.map +1 -1
  49. package/dist/npm/models/ledger/Oracle.d.ts +12 -0
  50. package/dist/npm/models/ledger/Oracle.d.ts.map +1 -0
  51. package/dist/npm/models/ledger/Oracle.js +3 -0
  52. package/dist/npm/models/ledger/Oracle.js.map +1 -0
  53. package/dist/npm/models/ledger/RippleState.d.ts +2 -1
  54. package/dist/npm/models/ledger/RippleState.d.ts.map +1 -1
  55. package/dist/npm/models/ledger/RippleState.js +1 -0
  56. package/dist/npm/models/ledger/RippleState.js.map +1 -1
  57. package/dist/npm/models/ledger/index.d.ts +3 -2
  58. package/dist/npm/models/ledger/index.d.ts.map +1 -1
  59. package/dist/npm/models/ledger/index.js.map +1 -1
  60. package/dist/npm/models/methods/accountChannels.d.ts +1 -1
  61. package/dist/npm/models/methods/accountChannels.d.ts.map +1 -1
  62. package/dist/npm/models/methods/accountInfo.d.ts +17 -4
  63. package/dist/npm/models/methods/accountInfo.d.ts.map +1 -1
  64. package/dist/npm/models/methods/accountTx.d.ts +11 -5
  65. package/dist/npm/models/methods/accountTx.d.ts.map +1 -1
  66. package/dist/npm/models/methods/feature.d.ts +28 -0
  67. package/dist/npm/models/methods/feature.d.ts.map +1 -0
  68. package/dist/npm/models/methods/feature.js +3 -0
  69. package/dist/npm/models/methods/feature.js.map +1 -0
  70. package/dist/npm/models/methods/getAggregatePrice.d.ts +31 -0
  71. package/dist/npm/models/methods/getAggregatePrice.d.ts.map +1 -0
  72. package/dist/npm/models/methods/getAggregatePrice.js +3 -0
  73. package/dist/npm/models/methods/getAggregatePrice.js.map +1 -0
  74. package/dist/npm/models/methods/index.d.ts +15 -11
  75. package/dist/npm/models/methods/index.d.ts.map +1 -1
  76. package/dist/npm/models/methods/ledger.d.ts +17 -5
  77. package/dist/npm/models/methods/ledger.d.ts.map +1 -1
  78. package/dist/npm/models/methods/nftsByIssuer.d.ts +19 -0
  79. package/dist/npm/models/methods/nftsByIssuer.d.ts.map +1 -0
  80. package/dist/npm/models/methods/nftsByIssuer.js +3 -0
  81. package/dist/npm/models/methods/nftsByIssuer.js.map +1 -0
  82. package/dist/npm/models/methods/submitMultisigned.d.ts +16 -5
  83. package/dist/npm/models/methods/submitMultisigned.d.ts.map +1 -1
  84. package/dist/npm/models/methods/tx.d.ts +20 -8
  85. package/dist/npm/models/methods/tx.d.ts.map +1 -1
  86. package/dist/npm/models/transactions/AMMDeposit.d.ts +3 -1
  87. package/dist/npm/models/transactions/AMMDeposit.d.ts.map +1 -1
  88. package/dist/npm/models/transactions/AMMDeposit.js +1 -0
  89. package/dist/npm/models/transactions/AMMDeposit.js.map +1 -1
  90. package/dist/npm/models/transactions/index.d.ts +2 -0
  91. package/dist/npm/models/transactions/index.d.ts.map +1 -1
  92. package/dist/npm/models/transactions/index.js.map +1 -1
  93. package/dist/npm/models/transactions/metadata.d.ts +3 -0
  94. package/dist/npm/models/transactions/metadata.d.ts.map +1 -1
  95. package/dist/npm/models/transactions/metadata.js.map +1 -1
  96. package/dist/npm/models/transactions/oracleDelete.d.ts +7 -0
  97. package/dist/npm/models/transactions/oracleDelete.d.ts.map +1 -0
  98. package/dist/npm/models/transactions/oracleDelete.js +10 -0
  99. package/dist/npm/models/transactions/oracleDelete.js.map +1 -0
  100. package/dist/npm/models/transactions/oracleSet.d.ts +13 -0
  101. package/dist/npm/models/transactions/oracleSet.d.ts.map +1 -0
  102. package/dist/npm/models/transactions/oracleSet.js +59 -0
  103. package/dist/npm/models/transactions/oracleSet.js.map +1 -0
  104. package/dist/npm/models/transactions/payment.d.ts +2 -2
  105. package/dist/npm/models/transactions/payment.js +1 -1
  106. package/dist/npm/models/transactions/transaction.d.ts +3 -1
  107. package/dist/npm/models/transactions/transaction.d.ts.map +1 -1
  108. package/dist/npm/models/transactions/transaction.js +8 -0
  109. package/dist/npm/models/transactions/transaction.js.map +1 -1
  110. package/dist/npm/snippets/src/claimPayChannel.js +1 -1
  111. package/dist/npm/snippets/src/claimPayChannel.js.map +1 -1
  112. package/dist/npm/snippets/src/sendEscrow.js +1 -1
  113. package/dist/npm/snippets/src/sendEscrow.js.map +1 -1
  114. package/dist/npm/snippets/tsconfig.tsbuildinfo +1 -1
  115. package/dist/npm/src/Wallet/defaultFaucets.d.ts +1 -2
  116. package/dist/npm/src/Wallet/defaultFaucets.d.ts.map +1 -1
  117. package/dist/npm/src/Wallet/defaultFaucets.js +0 -5
  118. package/dist/npm/src/Wallet/defaultFaucets.js.map +1 -1
  119. package/dist/npm/src/Wallet/fundWallet.d.ts.map +1 -1
  120. package/dist/npm/src/Wallet/fundWallet.js +1 -5
  121. package/dist/npm/src/Wallet/fundWallet.js.map +1 -1
  122. package/dist/npm/src/client/RequestManager.d.ts +5 -4
  123. package/dist/npm/src/client/RequestManager.d.ts.map +1 -1
  124. package/dist/npm/src/client/RequestManager.js.map +1 -1
  125. package/dist/npm/src/client/connection.d.ts +2 -2
  126. package/dist/npm/src/client/connection.d.ts.map +1 -1
  127. package/dist/npm/src/client/connection.js.map +1 -1
  128. package/dist/npm/src/client/index.d.ts +4 -3
  129. package/dist/npm/src/client/index.d.ts.map +1 -1
  130. package/dist/npm/src/client/index.js +17 -10
  131. package/dist/npm/src/client/index.js.map +1 -1
  132. package/dist/npm/src/client/partialPayment.d.ts +2 -1
  133. package/dist/npm/src/client/partialPayment.d.ts.map +1 -1
  134. package/dist/npm/src/client/partialPayment.js +10 -3
  135. package/dist/npm/src/client/partialPayment.js.map +1 -1
  136. package/dist/npm/src/models/common/index.d.ts +13 -0
  137. package/dist/npm/src/models/common/index.d.ts.map +1 -1
  138. package/dist/npm/src/models/common/index.js +4 -0
  139. package/dist/npm/src/models/common/index.js.map +1 -1
  140. package/dist/npm/src/models/ledger/AMM.d.ts +2 -2
  141. package/dist/npm/src/models/ledger/AMM.d.ts.map +1 -1
  142. package/dist/npm/src/models/ledger/Amendments.d.ts +2 -2
  143. package/dist/npm/src/models/ledger/Amendments.d.ts.map +1 -1
  144. package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts +3 -3
  145. package/dist/npm/src/models/ledger/BaseLedgerEntry.d.ts.map +1 -1
  146. package/dist/npm/src/models/ledger/DirectoryNode.d.ts +2 -2
  147. package/dist/npm/src/models/ledger/DirectoryNode.d.ts.map +1 -1
  148. package/dist/npm/src/models/ledger/FeeSettings.d.ts +2 -2
  149. package/dist/npm/src/models/ledger/FeeSettings.d.ts.map +1 -1
  150. package/dist/npm/src/models/ledger/Ledger.d.ts +11 -2
  151. package/dist/npm/src/models/ledger/Ledger.d.ts.map +1 -1
  152. package/dist/npm/src/models/ledger/LedgerEntry.d.ts +3 -2
  153. package/dist/npm/src/models/ledger/LedgerEntry.d.ts.map +1 -1
  154. package/dist/npm/src/models/ledger/LedgerHashes.d.ts +2 -2
  155. package/dist/npm/src/models/ledger/LedgerHashes.d.ts.map +1 -1
  156. package/dist/npm/src/models/ledger/NegativeUNL.d.ts +2 -2
  157. package/dist/npm/src/models/ledger/NegativeUNL.d.ts.map +1 -1
  158. package/dist/npm/src/models/ledger/Oracle.d.ts +12 -0
  159. package/dist/npm/src/models/ledger/Oracle.d.ts.map +1 -0
  160. package/dist/npm/src/models/ledger/Oracle.js +3 -0
  161. package/dist/npm/src/models/ledger/Oracle.js.map +1 -0
  162. package/dist/npm/src/models/ledger/RippleState.d.ts +2 -1
  163. package/dist/npm/src/models/ledger/RippleState.d.ts.map +1 -1
  164. package/dist/npm/src/models/ledger/RippleState.js +1 -0
  165. package/dist/npm/src/models/ledger/RippleState.js.map +1 -1
  166. package/dist/npm/src/models/ledger/index.d.ts +3 -2
  167. package/dist/npm/src/models/ledger/index.d.ts.map +1 -1
  168. package/dist/npm/src/models/ledger/index.js.map +1 -1
  169. package/dist/npm/src/models/methods/accountChannels.d.ts +1 -1
  170. package/dist/npm/src/models/methods/accountChannels.d.ts.map +1 -1
  171. package/dist/npm/src/models/methods/accountInfo.d.ts +17 -4
  172. package/dist/npm/src/models/methods/accountInfo.d.ts.map +1 -1
  173. package/dist/npm/src/models/methods/accountTx.d.ts +11 -5
  174. package/dist/npm/src/models/methods/accountTx.d.ts.map +1 -1
  175. package/dist/npm/src/models/methods/feature.d.ts +28 -0
  176. package/dist/npm/src/models/methods/feature.d.ts.map +1 -0
  177. package/dist/npm/src/models/methods/feature.js +3 -0
  178. package/dist/npm/src/models/methods/feature.js.map +1 -0
  179. package/dist/npm/src/models/methods/getAggregatePrice.d.ts +31 -0
  180. package/dist/npm/src/models/methods/getAggregatePrice.d.ts.map +1 -0
  181. package/dist/npm/src/models/methods/getAggregatePrice.js +3 -0
  182. package/dist/npm/src/models/methods/getAggregatePrice.js.map +1 -0
  183. package/dist/npm/src/models/methods/index.d.ts +15 -11
  184. package/dist/npm/src/models/methods/index.d.ts.map +1 -1
  185. package/dist/npm/src/models/methods/ledger.d.ts +17 -5
  186. package/dist/npm/src/models/methods/ledger.d.ts.map +1 -1
  187. package/dist/npm/src/models/methods/nftsByIssuer.d.ts +19 -0
  188. package/dist/npm/src/models/methods/nftsByIssuer.d.ts.map +1 -0
  189. package/dist/npm/src/models/methods/nftsByIssuer.js +3 -0
  190. package/dist/npm/src/models/methods/nftsByIssuer.js.map +1 -0
  191. package/dist/npm/src/models/methods/submitMultisigned.d.ts +16 -5
  192. package/dist/npm/src/models/methods/submitMultisigned.d.ts.map +1 -1
  193. package/dist/npm/src/models/methods/tx.d.ts +20 -8
  194. package/dist/npm/src/models/methods/tx.d.ts.map +1 -1
  195. package/dist/npm/src/models/transactions/AMMDeposit.d.ts +3 -1
  196. package/dist/npm/src/models/transactions/AMMDeposit.d.ts.map +1 -1
  197. package/dist/npm/src/models/transactions/AMMDeposit.js +1 -0
  198. package/dist/npm/src/models/transactions/AMMDeposit.js.map +1 -1
  199. package/dist/npm/src/models/transactions/index.d.ts +2 -0
  200. package/dist/npm/src/models/transactions/index.d.ts.map +1 -1
  201. package/dist/npm/src/models/transactions/index.js.map +1 -1
  202. package/dist/npm/src/models/transactions/metadata.d.ts +3 -0
  203. package/dist/npm/src/models/transactions/metadata.d.ts.map +1 -1
  204. package/dist/npm/src/models/transactions/metadata.js.map +1 -1
  205. package/dist/npm/src/models/transactions/oracleDelete.d.ts +7 -0
  206. package/dist/npm/src/models/transactions/oracleDelete.d.ts.map +1 -0
  207. package/dist/npm/src/models/transactions/oracleDelete.js +10 -0
  208. package/dist/npm/src/models/transactions/oracleDelete.js.map +1 -0
  209. package/dist/npm/src/models/transactions/oracleSet.d.ts +13 -0
  210. package/dist/npm/src/models/transactions/oracleSet.d.ts.map +1 -0
  211. package/dist/npm/src/models/transactions/oracleSet.js +59 -0
  212. package/dist/npm/src/models/transactions/oracleSet.js.map +1 -0
  213. package/dist/npm/src/models/transactions/payment.d.ts +2 -2
  214. package/dist/npm/src/models/transactions/payment.js +1 -1
  215. package/dist/npm/src/models/transactions/transaction.d.ts +3 -1
  216. package/dist/npm/src/models/transactions/transaction.d.ts.map +1 -1
  217. package/dist/npm/src/models/transactions/transaction.js +8 -0
  218. package/dist/npm/src/models/transactions/transaction.js.map +1 -1
  219. package/dist/npm/src/sugar/autofill.d.ts +1 -1
  220. package/dist/npm/src/sugar/autofill.d.ts.map +1 -1
  221. package/dist/npm/src/sugar/autofill.js +2 -4
  222. package/dist/npm/src/sugar/autofill.js.map +1 -1
  223. package/dist/npm/src/sugar/getFeeXrp.d.ts +1 -1
  224. package/dist/npm/src/sugar/getFeeXrp.d.ts.map +1 -1
  225. package/dist/npm/src/sugar/getFeeXrp.js +3 -2
  226. package/dist/npm/src/sugar/getFeeXrp.js.map +1 -1
  227. package/dist/npm/src/sugar/submit.d.ts.map +1 -1
  228. package/dist/npm/src/sugar/submit.js.map +1 -1
  229. package/dist/npm/src/utils/hashes/hashLedger.d.ts +4 -3
  230. package/dist/npm/src/utils/hashes/hashLedger.d.ts.map +1 -1
  231. package/dist/npm/src/utils/hashes/hashLedger.js.map +1 -1
  232. package/dist/npm/src/utils/index.d.ts +2 -1
  233. package/dist/npm/src/utils/index.d.ts.map +1 -1
  234. package/dist/npm/src/utils/index.js.map +1 -1
  235. package/dist/npm/sugar/autofill.d.ts +1 -1
  236. package/dist/npm/sugar/autofill.d.ts.map +1 -1
  237. package/dist/npm/sugar/autofill.js +2 -4
  238. package/dist/npm/sugar/autofill.js.map +1 -1
  239. package/dist/npm/sugar/getFeeXrp.d.ts +1 -1
  240. package/dist/npm/sugar/getFeeXrp.d.ts.map +1 -1
  241. package/dist/npm/sugar/getFeeXrp.js +3 -2
  242. package/dist/npm/sugar/getFeeXrp.js.map +1 -1
  243. package/dist/npm/sugar/submit.d.ts.map +1 -1
  244. package/dist/npm/sugar/submit.js.map +1 -1
  245. package/dist/npm/utils/hashes/hashLedger.d.ts +4 -3
  246. package/dist/npm/utils/hashes/hashLedger.d.ts.map +1 -1
  247. package/dist/npm/utils/hashes/hashLedger.js.map +1 -1
  248. package/dist/npm/utils/index.d.ts +2 -1
  249. package/dist/npm/utils/index.d.ts.map +1 -1
  250. package/dist/npm/utils/index.js.map +1 -1
  251. package/package.json +7 -8
  252. package/src/Wallet/defaultFaucets.ts +0 -6
  253. package/src/Wallet/fundWallet.ts +0 -1
  254. package/src/client/RequestManager.ts +17 -12
  255. package/src/client/connection.ts +7 -5
  256. package/src/client/index.ts +79 -21
  257. package/src/client/partialPayment.ts +34 -13
  258. package/src/models/common/index.ts +41 -0
  259. package/src/models/ledger/AMM.ts +2 -2
  260. package/src/models/ledger/Amendments.ts +2 -2
  261. package/src/models/ledger/BaseLedgerEntry.ts +9 -5
  262. package/src/models/ledger/DirectoryNode.ts +2 -2
  263. package/src/models/ledger/FeeSettings.ts +4 -2
  264. package/src/models/ledger/Ledger.ts +46 -9
  265. package/src/models/ledger/LedgerEntry.ts +3 -0
  266. package/src/models/ledger/LedgerHashes.ts +2 -4
  267. package/src/models/ledger/NegativeUNL.ts +2 -2
  268. package/src/models/ledger/Oracle.ts +43 -0
  269. package/src/models/ledger/RippleState.ts +2 -0
  270. package/src/models/ledger/index.ts +4 -1
  271. package/src/models/methods/accountChannels.ts +64 -1
  272. package/src/models/methods/accountInfo.ts +58 -12
  273. package/src/models/methods/accountTx.ts +49 -8
  274. package/src/models/methods/feature.ts +68 -0
  275. package/src/models/methods/getAggregatePrice.ts +119 -0
  276. package/src/models/methods/index.ts +79 -23
  277. package/src/models/methods/ledger.ts +41 -5
  278. package/src/models/methods/nftsByIssuer.ts +68 -0
  279. package/src/models/methods/submitMultisigned.ts +48 -16
  280. package/src/models/methods/tx.ts +74 -22
  281. package/src/models/transactions/AMMDeposit.ts +2 -0
  282. package/src/models/transactions/index.ts +2 -0
  283. package/src/models/transactions/metadata.ts +1 -0
  284. package/src/models/transactions/oracleDelete.ts +32 -0
  285. package/src/models/transactions/oracleSet.ts +176 -0
  286. package/src/models/transactions/payment.ts +2 -2
  287. package/src/models/transactions/transaction.ts +12 -0
  288. package/src/sugar/autofill.ts +4 -10
  289. package/src/sugar/getFeeXrp.ts +6 -3
  290. package/src/sugar/submit.ts +5 -3
  291. package/src/utils/hashes/hashLedger.ts +8 -5
  292. package/src/utils/index.ts +2 -1
@@ -1,5 +1,7 @@
1
1
  /* eslint-disable no-inline-comments -- Necessary for important note */
2
2
  /* eslint-disable max-lines -- There is a lot to export */
3
+ import type { APIVersion, DEFAULT_API_VERSION } from '../common'
4
+
3
5
  import {
4
6
  AccountChannelsRequest,
5
7
  AccountChannelsResponse,
@@ -13,6 +15,8 @@ import {
13
15
  AccountInfoAccountFlags,
14
16
  AccountInfoRequest,
15
17
  AccountInfoResponse,
18
+ AccountInfoV1Response,
19
+ AccountInfoVersionResponseMap,
16
20
  AccountQueueData,
17
21
  AccountQueueTransaction,
18
22
  } from './accountInfo'
@@ -40,6 +44,8 @@ import {
40
44
  import {
41
45
  AccountTxRequest,
42
46
  AccountTxResponse,
47
+ AccountTxV1Response,
48
+ AccountTxVersionResponseMap,
43
49
  AccountTxTransaction,
44
50
  } from './accountTx'
45
51
  import { AMMInfoRequest, AMMInfoResponse } from './ammInfo'
@@ -60,23 +66,37 @@ import {
60
66
  DepositAuthorizedRequest,
61
67
  DepositAuthorizedResponse,
62
68
  } from './depositAuthorized'
69
+ import {
70
+ FeatureAllRequest,
71
+ FeatureAllResponse,
72
+ FeatureOneRequest,
73
+ FeatureOneResponse,
74
+ FeatureRequest,
75
+ FeatureResponse,
76
+ } from './feature'
63
77
  import { FeeRequest, FeeResponse } from './fee'
64
78
  import {
65
79
  GatewayBalance,
66
80
  GatewayBalancesRequest,
67
81
  GatewayBalancesResponse,
68
82
  } from './gatewayBalances'
83
+ import {
84
+ GetAggregatePriceRequest,
85
+ GetAggregatePriceResponse,
86
+ } from './getAggregatePrice'
69
87
  import {
70
88
  LedgerBinary,
71
89
  LedgerModifiedOfferCreateTransaction,
72
90
  LedgerQueueData,
73
91
  LedgerRequest,
74
92
  LedgerResponse,
93
+ LedgerV1Response,
75
94
  LedgerRequestExpandedTransactionsOnly,
76
95
  LedgerResponseExpanded,
77
96
  LedgerRequestExpandedAccountsAndTransactions,
78
97
  LedgerRequestExpandedAccountsOnly,
79
98
  LedgerRequestExpandedTransactionsBinary,
99
+ LedgerVersionResponseMap,
80
100
  } from './ledger'
81
101
  import { LedgerClosedRequest, LedgerClosedResponse } from './ledgerClosed'
82
102
  import { LedgerCurrentRequest, LedgerCurrentResponse } from './ledgerCurrent'
@@ -96,6 +116,7 @@ import {
96
116
  NFTHistoryTransaction,
97
117
  } from './nftHistory'
98
118
  import { NFTInfoRequest, NFTInfoResponse } from './nftInfo'
119
+ import { NFTsByIssuerRequest, NFTsByIssuerResponse } from './nftsByIssuer'
99
120
  import { NFTSellOffersRequest, NFTSellOffersResponse } from './nftSellOffers'
100
121
  import { NoRippleCheckRequest, NoRippleCheckResponse } from './norippleCheck'
101
122
  import {
@@ -131,6 +152,8 @@ import { SubmitRequest, SubmitResponse } from './submit'
131
152
  import {
132
153
  SubmitMultisignedRequest,
133
154
  SubmitMultisignedResponse,
155
+ SubmitMultisignedV1Response,
156
+ SubmitMultisignedVersionResponseMap,
134
157
  } from './submitMultisigned'
135
158
  import {
136
159
  BooksSnapshot,
@@ -151,7 +174,7 @@ import {
151
174
  TransactionEntryRequest,
152
175
  TransactionEntryResponse,
153
176
  } from './transactionEntry'
154
- import { TxRequest, TxResponse } from './tx'
177
+ import { TxRequest, TxResponse, TxV1Response, TxVersionResponseMap } from './tx'
155
178
  import {
156
179
  UnsubscribeBook,
157
180
  UnsubscribeRequest,
@@ -199,6 +222,7 @@ type Request =
199
222
  | ServerDefinitionsRequest
200
223
  | ServerInfoRequest
201
224
  | ServerStateRequest
225
+ | FeatureRequest
202
226
  // utility methods
203
227
  | PingRequest
204
228
  | RandomRequest
@@ -208,33 +232,36 @@ type Request =
208
232
  // clio only methods
209
233
  | NFTInfoRequest
210
234
  | NFTHistoryRequest
235
+ | NFTsByIssuerRequest
211
236
  // AMM methods
212
237
  | AMMInfoRequest
238
+ // Price Oracle methods
239
+ | GetAggregatePriceRequest
213
240
 
214
241
  /**
215
242
  * @category Responses
216
243
  */
217
- type Response =
244
+ type Response<Version extends APIVersion = typeof DEFAULT_API_VERSION> =
218
245
  // account methods
219
246
  | AccountChannelsResponse
220
247
  | AccountCurrenciesResponse
221
- | AccountInfoResponse
248
+ | AccountInfoVersionResponseMap<Version>
222
249
  | AccountLinesResponse
223
250
  | AccountNFTsResponse
224
251
  | AccountObjectsResponse
225
252
  | AccountOffersResponse
226
- | AccountTxResponse
253
+ | AccountTxVersionResponseMap<Version>
227
254
  | GatewayBalancesResponse
228
255
  | NoRippleCheckResponse
229
256
  // ledger methods
230
- | LedgerResponse
257
+ | LedgerVersionResponseMap<Version>
231
258
  | LedgerClosedResponse
232
259
  | LedgerCurrentResponse
233
260
  | LedgerDataResponse
234
261
  | LedgerEntryResponse
235
262
  // transaction methods
236
263
  | SubmitResponse
237
- | SubmitMultisignedResponse
264
+ | SubmitMultisignedVersionResponseMap<Version>
238
265
  | TransactionEntryResponse
239
266
  | TxResponse
240
267
  // path and order book methods
@@ -253,6 +280,7 @@ type Response =
253
280
  | ServerDefinitionsResponse
254
281
  | ServerInfoResponse
255
282
  | ServerStateResponse
283
+ | FeatureResponse
256
284
  // utility methods
257
285
  | PingResponse
258
286
  | RandomResponse
@@ -262,15 +290,21 @@ type Response =
262
290
  // clio only methods
263
291
  | NFTInfoResponse
264
292
  | NFTHistoryResponse
293
+ | NFTsByIssuerResponse
265
294
  // AMM methods
266
295
  | AMMInfoResponse
296
+ // Price Oracle methods
297
+ | GetAggregatePriceResponse
267
298
 
268
- export type RequestResponseMap<T> = T extends AccountChannelsRequest
299
+ export type RequestResponseMap<
300
+ T,
301
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
302
+ > = T extends AccountChannelsRequest
269
303
  ? AccountChannelsResponse
270
304
  : T extends AccountCurrenciesRequest
271
305
  ? AccountCurrenciesResponse
272
306
  : T extends AccountInfoRequest
273
- ? AccountInfoResponse
307
+ ? AccountInfoVersionResponseMap<Version>
274
308
  : T extends AccountLinesRequest
275
309
  ? AccountLinesResponse
276
310
  : T extends AccountNFTsRequest
@@ -280,11 +314,13 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
280
314
  : T extends AccountOffersRequest
281
315
  ? AccountOffersResponse
282
316
  : T extends AccountTxRequest
283
- ? AccountTxResponse
317
+ ? AccountTxVersionResponseMap<Version>
284
318
  : T extends AMMInfoRequest
285
319
  ? AMMInfoResponse
286
320
  : T extends GatewayBalancesRequest
287
321
  ? GatewayBalancesResponse
322
+ : T extends GetAggregatePriceRequest
323
+ ? GetAggregatePriceResponse
288
324
  : T extends NoRippleCheckRequest
289
325
  ? NoRippleCheckResponse
290
326
  : // NOTE: The order of these LedgerRequest types is important
@@ -344,15 +380,15 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
344
380
  // then we'd get the wrong response type, LedgerResponse, instead of
345
381
  // LedgerResponseExpanded.
346
382
  T extends LedgerRequestExpandedTransactionsBinary
347
- ? LedgerResponse
383
+ ? LedgerVersionResponseMap<Version>
348
384
  : T extends LedgerRequestExpandedAccountsAndTransactions
349
- ? LedgerResponseExpanded
385
+ ? LedgerResponseExpanded<Version>
350
386
  : T extends LedgerRequestExpandedTransactionsOnly
351
- ? LedgerResponseExpanded
387
+ ? LedgerResponseExpanded<Version>
352
388
  : T extends LedgerRequestExpandedAccountsOnly
353
- ? LedgerResponseExpanded
389
+ ? LedgerResponseExpanded<Version>
354
390
  : T extends LedgerRequest
355
- ? LedgerResponse
391
+ ? LedgerVersionResponseMap<Version>
356
392
  : T extends LedgerClosedRequest
357
393
  ? LedgerClosedResponse
358
394
  : T extends LedgerCurrentRequest
@@ -364,11 +400,11 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
364
400
  : T extends SubmitRequest
365
401
  ? SubmitResponse
366
402
  : T extends SubmitMultisignedRequest
367
- ? SubmitMultisignedResponse
403
+ ? SubmitMultisignedVersionResponseMap<Version>
368
404
  : T extends TransactionEntryRequest
369
405
  ? TransactionEntryResponse
370
406
  : T extends TxRequest
371
- ? TxResponse
407
+ ? TxVersionResponseMap<Version>
372
408
  : T extends BookOffersRequest
373
409
  ? BookOffersResponse
374
410
  : T extends DepositAuthorizedRequest
@@ -393,6 +429,10 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
393
429
  ? ServerStateResponse
394
430
  : T extends ServerDefinitionsRequest
395
431
  ? ServerDefinitionsResponse
432
+ : T extends FeatureAllRequest
433
+ ? FeatureAllResponse
434
+ : T extends FeatureOneRequest
435
+ ? FeatureOneResponse
396
436
  : T extends PingRequest
397
437
  ? PingResponse
398
438
  : T extends RandomRequest
@@ -403,22 +443,29 @@ export type RequestResponseMap<T> = T extends AccountChannelsRequest
403
443
  ? NFTSellOffersResponse
404
444
  : T extends NFTInfoRequest
405
445
  ? NFTInfoResponse
446
+ : T extends NFTsByIssuerRequest
447
+ ? NFTsByIssuerResponse
406
448
  : T extends NFTHistoryRequest
407
449
  ? NFTHistoryResponse
408
- : Response
450
+ : Response<Version>
409
451
 
410
452
  export type MarkerRequest = Request & {
411
453
  limit?: number
412
454
  marker?: unknown
413
455
  }
414
456
 
415
- export type MarkerResponse = Response & {
457
+ export type MarkerResponse<
458
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
459
+ > = Response<Version> & {
416
460
  result: {
417
461
  marker?: unknown
418
462
  }
419
463
  }
420
464
 
421
- export type RequestAllResponseMap<T> = T extends AccountChannelsRequest
465
+ export type RequestAllResponseMap<
466
+ T,
467
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
468
+ > = T extends AccountChannelsRequest
422
469
  ? AccountChannelsResponse
423
470
  : T extends AccountLinesRequest
424
471
  ? AccountLinesResponse
@@ -427,14 +474,12 @@ export type RequestAllResponseMap<T> = T extends AccountChannelsRequest
427
474
  : T extends AccountOffersRequest
428
475
  ? AccountOffersResponse
429
476
  : T extends AccountTxRequest
430
- ? AccountTxResponse
477
+ ? AccountTxVersionResponseMap<Version>
431
478
  : T extends LedgerDataRequest
432
479
  ? LedgerDataResponse
433
- : T extends AccountTxRequest
434
- ? AccountTxResponse
435
480
  : T extends BookOffersRequest
436
481
  ? BookOffersResponse
437
- : MarkerResponse
482
+ : MarkerResponse<Version>
438
483
 
439
484
  export {
440
485
  // Allow users to define their own requests and responses. This is useful for releasing experimental versions
@@ -452,6 +497,7 @@ export {
452
497
  AccountInfoAccountFlags,
453
498
  AccountInfoRequest,
454
499
  AccountInfoResponse,
500
+ AccountInfoV1Response,
455
501
  AccountQueueData,
456
502
  AccountQueueTransaction,
457
503
  AccountLinesRequest,
@@ -469,15 +515,19 @@ export {
469
515
  AccountOffersResponse,
470
516
  AccountTxRequest,
471
517
  AccountTxResponse,
518
+ AccountTxV1Response,
472
519
  AccountTxTransaction,
473
520
  GatewayBalance,
474
521
  GatewayBalancesRequest,
475
522
  GatewayBalancesResponse,
523
+ GetAggregatePriceRequest,
524
+ GetAggregatePriceResponse,
476
525
  NoRippleCheckRequest,
477
526
  NoRippleCheckResponse,
478
527
  // ledger methods
479
528
  LedgerRequest,
480
529
  LedgerResponse,
530
+ LedgerV1Response,
481
531
  LedgerQueueData,
482
532
  LedgerBinary,
483
533
  LedgerModifiedOfferCreateTransaction,
@@ -497,10 +547,12 @@ export {
497
547
  SubmitResponse,
498
548
  SubmitMultisignedRequest,
499
549
  SubmitMultisignedResponse,
550
+ SubmitMultisignedV1Response,
500
551
  TransactionEntryRequest,
501
552
  TransactionEntryResponse,
502
553
  TxRequest,
503
554
  TxResponse,
555
+ TxV1Response,
504
556
  // path and order book methods with types
505
557
  BookOffersRequest,
506
558
  BookOffer,
@@ -553,6 +605,8 @@ export {
553
605
  ServerState,
554
606
  StateAccountingFinal,
555
607
  StateAccounting,
608
+ FeatureRequest,
609
+ FeatureResponse,
556
610
  // utility methods
557
611
  PingRequest,
558
612
  PingResponse,
@@ -570,6 +624,8 @@ export {
570
624
  NFTHistoryRequest,
571
625
  NFTHistoryResponse,
572
626
  NFTHistoryTransaction,
627
+ NFTsByIssuerRequest,
628
+ NFTsByIssuerResponse,
573
629
  // AMM methods
574
630
  AMMInfoRequest,
575
631
  AMMInfoResponse,
@@ -1,4 +1,5 @@
1
- import { Ledger } from '../ledger'
1
+ import { APIVersion, DEFAULT_API_VERSION, RIPPLED_API_V1 } from '../common'
2
+ import { Ledger, LedgerV1, LedgerVersionMap } from '../ledger/Ledger'
2
3
  import { LedgerEntryFilter } from '../ledger/LedgerEntry'
3
4
  import { Transaction, TransactionAndMetadata } from '../transactions'
4
5
  import { TransactionMetadata } from '../transactions/metadata'
@@ -207,6 +208,12 @@ export interface LedgerBinary
207
208
  transactions?: string[]
208
209
  }
209
210
 
211
+ export interface LedgerBinaryV1
212
+ extends Omit<Omit<LedgerV1, 'transactions'>, 'accountState'> {
213
+ accountState?: string[]
214
+ transactions?: string[]
215
+ }
216
+
210
217
  interface LedgerResponseBase {
211
218
  /** Unique identifying hash of the entire ledger. */
212
219
  ledger_hash: string
@@ -231,6 +238,11 @@ interface LedgerResponseResult extends LedgerResponseBase {
231
238
  ledger: LedgerBinary
232
239
  }
233
240
 
241
+ interface LedgerV1ResponseResult extends LedgerResponseBase {
242
+ /** The complete header data of this {@link Ledger}. */
243
+ ledger: LedgerBinaryV1
244
+ }
245
+
234
246
  /**
235
247
  * Response expected from a {@link LedgerRequest}.
236
248
  * This is the default request response, triggered when `expand` and `binary` are both false.
@@ -241,9 +253,31 @@ export interface LedgerResponse extends BaseResponse {
241
253
  result: LedgerResponseResult
242
254
  }
243
255
 
244
- interface LedgerResponseExpandedResult extends LedgerResponseBase {
256
+ /**
257
+ * Response expected from a {@link LedgerRequest}.
258
+ * This is the default request response, triggered when `expand` and `binary` are both false.
259
+ * This is the response for API version 1.
260
+ *
261
+ * @category ResponsesV1
262
+ */
263
+ export interface LedgerV1Response extends BaseResponse {
264
+ result: LedgerV1ResponseResult
265
+ }
266
+
267
+ /**
268
+ * Type to map between the API version and the response type.
269
+ *
270
+ * @category Responses
271
+ */
272
+ export type LedgerVersionResponseMap<
273
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
274
+ > = Version extends typeof RIPPLED_API_V1 ? LedgerV1Response : LedgerResponse
275
+
276
+ interface LedgerResponseExpandedResult<
277
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
278
+ > extends LedgerResponseBase {
245
279
  /** The complete header data of this {@link Ledger}. */
246
- ledger: Ledger
280
+ ledger: LedgerVersionMap<Version>
247
281
  }
248
282
 
249
283
  /**
@@ -254,6 +288,8 @@ interface LedgerResponseExpandedResult extends LedgerResponseBase {
254
288
  *
255
289
  * @category Responses
256
290
  */
257
- export interface LedgerResponseExpanded extends BaseResponse {
258
- result: LedgerResponseExpandedResult
291
+ export interface LedgerResponseExpanded<
292
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
293
+ > extends BaseResponse {
294
+ result: LedgerResponseExpandedResult<Version>
259
295
  }
@@ -0,0 +1,68 @@
1
+ import { NFToken } from '../common'
2
+
3
+ import { BaseRequest, BaseResponse, LookupByLedgerRequest } from './baseMethod'
4
+
5
+ /**
6
+ * The nfts_by_issuer method returns a list of NFTokens issued by the account.
7
+ * The order of the NFTs is not associated with the date the NFTs were minted.
8
+ * Expects a response in the form of a {@link
9
+ * NFTsByIssuerResponse}.
10
+ *
11
+ * @category Requests
12
+ */
13
+ export interface NFTsByIssuerRequest
14
+ extends BaseRequest,
15
+ LookupByLedgerRequest {
16
+ command: 'nfts_by_issuer'
17
+ /**
18
+ * A unique identifier for the account, most commonly the account's address
19
+ */
20
+ issuer: string
21
+ /**
22
+ * Value from a previous paginated response. Resume retrieving data where
23
+ * that response left off. This value is stable even if there is a change in
24
+ * the server's range of available ledgers.
25
+ */
26
+ marker?: unknown
27
+ /**
28
+ * Filter NFTs issued by this issuer that have this taxon.
29
+ */
30
+ nft_taxon?: number
31
+ /**
32
+ * Default varies. Limit the number of transactions to retrieve. The server
33
+ * is not required to honor this value.
34
+ */
35
+ limit?: number
36
+ }
37
+
38
+ /**
39
+ * Expected response from an {@link NFTsByIssuerRequest}.
40
+ *
41
+ * @category Responses
42
+ */
43
+ export interface NFTsByIssuerResponse extends BaseResponse {
44
+ result: {
45
+ /**
46
+ * The unique identifier for the account, most commonly the account's address
47
+ */
48
+ issuer: string
49
+ /**
50
+ * A list of NFTs issued by the account.
51
+ * The order of the NFTs is not associated with the date the NFTs were minted.
52
+ */
53
+ nfts: NFToken[]
54
+ /**
55
+ * Server-defined value indicating the response is paginated. Pass this
56
+ * to the next call to resume where this call left off.
57
+ */
58
+ marker?: unknown
59
+ /**
60
+ * The limit value used in the request.
61
+ */
62
+ limit?: number
63
+ /**
64
+ * Use to filter NFTs issued by this issuer that have this taxon.
65
+ */
66
+ nft_taxon?: number
67
+ }
68
+ }
@@ -1,3 +1,4 @@
1
+ import { APIVersion, DEFAULT_API_VERSION, RIPPLED_API_V1 } from '../common'
1
2
  import { Transaction } from '../transactions'
2
3
 
3
4
  import { BaseRequest, BaseResponse } from './baseMethod'
@@ -24,28 +25,59 @@ export interface SubmitMultisignedRequest extends BaseRequest {
24
25
  fail_hard?: boolean
25
26
  }
26
27
 
28
+ /**
29
+ * Common properties for multisigned transaction responses.
30
+ *
31
+ * @category Responses
32
+ */
33
+ interface BaseSubmitMultisignedResult {
34
+ /**
35
+ * Code indicating the preliminary result of the transaction, for example.
36
+ * `tesSUCCESS`.
37
+ */
38
+ engine_result: string
39
+ /**
40
+ * Numeric code indicating the preliminary result of the transaction,
41
+ * directly correlated to `engine_result`.
42
+ */
43
+ engine_result_code: number
44
+ /** Human-readable explanation of the preliminary transaction result. */
45
+ engine_result_message: string
46
+ /** The complete transaction in hex string format. */
47
+ tx_blob: string
48
+ /** The complete transaction in JSON format. */
49
+ tx_json: Transaction
50
+ }
51
+
27
52
  /**
28
53
  * Response expected from a {@link SubmitMultisignedRequest}.
29
54
  *
30
55
  * @category Responses
31
56
  */
32
57
  export interface SubmitMultisignedResponse extends BaseResponse {
33
- result: {
34
- /**
35
- * Code indicating the preliminary result of the transaction, for example.
36
- * `tesSUCCESS` .
37
- */
38
- engine_result: string
39
- /**
40
- * Numeric code indicating the preliminary result of the transaction,
41
- * directly correlated to `engine_result`.
42
- */
43
- engine_result_code: number
44
- /** Human-readable explanation of the preliminary transaction result. */
45
- engine_result_message: string
46
- /** The complete transaction in hex string format. */
47
- tx_blob: string
48
- /** The complete transaction in JSON format. */
58
+ result: BaseSubmitMultisignedResult & {
59
+ hash?: string
60
+ }
61
+ }
62
+
63
+ /**
64
+ * Response expected from a {@link SubmitMultisignedRequest} using api_version 1.
65
+ *
66
+ * @category ResponsesV1
67
+ */
68
+ export interface SubmitMultisignedV1Response extends BaseResponse {
69
+ result: BaseSubmitMultisignedResult & {
49
70
  tx_json: Transaction & { hash?: string }
50
71
  }
51
72
  }
73
+
74
+ /**
75
+ * Type to map between the API version and the response type.
76
+ *
77
+ * @category Responses
78
+ */
79
+ export type SubmitMultisignedVersionResponseMap<
80
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
81
+ > = Version extends typeof RIPPLED_API_V1
82
+ ? SubmitMultisignedV1Response
83
+ : SubmitMultisignedResponse
@@ -1,3 +1,9 @@
1
+ import {
2
+ APIVersion,
3
+ DEFAULT_API_VERSION,
4
+ RIPPLED_API_V1,
5
+ RIPPLED_API_V2,
6
+ } from '../common'
1
7
  import { Transaction, TransactionMetadata } from '../transactions'
2
8
  import { BaseTransaction } from '../transactions/common'
3
9
 
@@ -41,6 +47,47 @@ export interface TxRequest extends BaseRequest {
41
47
  max_ledger?: number
42
48
  }
43
49
 
50
+ /**
51
+ * Common properties of transaction responses.
52
+ *
53
+ * @category Responses
54
+ */
55
+ interface BaseTxResult<
56
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
57
+ T extends BaseTransaction = Transaction,
58
+ > {
59
+ /** The SHA-512 hash of the transaction. */
60
+ hash: string
61
+ /**
62
+ * The Concise Transaction Identifier of the transaction (16-byte hex string)
63
+ */
64
+ ctid?: string
65
+ /** The ledger index of the ledger that includes this transaction. */
66
+ ledger_index?: number
67
+ /** Unique hashed string Transaction metadata blob, which describes the results of the transaction.
68
+ * Can be undefined if a transaction has not been validated yet. This field is omitted if binary
69
+ * binary format is not requested. */
70
+ meta_blob?: Version extends typeof RIPPLED_API_V2
71
+ ? TransactionMetadata<T> | string
72
+ : never
73
+ /** Transaction metadata, which describes the results of the transaction.
74
+ * Can be undefined if a transaction has not been validated yet. */
75
+ meta?: TransactionMetadata<T> | string
76
+ /**
77
+ * If true, this data comes from a validated ledger version; if omitted or.
78
+ * Set to false, this data is not final.
79
+ */
80
+ validated?: boolean
81
+ /**
82
+ * The time the transaction was closed, in seconds since the Ripple Epoch.
83
+ */
84
+ close_time_iso?: string
85
+ /**
86
+ * This number measures the number of seconds since the "Ripple Epoch" of January 1, 2000 (00:00 UTC)
87
+ */
88
+ date?: number
89
+ }
90
+
44
91
  /**
45
92
  * Response expected from a {@link TxRequest}.
46
93
  *
@@ -48,28 +95,7 @@ export interface TxRequest extends BaseRequest {
48
95
  */
49
96
  export interface TxResponse<T extends BaseTransaction = Transaction>
50
97
  extends BaseResponse {
51
- result: {
52
- /** The SHA-512 hash of the transaction. */
53
- hash: string
54
- /**
55
- * The Concise Transaction Identifier of the transaction (16-byte hex string)
56
- */
57
- ctid?: string
58
- /** The ledger index of the ledger that includes this transaction. */
59
- ledger_index?: number
60
- /** Transaction metadata, which describes the results of the transaction.
61
- * Can be undefined if a transaction has not been validated yet. */
62
- meta?: TransactionMetadata<T> | string
63
- /**
64
- * If true, this data comes from a validated ledger version; if omitted or.
65
- * Set to false, this data is not final.
66
- */
67
- validated?: boolean
68
- /**
69
- * This number measures the number of seconds since the "Ripple Epoch" of January 1, 2000 (00:00 UTC)
70
- */
71
- date?: number
72
- } & T
98
+ result: BaseTxResult<typeof RIPPLED_API_V2, T> & { tx_json: T }
73
99
  /**
74
100
  * If true, the server was able to search all of the specified ledger
75
101
  * versions, and the transaction was in none of them. If false, the server did
@@ -78,3 +104,29 @@ export interface TxResponse<T extends BaseTransaction = Transaction>
78
104
  */
79
105
  searched_all?: boolean
80
106
  }
107
+
108
+ /**
109
+ * Response expected from a {@link TxRequest} using API version 1.
110
+ *
111
+ * @category ResponsesV1
112
+ */
113
+ export interface TxV1Response<T extends BaseTransaction = Transaction>
114
+ extends BaseResponse {
115
+ result: BaseTxResult<typeof RIPPLED_API_V1, T> & T
116
+ /**
117
+ * If true, the server was able to search all of the specified ledger
118
+ * versions, and the transaction was in none of them. If false, the server did
119
+ * not have all of the specified ledger versions available, so it is not sure.
120
+ * If one of them might contain the transaction.
121
+ */
122
+ searched_all?: boolean
123
+ }
124
+
125
+ /**
126
+ * Type to map between the API version and the response type.
127
+ *
128
+ * @category Responses
129
+ */
130
+ export type TxVersionResponseMap<
131
+ Version extends APIVersion = typeof DEFAULT_API_VERSION,
132
+ > = Version extends typeof RIPPLED_API_V1 ? TxV1Response : TxResponse
@@ -21,6 +21,7 @@ export enum AMMDepositFlags {
21
21
  tfTwoAsset = 0x00100000,
22
22
  tfOneAssetLPToken = 0x00200000,
23
23
  tfLimitLPToken = 0x00400000,
24
+ tfTwoAssetIfEmpty = 0x00800000,
24
25
  }
25
26
 
26
27
  export interface AMMDepositFlagsInterface extends GlobalFlags {
@@ -29,6 +30,7 @@ export interface AMMDepositFlagsInterface extends GlobalFlags {
29
30
  tfTwoAsset?: boolean
30
31
  tfOneAssetLPToken?: boolean
31
32
  tfLimitLPToken?: boolean
33
+ tfTwoAssetIfEmpty?: boolean
32
34
  }
33
35
 
34
36
  /**
@@ -58,6 +58,8 @@ export {
58
58
  OfferCreateFlagsInterface,
59
59
  OfferCreate,
60
60
  } from './offerCreate'
61
+ export { OracleDelete } from './oracleDelete'
62
+ export { OracleSet } from './oracleSet'
61
63
  export { PaymentFlags, PaymentFlagsInterface, Payment } from './payment'
62
64
  export {
63
65
  PaymentChannelClaimFlags,