Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mege feat mvp to main #2

Open
wants to merge 772 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
772 commits
Select commit Hold shift + click to select a range
48f9f09
add some rpc address
LidamaoHub Nov 17, 2023
92d439a
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 17, 2023
3954dc8
Update readme.md
echooooz Nov 19, 2023
133871e
fix: conflicts
Vivomo Nov 19, 2023
ce58d76
Merge pull request #1 from Mississippi-Labs/feat-hero
LidamaoHub Nov 19, 2023
1968566
update: update userinfo & battle style
TiyoSheng Nov 19, 2023
b302890
update: update isOpen
TiyoSheng Nov 19, 2023
56065c7
update: chainid
TiyoSheng Nov 19, 2023
eb23ad7
world
LidamaoHub Nov 19, 2023
a5d6af4
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 19, 2023
e90171f
re-add mult build contract
LidamaoHub Nov 19, 2023
9099b9a
fix: fix bug
TiyoSheng Nov 20, 2023
6234c24
rebuild new contract
LidamaoHub Nov 20, 2023
796b9d3
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 20, 2023
69f1294
fix: fix bug
TiyoSheng Nov 20, 2023
28851a0
add Foundry
TiyoSheng Nov 20, 2023
15c5a68
fix: fix bug
TiyoSheng Nov 20, 2023
0187216
feat: use dynamic time to move
Vivomo Nov 20, 2023
54b1852
fix: preview path bug
Vivomo Nov 21, 2023
498d401
add new contract
LidamaoHub Nov 21, 2023
d0c1e8c
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 21, 2023
1700bf3
fix: fix bug
TiyoSheng Nov 22, 2023
f479309
update blockTime
TiyoSheng Nov 22, 2023
f68ba3a
Hide players in battle
TiyoSheng Nov 22, 2023
ef65586
update chainname
TiyoSheng Nov 22, 2023
843a21a
add chain
TiyoSheng Nov 22, 2023
3ebc52b
update style
TiyoSheng Nov 22, 2023
a8c60d5
update contract
LidamaoHub Nov 22, 2023
d009460
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 22, 2023
200d60b
add TRANSFER_GAS
TiyoSheng Nov 22, 2023
31820d9
conflicts
TiyoSheng Nov 22, 2023
9236dde
add env
TiyoSheng Nov 22, 2023
6661437
fix bug
TiyoSheng Nov 22, 2023
6804b15
update env value
TiyoSheng Nov 22, 2023
e67ad9e
add CreateBox notify
TiyoSheng Nov 22, 2023
94146f5
add CreateBox notify
TiyoSheng Nov 22, 2023
577fa1d
add discord
TiyoSheng Nov 22, 2023
bb52bdb
fix: the map offset
Vivomo Nov 23, 2023
4543c5a
fix: fix bug
TiyoSheng Nov 23, 2023
122afef
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 23, 2023
9c31851
airdrop
TiyoSheng Nov 23, 2023
8a178fc
feat: format player's bigint field to number
Vivomo Nov 24, 2023
8b85395
feat: add hp bar
Vivomo Nov 24, 2023
1e71386
fix: remove unused constant
Vivomo Nov 24, 2023
d0abe4d
fix: Increase the visibility of foggy areas
Vivomo Nov 24, 2023
61ea7b3
feat: hunt player
Vivomo Nov 24, 2023
fe50590
feat: calc move time
Vivomo Nov 24, 2023
7995454
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Nov 24, 2023
25990ec
feat: hunt style
Vivomo Nov 24, 2023
7f78b38
feat: hunt style
Vivomo Nov 24, 2023
1401966
fix bugs of collection box and rebuild
LidamaoHub Nov 24, 2023
c5e0b7f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 24, 2023
7f93be6
merge
LidamaoHub Nov 24, 2023
328b9bb
update airdrop
TiyoSheng Nov 24, 2023
ac78c57
update: add log
TiyoSheng Nov 24, 2023
cb6ae92
fix: fix bug
TiyoSheng Nov 24, 2023
77514ba
feat: open Chests's distance update
Vivomo Nov 24, 2023
1fd072f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Nov 26, 2023
709db25
update: update player hp
TiyoSheng Nov 26, 2023
1fdc301
fix: fix bug
TiyoSheng Nov 26, 2023
b6a1e4b
deploy new contract
LidamaoHub Nov 26, 2023
64a0887
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 26, 2023
eb36e8b
fix: fix bug
TiyoSheng Nov 26, 2023
9f496f1
feat: user info
Vivomo Nov 26, 2023
4e680af
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Nov 26, 2023
8d268d0
feat: hide loot
Vivomo Nov 26, 2023
c7e51ee
fix: fix bug
TiyoSheng Nov 26, 2023
c6dbe87
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 26, 2023
b3c1826
fix: fix bug
TiyoSheng Nov 26, 2023
234fb89
fix: fix bug
TiyoSheng Nov 26, 2023
4e8d75f
update text
TiyoSheng Nov 27, 2023
1a3c70c
fix: fix bug
TiyoSheng Nov 27, 2023
df43d43
fix: fix bug
TiyoSheng Nov 27, 2023
d746326
fix: fix bug
TiyoSheng Nov 27, 2023
6cb416e
fix: fix bug
TiyoSheng Nov 27, 2023
b18ac6a
update init user funciton
LidamaoHub Nov 27, 2023
403fe30
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 27, 2023
fa8141c
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 27, 2023
be094c0
add talk
TiyoSheng Nov 28, 2023
95c9559
add talk step
TiyoSheng Nov 28, 2023
ceba16a
image compression
TiyoSheng Nov 28, 2023
a5d0be9
update: getCollectionsFun
TiyoSheng Nov 28, 2023
e14697a
feat: add attack effect
Vivomo Nov 29, 2023
7c6f5cd
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Nov 29, 2023
d9a6ab9
update: waiting percentage
TiyoSheng Nov 29, 2023
6661406
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 29, 2023
57ef5ae
rebuild contract
LidamaoHub Nov 30, 2023
f7f0cd9
Update readme.md
echooooz Dec 1, 2023
6a1227c
Update readme.md
echooooz Dec 1, 2023
e3838cb
Update readme.md
Vivomo Dec 1, 2023
f311bb0
update: 合并战斗动画 & fix bug
TiyoSheng Dec 1, 2023
f8165db
reset code
TiyoSheng Dec 1, 2023
ec1329f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 1, 2023
4a6c77d
feat: add reset state
Vivomo Dec 1, 2023
7be974a
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 1, 2023
988550b
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 1, 2023
d0e403d
fix: fix bug
TiyoSheng Dec 1, 2023
6fef9c9
update: add resetUser
TiyoSheng Dec 1, 2023
bb57a85
talk add skip
TiyoSheng Dec 1, 2023
7a1c8ed
fix: fix bug
TiyoSheng Dec 1, 2023
acdc563
fix: fix bug
TiyoSheng Dec 3, 2023
833c434
redeploy
LidamaoHub Dec 4, 2023
2580f9d
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 4, 2023
66659a3
fix: fix bug
TiyoSheng Dec 4, 2023
796b57e
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 4, 2023
3e7cf9a
fix: fix bug
TiyoSheng Dec 4, 2023
7e73b56
fix: fix bug
TiyoSheng Dec 4, 2023
46b81a2
fix: fix bug
TiyoSheng Dec 4, 2023
9d6a805
feat: add default equip
Vivomo Dec 5, 2023
f84590f
fix: conflict
Vivomo Dec 5, 2023
6a952e1
feat: add default equip
Vivomo Dec 5, 2023
846fdd7
fix: player move bug
Vivomo Dec 5, 2023
ae3dd53
rebuild
LidamaoHub Dec 6, 2023
c4a7ac3
Upgrade MUD
TiyoSheng Dec 6, 2023
2edc6f1
Upgrade MUD
TiyoSheng Dec 6, 2023
8cbd68e
add indexer
TiyoSheng Dec 6, 2023
a4add8a
rebuild
TiyoSheng Dec 7, 2023
17c965a
update:new workflow
LidamaoHub Dec 7, 2023
9e5adc7
add commit
TiyoSheng Dec 7, 2023
72b1486
add callback
TiyoSheng Dec 7, 2023
131f17c
add open DevTools
TiyoSheng Dec 7, 2023
d739956
fix: fix bug
TiyoSheng Dec 7, 2023
5a949f2
rebuild
TiyoSheng Dec 7, 2023
6a76aab
edit github action
TiyoSheng Dec 7, 2023
ed6bc00
fix: fix bug
TiyoSheng Dec 7, 2023
46cc405
fix: fix bug
TiyoSheng Dec 7, 2023
23ce1dc
fix: fix bug
TiyoSheng Dec 7, 2023
30f4e3e
new contract
LidamaoHub Dec 7, 2023
d027db2
fix: fix bug
TiyoSheng Dec 7, 2023
c8b019b
rebuild
TiyoSheng Dec 8, 2023
9da0ae2
fix: fix bug
TiyoSheng Dec 8, 2023
e71d41b
feat: official code move
Vivomo Dec 8, 2023
2611c68
fix: conflicts
Vivomo Dec 8, 2023
dec9f30
feat: default equips add load check
Vivomo Dec 8, 2023
ff986d6
feat: remove global contextmenu event
Vivomo Dec 8, 2023
e554ef9
feat: update font & img style
Vivomo Dec 8, 2023
727ba29
fix player move bug & add default equip
TiyoSheng Dec 9, 2023
bf77fea
update page name
TiyoSheng Dec 9, 2023
8b44843
fix player move bug
TiyoSheng Dec 9, 2023
77b7c19
default off mud dev tools
TiyoSheng Dec 9, 2023
4bfd081
feat: add back by
Vivomo Dec 9, 2023
1adc66a
feat: default equip style
Vivomo Dec 9, 2023
1cb74a2
feat: add video demo
Vivomo Dec 9, 2023
fe96402
reset
TiyoSheng Dec 10, 2023
51f6ff2
merge mud-v2
TiyoSheng Dec 10, 2023
e869041
update workflow
LidamaoHub Dec 10, 2023
f14f36c
reset lockfile
LidamaoHub Dec 10, 2023
3cd85f4
update contract
LidamaoHub Dec 10, 2023
a61a278
feat: update ignore
Vivomo Dec 10, 2023
ebbf657
fix: roll back
Vivomo Dec 10, 2023
b2c7ca6
feat: contracts update
Vivomo Dec 10, 2023
e841cb4
feat: remove log
Vivomo Dec 10, 2023
4ee0273
fix: player's display bug
Vivomo Dec 10, 2023
7bb33e8
fix: player's move bug: if the preview path's last coordinate is deli…
Vivomo Dec 10, 2023
b6bc678
fix: clean code
Vivomo Dec 11, 2023
e75fd7f
fix: move animate bug
Vivomo Dec 11, 2023
c527517
feat: ffa page
Vivomo Dec 11, 2023
1081b38
add delay
TiyoSheng Dec 11, 2023
aa03a57
fix: clean code
Vivomo Dec 11, 2023
bcdc49d
add 17001 address
TiyoSheng Dec 11, 2023
a8ddb1f
add location detection of user to submit gem,redeploy contract
LidamaoHub Dec 11, 2023
130f5db
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 11, 2023
d57a2db
feat: update home page's style && clean code
Vivomo Dec 11, 2023
83e7216
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 11, 2023
f19a0c1
feat: update text
Vivomo Dec 11, 2023
3e85363
feat: add point
Vivomo Dec 11, 2023
8833ca6
conflicts
TiyoSheng Dec 12, 2023
97faf26
deployed arbitrum version
LidamaoHub Dec 12, 2023
81f9702
feat: ffa html
Vivomo Dec 12, 2023
b8671d8
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 12, 2023
388d292
update submitGem
TiyoSheng Dec 13, 2023
36dc0ba
conflicts
TiyoSheng Dec 13, 2023
f72dbe7
feat: update home page style
Vivomo Dec 14, 2023
fa00cce
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 14, 2023
5cf05e8
feat: update home page style
Vivomo Dec 14, 2023
bdfab77
feat: update home page style
Vivomo Dec 14, 2023
60ac60e
add arb
TiyoSheng Dec 14, 2023
9535cc4
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 14, 2023
d918bf6
update contract
LidamaoHub Dec 14, 2023
7ded1b9
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 14, 2023
b61ce66
arb
LidamaoHub Dec 14, 2023
9e6446a
add arb indexerUrl
TiyoSheng Dec 14, 2023
7508696
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 14, 2023
8cf1e87
add web3mq
TiyoSheng Dec 15, 2023
288705b
fix: PlayersData undefined
TiyoSheng Dec 15, 2023
095a39c
add box.svg
TiyoSheng Dec 15, 2023
09c7c21
feat: player msg
Vivomo Dec 15, 2023
693c520
update web3mq
TiyoSheng Dec 15, 2023
c3860d2
send & show message
TiyoSheng Dec 15, 2023
104b876
update style
TiyoSheng Dec 15, 2023
1bc9673
meme use pprite
TiyoSheng Dec 16, 2023
d1eb0e3
meme use sprite
TiyoSheng Dec 16, 2023
f7063da
meme use sprite
TiyoSheng Dec 16, 2023
7143461
del some console
TiyoSheng Dec 16, 2023
e4dfeb3
feat: add mini map
Vivomo Dec 17, 2023
e981270
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 17, 2023
7fb2273
deploy new contract
LidamaoHub Dec 18, 2023
d7c33c0
fix: the move performance issues
Vivomo Dec 18, 2023
01727ae
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Dec 18, 2023
ca0d329
fix: the move performance issues
Vivomo Dec 18, 2023
21576f8
feat: mock data
Vivomo Dec 20, 2023
ecaecae
feat: ffa static style
Vivomo Dec 20, 2023
c0f07f7
deploy new conrtact
LidamaoHub Dec 26, 2023
73987d1
redeploy
LidamaoHub Jan 1, 2024
5cda0df
redeploy
LidamaoHub Jan 8, 2024
91180ee
redeploy
LidamaoHub Jan 13, 2024
12b20ab
fix
TiyoSheng Jan 14, 2024
f8bd8fb
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Jan 14, 2024
6de1a75
feat: home
TiyoSheng Jan 14, 2024
9a76a15
update animation
TiyoSheng Jan 14, 2024
9838777
deploy redstone
LidamaoHub Jan 15, 2024
2aca033
change redstone rpc
LidamaoHub Jan 17, 2024
1227a41
update
LidamaoHub Jan 17, 2024
4b6471a
redeploy
LidamaoHub Jan 21, 2024
b32623d
redeploy
LidamaoHub Jan 21, 2024
8d4aae3
fix: performance optimization
Vivomo Jan 21, 2024
89b6178
fix: performance optimization
Vivomo Jan 21, 2024
0ed6613
fix: performance optimization
Vivomo Jan 21, 2024
ff28b56
deploy
LidamaoHub Jan 25, 2024
5350061
fix: player's equip bug fixed
Vivomo Jan 25, 2024
a8374ea
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Jan 25, 2024
48fa8f8
fix: style
TiyoSheng Jan 25, 2024
585bf82
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Jan 25, 2024
c869c7a
fix: style
TiyoSheng Jan 25, 2024
b5d225d
feat: fight points
Vivomo Jan 26, 2024
e042915
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Jan 26, 2024
5feb8ab
Update worlds.json
LidamaoHub Feb 7, 2024
775f9e8
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Feb 7, 2024
84cedee
fix some bugs
LidamaoHub Feb 13, 2024
fb43fbd
add opbnb
LidamaoHub Feb 19, 2024
588157d
add opbnb
TiyoSheng Feb 19, 2024
f874231
update analytics
LidamaoHub Feb 27, 2024
e8e1e3e
Optimized code for better performance and maintainability
TiyoSheng Apr 10, 2024
122a2fe
fix bug
TiyoSheng Apr 12, 2024
dcca29a
del indexer
TiyoSheng Jun 27, 2024
0202464
update:
LidamaoHub Aug 7, 2024
56588bb
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Aug 7, 2024
294b2a0
deploy arb
LidamaoHub Aug 7, 2024
bc8db3f
Updat
LidamaoHub Aug 8, 2024
65e2390
Update mud version
TiyoSheng Aug 9, 2024
4deadbb
Update:add for upgrade
LidamaoHub Aug 9, 2024
a13696f
fix: bug
TiyoSheng Aug 9, 2024
db9ea86
deployed
LidamaoHub Aug 9, 2024
2fc0fc3
update network
TiyoSheng Aug 9, 2024
abd1144
add readme
TiyoSheng Aug 9, 2024
7c11fdd
fix bug
TiyoSheng Aug 9, 2024
05cf7d1
update rpcurl
TiyoSheng Aug 9, 2024
460fc6e
fix bug
TiyoSheng Aug 9, 2024
80a473a
fix bug
TiyoSheng Aug 9, 2024
6a1d468
fix bug
TiyoSheng Aug 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# suppress diffs for generated files
**/pnpm-lock.yaml linguist-generated=true
**/codegen/**/*.sol linguist-generated=true
71 changes: 71 additions & 0 deletions .github/workflows/cf-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: cf_auto_deploy

