GithubHelp home page GithubHelp logo

codetit4n / axelar-two-way-nft-example Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.93 MB

Check ownership of your NFT cross chain using Axelar's 2-way General Message Passing(GMP)

Home Page: https://lync-task.netlify.app

License: MIT License

Solidity 24.59% JavaScript 66.88% Shell 0.03% HTML 5.79% CSS 2.70%

axelar-two-way-nft-example's Introduction

axelar-two-way-nft-example - Archived

Warning This is a public archived repository. Some things might not work!

Task

Deploy a normal contract on any chain which sends 3 params

  1. NFT contract address
  2. NFT token id
  3. User address who is interacting

On the second chain, deploy an NFT contract, and with params coming from 1st chain check if the user address is the owner of the NFT and return true/false back to 1st chain.

Information regarding my implementation

Testnet chains docs: https://docs.axelar.dev/dev/build/contract-addresses/testnet

The two chains I am choosing are:

  1. Avalanche FUJI Testnet - Chain Id: 43113 - Source chain
  2. Moonbase Alpha testnet - Chain Id: 1287 - Destination chain

So, the params 'Sender' contract will be on Avalanche and the params 'Receiver'/NFT ownership checker contract will be on Moonbase.

Gas will be paid on the Source chain for both sides.

Latest addresses being used in the client

  • Sender contract (Avalanche FUJI chain): 0x124edb971F290A41055A0f98e9302878d5877829
  • Receiver contract (Moonbase Alpha chain): 0xB5d8196AE369930d0491504C2Bb869E2601635a6
  • TestNft contract (Moonbase Alpha chain): 0xAb37A337a1bB6925Ab0d8b084320F14AaD08A92f

To deploy the contracts for testing run:

npx hardhat run scripts/deploy.js

I have used the axelar SDK for estimating gas in the react app (client folder).

To run the react app for testing

Go inside the client folder:

cd client

Install node modules:

npm i

Run the app on localhost:

npm start

axelar-two-way-nft-example's People

Contributors

codetit4n avatar

Stargazers

 avatar

Watchers

 avatar  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.