ethereum-optimism / ethereum-optimism/optimism

op-service: Go service templating

Open
#14,577 0 comments 0 reactions 0 assignees View on GitHub
A-op-service
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 9h
Merged PRs (30d)
165

Description

The current services in the monorepo are not templated, but do follow similar patterns. Refactoring existing ones will be a big effort, but services should not be difficult to set up.

We have two options:
1. introduce service templating in Go, refactor to use the template as much as we can over time, to not de-dup code.
2. keep the service patterns similar.

Option 2 is the more viable solution for now. A good example of a service scaffolding can be found here: https://github.com/ethereum-optimism/optimism/pull/14270

Long-term we do want to adopt option (1) for more dry code.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.