Trait penumbra_transaction::gas::GasCost

source ·
pub trait GasCost {
    // Required method
    fn gas_cost(&self) -> Gas;
}
Expand description

Allows Actions and Transactions 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.

Required Methods§

source

fn gas_cost(&self) -> Gas

Implementations on Foreign Types§

source§

impl GasCost for IbcRelay

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for CommunityPoolDeposit

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for CommunityPoolOutput

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for CommunityPoolSpend

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for PositionClose

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for PositionOpen

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for PositionWithdraw

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Swap

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for SwapClaim

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for DelegatorVote

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ProposalDepositClaim

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ProposalSubmit

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ProposalWithdraw

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ValidatorVote

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Ics20Withdrawal

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Output

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Spend

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Delegate

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Undelegate

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for UndelegateClaim

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for Definition

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ActionDutchAuctionEnd

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ActionDutchAuctionSchedule

source§

fn gas_cost(&self) -> Gas

source§

impl GasCost for ActionDutchAuctionWithdraw

source§

fn gas_cost(&self) -> Gas

Implementors§