Sign In

Join in now to see all content.

Back

Smart contract and programing language

Ethereum offers two different types of accounts. One of them is externally owned and the other a contractual account. Most importantly, EOA is under user control. Control is the most often by wallet applications. Contract accounts, on the other hand, are controlled by program code. Many wonder what contract accounts are and the program code that controls them.

With the help of a smart contract, we can describe a large number of different things. For smart contract, we can say is a set of promises in the digital form devised by Nick Szabo. The other parties must also keep their promises. From the time it was created until today, the smart contract has evolved.

Smart contracts must be written in a high-level language. One of them is Solidity. Once the smart contract is compiled, it can be set up on Ethereum. Needs to be done through a special transaction for creating a contract. Each of the contracts will be identified by an Ethereum address. Also, what is very important is that contracts are performed only if they are called by a transaction.

One contract can call another contract, which can then call for another contract. But in that case, the first one will always be called by the transaction from the EOA. Also, the contract can’t work alone, or in the background. We can program smart contracts directly in the bytecode. But EVM is quite awkward, and sometimes that code can be very difficult to read and understand. Because of this, most Ethereum developers use other languages to write code and then translate it into bytecode.

Nowadays, we can adapt any language to write a smart contract. But it can cause great confusion. For this reason, we have several languages that are used exclusively for programming smart contracts. Ethereum programming languages can be divided into two groups: declarative and imperative.

Why is it important to have special programming languages? Because every bug in a smart contract costs money. That is why it is important to write smart contracts without mistakes. What is important to know is that declarative languages play a much bigger role in smart contracts. But the most popular language is still the Imperative.

Currently supported programming languages:

  • LLL
  • Serpent
  • Solidity
  • Vyper
  • Bamboo

 

More like this:

articles/May2024/EUOfwfF4YM0oo9OPRHxE.jpg

Bartolo Colon saddened baseball fans

Bartolo Colon decided to make many fans sad before the game at Citi Field. It was the moment when, during an interview for Spanish radio, he announced that he would retire from baseball after one more winter league. Bartolo has a great desire, which is to play a few more games in the Dominican winter league and at the same time say goodbye to the Dominican fans, since they deserve it too.

articles/May2024/n4hmB0vXdRbdsdwQqSrg.jpg

He is currently one of the best catchers

Do you know who is currently one of the best catchers in baseball? J.T. Realmuto is a name we will surely hear about for a long time to come. Did you know that he is still the best catcher? In 2021 he was ranked better than any other catcher, number one in the CDA and FRA and fourth in the fWAR. J.T. Realmuto is a professional baseball player for the Philadelphia Phillies.

articles/May2024/YSM6vZD0WLNSCn0fggam.jpg

Lahore and Karachi hosting 7 England T20Is

The Pakistan Cricket Board decided that they will use only two to three major venues for the seven-match T20 international series against England. The series is scheduled just before World Cup in Australia.

articles/May2024/9DWSS6fzGfPuhY3fkvJB.jpg

Dana White surprised Kyle with 250k in a plastic bag

UFC president Dana White has surprised Kyle Forgeard from The Nelk Boys with $250,000 in a plastic bag for his birthday. It's not a secret that The Nelk Boys are really close members of the UFC family, regardless of being it is fighters or bosses themselves.

articles/May2024/TrZgQJrD3YZzjxywoBdf.jpg

Doncic is overrated?

In a dramatic match in Sweden, the current European champion Slovenia, led by Luka Doncic and Goran Dragic, managed to win against Sweden. The final result in this match was 84:81. This match was a part of the last round of the first round of qualification for the World Cup 2023.