mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Rename "paymentSequence" to "suspensionSequence" in suspended payments
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
"$ref": "address",
|
||||
"description": "The address of the owner of the suspended payment to cancel."
|
||||
},
|
||||
"paymentSequence": {
|
||||
"suspensionSequence": {
|
||||
"$ref": "sequence",
|
||||
"description": "The [account sequence number](#account-sequence-number) of the [Suspended Payment Creation](#suspended-payment-creation) transaction for the suspended payment to cancel."
|
||||
}
|
||||
},
|
||||
"required": ["owner", "paymentSequence"],
|
||||
"required": ["owner", "suspensionSequence"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
"$ref": "address",
|
||||
"description": "The address of the owner of the suspended payment to execute."
|
||||
},
|
||||
"paymentSequence": {
|
||||
"suspensionSequence": {
|
||||
"$ref": "sequence",
|
||||
"description": "The [account sequence number](#account-sequence-number) of the [Suspended Payment Creation](#suspended-payment-creation) transaction for the suspended payment to execute."
|
||||
},
|
||||
@@ -28,6 +28,6 @@
|
||||
"description": "This value will be hashed to produce the digest."
|
||||
}
|
||||
},
|
||||
"required": ["owner", "paymentSequence"],
|
||||
"required": ["owner", "suspensionSequence"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ function parseSuspendedPaymentCancellation(tx: Object): Object {
|
||||
return utils.removeUndefined({
|
||||
memos: utils.parseMemos(tx),
|
||||
owner: tx.Owner,
|
||||
paymentSequence: tx.OfferSequence
|
||||
suspensionSequence: tx.OfferSequence
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ function parseSuspendedPaymentExecution(tx: Object): Object {
|
||||
return utils.removeUndefined({
|
||||
memos: utils.parseMemos(tx),
|
||||
owner: tx.Owner,
|
||||
paymentSequence: tx.OfferSequence,
|
||||
suspensionSequence: tx.OfferSequence,
|
||||
method: tx.Method,
|
||||
digest: tx.Digest,
|
||||
proof: tx.Proof ? utils.hexToString(tx.Proof) : undefined
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
|
||||
|
||||
type SuspendedPaymentCancellation = {
|
||||
owner: string,
|
||||
paymentSequence: number,
|
||||
suspensionSequence: number,
|
||||
memos?: Array<Memo>
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ function createSuspendedPaymentCancellationTransaction(account: string,
|
||||
TransactionType: 'SuspendedPaymentCancel',
|
||||
Account: account,
|
||||
Owner: payment.owner,
|
||||
OfferSequence: payment.paymentSequence
|
||||
OfferSequence: payment.suspensionSequence
|
||||
};
|
||||
if (payment.memos !== undefined) {
|
||||
txJSON.Memos = _.map(payment.memos, utils.convertMemo);
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
|
||||
|
||||
type SuspendedPaymentExecution = {
|
||||
owner: string,
|
||||
paymentSequence: number,
|
||||
suspensionSequence: number,
|
||||
memos?: Array<Memo>,
|
||||
method?: number,
|
||||
digest?: string,
|
||||
@@ -22,7 +22,7 @@ function createSuspendedPaymentExecutionTransaction(account: string,
|
||||
TransactionType: 'SuspendedPaymentFinish',
|
||||
Account: account,
|
||||
Owner: payment.owner,
|
||||
OfferSequence: payment.paymentSequence
|
||||
OfferSequence: payment.suspensionSequence
|
||||
};
|
||||
|
||||
if (payment.method !== undefined) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"paymentSequence": 1234
|
||||
"suspensionSequence": 1234
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||
"paymentSequence": 1234,
|
||||
"suspensionSequence": 1234,
|
||||
"method": 1,
|
||||
"digest": "8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4",
|
||||
"proof": "whatever"
|
||||
|
||||
Reference in New Issue
Block a user