Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 787 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 787 Bytes

ILayer Bot

ILayer Bot is a Rust application designed to fulfill ILayer orders efficiently.

Installation

  1. Navigate to the project directory:
    cd ilayer_bot
  2. Install dependencies:
    cargo build

Usage

docker compose up -d # start the db
cp example.env .env # configure the RPC url and other configs
cargo run # start the bot

Testing

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.

Migrations

sea-orm-cli migrate refresh # NB. refresh undoes-redoes every migration, only for dev env