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

[pallet-revive] immutable data storage #5861

Merged
merged 42 commits into from
Oct 5, 2024
Merged

[pallet-revive] immutable data storage #5861

merged 42 commits into from
Oct 5, 2024

Commits on Sep 25, 2024

  1. introduce contract immutables to stack

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    bfbd24c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0177976 View commit details
    Browse the repository at this point in the history
  3. setter

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    589097a View commit details
    Browse the repository at this point in the history
  4. test the immutable data access checks

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    eb8999e View commit details
    Browse the repository at this point in the history
  5. uapi

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    cec4e41 View commit details
    Browse the repository at this point in the history
  6. setter updates contract info

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9eb9820 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. terminate can prune the immutable data

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    1cdffd4 View commit details
    Browse the repository at this point in the history
  2. charge for immutable data in constructor and set_code_hash

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    a61a7b9 View commit details
    Browse the repository at this point in the history
  3. disable the set_code_hash API to fix it later

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    b9c348d View commit details
    Browse the repository at this point in the history
  4. add

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    0bb6f79 View commit details
    Browse the repository at this point in the history
  5. delegate call test

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    3c8a357 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    cee50df View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. bench

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    66618ff View commit details
    Browse the repository at this point in the history
  2. implement optimizations later

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    0290c55 View commit details
    Browse the repository at this point in the history
  3. storage limits

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    9f539e8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    86bc702 View commit details
    Browse the repository at this point in the history
  5. prdoc

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    f85b18b View commit details
    Browse the repository at this point in the history
  6. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    6f3aa5e View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    6ea3327 View commit details
    Browse the repository at this point in the history
  2. Update substrate/frame/revive/src/lib.rs

    Co-authored-by: Alexander Theißen <alex.theissen@me.com>
    xermicus and athei authored Oct 3, 2024
    Configuration menu
    Copy the full SHA
    f325b72 View commit details
    Browse the repository at this point in the history
  3. private field and comments

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    6fd2d01 View commit details
    Browse the repository at this point in the history
  4. only charge the storage item on instantiate

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    cafbc2f View commit details
    Browse the repository at this point in the history
  5. charge storage deposit for setting immutable data

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    068c4e1 View commit details
    Browse the repository at this point in the history
  6. precharge

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    cccf94c View commit details
    Browse the repository at this point in the history
  7. revert random fmt changes

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    d4fbe66 View commit details
    Browse the repository at this point in the history
  8. remove block

    Signed-off-by: xermicus <cyrill@parity.io>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    4a8c49b View commit details
    Browse the repository at this point in the history
  9. fix feature gate

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    1257615 View commit details
    Browse the repository at this point in the history
  10. add another assertion

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    a89761b View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. Configuration menu
    Copy the full SHA
    da46a70 View commit details
    Browse the repository at this point in the history
  2. do not charge the immutable item if it was not set

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    40a2e53 View commit details
    Browse the repository at this point in the history
  3. Update substrate/frame/revive/src/storage/meter.rs

    Co-authored-by: PG Herveou <pgherveou@gmail.com>
    xermicus and pgherveou authored Oct 4, 2024
    Configuration menu
    Copy the full SHA
    d374385 View commit details
    Browse the repository at this point in the history
  4. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    35b6e2a View commit details
    Browse the repository at this point in the history
  5. add test for error conditions

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    fe83697 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    294d380 View commit details
    Browse the repository at this point in the history
  7. fix docs

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    91a3eaa View commit details
    Browse the repository at this point in the history
  8. start benchmarks at length 1 since empty immutable data is not valid

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    19ab687 View commit details
    Browse the repository at this point in the history
  9. explain all error conditions for InvalidImmutableAccess

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    3122a77 View commit details
    Browse the repository at this point in the history
  10. rename immutable_bytes to immutable_data_len

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    2a4d34d View commit details
    Browse the repository at this point in the history
  11. ".git/.scripts/commands/fmt/fmt.sh"

    command-bot committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    085d5e1 View commit details
    Browse the repository at this point in the history
  12. ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…

    …=dev --target_dir=substrate --features=riscv --pallet=pallet_revive
    command-bot committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    15116a5 View commit details
    Browse the repository at this point in the history
  13. use instantiators everywhere

    Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
    xermicus committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    c95025d View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2024

  1. Configuration menu
    Copy the full SHA
    850b453 View commit details
    Browse the repository at this point in the history