Example #1
0
 public SmartContractController()
 {
     this.smartContractDb      = new SmartContractDb();
     this.accountDb            = new AccountDb();
     this.logger               = new BlockchainLogger();
     this.smartContractManager = new SmartContractManager(this.smartContractDb, this.accountDb, this.logger);
 }
Example #2
0
 public SmartContractManager(ISmartContractDb smartContractDb, IAccountDb accountDb, IBlockchainLogger logger)
 {
     this.smartContractDb = smartContractDb;
     this.accountDb       = accountDb;
     this.logger          = logger;
 }
 public TransactionBlocksController()
 {
     this.smartContractDb = new SmartContractDb();
     this.blockManager    = new BlockManager(this.smartContractDb);
 }
Example #4
0
 public BlockManager(ISmartContractDb smartContractDb)
 {
     this.smartContractDb = smartContractDb;
 }