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

feat: [v0.7.0] Cut permitted call hooks & injection #20

Merged
merged 6 commits into from
Jan 17, 2024

Conversation

adam-alchemy
Copy link
Contributor

@adam-alchemy adam-alchemy commented Dec 15, 2023

Fixes: erc6900/resources#22

Motivation

The use case for permitted call hooks is enforcing permissions in a way that better reuses plugins. However, the case where this makes a difference is pretty far out, since it requires 3 or more plugins attached to the same selector. You can almost fully replicate its functionality with regular hooks attached to non-installed selectors then installing it after.

Solution

Remove permitted call hooks from the manifest, install paths, execution paths, loupe paths, and the ERC.

@adam-alchemy adam-alchemy force-pushed the adam/experiment-cut-permitted-call-hooks branch from 6e79261 to 2eb0877 Compare December 15, 2023 22:22
@adam-alchemy adam-alchemy marked this pull request as ready for review December 15, 2023 22:46
Copy link
Collaborator

@jaypaik jaypaik left a comment

Choose a reason for hiding this comment

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

Nice! ✨

Nit: [v0.7.0-draft] or [v0.7.0] for the PR title tag (or just omit, seems implied by the branch name) and let's start using conventional commits here too?

@adam-alchemy adam-alchemy force-pushed the adam/experiment-cut-permitted-call-hooks branch from 97a2741 to a79c252 Compare January 16, 2024 23:26
@adam-alchemy adam-alchemy changed the title [v0.7-draft] Cut permitted call hooks & injection feat: [v0.7.0] Cut permitted call hooks & injection Jan 16, 2024
Base automatically changed from v0.7.0-develop to main January 17, 2024 00:51
@jaypaik jaypaik force-pushed the adam/experiment-cut-permitted-call-hooks branch from 84e75cb to 50b6407 Compare January 17, 2024 00:58
@jaypaik jaypaik force-pushed the adam/experiment-cut-permitted-call-hooks branch from 50b6407 to 272d301 Compare January 17, 2024 01:04
@jaypaik jaypaik merged commit 7846d38 into main Jan 17, 2024
3 checks passed
@jaypaik jaypaik deleted the adam/experiment-cut-permitted-call-hooks branch January 17, 2024 01:11
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.

[Improvement] Remove permitted call hooks and injected hooks
3 participants