open-index/open-npm huggingface dataset:
npm package: @leap-network/contract-list-schema
Description: [![npm](https://img.shields.io/npm/v/@leap-network/contract-list-schema)](https://unpkg.com/@leap-network/contract-list-schema@latest/)
Author: PoolTogether Inc.
Latest version: 0.1.7

# `contract-list-schema`

[![npm](https://img.shields.io/npm/v/@leap-network/contract-list-schema)](https://unpkg.com/@leap-network/contract-list-schema@latest/)

A package for maintaining contract deployments & ABIs.

## Notes

With hardcoded addresses in a schema, when swapping out a contract address there will be a period of time when this package doesn't match live chain data.

## Maintaining

### **When swapping or removing a contract**

- Bump package **MAJOR** version
- Add contract ABIs (if necessary)
- Update relevant contracts in `contracts`

### **When deploying a new contract**

- Bump package **MINOR** version
- Add contract ABIs (if necessary)
- Add contracts to `contracts` (where necessary)

### **When adding a new tag**

- Bump package **MINOR** version
- Add tag to `tags`
- Add tag to relevant Contracts in `contracts`

#### Local use

In `contract-list-schema`
`yalc publish --push`

In the repo you want to use `contract-list-schema`
`yalc add contract-list-schema`
npm package: @leap-network/etherplex
Description: Multicall with Ethers.js
Author: Brendan Asselstine
Latest version: 1.1.8

# Etherplex

[Ethers.js](https://github.com/ethers-io/ethers.js) + [Multicall](https://github.com/makerdao/multicall)

Batch multiple Ethereum JSON RPC calls into a single RPC call.

Features:

- Uses the Multicall contract when available
- Falls back to individual RPC requests when not available

# Setup

```bash
yarn add @leap-network/etherplex
```

# Usage

1. First create a contract wrapper using the `contract` function
2. Chain calls on the contract and pass the results into the `batch` function

```javascript
import { ethers } from 'ethers'
import { batch, contract } from '@leap-network/etherplex'

// Assuming ERC20Abi is an ABI
// Assume the DAI_ADDRESS and USDC_ADDRESS constants are Ethereum addresses

let daiContract = contract('Dai', ERC20Abi, DAI_ADDRESS)

// Alternatively, you can just pass in an ethers.Contract instance
let ethersContract = new ethers.Contract(USDC_ADDRESS, ERC20Abi, provider)
let usdcContract = contract('Usdc', ethersContract)

let results = await batch(
  ethers.getDefaultProvider(),
  daiContract
    .balanceOf(address)
    .totalSupply(),
  usdcContract
    .balanceOf(address)
    .totalSupply()
)
/*
Will yield:

{
  Dai: {
    'balanceOf(address)': [BigNumber],
    balanceOf: [BigNumber],
  },
  Usdc: {
    'balanceOf(address)': [BigNumber],
    balanceOf: [BigNumber],
  }
}

*/
```
npm package: @leap-network/fixed-point
Description: An extremely simple fixed point math library
Author: Brendan Asselstine
Latest version: 1.0.2

# Fixed Point Math

[![CircleCI](https://circleci.com/gh/pooltogether/fixed-point.svg?style=svg)](https://circleci.com/gh/pooltogether/fixed-point)

This is a very simple fixed point math library.

# Setup

To install use yarm or npm and install `@leap-network/fixed-point`:

```sh
yarn add @leap-network/fixed-point
```

```sh
npm i @leap-network/fixed-point
```

# Development

Install the dependencies:

```sh
yarn
```

Now run the tests:

```sh
yarn test
```
npm package: @leap-network/hardhat-deploy-markdown-export
Description: This plugin turns your `hardhat-deploy` deployments into a nice markdown file.
Author: PoolTogether Inc.
Latest version: 0.3.7

# hardhat-deploy-markdown-export

This plugin turns your `hardhat-deploy` deployments into a nice markdown file.

# Usage

First install the package:

```
yarn add @leap-network/hardhat-deploy-markdown-export
```

Now add it to hardhat.config.js:

```
require('@leap-network/hardhat-deploy-markdown-export')
```

Now export your deployments:

```
hardhat deploy-markdown-export --help
```
npm package: @leap-network/hooks
Description: Useful hooks for PoolTogether applications
Author: PoolTogether Inc.
Latest version: 2.1.7

# PoolTogether hooks

A collection of various useful hooks used across the PoolTogether applications.

## NOTE

Make sure you keep `peerDependencies` and `devDependencies` versions in sync!

## How to use

1. `yarn add @leap-network/utilities`
2. `import * as Hooks from '@leap-network/hooks'` OR `import { hookYouWantToUse } from '@leap-network/hooks'`
3. Ensure you call any required init functions early

## Local development

Local development works best with yalc
`yarn global add yalc`

In pooltogether-hooks:
`yarn start`

In the app you're importing pooltogether-hooks:
`yalc link @leap-network/hooks`

When you save changes inside the hooks `src` folder, the package will rebuild and be pushed to all other projects that have run `yalc link @leap-network/hooks`.

## TODO

- jest tests
npm package: @leap-network/leap-sdk
Description: 🛠 An SDK for building applications on top of Chance.
Latest version: 0.0.18

# Array SDK

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/Array/sdk.git
```

Move into the sdk working directory

```sh
cd sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @leap-network/owner-manager-contracts
Description: PoolTogether Owner Manager Contracts
Latest version: 1.1.2

# PoolTogether Owner Manager Contracts
![Tests](https://github.com/pooltogether/owner-manager-contracts/actions/workflows/main.yml/badge.svg)
[![Coverage Status](https://coveralls.io/repos/github/pooltogether/owner-manager-contracts/badge.svg?branch=master)](https://coveralls.io/github/pooltogether/owner-manager-contracts?branch=master)

Abstract ownable and manageable contracts that can be inherited by other contracts to provide a basic access control mechanism, where
there is an owner and a manager that can be granted exclusive access to specific functions.

The `owner` is first set by passing the address of the `initialOwner` to the Ownable constructor.
 
The owner account can be transferred through a two steps process:
1. The current `owner` calls `transferOwnership` to set a `pendingOwner`
2. The `pendingOwner` calls `acceptOwnership` to accept the ownership transfer

The manager account needs to be set using `setManager`.

This module is used through inheritance. It will make available the modifiers `onlyManager`, `onlyOwner` and `onlyManagerOrOwner`, which can be applied to your functions to restrict their use to the manager and/or the owner.

## Usage
This repo is setup to compile (`nvm use && yarn compile`) and successfully pass tests (`yarn test`)


# Installation
Install the repo and dependencies by running:
`yarn`

## Deployment
These contracts can be deployed to a network by running:
`yarn deploy <networkName>`

## Verification
These contracts can be verified on Etherscan, or an Etherscan clone, for example (Polygonscan) by running:
`yarn etherscan-verify <ethereum network name>` or `yarn etherscan-verify-polygon matic`


# Testing
Run the unit tests locally with:
`yarn test`

## Coverage
Generate the test coverage report with:
`yarn coverage`
        "test": "yarn clean && HIDE_DEPLOY_LOG=true && yarn hint && hardhat test"