-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Storage name based slots and namespaces. #6064
Merged
Merged
Commits on Jun 17, 2024
-
Changes storage keys to use names instead of indices.
With this change storage keys will have a hash based on: `sha256("storage::<storage_field_name1>::<storage_field_name2>")` or a given key. A key can be provide by using the `in` keyword in a storage field as such: ``` storage { a in 0x02dac99c283f16bc91b74f6942db7f012699a2ad51272b15207b9cc14a70dbae: u64 } ``` StorageKey.field_id is now based on: `sha256("storage::<storage_field_name1>::<storage_field_name2>.<struct_field_name1>.<struct_field_name2>")` Nested storage field such as the following are not yet supported and will be added in a later pull request. ``` storage { a { b:u64 } } ```
Configuration menu - View commit details
-
Copy full SHA for 6dbc121 - Browse repository at this point
Copy the full SHA 6dbc121View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4f01f0b - Browse repository at this point
Copy the full SHA 4f01f0bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8218b84 - Browse repository at this point
Copy the full SHA 8218b84View commit details -
Configuration menu - View commit details
-
Copy full SHA for 97c6ff8 - Browse repository at this point
Copy the full SHA 97c6ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40b8e54 - Browse repository at this point
Copy the full SHA 40b8e54View commit details -
Configuration menu - View commit details
-
Copy full SHA for d58a368 - Browse repository at this point
Copy the full SHA d58a368View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e50096 - Browse repository at this point
Copy the full SHA 0e50096View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f2c1ef - Browse repository at this point
Copy the full SHA 9f2c1efView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9bc666 - Browse repository at this point
Copy the full SHA b9bc666View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1da52e3 - Browse repository at this point
Copy the full SHA 1da52e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for df6b5a6 - Browse repository at this point
Copy the full SHA df6b5a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 291421d - Browse repository at this point
Copy the full SHA 291421dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e87155e - Browse repository at this point
Copy the full SHA e87155eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 747d0c3 - Browse repository at this point
Copy the full SHA 747d0c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c54e428 - Browse repository at this point
Copy the full SHA c54e428View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5e041c - Browse repository at this point
Copy the full SHA a5e041cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ea2c48 - Browse repository at this point
Copy the full SHA 1ea2c48View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58732e9 - Browse repository at this point
Copy the full SHA 58732e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b134d4 - Browse repository at this point
Copy the full SHA 1b134d4View commit details
Commits on Jun 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a36179a - Browse repository at this point
Copy the full SHA a36179aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 20c0eca - Browse repository at this point
Copy the full SHA 20c0ecaView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.