Skip to content

Commit

Permalink
add encoded to withdrawal bundle event
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-L2L committed Nov 11, 2024
1 parent 47d022d commit 7f184f2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions proto/cusf/mainchain/v1/validator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,23 @@ message Deposit {
Output output = 3;
}

enum WithdrawalBundleEventType {
WITHDRAWAL_BUNDLE_EVENT_TYPE_UNSPECIFIED = 0;
WITHDRAWAL_BUNDLE_EVENT_TYPE_SUBMITTED = 1;
WITHDRAWAL_BUNDLE_EVENT_TYPE_FAILED = 2;
WITHDRAWAL_BUNDLE_EVENT_TYPE_SUCCEDED = 3;
}

message WithdrawalBundleEvent {
message Event {
message Failed {
}
message Succeeded {
cusf.common.v1.ConsensusHex transaction = 1;
}
message Submitted {
}
oneof event {
Failed failed = 1;
Succeeded succeeded = 2;
Submitted submitted = 3;
}
}
cusf.common.v1.ConsensusHex m6id = 1;
WithdrawalBundleEventType withdrawal_bundle_event_type = 2;
Event event = 2;
}

// Specific to an individual sidechain slot
Expand Down

0 comments on commit 7f184f2

Please sign in to comment.