Lightning Rod is the home of the Dapp Developer Kit (DDK) for Inco Lightning network.
To start working with Inco Lightning and the Lighting Rod template repository, work through the Quick Start section below.
Further documentation is linked below.
We require recent versions of
to be installed.
To install the dependencies, run:
bun installTo run a local test network, you need to have Docker installed. You can use the following command to start the network:
docker compose upThis is useful to deploy your dapp locally and test it in a simulated environment.
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:e2eThis 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:e2eAn example of a simple confidential token using inco is provided in contracts/.
To test run:
bun install
cd contracts
forge test