Giter VIP home page Giter VIP logo

bridge-nft's Introduction

Bridge-NFT

This project contains a simple ERC-721A smart contract for creating and managing non-fungible tokens (NFTs). The contract allows users to mint new NFTs, set their metadata (URI), and check the balance of NFTs. You can also bridge your nfts to some other network using the FxPortal bridge.

Description

A 5-item NFT collection has been created using "Stable Diffusion". The items are stored on IPFS using pinata.cloud. ERC721A smart contract is deployed to the Goerli Ethereum Testnet. There is a promptDescription function on the contract that returns the prompt used to generate the images. There is a hardhat script to batch mint all NFTs and a hardhat script to batch transfer all NFTs from Ethereum to Polygon Mumbai using the FxPortal Bridge. The NFTs are approved for transfer and deposited to the Bridge. The getBalance script can be run to check the NFTs on Mumbai.

Getting Started

  1. Clone the repository:
git clone <https://github.com/Isheta20/Bridge-NFT.git>
  1. Install the dependencies :
npm i
  1. Install the ERC721A contract:
npm install erc721a
  1. Compile the contract and deploy
npx hardhat run scripts/deploy.js --network goerli

To batch mint tokens: npx hardhat run scripts/BatchMint.js --network goerli

To approve and deposit your tokens to polygon: npx hardhat run scripts/BatchTransfer.js --network goerli

To see the new polygon balance: npx hardhat run scripts/getBalance.js --network mumbai

Technologies Used

  • MetaMask - Wallet and gateway to Ethereum blockchain
  • ethers.js - Library for interacting with Ethereum smart contracts
  • Hardhat - Development environment and task runner for building, testing, and deploying smart contracts on Ethereum and other blockchain platforms

Authors

License

This project is licensed under the MIT License - see MIT LICENSE for details

bridge-nft's People

Contributors

isheta20 avatar

Watchers

 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.