Repository logo
Repository
Browse
SLIIT Journals
OPAC
Log In
  1. Home
  2. Browse by Author

Browsing by Author "Weedagamaarachchi K.S"

Filter results by typing the first few letters
Now showing 1 - 1 of 1
  • Results Per Page
  • Sort Options
  • Thumbnail Image
    ItemEmbargo
    Optimizing Gas Efficiency in Ethereum Smart Contracts using Design Pattern Refinement and Complexity Reduction
    (Institute of Electrical and Electronics Engineers Inc., 2025-12-09) Weedagamaarachchi K.S; Vithanage H.D; Dehipola H.M.S.N; Manditha K.D.R; Jayasinghearachchi, V; Perera, J
    Smart contracts on the Ethereum blockchain enable automation and transparency in decentralized applications; however, their scalability is often constrained by high gas costs resulting from inefficient code design. This research investigates the relationship between cyclomatic code complexity and gas consumption, proposing a design pattern-based approach to optimize gas efficiency in Ethereum smart contracts. Three common Solidity patterns Factory, Registry, and State Machine were optimized using both existing and novel techniques, including variable packing, the use of fixed-size data types (uint256, bytes32), immutable variables, and mapping simplification. These optimizations were implemented and tested within a real-world coco peat supply chain management system to measure their impact on gas usage. Experimental results showed that deployment gas costs decreased by approximately 19% and runtime execution gas by around 14%, confirming that design-level optimization can significantly reduce costs without affecting functionality. The findings demonstrate that structured refinement of contract design can enhance scalability, making blockchain-based enterprise solutions more efficient and economically sustainable.

Copyright 2025 © SLIIT. All Rights Reserved.

  • Privacy policy
  • End User Agreement
  • Send Feedback