Skip to content

Inco-fhevm/lightning-rod

Repository files navigation

Lightning Rod

Lightning Rod is the home of the Dapp Developer Kit (DDK) for Inco Lightning network.

Lightning Rod

To start working with Inco Lightning and the Lighting Rod template repository, work through the Quick Start section below.

Further documentation is linked below.

Documentation

Quick Start

Prerequisites

We require recent versions of

to be installed.

Install dependencies

To install the dependencies, run:

bun install

Local test network

To run a local test network, you need to have Docker installed. You can use the following command to start the network:

docker compose up

This is useful to deploy your dapp locally and test it in a simulated environment.

Running simple end-to-end test

This test makes sure your local inco environment works properly.
You can run the incolite.local.e2e.test.ts and automatically boot the local test network with:

# no need to have docker compose running prior to this command. Have the docker daemon up.
bun test:e2e

This compiles some contracts with Foundry and run a local Inco Lightning environment (runs the docker compose) in the background.

If you have the docker compose already running in the background, you can run the test like so:

cd backend && bun run test:e2e

Testing a Confidential Smart Contract

An example of a simple confidential token using inco is provided in contracts/.
To test run:

bun install
cd contracts
forge test

About

Dapp Development Kit (DDK) for Inco Lightning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 9