What is Solidity? Explained!

 



Have you ever wondered how to create your blockchain application? 
When it comes to Ethereum, it starts with smart contracts. In this article, we will learn how to build a simple, smart contract on Ethereum and test it using the Truffle framework. Our smart contract will perform essential create, read, update, and delete (CRUD) operations. 

 We'll focus on smart contracts written in Solidity language. We'll use the Truffle Suite to deploy a local version of the Ethereum blockchain and compile smart contracts using Ethereum Virtual Machine (EVM). Prerequisites For this tutorial, the following software and packages are required: Node and its package manager, npm. 
<div id="top">
      <div class="perspective">
          <div class="card">
              <div class="thumb"
                  style="background-image: url(https://images.unsplash.com/photo-1478358161113-b0e11994a36b?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=a11da19e81415e5a81029aade9df7774&auto=format&fit=crop&w=668&q=80)">
              </div>
              <h2>Virtual Reality</h2>
              <span>Dreaming with your eyes open!</span>
          </div>
      </div>
  </div>
  
  <div class="dribbble">
      <a href="https://dribbble.com/albanbujupaj" target="_blank">
          <span class="icon"><img width="30" src="https://image.flaticon.com/icons/svg/179/179316.svg" alt=""></span><span
              class="caption">follow me on dribbble</span></a>
  </div>

We run the command node -v && npm -v to verify we have them installed, or install them from here Alternatively, we can use another package manager, Yarn An Ethereum blockchain, a smart-contract compiler A JavaScript library for communication, Web3.js 

What is a smart contract? In simple words, A smart contract is a piece of code that controls some digital asset. It defines rules for transferring assets and penalties like a traditional contract. The best thing is that it automatically performs these transfers and penalties based on pre-coded conditions without needing an intermediary. 

 What is Solidity? Solidity is one of the most famous languages to code smart contracts on Ethereum. It is designed for smart contract programming. It's syntactically similar to javascript.
body {
      background: linear-gradient(to right, #ffffff, #f8dce2);
      font-family: 'Varela Round', sans-serif;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
  }
  
  .perspective {
      width: 100%;
      perspective: 1000px;
  }
  
  #top {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: auto;
  }
  
  .card {
      width: 270px;
      height: 413px;
      margin: auto;
      box-shadow: 0 70px 63px -60px #494848;
      transform-style: preserve-3d;
      transition: transform .05s linear;
  
      .thumb {
          background-size: cover;
          height: 100%;
          width: 100%;
          border-radius: 15px;
  
          &:after {
              background: inherit;
              content: '';
              display: block;
              position: absolute;
              left: -60px;
              top: 40px;
              width: 100%;
              height: 108%;
              z-index: -1;
              filter: blur(55px);
          }
      }
  
      h2 {
          position: absolute;
          top: 0;
          left: -60px;
          font-size: 40px;
          font-weight: 100;
          transform: translateZ(80px);
      }
  
      span {
          position: absolute;
          bottom: 40px;
          right: -280px;
          font-size: 37px;
          font-weight: 600;
          transform: translateZ(35px);
      }
  }
  
  .dribbble {
      position: fixed;
      top: 25px;
      right: 25px;
  
      & > a {
          font-size: 12px;
          text-transform: uppercase;
          text-decoration: none;
          color: #ec4989;
      }
  }
  
  img {
      margin: auto;
      display: block;
      border-radius: 15px;
  }
  

Post a Comment

Previous Post Next Post