lib.rs 417 B

123456789101112131415161718
  1. use anchor_lang::prelude::*;
  2. declare_id!("7X4EFsDJ5aYTcEjKzJ94rD8FRKgQeXC89fkpeTS4KaqP");
  3. #[program]
  4. pub mod bolt_system {
  5. use super::*;
  6. pub fn bolt_execute(_ctx: Context<BoltExecute>, _args: Vec<u8>) -> Result<Vec<Vec<u8>>> {
  7. Ok(Vec::new())
  8. }
  9. }
  10. #[derive(Accounts, Clone)]
  11. pub struct BoltExecute<'info> {
  12. /// CHECK: authority check
  13. #[account()]
  14. pub authority: AccountInfo<'info>,
  15. }