Skip to content

Commit

Permalink
Create dry-camels-accept.md
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Feb 7, 2025
1 parent 8aa5010 commit 243ad76
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .changeset/dry-camels-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@latticexyz/world": patch
---

Added system libraries for World systems for easier ergonomics when interacting with core systems.

```solidity
import { worldRegistrationSystem } from "@latticexyz/world/src/codegen/systems/WorldRegistrationSystemLib.sol";
// equivalent to `IBaseWorld(_world()).registerNamespace("hello")` but directly routed through `world.call` for better gas.
worldRegistrationSystem.registerNamespace("hello");
// and makes delegation use cases easier
worldRegistrationSystem.callFrom(_msgSender()).registerNamespace("hello");
```

0 comments on commit 243ad76

Please sign in to comment.