preinstalls: contract runtime bytecode placed at fixed addresses during chain initialization. This removes the bootstrap tax of deploying basic infrastructure and ensures immediate compatibility with existing wallets, SDKs, and protocol tooling.
These contracts are identical or bytecode-equivalent to widely used deployments on Ethereum and major rollups, unless otherwise noted.
Contract Directory
Source of truth
The root genesis currently contains more entries than
x/vm/types.DefaultPreinstalls. Treat the root genesis as the canonical list for the current chain configuration.
Genesis and runtime behavior
ThePreinstall schema has three fields:
During genesis initialization,
x/vm/genesis.go calls Keeper.AddPreinstalls. For each entry the keeper converts the address, computes the Keccak-256 code hash, rejects empty or conflicting code, creates an account, stores the code hash, and stores the code bytes.
No storage is initialized for preinstalls. These contracts execute as ordinary EVM bytecode after genesis, so calls use normal EVM gas accounting and normal Solidity revert data. There is no special precompile-style gas schedule.
On genesis export, preinstalls are exported as ordinary EVM contract accounts and the preinstalls array is empty. Governance can register more preinstalls through MsgRegisterPreinstalls, but only the configured VM authority, normally the Cosmos SDK governance module account, may execute that message.
Package and import guidance
The local contracts package is namedcosmos-evm-contracts, but contracts/package.json does not define main, files, exports, or types. Treat this tree as repo-local contract assets, not as a stable npm subpath API.
Do not promise npm imports like cosmos-evm-contracts/preinstalls/createx/abi/abi-createx.json unless the package is formalized later. Current consumers should vendor or copy the files they need, or import them by relative path from a checked-out repository.
The preinstall ABI JSON files are raw ABI arrays, not Hardhat artifact objects with an abi wrapper field. No generated TypeScript binding package is committed for preinstalls; consumers who want typed ethers factories should generate TypeChain bindings from the committed ABI JSON files or Solidity sources.
Tooling examples
Hardhat and ethers
viem
Foundry
Foundry can compile Solidity sources once the preinstall tree is vendored or remapped into the project:Design Considerations
- Bytecode parity — Where possible, exact on-chain bytecode from Ethereum mainnet is reused to maximize compatibility with existing tools and audits
- Stable addresses — These addresses are stable across network upgrades. Breaking changes require migration tooling
- Safety — Contracts like
MultiSendCallOnlyprovide safer defaults (no DELEGATECALL) - Versioning — Address changes, bytecode changes, removed ABI entries, changed ABI entries, or changed genesis import semantics are breaking release changes
Usage Notes
- You can assume the presence of these contracts when writing dApps and tooling for c8ntinuum
- For local development,
local_node.shcurrently leavesapp_state.evm.preinstallsempty; do not assume these ecosystem preinstalls exist on a local chain unless the script is updated - If you rely on specific behavior (gas costs, revert semantics), refer to upstream source repositories and c8ntinuum’s pinned test expectations