Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

@latticexyz/gas-report

Package Overview
Dependencies
46
Maintainers
3
Versions
898
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
35
90Next

2.0.12-type-resolutions-effc7ab1

Diff

alvarius
published 2.0.12-account-kit-27d878b7 •

alvarius
published 2.0.12-account-kit-10002da0 •

alvarius
published 2.0.12-main-9be2bb86 •

alvarius
published 2.0.12-main-d7526607 •

alvarius
published 2.0.11 •

Changelog

Source

Version 2.0.11

Release date: Wed May 15 2024

Patch changes

build: bump to node 18.20.2, pnpm 9.1.1 (#2831) (create-mud)

Added pnpm 9 to project's engines.

fix(cli): fixed module artifactPath imports (#2832) (@latticexyz/cli)

Fixed imports of module artifacts via artifactPath and removed unused @latticexyz/world-modules dependency.


alvarius
published 2.0.11-main-fe9d7263 •

alvarius
published 2.0.11-main-6f858726 •

alvarius
published 2.0.11-main-63e5d2d5 •

alvarius
published 2.0.10 •

Changelog

Source

Version 2.0.10

Release date: Tue May 14 2024

Patch changes

fix(cli): function selector lookup during deploy (#2800) (@latticexyz/cli)

The deploy CLI now uses logs to find registered function selectors and their corresponding function signatures. Previously only function signatures were fetched via logs and then mapped to function selectors via getRecord calls, but this approach failed for namespaced function selectors of non-root system, because the function signature table includes both the namespaced and non-namespaced signature but the function selector table only includes the namespaced selector that is registered on the world.

feat(cli): deploy with external modules (#2803) (@latticexyz/cli, @latticexyz/world)

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.

chore: upgrade to ejs 3.1.10 (#2786) (@latticexyz/world-modules, @latticexyz/store, @latticexyz/cli)

Removed the unused ejs dependency.

docs: fix create-mud package name in changeset (#2825) (create-mud)

Templates now use an app namespace by default, instead of the root namespace. This helps keep the root namespace clear for intentionally root-level things and avoids pitfalls with root systems calling other root systems.

chore: upgrade to ejs 3.1.10 (#2786) (@latticexyz/world)

Upgraded the ejs dependency to 3.1.10.

fix(store-indexer): fix distance from follow block metric (#2791) (@latticexyz/store-indexer)

Fixed the distance_from_follow_block gauge to be a positive number if the latest processed block is lagging behind the latest remote block.

fix(common): extend OP contracts, add redstone ones (#2792) (@latticexyz/common)

Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config.

chore: remove cli faucet command and services package (#2811) (@latticexyz/cli)

Removed broken mud faucet command.

fix(world): config uses readonly arrays (#2805) (@latticexyz/world)

Updated World config types to use readonly arrays.

docs(store-sync): add changeset for #2808 (#2809) (@latticexyz/store-sync)

Both encodeEntity and decodeEntity now use an LRU cache to avoid repeating work during iterations of thousands of entities.

fix(store,world): throw on unexpected config keys (#2797) (@latticexyz/store, @latticexyz/world)

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

chore: remove cli faucet command and services package (#2811) (create-mud)

Removed usages of old testnet faucet in templates. The previous testnet faucet is broken, deprecated, and going offline soon. We'll be replacing the burner account pattern with something better very soon!

chore: bump zod (#2804) (@latticexyz/cli, @latticexyz/config, @latticexyz/faucet, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world-modules, @latticexyz/world)

Bumped zod dependency to comply with abitype peer dependencies.

feat(store,world): usable enum values from config (#2807) (@latticexyz/store, @latticexyz/world)

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],
});

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc