-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: phase-1: reorganize source files into chains, orchestrator and zetacore packages #2150
refactor: phase-1: reorganize source files into chains, orchestrator and zetacore packages #2150
Conversation
…aces to chains; renamed source files; deleted unused files
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #2150 +/- ##
========================================
Coverage 72.34% 72.34%
========================================
Files 250 249 -1
Lines 14046 14007 -39
========================================
- Hits 10162 10134 -28
+ Misses 3423 3412 -11
Partials 461 461
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the doc:
-
I think we should rename
Client
toObserver
for the logic managing watching inbounds and outbounds, since the Signer can also be considered as a client to would clarify differences. Any opposition against this? -
I think we can use two dsub packages fr signer and observer for each chains
We've been on the same page. I just included the renaming part right in this same PR in commit 6a2a68a . A new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
Just one thing: I think we can rename CoreClient
into ZetacoreClient
CoreClient is a bit unclear
Now variables are unified as |
The sub packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, it seems some files are without tests, but not sure if those are added now or moved, so just to make sure we are tracking missing coverage for those
This PR didn't add things, it just renamed/reorganized things into proper packages |
Description
This PR is just a high-level package reorg according the doc. It does not touch the contents of existing structs. To reorganize the structs, I'll create new PR to do it.
chains
package to containbitcoin
,evm
andinterfaces
app_context
andcore_context
as one single packagecontext
zetabridge
aszetacore
and dropped usages ofzeta bridge
orbridge
in source code.orchestrator
to contain existingztacore_observerXXX
files and renamed methods/variables asorchestrator
accordingly.observer.go
,signer.go
in each chain package; renamed struct names asObserver
andSigner
accordingly. TheEVM Client
andBTC Client
were completely dropped.observer_outbound.go
andobserver_inbound.go
respectively, leavingobserver.go
containing non-observation logic.errors
(it contains 2 constants which were moved to the package that uses them).Closes:
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: