mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #4974 from ethereum/structureCleanup
Some cleanup in structure section.
This commit is contained in:
commit
8e96b35973
@ -1210,6 +1210,8 @@ Abstract contracts are useful in the same way that defining methods in an interf
|
|||||||
|
|
||||||
.. index:: ! contract;interface, ! interface contract
|
.. index:: ! contract;interface, ! interface contract
|
||||||
|
|
||||||
|
.. _interfaces:
|
||||||
|
|
||||||
**********
|
**********
|
||||||
Interfaces
|
Interfaces
|
||||||
**********
|
**********
|
||||||
|
@ -11,6 +11,11 @@ Each contract can contain declarations of :ref:`structure-state-variables`, :ref
|
|||||||
:ref:`structure-function-modifiers`, :ref:`structure-events`, :ref:`structure-struct-types` and :ref:`structure-enum-types`.
|
:ref:`structure-function-modifiers`, :ref:`structure-events`, :ref:`structure-struct-types` and :ref:`structure-enum-types`.
|
||||||
Furthermore, contracts can inherit from other contracts.
|
Furthermore, contracts can inherit from other contracts.
|
||||||
|
|
||||||
|
There are also special kinds of contracts called :ref:`libraries<libraries>` and :ref:`interfaces<interfaces>`.
|
||||||
|
|
||||||
|
The section about :ref:`contracts<contracts>` contains more details than this section,
|
||||||
|
which serves to provide a quick overview.
|
||||||
|
|
||||||
.. _structure-state-variables:
|
.. _structure-state-variables:
|
||||||
|
|
||||||
State Variables
|
State Variables
|
||||||
@ -49,7 +54,7 @@ Functions are the executable units of code within a contract.
|
|||||||
}
|
}
|
||||||
|
|
||||||
:ref:`function-calls` can happen internally or externally
|
:ref:`function-calls` can happen internally or externally
|
||||||
and have different levels of visibility (:ref:`visibility-and-getters`)
|
and have different levels of :ref:`visibility<visibility-and-getters>`
|
||||||
towards other contracts.
|
towards other contracts.
|
||||||
|
|
||||||
.. _structure-function-modifiers:
|
.. _structure-function-modifiers:
|
||||||
@ -58,7 +63,7 @@ Function Modifiers
|
|||||||
==================
|
==================
|
||||||
|
|
||||||
Function modifiers can be used to amend the semantics of functions in a declarative way
|
Function modifiers can be used to amend the semantics of functions in a declarative way
|
||||||
(see :ref:`modifiers` in contracts section).
|
(see :ref:`modifiers` in the contracts section).
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user