@bithomp/xrpl-api 2.7.3 → 2.7.5

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.
@@ -3,4 +3,5 @@ import sha512Half from "./sha512Half";
3
3
  export * from "./utils";
4
4
  export { errors, sha512Half };
5
5
  export declare const dropsInXRP = 1000000;
6
+ export declare const ACCOUNT_ZERO = "rrrrrrrrrrrrrrrrrrrrrhoLvTp";
6
7
  export declare const BLACKHOLE_ACCOUNTS: string[];
@@ -29,15 +29,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
29
29
  return (mod && mod.__esModule) ? mod : { "default": mod };
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.BLACKHOLE_ACCOUNTS = exports.dropsInXRP = exports.sha512Half = exports.errors = void 0;
32
+ exports.BLACKHOLE_ACCOUNTS = exports.ACCOUNT_ZERO = exports.dropsInXRP = exports.sha512Half = exports.errors = void 0;
33
33
  const errors = __importStar(require("./errors"));
34
34
  exports.errors = errors;
35
35
  const sha512Half_1 = __importDefault(require("./sha512Half"));
36
36
  exports.sha512Half = sha512Half_1.default;
37
37
  __exportStar(require("./utils"), exports);
38
38
  exports.dropsInXRP = 1000000;
39
+ exports.ACCOUNT_ZERO = "rrrrrrrrrrrrrrrrrrrrrhoLvTp";
39
40
  exports.BLACKHOLE_ACCOUNTS = [
40
- "rrrrrrrrrrrrrrrrrrrrrhoLvTp",
41
+ exports.ACCOUNT_ZERO,
41
42
  "rrrrrrrrrrrrrrrrrrrrBZbvji",
42
43
  "rrrrrrrrrrrrrrrrrNAMEtxvNvQ",
43
44
  "rrrrrrrrrrrrrrrrrrrn5RM1rHd",
@@ -2,6 +2,11 @@ import { Connection } from "../connection";
2
2
  import { LedgerIndex } from "../models/ledger";
3
3
  import { URITokenInterface } from "../models/account_uritokens";
4
4
  import { ErrorResponse } from "../models/base_model";
5
+ export declare const LEDGER_ENTRY_AMENDMENTS = "7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4";
6
+ export declare const LEDGER_ENTRY_NEGATIVE_UNL = "2E8A59AA9D3B5B186B0B9E0F62E6C02587CA74A4D778938E957B6357D364B244";
7
+ export declare const LEDGER_ENTRY_FEE_SETTINGS = "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651";
8
+ export declare const LEDGER_ENTRY_LEDGER_HASHES = "B4979A36CDC7F3D3D5C31A4EAE2AC7D7209DDA877588B9AFC66799692AB0D66B";
9
+ export declare const LEDGER_ENTRY_UNL_REPORT = "61E32E7A24A238F1C619D5F9DDCC41A94B33B66C0163F7EFCC8A19C9FD6F28DC";
5
10
  export interface GetLedgerEntryOptions {
6
11
  ledgerIndex?: LedgerIndex;
7
12
  connection?: Connection;
@@ -23,10 +23,14 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.getLedgerEntryURIToken = exports.getLedgerEntryAmendments = exports.getLedgerEntry = void 0;
26
+ exports.getLedgerEntryURIToken = exports.getLedgerEntryAmendments = exports.getLedgerEntry = exports.LEDGER_ENTRY_UNL_REPORT = exports.LEDGER_ENTRY_LEDGER_HASHES = exports.LEDGER_ENTRY_FEE_SETTINGS = exports.LEDGER_ENTRY_NEGATIVE_UNL = exports.LEDGER_ENTRY_AMENDMENTS = void 0;
27
27
  const Client = __importStar(require("../client"));
28
28
  const common_1 = require("../common");
29
- const LEDGER_ENTRY_AMENDMENTS = "7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4";
29
+ exports.LEDGER_ENTRY_AMENDMENTS = "7DB0788C020F02780A673DC74757F23823FA3014C1866E72CC4CD8B226CD6EF4";
30
+ exports.LEDGER_ENTRY_NEGATIVE_UNL = "2E8A59AA9D3B5B186B0B9E0F62E6C02587CA74A4D778938E957B6357D364B244";
31
+ exports.LEDGER_ENTRY_FEE_SETTINGS = "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A651";
32
+ exports.LEDGER_ENTRY_LEDGER_HASHES = "B4979A36CDC7F3D3D5C31A4EAE2AC7D7209DDA877588B9AFC66799692AB0D66B";
33
+ exports.LEDGER_ENTRY_UNL_REPORT = "61E32E7A24A238F1C619D5F9DDCC41A94B33B66C0163F7EFCC8A19C9FD6F28DC";
30
34
  async function getLedgerEntry(ledgerEntry, options = {}) {
31
35
  const connection = options.connection || Client.findConnection();
32
36
  if (!connection) {
@@ -59,7 +63,7 @@ async function getLedgerEntry(ledgerEntry, options = {}) {
59
63
  }
60
64
  exports.getLedgerEntry = getLedgerEntry;
61
65
  async function getLedgerEntryAmendments(options = {}) {
62
- const response = await getLedgerEntry(LEDGER_ENTRY_AMENDMENTS, options);
66
+ const response = await getLedgerEntry(exports.LEDGER_ENTRY_AMENDMENTS, options);
63
67
  if (!response || !response.node) {
64
68
  return {
65
69
  status: "error",
@@ -21,7 +21,12 @@ function sortHelperAccountNFToken(a, b) {
21
21
  }
22
22
  exports.sortHelperAccountNFToken = sortHelperAccountNFToken;
23
23
  function cipheredTaxon(tokenSeq, taxon) {
24
- return (taxon ^ (((384160001 * tokenSeq) >>> 0) + 2459)) >>> 0;
24
+ const m = 384160001n;
25
+ const c = 2459n;
26
+ const max = 4294967296n;
27
+ const p1 = (m * BigInt(tokenSeq)) % max;
28
+ const p2 = (p1 + c) % max;
29
+ return (taxon ^ Number(p2)) >>> 0;
25
30
  }
26
31
  exports.cipheredTaxon = cipheredTaxon;
27
32
  function parseNFTokenID(nftokenID) {
@@ -1,3 +1,4 @@
1
+ export declare const RIPPLE_UNIX_DIFF = 946684800;
1
2
  export type LedgerIndex = number | ("validated" | "closed" | "current");
2
3
  export type StreamType = "consensus" | "ledger" | "manifests" | "peer_status" | "transactions" | "transactions_proposed" | "server" | "validations";
3
4
  export declare function unixTimeToLedgerTime(time: number): number;
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ledgerTimeToISO8601 = exports.ledgerTimeToTimestamp = exports.ledgerTimeToUnixTime = exports.unixTimeToLedgerTime = void 0;
4
- const RIPPLE_UNIX_DIFF = 946684800;
3
+ exports.ledgerTimeToISO8601 = exports.ledgerTimeToTimestamp = exports.ledgerTimeToUnixTime = exports.unixTimeToLedgerTime = exports.RIPPLE_UNIX_DIFF = void 0;
4
+ exports.RIPPLE_UNIX_DIFF = 946684800;
5
5
  function unixTimeToLedgerTime(time) {
6
- return time - RIPPLE_UNIX_DIFF;
6
+ return time - exports.RIPPLE_UNIX_DIFF;
7
7
  }
8
8
  exports.unixTimeToLedgerTime = unixTimeToLedgerTime;
9
9
  function ledgerTimeToUnixTime(ledgerTime) {
10
- return ledgerTime + RIPPLE_UNIX_DIFF;
10
+ return ledgerTime + exports.RIPPLE_UNIX_DIFF;
11
11
  }
12
12
  exports.ledgerTimeToUnixTime = ledgerTimeToUnixTime;
13
13
  function ledgerTimeToTimestamp(ledgerTime) {
@@ -0,0 +1 @@
1
+ export declare function parseAccount(account: string): string;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseAccount = void 0;
4
+ const common_1 = require("../../common");
5
+ function parseAccount(account) {
6
+ return account === "" ? common_1.ACCOUNT_ZERO : account;
7
+ }
8
+ exports.parseAccount = parseAccount;
@@ -1,5 +1,5 @@
1
1
  import { FormattedSourceAddress, FormattedDestinationAddress } from "../../v1/common/types/objects/account";
2
- interface FormattedEscrowInterface {
2
+ interface FormattedEscrowSummaryInterface {
3
3
  status?: string;
4
4
  escrowIndex?: number;
5
5
  escrowSequence?: number;
@@ -12,5 +12,5 @@ interface FormattedEscrowInterface {
12
12
  previousTxnID?: string;
13
13
  previousTxnLgrSeq?: number;
14
14
  }
15
- declare function parseEscrowChanges(tx: any): FormattedEscrowInterface | undefined;
15
+ declare function parseEscrowChanges(tx: any): FormattedEscrowSummaryInterface | undefined;
16
16
  export { parseEscrowChanges };
@@ -10,3 +10,4 @@ export { parseOrderbookChanges } from "./orderbook_changes";
10
10
  export { parseHooksExecutions } from "./hooks_executions";
11
11
  export { parseEmittedTxns } from "./emitted_txns";
12
12
  export { parseEscrowChanges } from "./escrow_changes";
13
+ export { parseUNLReportChanges } from "./unl_report_changes";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseEscrowChanges = exports.parseEmittedTxns = exports.parseHooksExecutions = exports.parseOrderbookChanges = exports.parseChannelChanges = exports.parseLockedBalanceChanges = exports.parseBalanceChanges = exports.parseURITokenSellOfferChanges = exports.parseURITokenChanges = exports.parseNFTokenOfferChanges = exports.parseNFTokenChanges = exports.parseAffectedObjects = void 0;
3
+ exports.parseUNLReportChanges = exports.parseEscrowChanges = exports.parseEmittedTxns = exports.parseHooksExecutions = exports.parseOrderbookChanges = exports.parseChannelChanges = exports.parseLockedBalanceChanges = exports.parseBalanceChanges = exports.parseURITokenSellOfferChanges = exports.parseURITokenChanges = exports.parseNFTokenOfferChanges = exports.parseNFTokenChanges = exports.parseAffectedObjects = void 0;
4
4
  var affected_objects_1 = require("./affected_objects");
5
5
  Object.defineProperty(exports, "parseAffectedObjects", { enumerable: true, get: function () { return affected_objects_1.parseAffectedObjects; } });
6
6
  var nftoken_changes_1 = require("./nftoken_changes");
@@ -25,3 +25,5 @@ var emitted_txns_1 = require("./emitted_txns");
25
25
  Object.defineProperty(exports, "parseEmittedTxns", { enumerable: true, get: function () { return emitted_txns_1.parseEmittedTxns; } });
26
26
  var escrow_changes_1 = require("./escrow_changes");
27
27
  Object.defineProperty(exports, "parseEscrowChanges", { enumerable: true, get: function () { return escrow_changes_1.parseEscrowChanges; } });
28
+ var unl_report_changes_1 = require("./unl_report_changes");
29
+ Object.defineProperty(exports, "parseUNLReportChanges", { enumerable: true, get: function () { return unl_report_changes_1.parseUNLReportChanges; } });
@@ -0,0 +1,13 @@
1
+ interface FormattedUNLReportSummaryInterface {
2
+ status: "added";
3
+ activeValidator?: {
4
+ account: string;
5
+ publicKey: string;
6
+ };
7
+ importVLKey?: {
8
+ account: string;
9
+ publicKey: string;
10
+ };
11
+ }
12
+ declare function parseUNLReportChanges(tx: any): FormattedUNLReportSummaryInterface | undefined;
13
+ export { parseUNLReportChanges };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseUNLReportChanges = void 0;
4
+ const common_1 = require("../../common");
5
+ const utils_1 = require("../../v1/common/utils");
6
+ function summarizeUNLReport(tx, node) {
7
+ const final = node.diffType === "CreatedNode" ? node.newFields : node.finalFields;
8
+ if (tx.ImportVLKey && final.ImportVLKeys) {
9
+ for (const vlKey of final.ImportVLKeys) {
10
+ if (vlKey.ImportVLKey.PublicKey === tx.ImportVLKey.PublicKey) {
11
+ const summary = {
12
+ status: "added",
13
+ importVLKey: {
14
+ account: vlKey.ImportVLKey.Account,
15
+ publicKey: vlKey.ImportVLKey.PublicKey,
16
+ },
17
+ };
18
+ return (0, common_1.removeUndefined)(summary);
19
+ }
20
+ }
21
+ }
22
+ if (tx.ActiveValidator && final.ActiveValidators) {
23
+ for (const activeValidator of final.ActiveValidators) {
24
+ if (activeValidator.ActiveValidator.PublicKey === tx.ActiveValidator.PublicKey) {
25
+ const summary = {
26
+ status: "added",
27
+ activeValidator: {
28
+ account: activeValidator.ActiveValidator.Account,
29
+ publicKey: activeValidator.ActiveValidator.PublicKey,
30
+ },
31
+ };
32
+ return (0, common_1.removeUndefined)(summary);
33
+ }
34
+ }
35
+ }
36
+ return undefined;
37
+ }
38
+ function parseUNLReportChanges(tx) {
39
+ const escrows = (0, utils_1.normalizeNodes)(tx.meta).filter((n) => {
40
+ return n.entryType === "UNLReport";
41
+ });
42
+ return escrows.length === 1 ? summarizeUNLReport(tx, escrows[0]) : undefined;
43
+ }
44
+ exports.parseUNLReportChanges = parseUNLReportChanges;
@@ -77,6 +77,7 @@ function parseOutcome(tx, nativeCurrency, definitions) {
77
77
  const affectedObjects = (0, index_1.parseAffectedObjects)(tx);
78
78
  const hooksExecutions = (0, index_1.parseHooksExecutions)(tx);
79
79
  const emittedTxns = (0, index_1.parseEmittedTxns)(tx, definitions);
80
+ const unlReportChanges = (0, index_1.parseUNLReportChanges)(tx);
80
81
  removeEmptyCounterpartyInBalanceChanges(balanceChanges);
81
82
  removeEmptyCounterpartyInBalanceChanges(lockedBalanceChanges);
82
83
  removeEmptyCounterpartyInOrderbookChanges(orderbookChanges);
@@ -94,6 +95,7 @@ function parseOutcome(tx, nativeCurrency, definitions) {
94
95
  uritokenChanges: Object.keys(uritokenChanges).length > 0 ? uritokenChanges : undefined,
95
96
  uritokenSellOfferChanges: Object.keys(uritokenSellOfferChanges).length > 0 ? uritokenSellOfferChanges : undefined,
96
97
  affectedObjects: affectedObjects ? (0, common_1.removeUndefined)(affectedObjects) : undefined,
98
+ unlReportChanges,
97
99
  hooksExecutions,
98
100
  emittedTxns,
99
101
  ledgerVersion: tx.ledger_index,
@@ -0,0 +1,3 @@
1
+ import { FormattedUNLReportSpecification } from "../../v1/common/types/objects/unl_report";
2
+ declare function parseImport(tx: any): FormattedUNLReportSpecification;
3
+ export default parseImport;
@@ -0,0 +1,47 @@
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 (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const assert = __importStar(require("assert"));
30
+ const common_1 = require("../../common");
31
+ const memos_1 = __importDefault(require("../ledger/memos"));
32
+ const account_1 = require("../ledger/account");
33
+ function parseImport(tx) {
34
+ assert.ok(tx.TransactionType === "UNLReport");
35
+ const source = {
36
+ address: (0, account_1.parseAccount)(tx.Account),
37
+ };
38
+ const activeValidator = tx.ActiveValidator?.PublicKey;
39
+ const importVLKey = tx.ImportVLKey?.PublicKey;
40
+ return (0, common_1.removeUndefined)({
41
+ source: (0, common_1.removeUndefined)(source),
42
+ activeValidator,
43
+ importVLKey,
44
+ memos: (0, memos_1.default)(tx),
45
+ });
46
+ }
47
+ exports.default = parseImport;
@@ -14,10 +14,11 @@ import { FormattedNFTokenBurnSpecification, FormattedNFTokenMintSpecification, F
14
14
  import { FormattedURITokenBurnSpecification, FormattedURITokenBuySpecification, FormattedURITokenCreateSellOfferSpecification, FormattedURITokenCancelSellOfferSpecification, FormattedURITokenMintSpecification } from "../v1/common/types/objects/uritokens";
15
15
  import { FormattedImportSpecification } from "../v1/common/types/objects/import";
16
16
  import { FormattedInvokeSpecification } from "../v1/common/types/objects/invoke";
17
+ import { FormattedUNLReportSpecification } from "../v1/common/types/objects/unl_report";
17
18
  import { FormattedAmendmentSpecification } from "../v1/common/types/objects/amendments";
18
19
  import { FormattedFeeUpdateSpecification } from "../v1/common/types/objects/fees";
19
20
  declare function parseTransactionType(type: string): string;
20
- export type FormattedSpecification = FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification;
21
+ export type FormattedSpecification = FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedUNLReportSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification;
21
22
  export interface FormattedTransaction {
22
23
  type: string;
23
24
  address: string;
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.parseTransaction = exports.parseTransactionType = void 0;
7
7
  const common_1 = require("../common");
8
+ const account_1 = require("./ledger/account");
8
9
  const outcome_1 = require("./outcome");
9
10
  const settings_1 = __importDefault(require("./specification/settings"));
10
11
  const account_delete_1 = __importDefault(require("./specification/account-delete"));
@@ -35,6 +36,7 @@ const uritoken_create_sell_offer_1 = __importDefault(require("./specification/ur
35
36
  const uritoken_mint_1 = __importDefault(require("./specification/uritoken-mint"));
36
37
  const import_1 = __importDefault(require("./specification/import"));
37
38
  const invoke_1 = __importDefault(require("./specification/invoke"));
39
+ const unl_report_1 = __importDefault(require("./specification/unl-report"));
38
40
  const amendment_1 = __importDefault(require("./specification/amendment"));
39
41
  const fee_update_1 = __importDefault(require("./specification/fee-update"));
40
42
  const transactionTypeToType = {
@@ -69,6 +71,7 @@ const transactionTypeToType = {
69
71
  URITokenBuy: "uritokenBuy",
70
72
  Import: "import",
71
73
  Invoke: "invoke",
74
+ UNLReport: "unlReport",
72
75
  EnableAmendment: "amendment",
73
76
  SetFee: "feeUpdate",
74
77
  };
@@ -106,6 +109,7 @@ const parserTypeFunc = {
106
109
  uritokenMint: uritoken_mint_1.default,
107
110
  import: import_1.default,
108
111
  invoke: invoke_1.default,
112
+ unlReport: unl_report_1.default,
109
113
  amendment: amendment_1.default,
110
114
  feeUpdate: fee_update_1.default,
111
115
  };
@@ -124,7 +128,7 @@ function parseTransaction(tx, includeRawTransaction, nativeCurrency, definitions
124
128
  const outcome = (0, outcome_1.parseOutcome)(tx, nativeCurrency, definitions);
125
129
  return (0, common_1.removeUndefined)({
126
130
  type: type,
127
- address: tx.Account,
131
+ address: (0, account_1.parseAccount)(tx.Account),
128
132
  sequence: tx.Sequence,
129
133
  id: tx.hash,
130
134
  specification: (0, common_1.removeUndefined)(specification),
@@ -0,0 +1,7 @@
1
+ import { FormattedBaseSpecification } from "./specification";
2
+ import { FormattedSourceAddress } from "./account";
3
+ export type FormattedUNLReportSpecification = {
4
+ source: FormattedSourceAddress;
5
+ activeValidator?: string;
6
+ importVLKey?: string;
7
+ } & FormattedBaseSpecification;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,6 +30,8 @@ export type Outcome = {
30
30
  channelChanges?: object;
31
31
  nftokenChanges?: object;
32
32
  nftokenOfferChanges?: object;
33
+ uritokenChanges?: object;
34
+ uritokenSellOfferChanges?: object;
33
35
  affectedObjects?: object;
34
36
  deliveredAmount?: {
35
37
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bithomp/xrpl-api",
3
- "version": "2.7.3",
3
+ "version": "2.7.5",
4
4
  "description": "A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,7 +22,8 @@
22
22
  "xls20",
23
23
  "xls35",
24
24
  "unl",
25
- "bithomp"
25
+ "bithomp",
26
+ "xahau"
26
27
  ],
27
28
  "funding": {
28
29
  "type": "individual",
@@ -53,8 +54,8 @@
53
54
  "elliptic": "^6.5.4",
54
55
  "lodash": "^4.17.21",
55
56
  "ripple-address-codec": "^4.3.1",
56
- "ripple-binary-codec": "^1.10.0",
57
- "xrpl": "^2.13.0"
57
+ "ripple-binary-codec": "^1.11.0",
58
+ "xrpl": "^2.14.0"
58
59
  },
59
60
  "devDependencies": {
60
61
  "@types/chai": "^4.3.10",