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

@cowprotocol/sdk-contracts-ts

v2.5.0

Published

TypeScript contract bindings for CoW Protocol SDK

Readme

SDK Contracts

This package provides TypeScript contract interfaces and utilities for interacting with CoW Protocol smart contracts. It includes type-safe contract wrappers and helper functions for all CoW Protocol contracts.

Package Origin

This package represents a migration and modularization of the TypeScript utilities that were previously located in the contracts repository. The contract interaction logic has been extracted from the main contracts repository and reorganized into this dedicated SDK package to:

  • Improve modularity - Separate smart contract deployment code from client-side interaction utilities
  • Enable independent versioning - Allow contract interfaces to evolve independently from contract deployments
  • Better developer experience - Provide a focused package specifically for TypeScript developers
  • SDK integration - Seamlessly integrate with the broader CoW Protocol SDK ecosystem

What's included

  • Contract Interfaces - TypeScript interfaces for all CoW Protocol smart contracts
  • Contract Utilities - Helper functions for contract interactions
  • Type Safety - Full TypeScript support with proper typing
  • Multi-Chain Support - Contract addresses and interfaces for all supported chains

Installation

npm install @cowprotocol/sdk-contracts-ts

Usage

import { ContractsTs } from '@cowprotocol/sdk-contracts-ts'
import { EthersV6Adapter } from '@cowprotocol/sdk-ethers-v6-adapter'
import { JsonRpcProvider, Wallet } from 'ethers'

// Configure the adapter
const provider = new JsonRpcProvider('YOUR_RPC_URL')
const wallet = new Wallet('YOUR_PRIVATE_KEY', provider)
const adapter = new EthersV6Adapter({ provider, signer: wallet })

// Initialize contracts with adapter
const contracts = new ContractsTs(adapter)

// Use contract interfaces
const settlementContract = contracts.settlement()
const vaultRelayerContract = contracts.vaultRelayer()

Usage with CoW SDK

When using the CoW SDK, contract utilities are automatically available:

import {
  CowSdk,
} from '@cowprotocol/cow-sdk'
import { EthersV6Adapter } from '@cowprotocol/sdk-ethers-v6-adapter'
import { JsonRpcProvider, Wallet } from 'ethers'

// Configure the adapter
const provider = new JsonRpcProvider('YOUR_RPC_URL')
const wallet = new Wallet('YOUR_PRIVATE_KEY', provider)
const adapter = new EthersV6Adapter({ provider, signer: wallet })

// Initialize the unified SDK
const sdk = new CowSdk({
  chainId: SupportedChainId.SEPOLIA,
  adapter,
})

// Access contracts through the SDK
const settlementContract = sdk.contracts.settlement()
const vaultRelayerContract = sdk.contracts.vaultRelayer()

Available Contracts

  • Settlement Contract - Main CoW Protocol settlement contract
  • Vault Relayer - Contract for handling vault interactions
  • Composable CoW - Contract for conditional orders
  • Extensible Fallback Handler - Safe fallback handler for smart contract wallets

Note: This package is primarily designed to provide contract interfaces and is rarely used standalone. Most developers should use @cowprotocol/cow-sdk package which includes all contract utilities with proper adapter configuration.