Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #2531

Merged
merged 1 commit into from
Apr 1, 2024
Merged

Version Packages #2531

merged 1 commit into from
Apr 1, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Mar 22, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

[email protected]

Patch Changes

  • a1101f7: Changed the controls in the threejs template from arrow keys to WASD and added text to explain what the app does.
  • 9e23976: Templates now run anvil in its own process (via mprocs) for better visibility into anvil logs.

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

Patch Changes

  • e86bd14: 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.

  • a09bf25: Added a viem client decorator for account 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.

    This is an internal feature and is not ready for stable consumption yet, so it's not yet exported. Its API may change.

    When using with a viem public client, system function selectors will be fetched from the world:

    walletClient.extend(
      callFrom({
        worldAddress,
        delegatorAddress,
        publicClient,
      }),
    );

    Alternatively, a worldFunctionToSystemFunction handler can be passed in that will translate between world function selectors and system function selectors for cases where you want to provide your own behavior or use data already cached in e.g. Zustand or RECS.

    walletClient.extend(
      callFrom({
        worldAddress,
        delegatorAddress,
        worldFunctionToSystemFunction: async (worldFunctionSelector) => {
          const systemFunction = useStore
            .getState()
            .getValue(tables.FunctionSelectors, { worldFunctionSelector })!;
          return {
            systemId: systemFunction.systemId,
            systemFunctionSelector: systemFunction.systemFunctionSelector,
          };
        },
      }),
    );

@latticexyz/[email protected]

Patch Changes

@latticexyz/[email protected]

@latticexyz/[email protected]

@latticexyz/[email protected]

@latticexyz/[email protected]

[email protected]

[email protected]

@latticexyz/[email protected]

[email protected]

@github-actions github-actions bot force-pushed the changeset-release/main branch from 4436a7e to deed7d4 Compare April 1, 2024 12:08
@holic holic merged commit 66865c5 into main Apr 1, 2024
1 check passed
@holic holic deleted the changeset-release/main branch April 1, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant