├── .gitattributes ├── AccessRestriction └── AccessRestriction.sol ├── ChecksEffectsInteraction └── ChecksEffectsInteractions.sol ├── EmergencyStop └── EmergencyStop.sol ├── EternalStorage ├── EternalStorage.sol └── StorageWrapperExample.sol ├── GuardCheck └── GuardCheck.sol ├── LICENSE ├── MemoryArrayBuilding ├── MemoryArrayBuilding.sol └── MemoryArrayBuildingGasExample.sol ├── Oracle └── oracle.sol ├── ProxyDelegate ├── ProxyDelegate.sol └── StorageOverwriteExample.sol ├── PullOverPush ├── BadPushExample.sol └── PullOverPush.sol ├── README.md ├── Randomness └── Randomness.sol ├── SecureEtherTransfer └── SecureEtherTransfer.sol ├── StateMachine └── StateMachine.sol ├── StringEqualityComparison ├── StringEqualityComparison.sol └── StringEqualityComparisonGasExample.sol ├── TightVariablePacking ├── TightVariablePacking.sol └── TightVariablePackingGasExample.sol └── docs ├── _config.yml ├── access_restriction.md ├── bibliography.md ├── checks_effects_interactions.md ├── emergency_stop.md ├── eternal_storage.md ├── guard_check.md ├── index.md ├── memory_array_building.md ├── oracle.md ├── proxy_delegate.md ├── pull_over_push.md ├── randomness.md ├── secure_ether_transfer.md ├── state_machine.md ├── string_equality_comparison.md └── tight_variable_packing.md /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sol linguist-language=Solidity 2 | -------------------------------------------------------------------------------- /AccessRestriction/AccessRestriction.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/AccessRestriction/AccessRestriction.sol -------------------------------------------------------------------------------- /ChecksEffectsInteraction/ChecksEffectsInteractions.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/ChecksEffectsInteraction/ChecksEffectsInteractions.sol -------------------------------------------------------------------------------- /EmergencyStop/EmergencyStop.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/EmergencyStop/EmergencyStop.sol -------------------------------------------------------------------------------- /EternalStorage/EternalStorage.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/EternalStorage/EternalStorage.sol -------------------------------------------------------------------------------- /EternalStorage/StorageWrapperExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/EternalStorage/StorageWrapperExample.sol -------------------------------------------------------------------------------- /GuardCheck/GuardCheck.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/GuardCheck/GuardCheck.sol -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/LICENSE -------------------------------------------------------------------------------- /MemoryArrayBuilding/MemoryArrayBuilding.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/MemoryArrayBuilding/MemoryArrayBuilding.sol -------------------------------------------------------------------------------- /MemoryArrayBuilding/MemoryArrayBuildingGasExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/MemoryArrayBuilding/MemoryArrayBuildingGasExample.sol -------------------------------------------------------------------------------- /Oracle/oracle.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/Oracle/oracle.sol -------------------------------------------------------------------------------- /ProxyDelegate/ProxyDelegate.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/ProxyDelegate/ProxyDelegate.sol -------------------------------------------------------------------------------- /ProxyDelegate/StorageOverwriteExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/ProxyDelegate/StorageOverwriteExample.sol -------------------------------------------------------------------------------- /PullOverPush/BadPushExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/PullOverPush/BadPushExample.sol -------------------------------------------------------------------------------- /PullOverPush/PullOverPush.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/PullOverPush/PullOverPush.sol -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/README.md -------------------------------------------------------------------------------- /Randomness/Randomness.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/Randomness/Randomness.sol -------------------------------------------------------------------------------- /SecureEtherTransfer/SecureEtherTransfer.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/SecureEtherTransfer/SecureEtherTransfer.sol -------------------------------------------------------------------------------- /StateMachine/StateMachine.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/StateMachine/StateMachine.sol -------------------------------------------------------------------------------- /StringEqualityComparison/StringEqualityComparison.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/StringEqualityComparison/StringEqualityComparison.sol -------------------------------------------------------------------------------- /StringEqualityComparison/StringEqualityComparisonGasExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/StringEqualityComparison/StringEqualityComparisonGasExample.sol -------------------------------------------------------------------------------- /TightVariablePacking/TightVariablePacking.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/TightVariablePacking/TightVariablePacking.sol -------------------------------------------------------------------------------- /TightVariablePacking/TightVariablePackingGasExample.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/TightVariablePacking/TightVariablePackingGasExample.sol -------------------------------------------------------------------------------- /docs/_config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/_config.yml -------------------------------------------------------------------------------- /docs/access_restriction.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/access_restriction.md -------------------------------------------------------------------------------- /docs/bibliography.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/bibliography.md -------------------------------------------------------------------------------- /docs/checks_effects_interactions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/checks_effects_interactions.md -------------------------------------------------------------------------------- /docs/emergency_stop.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/emergency_stop.md -------------------------------------------------------------------------------- /docs/eternal_storage.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/eternal_storage.md -------------------------------------------------------------------------------- /docs/guard_check.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/guard_check.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/memory_array_building.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/memory_array_building.md -------------------------------------------------------------------------------- /docs/oracle.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/oracle.md -------------------------------------------------------------------------------- /docs/proxy_delegate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/proxy_delegate.md -------------------------------------------------------------------------------- /docs/pull_over_push.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/pull_over_push.md -------------------------------------------------------------------------------- /docs/randomness.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/randomness.md -------------------------------------------------------------------------------- /docs/secure_ether_transfer.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/secure_ether_transfer.md -------------------------------------------------------------------------------- /docs/state_machine.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/state_machine.md -------------------------------------------------------------------------------- /docs/string_equality_comparison.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/string_equality_comparison.md -------------------------------------------------------------------------------- /docs/tight_variable_packing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosguru/Solidity_Patterns/HEAD/docs/tight_variable_packing.md --------------------------------------------------------------------------------