Skip to content

reethuthota/Naming_Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Polygon ENS (Ethereum Name Service)

CryptoConnect Website

Overview

This project is a decentralized naming service using Solidity for the backend smart contracts and React for the frontend interface. It allows users to register and manage unique names associated with Ethereum addresses on the Polygon network.

Features

  • Name Registration: Users can register unique names tied to their Ethereum addresses on the Polygon network.
  • Frontend Interface: Built with React to interact with the Solidity smart contracts.

Installation

Prerequisites

  • Node.js & npm installed
  • Metamask extension or any Ethereum-enabled browser

Backend (Solidity)

  1. Navigate to the Solidity directory.

  2. Install dependencies with npm install.

  3. Compile the Solidity contracts using a Solidity compiler like solc.

    npx hardhat compile
  4. Deploy the contracts to the Polygon Mumbai testnet using Hardhat

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

Frontend (React)

  1. Navigate to the React directory.
  2. Install dependencies with npm install.
  3. Start the development server.

Deploying to Mainnet

To deploy the contracts to the Polygon mainnet, modify the deployment script to target the mainnet in scripts/deploy.js, and execute the deployment command again.