mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Named the global function parameters
This commit is contained in:
parent
a29aaa3776
commit
2d32041552
@ -174,14 +174,14 @@ Global Variables
|
|||||||
- ``sha3(...) returns (bytes32)``: compute the Ethereum-SHA-3 (KECCAK-256) hash of the (tightly packed) arguments
|
- ``sha3(...) returns (bytes32)``: compute the Ethereum-SHA-3 (KECCAK-256) hash of the (tightly packed) arguments
|
||||||
- ``sha256(...) returns (bytes32)``: compute the SHA-256 hash of the (tightly packed) arguments
|
- ``sha256(...) returns (bytes32)``: compute the SHA-256 hash of the (tightly packed) arguments
|
||||||
- ``ripemd160(...) returns (bytes20)``: compute the RIPEMD-160 hash of the (tightly packed) arguments
|
- ``ripemd160(...) returns (bytes20)``: compute the RIPEMD-160 hash of the (tightly packed) arguments
|
||||||
- ``ecrecover(bytes32, uint8, bytes32, bytes32) returns (address)``: recover address associated with the public key from elliptic curve signature
|
- ``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``: recover address associated with the public key from elliptic curve signature
|
||||||
- ``addmod(uint x, uint y, uint k) returns (uint)``: compute ``(x + y) % k`` where the addition is performed with arbitrary precision and does not wrap around at ``2**256``
|
- ``addmod(uint x, uint y, uint k) returns (uint)``: compute ``(x + y) % k`` where the addition is performed with arbitrary precision and does not wrap around at ``2**256``
|
||||||
- ``mulmod(uint x, uint y, uint k) returns (uint)``: compute ``(x * y) % k`` where the multiplication is performed with arbitrary precision and does not wrap around at ``2**256``
|
- ``mulmod(uint x, uint y, uint k) returns (uint)``: compute ``(x * y) % k`` where the multiplication is performed with arbitrary precision and does not wrap around at ``2**256``
|
||||||
- ``this`` (current contract's type): the current contract, explicitly convertible to ``address``
|
- ``this`` (current contract's type): the current contract, explicitly convertible to ``address``
|
||||||
- ``super``: the contract one level higher in the inheritance hierarchy
|
- ``super``: the contract one level higher in the inheritance hierarchy
|
||||||
- ``selfdestruct(address)``: destroy the current contract, sending its funds to the given address
|
- ``selfdestruct(address recipient)``: destroy the current contract, sending its funds to the given address
|
||||||
- ``<address>.balance`` (``uint256``): balance of the address in Wei
|
- ``<address>.balance`` (``uint256``): balance of the address in Wei
|
||||||
- ``<address>.send(uint256) returns (bool)``: send given amount of Wei to address, returns ``false`` on failure
|
- ``<address>.send(uint256 amount) returns (bool)``: send given amount of Wei to address, returns ``false`` on failure
|
||||||
|
|
||||||
.. index:: visibility, public, private, external, internal
|
.. index:: visibility, public, private, external, internal
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ Mathematical and Cryptographic Functions
|
|||||||
compute the SHA-256 hash of the (tightly packed) arguments
|
compute the SHA-256 hash of the (tightly packed) arguments
|
||||||
``ripemd160(...) returns (bytes20)``:
|
``ripemd160(...) returns (bytes20)``:
|
||||||
compute RIPEMD-160 hash of the (tightly packed) arguments
|
compute RIPEMD-160 hash of the (tightly packed) arguments
|
||||||
``ecrecover(bytes32 data, uint8 v, bytes32 r, bytes32 s) returns (address)``:
|
``ecrecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) returns (address)``:
|
||||||
recover the address associated with the public key from elliptic curve signature
|
recover the address associated with the public key from elliptic curve signature
|
||||||
|
|
||||||
In the above, "tightly packed" means that the arguments are concatenated without padding.
|
In the above, "tightly packed" means that the arguments are concatenated without padding.
|
||||||
@ -118,7 +118,7 @@ Address Related
|
|||||||
|
|
||||||
``<address>.balance`` (``uint256``):
|
``<address>.balance`` (``uint256``):
|
||||||
balance of the address in Wei
|
balance of the address in Wei
|
||||||
``<address>.send(uint256) returns (bool)``:
|
``<address>.send(uint256 amount) returns (bool)``:
|
||||||
send given amount of Wei to address, returns ``false`` on failure
|
send given amount of Wei to address, returns ``false`` on failure
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
@ -134,7 +134,7 @@ Contract Related
|
|||||||
``this`` (current contract's type):
|
``this`` (current contract's type):
|
||||||
the current contract, explicitly convertible to :ref:`address`
|
the current contract, explicitly convertible to :ref:`address`
|
||||||
|
|
||||||
``selfdestruct(address)``:
|
``selfdestruct(address recipient)``:
|
||||||
destroy the current contract, sending its funds to the given :ref:`address`
|
destroy the current contract, sending its funds to the given :ref:`address`
|
||||||
|
|
||||||
Furthermore, all functions of the current contract are callable directly including the current function.
|
Furthermore, all functions of the current contract are callable directly including the current function.
|
||||||
|
Loading…
Reference in New Issue
Block a user