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",
|
"$ref": "address",
|
||||||
"description": "The address of the owner of the suspended payment to cancel."
|
"description": "The address of the owner of the suspended payment to cancel."
|
||||||
},
|
},
|
||||||
"paymentSequence": {
|
"suspensionSequence": {
|
||||||
"$ref": "sequence",
|
"$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."
|
"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
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
"$ref": "address",
|
"$ref": "address",
|
||||||
"description": "The address of the owner of the suspended payment to execute."
|
"description": "The address of the owner of the suspended payment to execute."
|
||||||
},
|
},
|
||||||
"paymentSequence": {
|
"suspensionSequence": {
|
||||||
"$ref": "sequence",
|
"$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."
|
"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."
|
"description": "This value will be hashed to produce the digest."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["owner", "paymentSequence"],
|
"required": ["owner", "suspensionSequence"],
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ function parseSuspendedPaymentCancellation(tx: Object): Object {
|
|||||||
return utils.removeUndefined({
|
return utils.removeUndefined({
|
||||||
memos: utils.parseMemos(tx),
|
memos: utils.parseMemos(tx),
|
||||||
owner: tx.Owner,
|
owner: tx.Owner,
|
||||||
paymentSequence: tx.OfferSequence
|
suspensionSequence: tx.OfferSequence
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ function parseSuspendedPaymentExecution(tx: Object): Object {
|
|||||||
return utils.removeUndefined({
|
return utils.removeUndefined({
|
||||||
memos: utils.parseMemos(tx),
|
memos: utils.parseMemos(tx),
|
||||||
owner: tx.Owner,
|
owner: tx.Owner,
|
||||||
paymentSequence: tx.OfferSequence,
|
suspensionSequence: tx.OfferSequence,
|
||||||
method: tx.Method,
|
method: tx.Method,
|
||||||
digest: tx.Digest,
|
digest: tx.Digest,
|
||||||
proof: tx.Proof ? utils.hexToString(tx.Proof) : undefined
|
proof: tx.Proof ? utils.hexToString(tx.Proof) : undefined
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
|
|||||||
|
|
||||||
type SuspendedPaymentCancellation = {
|
type SuspendedPaymentCancellation = {
|
||||||
owner: string,
|
owner: string,
|
||||||
paymentSequence: number,
|
suspensionSequence: number,
|
||||||
memos?: Array<Memo>
|
memos?: Array<Memo>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,7 +19,7 @@ function createSuspendedPaymentCancellationTransaction(account: string,
|
|||||||
TransactionType: 'SuspendedPaymentCancel',
|
TransactionType: 'SuspendedPaymentCancel',
|
||||||
Account: account,
|
Account: account,
|
||||||
Owner: payment.owner,
|
Owner: payment.owner,
|
||||||
OfferSequence: payment.paymentSequence
|
OfferSequence: payment.suspensionSequence
|
||||||
};
|
};
|
||||||
if (payment.memos !== undefined) {
|
if (payment.memos !== undefined) {
|
||||||
txJSON.Memos = _.map(payment.memos, utils.convertMemo);
|
txJSON.Memos = _.map(payment.memos, utils.convertMemo);
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type {Memo} from '../common/types.js';
|
|||||||
|
|
||||||
type SuspendedPaymentExecution = {
|
type SuspendedPaymentExecution = {
|
||||||
owner: string,
|
owner: string,
|
||||||
paymentSequence: number,
|
suspensionSequence: number,
|
||||||
memos?: Array<Memo>,
|
memos?: Array<Memo>,
|
||||||
method?: number,
|
method?: number,
|
||||||
digest?: string,
|
digest?: string,
|
||||||
@@ -22,7 +22,7 @@ function createSuspendedPaymentExecutionTransaction(account: string,
|
|||||||
TransactionType: 'SuspendedPaymentFinish',
|
TransactionType: 'SuspendedPaymentFinish',
|
||||||
Account: account,
|
Account: account,
|
||||||
Owner: payment.owner,
|
Owner: payment.owner,
|
||||||
OfferSequence: payment.paymentSequence
|
OfferSequence: payment.suspensionSequence
|
||||||
};
|
};
|
||||||
|
|
||||||
if (payment.method !== undefined) {
|
if (payment.method !== undefined) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"paymentSequence": 1234
|
"suspensionSequence": 1234
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
"owner": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
|
||||||
"paymentSequence": 1234,
|
"suspensionSequence": 1234,
|
||||||
"method": 1,
|
"method": 1,
|
||||||
"digest": "8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4",
|
"digest": "8F434346648F6B96DF89DDA901C5176B10A6D83961DD3C1AC88B59B2DC327AA4",
|
||||||
"proof": "whatever"
|
"proof": "whatever"
|
||||||
|
|||||||
Reference in New Issue
Block a user