-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
proposalSuggesting a change / new featureSuggesting a change / new feature
Description
It is not uncommon for program developers to sunset their instructions by first, logging a deprecation warning and then removing it completely by throwing an error when the archived instruction is recognised by the program.
It would be nice for Codama to keep track of that information via a status attribute or even a dedicated InstructionStatusNode. The instruction status could be things like:
liveif the instruction is accessible (the default state).deprecatedif the instruction is about to be archived.archivedif the instruction is no longer accessible. Note that this is better than simply removing the instruction from the Codama IDL as explorers would still need to parse old instruction for the program.
We could even imagine more advanced statuses like:
draftif the instruction is accessible but not fully implemented yet.unauditedif the instruction is accessible and fully implemented but no audit was performed for it yet.
Additionally, an optional statusMessage attribute could be useful for program maintainers to provide more information about the current status to their consumers.
Metadata
Metadata
Assignees
Labels
proposalSuggesting a change / new featureSuggesting a change / new feature