Skip to content

A mock implementation of some basic components of Axelar's GMP API. The goal is to set up a local testing environment for the different relayers used in the chain integrations.

Notifications You must be signed in to change notification settings

commonprefix/mock-gmp-api

Repository files navigation

mock-gmp-api

A mock implementation of some basic components of Axelar's GMP API.
The goal is to set up a local testing environment for the different relayers used in the chain integrations.

Usage:

After launching PostgreSQL, create a DB called mock-gmp-api and run:
sqlx migrate run --database-url postgres://postgres:postgres@localhost:5432/mock-gmp-api

To run the server : cargo run --bin server
To run the client : cargo run --bin client

Server Endpoints:

GET /chain/<chain_name>/tasks
GET /contracts/<contract_address>/broadcasts/<broadcast_id>
GET /payloads/0x<hash>
GET /contracts/<contract_address>/broadcasts/<query_id>
POST /chain/<chain_name>/task
POST /chain/<chain_name>/events
POST /contracts/<contract_address>/broadacasts
POST /contracts/<contract_address>/queries
POST /payloads

About

A mock implementation of some basic components of Axelar's GMP API. The goal is to set up a local testing environment for the different relayers used in the chain integrations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages