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

feat(osmoutils): Accumulator AddToPosition, RemoveFromPosition, and GetPositionSize #3856

Merged
merged 23 commits into from
Dec 26, 2022

Conversation

AlpinYukseloglu
Copy link
Contributor

@AlpinYukseloglu AlpinYukseloglu commented Dec 25, 2022

What is the purpose of the change

This PR implements completes the remaining portion of the Accumulator API . Specifically, it implements the AddToPosition, RemoveFromPosition, and GetPositionSize functions, as well as a number of helpers.

It also makes a small refactor to helper logic to reduce duplicate code and aid with testing.

Testing and Verifying

Each added function is thoroughly tested in accum_test.go.

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes? (no)
  • Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? (no)
  • How is the feature or change documented? (not documented)

@AlpinYukseloglu AlpinYukseloglu added the V:state/breaking State machine breaking PR label Dec 25, 2022
Base automatically changed from roman/accumulator2 to main December 25, 2022 09:52
@AlpinYukseloglu AlpinYukseloglu changed the title Accumulator: AddToPosition, RemoveFromPosition, and GetPositionSize feat(osmoutils): Accumulator AddToPosition, RemoveFromPosition, and GetPositionSize Dec 25, 2022
@AlpinYukseloglu AlpinYukseloglu marked this pull request as ready for review December 25, 2022 10:07
Copy link
Member

@p0mvn p0mvn left a comment

Choose a reason for hiding this comment

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

Awesome work! Love the thorough test coverage

All my comments are non-blocking but please take a look before the merge

@AlpinYukseloglu AlpinYukseloglu merged commit a941dbe into main Dec 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V:state/breaking State machine breaking PR
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants