-
Notifications
You must be signed in to change notification settings - Fork 208
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
Add x/stakedym #1126
Add x/stakedym #1126
Conversation
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.
Looks great, thanks for doing this!
Also can you add the store key and fix unit tests?
@@ -0,0 +1,20 @@ | |||
// #nosec G101 | |||
package types |
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.
verified everything but the addresses. Do you have a doc I can use for the addresses?
x/stakedym/types/msgs_test.go
Outdated
@@ -1,950 +0,0 @@ | |||
package types_test |
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.
did you mean to delete this file?
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, good catch, adding back in!
x/stakedym/types/dymension.go
Outdated
DymensionChainId = "dymension_1100-1" | ||
StrideToDymensionTransferChannelId = "channel-197" | ||
DymensionNativeTokenDenom = "adym" | ||
DymensionNativeTokenIBCDenom = "ibc/FF6C2E86490C1C4FBBD24F55032831D2415B9D7882F85C3CC9C2401D79362BEA" // #nosec G101 |
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.
base ❯ dymd q ibc-transfer denom-trace FF6C2E86490C1C4FBBD24F55032831D2415B9D7882F85C3CC9C2401D79362BEA
denom_trace:
base_denom: ustrd
path: transfer/channel-0
Adds x/stakedym module, tested on local->mainnet flow (staking, unstaking, compounding).
Please note, this does not test granular authz permissions, those should be tested separately.
Also note, we will need to update addresses in
x/stakedym/types/dymension.go
.Combed through each file, and made sure any reference to tia could be changed without issue. Also high-level traced through logic and think everything should function smoothly.