Skip to content

pipe-dapp/nns-dapp

 
 

Repository files navigation

Network Nervous System Dapp

The NNS front-end Dapp is a dapp that provides a user friendly way to interact with the NNS of the Internet Computer. With it, you can:

  • Send/receive ICP
  • Stake neurons
  • Create canisters
  • Top up canisters with cycles
  • View and vote on NNS proposals

Additional resources

What it looks like

image

Official build

The official build should ideally be reproducible, so that independent parties can validate that we really deploy what we claim to deploy.

We try to achieve some level of reproducibility using a Dockerized build environment. The following steps should build the official Wasm image

docker build -t nns-dapp .
docker run --rm --entrypoint cat nns-dapp /nns-dapp.wasm > nns-dapp.wasm
sha256sum nns-dapp.wasm

The resulting nns-dapp.wasm is ready for deployment as qoctq-giaaa-aaaaa-aaaea-cai, which is the reserved principal for this service.

Our CI also performs these steps; you can compare the SHA256 with the output there, or download the artifact there.

Development

Development relies on the presence of a testnet that is setup with the II, governance, ledger, and cycle minting canisters. Fully local development is unfortunately not yet supported and the tools for setting up a testnet are not yet available publicly. It is on the roadmap to make these tools available publicly for developers.

To deploy to the testnet, run the following:

./deploy.sh testnet

You can now access the frontend using:

open "https://$(dfx canister --no-wallet --network testnet id nns-dapp).nnsdapp.dfinity.network"

To work on the UI locally, either use your IDE, or run the following:

cd frontend/dart
flutter run --no-sound-null-safety --dart-define=DEPLOY_ENV=staging --web-port 5021

About

The Dapp of the Internet Computer's Network Nervous System.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 47.5%
  • Dart 29.7%
  • TypeScript 13.0%
  • Rust 8.6%
  • Shell 0.4%
  • Svelte 0.4%
  • Other 0.4%