Skip to content

Commit

Permalink
NODE-2642 Transaction snapshots API (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
xrtm000 authored Jan 16, 2024
1 parent 5ca3b91 commit cb36bad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<groupId>com.wavesplatform</groupId>
<artifactId>protobuf-schemas</artifactId>
<packaging>jar</packaging>
<version>1.5.1</version>
<version>1.5.2-SNAPSHOT</version>

<name>Waves Node protobuf classes</name>
<description>Waves Node protobuf java classes</description>
Expand Down
11 changes: 11 additions & 0 deletions proto/waves/node/grpc/transactions_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ option go_package = "github.com/wavesplatform/gowaves/pkg/grpc/generated/waves/n

import "waves/recipient.proto";
import "waves/transaction.proto";
import "waves/transaction_state_snapshot.proto";
import "waves/invoke_script_result.proto";

service TransactionsApi {
rpc GetTransactions (TransactionsRequest) returns (stream TransactionResponse);
rpc GetTransactionSnapshots (TransactionSnapshotsRequest) returns (stream TransactionSnapshotResponse);
rpc GetStateChanges (TransactionsRequest) returns (stream InvokeScriptResultResponse) {
option deprecated = true;
};
Expand Down Expand Up @@ -54,6 +56,15 @@ message TransactionsRequest {
repeated bytes transaction_ids = 3;
}

message TransactionSnapshotResponse {
bytes id = 1;
TransactionStateSnapshot snapshot = 2;
}

message TransactionSnapshotsRequest {
repeated bytes transaction_ids = 1;
}

message TransactionsByIdRequest {
repeated bytes transaction_ids = 3;
}
Expand Down

0 comments on commit cb36bad

Please sign in to comment.