Giter Site home page Giter Site logo

blockchain101's Introduction

Blockchain 101 @Facebook DevC

Slides: https://uri.im/ethppt

Speaker: Shubhamoy (GitHub)

Linting is essential when you are writing such code, as there was an instance of DAO Attack which caused a theft of millions. As the contracts are publically available, it is easy for attackers to find potential vulnerabilities.

Linting Output

daksh@Dakshs-MacBook-Air  ~/Desktop/blockchain101   master  npm i -g solium
/usr/local/bin/solium -> /usr/local/lib/node_modules/solium/bin/solium.js

> [email protected] install /usr/local/lib/node_modules/solium/node_modules/fsevents
> node install

[fsevents] Success: "/usr/local/lib/node_modules/solium/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
+ [email protected]
added 331 packages from 423 contributors in 14.673s
 daksh@Dakshs-MacBook-Air  ~/Desktop/blockchain101   master  solium --init
 daksh@Dakshs-MacBook-Air  ~/Desktop/blockchain101   master ●  solium --file contracts/SmartWallet.sol

contracts/SmartWallet.sol
  20:8     warning    Provide an error message for require().                             error-reason
  24:23    warning    Visibility modifier "public" should come before other modifiers.    visibility-first
  25:8     warning    Provide an error message for require().                             error-reason
  40:8     error      Avoid using Inline Assembly.                                        security/no-inline-assembly
  57:12    warning    Provide an error message for revert().                              error-reason

✖ 1 error, 4 warnings found.

 ✘ daksh@Dakshs-MacBook-Air  ~/Desktop/blockchain101   master ●  git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   README.md

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	.soliumignore
	.soliumrc.json

no changes added to commit (use "git add" and/or "git commit -a")

Useful links

Misc Learnings

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.