diff --git a/.changeset/cold-apes-play.md b/.changeset/cold-apes-play.md deleted file mode 100644 index b84a424b76d..00000000000 --- a/.changeset/cold-apes-play.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@latticexyz/cli": patch -"@latticexyz/world-modules": patch -"@latticexyz/world": patch ---- - -Added a new preview module, `Unstable_DelegationWithSignatureModule`, which allows registering delegations with a signature. - -Note: this module is marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. diff --git a/.changeset/cold-tools-admire.md b/.changeset/cold-tools-admire.md deleted file mode 100644 index e991ae8962d..00000000000 --- a/.changeset/cold-tools-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Changed the controls in the `threejs` template from arrow keys to WASD and added text to explain what the app does. diff --git a/.changeset/nervous-nails-notice.md b/.changeset/nervous-nails-notice.md deleted file mode 100644 index cab1c47d4b1..00000000000 --- a/.changeset/nervous-nails-notice.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@latticexyz/world": patch ---- - -This is an internal feature and is not ready for stable consumption yet. - -Added viem custom client actions for delegation. By extending viem clients with this function after delegation, the delegation is automatically applied to World contract writes. This means that these writes are made on behalf of the delegator. Internally, it transforms the write arguments to use `callFrom`. - -Usage example: - -```ts -walletClient.extend( - callFrom({ - worldAddress, - delegatorAddress, - publicClient, // Instead of using `publicClient`, you can pass a mapping function as shown below. This allows you to use your client store and avoid read requests. - // worldFunctionToSystemFunction: async (worldFunctionSelector) => { - // const systemFunction = useStore - // .getState() - // .getValue(tables.FunctionSelectors, { worldFunctionSelector })!; - // return { systemId: systemFunction.systemId, systemFunctionSelector: systemFunction.systemFunctionSelector }; - // }, - }), -); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index e16b29f0450..3d3fe2710fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 2.0.2 + +Release date: Thu Mar 28 2024 + +--- + ## Version 2.0.1 Release date: Thu Mar 21 2024 diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index e16b29f0450..3d3fe2710fc 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,3 +1,9 @@ +## Version 2.0.2 + +Release date: Thu Mar 28 2024 + +--- + ## Version 2.0.1 Release date: Thu Mar 21 2024 diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index 7b21ed62185..fcb62d53382 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index 26cd134251f..e6bc7816a93 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.1", + "version": "2.0.2", "description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.", "repository": { "type": "git", diff --git a/packages/block-logs-stream/CHANGELOG.md b/packages/block-logs-stream/CHANGELOG.md index 442b44aab9b..b6d4de0af52 100644 --- a/packages/block-logs-stream/CHANGELOG.md +++ b/packages/block-logs-stream/CHANGELOG.md @@ -1,5 +1,11 @@ # @latticexyz/block-logs-stream +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 517ddddc9e6..9e0583e6d13 100644 --- a/packages/block-logs-stream/package.json +++ b/packages/block-logs-stream/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/block-logs-stream", - "version": "2.0.1", + "version": "2.0.2", "description": "Create a stream of EVM block logs for events", "repository": { "type": "git", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 730770e1715..baaab27fe67 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,27 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: Added a new preview module, `Unstable_DelegationWithSignatureModule`, which allows registering delegations with a signature. + + Note: this module is marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world-modules@2.0.2 + - @latticexyz/world@2.0.2 + - @latticexyz/abi-ts@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/gas-report@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/services@2.0.2 + - @latticexyz/store@2.0.2 + - @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 5a143ff90cf..82888ff83e5 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.1", + "version": "2.0.2", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index aa12f98fb7d..f95b3747c12 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index 41a63025983..4df11444307 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.1", + "version": "2.0.2", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index fda6d61a159..3444c822f01 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index 3c11e917343..39509e0ff64 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.1", + "version": "2.0.2", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 1b43bf32284..c45f7238370 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- a1101f78: Changed the controls in the `threejs` template from arrow keys to WASD and added text to explain what the app does. + ## 2.0.1 ## 2.0.0 diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index 82709201442..12280b4b9d6 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.1", + "version": "2.0.2", "description": "Create a new MUD project", "license": "MIT", "author": "Lattice ", diff --git a/packages/dev-tools/CHANGELOG.md b/packages/dev-tools/CHANGELOG.md index 0d70d51fe99..02a118e4a06 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,20 @@ # @latticexyz/dev-tools +## 2.0.2 + +### Patch Changes + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/store-sync@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/react@2.0.2 + - @latticexyz/recs@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + - @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index 91575a60528..725ce7855aa 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.1", + "version": "2.0.2", "description": "MUD developer tools", "repository": { "type": "git", @@ -51,12 +51,12 @@ "vitest": "0.34.6" }, "peerDependencies": { - "@latticexyz/common": "2.0.1", - "@latticexyz/recs": "2.0.1", - "@latticexyz/store": "2.0.1", - "@latticexyz/store-sync": "2.0.1", - "@latticexyz/utils": "2.0.1", - "@latticexyz/world": "2.0.1" + "@latticexyz/common": "2.0.2", + "@latticexyz/recs": "2.0.2", + "@latticexyz/store": "2.0.2", + "@latticexyz/store-sync": "2.0.2", + "@latticexyz/utils": "2.0.2", + "@latticexyz/world": "2.0.2" }, "publishConfig": { "access": "public" diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index 25e933986cf..2208283a6ec 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,11 @@ # @latticexyz/faucet +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/faucet/package.json b/packages/faucet/package.json index b31c60f9991..4725154a74c 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.1", + "version": "2.0.2", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index 602a2147735..c5ecd14af35 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index fc969a08331..937931df8a7 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.1", + "version": "2.0.2", "description": "Gas reporter for specific lines within forge tests", "repository": { "type": "git", diff --git a/packages/protocol-parser/CHANGELOG.md b/packages/protocol-parser/CHANGELOG.md index 48f60dec10f..817a20a74cc 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,13 @@ # @latticexyz/protocol-parser +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index 96aa6ffb2ed..28fafa9cb37 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.1", + "version": "2.0.2", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index 8e241399657..e7201ac6541 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -1,5 +1,14 @@ # @latticexyz/query +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/schema-type@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/query/package.json b/packages/query/package.json index 6e182d476c0..3fddee6b087 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/query", - "version": "2.0.1", + "version": "2.0.2", "description": "Tools for interacting with the MUD query API", "repository": { "type": "git", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 60cbf17a812..c011b5116ac 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/recs@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index fd81d418845..9a720ccaa34 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.1", + "version": "2.0.2", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index 12177655cc7..a23bb27c419 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/schema-type@2.0.2 +- @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 8b13ddce655..7ffdeccae53 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/schema-type/CHANGELOG.md b/packages/schema-type/CHANGELOG.md index 5463853cf06..f73a201aa7a 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index d42d7e49580..48491c51e71 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.1", + "version": "2.0.2", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/services/CHANGELOG.md b/packages/services/CHANGELOG.md index 5c77b01c972..cd6cb2d723a 100644 --- a/packages/services/CHANGELOG.md +++ b/packages/services/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/services/package.json b/packages/services/package.json index 268d331c310..46462e94ed5 100644 --- a/packages/services/package.json +++ b/packages/services/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/services", - "version": "2.0.1", + "version": "2.0.2", "description": "MUD services for enhanced interactions with on-chain ECS state", "repository": { "type": "git", diff --git a/packages/solhint-config-mud/CHANGELOG.md b/packages/solhint-config-mud/CHANGELOG.md index 2b9c162e1ea..4ee9a7be517 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index e6466c810b3..c197d766d99 100644 --- a/packages/solhint-config-mud/package.json +++ b/packages/solhint-config-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-config-mud", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/solhint-plugin-mud/CHANGELOG.md b/packages/solhint-plugin-mud/CHANGELOG.md index 2b9c162e1ea..4ee9a7be517 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 5617b10c1c8..6a971091c2b 100644 --- a/packages/solhint-plugin-mud/package.json +++ b/packages/solhint-plugin-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-plugin-mud", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/store-indexer/CHANGELOG.md b/packages/store-indexer/CHANGELOG.md index 657c1643a2c..e5c61125020 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,15 @@ # @latticexyz/store-indexer +## 2.0.2 + +### Patch Changes + +- @latticexyz/store-sync@2.0.2 +- @latticexyz/block-logs-stream@2.0.2 +- @latticexyz/common@2.0.2 +- @latticexyz/protocol-parser@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index 17e553191e5..5ad9d15dd63 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.1", + "version": "2.0.2", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index 206e720e8d0..c7992434c70 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,21 @@ # @latticexyz/store-sync +## 2.0.2 + +### Patch Changes + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/block-logs-stream@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/query@2.0.2 + - @latticexyz/recs@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index 591ed9cd0e0..478660333c6 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.1", + "version": "2.0.2", "description": "Utilities to sync MUD Store events with a client or cache", "repository": { "type": "git", diff --git a/packages/store/CHANGELOG.md b/packages/store/CHANGELOG.md index 1cf743bedef..b6c365ef370 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/protocol-parser@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store/package.json b/packages/store/package.json index d648a5cfb60..19b9a76f97b 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.1", + "version": "2.0.2", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 8ac0cd2d3d8..5d6f7ef733a 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/utils/package.json b/packages/utils/package.json index c5ae3e92259..18dabb1db3c 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.1", + "version": "2.0.2", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/world-modules/CHANGELOG.md b/packages/world-modules/CHANGELOG.md index 6755cc54e10..0e63c2d34ef 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: Added a new preview module, `Unstable_DelegationWithSignatureModule`, which allows registering delegations with a signature. + + Note: this module is marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index b8e4869abf3..2b1fe0eab32 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.1", + "version": "2.0.2", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 591ebf40e85..a84f74266a4 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,41 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: Added a new preview module, `Unstable_DelegationWithSignatureModule`, which allows registering delegations with a signature. + + Note: this module is marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. + +- a09bf251: This is an internal feature and is not ready for stable consumption yet. + + Added viem custom client actions for delegation. By extending viem clients with this function after delegation, the delegation is automatically applied to World contract writes. This means that these writes are made on behalf of the delegator. Internally, it transforms the write arguments to use `callFrom`. + + Usage example: + + ```ts + walletClient.extend( + callFrom({ + worldAddress, + delegatorAddress, + publicClient, // Instead of using `publicClient`, you can pass a mapping function as shown below. This allows you to use your client store and avoid read requests. + // worldFunctionToSystemFunction: async (worldFunctionSelector) => { + // const systemFunction = useStore + // .getState() + // .getValue(tables.FunctionSelectors, { worldFunctionSelector })!; + // return { systemId: systemFunction.systemId, systemFunctionSelector: systemFunction.systemFunctionSelector }; + // }, + }), + ); + ``` + + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/world/package.json b/packages/world/package.json index 701c7340dfa..7b586e70e8b 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.1", + "version": "2.0.2", "description": "World framework", "repository": { "type": "git", diff --git a/test/mock-game-contracts/CHANGELOG.md b/test/mock-game-contracts/CHANGELOG.md index 3621818c08a..f0ff2f31cb8 100644 --- a/test/mock-game-contracts/CHANGELOG.md +++ b/test/mock-game-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # mock-game-contracts +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/test/mock-game-contracts/package.json b/test/mock-game-contracts/package.json index 3d3249a235d..572b05390e3 100644 --- a/test/mock-game-contracts/package.json +++ b/test/mock-game-contracts/package.json @@ -1,6 +1,6 @@ { "name": "mock-game-contracts", - "version": "2.0.1", + "version": "2.0.2", "private": true, "license": "MIT", "scripts": {