# @vapory/web3-vap-contract

> Web3 module to interact with Vapory smart contracts.

Latest version **1.0.0-delta.30** (published 2021-02-04) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @vapory/web3-vap-contract
pnpm add @vapory/web3-vap-contract
yarn add @vapory/web3-vap-contract
bun add @vapory/web3-vap-contract
```

## 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 | 1.0.0-delta.30 |
| Published | 2021-02-04 |
| First published | 2021-01-23 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 30.8 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | marlonhanks |

## Links

- npm: https://www.npmjs.com/package/@vapory/web3-vap-contract
- Repository: https://github.com/vaporyco/web3.js/tree/master/packages/web3-vap-contract
- npm.io page: https://npm.io/package/@vapory/web3-vap-contract

## Dependencies (8)

- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [@vapory/web3-core](https://npm.io/package/@vapory/web3-core.md) 1.0.0-delta.30
- [@vapory/web3-utils](https://npm.io/package/@vapory/web3-utils.md) 1.0.0-delta.30
- [@vapory/web3-vap-abi](https://npm.io/package/@vapory/web3-vap-abi.md) 1.0.0-delta.30
- [@vapory/web3-core-method](https://npm.io/package/@vapory/web3-core-method.md) 1.0.0-delta.30
- [@vapory/web3-core-helpers](https://npm.io/package/@vapory/web3-core-helpers.md) 1.0.0-delta.30
- [@vapory/web3-core-promievent](https://npm.io/package/@vapory/web3-core-promievent.md) 1.0.0-delta.30
- [@vapory/web3-core-subscriptions](https://npm.io/package/@vapory/web3-core-subscriptions.md) 1.0.0-delta.30

## Recent versions

- 1.0.0-delta.30 (latest) — 2021-02-04
- 1.0.0-gamma.30 — 2021-01-26
- 1.0.0-beta.30 — 2021-01-24
- 1.0.0-beta.28 — 2021-01-23

## README

# web3-vap-contract

This is a sub package of [web3.js][repo]

This is the contract package to be used in the `web3-vap` package.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install web3-vap-contract
```

### In the Browser

Build running the following in the [web3.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/web3-vap-contract.js` in your html file.
This will expose the `Web3VapContract` object on the window object.


## Usage

```js
// in node.js
var Web3VapContract = require('@vapory/web3-vap-contract');

// set provider for all later instances to use
Web3VapContract.setProvider('ws://localhost:8546');

var contract = new Web3VapContract(jsonInterface, address);
contract.methods.somFunc().send({from: ....})
.on('receipt', function(){
    ...
});
```


[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/vaporyco/web3.js

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