![](https://img.shields.io/badge/50k+-telegram-blue.svg)
![Polymath](https://github.com/PolymathNetwork/polymath.js/raw/HEAD/Polymath.png)
Polymath.js
Bridge between the Polymath Smart Contracts and dApps.
Install
> yarn add polymathjs
import Contract, { TickerRegistry } from 'polymathjs'
import type { NetworkParams } from 'polymathjs/types'
const params: NetworkParams = {
id: 1,
web3,
web3WS,
account: '0xaea186fa5402f0a8049786099c3f2881c1e21767',
txHashCallback: (hash) => console.log(hash),
txEndCallback: (receipt) => console.log(receipt),
}
Contract.setParams(params)
Consider using the polymath-auth library, which takes care of the
first 4 params.
Development
After cloning, to install all dependencies run:
> yarn
We only use Yarn as our official Node package manager, and so we will only commit yarn.lock files, and ignore package-lock.json files.
To build module run:
npm run build