WIP: Enshrined Revenue Sharing implementation
Towards https://github.com/ethereum-optimism/client-pod/issues/739
Semgrep found 15 sol-style-notice-over-dev-natspec findings:
- packages/contracts-bedrock/src/L2/RevenueSharer.sol
- packages/contracts-bedrock/scripts/L2Genesis.s.sol
Prefer @notice over @dev in natspec comments
Semgrep found 13 sol-style-doc-comment findings:
- packages/contracts-bedrock/src/L2/RevenueSharer.sol
Javadoc-style comments are not allowed. Use /// style doc comments instead.
Semgrep found 11 golang_fmt_errorf_no_params findings:
- op-plasma/cmd/daserver/flags.go
- op-chain-ops/state/encoding.go
- op-chain-ops/immutables/immutables.go
- op-bindings/bindgen/remote_handlers.go
No fmt.Errorf invocations without fmt arguments allowed
Semgrep found 2 import-text-template findings:
- op-bindings/bindgen/remote_handlers.go
- op-bindings/bindgen/generator_local.go
When working with web applications that involve rendering user-generated content, it's important to properly escape any HTML content to prevent Cross-Site Scripting (XSS) attacks. In Go, the text/template package does not automatically escape HTML content, which can leave your application vulnerable to these types of attacks. To mitigate this risk, it's recommended to use the html/template package instead, which provides built-in functionality for HTML escaping. By using html/template to render your HTML content, you can help to ensure that your web application is more secure and less susceptible to XSS vulnerabilities.
Semgrep found 1 dangerous-exec-command finding:
Detected non-static command inside Command. Audit the input to 'exec.Command'. If unverified user data can reach this call site, this is a code injection vulnerability. A malicious actor can inject a malicious script to execute arbitrary code.
Ignore this finding from dangerous-exec-command.
You should rebase on latest develop - its not necessary to do the bindings thing anymore, we use a forge script to create the L2 genesis, there are instructions here on how to run the command. I believe this is safe to add to the L2 genesis as part of the PR but we should make sure the specs are finalized before adding it to the L2 genesis generation since we don't have good releases of contracts yet :)
i know this is draft but i don't think we should merge it until we align more on the design :)
For sure. I also added WIP to the title, this is far from merging.
This is great so far!
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 5 days.