Alternative approaches for smart contract upgradeability
Abstract
Smart contracts upgradeability is a critical requirement for modern decentralized applications based on blockchain technology, but its implementation remains a technical challenge due to the immutable nature of smart contracts. The Proxy Pattern has become the most widely used solution for implementing upgradability into smart contracts, but it comes with some limitations such as implementation complexity and strict memory layout inheritance. This paper introduces an alternative approach based on dynamic routing with Router Contract, which enables modular upgradeability through centralized address management, offering greater flexibility at the cost of requiring external state persistence. Furthermore, a hybrid architecture is proposed, combining both Proxy Pattern and Router Contract approaches to achieve dual-layer upgradeability – supporting both state-preserving updates and full module replacements. The paper offers a comprehensive evaluation of upgradeability strategies and proposes a versatile solution for evolving smart contract systems.
Community
0 commentsNo discussion yet
Be the first to share a question or observation.