@bithomp/xrpl-api 3.5.1 → 3.6.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 (178) hide show
  1. package/lib/client.js +3 -2
  2. package/lib/common/index.d.ts +2 -0
  3. package/lib/common/index.js +3 -1
  4. package/lib/ledger/transaction.js +4 -4
  5. package/lib/models/account_info.js +1 -1
  6. package/lib/parse/ledger/amount.js +3 -0
  7. package/lib/parse/ledger/batch-flags.d.ts +5 -0
  8. package/lib/parse/ledger/batch-flags.js +8 -0
  9. package/lib/parse/ledger/global-flags.d.ts +4 -0
  10. package/lib/parse/ledger/global-flags.js +8 -0
  11. package/lib/parse/ledger/ledger.js +35 -1
  12. package/lib/parse/ledger/tx-account-set-flags.d.ts +4 -0
  13. package/lib/parse/ledger/tx-account-set-flags.js +42 -0
  14. package/lib/parse/ledger/tx-amm-clawback-flags.d.ts +6 -0
  15. package/lib/parse/ledger/tx-amm-clawback-flags.js +8 -0
  16. package/lib/parse/ledger/tx-amm-deposit-flags.d.ts +6 -0
  17. package/lib/parse/ledger/tx-amm-deposit-flags.js +8 -0
  18. package/lib/parse/ledger/tx-amm-withdraw-flags.d.ts +6 -0
  19. package/lib/parse/ledger/tx-amm-withdraw-flags.js +8 -0
  20. package/lib/parse/ledger/tx-batch-flags.d.ts +6 -0
  21. package/lib/parse/ledger/tx-batch-flags.js +8 -0
  22. package/lib/parse/ledger/tx-global-flags.d.ts +5 -0
  23. package/lib/parse/ledger/tx-global-flags.js +8 -0
  24. package/lib/parse/ledger/tx-mptoken-authorize-flags.d.ts +6 -0
  25. package/lib/parse/ledger/tx-mptoken-authorize-flags.js +8 -0
  26. package/lib/parse/ledger/tx-mptoken-issuance-create-flags.d.ts +6 -0
  27. package/lib/parse/ledger/tx-mptoken-issuance-create-flags.js +8 -0
  28. package/lib/parse/ledger/tx-mptoken-issuance-set-flags.d.ts +6 -0
  29. package/lib/parse/ledger/tx-mptoken-issuance-set-flags.js +8 -0
  30. package/lib/parse/ledger/tx-nftoken-mint-flags.d.ts +6 -0
  31. package/lib/parse/ledger/tx-nftoken-mint-flags.js +8 -0
  32. package/lib/parse/ledger/tx-nftoken-offer-create-flags.d.ts +6 -0
  33. package/lib/parse/ledger/tx-nftoken-offer-create-flags.js +8 -0
  34. package/lib/parse/ledger/tx-offer-create-flags.d.ts +6 -0
  35. package/lib/parse/ledger/tx-offer-create-flags.js +8 -0
  36. package/lib/parse/ledger/tx-payment-flags.d.ts +6 -0
  37. package/lib/parse/ledger/tx-payment-flags.js +8 -0
  38. package/lib/parse/ledger/tx-trust-set-flags.d.ts +6 -0
  39. package/lib/parse/ledger/tx-trust-set-flags.js +8 -0
  40. package/lib/parse/ledger/tx-uritoken-mint-flags.d.ts +6 -0
  41. package/lib/parse/ledger/tx-uritoken-mint-flags.js +8 -0
  42. package/lib/parse/outcome/emitted_txns.d.ts +1 -1
  43. package/lib/parse/outcome/emitted_txns.js +6 -5
  44. package/lib/parse/outcome.js +9 -9
  45. package/lib/parse/specification/account-delete.d.ts +1 -1
  46. package/lib/parse/specification/account-delete.js +3 -1
  47. package/lib/parse/specification/amendment.d.ts +1 -1
  48. package/lib/parse/specification/amendment.js +3 -1
  49. package/lib/parse/specification/amm-bid.d.ts +1 -1
  50. package/lib/parse/specification/amm-bid.js +3 -1
  51. package/lib/parse/specification/amm-clawback.d.ts +1 -1
  52. package/lib/parse/specification/amm-clawback.js +3 -3
  53. package/lib/parse/specification/amm-create.d.ts +1 -1
  54. package/lib/parse/specification/amm-create.js +3 -1
  55. package/lib/parse/specification/amm-delete.d.ts +1 -1
  56. package/lib/parse/specification/amm-delete.js +3 -1
  57. package/lib/parse/specification/amm-deposit.d.ts +1 -1
  58. package/lib/parse/specification/amm-deposit.js +3 -3
  59. package/lib/parse/specification/amm-vote.d.ts +1 -1
  60. package/lib/parse/specification/amm-vote.js +3 -1
  61. package/lib/parse/specification/amm-withdraw.d.ts +1 -1
  62. package/lib/parse/specification/amm-withdraw.js +3 -3
  63. package/lib/parse/specification/batch.d.ts +4 -0
  64. package/lib/parse/specification/batch.js +83 -0
  65. package/lib/parse/specification/check-cancel.d.ts +1 -1
  66. package/lib/parse/specification/check-cancel.js +3 -1
  67. package/lib/parse/specification/check-cash.d.ts +1 -1
  68. package/lib/parse/specification/check-cash.js +3 -1
  69. package/lib/parse/specification/check-create.d.ts +1 -1
  70. package/lib/parse/specification/check-create.js +3 -1
  71. package/lib/parse/specification/clawback.d.ts +1 -1
  72. package/lib/parse/specification/clawback.js +3 -1
  73. package/lib/parse/specification/credential-accept.d.ts +2 -1
  74. package/lib/parse/specification/credential-accept.js +3 -1
  75. package/lib/parse/specification/credential-create.d.ts +2 -1
  76. package/lib/parse/specification/credential-create.js +3 -1
  77. package/lib/parse/specification/credential-delete.d.ts +2 -1
  78. package/lib/parse/specification/credential-delete.js +4 -2
  79. package/lib/parse/specification/delegate-set.d.ts +1 -1
  80. package/lib/parse/specification/delegate-set.js +3 -1
  81. package/lib/parse/specification/deposit-preauth.d.ts +1 -1
  82. package/lib/parse/specification/deposit-preauth.js +12 -1
  83. package/lib/parse/specification/did-delete.d.ts +1 -1
  84. package/lib/parse/specification/did-delete.js +3 -1
  85. package/lib/parse/specification/did-set.d.ts +1 -1
  86. package/lib/parse/specification/did-set.js +3 -1
  87. package/lib/parse/specification/escrow-cancel.d.ts +1 -1
  88. package/lib/parse/specification/escrow-cancel.js +3 -1
  89. package/lib/parse/specification/escrow-create.d.ts +1 -1
  90. package/lib/parse/specification/escrow-create.js +3 -1
  91. package/lib/parse/specification/escrow-finish.d.ts +1 -1
  92. package/lib/parse/specification/escrow-finish.js +3 -1
  93. package/lib/parse/specification/fee-update.d.ts +1 -1
  94. package/lib/parse/specification/fee-update.js +3 -1
  95. package/lib/parse/specification/genesis-mint.d.ts +1 -1
  96. package/lib/parse/specification/genesis-mint.js +3 -1
  97. package/lib/parse/specification/mptoken-authorize.d.ts +1 -1
  98. package/lib/parse/specification/mptoken-authorize.js +3 -3
  99. package/lib/parse/specification/mptoken-issuance-create.d.ts +1 -1
  100. package/lib/parse/specification/mptoken-issuance-create.js +3 -3
  101. package/lib/parse/specification/mptoken-issuance-destroy.d.ts +1 -1
  102. package/lib/parse/specification/mptoken-issuance-destroy.js +3 -1
  103. package/lib/parse/specification/mptoken-issuance-set.d.ts +1 -1
  104. package/lib/parse/specification/mptoken-issuance-set.js +3 -3
  105. package/lib/parse/specification/nftoken-accept-offer.d.ts +1 -1
  106. package/lib/parse/specification/nftoken-accept-offer.js +3 -3
  107. package/lib/parse/specification/nftoken-burn.d.ts +1 -1
  108. package/lib/parse/specification/nftoken-burn.js +3 -3
  109. package/lib/parse/specification/nftoken-cancel-offer.d.ts +1 -1
  110. package/lib/parse/specification/nftoken-cancel-offer.js +3 -3
  111. package/lib/parse/specification/nftoken-create-offer.d.ts +1 -1
  112. package/lib/parse/specification/nftoken-create-offer.js +3 -5
  113. package/lib/parse/specification/nftoken-mint.d.ts +1 -1
  114. package/lib/parse/specification/nftoken-mint.js +3 -3
  115. package/lib/parse/specification/nftoken-modify.d.ts +1 -1
  116. package/lib/parse/specification/nftoken-modify.js +3 -3
  117. package/lib/parse/specification/offer-cancel.d.ts +1 -1
  118. package/lib/parse/specification/offer-cancel.js +3 -1
  119. package/lib/parse/specification/offer-create.d.ts +1 -1
  120. package/lib/parse/specification/offer-create.js +6 -6
  121. package/lib/parse/specification/oracle-delete.d.ts +1 -1
  122. package/lib/parse/specification/oracle-delete.js +3 -1
  123. package/lib/parse/specification/oracle-set.d.ts +1 -1
  124. package/lib/parse/specification/oracle-set.js +3 -1
  125. package/lib/parse/specification/payment-channel-claim.d.ts +1 -1
  126. package/lib/parse/specification/payment-channel-claim.js +3 -1
  127. package/lib/parse/specification/payment-channel-create.d.ts +1 -1
  128. package/lib/parse/specification/payment-channel-create.js +3 -1
  129. package/lib/parse/specification/payment-channel-fund.d.ts +1 -1
  130. package/lib/parse/specification/payment-channel-fund.js +3 -1
  131. package/lib/parse/specification/payment.d.ts +1 -1
  132. package/lib/parse/specification/payment.js +8 -3
  133. package/lib/parse/specification/remit.d.ts +1 -1
  134. package/lib/parse/specification/remit.js +3 -1
  135. package/lib/parse/specification/set-remarks.d.ts +1 -1
  136. package/lib/parse/specification/set-remarks.js +3 -1
  137. package/lib/parse/specification/settings.d.ts +2 -1
  138. package/lib/parse/specification/settings.js +3 -1
  139. package/lib/parse/specification/ticket-create.d.ts +1 -1
  140. package/lib/parse/specification/ticket-create.js +3 -1
  141. package/lib/parse/specification/trust-set.d.ts +1 -1
  142. package/lib/parse/specification/trust-set.js +6 -1
  143. package/lib/parse/specification/unrecognized.d.ts +1 -1
  144. package/lib/parse/specification/unrecognized.js +3 -1
  145. package/lib/parse/specification/uritoken-burn.d.ts +1 -1
  146. package/lib/parse/specification/uritoken-burn.js +3 -1
  147. package/lib/parse/specification/uritoken-buy.d.ts +1 -1
  148. package/lib/parse/specification/uritoken-buy.js +3 -1
  149. package/lib/parse/specification/uritoken-cancel-sell-offer.d.ts +1 -1
  150. package/lib/parse/specification/uritoken-cancel-sell-offer.js +3 -1
  151. package/lib/parse/specification/uritoken-create-sell-offer.d.ts +1 -1
  152. package/lib/parse/specification/uritoken-create-sell-offer.js +3 -1
  153. package/lib/parse/specification/uritoken-mint.d.ts +1 -1
  154. package/lib/parse/specification/uritoken-mint.js +3 -3
  155. package/lib/parse/transaction.d.ts +118 -1
  156. package/lib/parse/transaction.js +8 -4
  157. package/lib/types/amm.d.ts +8 -7
  158. package/lib/types/amm.js +46 -6
  159. package/lib/types/batch.d.ts +21 -0
  160. package/lib/types/batch.js +26 -0
  161. package/lib/types/credentials.d.ts +1 -1
  162. package/lib/types/deposits.d.ts +6 -0
  163. package/lib/types/global.d.ts +19 -0
  164. package/lib/types/global.js +28 -0
  165. package/lib/types/mptokens.d.ts +7 -3
  166. package/lib/types/mptokens.js +44 -0
  167. package/lib/types/nftokens.d.ts +5 -2
  168. package/lib/types/nftokens.js +30 -0
  169. package/lib/types/offers.d.ts +3 -1
  170. package/lib/types/offers.js +16 -0
  171. package/lib/types/payments.d.ts +13 -0
  172. package/lib/types/payments.js +23 -0
  173. package/lib/types/specification.d.ts +2 -0
  174. package/lib/types/trustlines.d.ts +21 -1
  175. package/lib/types/trustlines.js +26 -1
  176. package/lib/types/uritokens.d.ts +3 -1
  177. package/lib/types/uritokens.js +16 -0
  178. package/package.json +7 -7
