public ReflectionVirtualMachine( InternalTransactionExecutorFactory internalTransactionExecutorFactory, ILoggerFactory loggerFactory) { this.internalTransactionExecutorFactory = internalTransactionExecutorFactory; this.logger = loggerFactory.CreateLogger(this.GetType()); }
public State( IContractPrimitiveSerializer serializer, InternalTransactionExecutorFactory internalTransactionExecutorFactory, ISmartContractVirtualMachine vm, IContractStateRoot repository, IBlock block, Network network, ulong txAmount, uint256 transactionHash, IAddressGenerator addressGenerator, Gas gasLimit) { this.intermediateState = repository; this.LogHolder = new ContractLogHolder(network); this.internalTransfers = new List <TransferInfo>(); this.BalanceState = new BalanceState(this.intermediateState, txAmount, this.InternalTransfers); this.Network = network; this.Nonce = 0; this.Block = block; this.TransactionHash = transactionHash; this.AddressGenerator = addressGenerator; this.InternalTransactionExecutorFactory = internalTransactionExecutorFactory; this.Vm = vm; this.GasRemaining = gasLimit; this.Serializer = serializer; }
public ReflectionVirtualMachine(ISmartContractValidator validator, InternalTransactionExecutorFactory internalTransactionExecutorFactory, ILoggerFactory loggerFactory, Network network) { this.validator = validator; this.internalTransactionExecutorFactory = internalTransactionExecutorFactory; this.logger = loggerFactory.CreateLogger(this.GetType()); this.network = network; }
public StateFactory( Network network, IContractPrimitiveSerializer contractPrimitiveSerializer, ISmartContractVirtualMachine vm, IAddressGenerator addressGenerator, InternalTransactionExecutorFactory internalTransactionExecutorFactory ) { this.network = network; this.contractPrimitiveSerializer = contractPrimitiveSerializer; this.vm = vm; this.addressGenerator = addressGenerator; this.internalTransactionExecutorFactory = internalTransactionExecutorFactory; }
public ReflectionVirtualMachine(ISmartContractValidator validator, InternalTransactionExecutorFactory internalTransactionExecutorFactory, ILoggerFactory loggerFactory, Network network, IAddressGenerator addressGenerator, ILoader assemblyLoader, IContractModuleDefinitionReader moduleDefinitionReader, IContractPrimitiveSerializer contractPrimitiveSerializer) { this.validator = validator; this.internalTransactionExecutorFactory = internalTransactionExecutorFactory; this.logger = loggerFactory.CreateLogger(this.GetType()); this.network = network; this.addressGenerator = addressGenerator; this.assemblyLoader = assemblyLoader; this.moduleDefinitionReader = moduleDefinitionReader; this.contractPrimitiveSerializer = contractPrimitiveSerializer; }