This is a simple example of how to pass general messages between Sepolia and PolygonAmoy chains with the help of Hyperlane.
- git
- You'll know you did it right if you can run
git --version
and you see a response likegit version x.x.x
- You'll know you did it right if you can run
- foundry
- You'll know you did it right if you can run
forge --version
and you see a response likeforge 0.3.0 (5a8bd89 2024-12-19T17:17:10.245193696Z)
- You'll know you did it right if you can run
git clone https://github.com/cqlyj/simple-hyperlane-cc-message
cd simple-hyperlane-cc-message
make
- Set up your environment variables:
cp .env.example .env
- Deploy the contracts:
make deploy-sender
make deploy-receiver
- Send a message from Sepolia to PolygonAmoy:
make send-message
And you can grab the transaction to Hyperlane Explorer to check the message status.
- 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!
Luo Yingjie - luoyingjie0721@gmail.com