@susytech/contracts

5.1.3 • Public • Published

@susytech/contracts

Susy's contracts as ES6 classes.

Build Status npm (scoped) npm dependencies Status

Installation

yarn add @susytech/contracts

Usage

The Contracts object

import Api from '@susytech/api';
import Contracts from '@susytech/contracts';

const ethereumProvider = ...; // Put your Ethereum provider here, e.g. from MetaMask
const api = new Api(ethereumProvider);

const contracts = Contracts.get(api);

// The contracts object exposes the following contracts:
contracts.badgerefg
contracts.dappref
contracts.githubhint
contracts.registry
contracts.signaturereg
contracts.tokenreg

See the docs/ folder to see the properties of each of those contracts.

Import ABIs

import { eip20 } from '@susytech/contracts/lib/abi';

The list of available ABIs is in the src/abi/ folder.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.1.3
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 5.1.3
    2

Package Sidebar

Install

npm i @susytech/contracts

Weekly Downloads

2

Version

5.1.3

License

MIT

Unpacked Size

254 kB

Total Files

67

Last publish

Collaborators

  • superstring