From cb36bade7103f001ea018139632c9837abc9d357 Mon Sep 17 00:00:00 2001 From: Artyom Sayadyan Date: Tue, 16 Jan 2024 08:40:53 +0300 Subject: [PATCH] NODE-2642 Transaction snapshots API (#86) --- pom.xml | 2 +- proto/waves/node/grpc/transactions_api.proto | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 99412c9..8979c9b 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ com.wavesplatform protobuf-schemas jar - 1.5.1 + 1.5.2-SNAPSHOT Waves Node protobuf classes Waves Node protobuf java classes diff --git a/proto/waves/node/grpc/transactions_api.proto b/proto/waves/node/grpc/transactions_api.proto index 0982ec6..c17170d 100644 --- a/proto/waves/node/grpc/transactions_api.proto +++ b/proto/waves/node/grpc/transactions_api.proto @@ -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; }; @@ -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; }