# Verto SDK V2

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



# 1. Install & Publish

```sh
# Install dependencies
yarn

# Build
yarn build
```

Run tests

```sh
yarn test
```



发布包到npm（@alys-chain/verto-sdk-v2）：

```sh
# 登录
npm login
# 发布
npm publish --access public
```



# 2. 修改参数

修改如下文件中的参数：

```
verto-sdk-v2/src/constants.ts
修改：ChainId、FACTORY_ADDRESS、INIT_CODE_HASH

verto-sdk-v2/src/entities/token.ts
修改：WETH

verto-sdk-v2/src/fetcher.ts
位数缓存（可选）：TOKEN_DECIMALS_CACHE
```

