-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: hardcode key/value schema in table libraries (#2328)
Co-authored-by: yonada <[email protected]>
- Loading branch information
Showing
80 changed files
with
656 additions
and
1,908 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,16 @@ | ||
--- | ||
"create-mud": patch | ||
"@latticexyz/store": minor | ||
"@latticexyz/world": minor | ||
"@latticexyz/world-modules": minor | ||
--- | ||
|
||
Moved key schema and value schema methods to constants in code-generated table libraries for less bytecode and less gas in register/install methods. | ||
|
||
```diff | ||
-console.log(SomeTable.getKeySchema()); | ||
+console.log(SomeTable._keySchema); | ||
|
||
-console.log(SomeTable.getValueSchema()); | ||
+console.log(SomeTable._valueSchema); | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.