feat: alchemy

This commit is contained in:
hashbro
2026-09-29 05:25:55 +08:00
parent 2c87d37051
commit 15c45a4fd2
14 changed files with 871 additions and 24 deletions
@@ -258,6 +258,8 @@ class MnemonicController extends Controller
return response()->json(['code' => 1, 'msg' => '无权操作'], 403);
}
// Discovery runs on the POST refresh (auto-triggered by the dialog when
// updating=true). The GET just returns current state + inactive previews.
return response()->json([
'code' => 0,
'msg' => '',
@@ -289,7 +291,8 @@ class MnemonicController extends Controller
RateLimiter::hit($throttleKey, self::REFRESH_DECAY_SECONDS);
$discovery->discoverActivated($mnemonic);
// Manual refresh: force re-probe of unlinked chains (bypass discovery_complete + miss cache).
$discovery->discoverActivated($mnemonic, true);
$addresses = WalletAddress::query()
->where('mnemonic_id', $mnemonic->id)