@acentswap/ade-core 中文文档教程
Ade Factory
Local Development
以下假定使用 node@>=14
。
Install Dependencies
yarn
Compile Contracts
yarn compile
Migrate Contracts
Setup
在本项目的根目录下创建一个.env
文件。 复制 .env.example
中的变量并根据需要填写。 迁移后需要 API 密钥来验证合同,但迁移不需要 API 密钥。
Migrate
当前为迁移配置了以下网络:
bsc
bscTestnet
polygon
polygonTestnet
npx truffle migrate --network
Run Tests
yarn test
Ade Factory
In-depth documentation on AdeSwap is available at adeswap docs.
Local Development
The following assumes the use of node@>=14
.
Install Dependencies
yarn
Compile Contracts
yarn compile
Migrate Contracts
Setup
Create a .env
file in the root directory of this project. Copy in the variables from .env.example
and fill them in as needed. The API key is needed to verify the contracts after a migration, but it's not needed for a migration.
Migrate
The following networks are currently configured for migration:
bsc
bscTestnet
polygon
polygonTestnet
npx truffle migrate --network <network-name>
Run Tests
yarn test