Skip to content

Switcheo/evm-cosmos-relayer

 
 

Repository files navigation

EVM to Cosmos Relayer

A relayer between cosmos and evm chains on Axelar testnet.

How to run?

The relayer is currently deployed on the heroku server, so you don't have to run it. But here's how you can also run it in your local machine.

Prerequisite

Make sure docker engine is running. We use docker for spin up local postgres db.

Steps

  1. Copy .env.example to .env and fill all values.
  2. Run yarn
  3. Run make up to run postgres db container.
  4. Wait until the db is ready to accept connection, then run make prisma-push to create database and tables.
  5. Run make prisma-generate to generate db types.
  6. Run yarn start:dev to start the relayer

API

The relayer has stored the cross-chain events in the database. It exposes an API for developers for the debugging purpose.

The API documentation in available here.

Run scripts

example:

ts-node scripts/test-axelar-callContract.ts mantle carbon swth1cnymmv74yff8llh2hlykx3wezcvmrmuqt44crd 0x0123

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.3%
  • Solidity 4.4%
  • Makefile 0.3%