Skip to content

Commit

Permalink
remove gogo.. using message response body
Browse files Browse the repository at this point in the history
  • Loading branch information
gohumble committed May 9, 2024
1 parent 9acdc74 commit 2ff26a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions cashu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ service Mint {
rpc Keys(KeysRequest) returns (KeysResponse){
option (google.api.http) = {
get: "/v1/keys"
response_body: "message"
};
};
// Starting https://github.com/cashubtc/nuts/blob/main/02.md
rpc KeySets(KeysRequest) returns (KeysResponse){
option (google.api.http) = {
get: "/v1/keysets"
response_body: "message"
};
};
// Starting https://github.com/cashubtc/nuts/blob/main/03.md
Expand All @@ -39,11 +41,13 @@ service Mint {
option (google.api.http) = {
post: "/v1/mint/quote/bolt11"
body: "*"
response_body: "message"
};
};
rpc MintQuoteState(GetQuoteBolt11StateRequest) returns (PostMintQuoteBolt11Response){
option (google.api.http) = {
get: "/v1/mint/quote/bolt11/{quote_id}"
response_body: "message"
};
};
rpc Mint(PostMintBolt11Request) returns (PostMintBolt11Response){
Expand Down
9 changes: 4 additions & 5 deletions mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ syntax = "proto3";

import "message.proto";
import "signature.proto";
import "gogoproto/gogo.proto";
package cashu.v1;
option go_package = "gen/go/cashurpc";

Expand All @@ -19,10 +18,10 @@ message PostMintQuoteBolt11Request {
}

message PostMintQuoteBolt11Response {
string quote = 1 [(gogoproto.jsontag) = "quotes",(gogoproto.moretags) = "xml=\"dawg\"" ];
string request = 2[(gogoproto.jsontag) = "request"];
bool paid = 3 [(gogoproto.jsontag) = "paid"];
int64 expiry = 4 [(gogoproto.jsontag) = "exp"];
string quote = 1;
string request = 2;
bool paid = 3 ;
sint64 expiry = 4;
}


Expand Down

0 comments on commit 2ff26a0

Please sign in to comment.