Coder Social home page Coder Social logo

kcpele / 100-days-of-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from envoy-vc/30-days-of-solidity

0.0 0.0 0.0 6.91 MB

100 Days of Solidity step-by-step guide to learn Smart Contract Development.

License: MIT License

Solidity 100.00%

100-days-of-solidity's Introduction

Solidity

Contents


🧑🧑🧑 HAPPY CODING 🧑🧑🧑

30 Days Of Solidity: Licences and Pragma

Twitter Follow

Author: Vedant Chainani
June, 2022

Day 2 >>

Day 1


πŸ“” Day 1

Licenses

// SPDX-License-Identifier: License Name

SPDX license identifiers should be added to the top of contract files. The license should be from one of the following:Β https://spdx.org/licenses/.

⚠️ If the license identifier isn’t included in the contract file the compiler will now show a warning.

❗ If there are multiple license identifiers in the contract file the compiler will now show an error.

eg -

// SPDX-License-Identifier: MIT

Pragma

In Solidity the pragma keyword is used to configure compiler features and checks. The pragma directive is always local to the current file and is not global. Hence to make it applicable in your entire project of Solidity you have to include pragma directive in every file to work.

The first line is a pragma directive which tells that the source code is written for which Solidity version.

pragma solidity ^0.8.7;
// Anything above 0.8.7

pragma solidity >=0.8.0 <0.9.0;
// Anything between 0.8.0 to 0.9.0 where 0.9.0 is not included.

pragma solidity 0.8.7;
// Only Version 0.8.7

Day 2 >>

100-days-of-solidity's People

Contributors

envoy-vc avatar arefathi 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.