コード例 #1
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;
        }
コード例 #2
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;
        }
コード例 #3
0
        public InteropFeature(
            Network network,
            IFederationManager federationManager,
            IConnectionManager connectionManager,
            InteropPoller interopPoller,
            IInteropTransactionManager interopTransactionManager,
            IEthereumClientBase ethereumClientBase,
            IFullNode fullNode)
        {
            this.network                   = network;
            this.federationManager         = federationManager;
            this.connectionManager         = connectionManager;
            this.interopPoller             = interopPoller;
            this.interopTransactionManager = interopTransactionManager;
            this.ethereumClientBase        = ethereumClientBase;

            var payloadProvider = (PayloadProvider)fullNode.Services.ServiceProvider.GetService(typeof(PayloadProvider));

            payloadProvider.AddPayload(typeof(InteropCoordinationPayload));
        }