lib.rs 582 B

1234567891011121314151617181920212223242526272829303132
  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_address_info(
  10. ctx: Context<CreateAddressInfo>,
  11. name: String,
  12. house_number: u8,
  13. street: String,
  14. city: String,
  15. ) -> Result<()> {
  16. instructions::create::create_address_info(
  17. ctx,
  18. name,
  19. house_number,
  20. street,
  21. city,
  22. )
  23. }
  24. }