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

Removing the limit from GetRaydiumQuotesRequest #119

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6,346 changes: 3,168 additions & 3,178 deletions api/api.pb.go

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions js/ffi/proto/api_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1933,8 +1933,6 @@ export class GetRaydiumQuotesRequest extends jspb.Message {
setInamount(value: number): GetRaydiumQuotesRequest;
getSlippage(): number;
setSlippage(value: number): GetRaydiumQuotesRequest;
getLimit(): number;
setLimit(value: number): GetRaydiumQuotesRequest;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): GetRaydiumQuotesRequest.AsObject;
Expand All @@ -1952,7 +1950,6 @@ export namespace GetRaydiumQuotesRequest {
outtoken: string,
inamount: number,
slippage: number,
limit: number,
}
}

Expand Down
32 changes: 1 addition & 31 deletions js/ffi/proto/api_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -20044,8 +20044,7 @@ proto.api.GetRaydiumQuotesRequest.toObject = function(includeInstance, msg) {
intoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
outtoken: jspb.Message.getFieldWithDefault(msg, 2, ""),
inamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
slippage: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
limit: jspb.Message.getFieldWithDefault(msg, 5, 0)
slippage: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0)
};

if (includeInstance) {
Expand Down Expand Up @@ -20098,10 +20097,6 @@ proto.api.GetRaydiumQuotesRequest.deserializeBinaryFromReader = function(msg, re
var value = /** @type {number} */ (reader.readDouble());
msg.setSlippage(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt32());
msg.setLimit(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -20159,13 +20154,6 @@ proto.api.GetRaydiumQuotesRequest.serializeBinaryToWriter = function(message, wr
f
);
}
f = message.getLimit();
if (f !== 0) {
writer.writeInt32(
5,
f
);
}
};


Expand Down Expand Up @@ -20241,24 +20229,6 @@ proto.api.GetRaydiumQuotesRequest.prototype.setSlippage = function(value) {
};


/**
* optional int32 limit = 5;
* @return {number}
*/
proto.api.GetRaydiumQuotesRequest.prototype.getLimit = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
* @param {number} value
* @return {!proto.api.GetRaydiumQuotesRequest} returns this
*/
proto.api.GetRaydiumQuotesRequest.prototype.setLimit = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};



/**
* List of repeated fields within this message type.
Expand Down
1 change: 0 additions & 1 deletion proto/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,6 @@ message GetRaydiumQuotesRequest {
string outToken = 2;
double inAmount = 3;
double slippage = 4;
int32 limit = 5;
}

message GetRaydiumQuotesResponse{
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "bxsolana-trader-proto"
version = "0.0.36"
version = "0.0.37"
description = "proto-generated files for solana-trader-api"
dependencies = [
"betterproto==v2.0.0b5"
Expand Down
1 change: 0 additions & 1 deletion python/src/bxsolana_trader_proto/api/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions swagger-ui
Original file line number Diff line number Diff line change
Expand Up @@ -3305,13 +3305,6 @@
"required": false,
"type": "number",
"format": "double"
},
{
"name": "limit",
"in": "query",
"required": false,
"type": "integer",
"format": "int32"
}
],
"tags": [
Expand Down