Giter Site home page Giter Site logo

kojhliang / axelar-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from axelarnetwork/axelar-examples

0.0 1.0 0.0 19.87 MB

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

Shell 0.27% JavaScript 29.13% TypeScript 55.68% CSS 0.08% Solidity 14.84%

axelar-examples's Introduction

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. Navigate to axelar-examples and 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.

Running the local chains

npm run start

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

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.

Examples

axelar-examples's People

Contributors

annamarie2019 avatar benjamin852 avatar canhtrinh avatar eguajardo avatar ffe9f8 avatar foivos avatar ggutoski avatar ilyalukyanov avatar kalidax avatar milapsheth avatar npty avatar olanetsoft avatar re1ro avatar stephenfluin avatar vladwulf avatar yongkangc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.