NoshonNetworks / landver

Onchain Land Management
https://landver.net/
MIT License
7 stars 33 forks source link

test land market functions #151

Open fishonamos opened 2 hours ago

fishonamos commented 2 hours ago

We have some functions in the market place that need to be tested. The functions are listed below:


    fn create_listing(ref self: TContractState, land_id: u256, price: u256) -> u256;
    fn cancel_listing(ref self: TContractState, listing_id: u256);

    fn update_listing_price(ref self: TContractState, listing_id: u256, new_price: u256);
    fn buy_land(ref self: TContractState, listing_id: u256);

    fn get_listing(self: @TContractState, listing_id: u256) -> Listing;
    fn get_active_listings(self: @TContractState) -> Array<u256>;

    fn get_listing_price_history(self: @TContractState, listing_id: u256) -> Array<(u256, u64)>;

 For each of them, pick two and test. This issue will be assigned to multiple contributors. Please comment with the one you want to work on. 
anonfedora commented 2 hours ago

Hi @fishonamos, I'm interested in testing fn get_listing(self: @TContractState, listing_id: u256) -> Listing; fn get_active_listings(self: @TContractState) -> Array;

emarc99 commented 2 hours ago

Hy, let me do below functions' test. Can handle Cairo through completion of Cairo NodeGurdians quests and Starklings 2.0.

fn create_listing(ref self: TContractState, land_id: u256, price: u256) -> u256; fn cancel_listing(ref self: TContractState, listing_id: u256);

martinvibes commented 2 hours ago

hey @fishonamos can i work on this too i'm cool testing fn update_listing_price(ref self: TContractState, listing_id: u256, new_price: u256); fn buy_land(ref self: TContractState, listing_id: u256);

fishonamos commented 2 hours ago

This is urgently need. You should be able to send a pr before end of day.

vestor-dev commented 2 hours ago

hey @fishonamos let me take the last one fn get_listing_price_history(self: @TContractState, listing_id: u256) -> Array<(u256, u64)>;

Akshola00 commented 2 hours ago

hey @fishonamos can i join in on this

fishonamos commented 2 hours ago

hey @fishonamos can i work on this too i'm cool testing fn update_listing_price(ref self: TContractState, listing_id: u256, new_price: u256); fn buy_land(ref self: TContractState, listing_id: u256);

Take buy land

fishonamos commented 1 hour ago

hey @fishonamos can i join in on this

take update listing

Akshola00 commented 1 hour ago

thanks on it now

hey @fishonamos can i join in on this

take update listing

fishonamos commented 1 hour ago

Hy, let me do below functions' test. Can handle Cairo through completion of Cairo NodeGurdians quests and Starklings 2.0.

fn create_listing(ref self: TContractState, land_id: u256, price: u256) -> u256; fn cancel_listing(ref self: TContractState, listing_id: u256);

Can you raise pr before end of day?

Jagadeeshftw commented 1 hour ago

Give me one function @fishonamos

fishonamos commented 1 hour ago

If no pr by end of day, we can assign to another person.

SoarinSkySagar commented 1 hour ago

@fishonamos can I join this issue?

emarc99 commented 1 hour ago

Hy, let me do below functions' test. Can handle Cairo through completion of Cairo NodeGurdians quests and Starklings 2.0. fn create_listing(ref self: TContractState, land_id: u256, price: u256) -> u256; fn cancel_listing(ref self: TContractState, listing_id: u256);

Can you raise pr before end of day?

Yes. On it now