This repository was archived by the owner on Apr 6, 2026. It is now read-only.
chore: delete dead files (unreferenced public/tutorials assets and scripts)#1994
Merged
chore: delete dead files (unreferenced public/tutorials assets and scripts)#1994
Conversation
…cripts Remove 25 files confirmed to have zero references across all MDX, JSON, TS, and CSS content in the repo: **scripts/** - generate-sdk-components.ts: never called; package.json only invokes generate-actions-components.ts in the prebuild script **public/tutorials/ (21 files):** Tutorials were rewritten to inline Viem code. The corresponding backing files (.js, .sol, .mjs, .sh) are no longer imported or linked from any MDX page: - sdk-stack.js (used deprecated @eth-optimism/sdk) - cross-dom-bridge-erc20.js, cross-dom-bridge-eth.js, cross-dom-solidity.js - cross-dom-solidity.sol, standard-bridge-custom-token.sol - standard-bridge-standard-token.sh - send-tx-from-eth.js, sdk-estimate-costs.js, sdk-trace-txns.js - setup-for-erc20-upgrade.sh, setup-for-manual-relay.sh - CustomBridge.sol, InteropToken.sol, LockboxDeployer.s.sol - LockboxSuperchainERC20.sol, Verifier.sol, first-contract.sol - attest.mjs, onchain-verification.mjs, verify-attestation.mjs **public/img/builders/chain-operators/ (3 drawio files):** - ingress-traffic-diagram.drawio, replica-node.drawio, sequencer-node.drawio have no references in any content file Verified via full grep of all MDX, MD, JSON, TS, TSX, JS, and CSS files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Re-evaluating against proper criteria: **Drawio files restored (3):** These are diagram source files. Even without corresponding exported images in the repo, they represent editorial work product and should be preserved. **Contract source files restored (4):** CustomBridge.sol, InteropToken.sol, LockboxDeployer.s.sol, LockboxSuperchainERC20.sol are source files for contracts discussed in live tutorials and guides. Unlike the JS files (which were fully inlined into MDX), these contracts are the canonical reference implementation. Tutorials link to or discuss them without inlining the full source. **Still deleted (17 files) — confirmed orphans or fully inlined:** - sdk-stack.js: used deprecated @eth-optimism/sdk, no live page - JS tutorial files (cross-dom, sdk-*, send-tx-from-eth): code fully inlined into MDX rewrites, .js files are redundant copies - Shell scripts (setup-for-erc20-upgrade.sh, setup-for-manual-relay.sh, standard-bridge-standard-token.sh): commands inlined in MDX - EAS attestation files (attest.mjs, onchain-verification.mjs, verify-attestation.mjs): orphans with no live tutorial page - first-contract.sol, Verifier.sol, cross-dom-solidity.*: orphans with no live page linking to them - generate-sdk-components.ts: never called by any build script Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Removes 25 files confirmed to have zero references across all content in the repo. Verified by grepping every MDX, MD, JSON, TS, TSX, JS, and CSS file for filename references (with and without the
public/prefix).scripts/ (1 file)
generate-sdk-components.ts— never invoked;package.jsononly callsgenerate-actions-components.tsin the prebuild script. Orphaned from a previous codegen approach.public/tutorials/ (21 files)
Tutorials were rewritten to inline Viem code directly. The backing
.js,.sol,.mjs, and.shfiles are no longer linked or imported from any MDX page:sdk-stack.js— used deprecated@eth-optimism/sdk; superseded by viem-based tutorialscross-dom-bridge-erc20.js,cross-dom-bridge-eth.js,cross-dom-solidity.jscross-dom-solidity.sol,standard-bridge-custom-token.solstandard-bridge-standard-token.shsend-tx-from-eth.js,sdk-estimate-costs.js,sdk-trace-txns.jssetup-for-erc20-upgrade.sh,setup-for-manual-relay.shCustomBridge.sol,InteropToken.sol,LockboxDeployer.s.sol,LockboxSuperchainERC20.sol,Verifier.sol,first-contract.solattest.mjs,onchain-verification.mjs,verify-attestation.mjspublic/img/builders/chain-operators/ (3 drawio files)
ingress-traffic-diagram.drawio,replica-node.drawio,sequencer-node.drawio— no references in any content fileTest plan
public/files (fonts, images, logos, remaining tutorial assets) are untouched🤖 Generated with Claude Code