Giter Club home page Giter Club logo

shivankk26 / nft-lendswap Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 87 KB

NFT LendSwap is a decentralized NFT lending and borrowing platform built on Solana blockchain. It allows users to lend and borrow NFT assets securely using smart contracts. This repository contains the codebase for NFT LendSwap platform.

TypeScript 5.31% Rust 94.69%
anchor anchor-lang nextjs13 rust rust-lang shadcn-ui smart-contracts solana solana-program tailwindcss typescript

nft-lendswap's Introduction

NFT LendSwap

NFT LendSwap is a decentralized NFT lending and borrowing platform built on Solana blockchain. It allows users to lend and borrow NFT assets securely using smart contracts. This repository contains the codebase for NFT LendSwap platform.

Features

  • Decentralized NFT Lending & Borrowing: Users can lend their NFT assets to earn interest or borrow NFTs by providing collateral.
  • Smart Contracts: Implemented in Rust, ensuring security and transparency of transactions.
  • Next.js Frontend: Frontend interface built using Next.js, providing a fast and responsive user experience.
  • Typescript: Written in TypeScript for enhanced code maintainability and readability.
  • Tailwind CSS and Shadcn: Utilizes Tailwind CSS and Shadcn for frontend styling and components, offering a sleek and modern design.

Technologies Used

  • Solana: Blockchain platform used for executing smart contracts and managing NFT assets.
  • Rust: Programming language for writing smart contracts, ensuring efficiency and security.
  • Next.js: React framework for building the frontend interface, providing server-side rendering and fast performance.
  • TypeScript: Typed superset of JavaScript, enhancing code quality and maintainability.
  • Tailwind CSS: Utility-first CSS framework for designing responsive and customizable UI components.
  • Shadcn: Frontend library for UI components and styling, offering pre-designed components for rapid development.

Getting Started

Prerequisites

  • Node.js
  • npm or yarn
  • Rust
  • Solana CLI

Installation

  1. Clone the repository:
git clone https://github.com/ShivankK26/NFT-LendSwap.git
  1. Install dependencies:
npm install   # or yarn install
  1. Build and run the project:
anchor build
  1. List the project deployment keys and copy the address to a clipboard:
anchor keys list
  1. Update your Anchor.toml file, by using the address generated in the previous step:
[programs.devnet]
nft_lend_borrow = "<ADD YOUR ADDRESS HERE>"
  1. Update your lib.rs file by adding the the address generated in step 4 to the declare_id!() macro
    // code

pub use errors::ErrorCodes;
pub use instructions::*;
pub use states::*;

declare_id!("<YOUR ADDRESS HERE>");

#[program]
pub mod nft_lend_borrow {
    // code

nft-lendswap's People

Contributors

shivankk26 avatar

Stargazers

aditya yadav avatar Pradeepto Sarkar avatar  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.