on:
push:
branches:
- feat-mvp # 指定触发此 action 的分支

env:
FOUNDRY_PROFILE: ci
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

permissions:
pull-requests: write
deployments: write
contents: write

jobs:
build:
strategy:
fail-fast: true
name: MUD project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install pnpm
run: npm install -g pnpm

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly


- name: Install dependencies
# run: pnpm install --loglevel verbose --no-frozen-lockfile
run: pnpm install

# - name: deploy on lattice testnet
# run: cd packages/contracts; pnpm run deploy:testnet

- name: build clinet
run: pnpm build


- name: Cloudflare Pages GitHub Action
# You may pin to the exact commit or the version.
# uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca
uses: cloudflare/[email protected]
with:
# Cloudflare API Token
apiToken: ${{ secrets.cfApiToken }}
# Cloudflare Account ID
accountId: ${{ secrets.cfAccountId }}
# The name of the Pages project to upload to
projectName: mississippi
# The directory of static assets to upload
directory: ./packages/client/dist
# The name of the branch you want to deploy to
branch: main
# The working directory in which to run Wrangler



70 changes: 70 additions & 0 deletions .github/workflows/mud-v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: cf_auto_deploy_mud-v2

on:
push:
branches:
- mud-v2 # 指定触发此 action 的分支

