Skip to content
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

refactor(position): Extract JSON From Position #495

Merged
merged 17 commits into from
Feb 5, 2025
Merged

Conversation

notJoon
Copy link
Member

@notJoon notJoon commented Feb 3, 2025

Description

  • Extracted the JSON generation part within the function
  • tokenID -> positionID (partial changes)

related with #473

@notJoon notJoon marked this pull request as ready for review February 3, 2025 09:07
@notJoon notJoon requested review from onlyhyde and r3v4s February 3, 2025 09:08
Copy link
Member

@r3v4s r3v4s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like naming is mixed, what's differnene?

lpPositionId
positionId

@notJoon
Copy link
Member Author

notJoon commented Feb 3, 2025

Seems like naming is mixed, what's differnene?

lpPositionId positionId

Nothing. modified it with control+F, so it must have gotten mixed up.

Copy link
Member

@dongwon8247 dongwon8247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change all tokenID to positionID.
lpPositionId to positionID too.

onlyhyde
onlyhyde previously approved these changes Feb 4, 2025
Copy link
Member

@onlyhyde onlyhyde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@dongwon8247 dongwon8247 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notJoon position ID -> positionID, lpPositionId -> PositionId.

Do not request a review until you apply the requested changes to all parts.

contract/r/gnoswap/position/_helper_test.gno Outdated Show resolved Hide resolved
contract/r/gnoswap/position/position_test.gno Show resolved Hide resolved
contract/r/gnoswap/position/position_test.gno Show resolved Hide resolved
contract/r/gnoswap/position/position.gno Show resolved Hide resolved
contract/r/gnoswap/position/position.gno Show resolved Hide resolved
contract/r/gnoswap/position/position.gno Show resolved Hide resolved
contract/r/gnoswap/position/position.gno Show resolved Hide resolved
@notJoon notJoon mentioned this pull request Feb 5, 2025
mconcat
mconcat previously approved these changes Feb 5, 2025
@notJoon
Copy link
Member Author

notJoon commented Feb 5, 2025

@dongwon8247

All comments except the Position ID have been resolved in this commit.

Please note that while variable names should be written without spaces, I didn't reflect that change for comments because they're easier to read with spaces. Variables should be written without spaces, but when text serves as a comment, spaces make it more readable

b2ea39a

dongwon8247
dongwon8247 previously approved these changes Feb 5, 2025
onlyhyde
onlyhyde previously approved these changes Feb 5, 2025
@notJoon notJoon dismissed stale reviews from onlyhyde and dongwon8247 via a6a7b11 February 5, 2025 09:32
@notJoon notJoon requested a review from onlyhyde February 5, 2025 09:41
@onlyhyde onlyhyde merged commit 275bda4 into main Feb 5, 2025
18 of 19 checks passed
@onlyhyde onlyhyde deleted the change-positionID branch February 5, 2025 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants