Build smart contracts with library safeguards.
Recent revisions are kept. Restoring one creates a new revision.