Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 450 Bytes
syntax='proto3';
// The package name must be exactly Chronos.{AggregateName}
package Chronos.BankAccount;
// The Aggregate message's name must match the AggregateName above exactly
message BankAccount {
string owner = 1;
int32 balance = 2;
bool isClosed = 3;
}
message CreateEvent {
string owner = 1;
int32 amount = 2;
}
message DepositEvent {
int32 amount = 1;
}
message WithdrawEvent {
int32 amount = 1;
}
message CloseEvent {
}