The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
hyperlane-monorepo/rust/main/agents/scraper
Danil Nemirovsky 79e9d02f30
fix: Avoid Relayer to use GetBlock for Sealevel (#4883)
4 days ago
..
migration feat: Remove unique chain id index from db migration script (#4834) 3 weeks ago
src fix: Avoid Relayer to use GetBlock for Sealevel (#4883) 4 days ago
Cargo.toml feat: Use H512 as transaction hash in HyperlaneProvider and Scraper (#4759) 1 month ago
README.md feat: Splitting `rust` workspace into `main` and `sealevel` (#4438) 2 months ago

README.md

For local testing, setup a postgres database with

docker run --name scraper -e POSTGRES_PASSWORD=47221c18c610 -p 5432:5432 -d postgres

# optionally to connect
docker exec -it scraper /usr/bin/psql -U postgres

# and to shutdown
docker stop scraper
docker rm -v scraper

To init the database, run from rust dir

cargo run --package migration --bin init-db

To re-create the database, run from rust dir

cargo run --package migration --bin recreate-db

To re-generate the sea-orm entity code, when no database is running in docker and from the rust dir, run

cargo run --package migration --bin generate-entities

Note: This will install sea-orm-cli, start a docker container for postgresql, and then replace the existing entities. It will not work if docker is not setup or if anything is already bound on port 5432.