-
Notifications
You must be signed in to change notification settings - Fork 566
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
Make test scaffolding for superfluid #1033
Comments
I think as a general guide, we want to have re-usable helper methods, where a module like superfluid doesn't have to reason about the deep internals of other modules. Furthermore, we want to use logic as close to the state machines as possible, for instance when we lock tokens, use MsgLockTokens, unless we're trying to deliberately setup ourselves in a weird state. (Similar for CreateValidator w/ staking, or for running an epoch we should use BeginBlock). We already have helper methods for CreateValidator & BeginBlock in the Concretely, superfluid shouldn't really be directly constructing PoolParams or PoolAssets, or doing swaps to alter spot price. These should be callouts to testing helper methods in the gamm module. Right now the superfluid tests are complex because they:
So I think the next steps are:
|
Per discussion on thursday call, last component was RefresHIntermediaryDelegations |
@ValarDragon to add more details
@mattverse already doing some work on this.
The text was updated successfully, but these errors were encountered: