Page MenuHomePhabricator

[ecash-herald] Show CoinEx withdrawals in daily summaries
ClosedPublic

Authored by bytesofman on Jun 19 2025, 05:15.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABCe60db9c81db8: [ecash-herald] Show CoinEx withdrawals in daily summaries
Summary

Use coinex hot wallet address to show coinex withdrawals like binanace

Test Plan

npm test

image.png (145×237 px, 16 KB)

Diff Detail

Repository
rABC Bitcoin ABC
Branch
coinex-withdrawals
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33653
Build 66785: Build Diffecash-herald-tests
Build 66784: arc lint + arc unit

Event Timeline

Failed tests logs:

====== parse.js functions: summarizeTxHistory summarizes a collection of txs across multiple blocks including fiat prices.parse.js functions summarizeTxHistory summarizes a collection of txs across multiple blocks including fiat prices ======
AssertionError: Expected values to be loosely deep-equal:  [   '<b>14 Oct 2024</b>\n' +     '90,011 blocks\n' +     '➡️38 txs\n' +     '<i>0.00% capacity</i>\n' +     '\n' +     '<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\n' +     'Trading volume: $5,957,333\n' +     'Market cap: $689,047,178\n' +     '\n' +     '<b><i>⛏️3 miners found blocks</i></b>\n' +     '<u>Top 3</u>\n' +     '1. Mining-Dutch, 1 <i>(0%)</i>\n' +     '2. solopool.org, 1 <i>(0%)</i>\n' +     '3. ViaBTC, 1 <i>(0%)</i>\n' +     '\n' +     '<b><i>3 stakers earned $33</i></b>\n' +     '<...  should loosely deep-equal  [   '<b>14 Oct 2024</b>\n' +     '90,011 blocks\n' +     '➡️38 txs\n' +     '<i>0.00% capacity</i>\n' +     '\n' +     '<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\n' +     'Trading volume: $5,957,333\n' +     'Market cap: $689,047,178\n' +     '\n' +     '<b><i>⛏️3 miners found blocks</i></b>\n' +     '<u>Top 3</u>\n' +     '1. Mining-Dutch, 1 <i>(0%)</i>\n' +     '2. solopool.org, 1 <i>(0%)</i>\n' +     '3. ViaBTC, 1 <i>(0%)</i>\n' +     '\n' +     '<b><i>3 stakers earned $33</i></b>\n' +     '<...
AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal:

[
  '<b>14 Oct 2024</b>\n' +
    '90,011 blocks\n' +
    '➡️38 txs\n' +
    '<i>0.00% capacity</i>\n' +
    '\n' +
    '<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\n' +
    'Trading volume: $5,957,333\n' +
    'Market cap: $689,047,178\n' +
    '\n' +
    '<b><i>⛏️3 miners found blocks</i></b>\n' +
    '<u>Top 3</u>\n' +
    '1. Mining-Dutch, 1 <i>(0%)</i>\n' +
    '2. solopool.org, 1 <i>(0%)</i>\n' +
    '3. ViaBTC, 1 <i>(0%)</i>\n' +
    '\n' +
    '<b><i>3 stakers earned $33</i></b>\n' +
    '<...

should loosely deep-equal

[
  '<b>14 Oct 2024</b>\n' +
    '90,011 blocks\n' +
    '➡️38 txs\n' +
    '<i>0.00% capacity</i>\n' +
    '\n' +
    '<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\n' +
    'Trading volume: $5,957,333\n' +
    'Market cap: $689,047,178\n' +
    '\n' +
    '<b><i>⛏️3 miners found blocks</i></b>\n' +
    '<u>Top 3</u>\n' +
    '1. Mining-Dutch, 1 <i>(0%)</i>\n' +
    '2. solopool.org, 1 <i>(0%)</i>\n' +
    '3. ViaBTC, 1 <i>(0%)</i>\n' +
    '\n' +
    '<b><i>3 stakers earned $33</i></b>\n' +
    '<...
    at Context.<anonymous> (test/parse.test.ts:445:16)
    at processImmediate (node:internal/timers:483:21)

      + expected - actual

       [
      -  "<b>14 Oct 2024</b>\n90,011 blocks\n➡️38 txs\n<i>0.00% capacity</i>\n\n<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\nTrading volume: $5,957,333\nMarket cap: $689,047,178\n\n<b><i>⛏️3 miners found blocks</i></b>\n<u>Top 3</u>\n1. Mining-Dutch, 1 <i>(0%)</i>\n2. solopool.org, 1 <i>(0%)</i>\n3. ViaBTC, 1 <i>(0%)</i>\n\n<b><i>3 stakers earned $33</i></b>\n<b><i> 71 nodes staking <code>251,280,511,703.14</code> XEC ($8.76M)</i></b>\n<u>Top 3</u>\n1. <a href=\"https://explorer.e.cash/address/ecash:qzs8hq2pj4hu5j09fdr5uhha3986h2mthvfp7362nu\">qzs...2nu</a>, 1 <i>(0% won, 1% expected)</i>\n2. <a href=\"https://explorer.e.cash/address/ecash:qr42c8c04tqndscfrdnl0rzterg0qdaegyjzt8egyg\">qr4...gyg</a>, 1 <i>(0% won, 9% expected)</i>\n3. <a href=\"https://explorer.e.cash/address/ecash:qqvhatumna957qu0je78dnc9pc7c7hu89crkq6k0cd\">qqv...0cd</a>, 1 <i>(0%)</i>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n <b>1</b> new user received <b>42 XEC</b>\n <b>1</b> <a href=\"https://cashtab.com/#/token/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> reward\n\n <b><i>7 Agora token txs from 4 tokens</i></b>\n <b><i>$0.004</i></b>\nBuy, List, ❌Cancel\n<a href=\"https://cashtab.com/#/token/116e5bd33747cd23377fa220e7dc4812b6996d0cfe4776fc9c0cf8bf4cce933f\">Tiberium</a> (TB): x2 ($0.004)❌\n<a href=\"https://cashtab.com/#/token/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">Cachet</a> (CACHET):  ($0.0003)\n<a href=\"https://cashtab.com/#/token/20a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8\">Vespene Gas</a> (VSP): ❌\n<a href=\"https://cashtab.com/#/token/01d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896\">Bull</a> (BULL): \n\n <b><i>3 Agora NFT txs from 2 NFTs in 2 collections</i></b>\n <b><i>$0.465</i></b>\n<a href=\"https://cashtab.com/#/token/78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c\">xolosArmyPOP</a> (RMZPOP):  ($0.465)\n<a href=\"https://cashtab.com/#/token/0fb781a98fffb980b1c9c609f62b29783c348e74aa7ea3908dcf7f46388ab316\">Flags</a> (FLAGS): ❌\n\n <b><i>16 token txs from 4 tokens</i></b>\n<a href=\"https://cashtab.com/#/token/04009a8be347f21a1122964c3226b99c36a9bd755c5a450a53848471a2466103\">Perpetua</a> (PRP): ➡️\n<a href=\"https://cashtab.com/#/token/116e5bd33747cd23377fa220e7dc4812b6996d0cfe4776fc9c0cf8bf4cce933f\">Tiberium</a> (TB): ➡️\n<a href=\"https://cashtab.com/#/token/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">Credo In Unum Deo</a> (CRD): ➡️\n<a href=\"https://cashtab.com/#/token/20a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8\">Vespene Gas</a> (VSP): ➡️\n\n <b><i>2 NFT txs from 2 NFTs in 2 collections</i></b>\n<a href=\"https://cashtab.com/#/token/8fd3f14abd2b176a1d4bd5136542cd2a7ba3df0e11947dd19326c9d1cd81ae09\">Xoloitzcuintli NFT Cigar Collection.</a> (RMZsmoke): \n<a href=\"https://cashtab.com/#/token/78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c\">xolosArmyPOP</a> (RMZPOP): ➡️\n\n <b><i>1 NFT mint</i></b>\n <b><i>2 new variable-supply tokens</i></b>\n <b><i>1 Mint Vault tx</i></b>\n\n <b><i>8 app txs</i></b>\n <b>1</b> <a href=\"https://www.ecashchat.com/\">Article/Reply tx</a>\n⚛️ <b>1</b> CashFusion\n <b>1</b> PayButton tx\n <b>1</b> Airdrop\n✏️ <b>1</b> Cashtab Msg\n <b>1</b> <a href=\"https://www.ecashchat.com/\">eCashChat tx</a>\n <b>1</b> eCashChat Auth\n <b>1</b> Paywall tx\n\n <b><i>Binance</i></b>\n<b>1</b> withdrawal, $0.688\n <b><i>CoinEx</i></b>\n<b>1</b> withdrawal, $15.91k"
      +  "<b>14 Oct 2024</b>\n90,011 blocks\n➡️38 txs\n<i>0.00% capacity</i>\n\n<b>1 XEC = $0.00003487</b> <i>(-0.40%)</i>\nTrading volume: $5,957,333\nMarket cap: $689,047,178\n\n<b><i>⛏️3 miners found blocks</i></b>\n<u>Top 3</u>\n1. Mining-Dutch, 1 <i>(0%)</i>\n2. solopool.org, 1 <i>(0%)</i>\n3. ViaBTC, 1 <i>(0%)</i>\n\n<b><i>3 stakers earned $33</i></b>\n<b><i> 71 nodes staking <code>251,280,511,703.14</code> XEC ($8.76M)</i></b>\n<u>Top 3</u>\n1. <a href=\"https://explorer.e.cash/address/ecash:qzs8hq2pj4hu5j09fdr5uhha3986h2mthvfp7362nu\">qzs...2nu</a>, 1 <i>(0% won, 1% expected)</i>\n2. <a href=\"https://explorer.e.cash/address/ecash:qr42c8c04tqndscfrdnl0rzterg0qdaegyjzt8egyg\">qr4...gyg</a>, 1 <i>(0% won, 9% expected)</i>\n3. <a href=\"https://explorer.e.cash/address/ecash:qqvhatumna957qu0je78dnc9pc7c7hu89crkq6k0cd\">qqv...0cd</a>, 1 <i>(0%)</i>\n\n<a href=\"https://cashtab.com/\">Cashtab</a>\n <b>1</b> new user received <b>42 XEC</b>\n <b>1</b> <a href=\"https://cashtab.com/#/token/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">CACHET</a> reward\n\n <b><i>7 Agora token txs from 4 tokens</i></b>\n <b><i>$0.004</i></b>\nBuy, List, ❌Cancel\n<a href=\"https://cashtab.com/#/token/116e5bd33747cd23377fa220e7dc4812b6996d0cfe4776fc9c0cf8bf4cce933f\">116...33f</a>: x2 ($0.004)❌\n<a href=\"https://cashtab.com/#/token/aed861a31b96934b88c0252ede135cb9700d7649f69191235087a3030e553cb1\">aed...cb1</a>:  ($0.0003)\n<a href=\"https://cashtab.com/#/token/20a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8\">20a...6f8</a>: ❌\n<a href=\"https://cashtab.com/#/token/01d63c4f4cb496829a6743f7b1805d086ea3877a1dd34b3f92ffba2c9c99f896\">01d...896</a>: \n\n <b><i>3 Agora NFT txs from 2 NFTs in 2 collections</i></b>\n <b><i>$0.465</i></b>\n<a href=\"https://cashtab.com/#/token/78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c\">78e...e2c</a>:  ($0.465)\n<a href=\"https://cashtab.com/#/token/0fb781a98fffb980b1c9c609f62b29783c348e74aa7ea3908dcf7f46388ab316\">0fb...316</a>: ❌\n\n <b><i>16 token txs from 4 tokens</i></b>\n<a href=\"https://cashtab.com/#/token/04009a8be347f21a1122964c3226b99c36a9bd755c5a450a53848471a2466103\">040...103</a>: ➡️\n<a href=\"https://cashtab.com/#/token/116e5bd33747cd23377fa220e7dc4812b6996d0cfe4776fc9c0cf8bf4cce933f\">116...33f</a>: ➡️\n<a href=\"https://cashtab.com/#/token/cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145\">cdc...145</a>: ➡️\n<a href=\"https://cashtab.com/#/token/20a0b9337a78603c6681ed2bc541593375535dcd9979196620ce71f233f2f6f8\">20a...6f8</a>: ➡️\n\n <b><i>2 NFT txs from 2 NFTs in 2 collections</i></b>\n<a href=\"https://cashtab.com/#/token/8fd3f14abd2b176a1d4bd5136542cd2a7ba3df0e11947dd19326c9d1cd81ae09\">8fd...e09</a>: \n<a href=\"https://cashtab.com/#/token/78efa5177e99bf05b48948ac7e23e6cc2255764e52ccf7092afb979a766dee2c\">78e...e2c</a>: ➡️\n\n <b><i>1 NFT mint</i></b>\n <b><i>2 new variable-supply tokens</i></b>\n <b><i>1 Mint Vault tx</i></b>\n\n <b><i>8 app txs</i></b>\n <b>1</b> <a href=\"https://www.ecashchat.com/\">Article/Reply tx</a>\n⚛️ <b>1</b> CashFusion\n <b>1</b> PayButton tx\n <b>1</b> Airdrop\n✏️ <b>1</b> Cashtab Msg\n <b>1</b> <a href=\"https://www.ecashchat.com/\">eCashChat tx</a>\n <b>1</b> eCashChat Auth\n <b>1</b> Paywall tx\n\n <b><i>Binance</i></b>\n<b>1</b> withdrawal, $0.688\n <b><i>CoinEx</i></b>\n<b>1</b> withdrawal, $15.91k"
       ]

Each failure log is accessible here:
parse.js functions: summarizeTxHistory summarizes a collection of txs across multiple blocks including fiat prices.parse.js functions summarizeTxHistory summarizes a collection of txs across multiple blocks including fiat prices

bytesofman edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Jun 19 2025, 16:27