-
Notifications
You must be signed in to change notification settings - Fork 103
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
[SG-235] feat: integrate token factory #803
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #803 +/- ##
==========================================
+ Coverage 10.54% 10.56% +0.02%
==========================================
Files 98 119 +21
Lines 14227 17999 +3772
==========================================
+ Hits 1500 1902 +402
- Misses 12635 15967 +3332
- Partials 92 130 +38
☔ View full report in Codecov by Sentry. |
Hey, I will ask @larry0x if this is a good implementation. Scary piece about the token factory is that there are so many versions. @Reecepbcups did a pretty nice one for Juno though and I'm going to promote it. |
This PR seems to be simply copy-pasting code in the Osmosis repo over. This is probably the better solution over importing Confio or Juno's fork imo, because when Osmosis finally spins off their module into a separate repo you can simply delete the code copied over and import that repo instead. If using a forked version I'd be worried about incompatibilities. A few suggestions:
I'm happy to PRs on these if you prefer (i.e. I will make PRs targeting your branch) |
Thanks for the feedback on the PR @larry0x
|
seems we're on the same page on most of this. Thanks very much for your review Larry. to my knowledge no one knows exactly what to do about token factory. Maybe I should open an issue on osmo and try to get juno changes upstreamed. I think both osmo and juno hoped to have it in wasmd as a first class citizen, and we (notional) maintain this thing: https://github.com/notional-labs/wasmd/releases/tag/v0.40.0-tf.rc4 but tbh the more I think about it the more it feels like some sort of monstrosity. I like the modularity idea, however, there's just not a canonical source. @Reecepbcups tried to make one (valiant effort) github.com/cosmostokenfactory -- but then there were maintenance issues wrt juno. Tbh I am mildly out of ideas. |
I think it doesn't necessarily need to be in wasmd, but definitely has to be a separate repo Sunny seems to want it upstreamed to cosmos-sdk repo, which would take muuuuuch longer to happen Please push for the spin off to happen Jacob |
@larry0x -- spinoff happened and was cancelled, imo for good reason. I like this idea of putting it in cosmos-sdk tbh. A lot. I would need to see if I can muster the troops to refactor it tho. |
Closes: #700
Bringing in the Osmosis token factory (as of Osmosis v15.1.0) to Stargaze.
The module additionally includes the changes by @larry0x which allows the denom creation to consume gas if denom creation fee is set to zero. Ref: #803 (comment) & osmosis-labs/osmosis#4983