Optimizing Gas Efficiency in Ethereum Smart Contracts using Design Pattern Refinement and Complexity Reduction

dc.contributor.authorWeedagamaarachchi K.S
dc.contributor.authorVithanage H.D
dc.contributor.authorDehipola H.M.S.N
dc.contributor.authorManditha K.D.R
dc.contributor.authorJayasinghearachchi, V
dc.contributor.authorPerera, J
dc.date.accessioned2026-10-07T06:39:44Z
dc.date.issued2025-12-09
dc.description.abstractSmart 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.
dc.identifier.citationK. S. Weedagamaarachchi, H. D. Vithanage, H. M. S. N. Dehipola, K. D. R. Manditha, V. Jayasinghearachchi and J. Perera, "Optimizing Gas Efficiency in Ethereum Smart Contracts Using Design Pattern Refinement and Complexity Reduction," 2025 7th International Conference on Advancements in Computing (ICAC), Colombo, Sri Lanka, 2025, pp. 1-6, doi: 10.1109/ICAC69156.2025.11361528.
dc.identifier.doidoi: 10.1109/ICAC69156.2025.11361528
dc.identifier.isbn979-833156222-9
dc.identifier.urihttps://rda.sliit.lk/handle/123456789/5342
dc.language.isoen
dc.publisherInstitute of Electrical and Electronics Engineers Inc.
dc.relation.ispartofseriesICAC 2025 - 7th International Conference on Advancements in Computing: The Future of Computing; AI, Quantum, and Beyond
dc.subjectBlockchain
dc.subjectEthereum Smart Contracts
dc.subjectGas Fee Optimization
dc.subjectSolidity Design Patterns
dc.subjectSupply Chain Management
dc.titleOptimizing Gas Efficiency in Ethereum Smart Contracts using Design Pattern Refinement and Complexity Reduction
dc.typeConference Paper

Files

Original bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
Optimizing_Gas_Efficiency_in_Ethereum_Smart_Contracts_Using_Design_Pattern_Refinement_and_Complexity_Reduction.pdf
Size:
609.13 KB
Format:
Adobe Portable Document Format

License bundle

Now showing 1 - 1 of 1
No Thumbnail Available
Name:
license.txt
Size:
1.69 KB
Format:
Item-specific license agreed upon to submission
Description: