-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(world): combine name and namespace to resource selector in W…
…orld methods (#1208) Co-authored-by: Kevin Ingersoll <[email protected]> Co-authored-by: dk1a <[email protected]>
- Loading branch information
1 parent
5a6e164
commit c32a926
Showing
54 changed files
with
1,060 additions
and
5,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
"@latticexyz/cli": major | ||
"@latticexyz/world": major | ||
--- | ||
|
||
- All `World` function selectors that previously had `bytes16 namespace, bytes16 name` arguments now use `bytes32 resourceSelector` instead. | ||
This includes `setRecord`, `setField`, `pushToField`, `popFromField`, `updateInField`, `deleteRecord`, `call`, `grantAccess`, `revokeAccess`, `registerTable`, | ||
`registerStoreHook`, `registerSystemHook`, `registerFunctionSelector`, `registerSystem` and `registerRootFunctionSelector`. | ||
This change aligns the `World` function selectors with the `Store` function selectors, reduces clutter, reduces gas cost and reduces the `World`'s contract size. | ||
|
||
- The `World`'s `registerHook` function is removed. Use `registerStoreHook` or `registerSystemHook` instead. | ||
|
||
- The `deploy` script is updated to integrate the World interface changes |
Oops, something went wrong.