# delegatecash

> This is a minimalist frontend implemtation the delegation registry. Every function has a 1:1 name of the contract ABI.

Latest version **0.4.6** (published 2023-06-27) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install delegatecash
pnpm add delegatecash
yarn add delegatecash
bun add delegatecash
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.4.6 |
| Published | 2023-06-27 |
| First published | 2022-10-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 51.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | delegatecash |
| Maintainers | ryeshrimp |

## Links

- npm: https://www.npmjs.com/package/delegatecash
- Repository: https://github.com/delegatecash/delegatecash-javascript-sdk
- Homepage: https://github.com/delegatecash/delegatecash-javascript-sdk#readme
- Issues: https://github.com/delegatecash/delegatecash-javascript-sdk/issues
- npm.io page: https://npm.io/package/delegatecash

## Dependencies (1)

- [ethers](https://npm.io/package/ethers.md) ^5.7.2

## Recent versions

- 0.4.6 (latest) — 2023-06-27
- 0.4.5 — 2023-05-16
- 0.4.4 — 2023-05-15
- 0.4.3 — 2023-05-09
- 0.4.2 — 2023-05-09
- 0.4.1 — 2023-02-02
- 0.4.0 — 2023-02-02
- 0.3.1 — 2023-01-20
- 0.3.0 — 2022-11-03
- 0.2.1 — 2022-10-26
- 0.2.0 — 2022-10-26
- 0.1.0 — 2022-10-13
- 0.0.1 — 2022-10-13

## README

# [delegatecash](https://delegate.cash) &middot; ![NPM](https://img.shields.io/npm/l/delegatecash?registry_uri=https%3A%2F%2Fregistry.npmjs.com) ![npm (tag)](https://img.shields.io/npm/v/delegatecash/latest) ![npm bundle size](https://img.shields.io/bundlephobia/min/delegatecash) [![Twitter URL](https://img.shields.io/twitter/url?url=https%3A%2F%2Ftwitter.com%2Fdelegatecash)](https://twitter.com/delegatecash)

This is a minimalist frontend implemtation the delegation registry. Every function has a 1:1 name of the contract ABI.

Read more about the [delegate.cash](https://delegate.cash) via our [documentation](https://docs.delegate.cash)

## Installation

```
npm install delegatecash
```

## View Functions

- checkDelegateForAll(delegate, vault)
- checkDelegateForContract(delegate, vault, contract)
- checkDelegateForToken(delegate, vault, contract, tokenId)
- getContractLevelDelegations(vault)
- getDelegatesForAll(vault)
- getDelegatesForContract(vault, contract)
- getDelegatesForToken(vault, contract, tokenId)
- getDelegationsByDelegate(delegate)
- getTokenLevelDelegations(vault)

## Write Functions

- delegateForAll(delegate, value)
- delegateForContract(delegate, contract, value)
- delegateForToken(delegate, contract, tokenId, value)
- revokeAllDelegates()
- revokeDelegate(delegate)
- revokeSelf(vault)

## Raw Functions

These function calls will return back the encoded function data.

- rawDelegateForAll(delegate, value)
- rawDelegateForContract(delegate, contract, value)
- rawDelegateForToken(delegate, contract, tokenId, value)
- rawRevokeAllDelegates()
- rawRevokeDelegate(delegate)

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