Inspiration

Linera with its microchains architeture piqued my interest, as it is easily scalable, and be very cheap in term of storage. After i try to learned Linera Protocol.I builded the swap app base on amm in github of Linera.

What it does

Swap application, we can swap token build on Linera protocol.

  • Connect Wallet (Now i just demo with connect account instead)
  • Swap two token pair
  • Change to pair with button change or modal select token
  • Information account and token balance.

How we built it

For Linera Protocol

  1. Set up SDK of Linera protocol
  2. Run amm examples in Linera github (https://github.com/linera-io/linera-protocol/tree/main/examples/amm)

For Front-End

  1. Install Nodejs

  2. Clone project from my github (https://github.com/edwardluu/hackathon-linera-swap)

  3. Install and run project base on readme file

Challenges we ran into

Setup Linera protocol and running it. Integrate multiple apollo clients to query with graphql.

Accomplishments that we're proud of

Can swap two pair token and run as time no need refresh page.

What we learned

Understanding of setup and run Linera microchains with Linera sdk Understanding of decentralized applications with Web3. Enhanced skills in GraphQL. Improved our ability to design and deploy scalable web applications.

What's next for Mun Swap App

  1. Swap base on Ratio AMM, calculate gas fee.
  2. Transfer section,
  3. Staking section.
  4. Improve UI to smooth and friendly
  5. Real time
  6. Add watch chart base on token swap
  7. Connect wallet.

Built With

  • grapql
  • linera-protocol
  • nextjs
  • tailwind
Share this project:

Updates