3.0.0 • Published 5 years ago

polymath-core-artifacts v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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