コード例 #1
0
 public ReflectionVirtualMachine(
     InternalTransactionExecutorFactory internalTransactionExecutorFactory,
     ILoggerFactory loggerFactory)
 {
     this.internalTransactionExecutorFactory = internalTransactionExecutorFactory;
     this.logger = loggerFactory.CreateLogger(this.GetType());
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: StateFactory.cs プロジェクト: MM2010/X42-FullNode
 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;
 }
コード例 #5
0
 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;
 }