Assist with code verification process
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 218
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
### What is wrong?
There's currently no easy way to get Fe code verified on Etherscan. Getting the code verified on Etherscan is needed for people to actually see the source code for the deployed contract as well as see and use the ABI via Etherscan directly.
There are two possible scenarios for verification:
#### Verification of YUL code
Since Fe is based on YUL and uses the solidity compiler under the hood it should be straight forward to verify the YUL code. (In theory, in practice [I ran into an issue that I'm trying to resolve with Etherscan](https://twitter.com/cburgdorf/status/1397856688972124162))
We could add a new `--emit` target such as `json` which would be soliditys standard json interface that we are using under the hood anyway and that the verification tool can work with.
Alternatively we could even go further and use the etherscan verification API directly and provide a new subcommand (`fe etherscan-verify
`) that does the verification via etherscans API.### Verification of Fe code
To verify Fe code directly we will need the help of the Etherscan team to integrate the Fe compiler. If they do that we can still assist with a dedicated verify command as described above.
### How can it be fixed
First waiting to get the pesty issue resolved that is keeping me from verifying the YUL code and waiting for their response.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no files or tests. Start by resolving the Etherscan verification blocker and comparing the proposed `--emit json` target with the `fe etherscan-verify
` path. Done means there is a settled, implementable approach for verifying generated YUL or Fe code through Etherscan.Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, solidity
- Domain
- blockchain, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100