Skip to content

Commit

Permalink
Merge pull request ethereum#436 from pipermerriam/carver/v4-release-n…
Browse files Browse the repository at this point in the history
…otes

v4-beta1 release notes
  • Loading branch information
carver authored Nov 17, 2017
2 parents 5c49f2c + dc4fced commit 20752cc
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 11 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
'_build',
'web3.rst',
'modules.rst',
'web3.auto.rst',
'web3.middleware.rst',
'web3.providers.rst',
'web3.providers.eth_tester.rst',
Expand Down
24 changes: 15 additions & 9 deletions docs/overview.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,12 @@ Cryptographic Hashing

.. code-block:: python
Web3.sha3(0x747874)
Web3.sha3(b'\x74\x78\x74')
Web3.sha3(hexstr='0x747874')
Web3.sha3(hexstr='747874')
Web3.sha3(text='txt')
>>> Web3.sha3(0x747874)
>>> Web3.sha3(b'\x74\x78\x74')
>>> Web3.sha3(hexstr='0x747874')
>>> Web3.sha3(hexstr='747874')
>>> Web3.sha3(text='txt')
HexBytes('0xd7278090a36507640ea6b7a0034b69b0d240766fa3f98e3722be93c613b29d2e')
.. py:classmethod:: Web3.soliditySha3(abi_types, value)
Expand All @@ -261,14 +262,19 @@ Cryptographic Hashing
.. code-block:: python
>>> Web3.soliditySha3(['bool'], True)
"0x5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd2"
HexBytes("0x5fe7f977e71dba2ea1a68e21057beebb9be2ac30c6410aa38d4f3fbe41dcffd2")
>>> Web3.soliditySha3(['uint8', 'uint8', 'uint8'], [97, 98, 99])
"0x4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45"
HexBytes("0x4e03657aea45a94fc7d47ba826c8d667c0d1e6e33a64a036ec44f58fa12d6c45")
>>> Web3.soliditySha3(['uint8[]'], [[97, 98, 99]])
"0x233002c671295529bcc50b76a2ef2b0de2dac2d93945fca745255de1a9e4017e"
HexBytes("0x233002c671295529bcc50b76a2ef2b0de2dac2d93945fca745255de1a9e4017e")
>>> Web3.soliditySha3(['address'], ["0x49eddd3769c0712032808d86597b84ac5c2f5614"])
"0x2ff37b5607484cd4eecf6d13292e22bd6e5401eaffcc07e279583bc742c68882"
HexBytes("0x2ff37b5607484cd4eecf6d13292e22bd6e5401eaffcc07e279583bc742c68882")
>>> Web3.soliditySha3(['address'], ["ethereumfoundation.eth"])
HexBytes("0x913c99ea930c78868f1535d34cd705ab85929b2eaaf70fcd09677ecd6e5d75e9")
Modules
-------
Expand Down
18 changes: 16 additions & 2 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ Release Notes
4.0.0 (beta)
------------

* TODO

* Python 3 is now required
* ENS names can be used anywhere that a hex address can
* Sign transactions and messages with local private keys
* New filter mechanism: :meth:`~web3.utils.filters.Filter.get_all_entries` and :meth:`~web3.utils.filters.Filter.get_new_entries`
* Quick automatic initialization with ``from web3.auto import w3``
* All addresses must be supplied with an EIP-55 checksum
* All addresses are returned with a checksum
* Renamed ``Web3.toDecimal()`` to ``toInt()``, see: :ref:`overview_type_conversions`
* All filter calls are synchronous, gevent integration dropped
* Contract :meth:`~web3.contract.Contract.eventFilter` has replaced both ``Contract.on()`` and ``Contract.pastEvents()``
* Contract arguments of ``bytes`` ABI type now accept hex strings.
* Contract arguments of ``string`` ABI type now accept python ``str``.
* Contract return values of ``string`` ABI type now return python ``str``.
* Many methods now return a ``bytes``-like object where they used to return a hex string, like in ``Web3.sha3()``. See: :ref:`overview_hashing`
* IPC connection left open and reused, rather than opened and closed on each call
* A number of deprecated methods from v3 were removed

3.16.1
------
Expand Down

0 comments on commit 20752cc

Please sign in to comment.