Skip to content

Commit

Permalink
Modified Newbies Lounge message
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Mar 10, 2024
1 parent 29cb90f commit f425f51
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 234 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
229 changes: 0 additions & 229 deletions packages/nextjs/generated/deployedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
},
},
},
],
Expand Down
4 changes: 2 additions & 2 deletions packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit f425f51

Please sign in to comment.