-
Notifications
You must be signed in to change notification settings - Fork 180
Hooks Wizard v0.0.1 #628
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
Open
gonzaotc
wants to merge
155
commits into
OpenZeppelin:master
Choose a base branch
from
gonzaotc:hooks-wizard
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Hooks Wizard v0.0.1 #628
Changes from 41 commits
Commits
Show all changes
155 commits
Select commit
Hold shift + click to select a range
b808c2b
init hooks wizard
gonzaotc 1e007d7
add hook utilities
gonzaotc faba830
add initial hooks controls
gonzaotc b03c350
remove readme
gonzaotc e078e95
up generation
gonzaotc b6115c1
up
gonzaotc e0f654e
add reliable hooks organization and utilities tooltips
gonzaotc db952de
add initial tooltips
gonzaotc 0b5ae64
add uniswap deps
gonzaotc 5dfb647
fix prepare error
gonzaotc 45d7d64
add uniswap hooks hyperlinks
gonzaotc 194b355
iterate hooks tooltips
gonzaotc b7be91c
fix kind sanitization
gonzaotc c650954
up tooltip
gonzaotc 762b5a1
update remappings
gonzaotc 20c07d8
fix addUsing compilation via addImportOnly addition
gonzaotc 4de46d6
add erc1155 shares
gonzaotc 0b02d69
add optional override "compatibleSemver" to printContract
gonzaotc 6d9ff54
add a hooks folder containing each hook static data
gonzaotc d1b7b51
fix BaseHook compilation
gonzaotc c061c4f
add base hook function overrides
gonzaotc 004965c
add required overrides
gonzaotc a0c05c5
merge with origin, add printContract option for additional libraries
gonzaotc 0580129
solve conflicts with origin
gonzaotc 71f3786
lint ui
gonzaotc e2784c3
update hooks snapshots
gonzaotc 88d1d53
update snapshots
gonzaotc 1546b24
add permissions component
gonzaotc 344e8c4
up hooks permissions
gonzaotc 8feecce
up
gonzaotc 2dbe171
reorder perms
gonzaotc 79c3b8a
up snapshots
gonzaotc 3962a18
up pausability construction
gonzaotc 5a287ff
fix pausability conficting overrides on custom functions
gonzaotc b7e605e
add automatic types importing
gonzaotc 0d436ef
fix double import bug
gonzaotc 7b06a4d
add required import paths
gonzaotc 48582fd
fix compilation
gonzaotc 041d6d8
lint
gonzaotc 4163fee
up
gonzaotc bf1ff20
reorder controls
gonzaotc c0881ae
up tooltips & normalize hook names in UI
gonzaotc af17f95
lint
gonzaotc 43fe35f
update uniswap-hooks package commit reference
gonzaotc dedffd8
update uniswap-hooks package commit reference
gonzaotc 34f020e
up ava snapshots for basedynamicfee
gonzaotc 96f25f7
up tooltips & shortcut permissions in ui
gonzaotc 5c1c8ed
add lateral size to the hooks wizard selector panel
gonzaotc 8cf50c9
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc d0652cf
add try the ui builder component to hooks html
gonzaotc 59e99dc
Add simple download button
gonzaotc 302ef9d
download foundry project wip
gonzaotc 305d7be
empty changelog
gonzaotc 4adb616
removed openzeppelin community from inject hyperlinks
gonzaotc 8b947af
up version tag
gonzaotc 4fade89
refactor addUsing towards addLibrary
gonzaotc 5b348a2
simplify get imports
gonzaotc f1ee4f9
print hooks functions if permissions are enabled
gonzaotc 7e5cb2f
add permission depency auto-selection and permission function additio…
gonzaotc 1f2ab4c
solve conflicting override
gonzaotc ae40d10
Add ExpandableSection and use in Hook Permissions
gonzaotc 4e5ea07
up ava snapshots
gonzaotc 38da7e1
modularize SharesControlsSection and make Utilities collapsable
gonzaotc 75fda2f
up remappings in uniswap hooks repo
gonzaotc a89a016
reorganize shares tab
gonzaotc 9b83ef6
make shares required in BaseCustomAccounting and CustomCurve
gonzaotc 222a421
up base override fee permissions
gonzaotc c61b0e2
fix a state bug in permission selection
gonzaotc 23f8c21
remove log
gonzaotc 7c20743
simplify hook names
gonzaotc 960ae35
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc c637945
update imports
gonzaotc af18d7f
up tests
gonzaotc 054bce0
enhance tooltips
gonzaotc ca4d391
merge with origin
gonzaotc 4b39243
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc dda3ca4
add rehypothecation hook and hookfee
gonzaotc 30352d8
implemented better shares config handling in core and ui
gonzaotc 4b2815d
remove pool manager construction param
gonzaotc 8310cb5
add dynamic inputs for hooks
gonzaotc 5fb4631
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc decdf20
add hooks input tooltip, improve wizard output comments
gonzaotc 97441fb
add constructionOnly contracts directive
gonzaotc 015a66f
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc 81e7a8d
remove foundry dependency
gonzaotc 3e515d4
lint
gonzaotc f638f7c
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc 3e9b8a9
apply fixes from pr review
gonzaotc 1659ac1
Merge pull request #2 from gonzaotc/pr-fixes
gonzaotc 641a7f2
Update CHANGELOG.md
gonzaotc ce382af
add uniswap hooks to github test workflow matrix
gonzaotc 6e1dc62
import solidity version from solidity package and bump compatible semver
gonzaotc ad391c7
Remove package-lock, update yarn.lock
ericglau fadfa59
Restore deno lock
ericglau d213d32
Update git dependency format
ericglau 16f4a19
Merge remote-tracking branch 'upstream/master' into hooks-wizard
ericglau 5450636
add oracles
gonzaotc 5c87881
Merge branch 'master' of github.com:OpenZeppelin/contracts-wizard int…
gonzaotc 5380d2f
merge with origin
gonzaotc 8c88661
Add Wizard AI assistant for uniswap hooks
CoveMB 76c4ea3
Merge branch 'master' into hooks-wizard
ericglau 296e973
only reset hooks permission upon changing selected hook
gonzaotc 42c9c3a
Merge branch 'hooks-wizard' of https://github.com/gonzaotc/contracts-…
gonzaotc b120cd7
add input validations
gonzaotc c2fa828
Add MCP config
CoveMB 5fa1adc
add input validations
gonzaotc 6bdf770
Addjust MCP schema
CoveMB aeb606a
Addjust MCP schema
CoveMB e9dd205
Merge branch 'hooks-wizard' of https://github.com/gonzaotc/contracts-…
CoveMB f569fe5
Add mcp tests
CoveMB 2912157
Remove unecessary fields
CoveMB d913b50
Use consts
CoveMB 9d96139
revert const
CoveMB 5201e1b
Adjust types
CoveMB 2013585
Adjust types
CoveMB 1e95301
merge with origin
gonzaotc 6bf1ddd
up
gonzaotc d024591
add natspec comments for better hook building guidance
gonzaotc ac764ac
up comments
gonzaotc 3194d5c
rename natspec comments to top level comments
gonzaotc 5b405a4
up comments
gonzaotc a7fd4db
require access controls on baseDynamicFee and update snapshots
gonzaotc 55aaca9
apply fixes from pr
gonzaotc fe3f732
apply fixes from pr
gonzaotc 8760936
apply fixes from pr
gonzaotc d7c6a6b
before refactor
CoveMB 17a96d5
regenerate yarn.lock
gonzaotc 068357c
simplifyed types
CoveMB 10e245b
lint
gonzaotc 2ef6fd7
use helper
CoveMB 077ced3
rollback yarn.lock with master version
gonzaotc a7d435e
Use helper other languages
CoveMB 3861aa8
Add extract string enum helper
CoveMB cd40989
Merge master
CoveMB 7f9d2d3
Adjust import
CoveMB 2a120e5
Fix type issue
CoveMB 0a214b7
Add type check for required keys, add each hook description
CoveMB 890ecb1
Fix UI type upgradable
CoveMB f47e500
Lint
CoveMB 0daf90d
Fix snapshots
ericglau d13fe09
Add changeset
ericglau 9795986
Fix tooltip URLs for Contracts
ericglau a0ddd00
apply fixes from pr
gonzaotc 5390441
divide addHook into specific hook functions for modularity
gonzaotc 9732a0b
up
gonzaotc c2b4506
up
gonzaotc b22adde
refactor addTopLevelComment
gonzaotc 6b2b81d
patch topLevelComment issue
gonzaotc a7d5cdd
Merge branch 'master' into hooks-wizard
ericglau 15488b9
Update minor version for hooks wizard
ericglau 21487ba
merge with origin and update uniswap-hooks library
gonzaotc 8d0fee2
update constructor param
gonzaotc 8396cde
add uniswap-hooks-solidity to languages
gonzaotc a43ff4b
Merge branch 'hooks-wizard' of https://github.com/gonzaotc/contracts-…
gonzaotc c56afaa
Merge pull request #3 from gonzaotc/update-constructor-param
gonzaotc 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
Binary file not shown.
This file contains hidden or 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 hidden or 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
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| import type { Contract } from '../contract'; | ||
|
|
||
| export function importsCommunityContracts(contract: Contract) { | ||
| return contract.imports.some(i => i.path.startsWith('@openzeppelin/community-contracts/')); | ||
| export function importsLibrary(contract: Contract, library: string) { | ||
| return contract.imports.some(i => i.path.startsWith(library)); | ||
| } |
This file contains hidden or 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
Binary file not shown.
This file contains hidden or 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
Binary file not shown.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| /cache | ||
| /artifacts | ||
| /contracts/generated | ||
| /openzeppelin-contracts.json | ||
gonzaotc marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Changelog | ||
|
|
||
|
|
||
| ## 0.0.1 (2025-08-11) | ||
|
|
||
| - Initial version. (PR link) | ||
gonzaotc marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.