lib.rs 565 B

123456789101112131415161718192021
  1. use anchor_lang::prelude::borsh::{BorshDeserialize, BorshSerialize};
  2. use anchor_lang::prelude::*;
  3. use bolt_helpers_system_template::system_template;
  4. declare_id!("7X4EFsDJ5aYTcEjKzJ94rD8FRKgQeXC89fkpeTS4KaqP");
  5. #[system_template(max_components = 3)]
  6. #[program]
  7. pub mod bolt_system {
  8. use super::*;
  9. pub fn execute(_ctx: Context<SetData>, _args: Vec<u8>) -> Result<Vec<u8>> {
  10. Ok(Vec::new())
  11. }
  12. }
  13. #[derive(Accounts, Clone)]
  14. pub struct SetData<'info> {
  15. #[account()]
  16. /// CHECK: unchecked account
  17. pub component: UncheckedAccount<'info>,
  18. }