# @uma/common

> Common js utilities used by other UMA packages

Latest version **2.40.0** (published 2025-09-24) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @uma/common
pnpm add @uma/common
yarn add @uma/common
bun add @uma/common
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: insecure dependencies; stale.

## Facts

| | |
|---|---|
| Version | 2.40.0 |
| Published | 2025-09-24 |
| First published | 2020-09-16 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 35 |
| Unpacked size | 430.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 486 |
| Maintainers | mrice32, chrismaree, evaldofelipe, nicholaspai |

## Links

- npm: https://www.npmjs.com/package/@uma/common
- Repository: https://github.com/UMAprotocol/protocol
- Homepage: http://umaproject.org
- Issues: https://github.com/UMAprotocol/protocol/issues
- npm.io page: https://npm.io/package/@uma/common

## Dependencies (35)

- [web3](https://npm.io/package/web3.md) ^1.6.0
- [axios](https://npm.io/package/axios.md) ^1.6.1
- [dotenv](https://npm.io/package/dotenv.md) ^9.0.0
- [moment](https://npm.io/package/moment.md) ^2.24.0
- [winston](https://npm.io/package/winston.md) ^3.2.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [chalk-pipe](https://npm.io/package/chalk-pipe.md) ^3.0.0
- [decimal.js](https://npm.io/package/decimal.js.md) ^10.2.1
- [eth-crypto](https://npm.io/package/eth-crypto.md) ^2.4.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [abi-decoder](https://npm.io/package/abi-decoder.md) github:UMAprotocol/abi-decoder
- [async-retry](https://npm.io/package/async-retry.md) ^1.3.3
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^8.0.1
- [lodash.uniqby](https://npm.io/package/lodash.uniqby.md) ^4.7.0
- [node-metamask](https://npm.io/package/node-metamask.md) github:UMAprotocol/node-metamask
- [hardhat-deploy](https://npm.io/package/hardhat-deploy.md) 0.9.1
- [require-context](https://npm.io/package/require-context.md) ^1.1.0
- [@uniswap/v3-core](https://npm.io/package/@uniswap/v3-core.md) ^1.0.0-rc.2
- [@google-cloud/kms](https://npm.io/package/@google-cloud/kms.md) ^3.0.1
- [@truffle/contract](https://npm.io/package/@truffle/contract.md) 4.6.17
- [hardhat-typechain](https://npm.io/package/hardhat-typechain.md) ^0.3.5
- [solidity-coverage](https://npm.io/package/solidity-coverage.md) ^0.7.13
- [@ethersproject/bytes](https://npm.io/package/@ethersproject/bytes.md) ^5.7.0
- [hardhat-gas-reporter](https://npm.io/package/hardhat-gas-reporter.md) ^1.0.4
- [@google-cloud/storage](https://npm.io/package/@google-cloud/storage.md) ^6.4.2
- [@ethersproject/address](https://npm.io/package/@ethersproject/address.md) ^5.7.0
- [@nomiclabs/hardhat-web3](https://npm.io/package/@nomiclabs/hardhat-web3.md) ^2.0.0
- [truffle-deploy-registry](https://npm.io/package/truffle-deploy-registry.md) ^0.5.1
- [@ethersproject/bignumber](https://npm.io/package/@ethersproject/bignumber.md) ^5.0.5
- [@ethersproject/constants](https://npm.io/package/@ethersproject/constants.md) ^5.7.0
- [@types/ethereum-protocol](https://npm.io/package/@types/ethereum-protocol.md) ^1.0.0
- [@nomiclabs/hardhat-ethers](https://npm.io/package/@nomiclabs/hardhat-ethers.md) ^2.2.1
- [@across-protocol/contracts](https://npm.io/package/@across-protocol/contracts.md) ^0.1.4
- [@truffle/hdwallet-provider](https://npm.io/package/@truffle/hdwallet-provider.md) eip1559-beta
- [@nomicfoundation/hardhat-verify](https://npm.io/package/@nomicfoundation/hardhat-verify.md) ^1.0.4

## Recent versions

- 2.40.0 (latest) — 2025-09-24
- 2.4.0-beta.0 (next) — 2021-07-06
- 2.38.0 — 2025-07-15
- 2.37.3 — 2024-10-29
- 2.37.1 — 2024-07-20
- 2.37.0 — 2024-04-30
- 2.36.0 — 2024-04-09
- 2.35.0 — 2024-03-07
- 2.34.1 — 2023-11-13
- 2.34.0 — 2023-07-17
- 2.33.0 — 2023-04-18
- 2.32.0 — 2023-03-30
- 2.31.0 — 2023-02-28
- 2.30.1 — 2023-02-21
- 2.30.0 — 2023-02-20
- … 47 more at https://npm.io/package/@uma/common/versions

## README

# @uma/common

This package contains common javascript utilities and files used by other `@uma` packages. It is rarely used outside of
that context.

## Installing the package

```bash
yarn add @uma/common
```

## Importing the package

```js
// One of many possible possible functions to import.
const { getHardhatConfig } = require("@uma/common")
```

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