module Glueby::Contract::FeeEstimator
Public Instance Methods
fee(tx)
click to toggle source
@param [Tapyrus::Tx] tx - The target tx @return fee by tapyrus(not TPC).
# File lib/glueby/contract/fee_estimator.rb, line 6 def fee(tx) return 0 if Glueby.configuration.fee_provider_bears? estimate_fee(tx) end
Private Instance Methods
estimate_fee(tx)
click to toggle source
@private @abstract Override in subclasses. This is would be implemented an actual estimation logic. @param [Tapyrus::Tx] tx - The target tx @return fee by tapyrus(not TPC).
# File lib/glueby/contract/fee_estimator.rb, line 17 def estimate_fee(tx) raise NotImplementedError end