Exemplo n.º 1
0
 public FeeChargePreExecutionPlugin(IHostSmartContractBridgeContextService contextService,
                                    IPrimaryTokenSymbolProvider primaryTokenSymbolProvider,
                                    ITransactionFeeExemptionService transactionFeeExemptionService,
                                    ICalculateTxCostStrategy calStrategy,
                                    ISymbolListToPayTxFeeService symbolListToPayTxFeeService)
 {
     _contextService             = contextService;
     _primaryTokenSymbolProvider = primaryTokenSymbolProvider;
     _calStrategy = calStrategy;
     _transactionFeeExemptionService = transactionFeeExemptionService;
     _symbolListToPayTxFeeService    = symbolListToPayTxFeeService;
     Logger = NullLogger <FeeChargePreExecutionPlugin> .Instance;
 }
 public TransactionFeeCalculatorCoefficientForkCacheHandler(
     ICalculateReadCostStrategy readCostStrategy,
     ICalculateWriteCostStrategy writeCostStrategy,
     ICalculateStorageCostStrategy storageCostStrategy,
     ICalculateTrafficCostStrategy trafficCostStrategy,
     ICalculateTxCostStrategy txCostStrategy)
 {
     _readCostStrategy    = readCostStrategy;
     _writeCostStrategy   = writeCostStrategy;
     _storageCostStrategy = storageCostStrategy;
     _trafficCostStrategy = trafficCostStrategy;
     _txCostStrategy      = txCostStrategy;
 }
Exemplo n.º 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;
 }