Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edakturk14/scaffold-hyperlane
Hyperlane quickstart app with Scaffold-eth2
https://github.com/edakturk14/scaffold-hyperlane
Last synced: about 2 months ago
JSON representation
Hyperlane quickstart app with Scaffold-eth2
- Host: GitHub
- URL: https://github.com/edakturk14/scaffold-hyperlane
- Owner: edakturk14
- License: mit
- Created: 2024-11-20T10:04:10.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-20T12:32:01.000Z (about 2 months ago)
- Last Synced: 2024-11-20T13:22:03.987Z (about 2 months ago)
- Language: TypeScript
- Size: 1.31 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# 🏗 Scaffold-Hyperlane
Scaffold-ETH 2 meets Hyperlane, enabling developers to build cross-chain applications with seamless messaging and asset bridging.
With Hyperlane integration, you can:
- Deploy Hyperlane core contracts on multiple chains.
- Use Warp Routes to transfer assets (e.g., ETH or ERC20 tokens) between chains.
- Test cross-chain messaging locally with minimal setup.For general Scaffold-ETH 2 features and usage, visit the original documentation.
## Requirements
Before you begin, you need to install the following tools:
- [Node (>= v18.18)](https://nodejs.org/en/download/)
- Yarn ([v1](https://classic.yarnpkg.com/en/docs/install/) or [v2+](https://yarnpkg.com/getting-started/install))
- [Git](https://git-scm.com/downloads)
- Hyperlane CLI: Install with:
```
npm install -g @hyperlane-xyz/cli
```## Quickstart: Scaffold-ETH 2 with Hyperlane
1. Set Up Local Chains
Run two local Ethereum chains using Foundry:
- Start the first chain:
```
yarn chain:1
This runs on http://localhost:8545 with Chain ID 31337.
```- Start the second chain:
```
yarn chain:2
This runs on http://localhost:9545 with Chain ID 31338.
```2. Add Chains to the Hyperlane Registry
Register the chains with Hyperlane to make them recognizable for cross-chain messaging:
```
hyperlane registry init
```Provide the following details when prompted:
- Chain 1:
Name: anvilchain1
RPC URL: http://localhost:8545
Chain ID: 31337
Native Token: ETH with 18 decimals.
- Chain 2:
Name: anvilchain2
RPC URL: http://localhost:9545
Chain ID: 31338
Native Token: ETH with 18 decimals.3. Deploy Hyperlane Core Contracts
Deploy the Mailbox and ISM contracts to enable cross-chain messaging:
```
hyperlane core init
hyperlane core deploy
```Select the chains (anvilchain1 and anvilchain2) when prompted.
Check the deployed contract addresses in ~/.hyperlane/chains//addresses.yaml.4. Test Cross-Chain Messaging
Verify the core contracts by sending a test message:```
hyperlane send message --relay
```