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

[Access] Add endpoints to execution nodes to support tx result err msgs #1398

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
40 changes: 38 additions & 2 deletions protobuf/flow/execution/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,28 @@ service ExecutionAPI {
rpc GetTransactionResult(GetTransactionResultRequest)
returns (GetTransactionResultResponse);

// GetTransactionResultByIndex gets the result of a transaction at the index .
// GetTransactionResultByIndex gets the result of a transaction at the index.
rpc GetTransactionResultByIndex(GetTransactionByIndexRequest)
returns (GetTransactionResultResponse);

// GetTransactionResultByIndex gets the results of all transactions in the
// block ordered by transaction index
// block ordered by transaction index.
rpc GetTransactionResultsByBlockID(GetTransactionsByBlockIDRequest)
returns (GetTransactionResultsResponse);

// GetTransactionErrorMessage gets the error messages of a failed transaction by id.
rpc GetTransactionErrorMessage(GetTransactionErrorMessageRequest)
returns (GetTransactionErrorMessagesResponse);

// GetTransactionErrorMessageByIndex gets the error messages of a failed transaction at the index.
rpc GetTransactionErrorMessageByIndex(GetTransactionErrorMessageByIndexRequest)
returns (GetTransactionErrorMessagesResponse);

// GetTransactionErrorMessagesByBlockID gets the error messages of all failed transactions in the
// block ordered by transaction index.
rpc GetTransactionErrorMessagesByBlockID(GetTransactionErrorMessagesByBlockIDRequest)
returns (GetTransactionErrorMessagesResponse);

// Registers

// GetRegisterAtBlockID collects a register at the block with the given ID (if
Expand Down Expand Up @@ -141,6 +154,29 @@ message GetTransactionResultsResponse {
entities.EventEncodingVersion event_encoding_version = 2;
}

message GetTransactionErrorMessageRequest {
bytes block_id = 1;
bytes transaction_id = 2;
}

message GetTransactionErrorMessageByIndexRequest {
bytes block_id = 1;
uint32 index = 2;
}

message GetTransactionErrorMessagesByBlockIDRequest {
bytes block_id = 1;
}

message GetTransactionErrorMessagesResponse {
message Result {
bytes transaction_id = 1;
uint32 index = 2;
string error_message = 3;
}
repeated Result results = 1;
}

// Registers

message GetRegisterAtBlockIDRequest {
Expand Down
Loading
Loading