# @velocitycareerlabs/contract-permissions

> Package allows interacting with the permissions smart contracts, based on ethers.js

Latest version **1.26.8** (published 2025-07-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @velocitycareerlabs/contract-permissions
pnpm add @velocitycareerlabs/contract-permissions
yarn add @velocitycareerlabs/contract-permissions
bun add @velocitycareerlabs/contract-permissions
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.26.8 |
| Published | 2025-07-09 |
| First published | 2023-11-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 892.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Viktar Pashchanka |
| Maintainers | velocitycareerlabs |

## Links

- npm: https://www.npmjs.com/package/@velocitycareerlabs/contract-permissions
- Repository: https://github.com/velocitycareerlabs/velocitycore
- npm.io page: https://npm.io/package/@velocitycareerlabs/contract-permissions

## Dependencies (1)

- [@velocitycareerlabs/base-contract-io](https://npm.io/package/@velocitycareerlabs/base-contract-io.md) 1.26.8

## Recent versions

- 1.26.8 (latest) — 2025-07-09
- 2.0.0-pre.1755033769 (prerelease) — 2025-08-12
- 2.0.0-pre.1754876579 — 2025-08-11
- 2.0.0-pre.1754876532 — 2025-08-11
- 2.0.0-pre.1754876520 — 2025-08-11
- 2.0.0-pre.1754862919 — 2025-08-10
- 2.0.0-pre.1754862807 — 2025-08-10
- 2.0.0-pre.1754256666 — 2025-08-03
- 2.0.0-pre.1754256489 — 2025-08-03
- 2.0.0-pre.1754256474 — 2025-08-03
- 2.0.0-pre.1754256407 — 2025-08-03
- 2.0.0-pre.1753312440 — 2025-07-23
- 2.0.0-pre.1753230551 — 2025-07-23
- 2.0.0-pre.1753229761 — 2025-07-23
- 2.0.0-pre.1753229590 — 2025-07-23
- … 1150 more at https://npm.io/package/@velocitycareerlabs/contract-permissions/versions

## README

Example of the usage on your localhost with the blockchain-dev container.

```
const { generateKeyPair } = require('@velocitycareerlabs/crypto');
const ethers = require('ethers');
/* eslint-disable no-console */
const { initPermissions } = require('../index');

const { privateKey } = generateKeyPair();
const wallet = new ethers.Wallet(privateKey);
const contractAddress = '0xf755e1ca66be12f177178e7ea696969e0a55bb64';
const gasLimit = 470000;

const permissions = initPermissions({
  privateKey,
  contractAddress,
  rpcUrl: 'http://localhost:8545',
  gasLimit,
});

(async () => {
  try {
    await permissions.addPrimary(publicKeyAddress, permissioningAddress, rotationAddress );
    console.info('initialStatus', initialStatus);
  } catch (error) {
    console.error('Revocation Registry Error', error);
  }
})();

```

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