Repo restructure #189
andrew-fleming
started this conversation in
Ideas
Replies: 2 comments
-
I agree with moving forward with option 3. |
Beta Was this translation helpful? Give feedback.
0 replies
-
In a different but related matter, I also propose the following groupings for now:
And then I eventually foresee something like this: token
access
Maybe it's better for shielded to be the default and non-shielded modules should instead have the prefix |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since we now have quite a few modules, I think it's time to consider how the repo should be structured and what releases will look like.
I propose three ideas and the tradeoffs as I see them:
1. Separate contract packages
This basically follows the current structure with the difference that we consolidate modules into subpackages:
Pros:
Ownable
, you don't need to install everythingCons:
2. Single
contracts
package with colocated testsPros:
Cons:
3. Single
contracts
package with external testsPros:
#2
#2
Cons:
#2
*Side note: We could create a
common
directory intest/
for sim and mocks to make them shareable for more complex features. IMO that's not necessary now thoughObviously, there are other structures we can consider. Perhaps, there's a hybrid structure that supports the transitive deps issue and gives users the freedom to only install a single package (we offer the all-inclusive openzeppelin package as well as individual subpackages in Contracts for Cairo).
For now, I think
#3
is overall the best route to take while the repo is small and still experimental. LMK what y'all think @emnul @0xiskBeta Was this translation helpful? Give feedback.
All reactions