Skip to content

A full stack digital marketplace running on Ethereum with Polygon & Next.js

License

Notifications You must be signed in to change notification settings

Jilatra/polygon-ethereum-nextjs-marketplace

Repository files navigation

Full stack digital marketplace built with Polygon & Next.js

Getting started

Configuration

The main configuration for this project to work successfully on Polygon is located in hardhat.config.js:

module.exports = {
  defaultNetwork: "hardhat",
  networks: {
    hardhat: {},
    mumbai: {
      url: "https://rpc-mumbai.matic.today",
      accounts: [privateKey]
    },
    matic: {
      url: `https://polygon-mumbai.infura.io/${infuraId}`,
      accounts: [privateKey]
    }
  },
  solidity: {
    version: "0.8.4",
    settings: {
      optimizer: {
        enabled: true,
        runs: 200
      }
    }
  },
  paths: {
    sources: "./contracts",
    tests: "./test",
    cache: "./cache",
    artifacts: "./artifacts"
  },
};

Update .infuraid with your Infura project ID and, if you are planning on deploying to the main network, update .secret with the Private Key of the account that you would like to use to deploy.

About

A full stack digital marketplace running on Ethereum with Polygon & Next.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.0%
  • Solidity 23.4%
  • CSS 7.5%
  • Shell 0.1%