Skip to content
Start on Wormhole

Initialising the Project

πŸš€ Setting Up Foundry πŸš€

Hey there, future Ethereum developer! 🌟 Ready to dive into the world of smart contracts and dApps? Foundry is your trusty sidekickβ€”a super-fast EVM Development toolkit coded in Rust. Here’s how to get it up and running:

1️⃣ Fire Up Your Terminal: Open your terminal and run this magic spell πŸ§™β€β™‚οΈ:

curl -L https://foundry.paradigm.xyz | bash

Foundry Installation

2️⃣ Check Your Work: To make sure Foundry is installed correctly, type:

forge --help

You should see some helpful text pop up. πŸ“œ

Forge Help

πŸ› οΈ Installing Ganache πŸ› οΈ

Ganache is like your personal sandbox for Ethereum. πŸ–οΈ It’s a local blockchain simulator that lets you test out your smart contracts in a safe environment. Here’s how to set it up:

1️⃣ Download Time: Head over to the Official Ganache Website and grab the installer.

2️⃣ Install It: Run the installer and follow the steps. It’s as easy as pie! πŸ₯§

3️⃣ Quickstart Your Blockchain: Once installed, create a new Ethereum workspace using the Quickstart option. This will be your testing ground. 🌱

Ganache Quickstart

4️⃣ Your Testing Wallets: Ganache will give you some test wallets and private keys. You can access them at http://127.0.0.1:7545.

Ganache Accounts

πŸ“ Time to Code! πŸ“

With your dev environment ready, it’s time to write some smart contracts and take them cross-chain! πŸŒ‰

πŸ”‘ Save Your Private Key: Grab a private key from one of your Ganache accounts and save it as a PATH variable. This will make deploying contracts a breeze.

Ganache Private Key

Into the terminal of the x-mail directory, type

export PRIVATE_KEY='Your Private Key'

πŸ” Verify Your Key: To double-check, you can display your saved private key with:

echo $PRIVATE_KEY

And voila! You’re all set to start your Ethereum development journey! πŸŽ‰