Native protocol modules
Integrate a native contract module.
Start from the state your integration needs, select the module that owns it, read its live bindings, prepare only its bounded writes, and verify the exact receipt. Contract evidence remains separate from SDK, Studio, and browser evidence.
Contract data and state model
The union separates immutable bytes, logical objects, presentation, token ownership, sales, rights, proofs, and runtime attachments.
Objects and presentation
Hold stores bytes; ArtifactRegistry stores logical revisions; HarnessRegistry stores viewer revisions; Presentation registries select what a token renders; Index binds the active collection/token view.
Tokens and product state
Die/factory own token supply and capacity. Mint managers own sale stages. Equipment and stake managers own bounded custody/runtime state. Market owns escrow and credits.
Trust and proof state
Graph registries bind code and permissions. Crucible stores collection/content evidence. Anchors store portable/cross-chain evidence. IP control stores rights and executable action grants.
EVM module reference by system
Use this reference after identifying the state and transition your integration needs. Each card names its source, focused test evidence, deployment record, reads/writes, and security boundary.
keel-kernel
The dependency floor: bounded administration, JSON escaping, direct-code identity checks, and collection-freeze validation. It owns no product state and has no deployable contract in its manifest.
- Source
- keel-contracts/src/modules/keel-kernel/
- Tests
- keel-contracts/test/modules/keel-kernel/JsonEscape.t.sol
- Deployment
- None required; the manifest declares no deployable contracts.
- Reads are pure library and role checks; dependent contracts perform the writes.
- Authority is inherited only where a consuming contract imports the access primitive.
- A code-identity or freeze-closure mismatch must fail before a mutable dependency is trusted.
Source · Implemented locally
keel-contracts/modules/keel-kernel/keel.module.json ↗keel-codecs
Pure Solidity codecs for RLP, Merkle-Patricia proofs, block headers, Ethereum accounts, OP output roots, IPFS CIDs and DAG-PB, Base32, Base58, and BLS12-381.
- Source
- keel-contracts/src/modules/keel-codecs/
- Tests
- keel-contracts/test/modules/keel-codecs/*.t.sol
- Deployment
- None required; these are stateless libraries.
- Reads decode bounded proof or content structures; there is no persistent write surface.
- Callers remain responsible for selecting the correct trust root and checking the decoded result.
- Malformed lengths, encodings, paths, field elements, or unsupported forms are rejected rather than normalized into a proof.
Source · Implemented locally
keel-contracts/modules/keel-codecs/keel.module.json ↗keel-hold
Immutable byte carriers and the active inventory: Ingot stores code-as-data, KeelHold records content-addressed leaf and composite objects, and KeelIndex selects active presentations.
- Source
- keel-contracts/src/modules/keel-hold/
- Tests
- keel-contracts/test/modules/keel-hold/*.t.sol
- Deployment
- keel-contracts/modules/keel-hold/deployments/11155111.json
- Reads reconstruct exact stored bytes and active object/presentation records.
- Writes cast immutable chunks, weld ordered objects, and update Index state through its controller.
- Stored bytes are not safe to execute until decoded length, digest, graph order, and active binding are independently checked.
Source · Recorded testnet deployment
keel-contracts/modules/keel-hold/keel.module.json ↗keel-artifacts
The logical object plane: artifact revisions, viewer revisions, locators, deterministic seeds, and the governed manager/proxy that controls bounded protocol administration.
- Source
- keel-contracts/src/modules/keel-artifacts/
- Tests
- keel-contracts/test/modules/keel-artifacts/*.t.sol
- Deployment
- keel-contracts/modules/keel-artifacts/deployments/11155111.json
- Reads expose exact revisions, effective token viewers, revealed link sets, seed roots, and manager policy.
- Writes append exact-parent revisions, freeze objects, publish precommitted links and seeds, and execute quorum-approved manager actions.
- A digest, locator, token owner, and edit policy are separate facts; none may silently confer the others' authority.
Source · Recorded testnet deployment
keel-contracts/modules/keel-artifacts/keel.module.json ↗keel-graph
The trust lattice for recursive graphs, contract plugins, reusable libraries, and non-contract module reviews. Authorization is derived from the exact current graph bindings, not from a badge alone.
- Source
- keel-contracts/src/modules/keel-graph/
- Tests
- keel-contracts/test/modules/keel-graph/*.t.sol
- Deployment
- keel-contracts/modules/keel-graph/deployments/11155111.json
- Reads resolve graph versions, library assets, plugin specifications, review state, and live authorization.
- Submission is permissionless; separate reviewers sanction, deprecate, or terminally revoke an exact specification digest.
- Changing a manifest, resource graph, ABI, adapter, target, code hash, permissions, or storage tier requires a new version and review.
Source · Recorded testnet deployment
keel-contracts/modules/keel-graph/keel.module.json ↗keel-presentation
Presentation and visual-state ledgers record what a token renders now and the complete reconstruction context needed to reproduce prior revisions.
- Source
- keel-contracts/src/modules/keel-presentation/
- Tests
- keel-contracts/test/modules/keel-presentation/*.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads return current and prior presentation state, revision, digest, and reconstruction context.
- Authorized writers append revisions; collection policy determines who can advance or freeze presentation.
- A digest-only receipt is insufficient when the historical work cannot be rebuilt from committed state or patch bytes.
Source · Implemented locally
keel-contracts/modules/keel-presentation/keel.module.json ↗keel-sleeve
A conventional token-JSON resolver for collections that delegate metadata assembly while keeping the Keel object and presentation commitments explicit.
- Source
- keel-contracts/src/modules/keel-sleeve/
- Tests
- keel-contracts/test/modules/keel-sleeve/KeelSleeve.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads assemble token JSON from a declared resolver and exact token context.
- Configuration authority belongs to the collection integration, not to the viewer consuming the JSON.
- Marketplace-compatible metadata is a presentation surface, not independent proof that its resources are immutable or verified.
Source · Implemented locally
keel-contracts/modules/keel-sleeve/keel.module.json ↗keel-harness
The on-chain HTML builder reconstructs committed viewer programs from stored resources and can inject bounded token context without changing the viewer bytes.
- Source
- keel-contracts/src/modules/keel-harness/
- Tests
- keel-contracts/test/modules/keel-harness/*.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads return exact harness HTML for a committed object and expected digest.
- Writes occur in the referenced storage/artifact registries; the builder itself is a read composition surface.
- A context mismatch, missing resource, wrong digest, or unbounded composition must fail closed with no fallback viewer.
Source · Implemented locally
keel-contracts/modules/keel-harness/keel.module.json ↗keel-web3-url
An ERC-5219/7617 compatibility adapter that exposes exact Keel resources through web3:// request and streaming shapes without replacing native Keel identity.
- Source
- keel-contracts/src/modules/keel-web3-url/
- Tests
- keel-contracts/test/modules/keel-web3-url/*.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads map URL paths and range/stream requests to exact Keel object bytes.
- The adapter has no authority to revise the underlying object or portable root.
- Loop limits, content type, compression, unsupported request forms, and response bounds are part of the compatibility security boundary.
Source · Implemented locally
keel-contracts/modules/keel-web3-url/keel.module.json ↗keel-die
The KEEL721 collection base, deployer, and factories establish ownership, supply, mint capacity, royalties, artifact binding, and opt-in harness context.
- Source
- keel-contracts/src/modules/keel-die/
- Tests
- keel-contracts/test/modules/keel-die/*.t.sol
- Deployment
- keel-contracts/modules/keel-die/deployments/11155111.json
- Reads expose token ownership, supply/capacity, factory version and code hashes, and collection configuration.
- Collection admins or exact signed factory authorizations create collections and grant bounded mint managers.
- A stale factory, mismatched creation-code hash, exhausted capacity, invalid signature, or changed config digest is rejected before creation or mint.
Source · Recorded testnet deployment
keel-contracts/modules/keel-die/keel.module.json ↗keel-creator-identity
Creator profiles, creator commitments, and attribution records make public identity and contribution claims explicit without turning them into edit, ownership, runtime, or licensing authority.
- Source
- keel-contracts/src/modules/keel-creator-identity/
- Tests
- keel-contracts/test/modules/keel-creator-identity/*.t.sol
- Deployment
- keel-contracts/modules/keel-creator-identity/deployments/11155111.json
- Reads expose active profiles, commitments, attested labels, self-claims, and deactivation state.
- Creators control their profiles and attest attribution; a named contributor may self-claim without inheriting verification.
- Display-name resolution must not replace the saved creator profile or promote a self-claim to creator-attested attribution.
Source · Recorded testnet deployment
keel-contracts/modules/keel-creator-identity/keel.module.json ↗keel-mint-access
Campaign gates and OneMint ordered stages authorize collection minting without granting a sales manager unlimited collection authority.
- Source
- keel-contracts/src/modules/keel-mint-access/
- Tests
- keel-contracts/test/modules/keel-mint-access/*.t.sol
- Deployment
- keel-contracts/modules/keel-mint-access/deployments/11155111.json
- Reads expose campaign/drop terms, gate configuration, stage order, wallet usage, capacity, price, nonce, and lifecycle.
- Authorized creators configure campaigns; collectors submit exact proofs, signatures, payments, and quantities; payouts are pull-based.
- Unsupported stage kinds, fee-on-transfer payments, stale nonces, partial-context substitution, and capacity oversubscription fail closed.
Source · Recorded testnet deployment
keel-contracts/modules/keel-mint-access/keel.module.json ↗keel-cross-chain-mint
This module contains three separate jobs: CrossChainMintBridge consumes source-bound evidence to authorize a destination mint; CarrierBatcher batches local KeelHold calls; PublicationJob records and resumes local publication work.
- Source
- keel-contracts/src/modules/keel-cross-chain-mint/
- Tests
- keel-contracts/test/modules/keel-cross-chain-mint/*.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- CrossChainMintBridge reads consumed identifiers and destination policy, then enforces replay and target binding for the mint path.
- CarrierBatcher only groups local storage calls for wallet execution; it does not carry bytes or proof between chains.
- PublicationJob tracks resumable local publication. Neither helper proves a source event. A threshold signature remains attested evidence, not a light-client proof.
Source · Implemented locally
keel-contracts/modules/keel-cross-chain-mint/keel.module.json ↗keel-equipment
Token-owned equipment combines backed custody, immutable visual definitions, distribution, supply reservations, strict descriptors, read helpers, and one-use duplication.
- Source
- keel-contracts/src/modules/keel-equipment/
- Tests
- keel-contracts/test/modules/keel-equipment/KeelEquipmentInventory.t.sol
- Deployment
- keel-contracts/modules/keel-equipment/deployments/11155111.json
- Reads expose definitions, loadouts, backing custody, reservations, descriptor commitments, and exact source objects.
- Character owners mutate loadouts; collection controllers curate compatible definitions; reserved issuers consume bounded supply.
- Ownership is rechecked across external transfers, state clears before withdrawal, and descriptor/code drift fails before a consume or replacement.
Source · Recorded testnet deployment
keel-contracts/modules/keel-equipment/keel.module.json ↗keel-stake
Stake-object custody binds a host object, staked token, lock policy, immutable runtime code, seed, arguments, variables, counters, and manager-review evidence.
- Source
- keel-contracts/src/modules/keel-stake/
- Tests
- keel-contracts/test/modules/keel-stake/KeelStakeObjectManager.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads expose active stake, staker, controller, host and token ownership, runtime commitments, lockup, and monotonic counters.
- Token owners approve custody; the verified manager configures the runtime and enforces enter/leave policy.
- An unreviewed manager, wrong code hash, mismatched runtime digest, unauthorized token, or active lock blocks the transition.
Source · Implemented locally
keel-contracts/modules/keel-stake/keel.module.json ↗keel-anchors
Portable and attested anchors, L2/state settlement proofs, IPFS verification, oracle routes, ZK backends, node registration, and community replication bindings.
- Source
- keel-contracts/src/modules/keel-anchors/
- Tests
- keel-contracts/test/modules/keel-anchors/*.t.sol
- Deployment
- No module deployment JSON is present in the inspected checkout.
- Reads expose portable identities, anchor revisions, verifier family, proof tier, settlement depth, topology, and replication state.
- Writers submit family-specific evidence; registry governance adds verifier families append-only and cannot promote a weaker proof silently.
- A locator, CID, oracle report, trusted RPC result, L2 output, and native consensus proof are different evidence classes and remain labelled separately.
Source · Implemented locally
keel-contracts/modules/keel-anchors/keel.module.json ↗keel-crucible
Collection verification, collection attestations, URI reports, pixel fingerprints, and community replication keep content evidence separate from collection-control evidence.
- Source
- keel-contracts/src/modules/keel-crucible/
- Tests
- keel-contracts/test/modules/keel-crucible/*.t.sol
- Deployment
- keel-contracts/modules/keel-crucible/deployments/11155111.json
- Reads expose route, revision, governance, mint, supply, upgrade, URI, pixel, and replication facets independently.
- Official hooks, exact adapters, attestors, and contributors write only within their declared verification scope.
- Unknown is not zero, an observed URI is not authenticity, a pixel receipt is not general provenance, and replication is not authorship.
Source · Recorded testnet deployment
keel-contracts/modules/keel-crucible/keel.module.json ↗keel-ip-control
Rights policies, token-gated actions, signed grants, wrapped ERC-721 custody, and an executor for bounded download, remint, backpack, or other declared actions.
- Source
- keel-contracts/src/modules/keel-ip-control/
- Tests
- keel-contracts/test/modules/keel-ip-control/*.t.sol
- Deployment
- keel-contracts/modules/keel-ip-control/deployments/11155111.json
- Reads expose policy, license, access mode, action scope, token gate, nonce, expiry, and wrapped-custody state.
- Rights controllers grant or revoke policy; users execute only a currently authorized exact action; smart-wallet signatures use ERC-1271.
- Ownership, attribution, access, license, edit authority, and action authority are independent and never inferred from one another.
Source · Recorded testnet deployment
keel-contracts/modules/keel-ip-control/keel.module.json ↗keel-market
An escrow market plugin with listings, bids, exact settlement quotes, royalties, platform fees, pull-payment credits, expiry, cancellation, and recovery controls.
- Source
- keel-contracts/src/modules/keel-market/
- Tests
- keel-contracts/test/modules/keel-market/KeelMarket.t.sol
- Deployment
- keel-contracts/modules/keel-market/deployments/11155111.json
- Reads expose listings, bids, versions, settlement quotes, royalty/platform splits, credits, and expiry.
- Sellers escrow and list, buyers or bidders commit exact value, sellers accept exact-version bids, and recipients withdraw pull credits.
- The sandbox sends symbolic intent only; the host re-resolves target, ABI, permissions, current state, simulation, receipt, and postcondition before success.
Source · Recorded testnet deployment
keel-contracts/modules/keel-market/keel.module.json ↗Tezos contract families
These are substantive native SmartPy implementations. They do not imply accepted one-to-one parity with every EVM module.
Core objects, storage, and presentation
Artifact registry, chunk store, Index, harness builder/registry, link registry, seed registry, presentation state, Sleeve, OnchFS store, and immutable checkpoints.
- Source
- vault-tezos/contracts/keel_artifact_registry.py; keel_chunk_store.py; keel_index.py; keel_harness_builder.py; keel_harness_registry.py; keel_link_registry.py; keel_seed_registry.py; keel_presentation_state.py; keel_sleeve.py; keel_onchfs_store.py; keel_immutable_checkpoint.py
Source · Implemented locally
vault-tezos/tests/test_keel_artifact_registry.py; test_keel_index.py; test_keel_harness_builder.py; test_keel_harness_registry.py; test_keel_link_registry.py; test_keel_seed_registry.py; test_keel_presentation_state.py; test_keel_sleeve.pyCollections, mint, identity, and authority
FA2 collections, mint gates, creator profiles/commitments/attribution, and an immutable manager with native proposal lambdas and separate governance/gameplay roles.
- Source
- keel_collection_fa2.py; keel_mint_gate.py; keel_creator_profile.py; keel_manager.py
Source · Implemented locally
vault-tezos/tests/test_keel_collection_fa2.py; test_keel_mint_gate.py; test_keel_creator_profile.py; test_keel_manager.py; test_keel_manager_governance.pyGraphs, libraries, plugins, and markets
Graph/library/plugin/module review state and a native market cover reusable code trust and escrow commerce without giving sandboxed art transaction authority.
- Source
- keel_graph.py; keel_market.py
Source · Implemented locally
vault-tezos/tests/test_keel_graph.py; test_keel_market.pyEquipment, stake, and Vault runtime
Equipment definitions/reservations, stake objects, character/map FA2 state, commit-reveal seed reservations, runtime recipes, hardcore custody, signature policy, and leaderboard settlement.
- Source
- keel_equipment.py; stake_object.py; vault.py
Source · Browser-proven locally
vault-tezos/tests/test_keel_equipment.py; test_stake_object.py; test_vault.py; test_vault_hardcore.pyVerification and cross-chain evidence
Crucible verification, Bitcoin headers/inscriptions, Ethereum state proofs, and threshold cross-mint attestation keep native, client, and attested evidence distinct.
- Source
- keel_crucible.py; keel_btc_header_chain.py; keel_eth_state_proof.py; keel_tezos_cross_mint_attestor.py
Source · Implemented locally
vault-tezos/tests/test_keel_crucible.py; test_keel_btc_header_chain.py; test_keel_eth_state_proof.py; test_keel_tezos_cross_mint_attestor.pyIP rights and actions
IP control, licenses, token gates, wrapped FA2 custody, typed action definitions, and the action executor implement native Tezos rights decisions.
- Source
- keel_ip_control.py; keel_ip_license.py; keel_ip_token_gate.py; keel_ip_wrapped_fa2.py; keel_ip_action_types.py; keel_ip_action_executor.py
Source · Implemented locally
vault-tezos/tests/test_keel_ip_control.py; test_keel_ip_action_executor.pySDK and Studio surfaces
Generated ABIs and product services consume contracts; they do not replace their authority.
SDK registry
@keel/sdk carries generated ABIs, module metadata, named instances, dependency order, and address resolution. Ambiguous instances are errors.
const market = await moduleContract({
module: "keel-market",
contract: "KeelMarket",
chainId: 11155111,
});Studio reads and writes
Studio performs bounded contract reads, prepares exact operations, simulates where available, opens a wallet request, and confirms exact events/postconditions before updating release projections.
Deployment evidence boundary
Ten EVM modules and the Vault Runner app have checked repository deployment JSON for Sepolia. The files were not live-reverified in this content build.
Recorded module deployments
keel-artifacts, creator-identity, crucible, die, equipment, graph, hold, IP control, market, and mint-access.
Source · Recorded testnet deployment
keel-contracts/modules/*/deployments/11155111.json ↗Recorded app deployment
Vault Runner has a Sepolia app deployment record.
Source · Recorded testnet deployment
keel-contracts/apps/vault-runner/deployments/11155111.json ↗Tezos release boundary
The package reports local SmartPy, Octez mockup, and browser evidence while explicitly withholding accepted Shadownet release approval.
Source · Partial
vault-of-the-fallen/packages/vault-tezos/README.md
