Skip to content

Commit

Permalink
Merge pull request #57 from NoshonNetworks/registry
Browse files Browse the repository at this point in the history
feat: helper functions
  • Loading branch information
fishonamos authored Oct 14, 2024
2 parents dad2dfe + 0f1228d commit f84e8cd
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion land_registry/src/interface.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,7 @@ pub trait ILandRegistry<TContractState> {

fn update_land(ref self: TContractState, land_id: u256, area: u256, land_use: LandUse);
// fn get_approved_lands
//fn approve_land

//fn approve_land
//fn reject_land
}
2 changes: 1 addition & 1 deletion land_registry/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub mod interface;
pub mod land_register;

pub mod utils;
9 changes: 9 additions & 0 deletions land_registry/src/tests/test_land_register.cairo
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
// *************************************************************************
// Setup
// *************************************************************************
use starknet::ContractAddress;
// *************************************************************************
// TESTS
// *************************************************************************

//#[test]

5 changes: 5 additions & 0 deletions land_registry/src/utils.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//helper functions
use starknet::{get_caller_address, get_block_timestamp, ContractAddress};
//LandHelpers


0 comments on commit f84e8cd

Please sign in to comment.