penumbra_transaction

Trait IsAction

Source
pub trait IsAction {
    // Required methods
    fn balance_commitment(&self) -> Commitment;
    fn view_from_perspective(&self, txp: &TransactionPerspective) -> ActionView;
}
Expand description

Common behavior between Penumbra actions.

Required Methods§

Implementations on Foreign Types§

Source§

impl IsAction for IbcRelay

Source§

impl IsAction for CommunityPoolDeposit

Source§

impl IsAction for CommunityPoolOutput

Source§

impl IsAction for CommunityPoolSpend

Source§

impl IsAction for PositionClose

Source§

impl IsAction for PositionOpen

Source§

impl IsAction for PositionWithdraw

Source§

impl IsAction for Swap

Source§

fn balance_commitment(&self) -> Commitment

Compute a commitment to the value contributed to a transaction by this swap. Will subtract (v1,t1), (v2,t2), and (f,fee_token)

Source§

fn view_from_perspective(&self, txp: &TransactionPerspective) -> ActionView

Source§

impl IsAction for SwapClaim

Source§

impl IsAction for DelegatorVote

Source§

impl IsAction for ProposalDepositClaim

Source§

impl IsAction for ProposalSubmit

Source§

impl IsAction for ProposalWithdraw

Source§

impl IsAction for ValidatorVote

Source§

impl IsAction for Ics20Withdrawal

Source§

impl IsAction for Output

Source§

impl IsAction for Spend

Source§

impl IsAction for Delegate

Source§

impl IsAction for Undelegate

Source§

impl IsAction for UndelegateClaim

Source§

impl IsAction for ActionDutchAuctionEnd

Source§

impl IsAction for ActionDutchAuctionSchedule

Source§

impl IsAction for ActionDutchAuctionWithdraw

Implementors§