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/x45vD5CO1J6qOFr96jsg.jpg

Vincenzo Pazienza won the biggest fight

It is no small thing to become a world boxing champion. Vincenzo Pazienza, an American of Italian descent from Cranston, Rhode Island, was truly proud of his sporting achievements. In the first eight years of his professional career, despite four defeats, Pazienza boxed for the world title six times and won it twice.

articles/May2024/Oxsilyt4NUeaQjTuerWc.jpg

How Michael Harris turned things around

The Atlanta Braves enter the new week with an almost 98% chance of making the playoffs. Furthermore, they have a 6 ½ game lead over the top team in the Wild Card race. But not everything was so great before. In other words, two months ago the prospects were different.

articles/May2024/YW19kHroXdmrfgjCDiE7.jpg

We are better than Real

Barcelona beat Inter from Miami 6:0 in a friendly match, and Raphinha, the new player of the Catalan club, shone. The Brazilian, who Barcelona brought from Leeds for 58 million euros, scored a goal and set up two more.

articles/May2024/NtyIpKrKrzT4TZd73tcS.jpg

Top three MLB Outfielders

Do you know who is at the very top when it comes to outfielder positions? If you didn’t know an outfielder means players who play in one of three defensive positions in softball or baseball. These defenders are left, centre, and right players. As outside players, their task is to catch grounded and flying balls. But who stood out the most by playing in that position?

articles/May2024/cK1mmfWQ41okEBffgvVA.jpg

Will Paul Pogba return to Juventus

Paul Pogba will remain at Manchester United until the end of June and will become a free agent on the first day of July. There is a good chance that Paul will end up at Juventus, and according to reports from Italy, Paul has already undergone medical examinations. But this is not the only news, because more and more details about what kind of contract this player will sign are slowly being released to the public.