Skip to content
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 21 commits into from
Jun 18, 2024
Merged

Commits on Jun 17, 2024

  1. 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
        }
    }
    ```
    esdrubal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    6dbc121 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f01f0b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8218b84 View commit details
    Browse the repository at this point in the history
  4. Removes attribute namespace.

    esdrubal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    97c6ff8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    40b8e54 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d58a368 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0e50096 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9f2c1ef View commit details
    Browse the repository at this point in the history
  9. Fixes cargo clippy warnings.

    esdrubal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    b9bc666 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1da52e3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    df6b5a6 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    291421d View commit details
    Browse the repository at this point in the history
  13. Fixes cargo clippy.

    esdrubal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    e87155e View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    747d0c3 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c54e428 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    a5e041c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    1ea2c48 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    58732e9 View commit details
    Browse the repository at this point in the history
  19. Updates contract ids.

    esdrubal committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    1b134d4 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Fixes docs.

    esdrubal committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    a36179a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    20c0eca View commit details
    Browse the repository at this point in the history