Socket
Socket
Sign inDemoInstall

polymath-core-artifacts

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    polymath-core-artifacts

This repository contains the JSON files necessary to interact with the smart contracts from Polymath Network.


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Polymath Core Artifacts

This repository contains the JSON files necessary to interact with the smart contracts from Polymath Network. This is a pure JavaScript implementation with TypeScript support for node.js and the browser.

Contracts version - 2.0

Install

Requires nodejs

npm install polymath-core-artifacts

Simple example

const artifacts = require('polymath-core-artifacts')
// get TickerRegistry content
const TickerRegistry = artifacts.load('TickerRegistry').content
// get USDTieredSTO abi
const USDTieredSTO = artifacts.load('USDTieredSTO').abi()

Polymath Registry address

We offer a way to get the last contract address of PolymathRegistry. PolymathRegistry is a module that allow know the address of any deployed contract from Polymath environment.

const artifacts = require('polymath-core-artifacts')
const mainnetAddress = artifacts.registry().network(1)
const kovanAddress = artifacts.registry().network(42)

Test

$ npm test

Keywords

FAQs

Last updated on 10 Dec 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc