{"_id":"@polymathnetwork/polymath","_rev":"27-a486ea82891b9b68cab120c9d85507a8","name":"@polymathnetwork/polymath","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@polymathnetwork/polymath","version":"0.1.0","keywords":["polymath"],"author":{"name":"Polymath"},"license":"MIT","_id":"@polymathnetwork/polymath@0.1.0","maintainers":[{"name":"deathrazer","email":"c0der0@yahoo.com"}],"homepage":"https://github.com/PolymathNetwork/polymath.js#readme","bugs":{"url":"https://github.com/PolymathNetwork/polymath.js/issues"},"dist":{"shasum":"04957204948bb2dde48505e17ee5c572599c9c62","tarball":"https://registry.npmjs.org/@polymathnetwork/polymath/-/polymath-0.1.0.tgz","integrity":"sha512-Bikgnk6cRyzC93vhEvJIqoa/nTegqGYOcECoTvXKNXdK4rwGMffmOxsK9OcjVAOPypFaqu1FcSEzZnpOGEzhgA==","signatures":[{"sig":"MEYCIQCG3GN/WGGMF34DhjwDqA7lNO5uA3wKkevpHqkJO8hrFgIhALQmYqlAaH0CsC9pw+ahS7oGHe+dfoEdQh6TJbkDC9zl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Wx6CRA9TVsSAnZWagAAAeEP/3DCtHPfHa+4aQSgi0y6\n7sfvhUoZXIFvK0MJ47A7jR0u8j8chGALlDS8ZK/Ufw8U1xfi7GyJarJAR229\n5N6IrR82f9sPyiVIPPlt0uW1jYyxN2Z3HMTjb4tEmVOb3Gl5x1Zf3mKOexWJ\nWBPhmGl146IEiJ/mbM5DvRwmdATR/V0AH7dp7PUJ42oI1pVZVM+Dxa155EZK\nxh97uLvWLZhrPg6Jypb+AH3yZeqJdLRptREVHNa7tS+Wx18fct2VHNtN5etW\n1rH3IXJ1N4UaMkBNCJ5bHzRx9+GZjPMCKoA+irWbL4sWgpQ5d4RRfAz0zFlI\nIx+j8IQXaR4d6RKmfa/CwisnpU4lv3bJUKxUMnYAiRInMxkV/R/sZxj+gD8u\nGzkXdPiVv6JR5BG0oOt7zwG3MdY80412ANN3VI/HbBZLGdRTE5xgMEZJbj1w\nrn5w5JixJ5GaxqD7NCfOQdsIjwjwcNkn020v8IAcjGLktR8JeHxxJdiXpQKF\n/r0ZdrWh5uuUZclEu+5R8T2XqYiU7itu6yTLcVRmhAk77rXmH+rIwGiYBMVX\nMJsBY3PAMZp+qwNzilB+pxLlLcl8UM47BloSLYHzBDkkDH578iC0Xg33Ez0l\nuEbjrLYzcRkkzA02ENFMC2KNqZkhjPYXUffvGNr9Lvqey2uysNVfy6XWjqYc\ni0Gf\r\n=GDPE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","husky":{"hooks":{"pre-commit":"lint-staged && flow"}},"config":{"mnemonic":"age drama cover door helmet mechanic wine lesson vote inflict will keep"},"gitHead":"e5f6bfaeefa41fb3922db3a4315c76b4eef58e11","scripts":{"ci":"scripts/test.sh","lint":"eslint --fix src test","test":"mocha lib/test/**/*_test.js --timeout 20000 --bail --exit","build":"webpack && run-s babel:src babel:test","clean":"rm -rf ./lib ./build","start":"run-p babel:watchsrc babel:watchtest","compile":"run-s truffle:compile copy-artifacts","install":"run-s build","testrpc":"ganache-cli -p 8545 --networkId 50 --gasLimit 15000000 -m \"${npm_package_config_mnemonic}\"","babel:src":"babel --source-maps --copy-files --out-dir lib/src src --ignore anchor.js,site.js,split.js","contracts":"scripts/updateContracts.sh","babel:test":"babel --source-maps --copy-files --out-dir lib/test test","watch-lint":"esw -w --fix src test","babel:watchsrc":"babel --watch --source-maps --copy-files --out-dir lib/src src --ignore anchor.js,site.js,split.js","copy-artifacts":"node lib/src/cli copyartifacts","babel:watchtest":"babel --watch --source-maps --copy-files --out-dir lib/test test","build-poly-docs":"run-s install documentation-copy-babel-ignored documentation-build","migrate-testrpc":"truffle migrate --network=testrpc","serve-poly-docs":"run-s documentation-copy-babel-ignored documentation-serve","truffle:compile":"truffle compile","documentation-build":"documentation build src/contract_wrappers/ -f html -o docs --config documentation.yml --theme lib/src/theme_polymath ","documentation-serve":"documentation serve --watch src/contract_wrappers --config documentation.yml --theme lib/src/theme_polymath","documentation-copy-babel-ignored":"cp src/theme_polymath/assets/anchor.js src/theme_polymath/assets/site.js src/theme_polymath/assets/split.js lib/src/theme_polymath/assets"},"_npmUser":{"name":"deathrazer","email":"c0der0@yahoo.com"},"repository":{"url":"git+https://github.com/PolymathNetwork/polymath.js.git","type":"git"},"_npmVersion":"5.6.0","description":"Tools for interacting with the Polymath platform","directories":{"doc":"docs","lib":"lib","test":"test"},"lint-staged":{"src/**/*.js":["eslint --fix","git add"]},"_nodeVersion":"8.9.4","dependencies":{"uuid":"3.1.0","web3":"0.20.1","truffle-contract":"3.0.1"},"devDependencies":{"chai":"4.1.2","husky":"0.14.3","mocha":"4.1.0","vinyl":"2.1.0","yargs":"10.0.3","eslint":"4.11.0","remark":"8.0.0","truffle":"4.0.4","webpack":"3.10.0","flow-bin":"0.63.1","fs-extra":"5.0.0","prettier":"1.8.2","vinyl-fs":"3.0.1","babel-cli":"6.26.0","babel-core":"6.26.0","ganache-cli":"6.0.3","json-loader":"0.5.7","lint-staged":"5.0.0","npm-run-all":"4.1.2","remark-html":"7.0.0","babel-eslint":"8.1.2","babel-loader":"7.1.2","bignumber.js":"5.0.0","eslint-watch":"3.1.3","globals-docs":"2.4.0","highlight.js":"9.12.0","documentation":"5.3.5","unist-builder":"1.0.2","github-slugger":"1.2.0","babel-preset-env":"1.6.1","babel-preset-flow":"6.23.0","eslint-plugin-import":"2.8.0","eslint-config-prettier":"2.8.0","eslint-plugin-prettier":"2.4.0","webpack-node-externals":"1.6.0","@0xproject/web3-wrapper":"0.1.2","doctrine-temporary-fork":"2.0.0-alpha-allowarrayindex","uglifyjs-webpack-plugin":"1.1.5","eslint-config-airbnb-base":"12.1.0","babel-plugin-transform-runtime":"6.23.0","babel-plugin-transform-object-rest-spread":"6.26.0"},"_npmOperationalInternal":{"tmp":"tmp/polymath-0.1.0.tgz_1517942033799_0.7003071452490985","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-02-06T18:33:55.967Z","modified":"2025-09-19T18:59:10.699Z","0.1.0":"2018-02-06T18:33:55.967Z"},"bugs":{"url":"https://github.com/PolymathNetwork/polymath.js/issues"},"author":{"name":"Polymath"},"license":"MIT","homepage":"https://github.com/PolymathNetwork/polymath.js#readme","keywords":["polymath"],"repository":{"url":"git+https://github.com/PolymathNetwork/polymath.js.git","type":"git"},"description":"Tools for interacting with the Polymath platform","maintainers":[{"email":"devops@polymath.network","name":"polymath.network"},{"email":"devops@polymath.network","name":"polymathdevops"},{"email":"leaksin@gmail.com","name":"vandaad"},{"email":"jaskaran@polymath.network","name":"polymath-dev"}],"readme":"<a href=\"https://t.me/polymathnetwork\"><img src=\"https://img.shields.io/badge/50k+-telegram-blue.svg\" target=\"_blank\"></a>\n[![Build Status](https://travis-ci.org/PolymathNetwork/polymath.js.svg?branch=master)](https://travis-ci.org/PolymathNetwork/polymath.js)\n[![Known Vulnerabilities](https://snyk.io/test/github/priom/polymath.js/badge.svg?targetFile=package.json)](https://snyk.io/test/github/priom/polymath.js?targetFile=package.json)\n[![dependencies Status](https://david-dm.org/PolymathNetwork/polymath.js.svg)](https://david-dm.org/PolymathNetwork/polymath.js)\n[![devDependencies Status](https://david-dm.org/PolymathNetwork/polymath.js/dev-status.svg)](https://david-dm.org/PolymathNetwork/polymath.js?type=dev)\n\n![Polymath](Polymath.png)\n\n# Polymath.js\n\nPolymath.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](https://docs.polymath.network)\n\n[Read the whitepaper](whitepaper.pdf)\n\n## Testing locally\n\nClone the repo, then run\n- `yarn install`\n- `yarn testrpc` (keep this terminal running)\n\nIn a new terminal\n- `yarn compile`\n- `yarn migrate-testrpc`\n- `yarn start `(babel compiling) (keep this terminal running)\n\nIn a new terminal\n- `yarn test` to test all files\n- `yarn mocha lib/test/{FILENAME.js}` to test a single file\n\nNote: 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.\n\n## Updating the contracts\n\nThe following occurs:\n- Checks that polymath-core is on the master branch\n- Executes git pull on the polymath-core\n- Copies the polymath-core/contract directory into polymath-js directory\n- Removes the polymath-js/build directory\n\nIn polymath-js\n- `yarn contracts`\n\nNote: Ensure you have the following file structure\n```\n- polymath (root dir name doesn't matter)\n|-- polymath-js\n|-- polymath-core\n```\n\n## Serving and building documentation\n\nTo serve the docs locally, run:\n\n- `yarn install`\n- `yarn start` to run babel to compile the source code and have it watching for updates (leave this terminal open)\n- `yarn serve-poly-docs`\n\nTo build the docs run `yarn build-poly-docs`. Make sure when you make edits, you rebuild the docs so they are added in!\n\n## Contributing\n\nWe're always looking for developers to join the polymath network. To do so we\nencourage developers to contribute by creating Security Token Offering contracts\n(STO) which can be used by issuers to raise funds. If your contract is used, you\ncan earn POLY fees directly through the contract, and additional bonuses through\nthe Polymath reserve fund.\n\nIf you would like to apply directly to our STO contract development team, please\nsend your resume and/or portfolio to careers@polymath.network.\n\n### Styleguide\n\nThe polymath-core repo follows the style guide overviewed here:\nhttp://solidity.readthedocs.io/en/develop/style-guide.html\n\n[polymath]: https://polymath.network\n[ethereum]: https://www.ethereum.org/\n[solidity]: https://solidity.readthedocs.io/en/develop/\n[truffle]: http://truffleframework.com/\n[testrpc]: https://github.com/ethereumjs/testrpc\n","readmeFilename":"README.md"}