0.2.1 • Published 2 years ago

@acala-network/e2e v0.2.1

Weekly downloads
13
License
-
Repository
-
Last release
2 years ago

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
0.2.1

2 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago