## 6 Conclusions  
This study explores the fundamental philosophy behind blockchain and smart contract technologies, setting the stage by delving into the concepts and technologies that paved the way for their development. It investigates their inherent limitations and advantages, particularly when compared with existing technological solutions, and identifies numerous potential applications of blockchain and smart contracts within the realm of supply chain management. These real-world use cases highlight the innovative potential of integrating smart contracts and leveraging blockchain technology to enhance business transactions, offering increased security, transparency, efficiency, and traceability. After examining foundational principles and technologies, a comprehensive literature analysis scrutinizes other implementations that target similar concepts or employ comparable technologies and methodologies. The review distinguishes the implementation of smart contracts in supply chain management presented in this study from the existing literature. It outlines the value proposition of the framework and the enhancements it brings, including enhanced data and monetary security, seamless proof of authenticity, reduced data management costs and efforts, thet elimination of single points of failure, expedited processes and transactions through automation and blockchain usage, protection against crypto-locker and ransomware attacks, and the promotion of trust among supply chain parties. Various technological stacks and frameworks that enable and empower smart contracts for supply chain management are discussed, weighing the trade-offs of different implementation approaches and methodologies and highlighting their respective advantages and disadvantages. The criteria for selecting tooling, frameworks, and architectural choices are explained. Subsequently, the proposed system architecture, its rulesets and restrictions, and the framework's process flow are detailed. Datasets, data structures, functions, contracts, and libraries employed in the implementation are presented, elucidating their application logic and source code. Comprehensive testing and validation are conducted following the explanation of the system's workflow through process flows and use cases. Testing covers edge cases and regular system flows, accompanied by expected cost assessments for operating the system on the Ethereum Main Network. While tests are initially performed on the local network, contract deployment to the test network is also executed. The framework proposal for supply chain management using smart contracts is then concluded. This paper sets itself apart from others in the field by adopting a unique approach to data management within smart contracts for supply chains. It exclusively stores all related data--encompassing participant and product information, product transit health, historical data, and financial records--directly on the Ethereum Virtual Machine (EVM). Unlike common practices that may offload data externally, use decentralized storage like IPFS, or combine on- and off-chain storage, this work opts for full on-chain storage. This choice leverages blockchain's data protection, uptime, and hacking prevention benefits, due to the elimination of oracles and third-party requests, and increases the total execution time, ensuring unmatched transparency and traceability at a higher cost. However, it suggests offsetting these costs through local or lower-fee Ethereum sibling networks. Additionally, the paper introduces a novel bidirectional flow in supply chain management, accommodating returns of faulty or unwanted goods. It incorporates comprehensive inventory management tools, allowing participants to track product histories and statuses from manufacture to delivery. Enhanced smart contract protocols are also implemented to prevent malicious activities, ensuring integrity and security within the network. This distinct methodology not only prioritizes transparency and security but also enhances supply chain functionality.