public SeedController(ISp8deTransactionStorage storage, ICryptoService cryptoService, Sp8deNodeConfig config) { if (config == null || config.PrivateKeys == null) { throw new ArgumentNullException(nameof(Sp8deNodeConfig)); } this.keys = config.PrivateKeys.Select(x => EthKeySecret.Load(x)).ToArray(); this.storage = storage; this.cryptoService = cryptoService; this.transactionService = new Sp8deTransactionNodeService(cryptoService, storage, Enumerable.Empty <IExternalAnchorService>()); }
public TransactionsController(ISp8deTransactionStorage storage) { this.storage = storage; }
public Sp8deSearchService(ISp8deBlockStorage blockStorage, ISp8deTransactionStorage transactionStorage) { this.blockStorage = blockStorage; this.transactionStorage = transactionStorage; }
public TransactionController(ProtocolService protocolService, ICryptoService cryptoService, ISp8deTransactionStorage transactionStorage) { this.protocolService = protocolService; this.cryptoService = cryptoService; this.transactionStorage = transactionStorage; }
public Sp8deTransactionNodeService(ICryptoService cryptoService, ISp8deTransactionStorage transactionStorage, IEnumerable <IExternalAnchorService> anchorServices) { this.cryptoService = cryptoService; this.transactionStorage = transactionStorage; this.anchorServices = anchorServices; }
public Sp8deBlockProducer(ISp8deTransactionStorage transactionStorage, ISp8deBlockStorage blockStorage, ICryptoService cryptoService) { this.transactionStorage = transactionStorage; this.blockStorage = blockStorage; this.cryptoService = cryptoService; }
public LatestController(ISp8deBlockStorage blockStorage, ISp8deTransactionStorage transactionStorage) { this.blockStorage = blockStorage; this.transactionStorage = transactionStorage; }