Remove sequence from AccountFields

This commit is contained in:
Chris Clark
2015-07-15 15:49:05 -07:00
parent c36567e062
commit 529a55efb0
7 changed files with 11 additions and 14 deletions

View File

@@ -26,7 +26,6 @@ const AccountFlagIndices = {
};
const AccountFields = {
Sequence: {name: 'sequence'},
EmailHash: {name: 'emailHash', encoding: 'hex',
length: 32, defaults: '0'},
WalletLocator: {name: 'walletLocator', encoding: 'hex',

View File

@@ -36,6 +36,7 @@ function parseTransaction(tx: Object): Object {
return utils.removeUndefined({
type: type,
address: tx.Account,
sequence: tx.Sequence,
id: tx.hash,
specification: utils.removeUndefined(specification),
outcome: outcome ? utils.removeUndefined(outcome) : undefined

View File

@@ -62,8 +62,7 @@ function parseOutcome(tx: Object): ?Object {
balanceChanges: balanceChanges,
orderbookChanges: orderbookChanges,
ledgerVersion: tx.ledger_index,
indexInLedger: tx.meta.TransactionIndex,
sequence: tx.Sequence
indexInLedger: tx.meta.TransactionIndex
};
}

View File

@@ -2,6 +2,7 @@
{
"type": "payment",
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"sequence": 4,
"id": "4C37C92576DEB000D13B07F4D3F99F968BD86B6B83A840BEFFB2BFC8A042A81B",
"specification": {
"source": {
@@ -80,14 +81,14 @@
]
},
"ledgerVersion": 348860,
"indexInLedger": 0,
"sequence": 4
"indexInLedger": 0
}
},
{
"type": "payment",
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"id": "4C37C92576DEB000D13B07F4D3F99F968BD86B6B83A840BEFFB2BFC8A042A81B",
"sequence": 4,
"specification": {
"source": {
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
@@ -165,8 +166,7 @@
]
},
"ledgerVersion": 348860,
"indexInLedger": 0,
"sequence": 4
"indexInLedger": 0
}
}
]

View File

@@ -1,7 +1,6 @@
{
"requireDestinationTag": true,
"disallowIncomingXRP": true,
"sequence": 23,
"emailHash": "23463B99B62A72F26ED677CC556C44E8",
"walletLocator": "00000000000000000000000000000000000000000000000000000000DEADBEEF",
"domain": "example.com",

View File

@@ -1,12 +1,12 @@
{
"type": "settings",
"address": "rLVKsA4F9iJBbA6rX2x4wCmkj6drgtqpQe",
"sequence": 1,
"id": "4FB3ADF22F3C605E23FAEFAA185F3BD763C4692CAC490D9819D117CD33BFAA1B",
"specification": {
"requireAuthorization": true,
"disallowIncomingXRP": true,
"globalFreeze": false,
"sequence": 1
"globalFreeze": false
},
"outcome": {
"result": "tesSUCCESS",
@@ -22,7 +22,6 @@
},
"orderbookChanges": {},
"ledgerVersion": 8206418,
"indexInLedger": 5,
"sequence": 1
"indexInLedger": 5
}
}

View File

@@ -1,6 +1,7 @@
{
"type": "payment",
"address": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"sequence": 4,
"id": "F4AB442A6D4CBB935D66E1DA7309A5FC71C7143ED4049053EC14E3875B0CF9BF",
"specification": {
"source": {
@@ -80,7 +81,6 @@
]
},
"ledgerVersion": 348860,
"indexInLedger": 0,
"sequence": 4
"indexInLedger": 0
}
}