For simplicity, let's imagine that I want to create a cryptocurrency on top of ethereum.
The contract that "handles" this cryptocurrency will have a mapping that will associate addresses to balances.
Now, let's imagine that this turns out as a very popular currency, used by millions of people around the world, making billions of transactions per year.
As more and more people starts "registering" to use this coin, the storage use of the contract grows indefinetly.
- How much of the storage needs to be loaded in memory in order to make the contract execute?
- Does the size of storage influence the amount of memory needed to execute it?
- Is all this data always stored in the chain data? Or some of it goes to the state data?
- How exactly an increasing contract storage also increases gas spending?