penumbra_transaction::gas

Trait 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§