npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@polymathnetwork/polymath

v0.1.0

Published

Tools for interacting with the Polymath platform

Downloads

4

Readme

Build Status Known Vulnerabilities dependencies Status devDependencies Status

Polymath

Polymath.js

Polymath.js is the main library for interacting with Polymath's smart contracts. It is written in javascript using flow, babel and eslint. The documentation is automatically generated using documentationjs. Checkout the docs

Read the whitepaper

Testing locally

Clone the repo, then run

  • yarn install
  • yarn testrpc (keep this terminal running)

In a new terminal

  • yarn compile
  • yarn migrate-testrpc
  • yarn start (babel compiling) (keep this terminal running)

In a new terminal

  • yarn test to test all files
  • yarn mocha lib/test/{FILENAME.js} to test a single file

Note: If make changes to source files being compiled by babel, run yarn clean to remove the old compiled babel files, and then run yarn start to get an updated version with the new code.

Updating the contracts

The following occurs:

  • Checks that polymath-core is on the master branch
  • Executes git pull on the polymath-core
  • Copies the polymath-core/contract directory into polymath-js directory
  • Removes the polymath-js/build directory

In polymath-js

  • yarn contracts

Note: Ensure you have the following file structure

- polymath (root dir name doesn't matter)
|-- polymath-js
|-- polymath-core

Serving and building documentation

To serve the docs locally, run:

  • yarn install
  • yarn start to run babel to compile the source code and have it watching for updates (leave this terminal open)
  • yarn serve-poly-docs

To build the docs run yarn build-poly-docs. Make sure when you make edits, you rebuild the docs so they are added in!

Contributing

We're always looking for developers to join the polymath network. To do so we encourage developers to contribute by creating Security Token Offering contracts (STO) which can be used by issuers to raise funds. If your contract is used, you can earn POLY fees directly through the contract, and additional bonuses through the Polymath reserve fund.

If you would like to apply directly to our STO contract development team, please send your resume and/or portfolio to [email protected].

Styleguide

The polymath-core repo follows the style guide overviewed here: http://solidity.readthedocs.io/en/develop/style-guide.html