
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
polymathjs
Advanced tools
Bridge between the Polymath Smart Contracts and dApps.
> yarn add polymathjs
import Contract, { TickerRegistry } from 'polymathjs'
import type { NetworkParams } from 'polymathjs/types'
const params: NetworkParams = {
id: 1, // network id
web3, // Web3 1.0 instance
web3WS, // Web3 1.0 instance supplied with WebsocketProvider, it can be the same instance as the one above
account: '0xaea186fa5402f0a8049786099c3f2881c1e21767', // transactions sender
txHashCallback: (hash) => console.log(hash), // receives a transaction hash every time one was generated
txEndCallback: (receipt) => console.log(receipt), // receives a transaction receipt every time one was mined
}
Contract.setParams(params)
Consider using the polymath-auth library, which takes care of the first 4 params.
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
FAQs
Unknown package
The npm package polymathjs receives a total of 3 weekly downloads. As such, polymathjs popularity was classified as not popular.
We found that polymathjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.