lib.rs 553 B

1234567891011121314151617181920212223242526272829
  1. use anchor_lang::prelude::*;
  2. use instructions::*;
  3. pub mod instructions;
  4. pub mod state;
  5. declare_id!("FFKtnYFyzPj1qFjE9epkrfYHJwZMdh8CvJrB6XsKeFVz");
  6. #[program]
  7. pub mod anchor_program_example {
  8. use super::*;
  9. pub fn create_page_visits(
  10. ctx: Context<CreatePageVisits>
  11. ) -> Result<()> {
  12. instructions::create::create_page_visits(ctx)
  13. }
  14. pub fn increment_page_visits(
  15. ctx: Context<IncrementPageVisits>
  16. ) -> Result<()> {
  17. instructions::increment::increment_page_visits(ctx)
  18. }
  19. }