- Replaced dependency on web3 with dependency on 0x-web3, to ease coexistence of those two packages.
- Changed
ERC20AssetData
andERC721AssetData
to inherit fromNamedTuple
rather thanTypedDict
. - Deprecated methods
encode_erc20_asset_data()
andencode_erc721_asset_data()
, in favor of new methodsencode_erc20()
andencode_erc721()
. The old methods return a string, which is less than convenient for building orders using the providedOrder
type, which expects asset data to bebytes
. The new methods returnbytes
. - Expanded documentation.
- Stopped using deprecated web3.py interface
contract.call()
in favor ofcontract.functions.X.call()
. This provides compatibility with the upcoming 5.x release of web3.py, and it also eliminates some runtime warning messages.