<?php
namespace App\Providers;
use App\Domain\Blockchain\Contracts\BlockchainGateway; use App\Infrastructure\Providers\{DisabledBlockchainGateway,SelfHostedTronGateway}; use Illuminate\Support\ServiceProvider;
final class BlockchainServiceProvider extends ServiceProvider { public function register(): void { $this->app->singleton(BlockchainGateway::class,fn()=>config('gateway.blockchain_driver')==='self_hosted_tron'?app(SelfHostedTronGateway::class):app(DisabledBlockchainGateway::class)); } }
