MCPcopy Create free account
hub / github.com/clockwork-xyz/examples / pda

Method pda

subscriptions/programs/subscriptions/src/state/subscription.rs:25–34  ·  view source on GitHub ↗
(owner: Pubkey, subscription_id: u64)

Source from the content-addressed store, hash-verified

23
24impl Subscription {
25 pub fn pda(owner: Pubkey, subscription_id: u64) -> (Pubkey, u8) {
26 Pubkey::find_program_address(
27 &[
28 SEED_SUBSCRIPTION,
29 owner.as_ref(),
30 &subscription_id.to_be_bytes(),
31 ],
32 &crate::ID,
33 )
34 }
35
36 pub fn bank_pda(subscription: Pubkey, owner: Pubkey) -> (Pubkey, u8) {
37 Pubkey::find_program_address(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected