Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kleros/contract-deployments

Package Overview
Dependencies
Maintainers
7
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kleros/contract-deployments

Deployment information for Kleros interaction contracts

  • 0.2.1
  • npm
  • Socket score

Version published
Maintainers
7
Created
Source

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

FAQs

Package last updated on 22 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc