Skip to content

Sample cross-chain dapps & contracts using the Axelar protocol.

Notifications You must be signed in to change notification settings

maancham/axl-glue

 
 

Repository files navigation

Axelar cross-chain dApp examples

Introduction

This repo provides the code for several example dApps in the Axelar Local Development Environment. Examples contain both JavaScript and Solidity smart contract code.

Note: Some example folders in this repo are not documented.

One-time setup

Install nodejs. Run node -v to check your installation.

Support Node.js version 16.x and 18.x

  1. Clone this repo:
git clone https://github.com/axelarnetwork/axelar-examples.git
  1. Install dependencies:
npm install
  1. Compile smart contracts:
npm run build

Set environment variables

You can get started quickly with a random local key and .env file by running

npm run setup

Or you can manually copy the example .env.example file and fill in your EVM private key. See the example Metamask Instructions for exporting your private keys.

cp .env.example .env

Then update to your own private key.

Print wallet balances

This script will print your wallet balances for each chain.

npm run check-balance [local|testnet]

If not specified, this will print balances of the wallet for testnet.

Running the local chains

npm run start

Leave this node running on a separate terminal before deploying and testing the dApps.

Deploy Glue and Call Function

Make sure to do this part after running the local chains

./run.sh

Examples

About

Sample cross-chain dapps & contracts using the Axelar protocol.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.3%
  • JavaScript 34.9%
  • Solidity 12.1%
  • Other 0.7%