Closed pasqu4le closed 3 years ago
@obstropolos can you please take a look at the "Some clarifications are needed" part? Currently we assume that constants to be moved into storage include only "atomic" constants, i. e. MaxProposals
, MaxVotes
, MaxQuorumThreshold
, MinQuorumThreshold
, MaxVotingPeriod
and MinVotingPeriod
. Is it correct or should we move lambdas to the storage as well? Note that in LIGO everything seems to be in the storage already (we will double-check it), while in Lorentz some pieces of code (lambdas) are inlined, as well as 6 aforementioned constants.
@gromakovsky yes, lambdas are included and need to be moved to storage.
Note: given that the Ligo version only will be updated from now on, we'l limit the changes to that.
Clarification and motivation
We should move all the constants that are currently in-lined in the
code
to thestorage
.Currently the LIGO version of the contract has very little of them (due to the
config
being part of the overall contractstorage
)., but there may be some. All the ones I can think of are theunfrozen_token_id
andfrozen_token_id
nat
values, but we should check carefully.Some clarifications are needed:
nat
/Natural
s of its configuration be moved tostorage
or the code in it be moved to storedlambda
s too?Acceptance criteria
Constants that are part of the
storage
and not in-lined into thecode
.