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 support for proxy contracts #1888

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

YaroShkvorets
Copy link
Collaborator

Implements #1739

With init and add commands, if proxy is detected, the user is given an option to use ABI of the implementation contract.

Copy link

changeset-bot bot commented Dec 30, 2024

🦋 Changeset detected

Latest commit: c53ef95

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@graphprotocol/graph-cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Dec 30, 2024

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphprotocol/graph-cli 0.94.0-alpha-20250109043757-c53ef95047eaf4833353c30dc2d1f6cbb9fc13e4 npm ↗︎ unpkg ↗︎

Copy link

cloudflare-workers-and-pages bot commented Dec 30, 2024

Deploying graph-tooling with  Cloudflare Pages  Cloudflare Pages

Latest commit: c53ef95
Status: ✅  Deploy successful!
Preview URL: https://ee49a1ca.graph-tooling.pages.dev
Branch Preview URL: https://yaro-proxy-support.graph-tooling.pages.dev

View logs

@YaroShkvorets YaroShkvorets linked an issue Dec 31, 2024 that may be closed by this pull request
@YaroShkvorets YaroShkvorets requested a review from 0237h January 6, 2025 14:48
Copy link
Collaborator

@0237h 0237h left a comment

Choose a reason for hiding this comment

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

PR is in a good state for supporting main proxy types but some questions on extending the detection implementation and the proxy detection.

Also maybe use existing work like https://github.com/ahmedali8/detect-evm-proxy ?

.changeset/modern-goats-talk.md Show resolved Hide resolved
packages/cli/src/commands/add.ts Outdated Show resolved Hide resolved
packages/cli/src/commands/init.ts Outdated Show resolved Hide resolved
@YaroShkvorets YaroShkvorets requested a review from 0237h January 9, 2025 02:17
Copy link
Collaborator

@0237h 0237h left a comment

Choose a reason for hiding this comment

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

LGTM, added test is awesome 🔥

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.

[Feature] Support for Proxy Contracts
2 participants