lib.rs 742 B

123456789101112131415161718192021222324252627282930313233
  1. // This file is autogenerated with https://github.com/acheroncrypto/native-to-anchor
  2. use anchor_lang::prelude::*;
  3. declare_id!("4dUGnkre6uBhX1abB4ofkoecGN4aDXdiWSaWLUjVw6bh");
  4. #[program]
  5. pub mod spl_associated_token {
  6. use super::*;
  7. pub fn create(ctx: Context<Create>) -> Result<()> {
  8. Ok(())
  9. }
  10. }
  11. #[derive(Accounts)]
  12. pub struct Create<'info> {
  13. #[account(mut)]
  14. authority: Signer<'info>,
  15. #[account(mut)]
  16. /// CHECK:
  17. associated_account: AccountInfo<'info>,
  18. /// CHECK:
  19. owner: AccountInfo<'info>,
  20. /// CHECK:
  21. mint: AccountInfo<'info>,
  22. /// CHECK:
  23. system_program: AccountInfo<'info>,
  24. /// CHECK:
  25. token_program: AccountInfo<'info>,
  26. /// CHECK:
  27. rent: AccountInfo<'info>,
  28. }