@bithomp/xrpl-api 3.1.18 → 3.2.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.
- package/lib/client.js +1 -0
- package/lib/common/index.js +17 -7
- package/lib/index.js +17 -7
- package/lib/ledger/account_info.js +17 -7
- package/lib/ledger/account_lines.js +17 -7
- package/lib/ledger/account_namespace.js +17 -7
- package/lib/ledger/account_nfts.js +17 -7
- package/lib/ledger/account_objects.js +17 -7
- package/lib/ledger/account_offers.js +17 -7
- package/lib/ledger/account_tx.js +17 -7
- package/lib/ledger/amm_info.js +17 -7
- package/lib/ledger/book_offers.js +17 -7
- package/lib/ledger/currency.js +17 -7
- package/lib/ledger/fee.js +17 -7
- package/lib/ledger/gateway_balances.js +17 -7
- package/lib/ledger/ledger.js +17 -7
- package/lib/ledger/ledger_entry.js +17 -7
- package/lib/ledger/manifest.js +17 -7
- package/lib/ledger/nft_info.js +17 -7
- package/lib/ledger/server_definitions.js +17 -7
- package/lib/ledger/server_info.js +17 -7
- package/lib/ledger/transaction.js +17 -7
- package/lib/ledger/vl-v2.js +17 -7
- package/lib/ledger/vl.js +17 -7
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +6 -1
- package/lib/models/manifest.js +17 -7
- package/lib/models/mptoken.d.ts +7 -0
- package/lib/models/mptoken.js +26 -0
- package/lib/models/vl.js +17 -7
- package/lib/parse/index.js +17 -7
- package/lib/parse/ledger/account-order.js +3 -3
- package/lib/parse/ledger/amount.d.ts +2 -2
- package/lib/parse/ledger/amount.js +8 -5
- package/lib/parse/ledger/mptoken-authorize-flags.d.ts +5 -0
- package/lib/parse/ledger/mptoken-authorize-flags.js +8 -0
- package/lib/parse/ledger/mptoken-issuance-create-flags.d.ts +5 -0
- package/lib/parse/ledger/mptoken-issuance-create-flags.js +8 -0
- package/lib/parse/ledger/mptoken-issuance-set-flags.d.ts +5 -0
- package/lib/parse/ledger/mptoken-issuance-set-flags.js +8 -0
- package/lib/parse/ledger/orderbook-order.js +3 -3
- package/lib/parse/outcome/amm_changes.d.ts +2 -1
- package/lib/parse/outcome/balance_changes.d.ts +15 -2
- package/lib/parse/outcome/balance_changes.js +33 -2
- package/lib/parse/outcome/delivered_amount.d.ts +2 -2
- package/lib/parse/outcome/did_changes.d.ts +2 -1
- package/lib/parse/outcome/escrow_changes.d.ts +1 -1
- package/lib/parse/outcome/index.d.ts +2 -0
- package/lib/parse/outcome/index.js +5 -1
- package/lib/parse/outcome/locked_balance_changes.d.ts +14 -2
- package/lib/parse/outcome/locked_balance_changes.js +2 -21
- package/lib/parse/outcome/mptoken_changes.d.ts +1 -0
- package/lib/parse/outcome/mptoken_changes.js +84 -0
- package/lib/parse/outcome/mptoken_issuance_changes.d.ts +1 -0
- package/lib/parse/outcome/mptoken_issuance_changes.js +94 -0
- package/lib/parse/outcome/oracle_changes.d.ts +2 -1
- package/lib/parse/outcome/orderbook_changes.d.ts +14 -2
- package/lib/parse/outcome/orderbook_changes.js +2 -2
- package/lib/parse/outcome/orderbook_quality.js +17 -7
- package/lib/parse/outcome.js +4 -20
- package/lib/parse/specification/account-delete.js +17 -7
- package/lib/parse/specification/amendment.js +17 -7
- package/lib/parse/specification/amm-bid.js +17 -7
- package/lib/parse/specification/amm-create.js +17 -7
- package/lib/parse/specification/amm-delete.js +17 -7
- package/lib/parse/specification/amm-deposit.js +17 -7
- package/lib/parse/specification/amm-vote.js +17 -7
- package/lib/parse/specification/amm-withdraw.js +17 -7
- package/lib/parse/specification/check-cancel.js +17 -7
- package/lib/parse/specification/check-cash.js +17 -7
- package/lib/parse/specification/check-create.js +17 -7
- package/lib/parse/specification/clawback.js +17 -7
- package/lib/parse/specification/deposit-preauth.js +17 -7
- package/lib/parse/specification/did-delete.js +17 -7
- package/lib/parse/specification/did-set.js +17 -7
- package/lib/parse/specification/escrow-cancel.js +17 -7
- package/lib/parse/specification/escrow-create.js +17 -7
- package/lib/parse/specification/escrow-finish.js +17 -7
- package/lib/parse/specification/genesis-mint.js +17 -7
- package/lib/parse/specification/import.js +17 -7
- package/lib/parse/specification/invoke.js +17 -7
- package/lib/parse/specification/mptoken-authorize.d.ts +3 -0
- package/lib/parse/specification/mptoken-authorize.js +58 -0
- package/lib/parse/specification/mptoken-issuance-create.d.ts +3 -0
- package/lib/parse/specification/mptoken-issuance-create.js +60 -0
- package/lib/parse/specification/mptoken-issuance-destroy.d.ts +3 -0
- package/lib/parse/specification/mptoken-issuance-destroy.js +52 -0
- package/lib/parse/specification/mptoken-issuance-set.d.ts +3 -0
- package/lib/parse/specification/mptoken-issuance-set.js +58 -0
- package/lib/parse/specification/nftoken-accept-offer.js +22 -7
- package/lib/parse/specification/nftoken-burn.js +22 -7
- package/lib/parse/specification/nftoken-cancel-offer.js +22 -7
- package/lib/parse/specification/nftoken-create-offer.js +17 -7
- package/lib/parse/specification/nftoken-mint.js +34 -7
- package/lib/parse/specification/offer-cancel.js +22 -9
- package/lib/parse/specification/offer-create.js +22 -9
- package/lib/parse/specification/oracle-delete.js +17 -9
- package/lib/parse/specification/oracle-set.js +17 -7
- package/lib/parse/specification/payment-channel-claim.js +17 -7
- package/lib/parse/specification/payment-channel-create.js +17 -7
- package/lib/parse/specification/payment-channel-fund.js +17 -7
- package/lib/parse/specification/payment.js +17 -7
- package/lib/parse/specification/remit.js +17 -7
- package/lib/parse/specification/settings.js +17 -7
- package/lib/parse/specification/ticket-create.js +17 -7
- package/lib/parse/specification/trustline.js +17 -7
- package/lib/parse/specification/unl-report.js +17 -7
- package/lib/parse/specification/uritoken-burn.js +17 -7
- package/lib/parse/specification/uritoken-buy.js +17 -7
- package/lib/parse/specification/uritoken-cancel-sell-offer.js +17 -7
- package/lib/parse/specification/uritoken-create-sell-offer.js +17 -7
- package/lib/parse/specification/uritoken-mint.js +17 -7
- package/lib/parse/transaction.d.ts +4 -1
- package/lib/parse/transaction.js +24 -8
- package/lib/parse/utils.d.ts +2 -2
- package/lib/parse/utils.js +4 -1
- package/lib/types/account.d.ts +2 -2
- package/lib/types/amounts.d.ts +6 -2
- package/lib/types/checks.d.ts +2 -2
- package/lib/types/mptokens.d.ts +69 -0
- package/lib/types/mptokens.js +36 -0
- package/lib/types/nftokens.d.ts +3 -0
- package/lib/types/outcome.d.ts +6 -19
- package/lib/v1/utils.d.ts +1 -1
- package/lib/v1/utils.js +18 -10
- package/lib/validator.js +18 -16
- package/lib/wallet.js +17 -7
- package/package.json +15 -12
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.getServerInfo = getServerInfo;
|
|
27
37
|
const Client = __importStar(require("../client"));
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.getTransaction = getTransaction;
|
|
27
37
|
exports.getTransactionByCTID = getTransactionByCTID;
|
package/lib/ledger/vl-v2.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.createVLv2 = createVLv2;
|
|
27
37
|
exports.createVLBlobV2 = createVLBlobV2;
|
package/lib/ledger/vl.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.createVL = createVL;
|
|
27
37
|
exports.createVLBlob = createVLBlob;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./account_namespace";
|
|
|
9
9
|
export * from "./account_uritokens";
|
|
10
10
|
export * from "./vl";
|
|
11
11
|
export * from "./server_definitions";
|
|
12
|
+
export * from "./mptoken";
|
|
12
13
|
export { parseAffectedObjects } from "../parse/outcome/affected_objects";
|
|
13
14
|
export { parseNFTokenChanges } from "../parse/outcome/nftoken_changes";
|
|
14
15
|
export { parseNFTokenOfferChanges } from "../parse/outcome/nftoken_offer_changes";
|
|
@@ -18,6 +19,8 @@ export { parseBalanceChanges, parseFinalBalances } from "../parse/outcome/balanc
|
|
|
18
19
|
export { parseLockedBalanceChanges } from "../parse/outcome/locked_balance_changes";
|
|
19
20
|
export { parseChannelChanges } from "../parse/outcome/channel_changes";
|
|
20
21
|
export { parseOrderbookChanges } from "../parse/outcome/orderbook_changes";
|
|
22
|
+
export { parseMPTokenIssuanceChanges } from "../parse/outcome/mptoken_issuance_changes";
|
|
23
|
+
export { parseMPTokenChanges } from "../parse/outcome/mptoken_changes";
|
|
21
24
|
import parseNFTokenBurn from "../parse/specification/nftoken-burn";
|
|
22
25
|
import parseNFTokenMint from "../parse/specification/nftoken-mint";
|
|
23
26
|
import parseNFTokenFlags from "../parse/ledger/nftoken-flags";
|
package/lib/models/index.js
CHANGED
|
@@ -17,7 +17,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.parseURITokenFlags = exports.parseNFTokenCreateOffer = exports.parseNFTokenCancelOffer = exports.parseNFTokenAcceptOffer = exports.parseNFTOfferFlags = exports.parseNFTokenFlags = exports.parseNFTokenBurn = exports.parseNFTokenMint = exports.parseOrderbookChanges = exports.parseChannelChanges = exports.parseLockedBalanceChanges = exports.parseFinalBalances = exports.parseBalanceChanges = exports.parseURITokenSellOfferChanges = exports.parseURITokenChanges = exports.parseNFTokenOfferChanges = exports.parseNFTokenChanges = exports.parseAffectedObjects = void 0;
|
|
20
|
+
exports.parseURITokenFlags = exports.parseNFTokenCreateOffer = exports.parseNFTokenCancelOffer = exports.parseNFTokenAcceptOffer = exports.parseNFTOfferFlags = exports.parseNFTokenFlags = exports.parseNFTokenBurn = exports.parseNFTokenMint = exports.parseMPTokenChanges = exports.parseMPTokenIssuanceChanges = exports.parseOrderbookChanges = exports.parseChannelChanges = exports.parseLockedBalanceChanges = exports.parseFinalBalances = exports.parseBalanceChanges = exports.parseURITokenSellOfferChanges = exports.parseURITokenChanges = exports.parseNFTokenOfferChanges = exports.parseNFTokenChanges = exports.parseAffectedObjects = void 0;
|
|
21
21
|
__exportStar(require("./account_info"), exports);
|
|
22
22
|
__exportStar(require("./account_nfts"), exports);
|
|
23
23
|
__exportStar(require("./account_object"), exports);
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./account_namespace"), exports);
|
|
|
29
29
|
__exportStar(require("./account_uritokens"), exports);
|
|
30
30
|
__exportStar(require("./vl"), exports);
|
|
31
31
|
__exportStar(require("./server_definitions"), exports);
|
|
32
|
+
__exportStar(require("./mptoken"), exports);
|
|
32
33
|
var affected_objects_1 = require("../parse/outcome/affected_objects");
|
|
33
34
|
Object.defineProperty(exports, "parseAffectedObjects", { enumerable: true, get: function () { return affected_objects_1.parseAffectedObjects; } });
|
|
34
35
|
var nftoken_changes_1 = require("../parse/outcome/nftoken_changes");
|
|
@@ -48,6 +49,10 @@ var channel_changes_1 = require("../parse/outcome/channel_changes");
|
|
|
48
49
|
Object.defineProperty(exports, "parseChannelChanges", { enumerable: true, get: function () { return channel_changes_1.parseChannelChanges; } });
|
|
49
50
|
var orderbook_changes_1 = require("../parse/outcome/orderbook_changes");
|
|
50
51
|
Object.defineProperty(exports, "parseOrderbookChanges", { enumerable: true, get: function () { return orderbook_changes_1.parseOrderbookChanges; } });
|
|
52
|
+
var mptoken_issuance_changes_1 = require("../parse/outcome/mptoken_issuance_changes");
|
|
53
|
+
Object.defineProperty(exports, "parseMPTokenIssuanceChanges", { enumerable: true, get: function () { return mptoken_issuance_changes_1.parseMPTokenIssuanceChanges; } });
|
|
54
|
+
var mptoken_changes_1 = require("../parse/outcome/mptoken_changes");
|
|
55
|
+
Object.defineProperty(exports, "parseMPTokenChanges", { enumerable: true, get: function () { return mptoken_changes_1.parseMPTokenChanges; } });
|
|
51
56
|
const nftoken_burn_1 = __importDefault(require("../parse/specification/nftoken-burn"));
|
|
52
57
|
exports.parseNFTokenBurn = nftoken_burn_1.default;
|
|
53
58
|
const nftoken_mint_1 = __importDefault(require("../parse/specification/nftoken-mint"));
|
package/lib/models/manifest.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.decodeManifest = decodeManifest;
|
|
27
37
|
exports.parseManifest = parseManifest;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface MPTokenInterface {
|
|
2
|
+
MPTokenIssuanceID: string;
|
|
3
|
+
Issuer: string;
|
|
4
|
+
Sequence: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function buildMPTokenIssuanceID(sequence: number, issuer: string): string;
|
|
7
|
+
export declare function parseMPTokenIssuanceID(mptIssuanceID: string): MPTokenInterface | null;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.buildMPTokenIssuanceID = buildMPTokenIssuanceID;
|
|
7
|
+
exports.parseMPTokenIssuanceID = parseMPTokenIssuanceID;
|
|
8
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
9
|
+
const AddressCodec = require("ripple-address-codec");
|
|
10
|
+
const utils_1 = require("../parse/utils");
|
|
11
|
+
function buildMPTokenIssuanceID(sequence, issuer) {
|
|
12
|
+
return (new bignumber_js_1.default(sequence).toString(16).padStart(8, "0").toUpperCase() +
|
|
13
|
+
(0, utils_1.bytesToHex)(AddressCodec.decodeAccountID(issuer).buffer));
|
|
14
|
+
}
|
|
15
|
+
function parseMPTokenIssuanceID(mptIssuanceID) {
|
|
16
|
+
if (typeof mptIssuanceID !== "string" || mptIssuanceID.length !== 48) {
|
|
17
|
+
return null;
|
|
18
|
+
}
|
|
19
|
+
const sequence = new bignumber_js_1.default(mptIssuanceID.slice(0, 8), 16).toNumber();
|
|
20
|
+
const issuer = AddressCodec.encodeAccountID(Buffer.from(mptIssuanceID.slice(8, 48), "hex"));
|
|
21
|
+
return {
|
|
22
|
+
MPTokenIssuanceID: mptIssuanceID,
|
|
23
|
+
Sequence: sequence,
|
|
24
|
+
Issuer: issuer,
|
|
25
|
+
};
|
|
26
|
+
}
|
package/lib/models/vl.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.parseVL = parseVL;
|
|
27
37
|
exports.isValidVL = isValidVL;
|
package/lib/parse/index.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.parseTransaction = exports.parseTransactionType = exports.parseOutcome = exports.Outcomes = exports.Utils = exports.Ledger = void 0;
|
|
27
37
|
exports.Ledger = __importStar(require("./ledger"));
|
|
@@ -5,16 +5,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.parseAccountOrder = parseAccountOrder;
|
|
7
7
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
+
const xrpl_1 = require("xrpl");
|
|
8
9
|
const amount_1 = __importDefault(require("./amount"));
|
|
9
10
|
const utils_1 = require("../utils");
|
|
10
11
|
const common_1 = require("../../common");
|
|
11
|
-
const flags_1 = require("../../types/flags");
|
|
12
12
|
function computeQuality(takerGets, takerPays) {
|
|
13
13
|
const quotient = new bignumber_js_1.default(takerPays.value).dividedBy(takerGets.value);
|
|
14
14
|
return quotient.precision(16, bignumber_js_1.default.ROUND_HALF_UP).toString();
|
|
15
15
|
}
|
|
16
16
|
function parseAccountOrder(address, order) {
|
|
17
|
-
const direction = (order.flags &
|
|
17
|
+
const direction = (order.flags & xrpl_1.LedgerEntry.OfferFlags.lsfSell) === 0 ? "buy" : "sell";
|
|
18
18
|
const takerGetsAmount = (0, amount_1.default)(order.taker_gets);
|
|
19
19
|
const takerPaysAmount = (0, amount_1.default)(order.taker_pays);
|
|
20
20
|
const quantity = direction === "buy" ? takerPaysAmount : takerGetsAmount;
|
|
@@ -23,7 +23,7 @@ function parseAccountOrder(address, order) {
|
|
|
23
23
|
direction: direction,
|
|
24
24
|
quantity: quantity,
|
|
25
25
|
totalPrice: totalPrice,
|
|
26
|
-
passive: (order.flags &
|
|
26
|
+
passive: (order.flags & xrpl_1.LedgerEntry.OfferFlags.lsfPassive) !== 0 || undefined,
|
|
27
27
|
expirationTime: (0, utils_1.parseTimestamp)(order.expiration),
|
|
28
28
|
});
|
|
29
29
|
const makerExchangeRate = order.quality
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormattedIssuedCurrencyAmount, Amount } from "../../types";
|
|
2
|
-
declare function parseAmount(amount: Amount): FormattedIssuedCurrencyAmount;
|
|
1
|
+
import { FormattedIssuedCurrencyAmount, FormattedIssuedMPTAmount, Amount } from "../../types";
|
|
2
|
+
declare function parseAmount(amount: Amount): FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount;
|
|
3
3
|
export default parseAmount;
|
|
@@ -9,10 +9,13 @@ function parseAmount(amount) {
|
|
|
9
9
|
value: (0, common_1.dropsToXrp)(amount),
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
if ("value" in amount && "currency" in amount && "issuer" in amount) {
|
|
13
|
+
return {
|
|
14
|
+
currency: amount.currency,
|
|
15
|
+
value: amount.value,
|
|
16
|
+
counterparty: amount.issuer,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
return amount;
|
|
17
20
|
}
|
|
18
21
|
exports.default = parseAmount;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mptokens_1 = require("../../types/mptokens");
|
|
4
|
+
const flags_1 = require("./flags");
|
|
5
|
+
function parseMPTokenAuthorizeFlags(value, options = {}) {
|
|
6
|
+
return (0, flags_1.parseFlags)(value, mptokens_1.MPTokenAuthorizeFlagsKeys, options);
|
|
7
|
+
}
|
|
8
|
+
exports.default = parseMPTokenAuthorizeFlags;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { MPTokenIssuanceCreateFlagsKeysInterface } from "../../types/mptokens";
|
|
2
|
+
declare function parseMPTokenIssuanceCreateFlags(value: number, options?: {
|
|
3
|
+
excludeFalse?: boolean;
|
|
4
|
+
}): MPTokenIssuanceCreateFlagsKeysInterface;
|
|
5
|
+
export default parseMPTokenIssuanceCreateFlags;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mptokens_1 = require("../../types/mptokens");
|
|
4
|
+
const flags_1 = require("./flags");
|
|
5
|
+
function parseMPTokenIssuanceCreateFlags(value, options = {}) {
|
|
6
|
+
return (0, flags_1.parseFlags)(value, mptokens_1.MPTokenIssuanceCreateFlagsKeys, options);
|
|
7
|
+
}
|
|
8
|
+
exports.default = parseMPTokenIssuanceCreateFlags;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const mptokens_1 = require("../../types/mptokens");
|
|
4
|
+
const flags_1 = require("./flags");
|
|
5
|
+
function parseMPTokenIssuanceSetFlags(value, options = {}) {
|
|
6
|
+
return (0, flags_1.parseFlags)(value, mptokens_1.MPTokenIssuanceSetFlagsKeys, options);
|
|
7
|
+
}
|
|
8
|
+
exports.default = parseMPTokenIssuanceSetFlags;
|
|
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.parseOrderbookOrder = parseOrderbookOrder;
|
|
7
7
|
const lodash_1 = __importDefault(require("lodash"));
|
|
8
|
+
const xrpl_1 = require("xrpl");
|
|
8
9
|
const utils_1 = require("../utils");
|
|
9
10
|
const common_1 = require("../../common");
|
|
10
|
-
const flags_1 = require("../../types/flags");
|
|
11
11
|
const amount_1 = __importDefault(require("./amount"));
|
|
12
12
|
function parseOrderbookOrder(data) {
|
|
13
|
-
const direction = (data.Flags &
|
|
13
|
+
const direction = (data.Flags & xrpl_1.LedgerEntry.OfferFlags.lsfSell) === 0 ? "buy" : "sell";
|
|
14
14
|
const takerGetsAmount = (0, amount_1.default)(data.TakerGets);
|
|
15
15
|
const takerPaysAmount = (0, amount_1.default)(data.TakerPays);
|
|
16
16
|
const quantity = direction === "buy" ? takerPaysAmount : takerGetsAmount;
|
|
@@ -19,7 +19,7 @@ function parseOrderbookOrder(data) {
|
|
|
19
19
|
direction: direction,
|
|
20
20
|
quantity: quantity,
|
|
21
21
|
totalPrice: totalPrice,
|
|
22
|
-
passive: (data.Flags &
|
|
22
|
+
passive: (data.Flags & xrpl_1.LedgerEntry.OfferFlags.lsfPassive) !== 0 || undefined,
|
|
23
23
|
expirationTime: (0, utils_1.parseTimestamp)(data.Expiration),
|
|
24
24
|
});
|
|
25
25
|
const properties = {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionMetadata } from "xrpl";
|
|
1
2
|
import { FormattedIssuedCurrency, FormattedAmount } from "../../types";
|
|
2
3
|
interface FormattedAuctionSlot {
|
|
3
4
|
account: string;
|
|
@@ -47,5 +48,5 @@ interface FormattedAmmVoteSlotChanges {
|
|
|
47
48
|
tradingFeeChange?: number;
|
|
48
49
|
voteWeightChange?: number;
|
|
49
50
|
}
|
|
50
|
-
declare function parseAmmChanges(metadata:
|
|
51
|
+
declare function parseAmmChanges(metadata: TransactionMetadata): FormattedAmmSummaryInterface | undefined;
|
|
51
52
|
export { parseAmmChanges };
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { TransactionMetadata } from "xrpl";
|
|
2
|
+
interface BalanceChangeQuantity {
|
|
3
|
+
counterparty?: string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
mpt_issuance_id?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AddressBalanceChangeQuantity {
|
|
9
|
+
address: string;
|
|
10
|
+
balance: BalanceChangeQuantity;
|
|
11
|
+
}
|
|
12
|
+
export interface BalanceChanges {
|
|
13
|
+
[key: string]: BalanceChangeQuantity[];
|
|
14
|
+
}
|
|
2
15
|
declare function parseBalanceChanges(metadata: TransactionMetadata, nativeCurrency?: string): {
|
|
3
|
-
[x: string]:
|
|
16
|
+
[x: string]: BalanceChangeQuantity[];
|
|
4
17
|
};
|
|
5
18
|
declare function parseFinalBalances(metadata: TransactionMetadata, nativeCurrency?: string): {
|
|
6
|
-
[x: string]:
|
|
19
|
+
[x: string]: BalanceChangeQuantity[];
|
|
7
20
|
};
|
|
8
21
|
export { parseBalanceChanges, parseFinalBalances };
|
|
@@ -21,16 +21,28 @@ function groupByAddress(balanceChanges) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
function parseValue(value) {
|
|
24
|
-
|
|
24
|
+
if (Array.isArray(value)) {
|
|
25
|
+
return new bignumber_js_1.default(0);
|
|
26
|
+
}
|
|
27
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
28
|
+
return new bignumber_js_1.default(value);
|
|
29
|
+
}
|
|
30
|
+
return new bignumber_js_1.default(value.value ?? value.MPTAmount ?? 0);
|
|
25
31
|
}
|
|
26
32
|
function computeBalanceChange(node) {
|
|
27
33
|
let value = null;
|
|
28
34
|
if (node.newFields.Balance) {
|
|
29
35
|
value = parseValue(node.newFields.Balance);
|
|
30
36
|
}
|
|
37
|
+
else if (node.newFields.MPTAmount) {
|
|
38
|
+
value = parseValue(node.newFields);
|
|
39
|
+
}
|
|
31
40
|
else if (node.previousFields.Balance && node.finalFields.Balance) {
|
|
32
41
|
value = parseValue(node.finalFields.Balance).minus(parseValue(node.previousFields.Balance));
|
|
33
42
|
}
|
|
43
|
+
else if (node.previousFields.MPTAmount || node.finalFields.MPTAmount) {
|
|
44
|
+
value = parseValue(node.finalFields).minus(parseValue(node.previousFields));
|
|
45
|
+
}
|
|
34
46
|
return value === null ? null : value.isZero() ? null : value;
|
|
35
47
|
}
|
|
36
48
|
function parseFinalBalance(node) {
|
|
@@ -40,6 +52,9 @@ function parseFinalBalance(node) {
|
|
|
40
52
|
else if (node.finalFields.Balance) {
|
|
41
53
|
return parseValue(node.finalFields.Balance);
|
|
42
54
|
}
|
|
55
|
+
else if (node.finalFields.MPTAmount) {
|
|
56
|
+
return parseValue(node.finalFields);
|
|
57
|
+
}
|
|
43
58
|
return null;
|
|
44
59
|
}
|
|
45
60
|
function parseXRPQuantity(node, valueParser, nativeCurrency) {
|
|
@@ -50,7 +65,6 @@ function parseXRPQuantity(node, valueParser, nativeCurrency) {
|
|
|
50
65
|
return {
|
|
51
66
|
address: node.finalFields.Account || node.newFields.Account,
|
|
52
67
|
balance: {
|
|
53
|
-
counterparty: "",
|
|
54
68
|
currency: nativeCurrency || (0, client_1.getNativeCurrency)(),
|
|
55
69
|
value: (0, common_1.dropsToXrp)(value).toString(),
|
|
56
70
|
},
|
|
@@ -83,6 +97,20 @@ function parseTrustlineQuantity(node, valueParser) {
|
|
|
83
97
|
};
|
|
84
98
|
return [result, flipTrustlinePerspective(result)];
|
|
85
99
|
}
|
|
100
|
+
function parseMPTQuantity(node, valueParser) {
|
|
101
|
+
const value = valueParser(node);
|
|
102
|
+
if (value === null) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
const fields = lodash_1.default.isEmpty(node.newFields) ? node.finalFields : node.newFields;
|
|
106
|
+
return {
|
|
107
|
+
address: fields.Account,
|
|
108
|
+
balance: {
|
|
109
|
+
value: value.toString(),
|
|
110
|
+
mpt_issuance_id: fields.MPTokenIssuanceID,
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
}
|
|
86
114
|
function parseQuantities(metadata, valueParser, nativeCurrency) {
|
|
87
115
|
const values = (0, utils_1.normalizeNodes)(metadata).map(function (node) {
|
|
88
116
|
if (node.entryType === "AccountRoot") {
|
|
@@ -91,6 +119,9 @@ function parseQuantities(metadata, valueParser, nativeCurrency) {
|
|
|
91
119
|
else if (node.entryType === "RippleState") {
|
|
92
120
|
return parseTrustlineQuantity(node, valueParser);
|
|
93
121
|
}
|
|
122
|
+
else if (node.entryType === "MPToken") {
|
|
123
|
+
return [parseMPTQuantity(node, valueParser)];
|
|
124
|
+
}
|
|
94
125
|
return [];
|
|
95
126
|
});
|
|
96
127
|
return groupByAddress(lodash_1.default.compact(lodash_1.default.flatten(values)));
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { FormattedIssuedCurrencyAmount } from "../../types";
|
|
2
|
-
declare function parseDeliveredAmount(tx: any): FormattedIssuedCurrencyAmount | undefined;
|
|
1
|
+
import { FormattedIssuedCurrencyAmount, FormattedIssuedMPTAmount } from "../../types";
|
|
2
|
+
declare function parseDeliveredAmount(tx: any): FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | undefined;
|
|
3
3
|
export { parseDeliveredAmount };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TransactionMetadata } from "xrpl";
|
|
1
2
|
interface FormattedDIDSummaryInterface {
|
|
2
3
|
status?: "created" | "modified" | "deleted";
|
|
3
4
|
didID?: string;
|
|
@@ -9,5 +10,5 @@ interface FormattedDIDSummaryInterface {
|
|
|
9
10
|
dataChanges?: string;
|
|
10
11
|
didDocumentChanges?: string;
|
|
11
12
|
}
|
|
12
|
-
declare function parseDIDChanges(metadata:
|
|
13
|
+
declare function parseDIDChanges(metadata: TransactionMetadata): FormattedDIDSummaryInterface | undefined;
|
|
13
14
|
export { parseDIDChanges };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormattedSourceAddress, FormattedDestinationAddress } from "../../types/account";
|
|
2
2
|
interface FormattedEscrowSummaryInterface {
|
|
3
|
-
status?:
|
|
3
|
+
status?: "created" | "cancelled" | "executed" | "deleted";
|
|
4
4
|
escrowIndex?: number;
|
|
5
5
|
escrowSequence?: number;
|
|
6
6
|
amount?: string;
|
|
@@ -15,3 +15,5 @@ export { parseAmmChanges } from "./amm_changes";
|
|
|
15
15
|
export { parseDIDChanges } from "./did_changes";
|
|
16
16
|
export { parseOracleChanges } from "./oracle_changes";
|
|
17
17
|
export { parseDeliveredAmount } from "./delivered_amount";
|
|
18
|
+
export { parseMPTokenIssuanceChanges } from "./mptoken_issuance_changes";
|
|
19
|
+
export { parseMPTokenChanges } from "./mptoken_changes";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.parseDeliveredAmount = exports.parseOracleChanges = exports.parseDIDChanges = exports.parseAmmChanges = 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;
|
|
3
|
+
exports.parseMPTokenChanges = exports.parseMPTokenIssuanceChanges = exports.parseDeliveredAmount = exports.parseOracleChanges = exports.parseDIDChanges = exports.parseAmmChanges = 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");
|
|
@@ -35,3 +35,7 @@ var oracle_changes_1 = require("./oracle_changes");
|
|
|
35
35
|
Object.defineProperty(exports, "parseOracleChanges", { enumerable: true, get: function () { return oracle_changes_1.parseOracleChanges; } });
|
|
36
36
|
var delivered_amount_1 = require("./delivered_amount");
|
|
37
37
|
Object.defineProperty(exports, "parseDeliveredAmount", { enumerable: true, get: function () { return delivered_amount_1.parseDeliveredAmount; } });
|
|
38
|
+
var mptoken_issuance_changes_1 = require("./mptoken_issuance_changes");
|
|
39
|
+
Object.defineProperty(exports, "parseMPTokenIssuanceChanges", { enumerable: true, get: function () { return mptoken_issuance_changes_1.parseMPTokenIssuanceChanges; } });
|
|
40
|
+
var mptoken_changes_1 = require("./mptoken_changes");
|
|
41
|
+
Object.defineProperty(exports, "parseMPTokenChanges", { enumerable: true, get: function () { return mptoken_changes_1.parseMPTokenChanges; } });
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
import { TransactionMetadata } from "xrpl";
|
|
2
|
+
interface LockedBalanceChangeQuantity {
|
|
3
|
+
counterparty: string;
|
|
4
|
+
currency: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AddressLockedBalanceChangeQuantity {
|
|
8
|
+
address: string;
|
|
9
|
+
lockedBalance: LockedBalanceChangeQuantity;
|
|
10
|
+
}
|
|
11
|
+
export interface LockedBalanceChanges {
|
|
12
|
+
[key: string]: LockedBalanceChangeQuantity[];
|
|
13
|
+
}
|
|
2
14
|
declare function parseLockedBalanceChanges(metadata: TransactionMetadata): {
|
|
3
|
-
[x: string]:
|
|
15
|
+
[x: string]: LockedBalanceChangeQuantity[];
|
|
4
16
|
};
|
|
5
17
|
declare function parseFinalLockedBalances(metadata: TransactionMetadata): {
|
|
6
|
-
[x: string]:
|
|
18
|
+
[x: string]: LockedBalanceChangeQuantity[];
|
|
7
19
|
};
|
|
8
20
|
export { parseLockedBalanceChanges, parseFinalLockedBalances };
|