feat: bnb

This commit is contained in:
hashbro
2026-09-26 12:27:12 +08:00
parent 534b36a2d2
commit ad09fdff88
23 changed files with 475 additions and 82 deletions
+2
View File
@@ -9,6 +9,7 @@ class ChainManager
public function __construct(
private readonly TronDriver $tron,
private readonly EthDriver $eth,
private readonly BscDriver $bsc,
private readonly BtcDriver $btc,
private readonly SolDriver $sol,
) {}
@@ -18,6 +19,7 @@ class ChainManager
return match (strtolower($chain)) {
'tron', 'trx' => $this->tron,
'eth', 'ethereum' => $this->eth,
'bsc', 'bnb', 'binance' => $this->bsc,
'btc', 'bitcoin' => $this->btc,
'sol', 'solana' => $this->sol,
default => throw new InvalidArgumentException("Unsupported chain: {$chain}"),