ssvsigner: break circular dependency with ssv-node#2710
Open
nkryuchkov wants to merge 20 commits intostagefrom
Open
ssvsigner: break circular dependency with ssv-node#2710nkryuchkov wants to merge 20 commits intostagefrom
nkryuchkov wants to merge 20 commits intostagefrom
Conversation
Codecov Report❌ Patch coverage is ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Author
|
@greptileai please review the PR |
Contributor
Greptile SummaryThis PR successfully completes the work of breaking the circular import dependency between Core architectural changes:
Side effects:
Confidence Score: 4/5
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph root["Root SSV Module"]
node["cli/operator/node.go"]
adapter["ekmadapter\nNewDatabaseAdapter(basedb.Database)"]
basedb["storage/basedb\n(Database, Txn, ReadTxn)"]
node --> adapter
adapter --> basedb
end
subgraph ssvsigner["ssvsigner Module (separate go.mod)"]
contracts["ekm/contracts.go\n(Database, ReadTxn, ReadWriteTxn,\nBeaconNetwork, NetworkContext)"]
lkm["ekm/LocalKeyManager"]
rkm["ekm/RemoteKeyManager"]
storage["ekm/SignerStorage"]
protector["ekm/SlashingProtector"]
beaconcfg["internal/beaconcfg/Config"]
testdb["internal/testdb/Store\n(tests only)"]
lkm --> contracts
rkm --> contracts
storage --> contracts
protector --> contracts
beaconcfg -->|implements BeaconNetwork| contracts
end
node -->|NetworkContext\nbeacon = networkConfig.Beacon| contracts
adapter -->|implements ekm.Database| contracts
classDef new fill:#d4edda,stroke:#28a745
class adapter,contracts,beaconcfg,testdb new
Last reviewed commit: c696e7a |
Contributor
Author
|
@greptileai review this again, considering all comments on this PR |
Contributor
Author
|
@greptileai review this again, considering all comments on this PR |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
as per title