Skip to content

Commit

Permalink
Merge pull request ethereum#2927 from ethereum/abispecfix
Browse files Browse the repository at this point in the history
Fix ABI spec.
  • Loading branch information
chriseth authored Sep 19, 2017
2 parents 39d7faa + a061e8d commit 137b214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/abi-spec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,31 @@ The following elementary types exist:

- ``address``: equivalent to ``uint160``, except for the assumed interpretation and language typing.

- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (not to be used for computing the function selector).
- ``uint``, ``int``: synonyms for ``uint256``, ``int256`` respectively (this shorthand not to be used for computing the function selector).

- ``bool``: equivalent to ``uint8`` restricted to the values 0 and 1

- ``fixed<M>x<N>``: signed fixed-point decimal number of ``M`` bits, ``8 <= M <= 256``, ``M % 8 ==0``, and ``0 < N <= 80``, which denotes the value ``v`` as ``v / (10 ** N)``.

- ``ufixed<M>x<N>``: unsigned variant of ``fixed<M>x<N>``.

- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (not to be used for computing the function selector).
- ``fixed``, ``ufixed``: synonyms for ``fixed128x19``, ``ufixed128x19`` respectively (this shorthand not to be used for computing the function selector).

- ``bytes<M>``: binary type of ``M`` bytes, ``0 < M <= 32``.

- ``function``: equivalent to ``bytes24``: an address, followed by a function selector

The following (fixed-size) array type exists:

- ``<type>[M]``: a fixed-length array of the given fixed-length type.
- ``<type>[M]``: a fixed-length array of ``M`` elements, ``M > 0``, of the given type.

The following non-fixed-size types exist:

- ``bytes``: dynamic sized byte sequence.

- ``string``: dynamic sized unicode string assumed to be UTF-8 encoded.

- ``<type>[]``: a variable-length array of the given fixed-length type.
- ``<type>[]``: a variable-length array of elements of the given type.

Types can be combined to a tuple by enclosing a finite non-negative number
of them inside parentheses, separated by commas:
Expand Down

0 comments on commit 137b214

Please sign in to comment.