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; }
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; }