@@ -1,3 +1,3 @@
1
1
  import { FormattedAmendmentSpecification } from "../../types/amendments";
2
- declare function parseAmendment(tx: any): FormattedAmendmentSpecification;
2
+ declare function parseAmendment(tx: any, nativeCurrency?: string): FormattedAmendmentSpecification;
3
3
  export default parseAmendment;
@@ -37,13 +37,15 @@ const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
38
  const source_1 = require("../ledger/source");
39
39
  const emit_details_1 = require("../ledger/emit_details");
40
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
40
41
  const memos_1 = require("../ledger/memos");
41
- function parseAmendment(tx) {
42
+ function parseAmendment(tx, nativeCurrency) {
42
43
  assert.ok(tx.TransactionType === "EnableAmendment");
43
44
  return (0, common_1.removeUndefined)({
44
45
  source: (0, source_1.parseSource)(tx),
45
46
  amendment: tx.Amendment,
46
47
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
48
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
47
49
  memos: (0, memos_1.parseMemos)(tx),
48
50
  });
49
51
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMBid } from "xrpl";
2
2
  import { FormattedAmmBidSpecification } from "../../types/amm";
3
- declare function parseAmmBid(tx: AMMBid): FormattedAmmBidSpecification;
3
+ declare function parseAmmBid(tx: AMMBid, nativeCurrency?: string): FormattedAmmBidSpecification;
4
4
  export default parseAmmBid;
@@ -41,12 +41,13 @@ const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const asset_1 = __importDefault(require("../ledger/asset"));
43
43
  const auth_accounts_1 = __importDefault(require("../ledger/auth-accounts"));
44
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
44
45
  const memos_1 = require("../ledger/memos");
45
46
  const signers_1 = require("../ledger/signers");
46
47
  const regular_key_1 = require("../ledger/regular-key");
47
48
  const delegate_1 = require("../ledger/delegate");
48
49
  const source_1 = require("../ledger/source");
49
- function parseAmmBid(tx) {
50
+ function parseAmmBid(tx, nativeCurrency) {
50
51
  assert.ok(tx.TransactionType === "AMMBid");
51
52
  return (0, common_1.removeUndefined)({
52
53
  signers: (0, signers_1.parseSigners)(tx),
@@ -58,6 +59,7 @@ function parseAmmBid(tx) {
58
59
  bidMin: tx.BidMin ? (0, amount_1.default)(tx.BidMin) : undefined,
59
60
  bidMax: tx.BidMax ? (0, amount_1.default)(tx.BidMax) : undefined,
60
61
  authAccounts: (0, auth_accounts_1.default)(tx.AuthAccounts),
62
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
61
63
  memos: (0, memos_1.parseMemos)(tx),
62
64
  });
63
65
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMClawback } from "xrpl";
2
2
  import { FormattedAmmClawbackSpecification } from "../../types/amm";
3
- declare function parseAmmClawback(tx: AMMClawback): FormattedAmmClawbackSpecification;
3
+ declare function parseAmmClawback(tx: AMMClawback, nativeCurrency?: string): FormattedAmmClawbackSpecification;
4
4
  export default parseAmmClawback;
@@ -46,8 +46,8 @@ const signers_1 = require("../ledger/signers");
46
46
  const regular_key_1 = require("../ledger/regular-key");
47
47
  const delegate_1 = require("../ledger/delegate");
48
48
  const source_1 = require("../ledger/source");
49
- const amm_clawback_flags_1 = __importDefault(require("../ledger/amm-clawback-flags"));
50
- function parseAmmClawback(tx) {
49
+ const tx_amm_clawback_flags_1 = __importDefault(require("../ledger/tx-amm-clawback-flags"));
50
+ function parseAmmClawback(tx, nativeCurrency) {
51
51
  assert.ok(tx.TransactionType === "AMMClawback");
52
52
  return (0, common_1.removeUndefined)({
53
53
  signers: (0, signers_1.parseSigners)(tx),
@@ -58,7 +58,7 @@ function parseAmmClawback(tx) {
58
58
  asset2: (0, asset_1.default)(tx.Asset2),
59
59
  amount: tx.Amount ? (0, amount_1.default)(tx.Amount) : undefined,
60
60
  holder: tx.Holder ? (0, account_1.parseAccount)(tx.Holder) : undefined,
61
- flags: (0, amm_clawback_flags_1.default)(tx.Flags),
61
+ flags: (0, tx_amm_clawback_flags_1.default)(tx.Flags, { nativeCurrency }),
62
62
  memos: (0, memos_1.parseMemos)(tx),
63
63
  });
64
64
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMCreate } from "xrpl";
2
2
  import { FormattedAmmCreateSpecification } from "../../types/amm";
3
- declare function parseAmmCreate(tx: AMMCreate): FormattedAmmCreateSpecification;
3
+ declare function parseAmmCreate(tx: AMMCreate, nativeCurrency?: string): FormattedAmmCreateSpecification;
4
4
  export default parseAmmCreate;
@@ -39,12 +39,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
42
43
  const memos_1 = require("../ledger/memos");
43
44
  const signers_1 = require("../ledger/signers");
44
45
  const regular_key_1 = require("../ledger/regular-key");
45
46
  const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
- function parseAmmCreate(tx) {
48
+ function parseAmmCreate(tx, nativeCurrency) {
48
49
  assert.ok(tx.TransactionType === "AMMCreate");
49
50
  return (0, common_1.removeUndefined)({
50
51
  signers: (0, signers_1.parseSigners)(tx),
@@ -54,6 +55,7 @@ function parseAmmCreate(tx) {
54
55
  amount: (0, amount_1.default)(tx.Amount),
55
56
  amount2: (0, amount_1.default)(tx.Amount2),
56
57
  tradingFee: tx.TradingFee,
58
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
57
59
  memos: (0, memos_1.parseMemos)(tx),
58
60
  });
59
61
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMDelete } from "xrpl";
2
2
  import { FormattedAmmDeleteSpecification } from "../../types/amm";
3
- declare function parseAmmDelete(tx: AMMDelete): FormattedAmmDeleteSpecification;
3
+ declare function parseAmmDelete(tx: AMMDelete, nativeCurrency?: string): FormattedAmmDeleteSpecification;
4
4
  export default parseAmmDelete;
@@ -39,12 +39,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const asset_1 = __importDefault(require("../ledger/asset"));
42
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
42
43
  const memos_1 = require("../ledger/memos");
43
44
  const signers_1 = require("../ledger/signers");
44
45
  const regular_key_1 = require("../ledger/regular-key");
45
46
  const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
- function parseAmmDelete(tx) {
48
+ function parseAmmDelete(tx, nativeCurrency) {
48
49
  assert.ok(tx.TransactionType === "AMMDelete");
49
50
  return (0, common_1.removeUndefined)({
50
51
  signers: (0, signers_1.parseSigners)(tx),
@@ -53,6 +54,7 @@ function parseAmmDelete(tx) {
53
54
  source: (0, source_1.parseSource)(tx),
54
55
  asset: (0, asset_1.default)(tx.Asset),
55
56
  asset2: (0, asset_1.default)(tx.Asset2),
57
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
56
58
  memos: (0, memos_1.parseMemos)(tx),
57
59
  });
58
60
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMDeposit } from "xrpl";
2
2
  import { FormattedAmmDepositSpecification } from "../../types/amm";
3
- declare function parseAmmDeposit(tx: AMMDeposit): FormattedAmmDepositSpecification;
3
+ declare function parseAmmDeposit(tx: AMMDeposit, nativeCurrency?: string): FormattedAmmDepositSpecification;
4
4
  export default parseAmmDeposit;
@@ -45,8 +45,8 @@ const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
46
  const delegate_1 = require("../ledger/delegate");
47
47
  const source_1 = require("../ledger/source");
48
- const amm_deposit_flags_1 = __importDefault(require("../ledger/amm-deposit-flags"));
49
- function parseAmmDeposit(tx) {
48
+ const tx_amm_deposit_flags_1 = __importDefault(require("../ledger/tx-amm-deposit-flags"));
49
+ function parseAmmDeposit(tx, nativeCurrency) {
50
50
  assert.ok(tx.TransactionType === "AMMDeposit");
51
51
  return (0, common_1.removeUndefined)({
52
52
  signers: (0, signers_1.parseSigners)(tx),
@@ -59,7 +59,7 @@ function parseAmmDeposit(tx) {
59
59
  amount2: tx.Amount2 ? (0, amount_1.default)(tx.Amount2) : undefined,
60
60
  ePrice: tx.EPrice ? (0, amount_1.default)(tx.EPrice) : undefined,
61
61
  lpTokenOut: tx.LPTokenOut ? (0, amount_1.default)(tx.LPTokenOut) : undefined,
62
- flags: (0, amm_deposit_flags_1.default)(tx.Flags),
62
+ flags: (0, tx_amm_deposit_flags_1.default)(tx.Flags, { nativeCurrency }),
63
63
  memos: (0, memos_1.parseMemos)(tx),
64
64
  });
65
65
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMVote } from "xrpl";
2
2
  import { FormattedAmmVoteSpecification } from "../../types/amm";
3
- declare function parseAmmVote(tx: AMMVote): FormattedAmmVoteSpecification;
3
+ declare function parseAmmVote(tx: AMMVote, nativeCurrency?: string): FormattedAmmVoteSpecification;
4
4
  export default parseAmmVote;
@@ -39,12 +39,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const asset_1 = __importDefault(require("../ledger/asset"));
42
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
42
43
  const memos_1 = require("../ledger/memos");
43
44
  const signers_1 = require("../ledger/signers");
44
45
  const regular_key_1 = require("../ledger/regular-key");
45
46
  const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
- function parseAmmVote(tx) {
48
+ function parseAmmVote(tx, nativeCurrency) {
48
49
  assert.ok(tx.TransactionType === "AMMVote");
49
50
  return (0, common_1.removeUndefined)({
50
51
  signers: (0, signers_1.parseSigners)(tx),
@@ -54,6 +55,7 @@ function parseAmmVote(tx) {
54
55
  asset: (0, asset_1.default)(tx.Asset),
55
56
  asset2: (0, asset_1.default)(tx.Asset2),
56
57
  tradingFee: tx.TradingFee,
58
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
57
59
  memos: (0, memos_1.parseMemos)(tx),
58
60
  });
59
61
  }
@@ -1,4 +1,4 @@
1
1
  import { AMMWithdraw } from "xrpl";
2
2
  import { FormattedAmmWithdrawSpecification } from "../../types/amm";
3
- declare function parseAmmDeposit(tx: AMMWithdraw): FormattedAmmWithdrawSpecification;
3
+ declare function parseAmmDeposit(tx: AMMWithdraw, nativeCurrency?: string): FormattedAmmWithdrawSpecification;
4
4
  export default parseAmmDeposit;
@@ -45,8 +45,8 @@ const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
46
  const delegate_1 = require("../ledger/delegate");
47
47
  const source_1 = require("../ledger/source");
48
- const amm_withdraw_flags_1 = __importDefault(require("../ledger/amm-withdraw-flags"));
49
- function parseAmmDeposit(tx) {
48
+ const tx_amm_withdraw_flags_1 = __importDefault(require("../ledger/tx-amm-withdraw-flags"));
49
+ function parseAmmDeposit(tx, nativeCurrency) {
50
50
  assert.ok(tx.TransactionType === "AMMWithdraw");
51
51
  return (0, common_1.removeUndefined)({
52
52
  signers: (0, signers_1.parseSigners)(tx),
@@ -59,7 +59,7 @@ function parseAmmDeposit(tx) {
59
59
  amount2: tx.Amount2 ? (0, amount_1.default)(tx.Amount2) : undefined,
60
60
  ePrice: tx.EPrice ? (0, amount_1.default)(tx.EPrice) : undefined,
61
61
  lpTokenIn: tx.LPTokenOut ? (0, amount_1.default)(tx.LPTokenIn) : undefined,
62
- flags: (0, amm_withdraw_flags_1.default)(tx.Flags),
62
+ flags: (0, tx_amm_withdraw_flags_1.default)(tx.Flags, { nativeCurrency }),
63
63
  memos: (0, memos_1.parseMemos)(tx),
64
64
  });
65
65
  }
@@ -0,0 +1,4 @@
1
+ import { XrplDefinitionsBase } from "ripple-binary-codec";
2
+ import { FormattedBatchSpecification } from "../../types/batch";
3
+ declare function parseBatch(tx: any, nativeCurrency?: string, definitions?: XrplDefinitionsBase): FormattedBatchSpecification;
4
+ export default parseBatch;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const assert = __importStar(require("assert"));
40
+ const common_1 = require("../../common");
41
+ const memos_1 = require("../ledger/memos");
42
+ const signers_1 = require("../ledger/signers");
43
+ const regular_key_1 = require("../ledger/regular-key");
44
+ const delegate_1 = require("../ledger/delegate");
45
+ const source_1 = require("../ledger/source");
46
+ const account_1 = require("../ledger/account");
47
+ const tx_batch_flags_1 = __importDefault(require("../ledger/tx-batch-flags"));
48
+ const transaction_1 = require("../transaction");
49
+ const unrecognized_1 = __importDefault(require("./unrecognized"));
50
+ const wallet_1 = require("../../wallet");
51
+ function parseBatchRawTransaction(tx, nativeCurrency, definitions) {
52
+ const type = (0, transaction_1.parseTransactionType)(tx.TransactionType);
53
+ const parser = transaction_1.parserTypeFunc[type];
54
+ const specification = parser ? parser(tx, nativeCurrency, definitions) : (0, unrecognized_1.default)(tx);
55
+ let id;
56
+ try {
57
+ id = (0, wallet_1.hashSignedTx)(tx, definitions, false);
58
+ }
59
+ catch (_err) {
60
+ }
61
+ return (0, common_1.removeUndefined)({
62
+ id,
63
+ type,
64
+ address: (0, account_1.parseAccount)(tx.Account),
65
+ sequence: tx.Sequence,
66
+ ticketSequence: tx.TicketSequence,
67
+ specification: (0, common_1.removeUndefined)(specification),
68
+ });
69
+ }
70
+ function parseBatch(tx, nativeCurrency, definitions) {
71
+ assert.ok(tx.TransactionType === "Batch");
72
+ const transactions = tx.RawTransactions.map((t) => parseBatchRawTransaction(t.RawTransaction, nativeCurrency, definitions));
73
+ return (0, common_1.removeUndefined)({
74
+ signers: (0, signers_1.parseSigners)(tx),
75
+ signer: (0, regular_key_1.parseSignerRegularKey)(tx),
76
+ delegate: (0, delegate_1.parseDelegate)(tx),
77
+ source: (0, source_1.parseSource)(tx),
78
+ transactions,
79
+ flags: (0, tx_batch_flags_1.default)(tx.Flags, { nativeCurrency }),
80
+ memos: (0, memos_1.parseMemos)(tx),
81
+ });
82
+ }
83
+ exports.default = parseBatch;
@@ -1,4 +1,4 @@
1
1
  import { CheckCancel } from "xrpl";
2
2
  import { FormattedCheckCancelSpecification } from "../../types/checks";
3
- declare function parseCheckCancel(tx: CheckCancel): FormattedCheckCancelSpecification;
3
+ declare function parseCheckCancel(tx: CheckCancel, nativeCurrency?: string): FormattedCheckCancelSpecification;
4
4
  export default parseCheckCancel;
@@ -36,12 +36,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
38
  const emit_details_1 = require("../ledger/emit_details");
39
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
39
40
  const memos_1 = require("../ledger/memos");
40
41
  const signers_1 = require("../ledger/signers");
41
42
  const regular_key_1 = require("../ledger/regular-key");
42
43
  const delegate_1 = require("../ledger/delegate");
43
44
  const source_1 = require("../ledger/source");
44
- function parseCheckCancel(tx) {
45
+ function parseCheckCancel(tx, nativeCurrency) {
45
46
  assert.ok(tx.TransactionType === "CheckCancel");
46
47
  return (0, common_1.removeUndefined)({
47
48
  signers: (0, signers_1.parseSigners)(tx),
@@ -50,6 +51,7 @@ function parseCheckCancel(tx) {
50
51
  source: (0, source_1.parseSource)(tx),
51
52
  checkID: tx.CheckID,
52
53
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
54
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
53
55
  memos: (0, memos_1.parseMemos)(tx),
54
56
  });
55
57
  }
@@ -1,4 +1,4 @@
1
1
  import { CheckCash } from "xrpl";
2
2
  import { FormattedCheckCashSpecification } from "../../types/checks";
3
- declare function parseCheckCash(tx: CheckCash): FormattedCheckCashSpecification;
3
+ declare function parseCheckCash(tx: CheckCash, nativeCurrency?: string): FormattedCheckCashSpecification;
4
4
  export default parseCheckCash;
@@ -40,12 +40,13 @@ const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const emit_details_1 = require("../ledger/emit_details");
43
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
43
44
  const memos_1 = require("../ledger/memos");
44
45
  const signers_1 = require("../ledger/signers");
45
46
  const regular_key_1 = require("../ledger/regular-key");
46
47
  const delegate_1 = require("../ledger/delegate");
47
48
  const source_1 = require("../ledger/source");
48
- function parseCheckCash(tx) {
49
+ function parseCheckCash(tx, nativeCurrency) {
49
50
  assert.ok(tx.TransactionType === "CheckCash");
50
51
  return (0, common_1.removeUndefined)({
51
52
  signers: (0, signers_1.parseSigners)(tx),
@@ -56,6 +57,7 @@ function parseCheckCash(tx) {
56
57
  amount: tx.Amount && (0, amount_1.default)(tx.Amount),
57
58
  deliverMin: tx.DeliverMin && (0, amount_1.default)(tx.DeliverMin),
58
59
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
60
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
59
61
  memos: (0, memos_1.parseMemos)(tx),
60
62
  });
61
63
  }
@@ -1,4 +1,4 @@
1
1
  import { CheckCreate } from "xrpl";
2
2
  import { FormattedCheckCreateSpecification } from "../../types/checks";
3
- declare function parseCheckCreate(tx: CheckCreate): FormattedCheckCreateSpecification;
3
+ declare function parseCheckCreate(tx: CheckCreate, nativeCurrency?: string): FormattedCheckCreateSpecification;
4
4
  export default parseCheckCreate;
@@ -41,13 +41,14 @@ const common_1 = require("../../common");
41
41
  const utils_1 = require("../utils");
42
42
  const amount_1 = __importDefault(require("../ledger/amount"));
43
43
  const emit_details_1 = require("../ledger/emit_details");
44
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
44
45
  const memos_1 = require("../ledger/memos");
45
46
  const signers_1 = require("../ledger/signers");
46
47
  const regular_key_1 = require("../ledger/regular-key");
47
48
  const delegate_1 = require("../ledger/delegate");
48
49
  const source_1 = require("../ledger/source");
49
50
  const destination_1 = require("../ledger/destination");
50
- function parseCheckCreate(tx) {
51
+ function parseCheckCreate(tx, nativeCurrency) {
51
52
  assert.ok(tx.TransactionType === "CheckCreate");
52
53
  return (0, common_1.removeUndefined)({
53
54
  signers: (0, signers_1.parseSigners)(tx),
@@ -59,6 +60,7 @@ function parseCheckCreate(tx) {
59
60
  expiration: tx.Expiration && (0, utils_1.parseTimestamp)(tx.Expiration),
60
61
  invoiceID: tx.InvoiceID,
61
62
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
63
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
62
64
  memos: (0, memos_1.parseMemos)(tx),
63
65
  });
64
66
  }
@@ -1,4 +1,4 @@
1
1
  import { Clawback } from "xrpl";
2
2
  import { FormattedClawbackSpecification } from "../../types/clawback";
3
- declare function parseClawback(tx: Clawback): FormattedClawbackSpecification;
3
+ declare function parseClawback(tx: Clawback, nativeCurrency?: string): FormattedClawbackSpecification;
4
4
  export default parseClawback;
@@ -40,12 +40,13 @@ const assert = __importStar(require("assert"));
40
40
  const common_1 = require("../../common");
41
41
  const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const emit_details_1 = require("../ledger/emit_details");
43
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
43
44
  const memos_1 = require("../ledger/memos");
44
45
  const signers_1 = require("../ledger/signers");
45
46
  const regular_key_1 = require("../ledger/regular-key");
46
47
  const delegate_1 = require("../ledger/delegate");
47
48
  const source_1 = require("../ledger/source");
48
- function parseClawback(tx) {
49
+ function parseClawback(tx, nativeCurrency) {
49
50
  assert.ok(tx.TransactionType === "Clawback");
50
51
  return (0, common_1.removeUndefined)({
51
52
  signers: (0, signers_1.parseSigners)(tx),
@@ -54,6 +55,7 @@ function parseClawback(tx) {
54
55
  source: (0, source_1.parseSource)(tx),
55
56
  amount: tx.Amount ? (0, amount_1.default)(tx.Amount) : undefined,
56
57
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
58
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
57
59
  memos: (0, memos_1.parseMemos)(tx),
58
60
  });
59
61
  }
@@ -1,3 +1,4 @@
1
+ import { CredentialAccept } from "xrpl";
1
2
  import { FormattedCredentialAcceptSpecification } from "../../types/credentials";
2
- declare function parseCredentialAccept(tx: any): FormattedCredentialAcceptSpecification;
3
+ declare function parseCredentialAccept(tx: CredentialAccept, nativeCurrency?: string): FormattedCredentialAcceptSpecification;
3
4
  export default parseCredentialAccept;
@@ -35,12 +35,13 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
38
39
  const memos_1 = require("../ledger/memos");
39
40
  const signers_1 = require("../ledger/signers");
40
41
  const regular_key_1 = require("../ledger/regular-key");
41
42
  const source_1 = require("../ledger/source");
42
43
  const utils_1 = require("../utils");
43
- function parseCredentialAccept(tx) {
44
+ function parseCredentialAccept(tx, nativeCurrency) {
44
45
  assert.ok(tx.TransactionType === "CredentialAccept");
45
46
  return (0, common_1.removeUndefined)({
46
47
  source: (0, source_1.parseSource)(tx),
@@ -48,6 +49,7 @@ function parseCredentialAccept(tx) {
48
49
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
50
  issuer: tx.Issuer,
50
51
  credentialType: (0, utils_1.hexToString)(tx.CredentialType),
52
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
51
53
  memos: (0, memos_1.parseMemos)(tx),
52
54
  });
53
55
  }
@@ -1,3 +1,4 @@
1
+ import { CredentialCreate } from "xrpl";
1
2
  import { FormattedCredentialCreateSpecification } from "../../types/credentials";
2
- declare function parseCredentialCreate(tx: any): FormattedCredentialCreateSpecification;
3
+ declare function parseCredentialCreate(tx: CredentialCreate, nativeCurrency?: string): FormattedCredentialCreateSpecification;
3
4
  export default parseCredentialCreate;
@@ -40,7 +40,8 @@ const signers_1 = require("../ledger/signers");
40
40
  const regular_key_1 = require("../ledger/regular-key");
41
41
  const source_1 = require("../ledger/source");
42
42
  const utils_1 = require("../utils");
43
- function parseCredentialCreate(tx) {
43
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
44
+ function parseCredentialCreate(tx, nativeCurrency) {
44
45
  assert.ok(tx.TransactionType === "CredentialCreate");
45
46
  return (0, common_1.removeUndefined)({
46
47
  source: (0, source_1.parseSource)(tx),
@@ -50,6 +51,7 @@ function parseCredentialCreate(tx) {
50
51
  credentialType: (0, utils_1.decodeHexData)(tx.CredentialType),
51
52
  expiration: tx.Expiration && (0, utils_1.parseTimestamp)(tx.Expiration),
52
53
  uri: tx.URI,
54
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
53
55
  memos: (0, memos_1.parseMemos)(tx),
54
56
  });
55
57
  }
@@ -1,3 +1,4 @@
1
+ import { CredentialDelete } from "xrpl";
1
2
  import { FormattedCredentialDeleteSpecification } from "../../types/credentials";
2
- declare function parseCredentialDelete(tx: any): FormattedCredentialDeleteSpecification;
3
+ declare function parseCredentialDelete(tx: CredentialDelete, nativeCurrency?: string): FormattedCredentialDeleteSpecification;
3
4
  export default parseCredentialDelete;
@@ -35,20 +35,22 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
38
39
  const memos_1 = require("../ledger/memos");
39
40
  const signers_1 = require("../ledger/signers");
40
41
  const regular_key_1 = require("../ledger/regular-key");
41
42
  const source_1 = require("../ledger/source");
42
43
  const utils_1 = require("../utils");
43
- function parseCredentialDelete(tx) {
44
+ function parseCredentialDelete(tx, nativeCurrency) {
44
45
  assert.ok(tx.TransactionType === "CredentialDelete");
45
46
  return (0, common_1.removeUndefined)({
46
47
  source: (0, source_1.parseSource)(tx),
47
48
  signers: (0, signers_1.parseSigners)(tx),
48
49
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
- issuer: tx.issuer,
50
+ issuer: tx.Issuer,
50
51
  subject: tx.Subject,
51
52
  credentialType: (0, utils_1.hexToString)(tx.CredentialType),
53
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
52
54
  memos: (0, memos_1.parseMemos)(tx),
53
55
  });
54
56
  }
@@ -1,4 +1,4 @@
1
1
  import { DelegateSet } from "xrpl";
2
2
  import { FormattedDelegateSetSpecification } from "../../types/delegate";
3
- declare function parseDelegateSet(tx: DelegateSet): FormattedDelegateSetSpecification;
3
+ declare function parseDelegateSet(tx: DelegateSet, nativeCurrency?: string): FormattedDelegateSetSpecification;
4
4
  export default parseDelegateSet;
@@ -36,13 +36,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
38
  const emit_details_1 = require("../ledger/emit_details");
39
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
39
40
  const memos_1 = require("../ledger/memos");
40
41
  const signers_1 = require("../ledger/signers");
41
42
  const regular_key_1 = require("../ledger/regular-key");
42
43
  const delegate_1 = require("../ledger/delegate");
43
44
  const source_1 = require("../ledger/source");
44
45
  const permissions_1 = require("../ledger/permissions");
45
- function parseDelegateSet(tx) {
46
+ function parseDelegateSet(tx, nativeCurrency) {
46
47
  assert.ok(tx.TransactionType === "DelegateSet");
47
48
  return (0, common_1.removeUndefined)({
48
49
  signers: (0, signers_1.parseSigners)(tx),
@@ -52,6 +53,7 @@ function parseDelegateSet(tx) {
52
53
  authorize: tx.Authorize,
53
54
  permissions: (0, permissions_1.parsePermissions)(tx.Permissions),
54
55
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
56
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
55
57
  memos: (0, memos_1.parseMemos)(tx),
56
58
  });
57
59
  }
@@ -1,4 +1,4 @@
1
1
  import { DepositPreauth } from "xrpl";
2
2
  import { FormattedDepositPreauthSpecification } from "../../types/deposits";
3
- declare function parseDepositPreauth(tx: DepositPreauth): FormattedDepositPreauthSpecification;
3
+ declare function parseDepositPreauth(tx: DepositPreauth, nativeCurrency?: string): FormattedDepositPreauthSpecification;
4
4
  export default parseDepositPreauth;
@@ -36,12 +36,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  const assert = __importStar(require("assert"));
37
37
  const common_1 = require("../../common");
38
38
  const emit_details_1 = require("../ledger/emit_details");
39
+ const tx_global_flags_1 = require("../ledger/tx-global-flags");
39
40
  const memos_1 = require("../ledger/memos");
40
41
  const signers_1 = require("../ledger/signers");
41
42
  const regular_key_1 = require("../ledger/regular-key");
42
43
  const delegate_1 = require("../ledger/delegate");
43
44
  const source_1 = require("../ledger/source");
44
- function parseDepositPreauth(tx) {
45
+ const utils_1 = require("../utils");
46
+ function parseCredentials(credential) {
47
+ return {
48
+ issuer: credential.Credential.Issuer,
49
+ type: (0, utils_1.decodeHexData)(credential.Credential.CredentialType),
50
+ };
51
+ }
52
+ function parseDepositPreauth(tx, nativeCurrency) {
45
53
  assert.ok(tx.TransactionType === "DepositPreauth");
46
54
  return (0, common_1.removeUndefined)({
47
55
  signers: (0, signers_1.parseSigners)(tx),
@@ -50,7 +58,10 @@ function parseDepositPreauth(tx) {
50
58
  source: (0, source_1.parseSource)(tx),
51
59
  authorize: tx.Authorize,
52
60
  unauthorize: tx.Unauthorize,
61
+ authorizeCredentials: tx.AuthorizeCredentials ? tx.AuthorizeCredentials.map(parseCredentials) : undefined,
62
+ unauthorizeCredentials: tx.UnauthorizeCredentials ? tx.UnauthorizeCredentials.map(parseCredentials) : undefined,
53
63
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
64
+ flags: (0, tx_global_flags_1.parseTxGlobalFlags)(tx.Flags, { nativeCurrency }),
54
65
  memos: (0, memos_1.parseMemos)(tx),
55
66
  });
56
67
  }
@@ -1,4 +1,4 @@
1
1
  import { DIDDelete } from "xrpl";
2
2
  import { FormattedDIDDeleteSpecification } from "../../types/did";
3
- declare function parseDidDelete(tx: DIDDelete): FormattedDIDDeleteSpecification;
3
+ declare function parseDidDelete(tx: DIDDelete, nativeCurrency?: string): FormattedDIDDeleteSpecification;
4
4
  export default parseDidDelete;