# @across-protocol/constants

> Export commonly re-used values for Across repositories

Latest version **3.1.128** (published 2026-09-23) · AGPL-3.0-only license · 0 weekly downloads

## Install

```sh
npm install @across-protocol/constants
pnpm add @across-protocol/constants
yarn add @across-protocol/constants
bun add @across-protocol/constants
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.128 |
| Published | 2026-09-23 |
| First published | 2024-05-30 |
| Weekly downloads | 0 |
| License | AGPL-3.0-only |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 275.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1 |
| Author | hello@umaproject.org |
| Maintainers | chrismaree, mrice32, nicholaspai |

## Links

- npm: https://www.npmjs.com/package/@across-protocol/constants
- Repository: https://github.com/across-protocol/constants
- Homepage: https://github.com/across-protocol/constants#readme
- Issues: https://github.com/across-protocol/constants/issues
- npm.io page: https://npm.io/package/@across-protocol/constants

## Recent versions

- 3.1.128 (latest) — 2026-09-23
- 3.1.112-alpha.2 (alpha) — 2026-05-27
- 3.1.47-beta.0 (beta) — 2025-03-31
- 3.1.127 — 2026-09-16
- 3.1.126 — 2026-09-15
- 3.1.125 — 2026-08-31
- 3.1.124 — 2026-08-11
- 3.1.123 — 2026-07-10
- 3.1.122 — 2026-07-09
- 3.1.120 — 2026-07-02
- 3.1.119 — 2026-06-30
- 3.1.118 — 2026-06-30
- 3.1.117 — 2026-06-30
- 3.1.116 — 2026-06-24
- 3.1.115 — 2026-06-23
- … 114 more at https://npm.io/package/@across-protocol/constants/versions

## README

# Across Constants

[![npm](https://img.shields.io/npm/v/@across-protocol/constants)](https://www.npmjs.com/package/@across-protocol/constants)

Shared library exporting network, token, and address definitions used across the Across Protocol ecosystem.

## Installation

```bash
# npm
npm install @across-protocol/constants

# yarn
yarn add @across-protocol/constants
```

## Usage

```typescript
import { TOKEN_SYMBOLS_MAP } from "@across-protocol/constants";

// Access token metadata
const usdc = TOKEN_SYMBOLS_MAP.USDC;
console.log(usdc.decimals); // 6
console.log(usdc.addresses[1]); // Ethereum mainnet address
```

## What's Exported

| Module     | Description                                                                          |
| ---------- | ------------------------------------------------------------------------------------ |
| `networks` | Chain ID constants for testnets and mainnets, chain metadata                         |
| `tokens`   | `TOKEN_SYMBOLS_MAP` — token name, symbol, decimals, per-chain addresses, coingeckoId |

## Development

```bash
# Build (CJS + ESM + TypeScript declarations)
yarn build

# Lint
yarn lint

# Auto-fix lint issues
yarn lint-fix
```

## Adding Tokens or Networks

1. **New network**: Add chain ID constant to `src/networks.ts`.
2. **New token**: Add entry to `TOKEN_SYMBOLS_MAP` in `src/tokens.ts`.
3. Run `yarn lint-fix && yarn build` to verify.

## Publishing

Published to npm automatically via GitHub Actions on [GitHub release](https://github.com/across-protocol/constants/releases). Supports pre-release versions for beta/canary tags.

## License

AGPL-3.0-only

---
_Source: https://npm.io/package/@across-protocol/constants · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
