py-eip712-structs icon indicating copy to clipboard operation
py-eip712-structs copied to clipboard

EIP712 data structure management for python

Results 7 py-eip712-structs issues
Sort by recently updated
recently updated
newest added

py-eip712-structs can handle structs that contain other structs and structs that contain arrays of primitives, but it breaks on structs that contain arrays of other structs. This pull request fixes...

Code in question: ```py from eip712_structs import EIP712Struct, Address, String, Uint class Identity(EIP712Struct): userId = Uint(256) wallet = Address() class Message(EIP712Struct): actionType = String() timestamp = Uint(256) authorizer = Identity...

Hey friends. How are y'all? So, `pysha3==1.0.2` is listed as a dependency in the requirements file. As you can see, this project is EOL and no longer supported: https://github.com/tiran/pysha3. I...

Presently, this is as small and surgical as is fit to pass the test suite. If the preference is for a broader dependency update, I can do that too.

https://github.com/ConsenSysMesh/py-eip712-structs/blob/b05c1dfe073644ceef1b339a28cd201cb6d2ea88/eip712_structs/struct.py#L108

Test code: ```python import os from eip712_structs import Bytes, Array, EIP712Struct, make_domain class TestStruct(EIP712Struct): byte_array = Array(Bytes(32), 4) byte_array = [os.urandom(32) for _ in range(4)] domain = make_domain(name='hello') s =...

- Switch from ganache to anvil - Remove pysha3 dependency - Remove python2 style super() call - Remove OrderedAttributesMeta. From version 3.7 onward, dictionaries maintain the insertion order of their...