Giter VIP home page Giter VIP logo

luvnft / weaveswap Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 5.59 MB

WeaveSwap is a decentralized cross-chain swap application developed as part of the Chainlink Hackathon. The platform leverages Chainlink technology to enable seamless and secure swapping of assets across different blockchain networks.

Home Page: https://weaveswap.vercel.app/

License: MIT License

JavaScript 6.99% TypeScript 64.17% CSS 17.60% Solidity 11.24%

weaveswap's Introduction

WeaveSwap: Cross-Chain Swap Application

Swap is a decentralized cross-chain swap application developed as part of the Chainlink Hackathon. The platform leverages Chainlink technology to enable seamless and secure swapping of assets across different blockchain networks.

24011701872565_ pic

Features

  • Cross-Chain Compatibility: Swap supports the exchange of tokens/assets across various blockchain networks, providing users with flexibility and interoperability.
  • User-Friendly Interface: An intuitive interface designed to simplify the swapping process for both novice and experienced users.
  • **Security:**Swap prioritizes security, employing industry best practices and smart contract audits to ensure a safe swapping environment.

Challenges

  • Cross-Chain Interoperability Protocol (CCIP): Implementing a robust Cross-Chain Interoperability Protocol posed significant challenges. Ensuring compatibility and efficient communication between disparate blockchain networks required intricate protocol design and careful consideration of various consensus mechanisms and token standards.
  • Standardization Hurdles: Overcoming the lack of standardized formats for data transmission and transaction execution across multiple blockchains was a persistent challenge. Achieving seamless interaction and asset transfer between distinct protocols required extensive research and implementation efforts.
  • Protocol Security and Consistency: Maintaining security while ensuring consistent transactional behavior across different chains introduced complexities. Addressing potential vulnerabilities and ensuring the reliability of cross-chain transactions demanded rigorous testing and analysis.

Learnings

  • CCIP Dynamics: Navigating the complexities of Cross-Chain Interoperability Protocols provided invaluable insights into the intricacies of blockchain communication and interoperability. Understanding CCIP standards and their impact on decentralized applications deepened our knowledge base.
  • Standardization Efforts: Overcoming hurdles related to non-standardized formats enhanced our appreciation for the significance of protocol standardization. Exploring interoperability solutions helped identify best practices for seamless data transmission and transaction execution.
  • Security in Cross-Chain Environments: Addressing security concerns and maintaining transactional consistency across different chains enriched our understanding of secure cross-chain interactions. Implementing measures to mitigate risks in decentralized cross-chain environments became a priority focus area.

Tech Stack

  • Smart Contracts: Solidity, Chainlink CCIP, Ethers, Javascript, Typescript, Hardhat, Avalanche, Polygon
  • Frontend: Next.js, Redux,Tailwind
  • Backend: Node.js (or relevant backend technology)
  • Blockchain Networks: Right now for hackathon purpose we have completed all chains from and to sepolia

Getting Started

Installation

Frontend

The frontend code resides in the frontend folder of this repository.

  1. Navigate to the Frontend Directory:

    cd frontend 
    cd weaveswap-master
  2. Install Dependencies:

    npm install
  3. Run the Development Server:

    npm run dev

    This command starts the development server, allowing you to access the Swap interface at http://localhost:3000.

Smart Contracts

For accessing and working with the smart contracts, follow these steps:

  1. Hardhat Configuration Files:

    • Smart contracts are located in the contracts directory.
    • Hardhat configuration files can be found in the hardhat directory.
  2. Install Hardhat and Dependencies:

    Ensure you have Hardhat installed globally:

    npm install -g hardhat
  3. Compile Smart Contracts:

    Run the following command to compile the smart contracts:

    npx hardhat compile
  4. Run Tests (Optional):

    To execute tests, if available:

    npx hardhat test
  5. Deployment and Interaction:

    Use Hardhat scripts or deploy scripts provided in the repository to deploy contracts to your preferred network (local, testnet, or mainnet). Update the Hardhat configuration files (hardhat.config.js) with the necessary network details.

    For instance, to deploy on a local network:

    npx hardhat run scripts/deploy.js --network localhost

    Consult the respective documentation or scripts provided in the repository for specific deployment and interaction commands.

Usage

  • Access the Swap platform through the provided interface.
  • Connect your wallet (MetaMask, etc.) to the supported blockchain network.
  • Select the tokens/assets you want to swap and initiate the transaction.
  • Confirm the transaction details and complete the swap.

License

This project is licensed under the MIT License.

weaveswap's People

Contributors

n-45div avatar zhangdav avatar blkluv avatar

Forkers

savvycodings

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.