Cosmos EVM 实现了完整的以太坊执行环境,因此标准开发工具链可以直接沿用,无需修改。你可以使用任何你已经熟悉的 EVM 工具;只需将它们指向你的链的 RPC 端点和链 ID。

开发工具

以下工具只是众多可用于 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 或其他钱包界面兼容使用
手动添加链时,你需要准备以下信息:网络名称、RPC URL(端口 8545)、链 ID 和货币符号。

区块浏览器

Cosmos EVM 链支持两类浏览器:用于以太坊格式数据的 EVM 浏览器,以及用于 Cosmos 和 IBC 数据的 Cosmos 浏览器。Mintscan 同时支持这两类,但需要自定义集成。
浏览器类型链接
BlockscoutEVMGitHub
Ping.pubCosmosGitHub
BigDipperCosmosGitHub

测试与分析

工具用途
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:
ToolDescription
HardhatJavaScript/TypeScript-based framework with a flexible plugin system and Ethers.js integration.
FoundryRust-based toolkit with Solidity-native tests and fast execution. Includes forge, cast, anvil, and chisel.
OpenZeppelin ContractsAudited implementations of common standards — ERC-20, ERC-721, access control, and more.

Client Libraries

LibraryDescription
Ethers.jsJS/TS library for contract interaction, transaction signing, and provider management.
ViemTypeScript-first, tree-shakeable library for RPC calls, ABI encoding, and contract access. Used by Wagmi.
WagmiReact hooks for wallet connection, chain state, and contract reads/writes. Built on Viem.
RainbowKitReact 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:
WalletNotes
MetaMaskAdd network via Settings → Networks
RabbyAdd network via Settings → Networks
WalletConnectStandard WalletConnect integration
KeplrSupports both Cosmos and Ethereum transaction formats
LeapSupports both Cosmos and Ethereum transaction formats
LedgerCompatible via MetaMask or other wallet interfaces
To add a chain manually, you’ll need: the network name, RPC URL (port 8545), chain ID, and currency symbol.

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.
ExplorerTypeLink
BlockscoutEVMGitHub
Ping.pubCosmosGitHub
BigDipperCosmosGitHub

Testing & Analysis

ToolPurpose
SlitherStatic analysis — detects common vulnerability patterns in Solidity.
solidity-coverageReports untested code branches. Works with Hardhat and Foundry.
EchidnaProperty-based fuzzer for Solidity contracts.
OpenZeppelin Test HelpersTime manipulation, event assertions, and revert testing for Hardhat/Mocha.