Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MerkleTree and merkletree support in TypedData #1363

Merged
merged 98 commits into from
Jun 27, 2024

Conversation

franciszekjob
Copy link
Collaborator

@franciszekjob franciszekjob commented Jun 20, 2024

Relates #1353

Introduced changes

  • Add HashMethod.hash_many()
  • Add Parameter.contains field to support merkletree type
  • Add MerkleTree dataclass
  • Add BasicType enum with felt, selector, merkletree and shortstring
  • Add merkle tree tests; Extend typed data tests with merkle tree cases

  • This PR contains breaking changes

franciszekjob and others added 30 commits June 14, 2024 16:03
franciszekjob and others added 3 commits June 24, 2024 17:06
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
@franciszekjob
Copy link
Collaborator Author

franciszekjob commented Jun 24, 2024

Add variable naming changes in MerkleTree class have been applied.

Base automatically changed from franciszekjob/1353-snip-12 to development June 24, 2024 15:40
starknet_py/hash/hash_method.py Show resolved Hide resolved
starknet_py/utils/merkle_tree.py Outdated Show resolved Hide resolved
starknet_py/utils/merkle_tree.py Outdated Show resolved Hide resolved
starknet_py/utils/merkle_tree_test.py Show resolved Hide resolved
starknet_py/utils/merkle_tree.py Outdated Show resolved Hide resolved
starknet_py/utils/merkle_tree_test.py Outdated Show resolved Hide resolved
starknet_py/net/models/typed_data.py Show resolved Hide resolved
starknet_py/hash/hash_method.py Show resolved Hide resolved
starknet_py/utils/typed_data.py Outdated Show resolved Hide resolved
starknet_py/utils/typed_data.py Show resolved Hide resolved
starknet_py/utils/typed_data.py Outdated Show resolved Hide resolved
starknet_py/utils/typed_data.py Outdated Show resolved Hide resolved
franciszekjob and others added 2 commits June 27, 2024 01:24
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
Copy link
Collaborator

@ddoktorski ddoktorski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the lint only and then it will be good to go 🚀

starknet_py/utils/typed_data.py Show resolved Hide resolved
@franciszekjob franciszekjob merged commit 2e17b16 into development Jun 27, 2024
16 checks passed
@franciszekjob franciszekjob deleted the franciszekjob/1353-2-merkletree branch June 27, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants