-
Notifications
You must be signed in to change notification settings - Fork 53
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: Use an static method to create Entities + Split Data and Metadata #110
Conversation
Codecov Report
@@ Coverage Diff @@
## master #110 +/- ##
==========================================
- Coverage 28.12% 27.94% -0.18%
==========================================
Files 54 54
Lines 889 873 -16
Branches 145 142 -3
==========================================
- Hits 250 244 -6
+ Misses 639 629 -10
Continue to review full report at Codecov.
|
data.manifest | ||
) | ||
|
||
const metadata: Metadata = [artifact, manifest] |
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.
Now we have a clear distinction between data and metadata. Probably during creation as well we will handle the overrides of the few contract that miss repos on aragonPM (Kernel, ACL, EVM, etc)
return this.#metadata[1] as AragonManifest | ||
} | ||
|
||
get abi(): Abi { |
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.
I only include getter for really useful properties. Otherwise, the dev can get them from the metadata files.
await repoEntity.create(data) | ||
|
||
return repoEntity | ||
return Repo.create(data, connector) |
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 is how we create the entities now.
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.
😍
No description provided.