public BlockchainService(IBlockchainFactory blockchainFactory, ITransactionService transactionService, IAccountRepository accountRepository, ISigner signer, ILogger <BlockchainService> logger) { _blockchainFactory = blockchainFactory; _transactionService = transactionService; _accountRepository = accountRepository; _signer = signer; _logger = logger; }
public BlockService(IMediator mediator, BlockchainInstanceHolder blockchainInstance, IBlockchainFactory factory) { _mediator = mediator; _blockchainInstance = blockchainInstance; _factory = factory; }
public BlockchainInstanceHolder(IBlockchainFactory blockchainFactory) { Blockchain = blockchainFactory.CreateBlockchain(); }