Skip to content

cqlyj/simple-hyperlane-cc-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Hyperlane Cross Chain Message Passing

This is a simple example of how to pass general messages between Sepolia and PolygonAmoy chains with the help of Hyperlane.

Getting Started

Requirements

  • git
    • You'll know you did it right if you can run git --version and you see a response like git version x.x.x
  • foundry
    • You'll know you did it right if you can run forge --version and you see a response like forge 0.3.0 (5a8bd89 2024-12-19T17:17:10.245193696Z)

Quickstart

git clone https://github.com/cqlyj/simple-hyperlane-cc-message
cd simple-hyperlane-cc-message
make

Usage

  1. Set up your environment variables:
cp .env.example .env
  1. Deploy the contracts:
make deploy-sender
make deploy-receiver
  1. Send a message from Sepolia to PolygonAmoy:
make send-message

And you can grab the transaction to Hyperlane Explorer to check the message status.

  1. After the message is sent, you can check the message status on the receiver chain:
make get-last-message

You would find the message Hello, world on the receiver chain!

Contact

Luo Yingjie - luoyingjie0721@gmail.com

About

Demo of Hyperlane general message passing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published