-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cancellation Message Types #52
base: dev
Are you sure you want to change the base?
Conversation
// Response header | ||
cmp.types.v1.ResponseHeader header = 1; | ||
|
||
// Accept counter cancellation transaction ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Accept counter cancellation transaction ID | |
// Accept counter cancellation on-chain transaction ID for registration of the event to avoid disputes |
// Response header | ||
cmp.types.v1.ResponseHeader header = 1; | ||
|
||
// Accept cancellation transaction ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Accept cancellation transaction ID | |
// Accept counter cancellation on-chain transaction ID for registration of the event to avoid disputes |
// Response Header | ||
cmp.types.v1.ResponseHeader header = 1; | ||
|
||
// Transaction id for the rejected cancellation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Transaction id for the rejected cancellation | |
// On-chain transaction id for the rejected cancellation for registration of the event to avoid disputes |
|
||
// The amount to be refunded | ||
cmp.types.v2.Price refund_amount = 3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add field with enum for cancellation reason
|
||
// Cancellation token ID | ||
uint64 token_id = 2; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add reason to cancel the cancellation with an enum
Summary of Changes
buf.yaml
ignore_only
lint configuration to includeproto/cmp/services/notification/v2/notify.proto
underRPC_REQUEST_STANDARD_NAME
. (To allow empty responses for the notification endpoints)Cancellation Service Protos:
.proto
files for handling various aspects of cancellation services withinproto/cmp/services/cancellation/v1/
:accept.proto
: DefinesAcceptCancellationRequest
andAcceptCancellationResponse
messages for accepting cancellation requests.accept_counter.proto
: DefinesAcceptCounterCancellationRequest
andAcceptCounterCancellationResponse
messages for accepting countered cancellations.cancel_proposal.proto
: DefinesCancelCancellationRequest
andCancelCancellationResponse
for active cancellation proposal cancellations.counter.proto
: DefinesCounterCancellationRequest
andCounterCancellationResponse
for countering cancellations.initiate.proto
: DefinesInitiateCancellationRequest
andInitiateCancellationResponse
for initiating cancellation requests.reject.proto
: DefinesRejectCancellationRequest
andRejectCancellationResponse
with a detailedCancellationRejectionReason
enum to cover various rejection scenarios.check.proto
: DefinesCheckCancellationRequest
,CheckCancellationResponse
and the relatedCheckCancellationService
.services.proto
file underv1
includes theCancellationService
, which unifies the above functionalities under defined RPC methods.Notification Service Updates:
proto/cmp/services/notification/v1/notify.proto
with a diagram link for service documentation.NotificationService
version underproto/cmp/services/notification/v2/notify.proto
to expand notification events related to cancellation:CancellationPending
CancellationAccepted
CancellationProposalAcceptedByTheOwner
CancellationCountered
CancellationProposalCancelled
CancellationRejected