Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/hooks/__mocks__/mockParsedTxs.js
// Expected result of applying parseTxData to mockTxDataWityhPassthrough[0] | // Expected result of applying parseTxData to mockTxDataWityhPassthrough[0] | ||||
export const mockSentCashTx = [ | export const mockSentCashTx = [ | ||||
{ | { | ||||
amountReceived: 0, | amountReceived: 0, | ||||
amountSent: 0.000042, | amountSent: 0.000042, | ||||
blocktime: 1614380741, | blocktime: 1614380741, | ||||
confirmations: 2721, | confirmations: 2721, | ||||
destinationAddress: | destinationAddress: | ||||
'bitcoincash:qphpmfj0qn7znklqhrfn5dq7qh36l3vxavu346vqcl', | 'bitcoincash:qphpmfj0qn7znklqhrfn5dq7qh36l3vxavu346vqcl', | ||||
height: 674993, | height: 674993, | ||||
outgoingTx: true, | outgoingTx: true, | ||||
isCashtabMessage: false, | |||||
opReturnMessage: '', | opReturnMessage: '', | ||||
tokenTx: false, | tokenTx: false, | ||||
txid: '089f2188d5771a7de0589def2b8d6c1a1f33f45b6de26d9a0ef32782f019ecf1', | txid: '089f2188d5771a7de0589def2b8d6c1a1f33f45b6de26d9a0ef32782f019ecf1', | ||||
}, | }, | ||||
]; | ]; | ||||
export const mockReceivedCashTx = [ | export const mockReceivedCashTx = [ | ||||
{ | { | ||||
amountReceived: 3, | amountReceived: 3, | ||||
amountSent: 0, | amountSent: 0, | ||||
blocktime: 1612567121, | blocktime: 1612567121, | ||||
confirmations: 5637, | confirmations: 5637, | ||||
destinationAddress: | destinationAddress: | ||||
'bitcoincash:qpmytrdsakt0axrrlswvaj069nat3p9s7ct4lsf8k9', | 'bitcoincash:qpmytrdsakt0axrrlswvaj069nat3p9s7ct4lsf8k9', | ||||
height: 672077, | height: 672077, | ||||
outgoingTx: false, | outgoingTx: false, | ||||
isCashtabMessage: false, | |||||
opReturnMessage: '', | opReturnMessage: '', | ||||
tokenTx: false, | tokenTx: false, | ||||
txid: '42d39fbe068a40fe691f987b22fdf04b80f94d71d2fec20a58125e7b1a06d2a9', | txid: '42d39fbe068a40fe691f987b22fdf04b80f94d71d2fec20a58125e7b1a06d2a9', | ||||
}, | }, | ||||
]; | ]; | ||||
export const mockSentTokenTx = [ | export const mockSentTokenTx = [ | ||||
{ | { | ||||
amountReceived: 0, | amountReceived: 0, | ||||
amountSent: 0.00000546, | amountSent: 0.00000546, | ||||
blocktime: 1614027278, | blocktime: 1614027278, | ||||
confirmations: 3270, | confirmations: 3270, | ||||
destinationAddress: | destinationAddress: | ||||
'bitcoincash:qzj5zu6fgg8v2we82gh76xnrk9njcregluzgaztm45', | 'bitcoincash:qzj5zu6fgg8v2we82gh76xnrk9njcregluzgaztm45', | ||||
height: 674444, | height: 674444, | ||||
outgoingTx: true, | outgoingTx: true, | ||||
isCashtabMessage: false, | |||||
opReturnMessage: '', | opReturnMessage: '', | ||||
tokenTx: true, | tokenTx: true, | ||||
txid: 'ffe3a7500dbcc98021ad581c98d9947054d1950a7f3416664715066d3d20ad72', | txid: 'ffe3a7500dbcc98021ad581c98d9947054d1950a7f3416664715066d3d20ad72', | ||||
}, | }, | ||||
]; | ]; | ||||
export const mockReceivedTokenTx = [ | export const mockReceivedTokenTx = [ | ||||
{ | { | ||||
amountReceived: 0.00000546, | amountReceived: 0.00000546, | ||||
amountSent: 0, | amountSent: 0, | ||||
blocktime: 1613859311, | blocktime: 1613859311, | ||||
confirmations: 3571, | confirmations: 3571, | ||||
destinationAddress: | destinationAddress: | ||||
'bitcoincash:qpmytrdsakt0axrrlswvaj069nat3p9s7ct4lsf8k9', | 'bitcoincash:qpmytrdsakt0axrrlswvaj069nat3p9s7ct4lsf8k9', | ||||
height: 674143, | height: 674143, | ||||
outgoingTx: false, | outgoingTx: false, | ||||
isCashtabMessage: false, | |||||
opReturnMessage: '', | opReturnMessage: '', | ||||
tokenTx: true, | tokenTx: true, | ||||
txid: '618d0dd8c0c5fa5a34c6515c865dd72bb76f8311cd6ee9aef153bab20dabc0e6', | txid: '618d0dd8c0c5fa5a34c6515c865dd72bb76f8311cd6ee9aef153bab20dabc0e6', | ||||
}, | }, | ||||
]; | ]; | ||||
export const mockSentOpReturnMessageTx = [ | export const mockSentOpReturnMessageTx = [ | ||||
{ | { | ||||
amountReceived: 0, | amountReceived: 0, | ||||
amountSent: 0, | amountSent: 0, | ||||
blocktime: 1635507345, | blocktime: 1635507345, | ||||
confirmations: 59, | confirmations: 59, | ||||
destinationAddress: undefined, | destinationAddress: undefined, | ||||
height: undefined, | height: undefined, | ||||
opReturnMessage: new Buffer('testing message 12'), | opReturnMessage: new Buffer('testing message 12'), | ||||
outgoingTx: false, | outgoingTx: false, | ||||
tokenTx: false, | tokenTx: false, | ||||
isCashtabMessage: true, | |||||
txid: 'dd35690b0cefd24dcc08acba8694ecd49293f365a81372cb66c8f1c1291d97c5', | txid: 'dd35690b0cefd24dcc08acba8694ecd49293f365a81372cb66c8f1c1291d97c5', | ||||
}, | }, | ||||
]; | ]; | ||||
export const mockReceivedOpReturnMessageTx = [ | export const mockReceivedOpReturnMessageTx = [ | ||||
{ | { | ||||
amountReceived: 0, | amountReceived: 0, | ||||
amountSent: 0, | amountSent: 0, | ||||
blocktime: 1635511136, | blocktime: 1635511136, | ||||
confirmations: 70, | confirmations: 70, | ||||
destinationAddress: undefined, | destinationAddress: undefined, | ||||
height: undefined, | height: undefined, | ||||
opReturnMessage: new Buffer('testing message 13'), | opReturnMessage: new Buffer('testing message 13'), | ||||
outgoingTx: false, | outgoingTx: false, | ||||
tokenTx: false, | tokenTx: false, | ||||
isCashtabMessage: true, | |||||
txid: '5adc33b5c0509b31c6da359177b19467c443bdc4dd37c283c0f87244c0ad63af', | txid: '5adc33b5c0509b31c6da359177b19467c443bdc4dd37c283c0f87244c0ad63af', | ||||
}, | }, | ||||
]; | ]; |