/cheatsheet.sol

Solidity – Compilable Cheatsheet

Primary LanguageSolidityGNU General Public License v3.0GPL-3.0

This cheatsheet was once a GitHub Gist and was moved into its own repository to allow for contributions.


Compiles Lint

It compiles!

Play around with this cheatsheet in Remix!

Create a new file contracts/cheatsheet.sol within Remix's default_workspace and copy everything from cheatsheet.sol into it.

Contribute

Pull requests are very welcome, note though that I consider this my personal cheatsheet and I'll make the final decision on what goes in and whatnot (sorry!).

After checking out the repository make sure to install the dev-dependencies:

npm install

Before pushing changes make sure to check everything's in order:

npm run compiles && npm run lint

License

The cheatsheet was MIT licensed originally, but since it makes use of some example contracts from remix which are GPLv3 licensed, the license was changed so those files can be included here in order to check whether it compiles in the CI pipelines (GitHub Workflow Actions). See LICENSE file.