Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.49 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.49 KB

Midnight Auction DApp PoC

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.

Requirements

Follow the Midnight Prerequisites for part 2 installation steps to:

  1. Install nvm (Node Version Manager)
  2. Install compactc, the Midnight Compact compiler
  3. Optionally: install the VSCode extension for the Compact language

Compiling the DApp

  1. Clone the repository
git clone https://github.com/bvoiturier/midnight-poc.git
  1. Configure NVM for the project
cd midnight-poc
nvm install
corepack enable
yarn
  1. Build the example project
cd examples/bboard-tutorial
npx turbo build

Run the DApp on the testnet

  1. Start the local Proof Server
docker run -p 6300:6300 midnightnetwork/proof-server -- 'midnight-proof-server --network testnet'
  1. Start the CLI DApp for seller (Alice) and bidder (Bob)
cd bboard-cli
yarn testnet-remote alice
yarn testnet-remote bob
  1. 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.