Giter Site home page Giter Site logo

solidity's Introduction

Solidity

Notes and simple code made while learning solidity

Moralis begginer stuff is based on https://www.youtube.com/channel/UCgWS9Q3P5AxCWyQLT2kQhBw/playlists

Zombie stuff based on learning guide @ https://cryptozombies.io/

Address:

Every account and smart contract has an address. It is used to send and receive Ether from one account to another. Basically your public identity on the blockchain

Mapping:

Data type used to store associations. Similar to a list but it holds 2 values, and allows to quickcly get the value corresponding to the key

Event:

When called, it causes the arguments to be stored in the transaction´s logs

Emit:

Keyword that is used to call events

Constructor:

Function that is runned directly when the contract is created, this functions runs only once

Msg:

Keyword that allows us to access some special variables that are available for us from the blockchain

Require:

Convenience function in solidity. It guarantees validity of conditions that cannot be detected before execution

Constant:

Keyword added to a variable that tells solidity it cannot be changed

Struct:

Struct types are used to represent a record. Allow to create our own data type

Enum:

Enums restrict variables to have one of the only few predefined values. The values in this enumerated list are called enums.

Arrays:

"Player[] public players;" creates and array called players of the struct Player.

Modifier:

Can be used to change the behaviour of functions in a declarative way, for example you can use a modifier to automatically check a condition prior to executing the function, it is also inheritable between contracts.

solidity's People

Contributors

exzh34 avatar

Watchers

 avatar  avatar

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.