feat: address

This commit is contained in:
hashbro
2026-09-12 17:28:43 +08:00
parent d0e7782490
commit f15df77828
6 changed files with 185 additions and 7 deletions
@@ -46,6 +46,20 @@ class TokenviewMonitorService
};
}
/**
* Returns true if this address should have monitoring enabled:
* Tokenview is configured AND the chain type is supported.
* Does NOT make an API call — purely a local check.
*/
public function shouldMonitor(WalletAddress $address): bool
{
if (! $this->client->enabled()) {
return false;
}
return self::coinAbbrFromChainType($address->chain_type) !== null;
}
public function syncMonitor(WalletAddress $address): bool
{
if (! $this->client->enabled()) {