Giter Club home page Giter Club logo

daltonic / dappeventx Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 2.52 MB

The project revolves around DappEventX.sol, a Solidity-written Ethereum smart contract. It leverages the OpenZeppelin library to ensure secure and standardized development of the contract.

Home Page: https://dapp-event-x.vercel.app

License: MIT License

JavaScript 13.92% Shell 0.31% Solidity 9.27% TypeScript 76.09% CSS 0.40%
blockchain dapps marketplace nextjs solidity typescript web3 bitfinity

dappeventx's Introduction

DappEventX Project Documentation

Events Marketplace The project revolves around DappEventX.sol, a Solidity-written Ethereum smart contract. It leverages the OpenZeppelin library to ensure secure and standardized development of the contract.

Events Marketplace

The core of the contract is defined by two primary structures: EventStruct and TicketStruct, representing an event and a ticket, respectively.

Key Features

  • createEvent: Allows a user to create a new event.
  • updateEvent: Allows the event owner to update the details of an existing event.
  • deleteEvent: Allows the event owner or contract owner to delete an event.
  • getEvents: Returns all existing events.
  • getMyEvents: Returns all events created by the caller.
  • getSingleEvent: Returns a single event by its ID.
  • buyTickets: Allows a user to buy tickets for an event.
  • getTickets: Returns all tickets for a specific event.
  • refundTickets: Refunds all tickets for a specific event.
  • payout: Allows the event owner or contract owner to payout after an event.
  • mintTickets: Mints NFT tickets for an event.

Running the Application

Supply the following keys in your .env variable:

NEXT_PUBLIC_RPC_URL=http://127.0.0.1:8545
NEXT_PUBLIC_ALCHEMY_ID=<YOUR_ALCHEMY_PROJECT_ID>
NEXT_PUBLIC_PROJECT_ID=<WALLET_CONNECT_PROJECT_ID>
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=somereallysecretsecret

YOUR_ALCHEMY_PROJECT_ID: Get Key Here WALLET_CONNECT_PROJECT_ID: Get Key Here

Follow these steps to run the application:

  1. Install the package modules by running the command: yarn install
  2. Start the Hardhat server: yarn blockchain
  3. Run the contract deployment script: yarn deploy
  4. Run the contract seeding script: yarn seed
  5. Spin up the Next.js development server: yarn dev

Now, your application should be up and running.

๐Ÿ“š Key Technologies

  • ๐ŸŒ Next.js: A React framework for building server-side rendered and static websites.
  • ๐Ÿ“˜ TypeScript: A statically typed superset of JavaScript.
  • ๐Ÿ“ฆ Hardhat: A development environment for Ethereum smart contracts.
  • ๐ŸŒ EthersJs: A library for interacting with Ethereum and Ethereum-like blockchains.
  • ๐Ÿ“š Redux-Toolkit: A library for managing application state.
  • ๐ŸŽจ Tailwind CSS: A utility-first CSS framework.
  • ๐ŸŒˆ @rainbow-me/rainbowkit-siwe-next-auth: A library for authentication in Ethereum dApps.
  • ๐Ÿ“ React-Toastify: A library for adding toast notifications to your React application.
  • ๐Ÿ“œ Swiper: A modern mobile touch slider.
  • ๐Ÿ“š Wagmi: A library for building Ethereum dApps.

Useful links

dappeventx's People

Contributors

daltonic avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dappeventx's Issues

Error on every transaction with hardhat local network.

I am encountering following error on every transaction. Did you encounter such issue?,

Screenshot 2024-05-16 at 5 22 27โ€ฏPM

Error seems to be coming ethers package.

Unhandled Runtime Error
TypeError: missing r (argument="signature", value={ "accessList": null, "blockHash": null, "blockNumber": null, "from": "0xa0ee7a142d267c1f36714e4a8f75612f20a79720", "gas": "0x268be", "gasPrice": "0x8affa518", "hash": "0x72fa34ffa95e52e3ea36e482aa810f16a0c4c081931e6a1d15e71bc86be0a2dd", "input": "0x8627df4600000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001", "maxFeePerGas": "0x8affa518", "maxPriorityFeePerGas": "0x59682f00", "nonce": "0x2", "to": "0x5fbdb2315678afecb367f032d93f642f64180aa3", "transactionIndex": null, "type": "0x2", "value": "0xde0b6b3a7640000" }, code=INVALID_ARGUMENT, version=6.8.1)

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.