Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.22 KB

BOUNTY.md

File metadata and controls

31 lines (21 loc) · 2.22 KB

Axelar GMP for sending Interchain Messages / Tokens

Example Interchain Transaction to NEAR

  1. Using Axelar Explorer, you can see how we sent transaction using the General Message Protocol: Successful Transaction on Axelar Explorer.
  2. That transaction continues on through to NEAR, which is best viewed on NEAR explorer: Successful Transaction on NEAR Explorer.
  3. As a result, the social media post requested in the body of the call on Avalanche is successfully posted to a NEAR smart contract, and the results can be viewed on the Near Social website: Successful Near Social Passport Post Creation.

Source Code

Smart Contracts

  • The /contracts directory contains the Solidity smart contracts - HomePlanet.sol and NearlyIntergalactic.sol - that were uploaded via Remix to Avalanche and Aurora respectively
  • These two smart contracts acts as AxelarExecutable and handle to the to-and-from of the Axelar GMP call
  • The CustomAuroraSdk.sol is what we use on the Aurora side to connect it with NEAR smart contracts

Intergalactic Passport dApp

  • The /frontend directory contains all the React - Typescript frontend code
  • The dApp connects to your wallet, and allows you to send the transaction from the Avalanche side that will make its way to NEAR side via Aurora
  • As we go through the different chains, the traveler's passport will be updated with the chain's stamp
  • At the end, the transaction completes by making a post to Near Social

Experience learning and using Axelar

+ The interchain capability allowed us to really bring this idea to life
+ Tutorials and docs were really well made so really helped hitting the ground running
+ AxelarScan made it really easy to visualize the GMP transactions as they went through

- When running on testnet, the time seemed to vary from 1 minute 30 to 4 minutes 30 for the same transaction
- When AxelarScan errors, it isn't too verbose on the cause of error