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

Support enum basic type in TypedData #1382

Merged
merged 251 commits into from
Jul 5, 2024

Conversation

franciszekjob
Copy link
Collaborator

@franciszekjob franciszekjob commented Jul 3, 2024

Relates #1353

Introduced changes

  • Support revision 1 enum basic type in TypedData
  • Make Parameter abstract
  • Add StandardParameter, EnumParameter, MerkleTreeParameter
  • Add enum-related tests

  • This PR contains breaking changes
  • Parameter is now abstract; StandardParameter, EnumParameter, MerkleTreeParameter should be used

franciszekjob and others added 30 commits June 14, 2024 16:04
starknet_py/utils/typed_data_test.py Outdated 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 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
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
starknet_py/utils/typed_data.py Outdated Show resolved Hide resolved
@ddoktorski
Copy link
Collaborator

Please also fix the docs build. It's failing because class Parameter does not exist.

@franciszekjob franciszekjob self-assigned this Jul 5, 2024
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 address the last comment before merging 🚀

starknet_py/utils/typed_data.py Outdated Show resolved Hide resolved
Co-authored-by: ddoktorski <45050160+ddoktorski@users.noreply.github.com>
@franciszekjob franciszekjob merged commit 6508f33 into development Jul 5, 2024
16 checks passed
@franciszekjob franciszekjob deleted the franciszekjob/1353-7-enum branch July 5, 2024 15:41
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