Skip to content

Commit

Permalink
Separate message for new lease
Browse files Browse the repository at this point in the history
  • Loading branch information
phearnot committed Nov 20, 2023
1 parent 80142c0 commit 621481e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 26 deletions.
4 changes: 2 additions & 2 deletions proto/waves/events/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ message StateUpdate {

message DataEntryUpdate {
bytes address = 1;
DataTransactionData.DataEntry data_entry = 2;
DataTransactionData.DataEntry data_entry_before = 10;
DataEntry data_entry = 2;
DataEntry data_entry_before = 10;
}

message AssetStateUpdate {
Expand Down
2 changes: 1 addition & 1 deletion proto/waves/invoke_script_result.proto
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ message InvokeScriptResult {
InvokeScriptResult stateChanges = 4;
}

repeated DataTransactionData.DataEntry data = 1;
repeated DataEntry data = 1;
repeated Payment transfers = 2;
repeated Issue issues = 3;
repeated Reissue reissues = 4;
Expand Down
2 changes: 1 addition & 1 deletion proto/waves/node/grpc/accounts_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ message BalanceResponse {

message DataEntryResponse {
bytes address = 1;
DataTransactionData.DataEntry entry = 2;
DataEntry entry = 2;
}

message ScriptData {
Expand Down
18 changes: 9 additions & 9 deletions proto/waves/transaction.proto
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ message CreateAliasTransactionData {
string alias = 1;
};

message DataTransactionData {
message DataEntry {
string key = 1;
oneof value {
int64 int_value = 10;
bool bool_value = 11;
bytes binary_value = 12;
string string_value = 13;
};
message DataEntry {
string key = 1;
oneof value {
int64 int_value = 10;
bool bool_value = 11;
bytes binary_value = 12;
string string_value = 13;
};
};

message DataTransactionData {
repeated DataEntry data = 1;
};

Expand Down
23 changes: 10 additions & 13 deletions proto/waves/transaction_state_snapshot.proto
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,18 @@ message TransactionStateSnapshot {
int64 out = 3;
}

message LeaseState {
message NewLease {
bytes lease_id = 1;
oneof status {
Active active = 21;
Cancelled cancelled = 22;
}
message Active {
int64 amount = 1;
bytes sender = 2;
bytes recipient = 3;
}
message Cancelled {}
bytes sender_public_key = 2;
bytes recipient_address = 3;
int64 amount = 4;
}

message AssetStatic {
message CancelledLease {
bytes lease_id = 1;
}

message NewAsset {
bytes asset_id = 1;
bytes issuer_public_key = 2;
int32 decimals = 3;
Expand Down Expand Up @@ -90,7 +87,7 @@ message TransactionStateSnapshot {

message AccountData {
bytes address = 1;
repeated DataTransactionData.DataEntry entries = 2;
repeated DataEntry entries = 2;
}

message Sponsorship {
Expand Down

0 comments on commit 621481e

Please sign in to comment.