Skip to content
Snippets Groups Projects
Unverified Commit eac2a22a authored by Sebastian Miasojed's avatar Sebastian Miasojed Committed by GitHub
Browse files

[pallet_contracts] Add support for transient storage in contracts host functions (#4566)


Introduce transient storage, which behaves identically to regular
storage but is kept only in memory and discarded after every
transaction. This functionality is similar to the `TSTORE` and `TLOAD`
operations used in Ethereum.

The following new host functions have been introduced:
`get_transient_storage`
`set_transient_storage`
`take_transient_storage`
`clear_transient_storage`
`contains_transient_storage`
Note: These functions are declared as `unstable` and thus are not
activated.

---------

Co-authored-by: command-bot <>
Co-authored-by: default avatarPG Herveou <pgherveou@gmail.com>
Co-authored-by: default avatarAlexander Theißen <alex.theissen@me.com>
parent cde2eb42
No related merge requests found
Pipeline #485146 waiting for manual action with stages
in 21 minutes and 59 seconds
Showing
with 2943 additions and 396 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment