@parity/contracts
TypeScript icon, indicating that this package has built-in type declarations

5.1.19 • Public • Published

@parity/contracts

Parity's contracts as ES6 classes.

Build Status npm (scoped) npm dependencies Status

Installation

yarn add @parity/contracts

Usage

The Contracts object

import Api from '@parity/api';
import Contracts from '@parity/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 '@parity/contracts/lib/abi';

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

Dependents (0)

Package Sidebar

Install

npm i @parity/contracts

Weekly Downloads

4

Version

5.1.19

License

MIT

Unpacked Size

417 kB

Total Files

113

Last publish

Collaborators

  • vincecorsica
  • stefan-sopic
  • wirednkod
  • nachopalparity
  • pepo
  • mcornholio
  • dvdplm
  • paritytech-ci
  • parity-jacogr
  • jacogr
  • paritytech
  • kianenigma