@susy-js/contracts

5.1.3 • Public • Published

@susy-js/contracts

Susy's contracts as ES6 classes.

Build Status npm (scoped) npm dependencies Status

Installation

yarn add @susy-js/contracts

Usage

The Contracts object

import Api from '@susy-js/api';
import Contracts from '@susy-js/contracts';

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

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 { sip20 } from '@susy-js/contracts/lib/abi';

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

Package Sidebar

Install

npm i @susy-js/contracts

Weekly Downloads

1

Version

5.1.3

License

MIT

Unpacked Size

254 kB

Total Files

66

Last publish

Collaborators

  • superstring