env:
FOUNDRY_PROFILE: ci
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}

permissions:
pull-requests: write
deployments: write
contents: write

jobs:
build:
strategy:
fail-fast: true
name: MUD project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: 18

- name: Install pnpm
run: npm install -g pnpm

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly


- name: Install dependencies
run: pnpm install --loglevel verbose --no-frozen-lockfile

# - name: deploy on lattice testnet
# run: cd packages/contracts; pnpm run deploy:testnet

- name: build clinet
run: pnpm build


- name: Cloudflare Pages GitHub Action
# You may pin to the exact commit or the version.
# uses: cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca
uses: cloudflare/[email protected]
with:
# Cloudflare API Token
apiToken: ${{ secrets.cfApiToken }}
# Cloudflare Account ID
accountId: ${{ secrets.cfAccountId }}
# The name of the Pages project to upload to
projectName: mississippi-mud-v2
# The directory of static assets to upload
directory: ./packages/client/dist
# The name of the branch you want to deploy to
branch: main
# The working directory in which to run Wrangler



24 changes: 23 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,23 @@
node_modules
node_modules
.env
packages/contracts/src/codegen/
packages/contracts/worlds.json
.DS_Store
# worlds.json
packages/contracts/deploys/**/*.json
packages/contracts/cache/*
packages/contracts/out/*
packages/contracts/node_modules/*
packages/contracts/broadcast/*
packages/contracts/types/*
*.meta
# /pnpm-lock.yaml

# out for loot and user
!packages/contracts/out/Loot.sol/
!packages/contracts/out/User.sol/
!packages/contracts/out/Plugin.sol/
!packages/contracts/out/IWorld.sol/

packages/client/dist/*
.idea/*
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"recommendations": ["JuanBlanco.solidity"]
"recommendations": ["NomicFoundation.hardhat-solidity", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"solidity.monoRepoSupport": true
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2023 lewis
Copyright (c) 2024 Tiyo <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 10 additions & 0 deletions mprocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
procs:
client:
cwd: packages/client
shell: pnpm run dev
contracts:
cwd: packages/contracts
shell: pnpm mud dev-contracts --rpc http://127.0.0.1:8545
anvil:
cwd: packages/contracts
shell: anvil --base-fee 0 --block-time 2
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "mud-template-vanilla",
"name": "mud-template-react",
"private": true,
"scripts": {
"build": "pnpm recursive run build",
"dev": "concurrently -n contracts,client -c cyan,magenta \"cd packages/contracts && pnpm run dev\" \"cd packages/client && pnpm run dev\"",
"dev": "mprocs",
"dev:client": "pnpm --filter 'client' run dev",
"dev:contracts": "pnpm --filter 'contracts' dev",
"foundry:up": "curl -L https://foundry.paradigm.xyz | bash && bash $HOME/.foundry/bin/foundryup",
Expand All @@ -12,16 +12,18 @@
"test": "pnpm recursive run test"
},
"devDependencies": {
"@latticexyz/cli": "2.0.0-next.4",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"concurrently": "^8.0.1",
"eslint": "8.29.0",
"@latticexyz/cli": "2.1.0",
"@latticexyz/common": "2.1.0",
"@types/debug": "4.1.7",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"eslint": "8.57.0",
"mprocs": "^0.6.4",
"rimraf": "^3.0.2",
"typescript": "5.1.6"
"typescript": "5.4.2"
},
"engines": {
"node": "18.x",
"pnpm": "8.x"
"node": "^18",
"pnpm": "^8 || ^9"
}
}
4 changes: 3 additions & 1 deletion packages/client/.env
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
VITE_CHAIN_ID=31337
VITE_CHAIN_ID=421614
VITE_TEST_CHAIN_ID=421614
VITE_IS_OPEN=true
8 changes: 8 additions & 0 deletions packages/client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["../../.eslintrc", "plugin:react/recommended", "plugin:react-hooks/recommended"],
"plugins": ["react", "react-hooks"],
"rules": {
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps": "off"
}
}
3 changes: 0 additions & 3 deletions packages/client/.gitignore

This file was deleted.

8 changes: 4 additions & 4 deletions packages/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>a minimal MUD client</title>
<script async src="https://analytics.0xmssp.xyz/script.js" data-website-id="0ee830ed-1d74-4900-b1c4-1fdf23aaabb6"></script>
<title>MISSISSIPI</title>
</head>
<body>
<script type="module" src="/src/index.ts"></script>
<div>Counter: <span id="counter">0</span></div>
<button onclick="window.increment()">Increment</button>
<div id="react-root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
39 changes: 29 additions & 10 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,40 @@
"test": "tsc --noEmit"
},
"dependencies": {
"@ethersproject/providers": "^5.7.2",
"@latticexyz/common": "2.0.0-next.4",
"@latticexyz/dev-tools": "2.0.0-next.4",
"@latticexyz/recs": "2.0.0-next.4",
"@latticexyz/schema-type": "2.0.0-next.4",
"@latticexyz/services": "2.0.0-next.4",
"@latticexyz/store-sync": "2.0.0-next.4",
"@latticexyz/utils": "2.0.0-next.4",
"@latticexyz/world": "2.0.0-next.4",
"@latticexyz/common": "2.1.0",
"@latticexyz/dev-tools": "2.1.0",
"@latticexyz/react": "2.1.0",
"@latticexyz/schema-type": "2.1.0",
"@latticexyz/store-sync": "2.1.0",
"@latticexyz/utils": "2.1.0",
"@latticexyz/world": "2.1.0",
"@pixi/react": "^7.1.1",
"@types/node": "^18.15.11",
"@vitejs/plugin-react": "^4.1.1",
"@web3mq/client": "1.0.26-beta.1",
"antd": "^5.12.1",
"buffer": "^6.0.3",
"contracts": "workspace:*",
"dayjs": "^1.11.10",
"ethers": "^5.7.2",
"merkletreejs": "^0.3.11",
"path": "^0.12.7",
"pixi.js": "^7.3.2",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.20.1",
"rxjs": "7.5.5",
"viem": "1.6.0"
"sass": "^1.69.5",
"swiper": "^11.0.5",
"viem": "2.9.20"
},
"devDependencies": {
"@types/react": "18.2.22",
"@types/react-dom": "18.2.7",
"@vitejs/plugin-react": "^3.1.0",
"eslint-plugin-react": "7.31.11",
"eslint-plugin-react-hooks": "4.6.0",
"vite": "^4.2.1",
"wait-port": "^1.0.4"
}
Expand Down
Binary file added packages/client/public/assets/img/chest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/img/delivery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/img/discord.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/img/fight/xs1.png
Binary file added packages/client/public/assets/img/fight/xs2.png
Binary file added packages/client/public/assets/img/fight/xs3.png
Binary file added packages/client/public/assets/img/fight/xs4.png
Binary file added packages/client/public/assets/img/hunted.png
Binary file added packages/client/public/assets/img/loading_bg.png
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E1.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E10.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E11.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E12.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E13.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E14.svg
9 changes: 9 additions & 0 deletions packages/client/public/assets/img/meme/E15.svg
Loading
Loading