pub trait GasCost {
// Required method
fn gas_cost(&self) -> Gas;
}
Expand description
Allows Action
s and Transaction
s to statically indicate their relative resource consumption.
Since the gas cost needs to be multiplied by a price, the values returned
only need to be scaled relatively to each other.