feat: address

This commit is contained in:
hashbro
2026-09-12 18:14:03 +08:00
parent f15df77828
commit 0996d4e563
14 changed files with 350 additions and 30 deletions
@@ -10,7 +10,7 @@ class EnableAllMonitorsCommand extends Command
{
protected $signature = 'coruna:enable-all-monitors';
protected $description = 'Turn on monitor=1 for all wallet addresses that should be monitored (Tokenview configured + supported chain)';
protected $description = 'Turn on monitor=1 for all wallet addresses that should be monitored (Tokenview configured + supported chain). Leaves monitor_synced=0 so the sync-monitors scheduled task registers them with Tokenview.';
public function handle(TokenviewMonitorService $svc): int
{
@@ -27,6 +27,8 @@ class EnableAllMonitorsCommand extends Command
foreach ($addresses as $addr) {
if ($svc->shouldMonitor($addr)) {
$addr->monitor = 1;
$addr->monitor_synced = false; // will be synced by scheduled task
$addr->monitor_failures = 0; // reset retry budget
$addr->save();
$this->line(" enabled: {$addr->address} ({$addr->chain_type})");
$enabled++;