@bithomp/xrpl-api 3.3.10 → 3.4.1

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 (137) hide show
  1. package/lib/ledger/account_tx.d.ts +8 -0
  2. package/lib/ledger/account_tx.js +56 -6
  3. package/lib/ledger/transaction.js +9 -0
  4. package/lib/models/transaction.d.ts +1 -0
  5. package/lib/models/transaction.js +24 -0
  6. package/lib/models/transactions/SetRemarks.d.ts +3 -0
  7. package/lib/models/transactions/SetRemarks.js +2 -0
  8. package/lib/parse/ledger/delegate.d.ts +2 -0
  9. package/lib/parse/ledger/delegate.js +11 -0
  10. package/lib/parse/ledger/index.d.ts +2 -1
  11. package/lib/parse/ledger/index.js +4 -1
  12. package/lib/parse/ledger/permissions.d.ts +2 -0
  13. package/lib/parse/ledger/permissions.js +9 -0
  14. package/lib/parse/ledger/remark-flags.d.ts +5 -0
  15. package/lib/parse/ledger/remark-flags.js +8 -0
  16. package/lib/parse/ledger/remarks.d.ts +3 -0
  17. package/lib/parse/ledger/remarks.js +47 -0
  18. package/lib/parse/outcome/delegate_changes.d.ts +12 -0
  19. package/lib/parse/outcome/delegate_changes.js +59 -0
  20. package/lib/parse/outcome/index.d.ts +2 -0
  21. package/lib/parse/outcome/index.js +5 -1
  22. package/lib/parse/outcome/oracle_changes.d.ts +3 -3
  23. package/lib/parse/outcome/remarks_changes.d.ts +14 -0
  24. package/lib/parse/outcome/remarks_changes.js +68 -0
  25. package/lib/parse/outcome.js +22 -0
  26. package/lib/parse/specification/account-delete.d.ts +2 -1
  27. package/lib/parse/specification/account-delete.js +2 -0
  28. package/lib/parse/specification/amm-bid.d.ts +2 -1
  29. package/lib/parse/specification/amm-bid.js +2 -0
  30. package/lib/parse/specification/amm-clawback.d.ts +2 -1
  31. package/lib/parse/specification/amm-clawback.js +2 -0
  32. package/lib/parse/specification/amm-create.d.ts +2 -1
  33. package/lib/parse/specification/amm-create.js +2 -0
  34. package/lib/parse/specification/amm-delete.d.ts +2 -1
  35. package/lib/parse/specification/amm-delete.js +2 -0
  36. package/lib/parse/specification/amm-deposit.d.ts +2 -1
  37. package/lib/parse/specification/amm-deposit.js +2 -0
  38. package/lib/parse/specification/amm-vote.d.ts +2 -1
  39. package/lib/parse/specification/amm-vote.js +2 -0
  40. package/lib/parse/specification/amm-withdraw.d.ts +2 -1
  41. package/lib/parse/specification/amm-withdraw.js +2 -0
  42. package/lib/parse/specification/check-cancel.d.ts +2 -1
  43. package/lib/parse/specification/check-cancel.js +2 -0
  44. package/lib/parse/specification/check-cash.d.ts +2 -1
  45. package/lib/parse/specification/check-cash.js +2 -0
  46. package/lib/parse/specification/check-create.d.ts +2 -1
  47. package/lib/parse/specification/check-create.js +2 -0
  48. package/lib/parse/specification/clawback.d.ts +2 -1
  49. package/lib/parse/specification/clawback.js +2 -0
  50. package/lib/parse/specification/delegate-set.d.ts +4 -0
  51. package/lib/parse/specification/delegate-set.js +58 -0
  52. package/lib/parse/specification/deposit-preauth.d.ts +2 -1
  53. package/lib/parse/specification/deposit-preauth.js +2 -0
  54. package/lib/parse/specification/did-delete.d.ts +2 -1
  55. package/lib/parse/specification/did-delete.js +2 -0
  56. package/lib/parse/specification/did-set.d.ts +2 -1
  57. package/lib/parse/specification/did-set.js +2 -0
  58. package/lib/parse/specification/escrow-cancel.d.ts +2 -1
  59. package/lib/parse/specification/escrow-cancel.js +2 -0
  60. package/lib/parse/specification/escrow-create.d.ts +2 -1
  61. package/lib/parse/specification/escrow-create.js +2 -0
  62. package/lib/parse/specification/escrow-finish.d.ts +2 -1
  63. package/lib/parse/specification/escrow-finish.js +2 -0
  64. package/lib/parse/specification/mptoken-authorize.d.ts +2 -1
  65. package/lib/parse/specification/mptoken-authorize.js +2 -0
  66. package/lib/parse/specification/mptoken-issuance-create.d.ts +2 -1
  67. package/lib/parse/specification/mptoken-issuance-create.js +2 -0
  68. package/lib/parse/specification/mptoken-issuance-destroy.d.ts +2 -1
  69. package/lib/parse/specification/mptoken-issuance-destroy.js +2 -0
  70. package/lib/parse/specification/mptoken-issuance-set.d.ts +2 -1
  71. package/lib/parse/specification/mptoken-issuance-set.js +2 -0
  72. package/lib/parse/specification/nftoken-accept-offer.d.ts +2 -1
  73. package/lib/parse/specification/nftoken-accept-offer.js +2 -0
  74. package/lib/parse/specification/nftoken-burn.d.ts +2 -1
  75. package/lib/parse/specification/nftoken-burn.js +2 -0
  76. package/lib/parse/specification/nftoken-cancel-offer.d.ts +2 -1
  77. package/lib/parse/specification/nftoken-cancel-offer.js +2 -0
  78. package/lib/parse/specification/nftoken-create-offer.d.ts +2 -1
  79. package/lib/parse/specification/nftoken-create-offer.js +2 -0
  80. package/lib/parse/specification/nftoken-mint.d.ts +2 -1
  81. package/lib/parse/specification/nftoken-mint.js +2 -0
  82. package/lib/parse/specification/nftoken-modify.d.ts +2 -1
  83. package/lib/parse/specification/nftoken-modify.js +2 -0
  84. package/lib/parse/specification/offer-cancel.d.ts +2 -1
  85. package/lib/parse/specification/offer-cancel.js +2 -0
  86. package/lib/parse/specification/offer-create.d.ts +3 -2
  87. package/lib/parse/specification/offer-create.js +2 -0
  88. package/lib/parse/specification/oracle-delete.d.ts +2 -1
  89. package/lib/parse/specification/oracle-delete.js +2 -0
  90. package/lib/parse/specification/oracle-set.d.ts +2 -1
  91. package/lib/parse/specification/oracle-set.js +2 -0
  92. package/lib/parse/specification/payment-channel-claim.d.ts +2 -1
  93. package/lib/parse/specification/payment-channel-claim.js +2 -2
  94. package/lib/parse/specification/payment-channel-create.d.ts +2 -1
  95. package/lib/parse/specification/payment-channel-create.js +2 -0
  96. package/lib/parse/specification/payment-channel-fund.d.ts +2 -1
  97. package/lib/parse/specification/payment-channel-fund.js +2 -0
  98. package/lib/parse/specification/payment.d.ts +2 -1
  99. package/lib/parse/specification/payment.js +2 -0
  100. package/lib/parse/specification/set-remarks.d.ts +3 -0
  101. package/lib/parse/specification/set-remarks.js +56 -0
  102. package/lib/parse/specification/settings.js +2 -0
  103. package/lib/parse/specification/ticket-create.d.ts +2 -1
  104. package/lib/parse/specification/ticket-create.js +2 -0
  105. package/lib/parse/specification/trust-set.d.ts +4 -0
  106. package/lib/parse/specification/trust-set.js +74 -0
  107. package/lib/parse/specification/trustline.js +2 -0
  108. package/lib/parse/specification/unrecognized.d.ts +2 -1
  109. package/lib/parse/specification/unrecognized.js +2 -0
  110. package/lib/parse/specification/uritoken-burn.d.ts +2 -2
  111. package/lib/parse/specification/uritoken-burn.js +2 -2
  112. package/lib/parse/specification/uritoken-buy.d.ts +2 -2
  113. package/lib/parse/specification/uritoken-buy.js +2 -2
  114. package/lib/parse/specification/uritoken-cancel-sell-offer.d.ts +2 -2
  115. package/lib/parse/specification/uritoken-cancel-sell-offer.js +2 -2
  116. package/lib/parse/specification/uritoken-create-sell-offer.d.ts +2 -2
  117. package/lib/parse/specification/uritoken-create-sell-offer.js +2 -2
  118. package/lib/parse/specification/uritoken-mint.d.ts +2 -2
  119. package/lib/parse/specification/uritoken-mint.js +2 -2
  120. package/lib/parse/transaction.d.ts +3 -1
  121. package/lib/parse/transaction.js +8 -2
  122. package/lib/types/checks.d.ts +4 -4
  123. package/lib/types/delegate.d.ts +5 -0
  124. package/lib/types/delegate.js +2 -0
  125. package/lib/types/deposits.d.ts +2 -2
  126. package/lib/types/did.d.ts +3 -3
  127. package/lib/types/escrows.d.ts +3 -3
  128. package/lib/types/index.d.ts +2 -1
  129. package/lib/types/index.js +2 -1
  130. package/lib/types/mptokens.d.ts +1 -1
  131. package/lib/types/nftokens.d.ts +3 -3
  132. package/lib/types/oracle.d.ts +4 -12
  133. package/lib/types/payment_channels.d.ts +2 -4
  134. package/lib/types/remarks.d.ts +24 -0
  135. package/lib/types/remarks.js +6 -0
  136. package/lib/types/specification.d.ts +1 -0
  137. package/package.json +12 -12
