Tevm Contract Bundler
The Tevm Contract Bundler allows you to import Solidity files directly into your TypeScript code, enabling a seamless development experience with type safety and IDE integration.
Quick Navigation
The bundler documentation is now split into several sections for better organization:
- Overview - Introduction, key benefits, available plugins
- Internals - How the bundler works under the hood
- Methods & Exports - Key APIs for advanced usage
- Troubleshooting - Common issues and solutions
What is the Tevm Bundler?
The Tevm bundler transforms Solidity .sol
files into TypeScript modules at build time. When you import a contract, the bundler:
- Reads and compiles the Solidity source code
- Extracts the ABI, bytecode, and other contract information
- Generates a TypeScript module with a Tevm Contract instance
This means you can interact with your contracts in a fully type-safe way, with editor features like auto-completion, go-to-definition, and inline documentation.
Getting Started
For a quick introduction to using the bundler, see the Bundler Quickstart guide.
If you're looking for detailed reference information, explore the sections linked above.
Coming Soon Features
Tevm is actively developing new bundler features:
- Inline Solidity with
sol
Tag - Define contracts directly in your JS/TS using template literals - CAIP-10 Contract Imports - Import contracts from any chain using standardized identifiers
Learn more about these upcoming features in the Upcoming Features section.