MUD is a framework for building ambitious onchain applications
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] 5 months ago
engines
.Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
artifactPath
and removed unused @latticexyz/world-modules
dependency.
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
ejs
dependency.Published by github-actions[bot] 5 months ago
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]
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
encodeEntity
and decodeEntity
now use an LRU cache to avoid repeating work during iterations of thousands of entities.Published by github-actions[bot] 5 months ago
distance_from_follow_block
gauge to be a positive number if the latest processed block is lagging behind the latest remote block.Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
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]
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago
Published by github-actions[bot] 5 months ago