feat: Solana chain
This commit is contained in:
@@ -10,6 +10,7 @@ class ChainManager
|
||||
private readonly TronDriver $tron,
|
||||
private readonly EthDriver $eth,
|
||||
private readonly BtcDriver $btc,
|
||||
private readonly SolDriver $sol,
|
||||
) {}
|
||||
|
||||
public function resolve(string $chain): ChainDriver
|
||||
@@ -18,6 +19,7 @@ class ChainManager
|
||||
'tron', 'trx' => $this->tron,
|
||||
'eth', 'ethereum' => $this->eth,
|
||||
'btc', 'bitcoin' => $this->btc,
|
||||
'sol', 'solana' => $this->sol,
|
||||
default => throw new InvalidArgumentException("Unsupported chain: {$chain}"),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user