Generating Keys and Addresses
The best way to set up your environment is with the plinth-template installer, which creates a ready-to-build Plinth project using your choice of Nix, Docker, Demeter, or plain GHC + Cabal. See its README for details. For this tutorial, create the project in a directory named on-chain:
Getting Funds from the Faucet
Next, we'll need to fund the wallet of each participant (seller, bidder1 and bidder2), in order to cover transaction fees and place bids.
Minting the Token to be Auctioned
Before we can start the auction, we need to mint a token to be auctioned.
Placing Bids
Now we can start bidding.
Closing the Auction
Once the auction's end time has elapsed, a transaction can be submitted to finalize the auction, distributing the token and the highest bid accordingly.