feat: address
This commit is contained in:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user