Skip to content

Commit

Permalink
Added two new requests for access API for system transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Nov 21, 2023
1 parent 8e40789 commit 2d1cd4c
Show file tree
Hide file tree
Showing 7 changed files with 353 additions and 162 deletions.
12 changes: 12 additions & 0 deletions protobuf/flow/access/access.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ service AccessAPI {
// GetTransactionsByBlockID gets all the transactions for a specified block
rpc GetTransactionsByBlockID(GetTransactionsByBlockIDRequest)
returns (TransactionsResponse);
// GetSystemTransaction gets a system transaction
rpc GetSystemTransaction(GetSystemTransactionRequest) returns (TransactionResponse);
// GetSystemTransactionResult gets a system transaction result for a
// specified block
rpc GetSystemTransactionResult(GetSystemTransactionResultRequest) returns (TransactionResultResponse);


// Accounts

Expand Down Expand Up @@ -235,6 +241,12 @@ message GetTransactionRequest {
entities.EventEncodingVersion event_encoding_version = 4;
}

message GetSystemTransactionRequest {}

message GetSystemTransactionResultRequest {
bytes block_id = 1;
}

message GetTransactionByIndexRequest {
bytes block_id = 1;
uint32 index = 2;
Expand Down
375 changes: 225 additions & 150 deletions protobuf/go/flow/access/access.pb.go

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions protobuf/go/flow/access/access_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions protobuf/go/flow/execution/execution_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 22 additions & 12 deletions protobuf/go/flow/executiondata/executiondata_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions protobuf/go/flow/legacy/access/access_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions protobuf/go/flow/legacy/execution/execution_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d1cd4c

Please sign in to comment.