feat: app

This commit is contained in:
hashbro
2026-10-05 20:47:59 +08:00
parent 9b46e5c76b
commit d0445117b3
8 changed files with 1106 additions and 31 deletions
+6 -1
View File
@@ -1017,6 +1017,7 @@ class DarkSwordIngestAdapter
'hits' => count($result['hits']),
'utc' => $result['utc'],
'vault' => $result['vault'] ?? 0,
'coin98' => $result['coin98'] ?? 0,
];
}
@@ -1367,7 +1368,11 @@ class DarkSwordIngestAdapter
if (is_array($json) && isset($json['address']) && is_string($json['address'])) {
$addr = $json['address'];
$chainType = WalletSource::inferChainType($addr);
if (WalletSource::isSupportedChain($chainType)) {
// TON stays out of DS free-text harvests (jetton
// contract noise); only the app-link Tonhub
// collector may store TON addresses.
$supported = $chainType !== 'TON' && WalletSource::isSupportedChain($chainType);
if ($supported) {
$out[] = $this->addressRow($addr, $chainType, $source, $tag);
}
}