The repository contains an example Auction DApp
used to showcase Midnight integration.
The Auction DApp is implemented as a Command-Line Interface (CLI) application, allowing users to interact with the smart contract via terminal commands.
Follow the Midnight Prerequisites for part 2 installation steps to:
- Install
nvm
(Node Version Manager) - Install
compactc
, the Midnight Compact compiler - Optionally: install the VSCode extension for the Compact language
- Clone the repository
git clone https://github.com/bvoiturier/midnight-poc.git
- Configure NVM for the project
cd midnight-poc
nvm install
corepack enable
yarn
- Build the example project
cd examples/bboard-tutorial
npx turbo build
- Start the local Proof Server
docker run -p 6300:6300 midnightnetwork/proof-server -- 'midnight-proof-server --network testnet'
- Start the CLI DApp for seller (Alice) and bidder (Bob)
cd bboard-cli
yarn testnet-remote alice
yarn testnet-remote bob
- Provision new wallets with some tDUST
To interact with the Auction DApp, you’ll need to provision the wallets with tDUST, a testnet token used for transactions within the Midnight ecosystem.
To do so, follow the Midnight Token Acquisistion documentation.