mud

MUD is a framework for building ambitious onchain applications

MIT License

Downloads
318.4K
Stars
643
Committers
80

Bot releases are visible (Hide)

mud - [email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 63e5d2d5: Added pnpm 9 to project's engines.
mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 4e4e9104: Removed the unused ejs dependency.
  • 4caca05e: Bumped zod dependency to comply with abitype peer dependencies.
  • Updated dependencies [a1b1ebf6]
  • Updated dependencies [4e4e9104]
  • Updated dependencies [4e4e9104]
  • Updated dependencies [51b137d3]
  • Updated dependencies [3dbf3bf3]
  • Updated dependencies [32c1cda6]
  • Updated dependencies [4caca05e]
  • Updated dependencies [27f888c7]
mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • a1b1ebf6: Worlds can now be deployed with external modules, defined by a module's artifactPath in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm.

     defineWorld({
       // …
       modules: [
         {
    -      name: "KeysWithValueModule",
    +      artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json",
           root: true,
           args: [resolveTableId("Inventory")],
         },
       ],
     });
    

    Note that the above assumes @latticexyz/world-modules is included as a dependency of your project.

  • 4e4e9104: Upgraded the ejs dependency to 3.1.10.

  • 3dbf3bf3: Updated World config types to use readonly arrays.

  • 32c1cda6: defineStore and defineWorld will now throw a type error if an unexpected config option is used.

  • 4caca05e: Bumped zod dependency to comply with abitype peer dependencies.

  • 27f888c7: defineStore and defineWorld now maps your enums to usable, strongly-typed enums on enumValues.

    const config = defineStore({
      enums: {
        TerrainType: ["Water", "Grass", "Sand"],
      },
    });
    
    config.enumValues.TerrainType.Water;
    //                              ^? (property) Water: 0
    
    config.enumValues.TerrainType.Grass;
    //                              ^? (property) Grass: 1
    

    This allows for easier referencing of enum values (i.e. uint8 equivalent) in contract calls.

    writeContract({
      // …
      functionName: "setTerrainType",
      args: [config.enumValues.TerrainType.Grass],
    });
    
  • Updated dependencies [4e4e9104]

  • Updated dependencies [51b137d3]

  • Updated dependencies [32c1cda6]

  • Updated dependencies [4caca05e]

  • Updated dependencies [27f888c7]

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 0d4e302f: Fixed the distance_from_follow_block gauge to be a positive number if the latest processed block is lagging behind the latest remote block.
  • 4caca05e: Bumped zod dependency to comply with abitype peer dependencies.
  • Updated dependencies [4e4e9104]
  • Updated dependencies [51b137d3]
  • Updated dependencies [36e1f766]
  • Updated dependencies [32c1cda6]
  • Updated dependencies [4caca05e]
  • Updated dependencies [27f888c7]
mud - [email protected]

Published by github-actions[bot] 5 months ago

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • 4e4e9104: Removed the unused ejs dependency.

  • 32c1cda6: defineStore and defineWorld will now throw a type error if an unexpected config option is used.

  • 4caca05e: Bumped zod dependency to comply with abitype peer dependencies.

  • 27f888c7: defineStore and defineWorld now maps your enums to usable, strongly-typed enums on enumValues.

    const config = defineStore({
      enums: {
        TerrainType: ["Water", "Grass", "Sand"],
      },
    });
    
    config.enumValues.TerrainType.Water;
    //                              ^? (property) Water: 0
    
    config.enumValues.TerrainType.Grass;
    //                              ^? (property) Grass: 1
    

    This allows for easier referencing of enum values (i.e. uint8 equivalent) in contract calls.

    writeContract({
      // …
      functionName: "setTerrainType",
      args: [config.enumValues.TerrainType.Grass],
    });
    
  • Updated dependencies [51b137d3]

  • Updated dependencies [4caca05e]

mud - [email protected]

Published by github-actions[bot] 5 months ago

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

  • Updated dependencies [4e4e9104]
  • Updated dependencies [32c1cda6]
  • Updated dependencies [4caca05e]
  • Updated dependencies [27f888c7]
mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago

Patch Changes

mud - @latticexyz/[email protected]

Published by github-actions[bot] 5 months ago