Instructions
Exploring iCoordinates Solana Program
The icoordinates_solana
program is a Solana-based smart contract that facilitates various actions and operations related to the iCoordinates protocol. In this article, we'll delve into the different functions provided by this program, understanding their purpose and how they are implemented.
Instruction: initialize
initialize
The initialize
function is used to initialize the iCoordinates protocol. It sets the initial configuration, including the allowed ranges for coordinates (x_min
, x_max
, y_min
, y_max
) and portions for protocol fees (protocol_min_portion
, protocol_max_portion
) and lucky draw rewards (luckydraw_portion
).
Instruction: buy_coordinates_on_sale
buy_coordinates_on_sale
The buy_coordinates_on_sale
function enables users to purchase coordinates that are listed for sale.
Instruction: change_coordinates_price
change_coordinates_price
The change_coordinates_price
function allows the owner to change the price of coordinates that are listed for sale.
Instruction: claim_lucky_draw
claim_lucky_draw
The claim_lucky_draw
function allows a user to claim a lucky draw reward for specific coordinates.
Instruction: edit_coordinates
edit_coordinates
The edit_coordinates
function allows the owner to edit the details of a set of coordinates.
Instruction: purchase_coordinates
purchase_coordinates
The purchase_coordinates
function enables a user to purchase specific coordinates.
Instruction: put_coordinates_on_sale
put_coordinates_on_sale
The put_coordinates_on_sale
function allows a user to list coordinates for sale with a specified price.
Instruction: retract_coordinates_off_market
retract_coordinates_off_market
The retract_coordinates_off_market
function lets a user retract coordinates that were previously listed for sale.
Instruction: return_coordinates
return_coordinates
The return_coordinates
function enables the return of specific coordinates to the protocol.
Instruction: transfer_coordinates
transfer_coordinates
The transfer_coordinates
function facilitates the transfer of ownership of coordinates to a new owner specified by new_owner
.
Instruction: put_coordinates_on_auction
put_coordinates_on_auction
The put_coordinates_on_auction
function allows a user to list coordinates for auction with a starting price and an end time for bidding.
Instruction: seller_cancel_auction
seller_cancel_auction
The seller_cancel_auction
function enables the seller to cancel an ongoing auction for specific coordinates.
Instruction: bid_on_auction
bid_on_auction
The bid_on_auction
function allows a user to place a bid on coordinates listed for auction.
Instruction: seller_confirm_auction_order
seller_confirm_auction_order
The seller_confirm_auction_order
function allows the seller to confirm the auction for specific coordinates, transferring ownership to the highest bidder.
Instruction: buyer_confirm_auction_order
buyer_confirm_auction_order
The buyer_confirm_auction_order
function allows the highest bidder to confirm the auction for specific coordinates, completing the transaction and transferring ownership.
Instruction: give_offer
give_offer
The give_offer
function enables a user to make an offer for specified coordinates, indicating the amount they are willing to pay.
Instruction: cancel_offer
cancel_offer
The cancel_offer
function allows the offerer to cancel their offer for the specified coordinates if it hasn't been accepted.
Instruction: accept_offer
accept_offer
The accept_offer
function enables the owner of coordinates to accept a specific offer, transferring ownership to the offerer.
Last updated