Skip to content

Commit

Permalink
mockery stuff
Browse files Browse the repository at this point in the history
Signed-off-by: Shrenuj Bansal <[email protected]>
  • Loading branch information
shrenujb committed Nov 25, 2024
1 parent fffb691 commit 7993aa0
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,28 @@ export interface QueryNextMarketIdRequest {}
/** QueryNextMarketIdRequest is request type for the Query/Params `NextMarketId` */

export interface QueryNextMarketIdRequestSDKType {}
/** QueryNextMarketIdResponse is response type for the Query/Params `NextMarketId` */
/**
* QueryNextMarketIdResponse is response type for the Query/Params
* `NextMarketId`
*/

export interface QueryNextMarketIdResponse {
/** QueryNextMarketIdResponse is response type for the Query/Params `NextMarketId` */
/**
* QueryNextMarketIdResponse is response type for the Query/Params
* `NextMarketId`
*/
nextMarketId: number;
}
/** QueryNextMarketIdResponse is response type for the Query/Params `NextMarketId` */
/**
* QueryNextMarketIdResponse is response type for the Query/Params
* `NextMarketId`
*/

export interface QueryNextMarketIdResponseSDKType {
/** QueryNextMarketIdResponse is response type for the Query/Params `NextMarketId` */
/**
* QueryNextMarketIdResponse is response type for the Query/Params
* `NextMarketId`
*/
next_market_id: number;
}

Expand Down
3 changes: 2 additions & 1 deletion proto/dydxprotocol/perpetuals/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ service Query {
}

// Queries the next perpetual id.
rpc NextPerpetualId(QueryNextPerpetualIdRequest) returns (QueryNextPerpetualIdResponse) {
rpc NextPerpetualId(QueryNextPerpetualIdRequest)
returns (QueryNextPerpetualIdResponse) {
option (google.api.http).get = "/dydxprotocol/perpetuals/next_perpetual_id";
}
}
Expand Down
6 changes: 4 additions & 2 deletions proto/dydxprotocol/prices/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ service Query {
}

// Queries the next market id.
rpc NextMarketId(QueryNextMarketIdRequest) returns (QueryNextMarketIdResponse) {
rpc NextMarketId(QueryNextMarketIdRequest)
returns (QueryNextMarketIdResponse) {
option (google.api.http).get = "/dydxprotocol/prices/next_market_id";
}
}
Expand Down Expand Up @@ -88,5 +89,6 @@ message QueryAllMarketParamsResponse {
// QueryNextMarketIdRequest is request type for the Query/Params `NextMarketId`
message QueryNextMarketIdRequest {}

// QueryNextMarketIdResponse is response type for the Query/Params `NextMarketId`
// QueryNextMarketIdResponse is response type for the Query/Params
// `NextMarketId`
message QueryNextMarketIdResponse { uint32 next_market_id = 1; }
5 changes: 5 additions & 0 deletions protocol/mocks/ClobKeeper.go

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

9 changes: 7 additions & 2 deletions protocol/mocks/PerpetualsKeeper.go

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

5 changes: 5 additions & 0 deletions protocol/mocks/PricesKeeper.go

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

111 changes: 111 additions & 0 deletions protocol/mocks/QueryClient.go

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

30 changes: 30 additions & 0 deletions protocol/mocks/QueryServer.go

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

3 changes: 2 additions & 1 deletion protocol/x/prices/types/query.pb.go

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

0 comments on commit 7993aa0

Please sign in to comment.