|
Ran
|
Jobs
2
|
Files
940
|
Run time
3min
|
Badge
README BADGES
|
push
github
[LABS-483] Move wallet specific coin handlers out of WSM (#21162) <!-- CURSOR_SUMMARY --> > [!NOTE] > **Medium Risk** > Refactor of wallet coin identification used during sync. Logic is relocated rather than redesigned, but mistakes in wiring could mis-route CAT/DID/NFT/clawback coins. > > **Overview** > Moves coin-type identification out of `WalletStateManager` into the wallets that own that logic. `determine_coin_type` still classifies spends, then delegates to classmethod `identify` on CAT, DID, NFT, PlotNFT, and VC wallets, plus `ClawbackManager.identify`. > > WSM drops `handle_cat` / `handle_did` / `handle_nft` / `handle_clawback` / `handle_vc` and the PlotNFT matching block. Behavior is intended to stay the same: auto-create/convert wallets, stray CAT tracking, DID/NFT caps, clawback records. Clawback identification now takes `add_interested_coin_ids` as a callback instead of calling WSM directly. > > NFT auto-add tests now patch and call `NFTWallet.identify`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit f488a6b87. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
19892 of 24898 branches covered (79.89%)
Branch coverage included in aggregate %.
276 of 289 new or added lines in 8 files covered. (95.5%)
1 existing line in 1 file now uncovered.116726 of 126581 relevant lines covered (92.21%)
3.69 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 6 |
88.59
|
0.11% | chia/wallet/did_wallet/did_wallet.py |
| 4 |
90.19
|
0.29% | chia/wallet/cat_wallet/cat_wallet.py |
| 3 |
92.53
|
0.15% | chia/wallet/nft_wallet/nft_wallet.py |
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 1 |
80.15
|
-0.15% | chia/server/server.py |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 32774327607.1 | 1880 |
90.19
|
GitHub Action Run | |
| 2 | 32774327607.2 | 1880 |
90.19
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|