dethcrypto / dethcrypto/dethcode
Feature Request: Split single file verifications into different files.
- 主要语言
- TypeScript
- 星标
- 1.4k
- 派生
- 109
- PR 合并指标
- 30 天内没有已合并 PR
描述
Some contracts on Etherscan get verified as a single flat file making it hard to navigate them.
Here is a random example I took from the Etherscan's list of verified contracts.
https://etherscan.io/address/0x38b1c1be183a480835e9bc63c5acfd18eedd1cb0#code
I believe that can be accomplished by splitting the files at the terms:
- contract
- library
- abstract
- interface
The simply generating the import statements in each file for every other file even if not used as well as pragma statement for solidity version. Given they are all in same directory that is possible.
Given that the original file is flattened (does not have imports) that could work and will help study the contract better even if a few extra imports are generated. I assume those will be highlighted in VSCode.
贡献指南
调研方向
Start by tracing the Etherscan contract-verification flow and how flattened Solidity source is currently handled; the issue names no implementation files or tests. Define completion as producing separate files at contract, library, abstract, and interface declarations, with the Solidity pragma and generated imports present in each file.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- solidity, typescript
- 领域
- blockchain, tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100