lib.rs 486 B

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