Highest possible storage diff for an operation
When running the /helpers/scripts/run_operation, could it be possible to return an additional property in the operation_result field that would represent the “highest possible” storage for the operation?
The new property would be different from the paid_storage_size_diff property by the following:
- It is only related to the current operation (i.e. if the operation makes a call to a smart contract, the calculated value should not be influenced by the all-time high of the size of the storage of the contract)
- It represents how much the operation can create storage taking into consideration only increase and not deletion (i.e. storage associated with adding a new entry in a big map is counted while deleting an entry is not)
To give some context, in Taquito we use the paid_storage_size_diff that is returned by the /helpers/scripts/run_operation to estimate what storage limit to use for an operation. However, this becomes unreliable when there are concurrent operations in the same block and leads to backtracked “storage quota exceeded” transactions. Having such property would be helpful to determine what storage limit to use.
Edited by Arvid Jakobsson