# ton-contracts

> [![Version npm](https://img.shields.io/npm/v/ton-contracts.svg?logo=npm)](https://www.npmjs.com/package/ton-contracts)

Latest version **3.1.0** (published 2022-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install ton-contracts
pnpm add ton-contracts
yarn add ton-contracts
bun add ton-contracts
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2022-05-15 |
| First published | 2021-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 250.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 79 |
| Author | Steve Korshakov |
| Maintainers | steve.kite |

## Links

- npm: https://www.npmjs.com/package/ton-contracts
- Repository: https://github.com/tonwhales/ton-contracts
- npm.io page: https://npm.io/package/ton-contracts

## Dependencies (1)

- [@openland/patterns](https://npm.io/package/@openland/patterns.md) ^0.0.2

## Recent versions

- 3.1.0 (latest) — 2022-05-15
- 3.0.0 — 2022-03-13
- 2.3.2 — 2022-01-10
- 2.3.1 — 2022-01-10
- 2.3.0 — 2022-01-10
- 2.2.0 — 2021-12-13
- 2.1.0 — 2021-12-13
- 2.0.1 — 2021-12-07
- 2.0.0 — 2021-11-28
- 1.13.2 — 2021-11-17
- 1.13.1 — 2021-11-17
- 1.13.0 — 2021-11-15
- 1.12.0 — 2021-11-07
- 1.11.4 — 2021-11-04
- 1.11.3 — 2021-11-04
- … 18 more at https://npm.io/package/ton-contracts/versions

## README

# TON contracts

[![Version npm](https://img.shields.io/npm/v/ton-contracts.svg?logo=npm)](https://www.npmjs.com/package/ton-contracts)

Collection of tested smart contracts for TON blockchain that is compatible with ton js library.

## Available contracts

- 🚀 Whitelisted Wallet - wallet that by default could send value only to specific address and master key that can send value anywhere.

## Install

```bash
yarn add ton-contracts
```

## Usage

```js
const client = new TonClient({ endpoint: 'https://testnet.toncenter.com/api/v2/jsonRPC' });
const wallet = await client.openWalletFromCustomContract(WhitelistedWalletSource.create({
    masterKey: masterKey.publicKey,
    restrictedKey: restrictedKey.publicKey,
    whitelistedAddress: whitelistedWallet.wallet.address,
    workchain: 0
}));

// Use wallet as normal wallet

```

# License

MIT

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