What is Solidity?

What is Solidity?

Solidity is a programming language for writing smart contracts which run on Ethereum Virtual Machine on Blockchain. It is an object-oriented, high-level language whose syntax is similar to that of JavaScript and it is designed to target the Ethereum Virtual Machine. Being a Decentralized Technology, it is complicated to understand or program. To solve this problem we have organised this training to help you understand and learn Solidity in few hours starting from very basics.

Solidity is a contract-oriented programming language for writing smart contracts. It is used for implementing smart contracts on various blockchain platforms.

Example of a Solidity program:

contract GavCoin
{
  mapping(address=>uint) balances;
  uint constant totalCoins = 100000000000;

  /// Endows creator of contract with 1m GAV.
  function GavCoin(){
      balances[msg.sender] = totalCoins;
  }

  /// Send $((valueInmGAV / 1000).fixed(0,3)) GAV from the account of $(message.caller.address()), to an account accessible only by $(to.address()).
  function send(address to, uint256 valueInmGAV) {
    if (balances[msg.sender] >= valueInmGAV) {
      balances[to] += valueInmGAV;
      balances[msg.sender] -= valueInmGAV;
    }
  }

  /// getter function for the balance
  function balance(address who) constant returns (uint256 balanceInmGAV) {
    balanceInmGAV = balances[who];
  }

}

 

Development platform availability:
– Remix, the official Solidity IDE
– Microsoft Visual Studio[23][24]
– ConsenSys Enterprise[15]
– Tendermint on Microsoft Azure by PWC[3]
– ErisDB by AWS[3]
– Hedera, Hedera hashgraph platform supports smart contracts written in Solidity

 

source:
https://en.wikipedia.org/wiki/Solidity

Leave a Reply

Your email address will not be published. Required fields are marked *