Найти в Дзене
12 подписчиков

Structure of a Solidity Contract


🔸Contracts in solidity are similar to the concept of classes in Object-Oriented Languages, they can be inherited and can inherit other contracts as well.

🔸We can have declarations of state variables, functions, events, errors, etc.

🔸There are some special types of contracts also such as libraries and interfaces, which we will talk about later.

🔸Contracts on their own are a large topic and we will dive deep into it in upcoming parts.

In this article, we are keeping it easy and are just exploring different components of a contract.

Структура смарт-контрактов на Solidity

🔹Контракты в solidity похожи на концепцию классов в объектно-ориентированных языках, они могут наследоваться и могут наследовать другие контракты.

🔹Мы можем иметь объявления переменных состояния, функций, событий, ошибок и т.д.

🔹Существуют также некоторые специальные типы контрактов, такие как библиотеки и интерфейсы, о которых мы поговорим позже.

🔹Контракты сами по себе являются большой темой, и мы углубимся в нее в следующих частях.

В этой статье мы не будем усложнять и просто изучим различные компоненты контракта.
​Structure of a Solidity Contract 🔸Contracts in solidity are similar to the concept of classes in Object-Oriented Languages, they can be inherited and can inherit other contracts as well.
Около минуты