Trait PythReceiverOps

Source
pub trait PythReceiverOps<C> {
    // Required methods
    fn post_price_update<'a>(
        &'a self,
        price_update: Keypair,
        update: &MerklePriceUpdate,
        encoded_vaa: &Pubkey,
    ) -> Result<TransactionBuilder<'a, C, Pubkey>>;
    fn reclaim_rent(&self, price_update: &Pubkey) -> TransactionBuilder<'_, C>;
}
Expand description

Pyth Receiver Ops.

Required Methods§

Source

fn post_price_update<'a>( &'a self, price_update: Keypair, update: &MerklePriceUpdate, encoded_vaa: &Pubkey, ) -> Result<TransactionBuilder<'a, C, Pubkey>>

Post price update.

Source

fn reclaim_rent(&self, price_update: &Pubkey) -> TransactionBuilder<'_, C>

Reclaim rent.

Implementations on Foreign Types§

Source§

impl<S, C> PythReceiverOps<C> for Program<C>
where C: Deref<Target = S> + Clone, S: Signer,

Source§

fn post_price_update<'a>( &'a self, price_update: Keypair, update: &MerklePriceUpdate, encoded_vaa: &Pubkey, ) -> Result<TransactionBuilder<'a, C, Pubkey>>

Source§

fn reclaim_rent(&self, price_update: &Pubkey) -> TransactionBuilder<'_, C>

Implementors§