Skip to content

@latticexyz/[email protected]

Compare
Choose a tag to compare
@github-actions github-actions released this 10 Sep 18:30
· 167 commits to main since this release
3ca7fc5

Patch Changes

  • 8546452: 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",
      },
    });