mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
cover api/ledger/parse/settings.js with tests
This commit is contained in:
49
test/fixtures/api/rippled/tx/account-set-tracking-off.json
vendored
Normal file
49
test/fixtures/api/rippled/tx/account-set-tracking-off.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"id": 0,
|
||||
"result": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"ClearFlag": 5,
|
||||
"Fee": "12000",
|
||||
"Flags": 0,
|
||||
"LastLedgerSequence": 14915391,
|
||||
"Sequence": 476,
|
||||
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
||||
"TransactionType": "AccountSet",
|
||||
"TxnSignature": "3044022046633801E0C99A3DBFE6C836491650DAFD6FDF2A6C5AB9360F9E1E552DE24182022005AF9240ADBB6CAB55B69D772BA37E240B66E6B928A2A86FB7025494FE3916D8",
|
||||
"date": 491424300,
|
||||
"hash": "C8C5E20DFB1BF533D0D81A2ED23F0A3CBD1EF2EE8A902A1D760500473CC9C582",
|
||||
"inLedger": 14915293,
|
||||
"ledger_index": 14915293,
|
||||
"meta": {
|
||||
"AffectedNodes": [
|
||||
{
|
||||
"ModifiedNode": {
|
||||
"FinalFields": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"Balance": "71695088",
|
||||
"Domain": "726970706C652E636F6D",
|
||||
"Flags": 65536,
|
||||
"OwnerCount": 3,
|
||||
"RegularKey": "rsvEdWvfwzqkgvmaSEh9kgbcWiUc6s69ZC",
|
||||
"Sequence": 477
|
||||
},
|
||||
"LedgerEntryType": "AccountRoot",
|
||||
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
||||
"PreviousFields": {
|
||||
"AccountTxnID": "0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"Balance": "71707088",
|
||||
"Sequence": 476
|
||||
},
|
||||
"PreviousTxnID": "8925FC8844A1E930E2CC76AD0A15E7665AFCC5425376D548BB1413F484C31B8C",
|
||||
"PreviousTxnLgrSeq": 14914896
|
||||
}
|
||||
}
|
||||
],
|
||||
"TransactionIndex": 2,
|
||||
"TransactionResult": "tesSUCCESS"
|
||||
},
|
||||
"validated": true
|
||||
},
|
||||
"status": "success",
|
||||
"type": "response"
|
||||
}
|
||||
49
test/fixtures/api/rippled/tx/account-set-tracking-on.json
vendored
Normal file
49
test/fixtures/api/rippled/tx/account-set-tracking-on.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"id": 0,
|
||||
"result": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"Fee": "12000",
|
||||
"Flags": 0,
|
||||
"LastLedgerSequence": 14914994,
|
||||
"Sequence": 475,
|
||||
"SetFlag": 5,
|
||||
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
||||
"TransactionType": "AccountSet",
|
||||
"TxnSignature": "304402200E5A3174AE8A77DB4DD7F960BC30E2A7177437BD76F3FAB0377B27A75E06FA7F022061337D0B10F921D66045523A29D0102863AB673DFABCBECD9A0F8DE4127CD690",
|
||||
"date": 491422610,
|
||||
"hash": "8925FC8844A1E930E2CC76AD0A15E7665AFCC5425376D548BB1413F484C31B8C",
|
||||
"inLedger": 14914896,
|
||||
"ledger_index": 14914896,
|
||||
"meta": {
|
||||
"AffectedNodes": [
|
||||
{
|
||||
"ModifiedNode": {
|
||||
"FinalFields": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"AccountTxnID": "0000000000000000000000000000000000000000000000000000000000000000",
|
||||
"Balance": "71707088",
|
||||
"Domain": "726970706C652E636F6D",
|
||||
"Flags": 65536,
|
||||
"OwnerCount": 3,
|
||||
"RegularKey": "rsvEdWvfwzqkgvmaSEh9kgbcWiUc6s69ZC",
|
||||
"Sequence": 476
|
||||
},
|
||||
"LedgerEntryType": "AccountRoot",
|
||||
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
||||
"PreviousFields": {
|
||||
"Balance": "71719088",
|
||||
"Sequence": 475
|
||||
},
|
||||
"PreviousTxnID": "172BD9EB414FDC4D30CB7E020DD4387468782D85A0A2342BFD3DC94D40468B14",
|
||||
"PreviousTxnLgrSeq": 14899844
|
||||
}
|
||||
}
|
||||
],
|
||||
"TransactionIndex": 1,
|
||||
"TransactionResult": "tesSUCCESS"
|
||||
},
|
||||
"validated": true
|
||||
},
|
||||
"status": "success",
|
||||
"type": "response"
|
||||
}
|
||||
49
test/fixtures/api/rippled/tx/set-regular-key.json
vendored
Normal file
49
test/fixtures/api/rippled/tx/set-regular-key.json
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"id": 0,
|
||||
"result": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"Fee": "12000",
|
||||
"Flags": 0,
|
||||
"LastLedgerSequence": 14892747,
|
||||
"RegularKey": "rsvEdWvfwzqkgvmaSEh9kgbcWiUc6s69ZC",
|
||||
"Sequence": 468,
|
||||
"SigningPubKey": "036A749E3B7187E43E8936E3D83A7030989325249E03803F12B7F64BAACABA6025",
|
||||
"TransactionType": "SetRegularKey",
|
||||
"TxnSignature": "3045022100B123D47C46E20654B4FCC1A94E3337BB8C5A9E840F8E0D4049AD5FD63A3C3B9502200EEA73F85248217E349901B6B64D9A43F660F90743F42860FF5D23243C9C5174",
|
||||
"date": 491326250,
|
||||
"hash": "278E6687C1C60C6873996210A6523564B63F2844FB1019576C157353B1813E60",
|
||||
"inLedger": 14892648,
|
||||
"ledger_index": 14892648,
|
||||
"meta": {
|
||||
"AffectedNodes": [
|
||||
{
|
||||
"ModifiedNode": {
|
||||
"FinalFields": {
|
||||
"Account": "r9UHu5CWni1qRY7Q4CfFZLGvXo2pGQy96b",
|
||||
"Balance": "71791094",
|
||||
"Domain": "726970706C652E636F6D",
|
||||
"Flags": 65536,
|
||||
"OwnerCount": 3,
|
||||
"RegularKey": "rsvEdWvfwzqkgvmaSEh9kgbcWiUc6s69ZC",
|
||||
"Sequence": 469
|
||||
},
|
||||
"LedgerEntryType": "AccountRoot",
|
||||
"LedgerIndex": "4AD70690C6FF8A069F8AE00B09F70E9B732360026E8085050D314432091A59C9",
|
||||
"PreviousFields": {
|
||||
"Balance": "71803094",
|
||||
"Flags": 0,
|
||||
"Sequence": 468
|
||||
},
|
||||
"PreviousTxnID": "D0F627D9A2CB4B45F2AC38C7741CE70D947BE64CB8CA1E2D34FBB372730A7970",
|
||||
"PreviousTxnLgrSeq": 14682436
|
||||
}
|
||||
}
|
||||
],
|
||||
"TransactionIndex": 0,
|
||||
"TransactionResult": "tesSUCCESS"
|
||||
},
|
||||
"validated": true
|
||||
},
|
||||
"status": "success",
|
||||
"type": "response"
|
||||
}
|
||||
Reference in New Issue
Block a user