コード例 #1
0
 public InteropController(Network network, IConversionRequestRepository conversionRequestRepository, IInteropTransactionManager interopTransactionManager)
 {
     this.network = network;
     this.conversionRequestRepository = conversionRequestRepository;
     this.interopTransactionManager   = interopTransactionManager;
     this.logger = LogManager.GetCurrentClassLogger();
 }
コード例 #2
0
        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 }
            };
        }
コード例 #3
0
        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;
        }
コード例 #4
0
        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;
        }
コード例 #5
0
 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();
 }
コード例 #6
0
        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;
        }
コード例 #7
0
        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));
        }