-
Notifications
You must be signed in to change notification settings - Fork 196
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
feat(protocol-parser): add abiTypesToSchema #1100
Conversation
alvrs
commented
Jul 3, 2023
- add util to sort a list of abi types into a Schema object (with staticFields and dynamicFields)
🦋 Changeset detectedLatest commit: 412864e The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
3492285
to
bb79f48
Compare
61c8bb7
to
9342865
Compare
import { DynamicAbiType, SchemaAbiType, StaticAbiType, isDynamicAbiType } from "@latticexyz/schema-type"; | ||
import { Schema } from "./common"; | ||
|
||
export function abiTypesToSchema(abiTypes: SchemaAbiType[]): Schema { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love that this is a hint towards order-preserving schemas (instead of restricted to static-then-dynamic) 👀
bb79f48
to
1ca9345
Compare
9342865
to
03b57ec
Compare
1ca9345
to
90a48c5
Compare
03b57ec
to
7682320
Compare
90a48c5
to
935011b
Compare
7682320
to
1719618
Compare
1719618
to
0269bf5
Compare
merging since nothing changed since last approval except adding a changeset |