JSPM

  • Created
  • Published
  • Downloads 169
  • Score
    100M100P100Q70420F
  • License GPL-3.0-or-later

Typescript SDK for the Ampleforth Protocol

Package Exports

  • @ampleforthorg/sdk
  • @ampleforthorg/sdk/dist/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ampleforthorg/sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@ampleforth/sdk

A collection of libraries for dAPPs to interact with the Ampleforth protocol on ethereum.

Check out the examples.

Getting started

yarn add @ampleforthorg/sdk

const {getAMPLToken, getTokenBalance} = require("@ampleforthorg/sdk")

const ampl = await getAMPLToken()
console.log(ampl.totalSupply.toString())

const b = await getTokenBalance(ampl, '0x1e6bb68acec8fefbd87d192be09bb274170a0548')
console.log(b.balance.toString())

Publish

yarn build
npm publish --access public