T3441
Listen for txs by tokenId through websocket subscription
Differential D15627
[chronik-client] Subscribe to a tokenId with websocket bytesofman on Mar 4 2024, 21:45. Authored by Tags None Subscribers None
Details
T3441 Listen for txs by tokenId through websocket subscription CI
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (chronik-client-tests) failed.
Tail of the build log: /work/modules/chronik-client /work/abc-ci-builds/chronik-client-tests > chronik-client@0.24.0 prepublish > npm run build > chronik-client@0.24.0 build > tsc src/ChronikClientNode.ts(516,35): error TS2345: Argument of type 'WsSubTokenId' is not assignable to parameter of type 'WsSubScriptClient'. Type 'WsSubTokenId' is missing the following properties from type 'WsSubScriptClient': scriptType, payload src/ChronikClientNode.ts(523,24): error TS2352: Conversion of type 'WsSubTokenId' to type 'WsSubScriptClient' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Type 'WsSubTokenId' is missing the following properties from type 'WsSubScriptClient': scriptType, payload src/ChronikClientNode.ts(526,41): error TS2345: Argument of type 'WsSubTokenId' is not assignable to parameter of type 'WsSubScriptClient'. npm ERR! code 2 npm ERR! path /work/modules/chronik-client npm ERR! command failed npm ERR! command sh -c npm run build npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-04T21_45_58_430Z-debug-0.log Build chronik-client-tests failed with exit code 2 Comment Actions Tail of the build log: [517/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/addressbookpage.cpp.o [518/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/trafficgraphwidget.cpp.o [519/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/coincontroltreewidget.cpp.o [520/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/createwalletdialog.cpp.o [521/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/editaddressdialog.cpp.o [522/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/askpassphrasedialog.cpp.o [523/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/peertablemodel.cpp.o [524/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/splashscreen.cpp.o [525/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/openuridialog.cpp.o [526/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/qrc_bitcoin_locale.cpp.o [527/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/qrimagewidget.cpp.o [528/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionfilterproxy.cpp.o [529/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/addresstablemodel.cpp.o [530/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/overviewpage.cpp.o [531/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/receiverequestdialog.cpp.o [532/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiondescdialog.cpp.o [533/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/sendcoinsentry.cpp.o [534/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/recentrequeststablemodel.cpp.o [535/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionrecord.cpp.o [536/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/receivecoinsdialog.cpp.o [537/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/coincontroldialog.cpp.o [538/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/rpcconsole.cpp.o [539/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactionview.cpp.o [540/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletframe.cpp.o [541/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiontablemodel.cpp.o [542/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/signverifymessagedialog.cpp.o [543/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletmodeltransaction.cpp.o [544/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/transactiondesc.cpp.o [545/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/paymentserver.cpp.o [546/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/paymentrequestplus.cpp.o [547/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletcontroller.cpp.o [548/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/sendcoinsdialog.cpp.o [549/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletview.cpp.o [550/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt-base.dir/walletmodel.cpp.o [551/555] Linking CXX static library src/qt/libbitcoin-qt-base.a [552/555] Automatic MOC for target bitcoin-qt [553/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/bitcoin-qt_autogen/mocs_compilation.cpp.o [554/555] Building CXX object src/qt/CMakeFiles/bitcoin-qt.dir/main.cpp.o [555/555] Linking CXX executable src/qt/bitcoin-qt /work/modules/chronik-client /work/abc-ci-builds/chronik-client-integration-tests > chronik-client@0.24.0 prepublish > npm run build > chronik-client@0.24.0 build > tsc src/ChronikClientNode.ts(516,35): error TS2345: Argument of type 'WsSubTokenId' is not assignable to parameter of type 'WsSubScriptClient'. Type 'WsSubTokenId' is missing the following properties from type 'WsSubScriptClient': scriptType, payload src/ChronikClientNode.ts(523,24): error TS2352: Conversion of type 'WsSubTokenId' to type 'WsSubScriptClient' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Type 'WsSubTokenId' is missing the following properties from type 'WsSubScriptClient': scriptType, payload src/ChronikClientNode.ts(526,41): error TS2345: Argument of type 'WsSubTokenId' is not assignable to parameter of type 'WsSubScriptClient'. npm ERR! code 2 npm ERR! path /work/modules/chronik-client npm ERR! command failed npm ERR! command sh -c npm run build npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-03-04T21_51_51_703Z-debug-0.log Build chronik-client-integration-tests failed with exit code 2 Comment Actions Failed tests logs: ====== Get blocktxs, txs, and history for SLP fungible token txs: Can get all of the above txs from the blockTxs endpoint after they are mined in a block.Get blocktxs, txs, and history for SLP fungible token txs Can get all of the above txs from the blockTxs endpoint after they are mined in a block ====== AssertionError: expected [] to deeply equal [ { type: 'Tx', …(2) }, …(3) ] at /work/modules/chronik-client/test/integration/token_slp_fungible.ts:580:38 at Generator.next (<anonymous>) at fulfilled (test/integration/token_slp_fungible.ts:31:58) at processTicksAndRejections (node:internal/process/task_queues:95:5) + expected - actual -[] +[ + { + "msgType": "TX_ADDED_TO_MEMPOOL" + "txid": "cd72d45a162342d998cdff91de970ff43c821e61c1943d15fb87257de4256144" + "type": "Tx" + } + { + "msgType": "TX_CONFIRMED" + "txid": "cd295e7eb883b5826e2d8872b1626a4af4ce7ec81c468f1bfdad14632036d20a" + "type": "Tx" + } + { + "msgType": "TX_CONFIRMED" + "txid": "31417f7a8c8939d5b8da5e0d241e733fd698d5bce384d00f5f682b78dcff944d" + "type": "Tx" + } + { + "msgType": "TX_CONFIRMED" + "txid": "cd72d45a162342d998cdff91de970ff43c821e61c1943d15fb87257de4256144" + "type": "Tx" + } +] Each failure log is accessible here: |