Auction is a reach app in which an ASA holder to auction an asset for ALGOs. It allows bidding and price discovery on the asset during the auction. After the end of the auction time the contract can be closed out and it either meets the sellers set reserve price resulting in payouts to the seller, marketplace, creator and a transfer of the asset to the highest bidder. Alternately if a reserve price is not met then the contract may be closes out returning all funds and assets to their original owners or left to be sold at the reserved price.
0.55 ALGO
Sets auction parameters such as deadline and start price. This is the token holder.
This is the auctioneer after setting the token because it is not possible to publish what the token is and pay in the same step. However, it may be removed if neccesary by using the brick.
Allowed to close auction. Reserved for platform to prevent unwanted error bombings.
Number of bids. May be only relevant in older version using ParticipantClass.
Number of closes. May be only relevant in older version using ParticipantClass.
Token being auctioned
Bidder with lead initially Auctioneer
Current price of token in auction initially start price
The price at the start of the auction
The price at which the auction may transfer ownership if met at the end of the auction
depreciated
depreciated
Time at which auction is initially schedule to end
Auctioneer address because during the auction the token is owned by the contract
How much of the proceeds is goes to the asset creator. Set by the Auctioneer.
The lowest amount that will be accepted as the next leading bid
Used to submit bit
Used to purchase token at end of auction
Used to close auction
Used to touch auction
- Auctioneer sets up auction
- Token is deposited
- Enter api (can bid/buy/close/touch)
- Relay deletes app
commands
git clone git@github.com:ZestBloom/auction.git
cd auction
source np.sh
np
output
{"info":66944916}
NP provides a nonintrusive wrapper allowing apps to be configurable before deployment and created on the fly without incurring global storage.
Connect to the constructor and receive an app id.
Activate the app by paying for deployment and storage cost.
After activation, your RApp takes control.
In your the frontend of your NPR included Contractee participation. Currently, a placeholder fee is required for activation. Later an appropriate fee amount will be used.
ctc = acc.contract(backend, id)
backend.Contractee(ctc, {})
- NP - Nash Protocol
- RAap - Reach App
- NPR - NP Reach App
- Activation - Hand off between constructor and contractee require fee to pay for deployment and storage cost incurred by constructor
- Reach development environment (reach compiler)
- sed - stream editor
- grep - pattern matching
- curl - request remote resource