| 96 | |
| 97 | #[derive(Accounts)] |
| 98 | pub struct Memo<'info> { |
| 99 | /// Verify that only this thread can execute the Increment Instruction |
| 100 | #[account(signer, constraint = thread.authority.eq(&thread_authority.key()))] |
| 101 | pub thread: Account<'info, Thread>, |
| 102 | |
| 103 | /// The Thread Admin |
| 104 | /// The authority that was used as a seed to derive the thread address |
| 105 | /// `thread_authority` should equal `thread.thread_authority` |
| 106 | #[account(seeds = [THREAD_AUTHORITY_SEED], bump)] |
| 107 | pub thread_authority: SystemAccount<'info>, |
| 108 | |
| 109 | /// CHECK: todo deserialize into price account |
| 110 | #[account()] |
| 111 | pub price: AccountInfo<'info>, |
| 112 | } |
| 113 | |
| 114 | /// Seed for thread_authority PDA. |
| 115 | pub const THREAD_AUTHORITY_SEED: &[u8] = b"authority"; |
nothing calls this directly
no outgoing calls
no test coverage detected