Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/utils/__mocks__/chronikTxHistory.js
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,552 Lines • ▼ Show 20 Lines | Path1899: { | ||||
legacyAddress: 'string', | legacyAddress: 'string', | ||||
}, | }, | ||||
state: { | state: { | ||||
balances: { | balances: { | ||||
totalBalanceInSatoshis: '55421422', | totalBalanceInSatoshis: '55421422', | ||||
totalBalance: '554214.22', | totalBalance: '554214.22', | ||||
}, | }, | ||||
tokens: [], | tokens: [], | ||||
slpBalancesAndUtxos: { | |||||
slpUtxos: [], | slpUtxos: [], | ||||
nonSlpUtxos: [], | nonSlpUtxos: [], | ||||
tokens: [], | |||||
}, | |||||
parsedTxHistory: [], | parsedTxHistory: [], | ||||
utxos: [], | |||||
}, | }, | ||||
}; | }; | ||||
export const anotherMockParseTxWallet = { | export const anotherMockParseTxWallet = { | ||||
mnemonic: 'string', | mnemonic: 'string', | ||||
name: 'string', | name: 'string', | ||||
Path245: { | Path245: { | ||||
publicKey: | publicKey: | ||||
Show All 26 Lines | Path1899: { | ||||
legacyAddress: 'string', | legacyAddress: 'string', | ||||
}, | }, | ||||
state: { | state: { | ||||
balances: { | balances: { | ||||
totalBalanceInSatoshis: '55421422', | totalBalanceInSatoshis: '55421422', | ||||
totalBalance: '554214.22', | totalBalance: '554214.22', | ||||
}, | }, | ||||
tokens: [], | tokens: [], | ||||
slpBalancesAndUtxos: { | |||||
slpUtxos: [], | slpUtxos: [], | ||||
nonSlpUtxos: [], | nonSlpUtxos: [], | ||||
tokens: [], | |||||
}, | |||||
parsedTxHistory: [], | parsedTxHistory: [], | ||||
utxos: [], | |||||
}, | }, | ||||
}; | }; | ||||
export const lambdaIncomingXecTx = { | export const lambdaIncomingXecTx = { | ||||
txid: 'ac83faac54059c89c41dea4c3d6704e4f74fb82e4ad2fb948e640f1d19b760de', | txid: 'ac83faac54059c89c41dea4c3d6704e4f74fb82e4ad2fb948e640f1d19b760de', | ||||
version: 2, | version: 2, | ||||
inputs: [ | inputs: [ | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 1,293 Lines • ▼ Show 20 Lines | Path1899: { | ||||
legacyAddress: '1NjhLtSNF32Nay82jV1b7yv6s7mxaeFeYP', | legacyAddress: '1NjhLtSNF32Nay82jV1b7yv6s7mxaeFeYP', | ||||
}, | }, | ||||
state: { | state: { | ||||
balances: { | balances: { | ||||
totalBalanceInSatoshis: '49545', | totalBalanceInSatoshis: '49545', | ||||
totalBalance: '495.45', | totalBalance: '495.45', | ||||
}, | }, | ||||
tokens: [], | tokens: [], | ||||
slpBalancesAndUtxos: { | |||||
slpUtxos: [], | slpUtxos: [], | ||||
nonSlpUtxos: [ | nonSlpUtxos: [ | ||||
{ | { | ||||
outpoint: { | outpoint: { | ||||
txid: '45411aa786288b679d1c1874f7b126d5ea0c83380304950d364b5b8279a460de', | txid: '45411aa786288b679d1c1874f7b126d5ea0c83380304950d364b5b8279a460de', | ||||
outIdx: 1, | outIdx: 1, | ||||
}, | }, | ||||
blockHeight: -1, | blockHeight: -1, | ||||
isCoinbase: false, | isCoinbase: false, | ||||
value: '48445', | value: '48445', | ||||
network: 'XEC', | network: 'XEC', | ||||
address: | address: | ||||
'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | 'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | ||||
}, | }, | ||||
{ | { | ||||
outpoint: { | outpoint: { | ||||
txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6', | txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6', | ||||
outIdx: 1, | outIdx: 1, | ||||
}, | }, | ||||
blockHeight: -1, | blockHeight: -1, | ||||
isCoinbase: false, | isCoinbase: false, | ||||
value: '1100', | value: '1100', | ||||
network: 'XEC', | network: 'XEC', | ||||
address: | address: | ||||
'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | 'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | ||||
}, | }, | ||||
], | ], | ||||
tokens: [], | |||||
}, | |||||
parsedTxHistory: [ | parsedTxHistory: [ | ||||
{ | { | ||||
txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6', | txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6', | ||||
version: 2, | version: 2, | ||||
inputs: [ | inputs: [ | ||||
{ | { | ||||
prevOut: { | prevOut: { | ||||
txid: 'fec829a1ff34a9f84058cdd8bf795c114a8fcb3bcc6c3ca9ea8b9ae68420dd9a', | txid: 'fec829a1ff34a9f84058cdd8bf795c114a8fcb3bcc6c3ca9ea8b9ae68420dd9a', | ||||
▲ Show 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | state: { | ||||
isEncryptedMessage: false, | isEncryptedMessage: false, | ||||
decryptionSuccess: false, | decryptionSuccess: false, | ||||
replyAddress: | replyAddress: | ||||
'ecash:qp89xgjhcqdnzzemts0aj378nfe2mhu9yvxj9nhgg6', | 'ecash:qp89xgjhcqdnzzemts0aj378nfe2mhu9yvxj9nhgg6', | ||||
}, | }, | ||||
}, | }, | ||||
}, | }, | ||||
], | ], | ||||
utxos: [ | |||||
{ | |||||
outpoint: { | |||||
txid: '45411aa786288b679d1c1874f7b126d5ea0c83380304950d364b5b8279a460de', | |||||
outIdx: 1, | |||||
}, | |||||
blockHeight: -1, | |||||
isCoinbase: false, | |||||
value: '48445', | |||||
network: 'XEC', | |||||
address: | |||||
'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | |||||
}, | |||||
{ | |||||
outpoint: { | |||||
txid: '66974f4a22ca1a4aa36c932b4effafcb9dd8a32b8766dfc7644ba5922252c4c6', | |||||
outIdx: 1, | |||||
}, | |||||
blockHeight: -1, | |||||
isCoinbase: false, | |||||
value: '1100', | |||||
network: 'XEC', | |||||
address: | |||||
'bitcoincash:qrhxmjw5p72a3cgx5cect3h63q5erw0gfc4l80hyqu', | |||||
}, | |||||
], | |||||
}, | }, | ||||
}; | }; | ||||
export const mockSentEncryptedTx = { | export const mockSentEncryptedTx = { | ||||
txid: '7ac10096c8a7b32fe338dc938bcf2e1341b99f841687e690d88241107ce4b84b', | txid: '7ac10096c8a7b32fe338dc938bcf2e1341b99f841687e690d88241107ce4b84b', | ||||
version: 2, | version: 2, | ||||
inputs: [ | inputs: [ | ||||
{ | { | ||||
prevOut: { | prevOut: { | ||||
▲ Show 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | Path1899: { | ||||
legacyAddress: '1GJTjC9c5o3G7LJEGfgqzghGY6ecrwLAG9', | legacyAddress: '1GJTjC9c5o3G7LJEGfgqzghGY6ecrwLAG9', | ||||
}, | }, | ||||
state: { | state: { | ||||
balances: { | balances: { | ||||
totalBalanceInSatoshis: '1997', | totalBalanceInSatoshis: '1997', | ||||
totalBalance: '19.97', | totalBalance: '19.97', | ||||
}, | }, | ||||
tokens: [], | tokens: [], | ||||
slpBalancesAndUtxos: { | |||||
slpUtxos: [], | slpUtxos: [], | ||||
nonSlpUtxos: [ | nonSlpUtxos: [ | ||||
{ | { | ||||
outpoint: { | outpoint: { | ||||
txid: '0417094d2011c967e2ad8fe917415876f2e6a249bb486edb638d5659920a88ee', | txid: '0417094d2011c967e2ad8fe917415876f2e6a249bb486edb638d5659920a88ee', | ||||
outIdx: 0, | outIdx: 0, | ||||
}, | }, | ||||
blockHeight: 767064, | blockHeight: 767064, | ||||
isCoinbase: false, | isCoinbase: false, | ||||
value: '997', | value: '997', | ||||
network: 'XEC', | network: 'XEC', | ||||
address: | address: | ||||
'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | 'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | ||||
}, | }, | ||||
{ | { | ||||
outpoint: { | outpoint: { | ||||
txid: '2f030de7c8f80a1ecac3645092dd22f0943c34d54cb734e12d7dfda0641fdfcf', | txid: '2f030de7c8f80a1ecac3645092dd22f0943c34d54cb734e12d7dfda0641fdfcf', | ||||
outIdx: 3, | outIdx: 3, | ||||
}, | }, | ||||
blockHeight: 767064, | blockHeight: 767064, | ||||
isCoinbase: false, | isCoinbase: false, | ||||
value: '1000', | value: '1000', | ||||
slpMeta: { | slpMeta: { | ||||
tokenType: 'FUNGIBLE', | tokenType: 'FUNGIBLE', | ||||
txType: 'SEND', | txType: 'SEND', | ||||
tokenId: | tokenId: | ||||
'54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484', | '54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484', | ||||
}, | }, | ||||
network: 'XEC', | network: 'XEC', | ||||
address: | address: | ||||
'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | 'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | ||||
}, | }, | ||||
], | ], | ||||
tokens: [], | |||||
}, | |||||
parsedTxHistory: [ | parsedTxHistory: [ | ||||
{ | { | ||||
txid: '2f030de7c8f80a1ecac3645092dd22f0943c34d54cb734e12d7dfda0641fdfcf', | txid: '2f030de7c8f80a1ecac3645092dd22f0943c34d54cb734e12d7dfda0641fdfcf', | ||||
version: 1, | version: 1, | ||||
inputs: [ | inputs: [ | ||||
{ | { | ||||
prevOut: { | prevOut: { | ||||
txid: '4e771bc4bbd377f05b467b0e070ff330f03112b9effb61af5568e174850afa1b', | txid: '4e771bc4bbd377f05b467b0e070ff330f03112b9effb61af5568e174850afa1b', | ||||
▲ Show 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | state: { | ||||
isCashtabMessage: false, | isCashtabMessage: false, | ||||
isEncryptedMessage: false, | isEncryptedMessage: false, | ||||
decryptionSuccess: false, | decryptionSuccess: false, | ||||
replyAddress: | replyAddress: | ||||
'ecash:qps4qqfw2k4szv8zzpw5utc33qj08hcufg8708r67w', | 'ecash:qps4qqfw2k4szv8zzpw5utc33qj08hcufg8708r67w', | ||||
}, | }, | ||||
}, | }, | ||||
], | ], | ||||
utxos: [ | |||||
{ | |||||
outpoint: { | |||||
txid: '0417094d2011c967e2ad8fe917415876f2e6a249bb486edb638d5659920a88ee', | |||||
outIdx: 0, | |||||
}, | |||||
blockHeight: 767064, | |||||
isCoinbase: false, | |||||
value: '997', | |||||
network: 'XEC', | |||||
address: | |||||
'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | |||||
}, | |||||
{ | |||||
outpoint: { | |||||
txid: '2f030de7c8f80a1ecac3645092dd22f0943c34d54cb734e12d7dfda0641fdfcf', | |||||
outIdx: 3, | |||||
}, | |||||
blockHeight: 767064, | |||||
isCoinbase: false, | |||||
value: '1000', | |||||
slpMeta: { | |||||
tokenType: 'FUNGIBLE', | |||||
txType: 'SEND', | |||||
tokenId: | |||||
'54dc2ecd5251f8dfda4c4f15ce05272116b01326076240e2b9cc0104d33b1484', | |||||
}, | |||||
network: 'XEC', | |||||
address: | |||||
'bitcoincash:qznaw38py34zpunz8rs9zrac9kxlsnxg95m2sf5czz', | |||||
}, | |||||
], | |||||
}, | }, | ||||
}; | }; |