diff --git a/.changeset/shy-kangaroos-fry.md b/.changeset/shy-kangaroos-fry.md new file mode 100644 index 0000000000..458ee55e5e --- /dev/null +++ b/.changeset/shy-kangaroos-fry.md @@ -0,0 +1,5 @@ +--- +"create-mud": patch +--- + +Removed unnecessary build step in scripts and added deploy scripts for Redstone and Garnet chains. diff --git a/e2e/packages/contracts/foundry.toml b/e2e/packages/contracts/foundry.toml index e8a674b19f..6ecb883f45 100644 --- a/e2e/packages/contracts/foundry.toml +++ b/e2e/packages/contracts/foundry.toml @@ -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" diff --git a/examples/minimal/packages/contracts/foundry.toml b/examples/minimal/packages/contracts/foundry.toml index 3eb96af5e6..8e692ed668 100644 --- a/examples/minimal/packages/contracts/foundry.toml +++ b/examples/minimal/packages/contracts/foundry.toml @@ -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" diff --git a/examples/minimal/packages/contracts/package.json b/examples/minimal/packages/contracts/package.json index cb4a8c3286..d7c8d0ddc0 100644 --- a/examples/minimal/packages/contracts/package.json +++ b/examples/minimal/packages/contracts/package.json @@ -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", diff --git a/examples/multiple-accounts/packages/contracts/foundry.toml b/examples/multiple-accounts/packages/contracts/foundry.toml index 15424eb6d8..32a71c334d 100644 --- a/examples/multiple-accounts/packages/contracts/foundry.toml +++ b/examples/multiple-accounts/packages/contracts/foundry.toml @@ -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" diff --git a/examples/multiple-accounts/packages/contracts/package.json b/examples/multiple-accounts/packages/contracts/package.json index 71892b5417..cf95cdf8cb 100644 --- a/examples/multiple-accounts/packages/contracts/package.json +++ b/examples/multiple-accounts/packages/contracts/package.json @@ -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", diff --git a/templates/phaser/packages/contracts/package.json b/templates/phaser/packages/contracts/package.json index b2640d68cd..7841f81ed4 100644 --- a/templates/phaser/packages/contracts/package.json +++ b/templates/phaser/packages/contracts/package.json @@ -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", diff --git a/templates/react-ecs/packages/contracts/package.json b/templates/react-ecs/packages/contracts/package.json index b2640d68cd..7841f81ed4 100644 --- a/templates/react-ecs/packages/contracts/package.json +++ b/templates/react-ecs/packages/contracts/package.json @@ -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", diff --git a/templates/react/packages/contracts/package.json b/templates/react/packages/contracts/package.json index b2640d68cd..7841f81ed4 100644 --- a/templates/react/packages/contracts/package.json +++ b/templates/react/packages/contracts/package.json @@ -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", diff --git a/templates/threejs/packages/contracts/package.json b/templates/threejs/packages/contracts/package.json index f5c5dc1be2..c49a33d0a6 100644 --- a/templates/threejs/packages/contracts/package.json +++ b/templates/threejs/packages/contracts/package.json @@ -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", diff --git a/templates/vanilla/packages/contracts/package.json b/templates/vanilla/packages/contracts/package.json index b2640d68cd..7841f81ed4 100644 --- a/templates/vanilla/packages/contracts/package.json +++ b/templates/vanilla/packages/contracts/package.json @@ -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", diff --git a/test/mock-game-contracts/foundry.toml b/test/mock-game-contracts/foundry.toml index e8a674b19f..6ecb883f45 100644 --- a/test/mock-game-contracts/foundry.toml +++ b/test/mock-game-contracts/foundry.toml @@ -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"