Giter Site home page Giter Site logo

salmandabbakuti / hello-axelar-dapp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 929 KB

Crosschain Hello world dapp with axelar

Home Page: https://hello-axelar-dapp.vercel.app

License: MIT License

Shell 0.33% Solidity 7.45% JavaScript 76.50% CSS 15.72%

hello-axelar-dapp's Introduction

axelar-crosschain-dapp

This project demonstrates a basic crosschain interoperability using axelar network. Axelar delivers secure cross-chain communication. That means that Web3 developers can create dApps that can interact with any asset, any application, on any chain, with one click. You can think of it as Stripe for Web3.

In this project we will be sending message from smartcontract on avalanche to smartcontract on moonbeam and vice versa.

Rename env.example to .env and add your env specific keys.

Steps:

Try running following tasks:

yarn install

yarn hardhat contracts:compile # compiles contracts

yarn contracts:deploy # deploys contracts

yarn hardhat contracts:execute # executes contract functionality

yarn hardhat help # shows help
Starting the frontend
yarn dev

Demo:

  1. Moonbeam Contract Address: [0xF8d0eF7BB673d2c9a0Faf2f81c71496892d1295a]: https://moonbase.moonscan.io/address/0xF8d0eF7BB673d2c9a0Faf2f81c71496892d1295a

  2. Avalance Contract Address: [0x12E14e3aaD07183568E0d18385a03faE5310fBe3]: https://testnet.snowtrace.io/address/0x12E14e3aaD07183568E0d18385a03faE5310fBe3

  3. Axelar transactions: [0xc7203561EF179333005a9b81215092413aB86aE9]: https://testnet.axelarscan.io/address/0xc7203561EF179333005a9b81215092413aB86aE9

Demo

Demo Web

D:\salman\hello-axelar-dapp>yarn contracts:execute
yarn run v1.22.19
warning ..\package.json: No license field
$ node scripts/execute.js
Current greeting on moonbeam:  Hello Cross-Chain
Current greeting on avalanche:  Hello Cross-Chain
setGreeting tx: moonbeam --> avalanche: 0x909fdce7985b82b880a159e29f481fd696070c5f019e395a58ac3cc890c807a1
Waiting for an event to be emitted on avalanche...
Received an event on avalanche:  Hello from Moonbeam Moonbeam 0xc7203561EF179333005a9b81215092413aB86aE9
setGreeting tx: avalanche --> moonbeam: 0x75db15fbffba69c0126bc66f7fe27cde292a8585f3b68209a4cd216fc7f92a75
Waiting for an event to be emitted on moonbeam...
Received an event on moonbeam:  Hello from Avalanche Avalanche 0xc7203561EF179333005a9b81215092413aB86aE9
Greeting on moonbeam after:  Hello from Avalanche
Greeting on avalanche after:  Hello from Moonbeam
Execution completed
Done in 716.56s.

hello-axelar-dapp's People

Contributors

salmandabbakuti avatar

Stargazers

Akash Pattnaik avatar

Watchers

 avatar  avatar

Forkers

onlyne-io

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.