Skip to content

Separate storage for script storage and parameter types

A L Manning requested to merge ash/seperate-storage-parameter-types into proto-proposal

This MR separates storage for scripts such that a script's code, parameter type, and storage type expressions are stored discretely.

The advantage of this separation is that the cost of accessing only a single component of a script should be lower, as there is less to deserialize.

An obvious application of this would be for storage access/views, which require typing a contract's storage before it can be read. Typing the storage is done by deserializing the entire script and parsing the storage type, whereas with this MR it would only be necessary to deserialize the storage type.

implements #139, tezos/tezos#303 (closed)

Old MR

Edited by Mehdi Bouaziz

Merge request reports