This article presents a modular architecture for writing smart contracts which enables developers to upgrade their contracts while also…