Foundry Axelar GMP Example Now Supports Axelar Local Cross-Chain Development

Foundry Axelar GMP Example Now Supports Axelar Local Cross-Chain Development

Late last year, we announced the Foundry Axelar GMP Example repository. This showcases an example of integrating with Axelar's General Message Passing (GMP) using the Foundry framework.

We're thrilled to announce that the Foundry Axelar GMP Example now includes support for the Axelar Local Development Environment. This update allows developers to build, compile, and test cross-chain functionalities with Axelar's GMP locally, eliminating the need to deal with testnet faucets.

The Foundry framework is recognized for its efficiency and user-friendliness. It offers a complete set of tools for developing smart contracts compatible with the Ethereum Virtual Machine (EVM). The Foundry GMP Example makes the process easier and boosts developers' ability to create smart contracts interacting with multiple blockchain networks.

How does the Foundry Axelar GMP Example Work with the Axelar Local Development?

The Foundry Axelar GMP Example offers a practical way to show the possibilities and versatility of these integrations with the Axelar Local Development. It helps you start your development locally quickly without needing a complex setup or worrying about the testnet faucet when testing on testnet.

We have a list of make commands that do every setup required to build and compile the project and send it off to the blockchains you choose, making it easier to pass data dynamically as needed when testing.

Don't worry about private keys; we have set everything up locally using the Anvil blockchain. Additionally, we have configured five different networks - Ethereum, Avalanche, Moonbeam, Fantom, and Polygon - for you to test.

Features

This repository provides a set of Makefile commands to facilitate everyday tasks:

  • make all : Install dependencies, build, and update the project.

  • make setup-env : Create a .env file from .env.example.

  • make install : Install the dependencies.

  • make build : Compile the contracts.

  • make update : Update the project.

  • make deploy : Deploy a specific contract to a given network.

  • make execute : Execute a specific contract on a given network.

  • make format : Format the codebase using the Foundry formatter.

  • make test : Run tests with increased verbosity.

  • make clean : Clean any generated artifacts.

  • make rpc : Display RPC URLs for various networks.

  • make help : Display the help menu.

  • local-chain-start: Start the local chains

  • local-chain-deploy: Deploy all the contracts to local chains

  • local-chain-execute: Execute the commands to test GMP

What Next?

Start building with Foundry and Axelar GMP. You'll find comprehensive documentation and code examples to kickstart your projects.

Prefer Hardhat? Check out our Axelar Examples repository for more resources.

If you have any questions or concerns, open an issue in our support repository. We're here to help.