-
Notifications
You must be signed in to change notification settings - Fork 1k
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
WIP: Contract Interaction Plugin #5474
Draft
DOBEN
wants to merge
13
commits into
ethereum:master
Choose a base branch
from
Contract-Interaction-Remix-Plugin:contract-interaction-remix-plugin
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.
Draft
WIP: Contract Interaction Plugin #5474
DOBEN
wants to merge
13
commits into
ethereum:master
from
Contract-Interaction-Remix-Plugin:contract-interaction-remix-plugin
Conversation
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
👷 Deploy request for remixproject pending review.Visit the deploys page to approve it
|
DOBEN
force-pushed
the
contract-interaction-remix-plugin
branch
from
December 11, 2024 12:44
1f16d9c
to
444a3ca
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A new plugin is added to the existing Remix plugins. The plugin is an adapted version of the verification plugin (clean-up of unused functionality still needed): https://github.com/ethereum/remix-project/tree/master/apps/contract-verification.
The plan is to add 3 features:
Feature 1: Fetching ABI from blockexplorers/sourcify (for a verified contract address) to get a UI to interact with a contract (similar to the UI in the
Deploy & Run transactions
tab).It could have four sections for
proxyread
/proxywrite
/implementationread
/implementationwrite
category.https://github.com/DOBEN/ETHGlobal2024
This feature does not add much value on its own (similar to fetching the source files from the block explorer https://github.com/ethereum/remix-project/blob/master/apps/contract-verification/src/app/Verifiers/EtherscanVerifier.ts#L217), but this step can be seen as a preparation for easily achieving Feature 2 once block explorers provide an API endpoint for fetching decode ABI.
Feature 2: Fetching/Decoding ABI (for unverified contract addresses) to get a UI to interact with a contract (similar to the UI in the
Deploy & Run transactions
tab) and lookup the decoded function selectors in a function selector database.We hope for a public API to query decoded ABI from blockscout database (up to blockscout’s discretion so when and if this will be available).
blockscout/blockscout#11099