-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
…to differentiate between two versions of BaseClient
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.
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. |
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.
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.
…ignerTransactions util to base client
…rotected to public
- Add version checks - Update class methods
No description provided.