0.3.2 • Published 4 years ago

@kleros/contract-deployments v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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',
//     }
//   }
// }
0.3.2

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago