flite icon indicating copy to clipboard operation
flite copied to clipboard

πŸ“ FLITE: FRAME, but lower on the dose of complexity, ergo lite. Part of Polkadot-SDK

FLITE

πŸ“ FLITE: FRAME, but lower on the dose of complexity, ergo lite. Part of Polkadot-SDK

This repo is a demo of how a much simpler variant of FRAME can be built, solely using existing abstractions.

  • flite is one such crate. It is an opinionated replacement for frame_system, and a set of defaults for a number of other pallets.
  • simple-pallet is a demonstration of how a new pallet can be built using flite instead of frame_system.
  • runtime is a runtime containing both of the aforementioned.

[!TIP] None of the code provided here is production-ready, but is merely for demonstrating techniques. The main audience of this is educators and creative builders in the Polkadot ecosystem.

Running with OmniNode

Install dependencies:

cargo install polkadot-omni-node
cargo install staging-chain-spec-builder

Build the runtime and gßnerate the chain-spec:

cargo build --release
chain-spec-builder create -t development --relay-chain "dont-care" --para-id 9999 --runtime ./target/release/wbuild/runtime/runtime.wasm default

Then run the node:

polkadot-omni-node --chain ./runtime/chain_spec.json --dev-block-time 1000