open-index/open-npm huggingface dataset:
npm package: @hgswap/ethers-multicall
Description: Make multiple Ethereum network requests in a single HTTP query. ethcall for ethers v5.
Latest version: 0.1.6

# ethers-multicall

Make multiple Ethereum network requests in a single HTTP query. [ethcall](https://github.com/Destiner/ethcall) for ethers v5.

## API

* `Contract(address, abi)`: Create contract instance; calling `contract.callFuncName` will yield a `call` object
* `all(calls)`: Execute all calls in a single request
* `calls`: List of helper call methods
* `getEthBalance(address)`: Returns account ether balance

## Example

```ts
import { Contract, Provider } from 'ethers-multicall';
import { ethers } from 'ethers';

import erc20Abi from './abi/erc20.json';

const infuraKey = 'INSERT_YOUR_KEY_HERE';
const provider = new ethers.providers.InfuraProvider('mainnet', infuraKey);

const daiAddress = '0x6b175474e89094c44da98b954eedeac495271d0f';

async function call() {
  const ethcallProvider = new Provider(provider);

  await ethcallProvider.init(); // Only required when `chainId` is not provided in the `Provider` constructor

  const daiContract = new Contract(daiAddress, erc20Abi);

  const uniswapDaiPool = '0x2a1530c4c41db0b0b2bb646cb5eb1a67b7158667';

  const ethBalanceCall = ethcallProvider.getEthBalance(uniswapDaiPool);
  const daiBalanceCall = daiContract.balanceOf(uniswapDaiPool);

  const [ethBalance, daiBalance] = await ethcallProvider.all([ethBalanceCall, daiBalanceCall]);

  console.log('ETH Balance:', ethBalance.toString());
  console.log('DAI Balance:', daiBalance.toString());
}

call();
```
npm package: @hh.ru/babel-plugin-insert-pathname
Description: Babel plugin, which allows to add filename as an argument into function call
Author: Nik Mostovoy
Latest version: 1.0.6

### Специфический babel.plugin для добавления имени компонента к вызову фабрики компонента

Фабрика имеет вид:

```js
Components.build({
    create() {

    },
    ...
})
```

Матчимся на это знание и добавляем также информацию о компоненте:

```js
Components.build({
    create() {

    },
    componentName: 'bla-bla',
    ...
})
```

#### Установка

```
yarn add --dev @hh.ru/babel-plugin-insert-pathname
```

Добавить `@hh.ru/babel-plugin-insert-pathname` в `.babelrc` файл:

```json
{
    "plugins": ["@hh.ru/babel-plugin-insert-pathname"]
}
```
npm package: @hh.ru/babel-plugin-react-displayname
Description: Automatically detects and sets displayName for React components.  This is useful for having real component names show up in production builds of React apps.
Latest version: 1.1.3

# @hh.ru/babel-plugin-react-displayname

Automatically detects and sets displayName for React components. 
This is useful for having real component names show up in production builds of React apps.

## Installation
Simply add `@hh.ru/babel-plugin-react-displayname` to your `.babelrc` file:

```json
{
    "plugins": ["@hh.ru/babel-plugin-react-displayname"]
}
```

## Testing

`yarn test`