@@ -1,3 +1,4 @@
1
+ import { AMMCreate } from "xrpl";
1
2
  import { FormattedAmmCreateSpecification } from "../../types/amm";
2
- declare function parseAmmCreate(tx: any): FormattedAmmCreateSpecification;
3
+ declare function parseAmmCreate(tx: AMMCreate): FormattedAmmCreateSpecification;
3
4
  export default parseAmmCreate;
@@ -42,12 +42,14 @@ const amount_1 = __importDefault(require("../ledger/amount"));
42
42
  const memos_1 = require("../ledger/memos");
43
43
  const signers_1 = require("../ledger/signers");
44
44
  const regular_key_1 = require("../ledger/regular-key");
45
+ const delegate_1 = require("../ledger/delegate");
45
46
  const source_1 = require("../ledger/source");
46
47
  function parseAmmCreate(tx) {
47
48
  assert.ok(tx.TransactionType === "AMMCreate");
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  amount: (0, amount_1.default)(tx.Amount),
53
55
  amount2: (0, amount_1.default)(tx.Amount2),
@@ -1,3 +1,4 @@
1
+ import { AMMDelete } from "xrpl";
1
2
  import { FormattedAmmDeleteSpecification } from "../../types/amm";
2
- declare function parseAmmDelete(tx: any): FormattedAmmDeleteSpecification;
3
+ declare function parseAmmDelete(tx: AMMDelete): FormattedAmmDeleteSpecification;
3
4
  export default parseAmmDelete;
@@ -42,12 +42,14 @@ const asset_1 = __importDefault(require("../ledger/asset"));
42
42
  const memos_1 = require("../ledger/memos");
43
43
  const signers_1 = require("../ledger/signers");
44
44
  const regular_key_1 = require("../ledger/regular-key");
45
+ const delegate_1 = require("../ledger/delegate");
45
46
  const source_1 = require("../ledger/source");
46
47
  function parseAmmDelete(tx) {
47
48
  assert.ok(tx.TransactionType === "AMMDelete");
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  asset: (0, asset_1.default)(tx.Asset),
53
55
  asset2: (0, asset_1.default)(tx.Asset2),
@@ -1,3 +1,4 @@
1
+ import { AMMDeposit } from "xrpl";
1
2
  import { FormattedAmmDepositSpecification } from "../../types/amm";
2
- declare function parseAmmDeposit(tx: any): FormattedAmmDepositSpecification;
3
+ declare function parseAmmDeposit(tx: AMMDeposit): FormattedAmmDepositSpecification;
3
4
  export default parseAmmDeposit;
@@ -43,6 +43,7 @@ const asset_1 = __importDefault(require("../ledger/asset"));
43
43
  const memos_1 = require("../ledger/memos");
44
44
  const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
+ const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
48
  const amm_deposit_flags_1 = __importDefault(require("../ledger/amm-deposit-flags"));
48
49
  function parseAmmDeposit(tx) {
@@ -50,6 +51,7 @@ function parseAmmDeposit(tx) {
50
51
  return (0, common_1.removeUndefined)({
51
52
  signers: (0, signers_1.parseSigners)(tx),
52
53
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
54
+ delegate: (0, delegate_1.parseDelegate)(tx),
53
55
  source: (0, source_1.parseSource)(tx),
54
56
  asset: (0, asset_1.default)(tx.Asset),
55
57
  asset2: (0, asset_1.default)(tx.Asset2),
@@ -1,3 +1,4 @@
1
+ import { AMMVote } from "xrpl";
1
2
  import { FormattedAmmVoteSpecification } from "../../types/amm";
2
- declare function parseAmmVote(tx: any): FormattedAmmVoteSpecification;
3
+ declare function parseAmmVote(tx: AMMVote): FormattedAmmVoteSpecification;
3
4
  export default parseAmmVote;
@@ -42,12 +42,14 @@ const asset_1 = __importDefault(require("../ledger/asset"));
42
42
  const memos_1 = require("../ledger/memos");
43
43
  const signers_1 = require("../ledger/signers");
44
44
  const regular_key_1 = require("../ledger/regular-key");
45
+ const delegate_1 = require("../ledger/delegate");
45
46
  const source_1 = require("../ledger/source");
46
47
  function parseAmmVote(tx) {
47
48
  assert.ok(tx.TransactionType === "AMMVote");
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  asset: (0, asset_1.default)(tx.Asset),
53
55
  asset2: (0, asset_1.default)(tx.Asset2),
@@ -1,3 +1,4 @@
1
+ import { AMMWithdraw } from "xrpl";
1
2
  import { FormattedAmmWithdrawSpecification } from "../../types/amm";
2
- declare function parseAmmDeposit(tx: any): FormattedAmmWithdrawSpecification;
3
+ declare function parseAmmDeposit(tx: AMMWithdraw): FormattedAmmWithdrawSpecification;
3
4
  export default parseAmmDeposit;
@@ -43,6 +43,7 @@ const asset_1 = __importDefault(require("../ledger/asset"));
43
43
  const memos_1 = require("../ledger/memos");
44
44
  const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
+ const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
48
  const amm_withdraw_flags_1 = __importDefault(require("../ledger/amm-withdraw-flags"));
48
49
  function parseAmmDeposit(tx) {
@@ -50,6 +51,7 @@ function parseAmmDeposit(tx) {
50
51
  return (0, common_1.removeUndefined)({
51
52
  signers: (0, signers_1.parseSigners)(tx),
52
53
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
54
+ delegate: (0, delegate_1.parseDelegate)(tx),
53
55
  source: (0, source_1.parseSource)(tx),
54
56
  asset: (0, asset_1.default)(tx.Asset),
55
57
  asset2: (0, asset_1.default)(tx.Asset2),
@@ -1,3 +1,4 @@
1
+ import { CheckCancel } from "xrpl";
1
2
  import { FormattedCheckCancelSpecification } from "../../types/checks";
2
- declare function parseCheckCancel(tx: any): FormattedCheckCancelSpecification;
3
+ declare function parseCheckCancel(tx: CheckCancel): FormattedCheckCancelSpecification;
3
4
  export default parseCheckCancel;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseCheckCancel(tx) {
44
45
  assert.ok(tx.TransactionType === "CheckCancel");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  checkID: tx.CheckID,
50
52
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
@@ -1,3 +1,4 @@
1
+ import { CheckCash } from "xrpl";
1
2
  import { FormattedCheckCashSpecification } from "../../types/checks";
2
- declare function parseCheckCash(tx: any): FormattedCheckCashSpecification;
3
+ declare function parseCheckCash(tx: CheckCash): FormattedCheckCashSpecification;
3
4
  export default parseCheckCash;
@@ -43,12 +43,14 @@ const emit_details_1 = require("../ledger/emit_details");
43
43
  const memos_1 = require("../ledger/memos");
44
44
  const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
+ const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
48
  function parseCheckCash(tx) {
48
49
  assert.ok(tx.TransactionType === "CheckCash");
49
50
  return (0, common_1.removeUndefined)({
50
51
  signers: (0, signers_1.parseSigners)(tx),
51
52
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
53
+ delegate: (0, delegate_1.parseDelegate)(tx),
52
54
  source: (0, source_1.parseSource)(tx),
53
55
  checkID: tx.CheckID,
54
56
  amount: tx.Amount && (0, amount_1.default)(tx.Amount),
@@ -1,3 +1,4 @@
1
+ import { CheckCreate } from "xrpl";
1
2
  import { FormattedCheckCreateSpecification } from "../../types/checks";
2
- declare function parseCheckCreate(tx: any): FormattedCheckCreateSpecification;
3
+ declare function parseCheckCreate(tx: CheckCreate): FormattedCheckCreateSpecification;
3
4
  export default parseCheckCreate;
@@ -44,6 +44,7 @@ const emit_details_1 = require("../ledger/emit_details");
44
44
  const memos_1 = require("../ledger/memos");
45
45
  const signers_1 = require("../ledger/signers");
46
46
  const regular_key_1 = require("../ledger/regular-key");
47
+ const delegate_1 = require("../ledger/delegate");
47
48
  const source_1 = require("../ledger/source");
48
49
  const destination_1 = require("../ledger/destination");
49
50
  function parseCheckCreate(tx) {
@@ -51,6 +52,7 @@ function parseCheckCreate(tx) {
51
52
  return (0, common_1.removeUndefined)({
52
53
  signers: (0, signers_1.parseSigners)(tx),
53
54
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
55
+ delegate: (0, delegate_1.parseDelegate)(tx),
54
56
  source: (0, source_1.parseSource)(tx),
55
57
  destination: (0, destination_1.parseDestination)(tx),
56
58
  sendMax: (0, amount_1.default)(tx.SendMax),
@@ -1,3 +1,4 @@
1
+ import { Clawback } from "xrpl";
1
2
  import { FormattedClawbackSpecification } from "../../types/clawback";
2
- declare function parseClawback(tx: any): FormattedClawbackSpecification;
3
+ declare function parseClawback(tx: Clawback): FormattedClawbackSpecification;
3
4
  export default parseClawback;
@@ -43,12 +43,14 @@ const emit_details_1 = require("../ledger/emit_details");
43
43
  const memos_1 = require("../ledger/memos");
44
44
  const signers_1 = require("../ledger/signers");
45
45
  const regular_key_1 = require("../ledger/regular-key");
46
+ const delegate_1 = require("../ledger/delegate");
46
47
  const source_1 = require("../ledger/source");
47
48
  function parseClawback(tx) {
48
49
  assert.ok(tx.TransactionType === "Clawback");
49
50
  return (0, common_1.removeUndefined)({
50
51
  signers: (0, signers_1.parseSigners)(tx),
51
52
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
53
+ delegate: (0, delegate_1.parseDelegate)(tx),
52
54
  source: (0, source_1.parseSource)(tx),
53
55
  amount: tx.Amount ? (0, amount_1.default)(tx.Amount) : undefined,
54
56
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
@@ -0,0 +1,4 @@
1
+ import { DelegateSet } from "xrpl";
2
+ import { FormattedDelegateSetSpecification } from "../../types/delegate";
3
+ declare function parseDelegateSet(tx: DelegateSet): FormattedDelegateSetSpecification;
4
+ export default parseDelegateSet;
@@ -0,0 +1,58 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ const assert = __importStar(require("assert"));
37
+ const common_1 = require("../../common");
38
+ const emit_details_1 = require("../ledger/emit_details");
39
+ const memos_1 = require("../ledger/memos");
40
+ const signers_1 = require("../ledger/signers");
41
+ const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
43
+ const source_1 = require("../ledger/source");
44
+ const permissions_1 = require("../ledger/permissions");
45
+ function parseDelegateSet(tx) {
46
+ assert.ok(tx.TransactionType === "DelegateSet");
47
+ return (0, common_1.removeUndefined)({
48
+ signers: (0, signers_1.parseSigners)(tx),
49
+ signer: (0, regular_key_1.parseSignerRegularKey)(tx),
50
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
+ source: (0, source_1.parseSource)(tx),
52
+ authorize: tx.Authorize,
53
+ permissions: (0, permissions_1.parsePermissions)(tx.Permissions),
54
+ emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
55
+ memos: (0, memos_1.parseMemos)(tx),
56
+ });
57
+ }
58
+ exports.default = parseDelegateSet;
@@ -1,3 +1,4 @@
1
+ import { DepositPreauth } from "xrpl";
1
2
  import { FormattedDepositPreauthSpecification } from "../../types/deposits";
2
- declare function parseDepositPreauth(tx: any): FormattedDepositPreauthSpecification;
3
+ declare function parseDepositPreauth(tx: DepositPreauth): FormattedDepositPreauthSpecification;
3
4
  export default parseDepositPreauth;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseDepositPreauth(tx) {
44
45
  assert.ok(tx.TransactionType === "DepositPreauth");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  authorize: tx.Authorize,
50
52
  unauthorize: tx.Unauthorize,
@@ -1,3 +1,4 @@
1
+ import { DIDDelete } from "xrpl";
1
2
  import { FormattedDIDDeleteSpecification } from "../../types/did";
2
- declare function parseDidDelete(tx: any): FormattedDIDDeleteSpecification;
3
+ declare function parseDidDelete(tx: DIDDelete): FormattedDIDDeleteSpecification;
3
4
  export default parseDidDelete;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseDidDelete(tx) {
44
45
  assert.ok(tx.TransactionType === "DIDDelete");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
50
52
  memos: (0, memos_1.parseMemos)(tx),
@@ -1,3 +1,4 @@
1
+ import { DIDSet } from "xrpl";
1
2
  import { FormattedDIDSetSpecification } from "../../types/did";
2
- declare function parseDidSet(tx: any): FormattedDIDSetSpecification;
3
+ declare function parseDidSet(tx: DIDSet): FormattedDIDSetSpecification;
3
4
  export default parseDidSet;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseDidSet(tx) {
44
45
  assert.ok(tx.TransactionType === "DIDSet");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  uri: tx.URI,
50
52
  data: tx.Data,
@@ -1,3 +1,4 @@
1
+ import { EscrowCancel } from "xrpl";
1
2
  import { FormattedEscrowCancelSpecification } from "../../types/escrows";
2
- declare function parseEscrowCancel(tx: any): FormattedEscrowCancelSpecification;
3
+ declare function parseEscrowCancel(tx: EscrowCancel): FormattedEscrowCancelSpecification;
3
4
  export default parseEscrowCancel;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseEscrowCancel(tx) {
44
45
  assert.ok(tx.TransactionType === "EscrowCancel");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  owner: tx.Owner,
50
52
  escrowSequence: tx.OfferSequence,
@@ -1,3 +1,4 @@
1
+ import { EscrowCreate } from "xrpl";
1
2
  import { FormattedEscrowCreateSpecification } from "../../types/escrows";
2
- declare function parseEscrowCreation(tx: any): FormattedEscrowCreateSpecification;
3
+ declare function parseEscrowCreation(tx: EscrowCreate): FormattedEscrowCreateSpecification;
3
4
  export default parseEscrowCreation;
@@ -40,6 +40,7 @@ const emit_details_1 = require("../ledger/emit_details");
40
40
  const memos_1 = require("../ledger/memos");
41
41
  const signers_1 = require("../ledger/signers");
42
42
  const regular_key_1 = require("../ledger/regular-key");
43
+ const delegate_1 = require("../ledger/delegate");
43
44
  const source_1 = require("../ledger/source");
44
45
  const destination_1 = require("../ledger/destination");
45
46
  function parseEscrowCreation(tx) {
@@ -47,6 +48,7 @@ function parseEscrowCreation(tx) {
47
48
  return (0, common_1.removeUndefined)({
48
49
  signers: (0, signers_1.parseSigners)(tx),
49
50
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
51
+ delegate: (0, delegate_1.parseDelegate)(tx),
50
52
  source: (0, source_1.parseSource)(tx),
51
53
  destination: (0, destination_1.parseDestination)(tx),
52
54
  amount: tx.Amount,
@@ -1,3 +1,4 @@
1
+ import { EscrowFinish } from "xrpl";
1
2
  import { FormattedEscrowFinishSpecification } from "../../types/escrows";
2
- declare function parseEscrowFinish(tx: any): FormattedEscrowFinishSpecification;
3
+ declare function parseEscrowFinish(tx: EscrowFinish): FormattedEscrowFinishSpecification;
3
4
  export default parseEscrowFinish;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseEscrowFinish(tx) {
44
45
  assert.ok(tx.TransactionType === "EscrowFinish");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  owner: tx.Owner,
50
52
  escrowSequence: tx.OfferSequence,
@@ -1,3 +1,4 @@
1
+ import { MPTokenAuthorize } from "xrpl";
1
2
  import { FormattedMPTokenAuthorizeSpecification } from "../../types/mptokens";
2
- declare function parseMPTokenAuthorize(tx: any): FormattedMPTokenAuthorizeSpecification;
3
+ declare function parseMPTokenAuthorize(tx: MPTokenAuthorize): FormattedMPTokenAuthorizeSpecification;
3
4
  export default parseMPTokenAuthorize;
@@ -42,12 +42,14 @@ const memos_1 = require("../ledger/memos");
42
42
  const mptoken_authorize_flags_1 = __importDefault(require("../ledger/mptoken-authorize-flags"));
43
43
  const signers_1 = require("../ledger/signers");
44
44
  const regular_key_1 = require("../ledger/regular-key");
45
+ const delegate_1 = require("../ledger/delegate");
45
46
  const source_1 = require("../ledger/source");
46
47
  function parseMPTokenAuthorize(tx) {
47
48
  assert.ok(tx.TransactionType === "MPTokenAuthorize");
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  flags: (0, mptoken_authorize_flags_1.default)(tx.Flags),
53
55
  holder: tx.Holder,
@@ -1,3 +1,4 @@
1
+ import { MPTokenIssuanceCreate } from "xrpl";
1
2
  import { FormattedMPTokenIssuanceCreateSpecification } from "../../types/mptokens";
2
- declare function parseMPTokenIssuanceCreate(tx: any): FormattedMPTokenIssuanceCreateSpecification;
3
+ declare function parseMPTokenIssuanceCreate(tx: MPTokenIssuanceCreate): FormattedMPTokenIssuanceCreateSpecification;
3
4
  export default parseMPTokenIssuanceCreate;
@@ -42,12 +42,14 @@ const memos_1 = require("../ledger/memos");
42
42
  const mptoken_issuance_create_flags_1 = __importDefault(require("../ledger/mptoken-issuance-create-flags"));
43
43
  const signers_1 = require("../ledger/signers");
44
44
  const regular_key_1 = require("../ledger/regular-key");
45
+ const delegate_1 = require("../ledger/delegate");
45
46
  const source_1 = require("../ledger/source");
46
47
  function parseMPTokenIssuanceCreate(tx) {
47
48
  assert.ok(tx.TransactionType === "MPTokenIssuanceCreate");
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  scale: tx.AssetScale,
53
55
  flags: (0, mptoken_issuance_create_flags_1.default)(tx.Flags),
@@ -1,3 +1,4 @@
1
+ import { MPTokenIssuanceDestroy } from "xrpl";
1
2
  import { FormattedMPTokenIssuanceDestroySpecification } from "../../types/mptokens";
2
- declare function parseMPTokenIssuanceCreate(tx: any): FormattedMPTokenIssuanceDestroySpecification;
3
+ declare function parseMPTokenIssuanceCreate(tx: MPTokenIssuanceDestroy): FormattedMPTokenIssuanceDestroySpecification;
3
4
  export default parseMPTokenIssuanceCreate;
@@ -38,12 +38,14 @@ const common_1 = require("../../common");
38
38
  const memos_1 = require("../ledger/memos");
39
39
  const signers_1 = require("../ledger/signers");
40
40
  const regular_key_1 = require("../ledger/regular-key");
41
+ const delegate_1 = require("../ledger/delegate");
41
42
  const source_1 = require("../ledger/source");
42
43
  function parseMPTokenIssuanceCreate(tx) {
43
44
  assert.ok(tx.TransactionType === "MPTokenIssuanceDestroy");
44
45
  return (0, common_1.removeUndefined)({
45
46
  signers: (0, signers_1.parseSigners)(tx),
46
47
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
48
+ delegate: (0, delegate_1.parseDelegate)(tx),
47
49
  source: (0, source_1.parseSource)(tx),
48
50
  mptIssuanceID: tx.MPTokenIssuanceID,
49
51
  memos: (0, memos_1.parseMemos)(tx),
@@ -1,3 +1,4 @@
1
+ import { MPTokenIssuanceSet } from "xrpl";
1
2
  import { FormattedMPTokenIssuanceSetSpecification } from "../../types/mptokens";
2
- declare function parseMPTokenIssuanceCreate(tx: any): FormattedMPTokenIssuanceSetSpecification;
3
+ declare function parseMPTokenIssuanceCreate(tx: MPTokenIssuanceSet): FormattedMPTokenIssuanceSetSpecification;
3
4
  export default parseMPTokenIssuanceCreate;
@@ -41,6 +41,7 @@ const common_1 = require("../../common");
41
41
  const memos_1 = require("../ledger/memos");
42
42
  const signers_1 = require("../ledger/signers");
43
43
  const regular_key_1 = require("../ledger/regular-key");
44
+ const delegate_1 = require("../ledger/delegate");
44
45
  const source_1 = require("../ledger/source");
45
46
  const mptoken_issuance_set_flags_1 = __importDefault(require("../ledger/mptoken-issuance-set-flags"));
46
47
  function parseMPTokenIssuanceCreate(tx) {
@@ -48,6 +49,7 @@ function parseMPTokenIssuanceCreate(tx) {
48
49
  return (0, common_1.removeUndefined)({
49
50
  signers: (0, signers_1.parseSigners)(tx),
50
51
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
52
+ delegate: (0, delegate_1.parseDelegate)(tx),
51
53
  source: (0, source_1.parseSource)(tx),
52
54
  flags: (0, mptoken_issuance_set_flags_1.default)(tx.Flags),
53
55
  holder: tx.Holder,
@@ -1,3 +1,4 @@
1
+ import { NFTokenAcceptOffer } from "xrpl";
1
2
  import { FormattedNFTokenAcceptOfferSpecification } from "../../types/nftokens";
2
- declare function parseNFTokenAcceptOffer(tx: any): FormattedNFTokenAcceptOfferSpecification;
3
+ declare function parseNFTokenAcceptOffer(tx: NFTokenAcceptOffer): FormattedNFTokenAcceptOfferSpecification;
3
4
  export default parseNFTokenAcceptOffer;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseNFTokenAcceptOffer(tx) {
44
45
  assert.ok(tx.TransactionType === "NFTokenAcceptOffer");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  nftokenSellOffer: tx.NFTokenSellOffer,
50
52
  nftokenBuyOffer: tx.NFTokenBuyOffer,
@@ -1,3 +1,4 @@
1
+ import { NFTokenBurn } from "xrpl";
1
2
  import { FormattedNFTokenBurnSpecification } from "../../types/nftokens";
2
- declare function parseNFTokenBurn(tx: any): FormattedNFTokenBurnSpecification;
3
+ declare function parseNFTokenBurn(tx: NFTokenBurn): FormattedNFTokenBurnSpecification;
3
4
  export default parseNFTokenBurn;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseNFTokenBurn(tx) {
44
45
  assert.ok(tx.TransactionType === "NFTokenBurn");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  account: tx.Account,
50
52
  nftokenID: tx.NFTokenID,
@@ -1,3 +1,4 @@
1
+ import { NFTokenCancelOffer } from "xrpl";
1
2
  import { FormattedNFTokenCancelOfferSpecification } from "../../types/nftokens";
2
- declare function parseNFTokenCancelOffer(tx: any): FormattedNFTokenCancelOfferSpecification;
3
+ declare function parseNFTokenCancelOffer(tx: NFTokenCancelOffer): FormattedNFTokenCancelOfferSpecification;
3
4
  export default parseNFTokenCancelOffer;
@@ -39,12 +39,14 @@ const emit_details_1 = require("../ledger/emit_details");
39
39
  const memos_1 = require("../ledger/memos");
40
40
  const signers_1 = require("../ledger/signers");
41
41
  const regular_key_1 = require("../ledger/regular-key");
42
+ const delegate_1 = require("../ledger/delegate");
42
43
  const source_1 = require("../ledger/source");
43
44
  function parseNFTokenCancelOffer(tx) {
44
45
  assert.ok(tx.TransactionType === "NFTokenCancelOffer");
45
46
  return (0, common_1.removeUndefined)({
46
47
  signers: (0, signers_1.parseSigners)(tx),
47
48
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
49
+ delegate: (0, delegate_1.parseDelegate)(tx),
48
50
  source: (0, source_1.parseSource)(tx),
49
51
  nftokenOffers: tx.NFTokenOffers,
50
52
  emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
@@ -1,3 +1,4 @@
1
+ import { NFTokenCreateOffer } from "xrpl";
1
2
  import { FormattedNFTokenCreateOfferSpecification } from "../../types/nftokens";
2
- declare function parseNFTokenCreateOffer(tx: any): FormattedNFTokenCreateOfferSpecification;
3
+ declare function parseNFTokenCreateOffer(tx: NFTokenCreateOffer): FormattedNFTokenCreateOfferSpecification;
3
4
  export default parseNFTokenCreateOffer;
@@ -44,6 +44,7 @@ const nftoken_offer_flags_1 = __importDefault(require("../ledger/nftoken-offer-f
44
44
  const ledger_1 = require("../../models/ledger");
45
45
  const signers_1 = require("../ledger/signers");
46
46
  const regular_key_1 = require("../ledger/regular-key");
47
+ const delegate_1 = require("../ledger/delegate");
47
48
  const source_1 = require("../ledger/source");
48
49
  const destination_1 = require("../ledger/destination");
49
50
  function parseNFTokenCreateOffer(tx) {
@@ -55,6 +56,7 @@ function parseNFTokenCreateOffer(tx) {
55
56
  return (0, common_1.removeUndefined)({
56
57
  signers: (0, signers_1.parseSigners)(tx),
57
58
  signer: (0, regular_key_1.parseSignerRegularKey)(tx),
59
+ delegate: (0, delegate_1.parseDelegate)(tx),
58
60
  source: (0, source_1.parseSource)(tx),
59
61
  destination: (0, destination_1.parseDestination)(tx),
60
62
  nftokenID: tx.NFTokenID,
@@ -1,3 +1,4 @@
1
+ import { NFTokenMint } from "xrpl";
1
2
  import { FormattedNFTokenMintSpecification } from "../../types/nftokens";
2
- declare function parseNFTokenMint(tx: any): FormattedNFTokenMintSpecification;
3
+ declare function parseNFTokenMint(tx: NFTokenMint): FormattedNFTokenMintSpecification;
3
4
  export default parseNFTokenMint;