Beispiel #1
0
 public ApiLogDeserializer(IContractPrimitiveSerializer primitiveSerializer, Network network, IStateRepositoryRoot stateRepositoryRoot, IContractAssemblyCache contractAssemblyCache)
 {
     this.primitiveSerializer   = primitiveSerializer;
     this.network               = network;
     this.stateRepositoryRoot   = stateRepositoryRoot;
     this.contractAssemblyCache = contractAssemblyCache;
 }
Beispiel #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,
                                 IContractAssemblyCache contractAssemblyCache,
                                 NodeSettings nodeSettings)
 {
     this.stateRoot                       = stateRoot;
     this.contractDecompiler              = contractDecompiler;
     this.logger                          = loggerFactory.CreateLogger(this.GetType().FullName);
     this.network                         = network;
     this.chainIndexer                    = chainIndexer;
     this.walletManager                   = walletManager;
     this.broadcasterManager              = broadcasterManager;
     this.serializer                      = serializer;
     this.primitiveSerializer             = primitiveSerializer;
     this.receiptRepository               = receiptRepository;
     this.localExecutor                   = localExecutor;
     this.smartContractTransactionService = smartContractTransactionService;
     this.connectionManager               = connectionManager;
     this.contractAssemblyCache           = contractAssemblyCache;
     this.nodeSettings                    = nodeSettings;
 }
Beispiel #3
0
        public SmartContractTransactionService(
            Network network,
            IWalletManager walletManager,
            IWalletTransactionHandler walletTransactionHandler,
            IMethodParameterStringSerializer methodParameterStringSerializer,
            ICallDataSerializer callDataSerializer,
            IAddressGenerator addressGenerator,
            IStateRepositoryRoot stateRoot,
            IReserveUtxoService reserveUtxoService,
            IBlockStore blockStore,
            ChainIndexer chainIndexer,
            IContractPrimitiveSerializer primitiveSerializer,
            IContractAssemblyCache contractAssemblyCache,
            IReceiptRepository receiptRepository
            )
        {
            this.network                         = network;
            this.walletManager                   = walletManager;
            this.walletTransactionHandler        = walletTransactionHandler;
            this.methodParameterStringSerializer = methodParameterStringSerializer;
            this.callDataSerializer              = callDataSerializer;
            this.addressGenerator                = addressGenerator;
            this.stateRoot                       = stateRoot;
            this.reserveUtxoService              = reserveUtxoService;

            this.blockStore            = blockStore;
            this.chainIndexer          = chainIndexer;
            this.primitiveSerializer   = primitiveSerializer;
            this.contractAssemblyCache = contractAssemblyCache;
            this.receiptRepository     = receiptRepository;
        }
        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;
        }
Beispiel #5
0
 public ReflectionVirtualMachine(ISmartContractValidator validator,
                                 ILoggerFactory loggerFactory,
                                 ILoader assemblyLoader,
                                 IContractModuleDefinitionReader moduleDefinitionReader,
                                 IContractAssemblyCache assemblyCache)
 {
     this.validator              = validator;
     this.logger                 = loggerFactory.CreateLogger(this.GetType());
     this.assemblyLoader         = assemblyLoader;
     this.moduleDefinitionReader = moduleDefinitionReader;
     this.assemblyCache          = assemblyCache;
 }
 public IndexerContractsController(
     Network network,
     ILoggerFactory loggerFactory,
     IStateRepositoryRoot stateRoot,
     CSharpContractDecompiler contractDecompiler,
     IReceiptRepository receiptRepository,
     IContractPrimitiveSerializer primitiveSerializer,
     IContractAssemblyCache contractAssemblyCache,
     ISmartContractEnrichmentFactory contractEnrichmentFactory,
     ISerializer serializer)
 {
     this.network                   = network;
     this.stateRoot                 = stateRoot;
     this.contractDecompiler        = contractDecompiler;
     this.receiptRepository         = receiptRepository;
     this.primitiveSerializer       = primitiveSerializer;
     this.contractAssemblyCache     = contractAssemblyCache;
     this.serializer                = serializer;
     this.contractEnrichmentFactory = contractEnrichmentFactory;
     this.logger = loggerFactory.CreateLogger(this.GetType().FullName);
 }