Skip to content
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

NODE-2642 Transaction snapshots API #86

Merged
merged 4 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading