npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cosmos-evm-contracts

v0.0.15

Published

A collection of smart contracts used in the development of the Cosmos EVM blockchain.

Readme

cosmos-evm-contracts

A collection of smart contracts for the Cosmos EVM blockchain.
The published package includes precompile interface sources (.sol) and ABIs as typed ESM/CJS modules.

Installation

# pnpm
pnpm add cosmos-evm-contracts

# npm
npm install cosmos-evm-contracts

# yarn
yarn add cosmos-evm-contracts

Package structure

After installation, use the following paths:

| Path | Description | |------|-------------| | cosmos-evm-contracts/precompiles/{module}/{Interface}.sol | Solidity sources (.sol) | | cosmos-evm-contracts/precompiles/{module}/{Interface} | ABI as typed ESM/CJS modules |

Included precompiles: bank, bech32, callbacks, common, distribution, erc20, gov, ics02, ics20, slashing, staking, werc20 (testdata and testutil excluded).

Usage

Loading ABI with TypeScript / viem (typed)

Import the named ABI constant so that functionName, args, and return types are inferred:

import { createPublicClient, http } from "viem";
import { iBankAbi } from "cosmos-evm-contracts/precompiles/bank/IBank";

const client = createPublicClient({ transport: http() });

// functionName and args are type-checked and autocompleted
const balances = await client.readContract({
  address: "0x0000000000000000000000000000000000000804",
  abi: iBankAbi,
  functionName: "balances",
  args: ["0x..."],
});

Use the same pattern for other precompiles, e.g. distributionIAbi from precompiles/distribution/DistributionI, stakingIAbi from precompiles/staking/StakingI, etc.

Using interfaces in Hardhat

Import by package path in your contract:

import "cosmos-evm-contracts/precompiles/bank/IBank.sol";

Using interfaces in Foundry

Add the following to remappings.txt for shorter import paths:

cosmos-evm-contracts/=node_modules/cosmos-evm-contracts/precompiles/
import "cosmos-evm-contracts/bank/IBank.sol";

Path reference

  • Interface ABI: cosmos-evm-contracts/precompiles/{module}/{Interface} (typed ESM/CJS module) e.g. precompiles/staking/StakingI
  • Common types: cosmos-evm-contracts/precompiles/common/Types.sol (structs only, no ABI)