DISCLAIMER: This is experimental code, aka joke or trolling code. It is not meant to be used for production or taken seriously at all.
@devtooligan supports creative experimentation on the blockchain as a path towards innovation.
A hyper-cursed ERC20 implementation where all of the logic lives inside the arguments of function calls to emit().
Authored by @danielvf, a Baphomet witch and master of curses. His original incantation here.
This pattern was used in ArtGobblers for "brevity". Note: This is not intended as a gas optimization!
Horsefacts and I started joking about it and taking it to the extreme. Months later it resurfaced with a tweet from Ross and I decided to put a 0.1 eth bounty out for an ERC20 implmentation with all logic in emit() that passes Solmate tests.
In case you're confused (and you should be), heres some Twitter threads:
- https://twitter.com/eth_call/status/1573734826422816768
- https://twitter.com/devtooligan/status/1573818445447106560
- https://twitter.com/clemlak/status/1622971215034957824
- https://twitter.com/danielvf/status/1622943096773218304
- https://twitter.com/devtooligan/status/1622768367596888064
- https://twitter.com/z0r0zzz/status/1622170338112188416