Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@latticexyz/gas-report

Package Overview
Dependencies
Maintainers
4
Versions
1208
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@latticexyz/gas-report - npm Package Versions

1
121

2.2.15-main-9c1ca41560e2b3b319976794a73807f391e78b1b

Diff

alvarius
published 2.2.14 •

Changelog

Source

Version 2.2.14

Release date: Thu Oct 24 2024

Patch changes

fix(cli): support public library methods in modules (#3308) (@latticexyz/cli)

Added support for deploying public libraries used within modules.

fix(cli): support public library methods in modules (#3308) (@latticexyz/world-module-erc20, @latticexyz/world-modules)

Changed ERC20 and ERC721 related modules to use public library methods instead of manual delegatecalls.

feat(stash): add useStash and improve other helpers (#3320) (@latticexyz/stash)

Added useStash React hook. It's heavily inspired by Zustand's useStore and accepts a stash, a state selector, an an optional equality function to avoid unnecessary re-render cycles when returning unstable values.

Also updated getRecord and getRecords to each take either a stash or state object for more ergonomic use with useStash.

import { useStash } from "@latticexyz/stash/react";
import { getRecord } from "@latticexyz/stash";
import config from "../mud.config";

const tables = config.namespaces.app.tables;

export function PlayerName({ playerId }) {
  const record = useStash(stash, (state) => getRecord({ state, table: tables.Player, key: { playerId } }));
  ...
}
import isEqual from "fast-deep-equal";
import { useStash } from "@latticexyz/stash/react";
import { getRecords } from "@latticexyz/stash";
import config from "../mud.config";

export function PlayerNames() {
  const record = useStash(stash, (state) => getRecords({ state, table: tables.Player }), { isEqual });
  ...
}

alvarius
published 2.2.14-main-d0aea26daa4afea86986c7cc1f67241a3cdd2735 •

alvarius
published 2.2.14-entrykit-0033091d2b5b5121bd189a276f2e781140ccf2d0 •

alvarius
published 2.2.14-main-b015553b268abbd25858e100bc545d2fb3273808 •

alvarius
published 2.2.14-entrykit-bfd56feb1d7af37a54c62f1e4883633d6a35a308 •

alvarius
published 2.2.14-main-e3ec42bffd9088884a1d6b7e4ab442a9d0d9a54f •

alvarius
published 2.2.14-entrykit-bcef42396222d6ddf70695ff6587a6fab606ed10 •

alvarius
published 2.2.14-main-8eaad304db2fe9ae79f087ec7860928f734039d4 •

alvarius
published 2.2.13-entrykit-df8b6bc914f8e74462836dd2c5d79c60317af2b3 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc