diff --git a/README.md b/README.md index b1b2c20..c911526 100755 --- a/README.md +++ b/README.md @@ -3,9 +3,10 @@ **Betting dapp using ChakraUI** - 🐣 Project being developed by [Newbie's Lounge](https://lulox.notion.site/Newbie-s-Lounge-68ea7c4c5f1a4ec29786be6a76516878) -- 👷‍♀️ To view current development tasks, [join this Trello board](https://trello.com/invite/b/s0vot1BA/ATTI366c508087a404ccf9343def4d76d1ce6F7899AA/newbies-lounge). -- 🧰 To chat with other buidlers about this project, [join our Telegram group](https://t.me/+FwCZPG51UhwzOTZh) -- 🛠️ To collaborate, [fork and pull](https://github.com/susam/gitpr) a request to this repo. +- 👷‍♀️ To view current development tasks, [check the Issues on the Github repo](https://github.com/luloxi/Sportsbook/issues). +- 🧰 To chat with other buidlers about this project, [join Newbies Lounge Telegram group](https://t.me/+FwCZPG51UhwzOTZh) +- 🛠️ To submit a PR (Pull Request), [fork and pull](https://github.com/susam/gitpr) a request to this repo. +- 🐣 Make sure you know the ETH Tech Stack and understand [how to make a dApp using Scaffold-ETH 2](https://lulox.notion.site/Newbie-s-Lounge-68ea7c4c5f1a4ec29786be6a76516878). ## Dapp flow is: diff --git a/packages/nextjs/pages/sportsbook/ChallengeCard.tsx b/packages/nextjs/components/sportsbook/ChallengeCard.tsx similarity index 100% rename from packages/nextjs/pages/sportsbook/ChallengeCard.tsx rename to packages/nextjs/components/sportsbook/ChallengeCard.tsx diff --git a/packages/nextjs/pages/sportsbook/CreateChallengeBox.tsx b/packages/nextjs/components/sportsbook/CreateChallengeBox.tsx similarity index 100% rename from packages/nextjs/pages/sportsbook/CreateChallengeBox.tsx rename to packages/nextjs/components/sportsbook/CreateChallengeBox.tsx diff --git a/packages/nextjs/generated/deployedContracts.ts b/packages/nextjs/generated/deployedContracts.ts index 9910677..f1d9b31 100755 --- a/packages/nextjs/generated/deployedContracts.ts +++ b/packages/nextjs/generated/deployedContracts.ts @@ -616,235 +616,6 @@ const contracts = { }, ], }, - TicTacToe: { - address: "0xa513E6E4b8f2a923D98304ec87F64353C4D5C853", - abi: [ - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "gameId", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "team1", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "team2", - type: "address", - }, - ], - name: "GameAccepted", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "gameId", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "player1", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "player2", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "bet", - type: "uint256", - }, - ], - name: "GameCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "gameId", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "winner", - type: "address", - }, - { - indexed: false, - internalType: "enum TicTacToe.GameState", - name: "state", - type: "uint8", - }, - ], - name: "GameFinished", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "bytes32", - name: "gameId", - type: "bytes32", - }, - { - indexed: true, - internalType: "address", - name: "player", - type: "address", - }, - { - indexed: false, - internalType: "uint8", - name: "position", - type: "uint8", - }, - ], - name: "MoveMade", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "_player2", - type: "address", - }, - ], - name: "createGame", - outputs: [ - { - internalType: "bytes32", - name: "gameId", - type: "bytes32", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [], - name: "gameIdCounter", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - name: "games", - outputs: [ - { - internalType: "address", - name: "player1", - type: "address", - }, - { - internalType: "address", - name: "player2", - type: "address", - }, - { - internalType: "enum TicTacToe.GameState", - name: "state", - type: "uint8", - }, - { - internalType: "uint256", - name: "bet", - type: "uint256", - }, - { - internalType: "uint256", - name: "lastMoveTime", - type: "uint256", - }, - { - internalType: "bool", - name: "player1Withdrawn", - type: "bool", - }, - { - internalType: "bool", - name: "player2Withdrawn", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_gameId", - type: "bytes32", - }, - ], - name: "getBoard", - outputs: [ - { - internalType: "uint8[9]", - name: "", - type: "uint8[9]", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes32", - name: "_gameId", - type: "bytes32", - }, - { - internalType: "uint8", - name: "position", - type: "uint8", - }, - ], - name: "makeMove", - outputs: [], - stateMutability: "payable", - type: "function", - }, - ], - }, }, }, ], diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx index 935968f..669e3cb 100755 --- a/packages/nextjs/pages/index.tsx +++ b/packages/nextjs/pages/index.tsx @@ -1,8 +1,8 @@ // import Link from "next/link"; import { useState } from "react"; import { useEffect } from "react"; -import CreateChallengeBox from "../pages/sportsbook/CreateChallengeBox"; -import ChallengeCard from "./sportsbook/ChallengeCard"; +import ChallengeCard from "../components/sportsbook/ChallengeCard"; +import CreateChallengeBox from "../components/sportsbook/CreateChallengeBox"; import { Card, CardBody, Flex, Heading } from "@chakra-ui/react"; // import { BigNumber } from "ethers"; import type { NextPage } from "next";