Deploying contracts to a Forma Network
The .fsl you write with this guide’s language rules does not have to
stay on your machine: Forma Network is the deployment and execution
target for contracts — a permissioned blockchain that orders operations
by consensus and executes them with the same real engine this toolchain
runs locally.
What the network adds on top of local execution:
- Consensus-ordered execution — your operation is ordered by a validator committee (Mysticeti) before it runs; every honest node computes the same outcome.
- Immutable, queryable receipts — each execution gets a durable,
content-addressed receipt with typed standings (
Executed{Complete},Rejected,OutOfGas), readable from any validator. - Contract lifecycle — sources are incorporated as immutable revisions (the real checker gates admission), deployed, invoked revision-exactly, and upgraded with historical binding: old receipts stay bound to the revision that executed them, forever.
- Cross-world atomicity — an operation can drive effects in multiple worlds all-or-none (DvP-style), surviving crashes between effects.
- Recovery — validators can be killed and restarted; state, history and identity recover from disk.
The language itself is unchanged: contracts are ordinary .fsl sources
(modules, relations, rules, infer applications). What the network adds
is the operational wrapper — incorporate/deploy/invoke/upgrade — and
the guarantees above.
Where to go
- Tutorial (start here):
docs/book/src/autoridades/network/forma-network-v0.1/TUTORIAL.md— your first contract end to end on a devnet, with real transcripts: incorporate → deploy → invoke → upgrade → atomic DvP. - Examples:
docs/book/src/autoridades/network/forma-network-v0.1/examples/— the devnet basis (three worlds, including two DvP worlds) and the tutorial contract at revisions R1 and R2. - RPC reference:
docs/book/src/autoridades/network/forma-network-v0.1/RPC-API.md. - Running a network:
docs/book/src/autoridades/network/forma-network-v0.1/GETTING-STARTED.md(devnet bootstrap) anddocs/book/src/autoridades/network/forma-network-v0.1/OPERATIONS.md(operations, recovery, monitoring). - How it works:
docs/book/src/autoridades/network/forma-network-v0.1/DEFINITIONS.mdand the SPEC documents in the same directory.
Boundary reminder
Local toolchain disclaimers elsewhere in this book (e.g. “the package
store has no network in v0.1”) are about this toolchain’s store and
APIs. Forma Network is a separate product — its guarantees and scope are
defined by its own contract
(docs/book/src/autoridades/contracts/forma-network-v0.1/CONTRACT.md)
and documented in the directory above.