Skip to content

enehizy/Auction_Starknet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIDA Academy Basic Auction Smart Contract

This repository contains a basic Auction Smart Contract developed as part of the GIDA Academy’s blockchain development curriculum. The contract is written in cairo and is designed to allow users to bid on an item, with the highest bidder winning the auction. The project focuses on introducing writing testing and deploying samrt contract using scarb and starknet foundry

interface

#[starknet::interface]
trait IAuction<T>{
    fn register_item(ref self:T,item_name: ByteArray);

    fn unregister_item(ref self:T,item_name: ByteArray);

    fn bid(ref self:T,item_name:ByteArray,amount:u32);

    fn get_highest_bidder(self:@T, item_name:ByteArray)->u32;
    
    fn is_registered(self:@T, item_name:ByteArray)->bool;

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages