-
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.
feat(common,store): add support for user-defined types (#1566)
Co-authored-by: alvarius <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,478 additions
and
45 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,10 @@ | ||
--- | ||
"@latticexyz/store": major | ||
--- | ||
|
||
These breaking changes only affect store utilities, you aren't affected if you use `@latticexyz/cli` codegen scripts. | ||
|
||
- Add `remappings` argument to the `tablegen` codegen function, so that it can read user-provided files. | ||
- In `RenderTableOptions` change the type of `imports` from `RelativeImportDatum` to `ImportDatum`, to allow passing absolute imports to the table renderer. | ||
- Add `solidityUserTypes` argument to several functions that need to resolve user or abi types: `resolveAbiOrUserType`, `importForAbiOrUserType`, `getUserTypeInfo`. | ||
- Add `userTypes` config option to MUD config, which takes user types mapped to file paths from which to import them. |
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,7 @@ | ||
--- | ||
"@latticexyz/common": minor | ||
--- | ||
|
||
- Add `getRemappings` to get foundry remappings as an array of `[to, from]` tuples. | ||
- Add `extractUserTypes` solidity parser utility to extract user-defined types. | ||
- Add `loadAndExtractUserTypes` helper to load and parse a solidity file, extracting user-defined types. |
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.