Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ampleforthorg/sdk

aalavandhan70GPL-3.0-or-later1.0.33TypeScript support: included

Typescript SDK for the Ampleforth Protocol

typescript, ampleforth, rebase, ethereum

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