Skip to content

Commit

Permalink
add notification messages and disable some lint rules for them
Browse files Browse the repository at this point in the history
  • Loading branch information
havan committed Sep 20, 2024
1 parent 8912177 commit 27df0fe
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
4 changes: 4 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ modules:
lint:
use:
- STANDARD
ignore_only:
RPC_REQUEST_STANDARD_NAME:
- proto/cmp/services/notification/v1/notify.proto
rpc_allow_google_protobuf_empty_responses: true
breaking:
use:
- FILE
Expand Down
2 changes: 1 addition & 1 deletion proto/cmp/services/book/v1/mint.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ message MintResponse {
// (buyer) bot after the buy operation and passed to the distributor middleware
// (partner plugin) in the mint response.
//
// This fielld is not meant for the supplier.
// This field is not meant for the supplier.
string buy_transaction_id = 10;
}

Expand Down
22 changes: 22 additions & 0 deletions proto/cmp/services/notification/v1/notify.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

package cmp.services.notification.v1;

import "cmp/types/v1/uuid.proto";
import "google/protobuf/empty.proto";

message TokenBought {
uint64 token_id = 1;
string tx_id = 2;
cmp.types.v1.UUID mint_id = 3;
}

message TokenExpired {
uint64 token_id = 1;
cmp.types.v1.UUID mint_id = 2;
}

service NotificationService {
rpc TokenBoughtNotification(TokenBought) returns (google.protobuf.Empty);
rpc TokenExpiredNotification(TokenExpired) returns (google.protobuf.Empty);
}

0 comments on commit 27df0fe

Please sign in to comment.