-
Notifications
You must be signed in to change notification settings - Fork 359
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
Migrate UDC #919
Merged
Merged
Migrate UDC #919
Changes from 4 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
5894303
add udc preset
andrew-fleming 48a72ac
add udc preset class hash
andrew-fleming f094ff6
tidy up code
andrew-fleming e135b1a
add entry to changelog
andrew-fleming b078f70
tidy up code
andrew-fleming 90b542f
clean up code
andrew-fleming 476e058
add udc impl
andrew-fleming e78867c
add deployment check and comments
andrew-fleming b343394
Apply suggestions from code review
andrew-fleming 5215030
add comments
andrew-fleming d81c544
move IUniversalDeployer to interface mod in udc dir
andrew-fleming 40b293a
fix conflicts, add PartialEq to udc event
andrew-fleming c645eca
fix conflicts
andrew-fleming 620d22b
update changelog
andrew-fleming 5324daa
remove duplicate entry
andrew-fleming 2bbb194
Apply suggestions from code review
andrew-fleming 8b0bf42
fix from_zero logic
andrew-fleming fb741dc
remove member names from struct
andrew-fleming 8ee0297
abstract event assertions into fn
andrew-fleming b6d1e3f
fix formatting
andrew-fleming fbe27e0
Update src/tests/presets/test_universal_deployer.cairo
andrew-fleming 22e4779
update assertion fn
andrew-fleming 64f04fe
fix conflicts
andrew-fleming 1569954
Update src/presets/universal_deployer.cairo
andrew-fleming db5f13d
use poseidon in udc
andrew-fleming c1de6e0
fix formatting
andrew-fleming a924bf5
Merge branch 'main' into add-udc
andrew-fleming 05a6fa2
fix spdx
andrew-fleming baa6a11
Merge branch 'add-udc' of https://github.com/andrew-fleming/cairo-con…
andrew-fleming f25a3c1
Apply suggestions from code review
andrew-fleming f38a5a6
fix from_zero conflicts, change poseidon use, update tests
andrew-fleming 14fc5be
fix formatting
andrew-fleming 8e474a1
remove deployment info from comment
andrew-fleming f8da011
change code reference in comment
andrew-fleming 036500e
Apply suggestions from code review
andrew-fleming b1c86c5
fix formatting
andrew-fleming 1aa212d
fix from_zero var in event test
andrew-fleming 564f0c8
Apply suggestions from code review
andrew-fleming bca3301
update HashTrait in test
andrew-fleming 7bfdef6
fix conflicts
andrew-fleming d91c61d
fix conflicts
andrew-fleming File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider using poseidon since is much cheaper? Maybe a UDC_v2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huge +1 to UDC_v2 with poseidon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, but note this UDC is already v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may need to be explicit in the name regarding the version. If people are using UDC already to predict addresses before deployment, getting confused about whether it uses pedersen or poseidon could be problematic, since the addresses would be different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we update to Poseidon then on this PR? And should we add documentation about it and versions? In the starknet docsite we are not for example mentioning which hash algorithm is used, or how to precompute the addresses, and I think that's worth to mention.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made this an issue: #950