clockwork_crank/instructions/
queue_delete.rs1use {
2 crate::state::*,
3 anchor_lang::prelude::*,
4};
5
6
7#[derive(Accounts)]
8pub struct QueueDelete<'info> {
9 #[account()]
10 pub authority: Signer<'info>,
11
12 #[account(mut)]
13 pub close_to: SystemAccount<'info>,
14
15 #[account(
16 mut,
17 seeds = [
18 SEED_QUEUE,
19 queue.authority.as_ref(),
20 queue.id.as_bytes(),
21 ],
22 bump,
23 has_one = authority,
24 close = close_to
25 )]
26 pub queue: Account<'info, Queue>,
27}
28
29pub fn handler(_ctx: Context<QueueDelete>) -> Result<()> {
30 Ok(())
31}