-
Notifications
You must be signed in to change notification settings - Fork 627
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
[CL][e2e]: CreateConcentratedPosition #4056
Conversation
Wdyt about pointing this PR to |
0976add
to
59b3bf0
Compare
@p0mvn Current positions: |
tests/e2e/e2e_test.go
Outdated
minTick, maxTick := cl.GetMinAndMaxTicksFromExponentAtPriceOne(sdk.NewInt(precisionFactorAtPriceOne)) | ||
|
||
// Create 2 positions for node1: overlap together, overlap with 2 node3 positions) | ||
node1.CreateConcentratedPosition(initialization.ValidatorWalletName, "[-1200]", "400", fmt.Sprintf("1000%s", denom0), fmt.Sprintf("1000%s", denom1), 0, 0, poolID) |
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.
What matters is using different addressed to create positions from.
We would like to have positions created from the same addresses as well as some different addresses. Overlapping and non-overlapping
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.
yeah, completely makes sense, fixed that. It means there is not really any use anymore for GetNodeAtIndex
I created for this PR. However, it is still a pretty nice function, shall we keep it? wdyt? @p0mvn
tests/e2e/e2e_test.go
Outdated
minTick, maxTick := cl.GetMinAndMaxTicksFromExponentAtPriceOne(sdk.NewInt(precisionFactorAtPriceOne)) | ||
|
||
// Create 2 positions for node1: overlap together, overlap with 2 node3 positions) | ||
node1.CreateConcentratedPosition(initialization.ValidatorWalletName, "[-1200]", "400", fmt.Sprintf("1000%s", denom0), fmt.Sprintf("1000%s", denom1), 0, 0, poolID) |
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.
It is also possible to provide ticks as ints here, but I thought it would be better to make code a little dirtier here, but keep CreateConcentratedPosition
clear by avoiding transforming int-ticks to strings
tests/e2e/e2e_test.go
Outdated
minTick, maxTick := cl.GetMinAndMaxTicksFromExponentAtPriceOne(sdk.NewInt(precisionFactorAtPriceOne)) | ||
|
||
// Create 2 positions for node1: overlap together, overlap with 2 node3 positions) | ||
node1.CreateConcentratedPosition(initialization.ValidatorWalletName, "[-1200]", "400", fmt.Sprintf("1000%s", denom0), fmt.Sprintf("1000%s", denom1), 0, 0, poolID) |
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.
yeah, completely makes sense, fixed that. It means there is not really any use anymore for GetNodeAtIndex
I created for this PR. However, it is still a pretty nice function, shall we keep it? wdyt? @p0mvn
7fd36f9
to
338eb63
Compare
@@ -24,7 +24,7 @@ const ( | |||
// It should be uploaded to Docker Hub. OSMOSIS_E2E_SKIP_UPGRADE should be unset | |||
// for this functionality to be used. | |||
previousVersionOsmoRepository = "osmolabs/osmosis-dev" | |||
previousVersionOsmoTag = "v14.x-de392d2b-1674667154" | |||
previousVersionOsmoTag = "v14.x-6b742c84-1675172347" |
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.
How were you able to push the update? Is it correctly auto-pushing to Docker hub 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.
we had #3503 this workflow to push osmosis-dev images
Closes: #4055
What is the purpose of the change
This PR adds a function -
CreateConcentratedPosition
- that creates a concentrated positionBrief Changelog
CreateConcentratedPosition
added tocommands.go
Testing and Verifying
Testing blocked before #4038 is merged
Documentation and Release Note
no