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

Adding isCleanUp to Transaction #38

Merged
merged 6 commits into from
Oct 28, 2022
Merged

Conversation

tinystarinagalaxy
Copy link
Contributor

No description provided.

@tinystarinagalaxy tinystarinagalaxy marked this pull request as ready for review October 27, 2022 18:30
proto/api.proto Outdated
@@ -610,6 +610,11 @@ message PostCancelAllRequest {
repeated string openOrdersAddresses = 3;
}

message Transaction {
Copy link

Choose a reason for hiding this comment

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

@DimaCantemir suggestion:

message TransactionMessage {
    string content = 1;
    bool isCleanup = 2;
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link

@aspin aspin left a comment

Choose a reason for hiding this comment

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

thoughts on if you want to make this universal, including endpoints that only return a single transaction? I'm a little mixed on the consistency of all endpoints vs. teh useless data fields

@tinystarinagalaxy
Copy link
Contributor Author

thoughts on if you want to make this universal, including endpoints that only return a single transaction? I'm a little mixed on the consistency of all endpoints vs. the useless data fields

what specific endpoint you have in mind? I checked all other endpoints. they look clean to me so far. there is some validity with the consistency point that you are raising.

if it looks awkwardly inconsistent, we can apply the same change later as well. it's a minor change.

@aspin
Copy link

aspin commented Oct 28, 2022

thoughts on if you want to make this universal, including endpoints that only return a single transaction? I'm a little mixed on the consistency of all endpoints vs. the useless data fields

what specific endpoint you have in mind? I checked all other endpoints. they look clean to me so far. there is some validity with the consistency point that you are raising.

if it looks awkwardly inconsistent, we can apply the same change later as well. it's a minor change.

I was thinking all of them, for example

message PostOrderResponse {
  string transaction = 1;
  string openOrdersAddress = 2;
}

I'm leaning a bit more to consistency of fields vs. the unnecessary ones, but could be swayed either way. any thoughts @DimaCantemir @kdonthi @atulsriv @yobloxroute ?

@atulsriv
Copy link
Contributor

thoughts on if you want to make this universal, including endpoints that only return a single transaction? I'm a little mixed on the consistency of all endpoints vs. the useless data fields

what specific endpoint you have in mind? I checked all other endpoints. they look clean to me so far. there is some validity with the consistency point that you are raising.
if it looks awkwardly inconsistent, we can apply the same change later as well. it's a minor change.

I was thinking all of them, for example

message PostOrderResponse {
  string transaction = 1;
  string openOrdersAddress = 2;
}

I'm leaning a bit more to consistency of fields vs. the unnecessary ones, but could be swayed either way. any thoughts @DimaCantemir @kdonthi @atulsriv @yobloxroute ?

I think consistency of fields looks a bit cleaner. Not sure how much it really matters vs. keeping the unnecessary fields, but it looks better imo.

@tinystarinagalaxy
Copy link
Contributor Author

PostOrderResponse

hmm, that would be a bigger change, let's create a ticket for it, if we decide to go for all.

@tinystarinagalaxy
Copy link
Contributor Author

PostOrderResponse

hmm, that would be a bigger change, let's create a ticket for it, if we decide to go for all.

i merge this for now

@tinystarinagalaxy tinystarinagalaxy merged commit 2c8f750 into develop Oct 28, 2022
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