Skip to content

bvoiturier/midnight-poc

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published