Add annotations to parameter of specialized multisig contract
Clarification and motivation
We have added the specialized multisig contract in [1], but right now, it lacks annotations for the parameter fields. It would be nice to have that, and also makes it consistent with other contracts in this repo. Some small enhancements could also be part of this
-
Move the common types for the multisig operations to a common module, and have both Generic/Specialized modules re-export them.
-
Change the name of non-default entry point of specialized multisig contract to
main
instead ofmainParameter
so that it will be consistent with generic multisig contract. -
In the
mkStorage
function in specialized multisig module, use newtypes as arguments, forthreshold
andkeys
, instead ofnatural
s.
[1] !251 (merged)
Acceptance criteria
-
Parameter of specialized multisig contract should have parameter annotations for fields like counter, action, targetAddress, threshold, keys etc.
-
Parameter entrypoints of generic and specialized contracts are consitent.
-
mkStorage function in specialized multisig module uses newtype arguments.