Skip to content

Commit

Permalink
Upgrade mud
Browse files Browse the repository at this point in the history
  • Loading branch information
TiyoSheng committed Nov 5, 2023
1 parent bd00e95 commit f09b68b
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 26 deletions.
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
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"]
}
4 changes: 1 addition & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"solidity.monoRepoSupport": true
}
{}
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) 2023 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
7 changes: 7 additions & 0 deletions mprocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
procs:
contracts:
cwd: packages/contracts
shell: pnpm run dev
client:
cwd: packages/client
shell: pnpm run dev
8 changes: 4 additions & 4 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,11 +12,11 @@
"test": "pnpm recursive run test"
},
"devDependencies": {
"@latticexyz/cli": "2.0.0-next.4",
"@latticexyz/cli": "2.0.0-next.13",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.46.1",
"concurrently": "^8.0.1",
"eslint": "8.29.0",
"mprocs": "^0.6.4",
"rimraf": "^3.0.2",
"typescript": "5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/client/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const Home = () => {
let urls = await Promise.all([userContract.tokenURI(userTokenId), lootContract.tokenURI(lootTokenId)])
let url = urls[0]
let lootUrl = urls[1]

console.log(userTokenId, lootTokenId, urls, 'url')
url = atobUrl(url)
lootUrl = atobUrl(lootUrl)
setUserUrl(url.image)
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/worlds.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"blockNumber": 29407241
},
"31337": {
"address": "0x607c2d79E406a5DC2D1E01b6820dd5a72FbA58C7"
"address": "0xBEc49fA140aCaA83533fB00A2BB19bDdd0290f25"
},
"421613": {
"address": "0x2Bc1034975c3df48D6f3026802f372677844b85d",
Expand Down
15 changes: 0 additions & 15 deletions readme.md

This file was deleted.

0 comments on commit f09b68b

Please sign in to comment.