3.1.2 • Published 1 year ago

@alys-chain/verto-sdk-v2 v3.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Verto SDK V2

To run the tests, follow these steps. You must have at least node v10 and yarn installed.

1. Install & Publish

# Install dependencies
yarn

# Build
yarn build

Run tests

yarn test

发布包到npm(@alys-chain/verto-sdk-v2):

# 登录
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