Skip to content

Commit

Permalink
Merge pull request #2128 from joshstevens19/web3-shh-typings
Browse files Browse the repository at this point in the history
Web3 shh typings
  • Loading branch information
nivida authored Dec 17, 2018
2 parents 987429c + 53adab1 commit d6e893d
Show file tree
Hide file tree
Showing 7 changed files with 750 additions and 32 deletions.
42 changes: 21 additions & 21 deletions docs/web3-shh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Returns
-------


``String`` - The version of the current whisper running.
``Promise`` returns ``String`` - The version of the current whisper running.


-------
Expand Down Expand Up @@ -103,7 +103,7 @@ Returns
-------


``Object`` - The information of the node with the following properties:
``Promise`` returns ``Object`` - The information of the node with the following properties:

- ``messages`` - ``Number``: Number of currently floating messages.
- ``maxMessageSize`` - ``Number``: The current message size limit in bytes.
Expand Down Expand Up @@ -153,7 +153,7 @@ Returns
-------


``Boolean`` - ``true`` on success, error on failure.
``Promise`` returns ``Boolean`` - ``true`` on success, error on failure.


-------
Expand Down Expand Up @@ -196,7 +196,7 @@ Returns
-------


``Boolean`` - ``true`` on success, error on failure.
``Promise`` returns ``Boolean`` - ``true`` on success, error on failure.


-------
Expand Down Expand Up @@ -237,7 +237,7 @@ Returns
-------


``Boolean`` - ``true`` on success, error on failure.
``Promise`` returns ``Boolean`` - ``true`` on success, error on failure.


-------
Expand Down Expand Up @@ -275,7 +275,7 @@ Returns
-------


``String`` - Key ID on success and an error on failure.
``Promise`` returns ``String`` - Key ID on success and an error on failure.


-------
Expand Down Expand Up @@ -314,7 +314,7 @@ Returns
-------


``String`` - Key ID on success and an error on failure.
``Promise`` returns ``String`` - Key ID on success and an error on failure.


-------
Expand Down Expand Up @@ -353,7 +353,7 @@ Returns
-------


``Boolean`` - ``true`` on success, error on failure.
``Promise`` returns ``Boolean`` - ``true`` on success, error on failure.


-------
Expand Down Expand Up @@ -392,7 +392,7 @@ Returns
-------


``Boolean`` - ``true`` on if the key pair exist in the node, ``false`` if not. Error on failure.
``Promise`` returns ``Boolean`` - ``true`` on if the key pair exist in the node, ``false`` if not. Error on failure.


-------
Expand Down Expand Up @@ -431,7 +431,7 @@ Returns
-------


``String`` - Public key on success and an error on failure.
``Promise`` returns ``String`` - Public key on success and an error on failure.


-------
Expand Down Expand Up @@ -470,7 +470,7 @@ Returns
-------


``String`` - Private key on success and an error on failure.
``Promise`` returns ``String`` - Private key on success and an error on failure.


-------
Expand Down Expand Up @@ -509,7 +509,7 @@ Returns
-------


``String`` - Key ID on success and an error on failure.
``Promise`` returns ``String`` - Key ID on success and an error on failure.


-------
Expand Down Expand Up @@ -548,7 +548,7 @@ Returns
-------


``String`` - Key ID on success and an error on failure.
``Promise`` returns ``String`` - Key ID on success and an error on failure.


-------
Expand Down Expand Up @@ -587,7 +587,7 @@ Returns
-------


``String`` - Key ID on success and an error on failure.
``Promise`` returns ``String`` - Key ID on success and an error on failure.


-------
Expand Down Expand Up @@ -626,7 +626,7 @@ Returns
-------


``Boolean`` - ``true`` on if the symmetric key exist in the node, ``false`` if not. Error on failure.
``Promise`` returns ``Boolean`` - ``true`` on if the symmetric key exist in the node, ``false`` if not. Error on failure.


-------
Expand Down Expand Up @@ -665,7 +665,7 @@ Returns
-------


``String`` - The raw symmetric key on success and an error on failure.
``Promise`` returns ``String`` - The raw symmetric key on success and an error on failure.


-------
Expand Down Expand Up @@ -704,7 +704,7 @@ Returns
-------


``Boolean`` - ``true`` on if the symmetric key was deleted, error on failure.
``Promise`` returns ``Boolean`` - ``true`` on if the symmetric key was deleted, error on failure.


-------
Expand Down Expand Up @@ -753,7 +753,7 @@ Parameters
Returns
-------

``Promise`` - returns a promise. Upon success, the ``then`` function will be passed a string representing the hash of the sent message. On error, the ``catch`` function will be passed a string containing the reason for the error.
``Promise`` returns ``Promise`` - returns a promise. Upon success, the ``then`` function will be passed a string representing the hash of the sent message. On error, the ``catch`` function will be passed a string containing the reason for the error.


-------
Expand Down Expand Up @@ -934,7 +934,7 @@ Parameters
Returns
-------

``String``: The filter ID.
``Promise`` returns ``String``: The filter ID.

-------
Example
Expand Down Expand Up @@ -968,7 +968,7 @@ Parameters
Returns
-------

``Boolean``: ``true`` on success, error on failure.
``Promise`` returns ``Boolean``: ``true`` on success, error on failure.

-------
Example
Expand Down Expand Up @@ -1003,7 +1003,7 @@ Parameters
Returns
-------

``Array``: Returns an array of message objects like :ref:`web3.shh.subscribe() notification returns <shh-subscribenotificationreturns>`
``Promise`` returns ``Array``: Returns an array of message objects like :ref:`web3.shh.subscribe() notification returns <shh-subscribenotificationreturns>`

-------
Example
Expand Down
Loading

0 comments on commit d6e893d

Please sign in to comment.