@latticexyz/gas-report
Advanced tools
Changelog
Version 2.2.3
Release date: Tue Sep 10 2024
feat(cli): deploy custom world (#3131) (@latticexyz/cli, @latticexyz/world)
MUD config now supports a deploy.customWorld
option that, when used with the CLI, will deploy the specified custom World implementation.
Custom implementations must still follow the World protocol.
If you want to extend the world with new functions or override existing registered functions, we recommend using root systems. However, there are rare cases where this may not be enough to modify the native/internal World behavior. Note that deploying a custom World opts out of the world factory, deterministic world deploys, and upgradeable implementation proxy.
import { defineWorld } from "@latticexyz/world";
export default defineWorld({
customWorld: {
// path to custom world source from project root
sourcePath: "src/CustomWorld.sol",
// custom world contract name
name: "CustomWorld",
},
});
fix(explorer): world address cli option as hex (#3155) (@latticexyz/explorer)
Fixed an issue with --worldAddress
CLI flag being incorrectly interpreted as a number rather a hex string. Additionally, added --hostname
option for specifying the hostname on which to start the application.
feat(cli): speed up dev deploy with temporary automine during deploy (#3130) (@latticexyz/cli)
Speed up deployment in development by temporarily enabling automine mode for the duration of the deployment.