Skip to content

Commit

Permalink
Added tournament page
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectride committed Jan 20, 2024
1 parent 3845520 commit 9b02930
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/hardhat/contracts/Tournament.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ pragma solidity >=0.8.0 <0.9.0;
contract Tournament {
// State Variables
address public immutable owner;
mapping(address => uint256) public playerToLPToken;
mapping(address => uint256) public playerToPoints;
mapping(address => uint256) public playerToLPToken; // how much LP token each player has
mapping(address => uint256) public playerToPoints; // how many points each player has
mapping(address => uint256) public playerToLastGame; // when the player last played
string public name;
uint256 public contractLPToken; // amount of LP token held by the contract
address public poolIncentivized;
Expand Down Expand Up @@ -98,4 +99,7 @@ contract Tournament {
function unstakingAllowed() public view returns (bool) {
}

function player(address _player) public view returns (uint256 LPToken, uint256 points, uint256 lastGame) {
}

}
1 change: 1 addition & 0 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-hot-toast": "^2.4.0",
"react-router-dom": "^6.21.3",
"use-debounce": "^8.0.4",
"usehooks-ts": "^2.7.2",
"viem": "1.19.9",
Expand Down
32 changes: 32 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,13 @@ __metadata:
languageName: node
linkType: hard

"@remix-run/router@npm:1.14.2":
version: 1.14.2
resolution: "@remix-run/router@npm:1.14.2"
checksum: 8be55596f64563de95dea04c147ab67c4e6c9b72277c92d4de257dbb326e2aa16ad2adbdec32eb2c985808c642933ac895220654b8c899e4f4bd38f9fd97ff6e
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^4.0.0":
version: 4.2.1
resolution: "@rollup/pluginutils@npm:4.2.1"
Expand Down Expand Up @@ -1886,6 +1893,7 @@ __metadata:
react-copy-to-clipboard: ^5.1.0
react-dom: ^18.2.0
react-hot-toast: ^2.4.0
react-router-dom: ^6.21.3
tailwindcss: ^3.3.3
type-fest: ^4.6.0
typescript: ^5.1.6
Expand Down Expand Up @@ -11686,6 +11694,30 @@ __metadata:
languageName: node
linkType: hard

"react-router-dom@npm:^6.21.3":
version: 6.21.3
resolution: "react-router-dom@npm:6.21.3"
dependencies:
"@remix-run/router": 1.14.2
react-router: 6.21.3
peerDependencies:
react: ">=16.8"
react-dom: ">=16.8"
checksum: bcf668aa1428ca3048d7675f1ae3fe983c8792357a0ed59a1414cb1d682227727aad7c44c4222c6774b8d01bf352478845f7f3f668ebfcaa177208ef64e10bdc
languageName: node
linkType: hard

"react-router@npm:6.21.3":
version: 6.21.3
resolution: "react-router@npm:6.21.3"
dependencies:
"@remix-run/router": 1.14.2
peerDependencies:
react: ">=16.8"
checksum: 7e6297d5b67ae07d2e8564e036dbb15ebd706b41c22238940f47eee9b21ffb76d41336803c3b33435f1ebe210226577e32df3838bcbf2cd7c813fa357c0a4fac
languageName: node
linkType: hard

"react-style-singleton@npm:^2.2.1":
version: 2.2.1
resolution: "react-style-singleton@npm:2.2.1"
Expand Down

0 comments on commit 9b02930

Please sign in to comment.