aboutsummaryrefslogtreecommitdiffstats
path: root/docs/types.rst
diff options
context:
space:
mode:
authorChris Ward <chriswhward@gmail.com>2018-07-30 18:41:15 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-01 19:21:47 +0800
commita6cb6777c9ff61097428ee0433390336e379e27a (patch)
treeb738f6643924d3b58fec4f5658dc5312451dccda /docs/types.rst
parentef269bf40d3c6fc044c27654473353c556402b77 (diff)
downloaddexon-solidity-a6cb6777c9ff61097428ee0433390336e379e27a.tar.gz
dexon-solidity-a6cb6777c9ff61097428ee0433390336e379e27a.tar.zst
dexon-solidity-a6cb6777c9ff61097428ee0433390336e379e27a.zip
Add contract type to types doc
Diffstat (limited to 'docs/types.rst')
-rw-r--r--docs/types.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/types.rst b/docs/types.rst
index 566c4c19..cab2ec5c 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -192,12 +192,19 @@ The ``.gas()`` option is available on all three methods, while the ``.value()``
.. note::
The use of ``callcode`` is discouraged and will be removed in the future.
+.. index:: ! contract type, ! type; contract
+
+.. _contract_types:
+
Contract Types
--------------
Every :ref:`contract<contracts>` defines its own type. Contracts can be implicitly converted
to contracts they inherit from. They can be explicitly converted from and to ``address`` types.
+Contracts can also be instantiated (which here means they are newly created). You can find more details in
+the :ref:`'Contracts via new'<creating-contracts>` section.
+
The data representation of a contract is identical to that of the ``address`` type and
this type is also used in the :ref:`ABI<ABI>`.