This package has been deprecated

Author message:

Obsolete

@kleros/contract-deployments

0.3.2 • Public • Published

Kleros Contract Deployments

Deployment information for Kleros interaction contracts.

Installation

With NPM:

npm install --save @kleros/contract-deployments

With Yarn:

yarn add @kleros/contract-deployments

Usage

Import everything

Contracts are split by application:

import deployments from '@kleros/contract-deployments';

const Linguo = deployments.linguo.Linguo;
//                         A      A
//                         |      |
//                 App  ---+      +--- Contract name

console.log(Linguo);
// {
//   contractName: "Linguo",
//   abi: [...],
//   networks: {
//     '<network-id>': {
//       address: '0x9999999999999999999999999999999999999999',
//     }
//   }
// }

The reason they are organized this way is because most applications will have more than one contract related to them.

Import from an specific application

Contracts are split by application:

import Linguo from '@kleros/contract-deployments/linguo';

console.log(Linguo);
// {
//   contractName: "Linguo",
//   abi: [...],
//   networks: {
//     '<network-id>': {
//       address: '0x9999999999999999999999999999999999999999',
//     }
//   }
// }

/@kleros/contract-deployments/

    Package Sidebar

    Install

    npm i @kleros/contract-deployments

    Weekly Downloads

    5

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    43.2 kB

    Total Files

    20

    Last publish

    Collaborators