Skip to content

deltabridge/uni-bridge-spintrade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNI Bridge for All BlockChains

Video demo

Intro

UNI Bridge is a decentralized bridge for connecting different blockchains.

It includes stake, bridge, trade modules.

Currently only the bridge module is available, which is built during the hackathon.

Our mission is to aggregate as much decentralized bridges for connecting different blockchains and take over the centralized exchange platforms.

It allows users to transfer assets between all blockchains without having to use any centralized, currently support:

  • Bitcoin
  • Ethereum Mainnet
  • BNB Smart Chain (BEP20)
  • BNB Beacon Chain (BEP2)
  • Avalanche C-Chain
  • Cosmos (ATOM)
  • THORChain
  • Dogecoin
  • Bitcoin Cash
  • Litecoin

More chains ( Arweave, AO, Polygon, Solana) support are coming soon.

Quick Link

How it works?

The bridge module leverages SwapkitSDK API to aggregate liquidity from various decentralized exchanges across different blockchains.

This modules aims to provide users with the best possible trading rates, enhance liquidity, and simplify the cross-chain trading experience.

How bridge work

Features

What we build during the hackathon and how we built it with SwapKitSDK?

The SwapKitSDK is a library that allows developers to easily integrate decentralized exchanges into their applications. It provides a simple API for aggregating liquidity from various decentralized exchanges across multiple block

The bridge module uses the SwapKitSDK to handle cross-chain liquidity aggregation and bridge.

Bridge Previews

The bridge module is built with the following features:

Wallet connect Source code

  • connect wallet btn
  • connect wallet modal
  • user can see a list of supported chains
  • user can select a chain
  • list corresponding wallet app (filter by the tag of the chain)
  • auto detect all the supported wallet app is installed or not
  • if not installed: user can click the "Click to install" btn to install the missing wallet app
  • if installed: user can click wallet btn to connect with the wallet app

Wallet connect

2. Input "From" fields Source code

  • select source chain with keywords search
  • select token with keywords search
  • Input token amount for bridge
  • query user wallet's balance of current selected token
  • "Max" btn to help user input all balance

Input "From" fields

3. Input "To" fields

  • Address book Source code
    • add address
    • create new address book
    • address book provide multiple address to store
    • delete address book
    • change address
  • select chain
  • select token
  • Input token amount for bridge

Address book

Input "To" fields

4. Get quote and help user trigger transaction for bridge Source code

  • auto get quote and provide best route from DEX aggregators
    • from thorswap via SwapKitSDK API

Get quote and help user trigger transaction for bridge

What's next?

Technical Stack

  • Frontend: Vue.js, Nuxt.js, NuxtUI, NuxtUI-Pro, Tailwindcss
  • Backend: Supabase.js, Node.js, Nitro.js(build-in Nuxt.js)
  • Blockchain Integration: SwapKitSDK, Layer SaaS
  • Database: PostgreSQL (Supabase.js build-in)
  • Deployment: Vercel

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Locally preview production build:

# npm
npm run preview

# pnpm
pnpm run preview

# yarn
yarn preview

# bun
bun run preview

Check out the deployment documentation for more information.

Renovate integration

Install Renovate GitHub app on your repository and you are good to go.

About

UNI Bridge for All BlockChains

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 42.9%
  • TypeScript 31.6%
  • Solidity 25.1%
  • Other 0.4%