https://github.com/acalanetwork/e2e
https://github.com/acalanetwork/e2e
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/acalanetwork/e2e
- Owner: AcalaNetwork
- License: gpl-3.0
- Created: 2020-06-01T22:50:33.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T19:43:43.000Z (almost 2 years ago)
- Last Synced: 2025-04-10T21:09:41.877Z (about 1 month ago)
- Language: TypeScript
- Size: 4.18 MB
- Stars: 3
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# E2E tests & simulations
To run the simulation you need to local Karura node
### Running Karura local node
Using `docker`:
```shell=
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**](https://github.com/AcalaNetwork/Acala)
Run the node with:
```
cargo run -- --dev --tmp
```### Simulations settings
Environment variables used in simulations you can find in [.env](https://github.com/AcalaNetwork/e2e/blob/master/.env) file, feel free to change them:
```bash=
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:
```shell=
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:
```shell=
yarn dev:simulate-loan
```