@bithomp/xrpl-api 3.3.10 → 3.4.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/ledger/account_tx.js +11 -0
- package/lib/models/transaction.d.ts +1 -0
- package/lib/models/transaction.js +15 -0
- package/lib/models/transactions/SetRemarks.d.ts +3 -0
- package/lib/models/transactions/SetRemarks.js +2 -0
- package/lib/parse/ledger/delegate.d.ts +2 -0
- package/lib/parse/ledger/delegate.js +11 -0
- package/lib/parse/ledger/index.d.ts +2 -1
- package/lib/parse/ledger/index.js +4 -1
- package/lib/parse/ledger/permissions.d.ts +2 -0
- package/lib/parse/ledger/permissions.js +9 -0
- package/lib/parse/ledger/remark-flags.d.ts +5 -0
- package/lib/parse/ledger/remark-flags.js +8 -0
- package/lib/parse/ledger/remarks.d.ts +3 -0
- package/lib/parse/ledger/remarks.js +47 -0
- package/lib/parse/outcome/delegate_changes.d.ts +12 -0
- package/lib/parse/outcome/delegate_changes.js +59 -0
- package/lib/parse/outcome/index.d.ts +2 -0
- package/lib/parse/outcome/index.js +5 -1
- package/lib/parse/outcome/oracle_changes.d.ts +3 -3
- package/lib/parse/outcome/remarks_changes.d.ts +14 -0
- package/lib/parse/outcome/remarks_changes.js +68 -0
- package/lib/parse/outcome.js +22 -0
- package/lib/parse/specification/account-delete.d.ts +2 -1
- package/lib/parse/specification/account-delete.js +2 -0
- package/lib/parse/specification/amm-bid.d.ts +2 -1
- package/lib/parse/specification/amm-bid.js +2 -0
- package/lib/parse/specification/amm-clawback.d.ts +2 -1
- package/lib/parse/specification/amm-clawback.js +2 -0
- package/lib/parse/specification/amm-create.d.ts +2 -1
- package/lib/parse/specification/amm-create.js +2 -0
- package/lib/parse/specification/amm-delete.d.ts +2 -1
- package/lib/parse/specification/amm-delete.js +2 -0
- package/lib/parse/specification/amm-deposit.d.ts +2 -1
- package/lib/parse/specification/amm-deposit.js +2 -0
- package/lib/parse/specification/amm-vote.d.ts +2 -1
- package/lib/parse/specification/amm-vote.js +2 -0
- package/lib/parse/specification/amm-withdraw.d.ts +2 -1
- package/lib/parse/specification/amm-withdraw.js +2 -0
- package/lib/parse/specification/check-cancel.d.ts +2 -1
- package/lib/parse/specification/check-cancel.js +2 -0
- package/lib/parse/specification/check-cash.d.ts +2 -1
- package/lib/parse/specification/check-cash.js +2 -0
- package/lib/parse/specification/check-create.d.ts +2 -1
- package/lib/parse/specification/check-create.js +2 -0
- package/lib/parse/specification/clawback.d.ts +2 -1
- package/lib/parse/specification/clawback.js +2 -0
- package/lib/parse/specification/delegate-set.d.ts +4 -0
- package/lib/parse/specification/delegate-set.js +58 -0
- package/lib/parse/specification/deposit-preauth.d.ts +2 -1
- package/lib/parse/specification/deposit-preauth.js +2 -0
- package/lib/parse/specification/did-delete.d.ts +2 -1
- package/lib/parse/specification/did-delete.js +2 -0
- package/lib/parse/specification/did-set.d.ts +2 -1
- package/lib/parse/specification/did-set.js +2 -0
- package/lib/parse/specification/escrow-cancel.d.ts +2 -1
- package/lib/parse/specification/escrow-cancel.js +2 -0
- package/lib/parse/specification/escrow-create.d.ts +2 -1
- package/lib/parse/specification/escrow-create.js +2 -0
- package/lib/parse/specification/escrow-finish.d.ts +2 -1
- package/lib/parse/specification/escrow-finish.js +2 -0
- package/lib/parse/specification/mptoken-authorize.d.ts +2 -1
- package/lib/parse/specification/mptoken-authorize.js +2 -0
- package/lib/parse/specification/mptoken-issuance-create.d.ts +2 -1
- package/lib/parse/specification/mptoken-issuance-create.js +2 -0
- package/lib/parse/specification/mptoken-issuance-destroy.d.ts +2 -1
- package/lib/parse/specification/mptoken-issuance-destroy.js +2 -0
- package/lib/parse/specification/mptoken-issuance-set.d.ts +2 -1
- package/lib/parse/specification/mptoken-issuance-set.js +2 -0
- package/lib/parse/specification/nftoken-accept-offer.d.ts +2 -1
- package/lib/parse/specification/nftoken-accept-offer.js +2 -0
- package/lib/parse/specification/nftoken-burn.d.ts +2 -1
- package/lib/parse/specification/nftoken-burn.js +2 -0
- package/lib/parse/specification/nftoken-cancel-offer.d.ts +2 -1
- package/lib/parse/specification/nftoken-cancel-offer.js +2 -0
- package/lib/parse/specification/nftoken-create-offer.d.ts +2 -1
- package/lib/parse/specification/nftoken-create-offer.js +2 -0
- package/lib/parse/specification/nftoken-mint.d.ts +2 -1
- package/lib/parse/specification/nftoken-mint.js +2 -0
- package/lib/parse/specification/nftoken-modify.d.ts +2 -1
- package/lib/parse/specification/nftoken-modify.js +2 -0
- package/lib/parse/specification/offer-cancel.d.ts +2 -1
- package/lib/parse/specification/offer-cancel.js +2 -0
- package/lib/parse/specification/offer-create.d.ts +3 -2
- package/lib/parse/specification/offer-create.js +2 -0
- package/lib/parse/specification/oracle-delete.d.ts +2 -1
- package/lib/parse/specification/oracle-delete.js +2 -0
- package/lib/parse/specification/oracle-set.d.ts +2 -1
- package/lib/parse/specification/oracle-set.js +2 -0
- package/lib/parse/specification/payment-channel-claim.d.ts +2 -1
- package/lib/parse/specification/payment-channel-claim.js +2 -2
- package/lib/parse/specification/payment-channel-create.d.ts +2 -1
- package/lib/parse/specification/payment-channel-create.js +2 -0
- package/lib/parse/specification/payment-channel-fund.d.ts +2 -1
- package/lib/parse/specification/payment-channel-fund.js +2 -0
- package/lib/parse/specification/payment.d.ts +2 -1
- package/lib/parse/specification/payment.js +2 -0
- package/lib/parse/specification/set-remarks.d.ts +3 -0
- package/lib/parse/specification/set-remarks.js +56 -0
- package/lib/parse/specification/settings.js +2 -0
- package/lib/parse/specification/ticket-create.d.ts +2 -1
- package/lib/parse/specification/ticket-create.js +2 -0
- package/lib/parse/specification/trust-set.d.ts +4 -0
- package/lib/parse/specification/trust-set.js +74 -0
- package/lib/parse/specification/trustline.js +2 -0
- package/lib/parse/specification/unrecognized.d.ts +2 -1
- package/lib/parse/specification/unrecognized.js +2 -0
- package/lib/parse/specification/uritoken-burn.d.ts +2 -2
- package/lib/parse/specification/uritoken-burn.js +2 -2
- package/lib/parse/specification/uritoken-buy.d.ts +2 -2
- package/lib/parse/specification/uritoken-buy.js +2 -2
- package/lib/parse/specification/uritoken-cancel-sell-offer.d.ts +2 -2
- package/lib/parse/specification/uritoken-cancel-sell-offer.js +2 -2
- package/lib/parse/specification/uritoken-create-sell-offer.d.ts +2 -2
- package/lib/parse/specification/uritoken-create-sell-offer.js +2 -2
- package/lib/parse/specification/uritoken-mint.d.ts +2 -2
- package/lib/parse/specification/uritoken-mint.js +2 -2
- package/lib/parse/transaction.d.ts +3 -1
- package/lib/parse/transaction.js +8 -2
- package/lib/types/checks.d.ts +4 -4
- package/lib/types/delegate.d.ts +5 -0
- package/lib/types/delegate.js +2 -0
- package/lib/types/deposits.d.ts +2 -2
- package/lib/types/did.d.ts +3 -3
- package/lib/types/escrows.d.ts +3 -3
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +2 -1
- package/lib/types/mptokens.d.ts +1 -1
- package/lib/types/nftokens.d.ts +3 -3
- package/lib/types/oracle.d.ts +4 -12
- package/lib/types/payment_channels.d.ts +2 -4
- package/lib/types/remarks.d.ts +24 -0
- package/lib/types/remarks.js +6 -0
- package/lib/types/specification.d.ts +1 -0
- package/package.json +6 -6
|
@@ -38,6 +38,7 @@ 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
|
const oracle_changes_1 = require("../outcome/oracle_changes");
|
|
43
44
|
function parseDidSet(tx) {
|
|
@@ -45,6 +46,7 @@ function parseDidSet(tx) {
|
|
|
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
|
oracleDocumentID: tx.OracleDocumentID,
|
|
50
52
|
provider: tx.Provider,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaymentChannelClaim } from "xrpl";
|
|
1
2
|
import { FormattedPaymentChannelClaimSpecification } from "../../types/payment_channels";
|
|
2
|
-
declare function parsePaymentChannelClaim(tx:
|
|
3
|
+
declare function parsePaymentChannelClaim(tx: PaymentChannelClaim): FormattedPaymentChannelClaimSpecification;
|
|
3
4
|
export default parsePaymentChannelClaim;
|
|
@@ -44,18 +44,18 @@ 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
|
function parsePaymentChannelClaim(tx) {
|
|
49
50
|
assert.ok(tx.TransactionType === "PaymentChannelClaim");
|
|
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
|
channel: tx.Channel,
|
|
55
57
|
balance: (0, amount_1.default)(tx.Balance),
|
|
56
58
|
amount: (0, amount_1.default)(tx.Amount),
|
|
57
|
-
signature: tx.Signature,
|
|
58
|
-
publicKey: tx.PublicKey,
|
|
59
59
|
renew: Boolean(tx.Flags & xrpl_1.PaymentChannelClaimFlags.tfRenew) || undefined,
|
|
60
60
|
close: Boolean(tx.Flags & xrpl_1.PaymentChannelClaimFlags.tfClose) || undefined,
|
|
61
61
|
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaymentChannelCreate } from "xrpl";
|
|
1
2
|
import { FormattedPaymentChannelCreateSpecification } from "../../types/payment_channels";
|
|
2
|
-
declare function parsePaymentChannelCreate(tx:
|
|
3
|
+
declare function parsePaymentChannelCreate(tx: PaymentChannelCreate): FormattedPaymentChannelCreateSpecification;
|
|
3
4
|
export default parsePaymentChannelCreate;
|
|
@@ -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 parsePaymentChannelCreate(tx) {
|
|
@@ -51,6 +52,7 @@ function parsePaymentChannelCreate(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
|
amount: (0, amount_1.default)(tx.Amount),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaymentChannelFund } from "xrpl";
|
|
1
2
|
import { FormattedPaymentChannelFundSpecification } from "../../types/payment_channels";
|
|
2
|
-
declare function parsePaymentChannelFund(tx:
|
|
3
|
+
declare function parsePaymentChannelFund(tx: PaymentChannelFund): FormattedPaymentChannelFundSpecification;
|
|
3
4
|
export default parsePaymentChannelFund;
|
|
@@ -44,12 +44,14 @@ 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
|
function parsePaymentChannelFund(tx) {
|
|
49
50
|
assert.ok(tx.TransactionType === "PaymentChannelFund");
|
|
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
|
channel: tx.Channel,
|
|
55
57
|
amount: (0, amount_1.default)(tx.Amount),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Payment } from "xrpl";
|
|
1
2
|
import { FormattedPaymentSpecification } from "../../types/payments";
|
|
2
|
-
declare function parsePayment(tx:
|
|
3
|
+
declare function parsePayment(tx: Payment): FormattedPaymentSpecification;
|
|
3
4
|
export default parsePayment;
|
|
@@ -41,6 +41,7 @@ const emit_details_1 = require("../ledger/emit_details");
|
|
|
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 destination_1 = require("../ledger/destination");
|
|
46
47
|
function isNoDirectRipple(tx) {
|
|
@@ -56,6 +57,7 @@ function parsePayment(tx) {
|
|
|
56
57
|
destination: (0, destination_1.parseDestination)(tx),
|
|
57
58
|
signers: (0, signers_1.parseSigners)(tx),
|
|
58
59
|
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
60
|
+
delegate: (0, delegate_1.parseDelegate)(tx),
|
|
59
61
|
invoiceID: tx.InvoiceID,
|
|
60
62
|
paths: tx.Paths ? JSON.stringify(tx.Paths) : undefined,
|
|
61
63
|
allowPartialPayment: (0, utils_1.isPartialPayment)(tx) || undefined,
|
|
@@ -0,0 +1,56 @@
|
|
|
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 source_1 = require("../ledger/source");
|
|
43
|
+
const remarks_1 = require("../ledger/remarks");
|
|
44
|
+
function parseSetRemarks(tx) {
|
|
45
|
+
assert.ok(tx.TransactionType === "SetRemarks");
|
|
46
|
+
return (0, common_1.removeUndefined)({
|
|
47
|
+
objectID: tx.ObjectID,
|
|
48
|
+
remarks: (0, remarks_1.parseRemarks)(tx.Remarks),
|
|
49
|
+
source: (0, source_1.parseSource)(tx),
|
|
50
|
+
signers: (0, signers_1.parseSigners)(tx),
|
|
51
|
+
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
52
|
+
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
53
|
+
memos: (0, memos_1.parseMemos)(tx),
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
exports.default = parseSetRemarks;
|
|
@@ -45,6 +45,7 @@ const emit_details_1 = require("../ledger/emit_details");
|
|
|
45
45
|
const memos_1 = require("../ledger/memos");
|
|
46
46
|
const signers_1 = require("../ledger/signers");
|
|
47
47
|
const regular_key_1 = require("../ledger/regular-key");
|
|
48
|
+
const delegate_1 = require("../ledger/delegate");
|
|
48
49
|
const source_1 = require("../ledger/source");
|
|
49
50
|
function getAccountRootModifiedNode(tx) {
|
|
50
51
|
const modifiedNodes = tx.meta.AffectedNodes.filter((node) => node.ModifiedNode?.LedgerEntryType === "AccountRoot");
|
|
@@ -90,6 +91,7 @@ function parseSettings(tx) {
|
|
|
90
91
|
source: (0, source_1.parseSource)(tx),
|
|
91
92
|
signers: (0, signers_1.parseSigners)(tx),
|
|
92
93
|
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
94
|
+
delegate: (0, delegate_1.parseDelegate)(tx),
|
|
93
95
|
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
94
96
|
memos: (0, memos_1.parseMemos)(tx),
|
|
95
97
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TicketCreate } from "xrpl";
|
|
1
2
|
import { FormattedTicketCreateSpecification } from "../../types/tickets";
|
|
2
|
-
declare function parseTicketCreate(tx:
|
|
3
|
+
declare function parseTicketCreate(tx: TicketCreate): FormattedTicketCreateSpecification;
|
|
3
4
|
export default parseTicketCreate;
|
|
@@ -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 parseTicketCreate(tx) {
|
|
44
45
|
assert.ok(tx.TransactionType === "TicketCreate");
|
|
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
|
ticketCount: tx.TicketCount,
|
|
50
52
|
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
@@ -0,0 +1,74 @@
|
|
|
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 xrpl_1 = require("xrpl");
|
|
38
|
+
const utils_1 = require("../utils");
|
|
39
|
+
const common_1 = require("../../common");
|
|
40
|
+
const emit_details_1 = require("../ledger/emit_details");
|
|
41
|
+
const memos_1 = require("../ledger/memos");
|
|
42
|
+
const signers_1 = require("../ledger/signers");
|
|
43
|
+
const regular_key_1 = require("../ledger/regular-key");
|
|
44
|
+
const delegate_1 = require("../ledger/delegate");
|
|
45
|
+
const source_1 = require("../ledger/source");
|
|
46
|
+
function parseFlag(flagsValue, trueValue, falseValue) {
|
|
47
|
+
if (flagsValue & trueValue) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
if (flagsValue & falseValue) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
function parseTrustSet(tx) {
|
|
56
|
+
assert.ok(tx.TransactionType === "TrustSet");
|
|
57
|
+
return (0, common_1.removeUndefined)({
|
|
58
|
+
signers: (0, signers_1.parseSigners)(tx),
|
|
59
|
+
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
60
|
+
delegate: (0, delegate_1.parseDelegate)(tx),
|
|
61
|
+
source: (0, source_1.parseSource)(tx),
|
|
62
|
+
limit: tx.LimitAmount.value,
|
|
63
|
+
currency: tx.LimitAmount.currency,
|
|
64
|
+
counterparty: tx.LimitAmount.issuer,
|
|
65
|
+
qualityIn: (0, utils_1.parseQuality)(tx.QualityIn),
|
|
66
|
+
qualityOut: (0, utils_1.parseQuality)(tx.QualityOut),
|
|
67
|
+
ripplingDisabled: parseFlag(tx.Flags, xrpl_1.TrustSetFlags.tfSetNoRipple, xrpl_1.TrustSetFlags.tfClearNoRipple),
|
|
68
|
+
frozen: parseFlag(tx.Flags, xrpl_1.TrustSetFlags.tfSetFreeze, xrpl_1.TrustSetFlags.tfClearFreeze),
|
|
69
|
+
authorized: parseFlag(tx.Flags, xrpl_1.TrustSetFlags.tfSetfAuth, 0),
|
|
70
|
+
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
71
|
+
memos: (0, memos_1.parseMemos)(tx),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
exports.default = parseTrustSet;
|
|
@@ -41,6 +41,7 @@ const emit_details_1 = require("../ledger/emit_details");
|
|
|
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
|
function parseFlag(flagsValue, trueValue, falseValue) {
|
|
46
47
|
if (flagsValue & trueValue) {
|
|
@@ -56,6 +57,7 @@ function parseTrustline(tx) {
|
|
|
56
57
|
return (0, common_1.removeUndefined)({
|
|
57
58
|
signers: (0, signers_1.parseSigners)(tx),
|
|
58
59
|
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
60
|
+
delegate: (0, delegate_1.parseDelegate)(tx),
|
|
59
61
|
source: (0, source_1.parseSource)(tx),
|
|
60
62
|
limit: tx.LimitAmount.value,
|
|
61
63
|
currency: tx.LimitAmount.currency,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BaseTransaction } from "xrpl";
|
|
1
2
|
import { FormattedUnrecognizedParserSpecification } from "../../types/unrecognized";
|
|
2
|
-
declare function unrecognizedParser(tx:
|
|
3
|
+
declare function unrecognizedParser(tx: BaseTransaction): FormattedUnrecognizedParserSpecification;
|
|
3
4
|
export default unrecognizedParser;
|
|
@@ -5,6 +5,7 @@ const emit_details_1 = require("../ledger/emit_details");
|
|
|
5
5
|
const memos_1 = require("../ledger/memos");
|
|
6
6
|
const signers_1 = require("../ledger/signers");
|
|
7
7
|
const regular_key_1 = require("../ledger/regular-key");
|
|
8
|
+
const delegate_1 = require("../ledger/delegate");
|
|
8
9
|
const source_1 = require("../ledger/source");
|
|
9
10
|
function unrecognizedParser(tx) {
|
|
10
11
|
return (0, common_1.removeUndefined)({
|
|
@@ -13,6 +14,7 @@ function unrecognizedParser(tx) {
|
|
|
13
14
|
source: (0, source_1.parseSource)(tx),
|
|
14
15
|
signers: (0, signers_1.parseSigners)(tx),
|
|
15
16
|
signer: (0, regular_key_1.parseSignerRegularKey)(tx),
|
|
17
|
+
delegate: (0, delegate_1.parseDelegate)(tx),
|
|
16
18
|
emittedDetails: (0, emit_details_1.parseEmittedDetails)(tx),
|
|
17
19
|
memos: (0, memos_1.parseMemos)(tx),
|
|
18
20
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormattedURITokenBurnSpecification } from "../../types/uritokens";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function parseURITokenBurn(tx: any): FormattedURITokenBurnSpecification;
|
|
3
|
+
export default parseURITokenBurn;
|
|
@@ -40,7 +40,7 @@ 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
42
|
const source_1 = require("../ledger/source");
|
|
43
|
-
function
|
|
43
|
+
function parseURITokenBurn(tx) {
|
|
44
44
|
assert.ok(tx.TransactionType === "URITokenBurn");
|
|
45
45
|
return (0, common_1.removeUndefined)({
|
|
46
46
|
uritokenID: tx.URITokenID,
|
|
@@ -51,4 +51,4 @@ function parseNFTokenBurn(tx) {
|
|
|
51
51
|
memos: (0, memos_1.parseMemos)(tx),
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
exports.default =
|
|
54
|
+
exports.default = parseURITokenBurn;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormattedURITokenBuySpecification } from "../../types/uritokens";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function parseURITokenBuy(tx: any): FormattedURITokenBuySpecification;
|
|
3
|
+
export default parseURITokenBuy;
|
|
@@ -40,7 +40,7 @@ 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
42
|
const source_1 = require("../ledger/source");
|
|
43
|
-
function
|
|
43
|
+
function parseURITokenBuy(tx) {
|
|
44
44
|
assert.ok(tx.TransactionType === "URITokenBuy");
|
|
45
45
|
return (0, common_1.removeUndefined)({
|
|
46
46
|
uritokenID: tx.URITokenID,
|
|
@@ -52,4 +52,4 @@ function parseNFTokenBurn(tx) {
|
|
|
52
52
|
memos: (0, memos_1.parseMemos)(tx),
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
exports.default =
|
|
55
|
+
exports.default = parseURITokenBuy;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormattedURITokenCancelSellOfferSpecification } from "../../types/uritokens";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function parseURITokenCancelSellOffer(tx: any): FormattedURITokenCancelSellOfferSpecification;
|
|
3
|
+
export default parseURITokenCancelSellOffer;
|
|
@@ -40,7 +40,7 @@ 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
42
|
const source_1 = require("../ledger/source");
|
|
43
|
-
function
|
|
43
|
+
function parseURITokenCancelSellOffer(tx) {
|
|
44
44
|
assert.ok(tx.TransactionType === "URITokenCancelSellOffer");
|
|
45
45
|
return (0, common_1.removeUndefined)({
|
|
46
46
|
uritokenID: tx.URITokenID,
|
|
@@ -51,4 +51,4 @@ function parseNFTokenBurn(tx) {
|
|
|
51
51
|
memos: (0, memos_1.parseMemos)(tx),
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
exports.default =
|
|
54
|
+
exports.default = parseURITokenCancelSellOffer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormattedURITokenCreateSellOfferSpecification } from "../../types/uritokens";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function parseURITokenCreateSellOffer(tx: any): FormattedURITokenCreateSellOfferSpecification;
|
|
3
|
+
export default parseURITokenCreateSellOffer;
|
|
@@ -41,7 +41,7 @@ const signers_1 = require("../ledger/signers");
|
|
|
41
41
|
const regular_key_1 = require("../ledger/regular-key");
|
|
42
42
|
const source_1 = require("../ledger/source");
|
|
43
43
|
const destination_1 = require("../ledger/destination");
|
|
44
|
-
function
|
|
44
|
+
function parseURITokenCreateSellOffer(tx) {
|
|
45
45
|
assert.ok(tx.TransactionType === "URITokenCreateSellOffer");
|
|
46
46
|
return (0, common_1.removeUndefined)({
|
|
47
47
|
uritokenID: tx.URITokenID,
|
|
@@ -54,4 +54,4 @@ function parseNFTokenBurn(tx) {
|
|
|
54
54
|
memos: (0, memos_1.parseMemos)(tx),
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
exports.default =
|
|
57
|
+
exports.default = parseURITokenCreateSellOffer;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormattedURITokenMintSpecification } from "../../types/uritokens";
|
|
2
|
-
declare function
|
|
3
|
-
export default
|
|
2
|
+
declare function parseURITokenMint(tx: any): FormattedURITokenMintSpecification;
|
|
3
|
+
export default parseURITokenMint;
|
|
@@ -45,7 +45,7 @@ const signers_1 = require("../ledger/signers");
|
|
|
45
45
|
const regular_key_1 = require("../ledger/regular-key");
|
|
46
46
|
const source_1 = require("../ledger/source");
|
|
47
47
|
const destination_1 = require("../ledger/destination");
|
|
48
|
-
function
|
|
48
|
+
function parseURITokenMint(tx) {
|
|
49
49
|
assert.ok(tx.TransactionType === "URITokenMint");
|
|
50
50
|
return (0, common_1.removeUndefined)({
|
|
51
51
|
uri: tx.URI,
|
|
@@ -60,4 +60,4 @@ function parseNFTokenMint(tx) {
|
|
|
60
60
|
memos: (0, memos_1.parseMemos)(tx),
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
exports.default =
|
|
63
|
+
exports.default = parseURITokenMint;
|
|
@@ -22,11 +22,13 @@ import { FormattedAmmBidSpecification, FormattedAmmCreateSpecification, Formatte
|
|
|
22
22
|
import { FormattedDIDSetSpecification, FormattedDIDDeleteSpecification } from "../types/did";
|
|
23
23
|
import { FormattedOracleSetSpecification, FormattedOracleDeleteSpecification } from "../types/oracle";
|
|
24
24
|
import { FormattedMPTokenIssuanceCreateSpecification, FormattedMPTokenAuthorizeSpecification, FormattedMPTokenIssuanceSetSpecification, FormattedMPTokenIssuanceDestroySpecification } from "../types/mptokens";
|
|
25
|
+
import { FormattedDelegateSetSpecification } from "../types/delegate";
|
|
26
|
+
import { FormattedSetRemarksSpecification } from "../types/remarks";
|
|
25
27
|
import { FormattedGenesisMintSpecification } from "../types/genesis_mint";
|
|
26
28
|
import { FormattedAmendmentSpecification } from "../types/amendments";
|
|
27
29
|
import { FormattedFeeUpdateSpecification } from "../types/fees";
|
|
28
30
|
declare function parseTransactionType(type: string): string;
|
|
29
|
-
export type FormattedSpecification = FormattedUnrecognizedParserSpecification | FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenModifySpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedUNLReportSpecification | FormattedRemitsSpecification | FormattedClawbackSpecification | FormattedAmmBidSpecification | FormattedAmmCreateSpecification | FormattedAmmDeleteSpecification | FormattedAmmDepositSpecification | FormattedAmmWithdrawSpecification | FormattedAmmVoteSpecification | FormattedAmmClawbackSpecification | FormattedGenesisMintSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification | FormattedDIDSetSpecification | FormattedDIDDeleteSpecification | FormattedOracleSetSpecification | FormattedOracleDeleteSpecification | FormattedMPTokenIssuanceCreateSpecification | FormattedMPTokenAuthorizeSpecification | FormattedMPTokenIssuanceSetSpecification | FormattedMPTokenIssuanceDestroySpecification;
|
|
31
|
+
export type FormattedSpecification = FormattedUnrecognizedParserSpecification | FormattedSettingsSpecification | FormattedAccountDeleteSpecification | FormattedCheckCancelSpecification | FormattedCheckCashSpecification | FormattedCheckCreateSpecification | FormattedDepositPreauthSpecification | FormattedEscrowCancelSpecification | FormattedEscrowCreateSpecification | FormattedEscrowFinishSpecification | FormattedOfferCancelSpecification | FormattedOfferCreateSpecification | FormattedPaymentSpecification | FormattedPaymentChannelClaimSpecification | FormattedPaymentChannelCreateSpecification | FormattedPaymentChannelFundSpecification | FormattedTicketCreateSpecification | FormattedTrustlineSpecification | FormattedNFTokenBurnSpecification | FormattedNFTokenMintSpecification | FormattedNFTokenModifySpecification | FormattedNFTokenCancelOfferSpecification | FormattedNFTokenCreateOfferSpecification | FormattedNFTokenAcceptOfferSpecification | FormattedURITokenBurnSpecification | FormattedURITokenBuySpecification | FormattedURITokenCreateSellOfferSpecification | FormattedURITokenCancelSellOfferSpecification | FormattedURITokenMintSpecification | FormattedImportSpecification | FormattedInvokeSpecification | FormattedUNLReportSpecification | FormattedRemitsSpecification | FormattedClawbackSpecification | FormattedAmmBidSpecification | FormattedAmmCreateSpecification | FormattedAmmDeleteSpecification | FormattedAmmDepositSpecification | FormattedAmmWithdrawSpecification | FormattedAmmVoteSpecification | FormattedAmmClawbackSpecification | FormattedGenesisMintSpecification | FormattedAmendmentSpecification | FormattedFeeUpdateSpecification | FormattedDIDSetSpecification | FormattedDIDDeleteSpecification | FormattedOracleSetSpecification | FormattedOracleDeleteSpecification | FormattedMPTokenIssuanceCreateSpecification | FormattedMPTokenAuthorizeSpecification | FormattedMPTokenIssuanceSetSpecification | FormattedMPTokenIssuanceDestroySpecification | FormattedDelegateSetSpecification | FormattedSetRemarksSpecification;
|
|
30
32
|
export interface FormattedTransaction {
|
|
31
33
|
type: string;
|
|
32
34
|
address: string;
|
package/lib/parse/transaction.js
CHANGED
|
@@ -25,7 +25,7 @@ const payment_channel_claim_1 = __importDefault(require("./specification/payment
|
|
|
25
25
|
const payment_channel_create_1 = __importDefault(require("./specification/payment-channel-create"));
|
|
26
26
|
const payment_channel_fund_1 = __importDefault(require("./specification/payment-channel-fund"));
|
|
27
27
|
const ticket_create_1 = __importDefault(require("./specification/ticket-create"));
|
|
28
|
-
const
|
|
28
|
+
const trust_set_1 = __importDefault(require("./specification/trust-set"));
|
|
29
29
|
const nftoken_burn_1 = __importDefault(require("./specification/nftoken-burn"));
|
|
30
30
|
const nftoken_mint_1 = __importDefault(require("./specification/nftoken-mint"));
|
|
31
31
|
const nftoken_modify_1 = __importDefault(require("./specification/nftoken-modify"));
|
|
@@ -57,6 +57,8 @@ const mptoken_issuance_create_1 = __importDefault(require("./specification/mptok
|
|
|
57
57
|
const mptoken_authorize_1 = __importDefault(require("./specification/mptoken-authorize"));
|
|
58
58
|
const mptoken_issuance_set_1 = __importDefault(require("./specification/mptoken-issuance-set"));
|
|
59
59
|
const mptoken_issuance_destroy_1 = __importDefault(require("./specification/mptoken-issuance-destroy"));
|
|
60
|
+
const delegate_set_1 = __importDefault(require("./specification/delegate-set"));
|
|
61
|
+
const set_remarks_1 = __importDefault(require("./specification/set-remarks"));
|
|
60
62
|
const genesis_mint_1 = __importDefault(require("./specification/genesis-mint"));
|
|
61
63
|
const amendment_1 = __importDefault(require("./specification/amendment"));
|
|
62
64
|
const fee_update_1 = __importDefault(require("./specification/fee-update"));
|
|
@@ -111,6 +113,8 @@ const transactionTypeToType = {
|
|
|
111
113
|
MPTokenAuthorize: "MPTokenAuthorize",
|
|
112
114
|
MPTokenIssuanceSet: "MPTokenIssuanceSet",
|
|
113
115
|
MPTokenIssuanceDestroy: "MPTokenIssuanceDestroy",
|
|
116
|
+
DelegateSet: "DelegateSet",
|
|
117
|
+
SetRemarks: "SetRemarks",
|
|
114
118
|
GenesisMint: "genesisMint",
|
|
115
119
|
EnableAmendment: "amendment",
|
|
116
120
|
SetFee: "feeUpdate",
|
|
@@ -135,7 +139,7 @@ const parserTypeFunc = {
|
|
|
135
139
|
paymentChannelCreate: payment_channel_create_1.default,
|
|
136
140
|
paymentChannelFund: payment_channel_fund_1.default,
|
|
137
141
|
ticketCreate: ticket_create_1.default,
|
|
138
|
-
trustline:
|
|
142
|
+
trustline: trust_set_1.default,
|
|
139
143
|
nftokenBurn: nftoken_burn_1.default,
|
|
140
144
|
nftokenMint: nftoken_mint_1.default,
|
|
141
145
|
NFTokenModify: nftoken_modify_1.default,
|
|
@@ -167,6 +171,8 @@ const parserTypeFunc = {
|
|
|
167
171
|
MPTokenAuthorize: mptoken_authorize_1.default,
|
|
168
172
|
MPTokenIssuanceSet: mptoken_issuance_set_1.default,
|
|
169
173
|
MPTokenIssuanceDestroy: mptoken_issuance_destroy_1.default,
|
|
174
|
+
DelegateSet: delegate_set_1.default,
|
|
175
|
+
SetRemarks: set_remarks_1.default,
|
|
170
176
|
genesisMint: genesis_mint_1.default,
|
|
171
177
|
amendment: amendment_1.default,
|
|
172
178
|
feeUpdate: fee_update_1.default,
|
package/lib/types/checks.d.ts
CHANGED
|
@@ -6,12 +6,12 @@ export type FormattedCheckCancelSpecification = {
|
|
|
6
6
|
} & FormattedBaseSpecification;
|
|
7
7
|
export type FormattedCheckCashSpecification = {
|
|
8
8
|
checkID: string;
|
|
9
|
-
amount
|
|
10
|
-
deliverMin
|
|
9
|
+
amount?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
10
|
+
deliverMin?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
11
11
|
} & FormattedBaseSpecification;
|
|
12
12
|
export type FormattedCheckCreateSpecification = {
|
|
13
13
|
source?: FormattedSourceAddress;
|
|
14
14
|
destination?: FormattedDestinationAddress;
|
|
15
|
-
sendMax
|
|
16
|
-
expiration?: string;
|
|
15
|
+
sendMax?: IssuedCurrencyAmount | FormattedIssuedCurrencyAmount | FormattedIssuedMPTAmount | string;
|
|
16
|
+
expiration?: string | number;
|
|
17
17
|
} & FormattedBaseSpecification;
|
package/lib/types/deposits.d.ts
CHANGED
package/lib/types/did.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormattedBaseSpecification } from "./specification";
|
|
2
2
|
export type FormattedDIDSetSpecification = {
|
|
3
|
-
uri
|
|
4
|
-
data
|
|
5
|
-
didDocument
|
|
3
|
+
uri?: string;
|
|
4
|
+
data?: string;
|
|
5
|
+
didDocument?: string;
|
|
6
6
|
} & FormattedBaseSpecification;
|
|
7
7
|
export type FormattedDIDDeleteSpecification = {} & FormattedBaseSpecification;
|
package/lib/types/escrows.d.ts
CHANGED
|
@@ -2,17 +2,17 @@ import { FormattedBaseSpecification } from "./specification";
|
|
|
2
2
|
import { Amount } from "./amounts";
|
|
3
3
|
export type FormattedEscrowCancelSpecification = {
|
|
4
4
|
owner: string;
|
|
5
|
-
escrowSequence: number;
|
|
5
|
+
escrowSequence: string | number;
|
|
6
6
|
} & FormattedBaseSpecification;
|
|
7
7
|
export type FormattedEscrowCreateSpecification = {
|
|
8
8
|
amount?: Amount;
|
|
9
|
-
condition
|
|
9
|
+
condition?: string;
|
|
10
10
|
allowCancelAfter?: string;
|
|
11
11
|
allowExecuteAfter?: string;
|
|
12
12
|
} & FormattedBaseSpecification;
|
|
13
13
|
export type FormattedEscrowFinishSpecification = {
|
|
14
14
|
owner: string;
|
|
15
|
-
escrowSequence: number;
|
|
15
|
+
escrowSequence: string | number;
|
|
16
16
|
condition?: string;
|
|
17
17
|
fulfillment?: string;
|
|
18
18
|
} & FormattedBaseSpecification;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export * from "./oracle";
|
|
|
18
18
|
export * from "./queue_data";
|
|
19
19
|
export * from "./settings";
|
|
20
20
|
export * from "./signers";
|
|
21
|
-
export * from "./transactions";
|
|
22
21
|
export * from "./trustlines";
|
|
23
22
|
export * from "./nftokens";
|
|
24
23
|
export * from "./uritokens";
|
|
@@ -27,3 +26,5 @@ export * from "./invoke";
|
|
|
27
26
|
export * from "./unl_reports";
|
|
28
27
|
export * from "./remits";
|
|
29
28
|
export * from "./hooks";
|
|
29
|
+
export * from "./delegate";
|
|
30
|
+
export * from "./remarks";
|
package/lib/types/index.js
CHANGED
|
@@ -34,7 +34,6 @@ __exportStar(require("./oracle"), exports);
|
|
|
34
34
|
__exportStar(require("./queue_data"), exports);
|
|
35
35
|
__exportStar(require("./settings"), exports);
|
|
36
36
|
__exportStar(require("./signers"), exports);
|
|
37
|
-
__exportStar(require("./transactions"), exports);
|
|
38
37
|
__exportStar(require("./trustlines"), exports);
|
|
39
38
|
__exportStar(require("./nftokens"), exports);
|
|
40
39
|
__exportStar(require("./uritokens"), exports);
|
|
@@ -43,3 +42,5 @@ __exportStar(require("./invoke"), exports);
|
|
|
43
42
|
__exportStar(require("./unl_reports"), exports);
|
|
44
43
|
__exportStar(require("./remits"), exports);
|
|
45
44
|
__exportStar(require("./hooks"), exports);
|
|
45
|
+
__exportStar(require("./delegate"), exports);
|
|
46
|
+
__exportStar(require("./remarks"), exports);
|