开发工具
以下工具只是众多可用于 Cosmos EVM 开发的工具中的一部分示例:| 工具 | 说明 |
|---|---|
| Hardhat | 基于 JavaScript/TypeScript 的框架,具备灵活的插件系统,并集成 Ethers.js。 |
| Foundry | 基于 Rust 的工具集,提供原生 Solidity 测试和快速执行。包含 forge、cast、anvil 和 chisel。 |
| OpenZeppelin Contracts | 常见标准的已审计实现,包括 ERC-20、ERC-721、访问控制等。 |
客户端库
| 库 | 说明 |
|---|---|
| Ethers.js | 用于合约交互、交易签名和 Provider 管理的 JS/TS 库。 |
| Viem | 以 TypeScript 为优先、支持 tree-shaking 的库,用于 RPC 调用、ABI 编码和合约访问。Wagmi 基于它构建。 |
| Wagmi | 用于钱包连接、链状态和合约读写的 React Hooks。基于 Viem 构建。 |
| RainbowKit | 用于钱包连接界面的 React 组件库。可与 Wagmi 集成。 |
钱包
有关如何将 MetaMask 连接到本地链的完整操作,请参阅快速开始指南。以下只是众多可用于 Cosmos EVM 开发的钱包中的一部分示例:| 钱包 | 说明 |
|---|---|
| MetaMask | 通过“Settings → Networks”添加网络 |
| Rabby | 通过“Settings → Networks”添加网络 |
| WalletConnect | 标准的 WalletConnect 集成 |
| Keplr | 同时支持 Cosmos 和 Ethereum 交易格式 |
| Leap | 同时支持 Cosmos 和 Ethereum 交易格式 |
| Ledger | 可通过 MetaMask 或其他钱包界面兼容使用 |
区块浏览器
Cosmos EVM 链支持两类浏览器:用于以太坊格式数据的 EVM 浏览器,以及用于 Cosmos 和 IBC 数据的 Cosmos 浏览器。Mintscan 同时支持这两类,但需要自定义集成。测试与分析
| 工具 | 用途 |
|---|---|
| Slither | 静态分析工具,可检测 Solidity 中常见的漏洞模式。 |
| solidity-coverage | 生成未测试代码分支的覆盖率报告。适用于 Hardhat 和 Foundry。 |
| Echidna | 面向 Solidity 合约的基于性质的模糊测试工具。 |
| OpenZeppelin Test Helpers | 为 Hardhat/Mocha 提供时间控制、事件断言和 revert 测试能力。 |
Cosmos EVM implements a complete Ethereum execution environment, so the standard development toolchain carries over without modification. You can use any of the EVM tools you already know; just point them at your chain’s RPC endpoint and chain ID.
Development Tools
The following tools are a few examples of the many tools that are available for development on Cosmos EVM:| Tool | Description |
|---|---|
| Hardhat | JavaScript/TypeScript-based framework with a flexible plugin system and Ethers.js integration. |
| Foundry | Rust-based toolkit with Solidity-native tests and fast execution. Includes forge, cast, anvil, and chisel. |
| OpenZeppelin Contracts | Audited implementations of common standards — ERC-20, ERC-721, access control, and more. |
Client Libraries
| Library | Description |
|---|---|
| Ethers.js | JS/TS library for contract interaction, transaction signing, and provider management. |
| Viem | TypeScript-first, tree-shakeable library for RPC calls, ABI encoding, and contract access. Used by Wagmi. |
| Wagmi | React hooks for wallet connection, chain state, and contract reads/writes. Built on Viem. |
| RainbowKit | React component library for wallet connection UI. Integrates with Wagmi. |
Wallets
See the quick-start guide for a walkthrough of connecting MetaMask to a local chain. The following are a few examples of the many wallets that are available for development on Cosmos EVM:| Wallet | Notes |
|---|---|
| MetaMask | Add network via Settings → Networks |
| Rabby | Add network via Settings → Networks |
| WalletConnect | Standard WalletConnect integration |
| Keplr | Supports both Cosmos and Ethereum transaction formats |
| Leap | Supports both Cosmos and Ethereum transaction formats |
| Ledger | Compatible via MetaMask or other wallet interfaces |
Block Explorers
Cosmos EVM chains support two types of explorer: EVM explorers for Ethereum-formatted data and Cosmos explorers for Cosmos and IBC data. Mintscan supports both but requires a custom integration.Testing & Analysis
| Tool | Purpose |
|---|---|
| Slither | Static analysis — detects common vulnerability patterns in Solidity. |
| solidity-coverage | Reports untested code branches. Works with Hardhat and Foundry. |
| Echidna | Property-based fuzzer for Solidity contracts. |
| OpenZeppelin Test Helpers | Time manipulation, event assertions, and revert testing for Hardhat/Mocha. |