Lionden

LionDen is a Hardhat-inspired development framework for Aleo and Leo. It includes everything you need for Leo smart contract development. It combines testing, deployment, TypeScript code generation, code verification, and more.

Architecture summary

LionDen is built around a few core ideas:

  • Declarative plugins: users add plugin objects in config rather than relying on side-effect imports.
  • Config lifecycle: user config is extended, validated, resolved, then validated again before runtime creation.
  • Task-driven CLI: plugins register tasks, tasks can override prior tasks, and the CLI dispatches into the resolved task registry.
  • Source-first compilation: users author Leo sources in programs/; LionDen materializes temporary Leo packages under artifacts for leo build.
  • Runtime environment: the LRE bundles resolved config, tasks, hooks, artifacts, plugins, and network services.
  • Test ergonomics: @lionden/testing creates or discovers an LRE, manages devnode lifecycle, and exposes assertions and fixtures for Vitest suites.

Resources