@bithomp/xrpl-api 3.2.17 → 3.2.18
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/models/index.d.ts
CHANGED
|
@@ -30,4 +30,5 @@ import parseNFTokenCancelOffer from "../parse/specification/nftoken-cancel-offer
|
|
|
30
30
|
import parseNFTokenCreateOffer from "../parse/specification/nftoken-create-offer";
|
|
31
31
|
import parseURITokenFlags from "../parse/ledger/uritoken-flags";
|
|
32
32
|
import parseTrustlineFlags from "../parse/ledger/trustline-flags";
|
|
33
|
-
|
|
33
|
+
import parseOfferFlags from "../parse/ledger/offer-flags";
|
|
34
|
+
export { parseNFTokenMint, parseNFTokenBurn, parseNFTokenFlags, parseNFTOfferFlags, parseNFTokenAcceptOffer, parseNFTokenCancelOffer, parseNFTokenCreateOffer, parseURITokenFlags, parseTrustlineFlags, parseOfferFlags, };
|
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.parseTrustlineFlags = 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;
|
|
20
|
+
exports.parseOfferFlags = exports.parseTrustlineFlags = 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);
|
|
@@ -71,3 +71,5 @@ const uritoken_flags_1 = __importDefault(require("../parse/ledger/uritoken-flags
|
|
|
71
71
|
exports.parseURITokenFlags = uritoken_flags_1.default;
|
|
72
72
|
const trustline_flags_1 = __importDefault(require("../parse/ledger/trustline-flags"));
|
|
73
73
|
exports.parseTrustlineFlags = trustline_flags_1.default;
|
|
74
|
+
const offer_flags_1 = __importDefault(require("../parse/ledger/offer-flags"));
|
|
75
|
+
exports.parseOfferFlags = offer_flags_1.default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const offers_1 = require("../../types/offers");
|
|
4
|
+
const flags_1 = require("./flags");
|
|
5
|
+
function parseOfferFlags(value, options = {}) {
|
|
6
|
+
return (0, flags_1.parseFlags)(value, offers_1.OfferFlagsKeys, options);
|
|
7
|
+
}
|
|
8
|
+
exports.default = parseOfferFlags;
|
package/lib/types/offers.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
import { LedgerEntry } from "xrpl";
|
|
1
2
|
import { FormattedBaseSpecification } from "./specification";
|
|
2
3
|
import { FormattedIssuedCurrencyAmount } from "./amounts";
|
|
4
|
+
export declare const OfferFlagsKeys: {
|
|
5
|
+
passive: LedgerEntry.OfferFlags;
|
|
6
|
+
sell: LedgerEntry.OfferFlags;
|
|
7
|
+
};
|
|
8
|
+
export interface OfferFlagsKeysInterface {
|
|
9
|
+
passive: boolean;
|
|
10
|
+
sell: boolean;
|
|
11
|
+
}
|
|
3
12
|
export type FormattedOfferCancelSpecification = {
|
|
4
13
|
orderSequence: number;
|
|
5
14
|
} & FormattedBaseSpecification;
|
package/lib/types/offers.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OfferFlagsKeys = void 0;
|
|
4
|
+
const xrpl_1 = require("xrpl");
|
|
5
|
+
const { OfferFlags } = xrpl_1.LedgerEntry;
|
|
6
|
+
exports.OfferFlagsKeys = {
|
|
7
|
+
passive: OfferFlags.lsfPassive,
|
|
8
|
+
sell: OfferFlags.lsfSell,
|
|
9
|
+
};
|