duneanalytics / duneanalytics/evm.codes

Shareable Playground Links

Open
#380 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
827
Forks
199
Avg merge
15m
Merged PRs (30d)
1

Description

I wanted to open a pull request but I could not as I'm not a collaborator (though I'd like to)

Problem 

When we discover an unusual opcode behaviour or need to file a bug, we currently have to describe the entire setup in words or screenshots. There is no way to give someone a single URL that loads the same source code (Solidity / Yul / Huff), pre‑selects the EVM fork (e.g. Shanghai), populates calldata / constructor args or jumps to the same program counter.

So a shareable link would make reproducing issues, writing tutorials, or embedding interactive examples in blog posts significantly easier.

Proposal

Add a “Share” button in the Playground header that:

  • Converts the current session state into a compact string.

  • Adds it as a ?state= query parameter to https://www.evm.codes/playground.

  • Copies the URL to the clipboard (and shows “Link copied!”).

  • When someone opens the link, the Playground should automatically load that state and show the same setup

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Playground header and trace how the current session state is created and loaded. The work is done when the Share flow encodes the source, EVM fork, inputs, and program counter into a ?state= URL, copies it with confirmation, and restores that setup when opened.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.