Auction
Last updated
Last updated
Smart Contract:[ThemisAuction.sol](Solidity-Open-Source/ThemisAuction.sol at main · Themis-protocol/Solidity-Open-Source · GitHub)
Participation in the auction
There are two types of auction:
buy it now
andDutch auction
. In this method,amount
has a minimum starting price requirementBuy it now: when the amount paid for a lot is greater than or equal to the
Buy it now
price, it is counted as abuy it now
price and the excess amount is returned to the user addressDutch auction: no more details
Parameters:
Name | Type | Description |
---|---|---|
Claim the lot when user bid it succesful
Parameters:
Get all lot IDs
Get the IDs of lots with a history of participation
Get the lot ID of the specified user's participation
Parameters:
Get lots info in user participation
Parameters:
Returns:
BidAuctionInfo Data structure
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
auctionId
uint256
The token ID of the lot
amount
uint256
Payment amount
auctionId
uint256
The token ID of the lot
user
address
wallet address of a user
user
address
wallet address of a user
auctionId
uint256
lot ID
harvestAddress
address
winner's address
harvestFlag
boolean
Harvest or not?