Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/hooks/__mocks__/mockReturnGetSlpBalancesAndUtxos.js
- This file was added.
import BigNumber from 'bignumber.js'; | |||||
export default { | |||||
tokens: [ | |||||
{ | |||||
info: { | |||||
height: 659837, | |||||
tx_hash: 'bb055d815e795d7a4fe41fd67288d71886678e7d1e5ba9ddd7f6daffa5f70ceb', | |||||
tx_pos: 2, | |||||
value: 546, | |||||
satoshis: 546, | |||||
txid: 'bb055d815e795d7a4fe41fd67288d71886678e7d1e5ba9ddd7f6daffa5f70ceb', | |||||
vout: 2, | |||||
utxoType: 'token', | |||||
transactionType: 'send', | |||||
tokenId: '009ff65ef50632111a9661f67d80025481ebc80ced239d32a92705b04d5df8cc', | |||||
tokenTicker: 'TTT', | |||||
tokenName: 'TT', | |||||
tokenDocumentUrl: 'mint.bitcoin.com', | |||||
tokenDocumentHash: '', | |||||
decimals: 1, | |||||
tokenType: 1, | |||||
tokenQty: 7, | |||||
isValid: true, | |||||
address: 'bitcoincash:qphazxf3vhe4qchvzz2pjempdhplaxcj957xqq8mg2', | |||||
}, | |||||
tokenId: '009ff65ef50632111a9661f67d80025481ebc80ced239d32a92705b04d5df8cc', | |||||
balance: new BigNumber(7), | |||||
hasBaton: false, | |||||
}, | |||||
{ | |||||
info: { | |||||
height: 659843, | |||||
tx_hash: '88b7dac07cb30566a6264f330bedda690c8dff151c2307692c79e13dc59ca2ba', | |||||
tx_pos: 2, | |||||
value: 546, | |||||
satoshis: 546, | |||||
txid: '88b7dac07cb30566a6264f330bedda690c8dff151c2307692c79e13dc59ca2ba', | |||||
vout: 2, | |||||
utxoType: 'token', | |||||
transactionType: 'send', | |||||
tokenId: '2aef6e63edfded1a299e78b529286deea2a6dd5299b6911778c25632d78a9479', | |||||
tokenTicker: 'PTC', | |||||
tokenName: 'pitico', | |||||
tokenDocumentUrl: 'mint.bitcoin.com', | |||||
tokenDocumentHash: '', | |||||
decimals: 5, | |||||
tokenType: 1, | |||||
tokenQty: 99.35, | |||||
isValid: true, | |||||
address: 'bitcoincash:qphazxf3vhe4qchvzz2pjempdhplaxcj957xqq8mg2', | |||||
}, | |||||
tokenId: '2aef6e63edfded1a299e78b529286deea2a6dd5299b6911778c25632d78a9479', | |||||
balance: new BigNumber(99.35), | |||||
hasBaton: false, | |||||
}, | |||||
], | |||||
nonSlpUtxos: [ | |||||
{ | |||||
height: 660544, | |||||
tx_hash: '5ebb5272b6f875b65f41f2cfca031e6f07f9cf519ee7577f0f63cb79aa86fd0a', | |||||
tx_pos: 1, | |||||
value: 2196, | |||||
satoshis: 2196, | |||||
txid: '5ebb5272b6f875b65f41f2cfca031e6f07f9cf519ee7577f0f63cb79aa86fd0a', | |||||
vout: 1, | |||||
isValid: false, | |||||
address: 'bitcoincash:qrzuvj0vvnsz5949h4axercl5k420eygavv0awgz05', | |||||
}, | |||||
], | |||||
slpUtxos: [ | |||||
{ | |||||
height: 659837, | |||||
tx_hash: 'bb055d815e795d7a4fe41fd67288d71886678e7d1e5ba9ddd7f6daffa5f70ceb', | |||||
tx_pos: 2, | |||||
value: 546, | |||||
satoshis: 546, | |||||
txid: 'bb055d815e795d7a4fe41fd67288d71886678e7d1e5ba9ddd7f6daffa5f70ceb', | |||||
vout: 2, | |||||
utxoType: 'token', | |||||
transactionType: 'send', | |||||
tokenId: '009ff65ef50632111a9661f67d80025481ebc80ced239d32a92705b04d5df8cc', | |||||
tokenTicker: 'TTT', | |||||
tokenName: 'TT', | |||||
tokenDocumentUrl: 'mint.bitcoin.com', | |||||
tokenDocumentHash: '', | |||||
decimals: 1, | |||||
tokenType: 1, | |||||
tokenQty: 7, | |||||
isValid: true, | |||||
address: 'bitcoincash:qphazxf3vhe4qchvzz2pjempdhplaxcj957xqq8mg2', | |||||
}, | |||||
{ | |||||
height: 659843, | |||||
tx_hash: '88b7dac07cb30566a6264f330bedda690c8dff151c2307692c79e13dc59ca2ba', | |||||
tx_pos: 2, | |||||
value: 546, | |||||
satoshis: 546, | |||||
txid: '88b7dac07cb30566a6264f330bedda690c8dff151c2307692c79e13dc59ca2ba', | |||||
vout: 2, | |||||
utxoType: 'token', | |||||
transactionType: 'send', | |||||
tokenId: '2aef6e63edfded1a299e78b529286deea2a6dd5299b6911778c25632d78a9479', | |||||
tokenTicker: 'PTC', | |||||
tokenName: 'pitico', | |||||
tokenDocumentUrl: 'mint.bitcoin.com', | |||||
tokenDocumentHash: '', | |||||
decimals: 5, | |||||
tokenType: 1, | |||||
tokenQty: 99.35, | |||||
isValid: true, | |||||
address: 'bitcoincash:qphazxf3vhe4qchvzz2pjempdhplaxcj957xqq8mg2', | |||||
}, | |||||
], | |||||
}; |