Skip to content

Instantly share code, notes, and snippets.

View cgewecke's full-sized avatar
🐢

cgewecke cgewecke

🐢
View GitHub Profile
@gnidan
gnidan / allocation-storage.md
Last active April 2, 2025 20:08
solidity allocation examples

storing things with solidity for fun and confusion

uint64[] with 9 elements

storing [ 10, 11, 12, 13, 14, 15, 16, 17, 18 ]:

   ...
@chriseth
chriseth / async.md
Last active January 21, 2025 00:00
Async Solidity Contracts

Having seen @pirapira's sketch of Bamboo ( https://github.com/pirapira/bamboo/ ), which proposed to add better control about the "smart contract program flow", even across calls, I thought that this should certainly be added to Solidity, and actually, it might even be possible now to a certain degree using inline assembly.

The problem is that with many functions in a contract, it is not always clear which can be called at which stage in the contract's lifetime. Certain smart contracts would be easier to understand if written as follows: