diff --git a/web/cashtab/src/components/Common/Ticker.js b/web/cashtab/src/components/Common/Ticker.js --- a/web/cashtab/src/components/Common/Ticker.js +++ b/web/cashtab/src/components/Common/Ticker.js @@ -22,6 +22,7 @@ tokenIconsUrl: '', //https://tokens.bitcoin.com/32 for BCH SLP useBlockchainWs: false, txHistoryCount: 5, + hydrateUtxoBatchSize: 20, }; export function isValidCashPrefix(addressString) { diff --git a/web/cashtab/src/hooks/__mocks__/mockHydrateUtxosBatched.js b/web/cashtab/src/hooks/__mocks__/mockHydrateUtxosBatched.js new file mode 100644 --- /dev/null +++ b/web/cashtab/src/hooks/__mocks__/mockHydrateUtxosBatched.js @@ -0,0 +1,1688 @@ +// @generated + +export const flattenedHydrateUtxosResponse = { + slpUtxos: [ + { + utxos: [ + { + height: 681187, + tx_hash: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + tx_pos: 0, + value: 1000, + txid: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + tx_pos: 0, + value: 2000, + txid: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + tx_pos: 0, + value: 9000, + txid: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + tx_pos: 0, + value: 11000, + txid: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + tx_pos: 0, + value: 7000, + txid: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + tx_pos: 0, + value: 12000, + txid: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + tx_pos: 0, + value: 8000, + txid: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + tx_pos: 0, + value: 10000, + txid: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + tx_pos: 0, + value: 3000, + txid: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681188, + tx_hash: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + tx_pos: 0, + value: 6000, + txid: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + tx_pos: 0, + value: 4000, + txid: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + tx_pos: 0, + value: 5000, + txid: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + tx_pos: 1, + value: 546, + txid: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '10', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + tx_pos: 1, + value: 546, + txid: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '6', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + tx_pos: 1, + value: 546, + txid: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + tx_pos: 1, + value: 546, + txid: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + tx_pos: 1, + value: 546, + txid: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + tx_pos: 1, + value: 546, + txid: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + tx_pos: 1, + value: 546, + txid: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681189, + tx_hash: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + tx_pos: 1, + value: 546, + txid: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + tx_pos: 1, + value: 546, + txid: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + tx_pos: 1, + value: 546, + txid: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '11', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + tx_pos: 1, + value: 546, + txid: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + tx_pos: 1, + value: 546, + txid: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + tx_pos: 1, + value: 546, + txid: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + tx_pos: 1, + value: 546, + txid: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + tx_pos: 1, + value: 546, + txid: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + tx_pos: 1, + value: 546, + txid: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '2e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + tx_pos: 1, + value: 546, + txid: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '3e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + tx_pos: 1, + value: 546, + txid: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '4e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + tx_pos: 1, + value: 546, + txid: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '5e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], +}; + +export const legacyHydrateUtxosResponse = { + slpUtxos: [ + { + utxos: [], + address: 'bitcoincash:qzqpcnas8wpxzgvg52lcs34fxrfnv4xwwvc8vkd3v4', + }, + { + utxos: [], + address: 'bitcoincash:qpg4sucvkh0gy3fv3yd8fqj7grg6gxwyus753nq8c7', + }, + { + utxos: [ + { + height: 681187, + tx_hash: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + tx_pos: 0, + value: 1000, + txid: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + tx_pos: 0, + value: 2000, + txid: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + tx_pos: 0, + value: 9000, + txid: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + tx_pos: 0, + value: 11000, + txid: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + tx_pos: 0, + value: 7000, + txid: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + tx_pos: 0, + value: 12000, + txid: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + tx_pos: 0, + value: 8000, + txid: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + tx_pos: 0, + value: 10000, + txid: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + tx_pos: 0, + value: 3000, + txid: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + tx_pos: 0, + value: 6000, + txid: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + tx_pos: 0, + value: 4000, + txid: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + tx_pos: 0, + value: 5000, + txid: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + tx_pos: 1, + value: 546, + txid: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '10', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + tx_pos: 1, + value: 546, + txid: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '6', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + tx_pos: 1, + value: 546, + txid: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + tx_pos: 1, + value: 546, + txid: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + tx_pos: 1, + value: 546, + txid: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + tx_pos: 1, + value: 546, + txid: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + tx_pos: 1, + value: 546, + txid: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + tx_pos: 1, + value: 546, + txid: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + tx_pos: 1, + value: 546, + txid: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + tx_pos: 1, + value: 546, + txid: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '11', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + tx_pos: 1, + value: 546, + txid: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + tx_pos: 1, + value: 546, + txid: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + tx_pos: 1, + value: 546, + txid: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + tx_pos: 1, + value: 546, + txid: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + tx_pos: 1, + value: 546, + txid: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + tx_pos: 1, + value: 546, + txid: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '2e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + tx_pos: 1, + value: 546, + txid: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '3e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + tx_pos: 1, + value: 546, + txid: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '4e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + tx_pos: 1, + value: 546, + txid: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '5e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], +}; diff --git a/web/cashtab/src/hooks/__tests__/useBCH.test.js b/web/cashtab/src/hooks/__tests__/useBCH.test.js --- a/web/cashtab/src/hooks/__tests__/useBCH.test.js +++ b/web/cashtab/src/hooks/__tests__/useBCH.test.js @@ -8,6 +8,10 @@ import mockTxHistory from '../__mocks__/mockTxHistory'; import mockFlatTxHistory from '../__mocks__/mockFlatTxHistory'; import mockTxDataWithPassthrough from '../__mocks__/mockTxDataWithPassthrough'; +import { + flattenedHydrateUtxosResponse, + legacyHydrateUtxosResponse, +} from '../__mocks__/mockHydrateUtxosBatched'; import { tokenSendWdt, tokenReceiveTBS, @@ -81,6 +85,20 @@ ); }); + it(`Parses flattened batched hydrateUtxosResponse to yield same result as legacy unbatched hydrateUtxosResponse`, async () => { + const { getSlpBalancesAndUtxos } = useBCH(); + + const batchedResult = await getSlpBalancesAndUtxos( + flattenedHydrateUtxosResponse, + ); + + const legacyResult = await getSlpBalancesAndUtxos( + legacyHydrateUtxosResponse, + ); + + expect(batchedResult).toStrictEqual(legacyResult); + }); + it('sends BCH correctly', async () => { const { sendBch } = useBCH(); const BCH = new BCHJS(); diff --git a/web/cashtab/src/hooks/useBCH.js b/web/cashtab/src/hooks/useBCH.js --- a/web/cashtab/src/hooks/useBCH.js +++ b/web/cashtab/src/hooks/useBCH.js @@ -2,7 +2,11 @@ import { currency } from '@components/Common/Ticker'; import SlpWallet from 'minimal-slp-wallet'; -import { toSmallestDenomination } from '@utils/cashMethods'; +import { + toSmallestDenomination, + batchArray, + flattenBatchedHydratedUtxos, +} from '@utils/cashMethods'; export default function useBCH() { const SEND_BCH_ERRORS = { @@ -304,15 +308,36 @@ }; const getHydratedUtxoDetails = async (BCH, utxos) => { + const hydrateUtxosPromises = []; + for (let i = 0; i < utxos.length; i += 1) { + let thisAddress = utxos[i].address; + let theseUtxos = utxos[i].utxos; + const batchedUtxos = batchArray( + theseUtxos, + currency.hydrateUtxoBatchSize, + ); + + // Iterate over each utxo in this address field + for (let j = 0; j < batchedUtxos.length; j += 1) { + const utxoSetForThisPromise = [ + { utxos: batchedUtxos[j], address: thisAddress }, + ]; + const thisPromise = BCH.SLP.Utils.hydrateUtxos( + utxoSetForThisPromise, + ); + hydrateUtxosPromises.push(thisPromise); + } + } let hydratedUtxoDetails; try { - hydratedUtxoDetails = await BCH.SLP.Utils.hydrateUtxos(utxos); - return hydratedUtxoDetails; - } catch (err) { - console.log( - `Error in BCH.SLP.Utils.hydrateUtxos(utxosResponse.utxos)`, + hydratedUtxoDetails = await Promise.all(hydrateUtxosPromises); + const flattenedBatchedHydratedUtxos = flattenBatchedHydratedUtxos( + hydratedUtxoDetails, ); + return flattenedBatchedHydratedUtxos; + } catch (err) { + console.log(`Error in Promise.all(hydrateUtxosPromises)`); console.log(err); return err; } diff --git a/web/cashtab/src/utils/__mocks__/flattenBatchedHydratedUtxosMocks.js b/web/cashtab/src/utils/__mocks__/flattenBatchedHydratedUtxosMocks.js new file mode 100644 --- /dev/null +++ b/web/cashtab/src/utils/__mocks__/flattenBatchedHydratedUtxosMocks.js @@ -0,0 +1,2721 @@ +// @generated + +export const unflattenedHydrateUtxosResponse = [ + { + slpUtxos: [ + { + utxos: [ + { + height: 681187, + tx_hash: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + tx_pos: 0, + value: 1000, + txid: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + tx_pos: 0, + value: 2000, + txid: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + tx_pos: 0, + value: 9000, + txid: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + tx_pos: 0, + value: 11000, + txid: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + tx_pos: 0, + value: 7000, + txid: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + tx_pos: 0, + value: 12000, + txid: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + tx_pos: 0, + value: 8000, + txid: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + tx_pos: 0, + value: 10000, + txid: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + tx_pos: 0, + value: 3000, + txid: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + }, + { + slpUtxos: [ + { + utxos: [ + { + height: 681188, + tx_hash: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + tx_pos: 0, + value: 6000, + txid: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + tx_pos: 0, + value: 4000, + txid: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + tx_pos: 0, + value: 5000, + txid: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + tx_pos: 1, + value: 546, + txid: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '10', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + tx_pos: 1, + value: 546, + txid: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '6', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + tx_pos: 1, + value: 546, + txid: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + tx_pos: 1, + value: 546, + txid: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + tx_pos: 1, + value: 546, + txid: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + tx_pos: 1, + value: 546, + txid: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + tx_pos: 1, + value: 546, + txid: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + }, + { + slpUtxos: [ + { + utxos: [ + { + height: 681189, + tx_hash: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + tx_pos: 1, + value: 546, + txid: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + tx_pos: 1, + value: 546, + txid: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + tx_pos: 1, + value: 546, + txid: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '11', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + tx_pos: 1, + value: 546, + txid: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + tx_pos: 1, + value: 546, + txid: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + tx_pos: 1, + value: 546, + txid: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + tx_pos: 1, + value: 546, + txid: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + tx_pos: 1, + value: 546, + txid: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + }, + { + slpUtxos: [ + { + utxos: [ + { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + tx_pos: 1, + value: 546, + txid: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '2e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + tx_pos: 1, + value: 546, + txid: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '3e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + tx_pos: 1, + value: 546, + txid: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '4e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + tx_pos: 1, + value: 546, + txid: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '5e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + }, +]; + +export const flattenedHydrateUtxosResponse = { + slpUtxos: [ + { + utxos: [ + { + height: 681187, + tx_hash: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + tx_pos: 0, + value: 1000, + txid: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + tx_pos: 0, + value: 2000, + txid: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + tx_pos: 0, + value: 9000, + txid: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + tx_pos: 0, + value: 11000, + txid: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + tx_pos: 0, + value: 7000, + txid: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + tx_pos: 0, + value: 12000, + txid: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + tx_pos: 0, + value: 8000, + txid: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + tx_pos: 0, + value: 10000, + txid: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + tx_pos: 0, + value: 3000, + txid: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681188, + tx_hash: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + tx_pos: 0, + value: 6000, + txid: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + tx_pos: 0, + value: 4000, + txid: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + tx_pos: 0, + value: 5000, + txid: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + vout: 0, + isValid: false, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + tx_pos: 1, + value: 546, + txid: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '10', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + tx_pos: 1, + value: 546, + txid: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '6', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + tx_pos: 1, + value: 546, + txid: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + tx_pos: 1, + value: 546, + txid: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + tx_pos: 1, + value: 546, + txid: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + tx_pos: 1, + value: 546, + txid: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + tx_pos: 1, + value: 546, + txid: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681189, + tx_hash: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + tx_pos: 1, + value: 546, + txid: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + tx_pos: 1, + value: 546, + txid: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + tx_pos: 1, + value: 546, + txid: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '11', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + tx_pos: 1, + value: 546, + txid: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + tx_pos: 1, + value: 546, + txid: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + tx_pos: 1, + value: 546, + txid: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + tx_pos: 1, + value: 546, + txid: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + tx_pos: 1, + value: 546, + txid: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + utxos: [ + { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + tx_pos: 1, + value: 546, + txid: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '2e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + tx_pos: 1, + value: 546, + txid: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '3e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + tx_pos: 1, + value: 546, + txid: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '4e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + tx_pos: 1, + value: 546, + txid: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '5e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], +}; + +export const batchedFinal = { + tokens: [ + { + info: { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + balance: '66.0000001', + hasBaton: false, + }, + { + info: { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + balance: '15', + hasBaton: false, + }, + { + info: { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + balance: '1', + hasBaton: false, + }, + { + info: { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + balance: '1', + hasBaton: false, + }, + { + info: { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + balance: '1e-8', + hasBaton: false, + }, + { + info: { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + balance: '1', + hasBaton: false, + }, + { + info: { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: + 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + balance: '1.5e-8', + hasBaton: false, + }, + ], + nonSlpUtxos: [ + { + height: 681187, + tx_hash: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + tx_pos: 0, + value: 1000, + txid: + '0d391574918bf5ecbb00fa0c48d2a88be80c4b86a421992309f28871186b40fe', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + tx_pos: 0, + value: 2000, + txid: + '09eb70948f37e22eda0e425daed577cbb665794fea8b69da558700aabf95d9ab', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + tx_pos: 0, + value: 9000, + txid: + '0bdfe5a8eae0b00ad18d4fe2dba0ec20e661a8739348163bef484a90e049fa17', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + tx_pos: 0, + value: 11000, + txid: + '12db7f983196388991f901bb76da6f00cbb7ce8261d5a3194ea34bc4ee03b218', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + tx_pos: 0, + value: 7000, + txid: + '31ad22a45f2510044407df031f97816006295d0a4f1e424a38835865010a107b', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + tx_pos: 0, + value: 12000, + txid: + '76c473666913b517a34c25a00a06e8da128267b832a8be900db59cbe3de36b77', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + tx_pos: 0, + value: 8000, + txid: + '9d5399046bf89de7d1d1f725066d1c9a9eb26877d622f0236b5bd0b59dbc55c9', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + tx_pos: 0, + value: 10000, + txid: + 'a6347e8b522835ef1592996b668a87290f44cc26eec7f41a20f7b3a2f1e7ae31', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + tx_pos: 0, + value: 3000, + txid: + 'cc3f8684f9fbeffa8e9142c3c29c411d267a20bc758e0230f3ac60082b1409c4', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + tx_pos: 0, + value: 6000, + txid: + 'd491dc4ae9959bd6e95ad733eec1f97977b7d7fe400e83a47277a337d4e2ea43', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + tx_pos: 0, + value: 4000, + txid: + 'd736a55663aa176581b6484e0d3b499cbf7ad1a57e6fc9ac547cec67b41fd0ba', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681188, + tx_hash: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + tx_pos: 0, + value: 5000, + txid: + 'e7a70afaf07ca689066ed36facc7c86b0e24da2d4c5fa6f5e1fd1806f5a39ec2', + vout: 0, + isValid: false, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], + slpUtxos: [ + { + height: 681188, + tx_hash: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + tx_pos: 1, + value: 546, + txid: + '5b74e05ced6b7d862fe9cab94071b2ccfa475c0cef94b90c7edb8a06f90e5ad6', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1e-7', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + tx_pos: 1, + value: 546, + txid: + '0aacdb7d85c466a7d6d4edf127883da40b05617d9c4ff7493bde3c973f22231d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '10', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + tx_pos: 1, + value: 546, + txid: + '2cc8f480e9adfb74aff7351bdbbf12ed8972e35fb8bd0f43b9ea5e4aeaec5693', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '6', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + tx_pos: 1, + value: 546, + txid: + '36bdf8461dbc19ff46681e9bcb6d5312c8d276ef17779ff8016d647594c39991', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + tx_pos: 1, + value: 546, + txid: + '6b1476b65d3e29248c3809e18add16cddfee9e1d9a7060df97b35e517e8b7131', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '7', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + tx_pos: 1, + value: 546, + txid: + '986dc9f9cc91e9976f2a8470805ab3b6bccfd4eaf224cdfa35bb62294bd8aac3', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + tx_pos: 1, + value: 546, + txid: + 'c4ef58f111ae86c7e1a9be4d5b553de6f6061b4bdca130d360c4e18476679ad7', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + tx_pos: 1, + value: 546, + txid: + 'c551e9ea96ce844bb1aaee65c99a312bb5fa66f8f822ab45dec63c7c3b77bbe5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + tx_pos: 1, + value: 546, + txid: + 'da2af7958ab41e892c63d6a68be0cb4a0fd3315f2d5d5d7c51f92891187b9f1f', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + tx_pos: 1, + value: 546, + txid: + 'e69c1b507f7ca3dfac790e26fbd132085cf1796648563a5facfe3c82a6401e6c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '8', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + tx_pos: 1, + value: 546, + txid: + 'f38ccfa615e38f0c871f4eb35db420157808014f1f5743f1522529253c0c4c56', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '11', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681189, + tx_hash: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + tx_pos: 1, + value: 546, + txid: + 'f3a106c523a1af4c3d68d3c82a015f3d7c890f590b410bde535b5ad392c447a4', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d', + tokenTicker: 'WDT', + tokenName: + 'Test Token With Exceptionally Long Name For CSS And Style Revisions', + tokenDocumentUrl: + 'https://www.ImpossiblyLongWebsiteDidYouThinkWebDevWouldBeFun.org', + tokenDocumentHash: + '����\\�IS\u001e9�����k+���\u0018���\u001b]�߷2��', + decimals: 7, + tokenType: 1, + tokenQty: '9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + tx_pos: 1, + value: 546, + txid: + '52fe0ccf7b5936095bbdadebc0de9f844a99457096ca4f7b45543a2badefdf35', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '4', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + tx_pos: 1, + value: 546, + txid: + 'aa50baef76708fee1f19bd098c0d7407b64b280afd76a450067a89ab2bddd3e8', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '2', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + tx_pos: 1, + value: 546, + txid: + 'bfc175d1933aed136d7bd887481144ec42112c34e7889cf3f21013409e233e3d', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '3', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + tx_pos: 1, + value: 546, + txid: + 'c2d2e57203f5d66c3bddd3f4fd5ccb053006588bfa0fec76bdbbfd2169984e9c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681190, + tx_hash: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + tx_pos: 1, + value: 546, + txid: + 'e9dca9aa954131a0004325fff11dfddcd6e5843c468116cf4d38cb264032cdc0', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1f6a65e7a4bde92c0a012de2bcf4007034504a765377cdf08a3ee01d1eaa6901', + tokenTicker: '🍔', + tokenName: 'Burger', + tokenDocumentUrl: + 'https://c4.wallpaperflare.com/wallpaper/58/564/863/giant-hamburger-wallpaper-preview.jpg', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + tx_pos: 1, + value: 546, + txid: + '091c9f32deb2f4f3733673803f51acf050b65d8042d1561824c6cd22d14bb43b', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '4bd147fc5d5ff26249a9299c46b80920c0b81f59a60e05428262160ebee0b0c3', + tokenTicker: 'NOCOVID', + tokenName: 'Covid19 Lifetime Immunity', + tokenDocumentUrl: + 'https://www.who.int/emergencies/diseases/novel-coronavirus-2019/covid-19-vaccines', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '5', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + tx_pos: 1, + value: 546, + txid: + 'b35c502f388cdfbdd6841b7a73e973149b3c8deca76295a3e4665939e0562796', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'dd84ca78db4d617221b58eabc6667af8fe2f7eadbfcc213d35be9f1b419beb8d', + tokenTicker: 'TAP', + tokenName: 'Thoughts and Prayers', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + tx_pos: 1, + value: 546, + txid: + 'c70408fca1a5bf48f338f7ef031e586293be6948a5bff1fbbdd4eb923ef11e59', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + 'df808a41672a0a0ae6475b44f272a107bc9961b90f29dc918d71301f24fe92fb', + tokenTicker: 'NAKAMOTO', + tokenName: 'NAKAMOTO', + tokenDocumentUrl: '', + tokenDocumentHash: '', + decimals: 8, + tokenType: 1, + tokenQty: '1e-8', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + tx_pos: 1, + value: 546, + txid: + 'e1097932e5a607c100dc73fa18169be2e501e1782c7c94500742974d6353476c', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '7f8889682d57369ed0e32336f8b7e0ffec625a35cca183f4e81fde4e71a538a1', + tokenTicker: 'HONK', + tokenName: 'HONK HONK', + tokenDocumentUrl: 'THE REAL HONK SLP TOKEN', + tokenDocumentHash: '', + decimals: 0, + tokenType: 1, + tokenQty: '1', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681191, + tx_hash: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + tx_pos: 1, + value: 546, + txid: + 'f6ef57f697219aaa576bf43d69a7f8b8753dcbcbb502f602259a7d14fafd52c5', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '1e-9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + tx_pos: 1, + value: 546, + txid: + '43a925c679debac91183b0ccd08780cc94dc58d79cdb506df92ed5963c6bbb34', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '2e-9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + tx_pos: 1, + value: 546, + txid: + '880baf5691c2b4c5a22ae4032e2004c0c54bfabf003468044a2e341846137136', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '3e-9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + tx_pos: 1, + value: 546, + txid: + 'b7f8b23f5ce12842eb655239919b6142052a2fa2b2ce974a4baac36b0137f332', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '4e-9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + { + height: 681192, + tx_hash: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + tx_pos: 1, + value: 546, + txid: + 'f27ff24c15b01c30d44218c6dc8706fd33cc7bc9b4b38399075f0f41d8e412af', + vout: 1, + utxoType: 'token', + transactionType: 'send', + tokenId: + '1101bd5d7b6bbc3176fb2b93d08e76ab532b04ff731d71502249e3cb9b6fcb1a', + tokenTicker: 'XBIT', + tokenName: 'eBits', + tokenDocumentUrl: 'https://boomertakes.com/', + tokenDocumentHash: '', + decimals: 9, + tokenType: 1, + tokenQty: '5e-9', + isValid: true, + address: 'bitcoincash:qqartrrq3npyzpcqswq2hcslstzu38mq8gvgtuqfpf', + }, + ], +}; diff --git a/web/cashtab/src/utils/__mocks__/mockBatchedArrays.js b/web/cashtab/src/utils/__mocks__/mockBatchedArrays.js new file mode 100644 --- /dev/null +++ b/web/cashtab/src/utils/__mocks__/mockBatchedArrays.js @@ -0,0 +1,3 @@ +// @generated +export const unbatchedArray = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; +export const arrayBatchedByThree = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10]]; diff --git a/web/cashtab/src/utils/__tests__/cashMethods.test.js b/web/cashtab/src/utils/__tests__/cashMethods.test.js --- a/web/cashtab/src/utils/__tests__/cashMethods.test.js +++ b/web/cashtab/src/utils/__tests__/cashMethods.test.js @@ -1,4 +1,20 @@ -import { fromSmallestDenomination, formatBalance } from '@utils/cashMethods'; +import { + fromSmallestDenomination, + formatBalance, + batchArray, + flattenBatchedHydratedUtxos, +} from '@utils/cashMethods'; +import { + unbatchedArray, + arrayBatchedByThree, +} from '../__mocks__/mockBatchedArrays'; + +import { + originalFinal, + batchedFinal, + unflattenedHydrateUtxosResponse, + flattenedHydrateUtxosResponse, +} from '../__mocks__/flattenBatchedHydratedUtxosMocks'; describe('Correctly executes cash utility functions', () => { it(`Correctly converts smallest base unit to smallest decimal for cashDecimals = 2`, () => { @@ -37,4 +53,17 @@ it(`formatBalance handles an input of null`, () => { expect(formatBalance(null)).toBe(null); }); + it(`Correctly converts an array of length 10 to an array of 4 arrays, each with max length 3`, () => { + expect(batchArray(unbatchedArray, 3)).toStrictEqual( + arrayBatchedByThree, + ); + }); + it(`If array length is less than batch size, return original array as first and only element of new array`, () => { + expect(batchArray(unbatchedArray, 20)).toStrictEqual([unbatchedArray]); + }); + it(`Flattens hydrateUtxos from Promise.all() response into array that can be parsed by getSlpBalancesAndUtxos`, () => { + expect( + flattenBatchedHydratedUtxos(unflattenedHydrateUtxosResponse), + ).toStrictEqual(flattenedHydrateUtxosResponse); + }); }); diff --git a/web/cashtab/src/utils/cashMethods.js b/web/cashtab/src/utils/cashMethods.js --- a/web/cashtab/src/utils/cashMethods.js +++ b/web/cashtab/src/utils/cashMethods.js @@ -46,3 +46,59 @@ return x; } }; + +export const batchArray = (inputArray, batchSize) => { + // take an array of n elements, return an array of arrays each of length batchSize + + const batchedArray = []; + for (let i = 0; i < inputArray.length; i += batchSize) { + const tempArray = inputArray.slice(i, i + batchSize); + batchedArray.push(tempArray); + } + return batchedArray; +}; + +export const flattenBatchedHydratedUtxos = batchedHydratedUtxoDetails => { + // Return same result as if only the bulk API call were made + // to do this, just need to move all utxos under one slpUtxos + /* + given + [ + { + slpUtxos: [ + { + utxos: [], + address: '', + } + ], + }, + { + slpUtxos: [ + { + utxos: [], + address: '', + } + ], + } + ] + return [ + { + slpUtxos: [ + { + utxos: [], + address: '' + }, + { + utxos: [], + address: '' + }, + ] + } + */ + const flattenedBatchedHydratedUtxos = { slpUtxos: [] }; + for (let i = 0; i < batchedHydratedUtxoDetails.length; i += 1) { + const theseSlpUtxos = batchedHydratedUtxoDetails[i].slpUtxos[0]; + flattenedBatchedHydratedUtxos.slpUtxos.push(theseSlpUtxos); + } + return flattenedBatchedHydratedUtxos; +};