@acala-network/e2e

0.2.1 • Public • Published

E2E tests & simulations

To run the simulation you need to local Karura node

Running Karura local node

Using docker:

docker run --rm -p 9944:9944 acala/karura-node:1.5.0 \
--dev --ws-external --rpc-methods=unsafe \
--instant-sealing  -levm=trace --tmp

To build the project without Docker use the guidelines here: AcalaNetwork/Acala Run the node with:

cargo run -- --dev --tmp

Simulations settings

Environment variables used in simulations you can find in .env file, feel free to change them:

WS_URL=ws://localhost::9944
SURI=//Alice

# required for loan price drop simulation
# will create a RENBTC loan for the given address
ADDRESS=5FLSigC9HGRKVhB9FiEo4Y3koPsNmBmLJbpXg2mp1hXcS59Y  

Liquidation Simulation

The liquidation simulation script will work only for your local Acala testnet, you should ensure that it's running.

Install dependencies:

yarn

Run simulation:

yarn dev:simulate-liquidate-cdp

Loan collateral ratio drop Simulation

The Loan collater ratio drop simulation script will work only for your local Karura testnet, you should ensure that it's running.

Install dependencies:

yarn

Run simulation:

yarn dev:simulate-loan

Readme

Keywords

none

Package Sidebar

Install

npm i @acala-network/e2e

Weekly Downloads

13

Version

0.2.1

License

none

Unpacked Size

69 kB

Total Files

25

Last publish

Collaborators

  • shunjizhan
  • xlc
  • aniiantt
  • ermal.kaleci
  • qwer951123