feat: replace Schema with FieldLayout for contract internals#1336
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 <kingersoll@gmail.com>
| "test": "testGetFieldSlice", | ||
| "name": "get field slice (cold, 1 slot)", | ||
| "gasUsed": 7990 | ||
| "gasUsed": 8425 |
There was a problem hiding this comment.
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.
dunno, I assume it's #1267, but could be the optimizer being bad too
alvrs
left a comment
There was a problem hiding this comment.
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 */ | |||
fixes #1326
see the changeset for more context on this change