Skip to content

Commit 5d6c7cf

Browse files
feat: initial commit
0 parents  commit 5d6c7cf

112 files changed

Lines changed: 35020 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended"
9+
]
10+
}

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# suppress diffs for generated files
2+
**/pnpm-lock.yaml linguist-generated=true
3+
**/codegen/**/*.sol linguist-generated=true

.github/workflows/tests.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Install Foundry
12+
uses: onbjerg/foundry-toolchain@v1
13+
with:
14+
version: nightly
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
with:
19+
version: 9.6.0
20+
21+
- name: Install dependencies
22+
run: pnpm install
23+
24+
- name: Test contracts
25+
working-directory: packages/contracts
26+
run: pnpm test
27+
env:
28+
FORCE_DETERMINISTIC_TIMESTAMP: true # To ensure reproducible invariant failures.
29+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.vercel

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2024 t11s <t11s@paradigm.xyz>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
18+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
19+
OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# RethMatch
2+
3+
RethMatch is on-chain game challenge for bots, built on MUD and Odyssey.

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "rethmatch",
3+
"private": true,
4+
"scripts": {
5+
"build": "pnpm recursive run build",
6+
"dev:client": "pnpm --filter 'client' run dev",
7+
"deploy:contracts": "pnpm --filter 'contracts' deploy:odyssey",
8+
"mud:up": "pnpm mud set-version --tag main && pnpm install"
9+
},
10+
"devDependencies": {
11+
"@latticexyz/cli": "2.2.22-3baa3fd86f5917471729ba6551f12c17cdca53e3",
12+
"@types/debug": "4.1.7",
13+
"@typescript-eslint/eslint-plugin": "7.1.1",
14+
"@typescript-eslint/parser": "7.1.1",
15+
"eslint": "8.57.0",
16+
"rimraf": "^3.0.2",
17+
"typescript": "5.4.2"
18+
},
19+
"engines": {
20+
"node": "^18",
21+
"pnpm": "^8 || ^9"
22+
}
23+
}

packages/client/.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_CHAIN_ID=911867
2+
VITE_CLERK_PUBLISHABLE_KEY=pk_test_....

packages/client/.eslintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": ["../../.eslintrc", "plugin:react/recommended", "plugin:react-hooks/recommended"],
3+
"plugins": ["react", "react-hooks"],
4+
"rules": {
5+
"react/react-in-jsx-scope": "off",
6+
},
7+
}

packages/client/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
node_modules
2+
dist
3+
.DS_Store
4+
.vercel
5+
.env

0 commit comments

Comments
 (0)