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

One of Europe’s greatest basketball players announced the end of a miraculous career

Yeah, that is right, one of the greatest and most trophy-winning European basketball players of all time, Pau Gasol announced the end of his career. He decided to announce the end of this incredible career at the scheduled press conference.

articles/May2024/T5f69cAgtrM4uWSgI7Aq.jpg

France jumps to No.1 position while All Blacks get lowest ever

France will officially become the best team in the world when World Rugby updates its rankings. Fabien Galthie’s team was scraped by Japan 15-20 in Tokyo, only to sweep their hosts in the two-game series. The Six Nations Grand Slam winners have climbed to number one for the first time since the rankings got introduced in 2003.

articles/May2024/iV1FdqOQCYQ3bKirkVB6.jpg

New problems for FC Barcelona

It is increasingly likely that FC Barcelona will be left without a main sponsor. The Japanese company has decided to end its cooperation with the Catalan football club, thus bringing even more worries to the president of the club.

articles/May2024/rq1UDQB068hsdvfU0lrh.jpg

Dede Westbrook signed for the Minnesota Vikings

This year’s expectations for the Minnesota Vikings have been met, as they made a deal with Dede Westbrook. The former Jaguar receiver has signed a contract with the Vikings. Although the terms of the contract have not yet been published, it is assumed that the wishes of both parties have been fulfilled.

articles/May2024/ziFFfUNjT5PHm25Bj8nE.jpg

What's going on with the White Sox, do they have a chance to make a big improvement?

The White Sox are living through one of their better days. They recently beat the Royals on a Thursday afternoon after a morning huddle in the clubhouse.