@acala-network/e2e 中文文档教程

发布于 3年前 浏览 25 更新于 3年前

e2e

Simulate CDP liquidation

  1. start acala local node
  2. npx -p @acala-network/e2e@latest simulate-liquidate-cdp

默认环境参数

process.env.WS_URL = 'ws://localhost::9944' # node endpoint
process.env.SURI = '//Alice' # sudo account

可选环境参数

process.env.BIDDER_ADDRESS # will give bidder 1m aUSD and 1k ACA

Simulate loan collateral ratio dropping

  1. start acala local node
  2. npx -p @acala-network/e2e@latest simulate-loan

默认环境参数

process.env.WS_URL = 'ws://localhost::9944' # node endpoint
process.env.SURI = '//Alice' # sudo account

必需环境参数

process.env.ADDRESS # will create a RENBTC loan for the given address

Development

  • Run e2e tests: BINARY_PATH=<acala binary path> yarn test:e2e

e2e

Simulate CDP liquidation

  1. start acala local node
  2. npx -p @acala-network/e2e@latest simulate-liquidate-cdp

default env args

process.env.WS_URL = 'ws://localhost::9944' # node endpoint
process.env.SURI = '//Alice' # sudo account

optional env args

process.env.BIDDER_ADDRESS # will give bidder 1m aUSD and 1k ACA

Simulate loan collateral ratio dropping

  1. start acala local node
  2. npx -p @acala-network/e2e@latest simulate-loan

default env args

process.env.WS_URL = 'ws://localhost::9944' # node endpoint
process.env.SURI = '//Alice' # sudo account

required env args

process.env.ADDRESS # will create a RENBTC loan for the given address

Development

  • Run e2e tests: BINARY_PATH=<acala binary path> yarn test:e2e
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文