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

# 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: @gaiot/agent-cli-sdk
Description: aiot agent client js sdk
Author: glodoncv
Latest version: 2.4.5


# @aiot/agent-cli-sdk：

## 依赖安装

`yarn install`

yarn 安装可参考：https://blog.csdn.net/qq_45112637/article/details/125543953

`yarn start`，运行模板项目。

### 贡献代码

`git switch master`，切换分支 master。

`git pull`，获取 master 最新代码。

`git switch –c feature/xxx`，在 master 分支下创建并切换到新分支 feature/xxx。

在新分支编写代码。

`git add .`，把所有文件修改添加到暂存区。

`git commit -m "备注信息"`，将暂存区内容添加到本地仓库。

`git push`，把本地仓库的更新推到远程仓库。

分支代码完成后提 PR，将分支`feature/xxx`merge 到 develop 分支。

- 若有冲突，`git switch feature/xxx`切换到该分支，然后`git pull origin develop`，手动解决冲突之后再次提交代码。
- 没有冲突且测试没有问题，再提 PR，将 develop 分支 merge 到 master 分支。

### 更换远程仓库

**可向自己的代码仓库提交代码，不要在模板项目上提交代码哦~**

关联远程库例子：`git remote add origin git@server-name:path/repo-name.git`，可参考https://www.liaoxuefeng.com/wiki/896043488029600/898732864121440。

`git add .`，把所有文件修改添加到暂存区。

`git commit -m "备注信息"`，将暂存区内容添加到本地仓库。

`git push`，把本地仓库的更新推到远程仓库。

## 代码提交规范:

[@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional)

```
{
  'build': 打包
  'chore': 性能,
  'ci': 脚手架/工程化,
  'docs': 文档,
  'feat' : 新功能,
  'fix': 修改bug,
  'perf': 性能优化,
  'refactor': 重构,
  'revert'： 回退,
  'style': 样式,
  'test': 单元测试
}
```

举个例子
```
git commit -m "fix: some bug"

git commit -m "feat: some feautre"
```