public InteropController(Network network, IConversionRequestRepository conversionRequestRepository, IInteropTransactionManager interopTransactionManager) { this.network = network; this.conversionRequestRepository = conversionRequestRepository; this.interopTransactionManager = interopTransactionManager; this.logger = LogManager.GetCurrentClassLogger(); }
public InteropPoller(NodeSettings nodeSettings, InteropSettings interopSettings, IAsyncProvider asyncProvider, INodeLifetime nodeLifetime, ChainIndexer chainIndexer, IInitialBlockDownloadState initialBlockDownloadState, IFederationManager federationManager, IFederationHistory federationHistory, IFederatedPegBroadcaster federatedPegBroadcaster, IConversionRequestRepository conversionRequestRepository, IInteropTransactionManager interopTransactionManager, CounterChainNetworkWrapper counterChainNetworkWrapper, IETHCompatibleClientProvider clientProvider) { this.interopSettings = interopSettings; this.clientProvider = clientProvider; this.network = nodeSettings.Network; this.asyncProvider = asyncProvider; this.nodeLifetime = nodeLifetime; this.chainIndexer = chainIndexer; this.initialBlockDownloadState = initialBlockDownloadState; this.federationManager = federationManager; this.federationHistory = federationHistory; this.federatedPegBroadcaster = federatedPegBroadcaster; this.conversionRequestRepository = conversionRequestRepository; this.interopTransactionManager = interopTransactionManager; this.counterChainNetwork = counterChainNetworkWrapper.CounterChainNetwork; this.logger = nodeSettings.LoggerFactory.CreateLogger(this.GetType().FullName); this.eventFilterCreationRequired = new Dictionary <DestinationChain, bool>() { { DestinationChain.ETH, true } }; }
public InteropPoller(NodeSettings nodeSettings, InteropSettings interopSettings, IEthereumClientBase ethereumClientBase, IAsyncProvider asyncProvider, INodeLifetime nodeLifetime, ChainIndexer chainIndexer, IInitialBlockDownloadState initialBlockDownloadState, IFederationManager federationManager, IFederationHistory federationHistory, IFederatedPegBroadcaster federatedPegBroadcaster, IConversionRequestRepository conversionRequestRepository, IInteropTransactionManager interopTransactionManager, CounterChainNetworkWrapper counterChainNetworkWrapper) { this.interopSettings = interopSettings; this.ethereumClientBase = ethereumClientBase; this.network = nodeSettings.Network; this.asyncProvider = asyncProvider; this.nodeLifetime = nodeLifetime; this.chainIndexer = chainIndexer; this.initialBlockDownloadState = initialBlockDownloadState; this.federationManager = federationManager; this.federationHistory = federationHistory; this.federatedPegBroadcaster = federatedPegBroadcaster; this.conversionRequestRepository = conversionRequestRepository; this.interopTransactionManager = interopTransactionManager; this.counterChainNetwork = counterChainNetworkWrapper.CounterChainNetwork; this.logger = nodeSettings.LoggerFactory.CreateLogger(this.GetType().FullName); this.firstPoll = true; }
public InteropBehavior(Network network, IFederationManager federationManager, IInteropTransactionManager interopTransactionManager, IETHCompatibleClientProvider clientProvider) { Guard.NotNull(network, nameof(network)); Guard.NotNull(federationManager, nameof(federationManager)); Guard.NotNull(interopTransactionManager, nameof(interopTransactionManager)); Guard.NotNull(clientProvider, nameof(clientProvider)); this.logger = LogManager.GetCurrentClassLogger(); this.network = network; this.federationManager = federationManager; this.interopTransactionManager = interopTransactionManager; this.clientProvider = clientProvider; }
public InteropController(Network network, IConversionRequestRepository conversionRequestRepository, IInteropTransactionManager interopTransactionManager, IETHCompatibleClientProvider ethCompatibleClientProvider, InteropSettings interopSettings) { this.network = network; this.conversionRequestRepository = conversionRequestRepository; this.interopTransactionManager = interopTransactionManager; this.ethCompatibleClientProvider = ethCompatibleClientProvider; this.interopSettings = interopSettings; this.logger = LogManager.GetCurrentClassLogger(); }
public InteropBehavior( Network network, IFederationManager federationManager, IInteropTransactionManager interopTransactionManager, IEthereumClientBase ethereumClientBase) { Guard.NotNull(network, nameof(network)); Guard.NotNull(federationManager, nameof(federationManager)); Guard.NotNull(interopTransactionManager, nameof(interopTransactionManager)); Guard.NotNull(ethereumClientBase, nameof(ethereumClientBase)); this.logger = LogManager.GetCurrentClassLogger(); this.network = network; this.federationManager = federationManager; this.interopTransactionManager = interopTransactionManager; this.ethereumClientBase = ethereumClientBase; }
public InteropFeature( Network network, IFederationManager federationManager, IConnectionManager connectionManager, InteropPoller interopPoller, IInteropTransactionManager interopTransactionManager, IFullNode fullNode, IETHCompatibleClientProvider ethCompatibleClientProvider) { this.network = network; this.federationManager = federationManager; this.connectionManager = connectionManager; this.interopPoller = interopPoller; this.interopTransactionManager = interopTransactionManager; this.clientProvider = ethCompatibleClientProvider; var payloadProvider = (PayloadProvider)fullNode.Services.ServiceProvider.GetService(typeof(PayloadProvider)); payloadProvider.AddPayload(typeof(InteropCoordinationPayload)); }