Skip to content

feat(order): Create an ordering class for limit and recurring orders #105

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

Merged
merged 29 commits into from
May 29, 2025

Conversation

gulcinuras
Copy link
Contributor

No description provided.

@gulcinuras gulcinuras requested a review from jamcry May 12, 2025 15:18
@gulcinuras gulcinuras self-assigned this May 12, 2025
…to differentiate between two versions of BaseClient
@jamcry jamcry requested a review from Copilot May 13, 2025 15:14
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces an ordering class to support both limit and recurring orders while refactoring related utilities and updating client implementations. Key changes include:

  • The addition of a new intToBytes utility in src/util/util.ts and its consolidation across the codebase.
  • The creation of new order-specific modules (types, constants, and utilities) to support the ordering functionality.
  • Updates to the TinymanBaseClient in several modules to use generics and improve error handling for missing application IDs.

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 1 comment.

File Description
src/util/util.ts Added intToBytes helper with bitwise logic and ESLint disable/enable comments.
src/util/client/base/* Refactored BaseClient to use generics and improved error checking.
src/order/* Introduced order utilities, types, and constants for limit and recurring orders.
src/liquid-stake/, src/governance/ Updated import paths and removed duplicate intToBytes implementations.

Copy link
Collaborator

@jamcry jamcry left a comment

Choose a reason for hiding this comment

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

Thanks @gulcinuras looks good overall! Left a few comments

Also added GitHub Copilot AI as a reviewer. It's not replacement for real reviewers yet but it is useful for catching small stuff like typos, or forgotten TODOs etc.

@gulcinuras gulcinuras requested review from jamcry and etzellux May 28, 2025 13:39
@gulcinuras gulcinuras merged commit ecc6fdc into main May 29, 2025
@gulcinuras gulcinuras deleted the feat/order-client branch May 29, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants