Ejemplo n.º 1
0
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ChainIndexer chainIndexer,
                                 CSharpContractDecompiler contractDecompiler,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService,
                                 IConnectionManager connectionManager)
 {
     this.stateRoot          = stateRoot;
     this.contractDecompiler = contractDecompiler;
     this.logger             = loggerFactory.CreateLogger("Impleum.Bitcoin.Fullnode");
     this.network            = network;
     this.chainIndexer       = chainIndexer;
     this.blockStore         = blockStore;
     this.walletManager      = walletManager;
     this.broadcasterManager = broadcasterManager;
     this.serializer         = serializer;
     this.receiptRepository  = receiptRepository;
     this.localExecutor      = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
     this.connectionManager = connectionManager;
 }
Ejemplo n.º 2
0
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ChainIndexer chainIndexer,
                                 CSharpContractDecompiler contractDecompiler,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IContractPrimitiveSerializer primitiveSerializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService,
                                 IConnectionManager connectionManager)
 {
     this.stateRoot                       = stateRoot;
     this.contractDecompiler              = contractDecompiler;
     this.logger                          = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network                         = network;
     this.chainIndexer                    = chainIndexer;
     this.blockStore                      = blockStore;
     this.walletManager                   = walletManager;
     this.broadcasterManager              = broadcasterManager;
     this.serializer                      = serializer;
     this.primitiveSerializer             = primitiveSerializer;
     this.receiptRepository               = receiptRepository;
     this.localExecutor                   = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
     this.connectionManager               = connectionManager;
 }
 public SmartContractsController(IBroadcasterManager broadcasterManager,
                                 IBlockStore blockStore,
                                 ConcurrentChain chain,
                                 CSharpContractDecompiler contractDecompiler,
                                 IDateTimeProvider dateTimeProvider,
                                 ILoggerFactory loggerFactory,
                                 Network network,
                                 IStateRepositoryRoot stateRoot,
                                 IWalletManager walletManager,
                                 ISerializer serializer,
                                 IReceiptRepository receiptRepository,
                                 ILocalExecutor localExecutor,
                                 ISmartContractTransactionService smartContractTransactionService)
 {
     this.stateRoot          = stateRoot;
     this.contractDecompiler = contractDecompiler;
     this.logger             = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network            = network;
     this.chain              = chain;
     this.blockStore         = blockStore;
     this.walletManager      = walletManager;
     this.broadcasterManager = broadcasterManager;
     this.serializer         = serializer;
     this.receiptRepository  = receiptRepository;
     this.localExecutor      = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
 }
        public Unity3dController(ILoggerFactory loggerFactory, IAddressIndexer addressIndexer,
                                 IBlockStore blockStore, IChainState chainState, Network network, ICoinView coinView, WalletController walletController, ChainIndexer chainIndexer, INFTTransferIndexer NFTTransferIndexer,
                                 IStakeChain stakeChain = null,
                                 IContractPrimitiveSerializer primitiveSerializer = null, IStateRepositoryRoot stateRoot = null, IContractAssemblyCache contractAssemblyCache                   = null,
                                 IReceiptRepository receiptRepository             = null, ISmartContractTransactionService smartContractTransactionService = null, ILocalExecutor localExecutor = null)
        {
            Guard.NotNull(loggerFactory, nameof(loggerFactory));
            this.logger             = loggerFactory.CreateLogger(this.GetType().FullName);
            this.addressIndexer     = Guard.NotNull(addressIndexer, nameof(addressIndexer));
            this.blockStore         = Guard.NotNull(blockStore, nameof(blockStore));
            this.chainState         = Guard.NotNull(chainState, nameof(chainState));
            this.network            = Guard.NotNull(network, nameof(network));
            this.coinView           = Guard.NotNull(coinView, nameof(coinView));
            this.walletController   = Guard.NotNull(walletController, nameof(walletController));
            this.chainIndexer       = Guard.NotNull(chainIndexer, nameof(chainIndexer));
            this.stakeChain         = stakeChain;
            this.NFTTransferIndexer = NFTTransferIndexer;

            this.primitiveSerializer             = primitiveSerializer;
            this.stateRoot                       = stateRoot;
            this.contractAssemblyCache           = contractAssemblyCache;
            this.receiptRepository               = receiptRepository;
            this.smartContractTransactionService = smartContractTransactionService;
            this.localExecutor                   = localExecutor;
        }
        public NFTTransferIndexer(DataFolder dataFolder, ILoggerFactory loggerFactory, IAsyncProvider asyncProvider,
                                  ChainIndexer chainIndexer, Network network, ISmartContractTransactionService smartContractTransactionService = null)
        {
            this.network       = network;
            this.dataFolder    = dataFolder;
            this.cancellation  = new CancellationTokenSource();
            this.asyncProvider = asyncProvider;
            this.chainIndexer  = chainIndexer;
            this.smartContractTransactionService = smartContractTransactionService;

            this.logger = loggerFactory.CreateLogger(this.GetType().FullName);
        }
Ejemplo n.º 6
0
 public SmartContractWalletController(
     IBroadcasterManager broadcasterManager,
     ICallDataSerializer callDataSerializer,
     IConnectionManager connectionManager,
     ILoggerFactory loggerFactory,
     Network network,
     IReceiptRepository receiptRepository,
     IWalletManager walletManager,
     ISmartContractTransactionService smartContractTransactionService)
 {
     this.broadcasterManager = broadcasterManager;
     this.callDataSerializer = callDataSerializer;
     this.connectionManager  = connectionManager;
     this.logger             = loggerFactory.CreateLogger("Impleum.Bitcoin.Fullnode");
     this.network            = network;
     this.receiptRepository  = receiptRepository;
     this.walletManager      = walletManager;
     this.smartContractTransactionService = smartContractTransactionService;
 }
 public ManagementController(
     IBroadcasterManager broadcasterManager,
     ICipherFactory cipherFactory,
     IConnectionManager connectionManager,
     IConsensusManager consensusManager,
     ILogger <ManagementController> logger,
     ISerializer serializer,
     ISmartContractTransactionService smartContractTransactionService,
     IStateRepositoryRoot stateRepositoryRoot,
     IStringGenerator stringGenerator,
     Network network)
 {
     _broadcasterManager = broadcasterManager;
     _cipherFactory      = cipherFactory;
     _connectionManager  = connectionManager;
     _consensusManager   = consensusManager;
     _logger             = logger;
     _serializer         = serializer;
     _smartContractTransactionService = smartContractTransactionService;
     _stateRepositoryRoot             = stateRepositoryRoot;
     _stringGenerator = stringGenerator;
     _network         = network;
 }