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

Class Memo

pyth-trigger-test/programs/pyth-trigger-test/src/lib.rs:98–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97#[derive(Accounts)]
98pub 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.
115pub const THREAD_AUTHORITY_SEED: &[u8] = b"authority";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected