ILayer Bot is a Rust application designed to fulfill ILayer orders efficiently.
- Navigate to the project directory:
cd ilayer_bot
- Install dependencies:
cargo build
docker compose up -d # start the db
cp example.env .env # configure the RPC url and other configs
cargo run # start the bot
To run unit tests, use the following command:
cargo test
To run end-to-end (e2e) tests, use the following command:
cargo test -- --ignored
Note that e2e tests have a dependency on docker-compose
and anvil
to start the necessary services.
sea-orm-cli migrate refresh # NB. refresh undoes-redoes every migration, only for dev env