Skip to content

Commit

Permalink
feat(create-mud): clean up template scripts, add garnet/redstone (#2839)
Browse files Browse the repository at this point in the history
Co-authored-by: Deepu <[email protected]>
  • Loading branch information
holic and blackbeard002 authored May 17, 2024
1 parent 2d9ec18 commit d752660
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-kangaroos-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-mud": patch
---

Removed unnecessary build step in scripts and added deploy scripts for Redstone and Garnet chains.
3 changes: 0 additions & 3 deletions e2e/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ extra_output_files = [
"evm.bytecode"
]
fs_permissions = [{ access = "read", path = "./"}]

[profile.lattice-testnet]
eth_rpc_url = "https://follower.testnet-chain.linfra.xyz"
3 changes: 0 additions & 3 deletions examples/minimal/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ extra_output_files = [
"evm.bytecode"
]
fs_permissions = [{ access = "read", path = "./"}]

[profile.lattice-testnet]
eth_rpc_url = "https://follower.testnet-chain.linfra.xyz"
7 changes: 3 additions & 4 deletions examples/minimal/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"faucet": "DEBUG=mud:faucet pnpm faucet-server",
"deploy:local": "mud deploy",
"dev": "mud dev-contracts",
"faucet": "DEBUG=mud:faucet faucet-server",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
3 changes: 0 additions & 3 deletions examples/multiple-accounts/packages/contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ extra_output_files = [
"evm.bytecode"
]
fs_permissions = [{ access = "read", path = "./"}]

[profile.lattice-testnet]
eth_rpc_url = "https://follower.testnet-chain.linfra.xyz"
5 changes: 2 additions & 3 deletions examples/multiple-accounts/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:local": "mud deploy",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
7 changes: 4 additions & 3 deletions templates/phaser/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:garnet": "mud deploy --profile=garnet",
"deploy:local": "mud deploy",
"deploy:redstone": "mud deploy --profile=redstone",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
7 changes: 4 additions & 3 deletions templates/react-ecs/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:garnet": "mud deploy --profile=garnet",
"deploy:local": "mud deploy",
"deploy:redstone": "mud deploy --profile=redstone",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
7 changes: 4 additions & 3 deletions templates/react/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:garnet": "mud deploy --profile=garnet",
"deploy:local": "mud deploy",
"deploy:redstone": "mud deploy --profile=redstone",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
7 changes: 4 additions & 3 deletions templates/threejs/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:garnet": "mud deploy --profile=garnet",
"deploy:local": "mud deploy",
"deploy:redstone": "mud deploy --profile=redstone",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
7 changes: 4 additions & 3 deletions templates/vanilla/packages/contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"scripts": {
"build": "mud build",
"clean": "forge clean && rimraf src/codegen",
"deploy:local": "pnpm run build && mud deploy",
"deploy:testnet": "pnpm run build && mud deploy --profile=lattice-testnet",
"dev": "pnpm mud dev-contracts",
"deploy:garnet": "mud deploy --profile=garnet",
"deploy:local": "mud deploy",
"deploy:redstone": "mud deploy --profile=redstone",
"dev": "mud dev-contracts",
"lint": "pnpm run prettier && pnpm run solhint",
"prettier": "prettier --write 'src/**/*.sol'",
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix",
Expand Down
3 changes: 0 additions & 3 deletions test/mock-game-contracts/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ extra_output_files = [
"evm.bytecode"
]
fs_permissions = [{ access = "read", path = "./"}]

[profile.lattice-testnet]
eth_rpc_url = "https://follower.testnet-chain.linfra.xyz"

0 comments on commit d752660

Please sign in to comment.