This project demonstrates the use of multiple Solidity smart contracts for storing, retrieving, and managing data on the Ethereum blockchain. It includes a SimpleStorage contract, a StorageFactory to deploy and manage multiple storage instances, and an Additive contract to handle basic arithmetic operations.
A basic contract that allows users to store and retrieve a uint256 number.
store(uint256 _number): Stores a number.retrieve() view returns (uint256): Returns the currently stored number.
This contract allows deployment and management of multiple SimpleStorage contract instances.
createSimpleStorageContract(): Deploys a newSimpleStoragecontract and tracks it.sfStore(uint256 _index, uint256 _number): Stores a number in a specificSimpleStorageinstance by index.sfGet(uint256 _index) view returns (uint256): Retrieves a number from a specificSimpleStorageinstance by index.
A small utility contract that provides basic addition functionality.
add(uint256 a, uint256 b) pure returns (uint256): Returns the sum of two numbers.
This project is part of my personal Solidity learning portfolio, inspired by and developed while following the Cyfrin Updraft learning track.
Many thanks to the Cyfrin team for creating such valuable educational content.