public HotWalletService(IBaseSettings baseSettings, IQueueFactory queueFactory, IHotWalletOperationRepository hotWalletCashoutRepository, IPrivateWalletService privateWalletService, IErc20PrivateWalletService erc20PrivateWalletService, ISignatureService signatureService, ILog log, Web3 web3, IHotWalletTransactionRepository hotWalletCashoutTransactionRepository, [KeyFilter(Constants.DefaultKey)] IErc20DepositContractService erc20DepositContractService, AppSettings settingsWrapper, IUserTransferWalletRepository userTransferWalletRepository, IGasPriceRepository gasPriceRepository) { _hotWalletTransactionMonitoringQueue = queueFactory.Build(Constants.HotWalletTransactionMonitoringQueue); _hotWalletCashoutQueue = queueFactory.Build(Constants.HotWalletCashoutQueue); _baseSettings = baseSettings;//.HotWalletAddress _hotWalletCashoutRepository = hotWalletCashoutRepository; _privateWalletService = privateWalletService; _erc20PrivateWalletService = erc20PrivateWalletService; _log = log; _web3 = web3; _hotWalletCashoutTransactionRepository = hotWalletCashoutTransactionRepository; _signatureService = signatureService; _erc20DepositContractService = erc20DepositContractService; _settingsWrapper = settingsWrapper; _userTransferWalletRepository = userTransferWalletRepository; _semaphores = new ConcurrentDictionary <string, SemaphoreSlim>(); _gasPriceRepository = gasPriceRepository; }
public GasPriceOracleService( EthereumClassicApiSettings serviceSettings, IEthereum ethereum, IGasPriceRepository gasPriceRepository) { _defaultMaxGasPrice = BigInteger.Parse(serviceSettings.DefaultMaxGasPrice); _defaultMinGasPrice = BigInteger.Parse(serviceSettings.DefaultMinGasPrice); _ethereum = ethereum; _gasPriceRepository = gasPriceRepository; }
public LykkeSignedTransactionManager( IBaseSettings baseSettings, INonceCalculator nonceCalculator, ILykkeSigningAPI signingApi, ITransactionRouter transactionRouter, Web3 web3, IGasPriceRepository gasPriceRepository) { _baseSettings = baseSettings; _estimateGas = new EthEstimateGas(web3.Client); _nonceCalculator = nonceCalculator; _semaphores = new ConcurrentDictionary <string, SemaphoreSlim>(); _sendRawTransaction = new EthSendRawTransaction(web3.Client); _signingApi = signingApi; _transactionRouter = transactionRouter; _web3 = web3; _gasPriceRepository = gasPriceRepository; Client = web3.Client; }