-
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: replace Schema with FieldLayout for contract internals #1336
Conversation
🦋 Changeset detectedLatest commit: 5e993cc The changes in this PR will be included in the next version bump. This PR includes changesets to release 28 packages
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 |
High level feedback on terminology: I think we should keep calling the array of schema types "schema", which is the thing that is used by off-chain consumers to know how to interpret the data, and we should find a new name for the "static byte lengths" object used internally by |
Technically no more schema types, just abi types (I wanna ditch the enum and replace it with
Agree, |
0a0f593
to
b6d01ca
Compare
Co-authored-by: Kevin Ingersoll <[email protected]>
@@ -459,211 +519,217 @@ | |||
"file": "test/StoreCoreDynamic.t.sol", | |||
"test": "testGetFieldSlice", | |||
"name": "get field slice (cold, 1 slot)", | |||
"gasUsed": 7990 | |||
"gasUsed": 8425 |
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.
do you think these increases in gas are a result of the previous measurements being invalid (because of #1267) or is using constants instead of hardcoded values somehow more expensive?
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.
dunno, I assume it's #1267, but could be the optimizer being bad too
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.
code looks good! good to be merged once merge conflicts are resolved
@@ -0,0 +1,1734 @@ | |||
/* Autogenerated file. Do not edit manually. */ | |||
/* tslint:disable */ | |||
/* eslint-disable */ |
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.
these files snuck back in 😭
fixes #1326
see the changeset for more context on this change