We do not really want to round everything bigger than 1000 to no decimal places. Also, we should accept bigint for satoshis input.
Needed for D17180. Split out here for "one thing" isolation.
Differential D17181
[ecash-herald] Improve satsToFormattedValue fn bytesofman on Thu, Nov 21, 23:03. Authored by Tags None Subscribers None
Details
We do not really want to round everything bigger than 1000 to no decimal places. Also, we should accept bigint for satoshis input. Needed for D17180. Split out here for "one thing" isolation. npm test
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (ecash-herald-tests) failed.
Failed tests logs: ====== ecash-herald chronikWsHandler.js: parseWebsocketMessage creates and sends a telegram msg with prices and token send info for mocked block on successful API calls.ecash-herald chronikWsHandler.js parseWebsocketMessage creates and sends a telegram msg with prices and token send info for mocked block on successful API calls ====== AssertionError: Expected values to be loosely deep-equal: [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... should loosely deep-equal [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... should loosely deep-equal [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... at Context.<anonymous> (test/chronikWsHandler.test.ts:198:16) + expected - actual [ { "channelId": "-1001999999999" - "msg": "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1.31k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" + "msg": "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" "options": { "disable_web_page_preview": true "parse_mode": "HTML" } "success": true } { "channelId": "-1001999999999" - "msg": "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584.11k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$106.58k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" + "msg": "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$107k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" "options": { "disable_web_page_preview": true "parse_mode": "HTML" } ====== ecash-herald events.js: handleBlockFinalized creates and sends a telegram msg with price and token send info for mocked block if api call succeeds.ecash-herald events.js handleBlockFinalized creates and sends a telegram msg with price and token send info for mocked block if api call succeeds ====== AssertionError: Expected values to be loosely deep-equal: [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... should loosely deep-equal [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... should loosely deep-equal [ { channelId: '-1001999999999', msg: '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' +... at Context.<anonymous> (test/events.test.ts:124:16) + expected - actual [ { "channelId": "-1001999999999" - "msg": "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1.31k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" + "msg": "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" "options": { "disable_web_page_preview": true "parse_mode": "HTML" } "success": true } { "channelId": "-1001999999999" - "msg": "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584.11k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$106.58k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" + "msg": "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$107k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" "options": { "disable_web_page_preview": true "parse_mode": "HTML" } ====== parse.js functions: Parses the master test block.parse.js functions Parses the master test block ====== AssertionError: Expected values to be loosely deep-equal: [ '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' + '<a href="https://explorer.e.cash/tx/010114b9bbe776... should loosely deep-equal [ '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' + '<a href="https://explorer.e.cash/tx/010114b9bbe776... AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: [ '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' + '<a href="https://explorer.e.cash/tx/010114b9bbe776... should loosely deep-equal [ '<a href="https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000">819346</a> | 27 txs | unknown, ...863u\n' + '⏰ 20,654 blocks until eCash halving\n' + '$63 to <a href="https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt">qrp...cwt</a>\n' + '1 XEC = $0.0001\n' + '1 BTC = $30,000\n' + '1 ETH = $2,000\n' + '\n' + '<b>1 new eToken created</b>\n' + '<a href="https://explorer.e.cash/tx/010114b9bbe776... at Context.<anonymous> (test/parse.test.ts:71:16) at processImmediate (node:internal/timers:483:21) + expected - actual [ - "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1.31k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" - "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584.11k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$106.58k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" + "<a href=\"https://explorer.e.cash/block/0000000000000000000000000000000000000000000000000000000000000000\">819346</a> | 27 txs | unknown, ...863u\n⏰ 20,654 blocks until eCash halving\n$63 to <a href=\"https://explorer.e.cash/address/ecash:qrpkjsd0fjxd7m332mmlu9px6pwkzaufpcn2u7jcwt\">qrp...cwt</a>\n1 XEC = $0.0001\n1 BTC = $30,000\n1 ETH = $2,000\n\n<b>1 new eToken created</b>\n<a href=\"https://explorer.e.cash/tx/010114b9bbe776def1a512ad1e96a4a06ec4c34fc79bcb5d908845f5102f6b0f\">LOLLY</a> (Lolly) <a href=\"https://cashtab.com/\">[doc]</a>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n<b>3</b> <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> rewards\n<b>2</b> new users received <b>84 XEC</b>\n\n2 txs sent 10.2000 <a href=\"https://explorer.e.cash/tx/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo (CRD)</a>\n1 tx sent 100.00 <a href=\"https://explorer.e.cash/tx/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet (CACHET)</a>\n1 tx sent 55 <a href=\"https://explorer.e.cash/tx/98183238638ecb4ddc365056e22de0e8a05448c1e6084bae247fae5a74ad4f48\">Delta Variant Variants (DVV)</a>\n1 tx sent 10.9876543 <a href=\"https://explorer.e.cash/tx/7443f7c831cdf2b2b04d5f0465ed0bcf348582675b0e4f17906438c232c22f3d\">Test Token With Exceptionally Long Name For CSS And Style Revisions (WDT)</a>\n1 tx sent 5,000,000.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRUMPY (GRP)</a>\n1 tx sent 356.6918 <a href=\"https://explorer.e.cash/tx/7e7dacd72dcdb14e00a03dd3aff47f019ed51a6f1f4e4f532ae50692f62bc4e5\">Badger Universal Token (BUX)</a>\n\n<b>1 eToken burn tx</b>\nqp9...et0 <a href=\"https://explorer.e.cash/tx/6b139007a0649f99a1a099c7c924716ee1920f74ea83111f6426854d4c3c3c79\">burned</a> 1.00 <a href=\"https://explorer.e.cash/tx/fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa\">GRP</a> \n\n<b>9 app txs</b>\n⚛️<a href=\"https://explorer.e.cash/tx/d5be7a4b483f9fdbbe3bf46cfafdd0100d5dbeee0b972f4dabc8ae9d9962fa55\">CashFusion:</a> Fused $1k from 64 inputs into 63 outputs\n❓<a href=\"https://explorer.e.cash/tx/b5782d3a3b55e5ee9e4330a969c2891042ae05fafab7dc05cd14da63e7242f8e\">unknown:</a> 0x663ddd99990bcd9699...\n❓<a href=\"https://explorer.e.cash/tx/9094e1aab7ac73c680bf66e78cc8311831b3d813e608bff1e07b1854855fc0f1\">unknown:</a> =:ETH.ETH:0xa9aaF30F65955C69c16B3345B51D426D9B88Ba87:841321:tr:0\n<a href=\"https://explorer.e.cash/tx/7a0d6ae3384e293183478f681f51a77ef4c71f29957199364bb9ba4d8e1938be\">Airdrop:</a> qru...jys airdropped $5 to 13 holders of <a href=\"https://explorer.e.cash/tx/b76878b29eff39c8c28aaed7d18a166c20057c43beeb90b630264470983c984a\">eAfrica</a>|Stay with us, eCash Africa is the next big community in the African cryptosphere. \n<a href=\"https://explorer.e.cash/tx/d02d94a1a520877c60d1e3026c3e85f8995d48d7b90140f83e24ede592c30306\">Cashtab Msg, $1 for $0.0005:</a> I like eCash\n<a href=\"https://explorer.e.cash/tx/1083da7ead4779fbab5c5e8291bb7a37abaf4f97f5ff99ee654759b2eaee445b\">Cashtab Encrypted:</a> qq9...fgx sent an encrypted message and $0.002 to qzv...fed\n<a href=\"https://explorer.e.cash/tx/22135bb69435023a84c80b1b93b31fc8898c3507eaa70569ed038f32d59599a9\">Alias (beta):</a> doge2\n<a href=\"https://explorer.e.cash/tx/ad44bf5e214ab71bb60a2eee165f368c139cd49c2380c3352f0a4fffc746b36a\">SWaP:</a> Signal|SLP Atomic Swap|<a href=\"https://explorer.e.cash/tx/aebcae9afe88d61d8b8ed7b8c83c7c2a555583bf8f8591c94a2c9eb82f34816c\">GORB</a>|SELL for 159,883.54 XEC|Min trade: 0 XEC\n<a href=\"https://explorer.e.cash/tx/a8c348539a1470b28b9f99693994b918b475634352994dddce80ad544e871b3a\">memo:</a> Reply to memo|<a href=\"https://explorer.e.cash/tx/eae5710aba50a0a22b266ddbb445e05b7348d15c88cbc2e012a91a09bec3861a\">memo</a>|Twitter keeps turning their API on and off. Sometimes it works, sometimes it doesn't. Feature to create tweets from memo may work again at some point.\n\n<b>3 eCash txs</b>" + "<a href=\"https://explorer.e.cash/tx/4f33c81d95641eb0f80e793dc96c58a2438f9bb1f18750d8fb3b56c28cd25035\">$584k for $0.0003</a> Binance ➡️ itself\n<a href=\"https://explorer.e.cash/tx/f5d4c112cfd22701226ba050cacfacc3aff570964c6196f67e326fc3224300a2\">$107k for $0.003</a> qp7...sr4 ➡️ qzj...ksg\n<a href=\"https://explorer.e.cash/tx/413b57617d2c497b137d31c53151fee595415ec273ef7a111160da8093147ed8\">$0.0005 for $0.0005</a>" ] Each failure log is accessible here: |