Example #1
0
 public ResourceConsumptionPostExecutionPlugin(IHostSmartContractBridgeContextService contextService,
                                               ICalculateReadCostStrategy readCostStrategy,
                                               ICalculateWriteCostStrategy writeCostStrategy,
                                               ICalculateStorageCostStrategy storageCostStrategy,
                                               ICalculateTrafficCostStrategy trafficCostStrategy)
 {
     _contextService      = contextService;
     _readCostStrategy    = readCostStrategy;
     _writeCostStrategy   = writeCostStrategy;
     _storageCostStrategy = storageCostStrategy;
     _trafficCostStrategy = trafficCostStrategy;
 }
 public TransactionFeeCalculatorCoefficientForkCacheHandler(
     ICalculateReadCostStrategy readCostStrategy,
     ICalculateWriteCostStrategy writeCostStrategy,
     ICalculateStorageCostStrategy storageCostStrategy,
     ICalculateTrafficCostStrategy trafficCostStrategy,
     ICalculateTxCostStrategy txCostStrategy)
 {
     _readCostStrategy    = readCostStrategy;
     _writeCostStrategy   = writeCostStrategy;
     _storageCostStrategy = storageCostStrategy;
     _trafficCostStrategy = trafficCostStrategy;
     _txCostStrategy      = txCostStrategy;
 }
Example #3
0
 public TransactionFeeCalculatorCoefficientUpdatedEventHandle(
     ISmartContractAddressService smartContractAddressService,
     ICalculateTxCostStrategy txCostStrategy,
     ICalculateReadCostStrategy readCostStrategy,
     ICalculateWriteCostStrategy writeCostStrategy,
     ICalculateStorageCostStrategy storageCostStrategy,
     ICalculateTrafficCostStrategy trafficCostStrategy)
 {
     _smartContractAddressService = smartContractAddressService;
     _txCostStrategy      = txCostStrategy;
     _readCostStrategy    = readCostStrategy;
     _writeCostStrategy   = writeCostStrategy;
     _storageCostStrategy = storageCostStrategy;
     _trafficCostStrategy = trafficCostStrategy;
     Logger = NullLogger <TransactionFeeCalculatorCoefficientUpdatedEventHandle> .Instance;
 }