(owner: Pubkey, subscription_id: u64)
| 23 | |
| 24 | impl 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( |
nothing calls this directly
no outgoing calls
no test coverage detected