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§
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, txp: &TransactionPerspective) -> ActionView
Implementations on Foreign Types§
Source§impl IsAction for IbcRelay
impl IsAction for IbcRelay
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for CommunityPoolDeposit
impl IsAction for CommunityPoolDeposit
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for CommunityPoolOutput
impl IsAction for CommunityPoolOutput
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for CommunityPoolSpend
impl IsAction for CommunityPoolSpend
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for PositionClose
impl IsAction for PositionClose
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for PositionOpen
impl IsAction for PositionOpen
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for PositionWithdraw
impl IsAction for PositionWithdraw
fn balance_commitment(&self) -> Commitment
fn view_from_perspective(&self, _txp: &TransactionPerspective) -> ActionView
Source§impl IsAction for Swap
impl IsAction for Swap
Source§fn balance_commitment(&self) -> Commitment
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)