New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

polymath.js_v2

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polymath.js_v2

TODO Update

  • 0.2.12
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Introducing Polymath.js v2.0

TODO Update

await SecurityTokenRegistry.createSecurityToken(token)

This is all you need to create new security token using Polymath.js v2.0. It will:

  1. Format data into the blockchain types (e.g. add decimals for token values).
  2. Properly estimate gas via Web3 1.0.
  3. Make dry run to validate inputs before transaction sending.
  4. Notify callbacks with transaction hash and receipt.
  5. Check whether the transaction was mined without errors or not.
  6. Send necessary requests to the polymath-api.

Key advantages

  1. Web3 1.0. It means that we don't need truffle-contract package anymore and we can use async-await, websockets for events (there was bug with disconnection from them, but now it's fixed), proper auto gas estimation.
  2. No need to wrap each contract function since v2.0 uses JavaScript Proxy API, which in a simplified manner calls original method if it's not overridden.
await PolyToken.symbol()

There is no symbol entry within the PolyToken class, but string above will return you ticker of the Polymath token. This is how it works.

No excess wrappers means no excess documentation and tests.

Needs from polymath-core

  1. Versioned npm package (with changelog for each new version) with built-in contracts artifacts, which should contain contracts addresses for each network.
  2. Complete and up-to-date documentation since Polymath.js will inherit it in many ways.

FAQs

Package last updated on 02 Apr 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc