From ed39603acd38c6a475b80460c052711849128ff5 Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 15 Nov 2023 12:35:08 +0200 Subject: [PATCH] Added changes due to comments left in PR --- protobuf/flow/execution/execution.proto | 37 +- protobuf/go/flow/execution/execution.pb.go | 355 ++++++++++++++---- .../go/flow/execution/execution_grpc.pb.go | 100 ++++- 3 files changed, 401 insertions(+), 91 deletions(-) diff --git a/protobuf/flow/execution/execution.proto b/protobuf/flow/execution/execution.proto index c0fe63bea..9fbc68c7a 100644 --- a/protobuf/flow/execution/execution.proto +++ b/protobuf/flow/execution/execution.proto @@ -41,18 +41,26 @@ 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(GetTransactionsByBlockIDRequest) + // block ordered by transaction index. + rpc GetTransactionErrorMessagesByBlockID(GetTransactionErrorMessagesByBlockIDRequest) returns (GetTransactionErrorMessagesResponse); // Registers @@ -146,8 +154,27 @@ 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 { - repeated string error_messages = 1; + message Result { + bytes transaction_id = 1; + uint32 index = 2; + string error_message = 3; + } + repeated Result results = 1; } // Registers diff --git a/protobuf/go/flow/execution/execution.pb.go b/protobuf/go/flow/execution/execution.pb.go index 5dbc651d0..d562ead2d 100644 --- a/protobuf/go/flow/execution/execution.pb.go +++ b/protobuf/go/flow/execution/execution.pb.go @@ -655,18 +655,157 @@ func (m *GetTransactionResultsResponse) GetEventEncodingVersion() entities.Event return entities.EventEncodingVersion_JSON_CDC_V0 } -type GetTransactionErrorMessagesResponse struct { - ErrorMessages []string `protobuf:"bytes,1,rep,name=error_messages,json=errorMessages,proto3" json:"error_messages,omitempty"` +type GetTransactionErrorMessageRequest struct { + BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + TransactionId []byte `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTransactionErrorMessageRequest) Reset() { *m = GetTransactionErrorMessageRequest{} } +func (m *GetTransactionErrorMessageRequest) String() string { return proto.CompactTextString(m) } +func (*GetTransactionErrorMessageRequest) ProtoMessage() {} +func (*GetTransactionErrorMessageRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_699624211ed46c53, []int{13} +} + +func (m *GetTransactionErrorMessageRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTransactionErrorMessageRequest.Unmarshal(m, b) +} +func (m *GetTransactionErrorMessageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTransactionErrorMessageRequest.Marshal(b, m, deterministic) +} +func (m *GetTransactionErrorMessageRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTransactionErrorMessageRequest.Merge(m, src) +} +func (m *GetTransactionErrorMessageRequest) XXX_Size() int { + return xxx_messageInfo_GetTransactionErrorMessageRequest.Size(m) +} +func (m *GetTransactionErrorMessageRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTransactionErrorMessageRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTransactionErrorMessageRequest proto.InternalMessageInfo + +func (m *GetTransactionErrorMessageRequest) GetBlockId() []byte { + if m != nil { + return m.BlockId + } + return nil +} + +func (m *GetTransactionErrorMessageRequest) GetTransactionId() []byte { + if m != nil { + return m.TransactionId + } + return nil +} + +type GetTransactionErrorMessageByIndexRequest struct { + BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } +func (m *GetTransactionErrorMessageByIndexRequest) Reset() { + *m = GetTransactionErrorMessageByIndexRequest{} +} +func (m *GetTransactionErrorMessageByIndexRequest) String() string { return proto.CompactTextString(m) } +func (*GetTransactionErrorMessageByIndexRequest) ProtoMessage() {} +func (*GetTransactionErrorMessageByIndexRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_699624211ed46c53, []int{14} +} + +func (m *GetTransactionErrorMessageByIndexRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTransactionErrorMessageByIndexRequest.Unmarshal(m, b) +} +func (m *GetTransactionErrorMessageByIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTransactionErrorMessageByIndexRequest.Marshal(b, m, deterministic) +} +func (m *GetTransactionErrorMessageByIndexRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTransactionErrorMessageByIndexRequest.Merge(m, src) +} +func (m *GetTransactionErrorMessageByIndexRequest) XXX_Size() int { + return xxx_messageInfo_GetTransactionErrorMessageByIndexRequest.Size(m) +} +func (m *GetTransactionErrorMessageByIndexRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTransactionErrorMessageByIndexRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTransactionErrorMessageByIndexRequest proto.InternalMessageInfo + +func (m *GetTransactionErrorMessageByIndexRequest) GetBlockId() []byte { + if m != nil { + return m.BlockId + } + return nil +} + +func (m *GetTransactionErrorMessageByIndexRequest) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +type GetTransactionErrorMessagesByBlockIDRequest struct { + BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTransactionErrorMessagesByBlockIDRequest) Reset() { + *m = GetTransactionErrorMessagesByBlockIDRequest{} +} +func (m *GetTransactionErrorMessagesByBlockIDRequest) String() string { + return proto.CompactTextString(m) +} +func (*GetTransactionErrorMessagesByBlockIDRequest) ProtoMessage() {} +func (*GetTransactionErrorMessagesByBlockIDRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_699624211ed46c53, []int{15} +} + +func (m *GetTransactionErrorMessagesByBlockIDRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest.Unmarshal(m, b) +} +func (m *GetTransactionErrorMessagesByBlockIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest.Marshal(b, m, deterministic) +} +func (m *GetTransactionErrorMessagesByBlockIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest.Merge(m, src) +} +func (m *GetTransactionErrorMessagesByBlockIDRequest) XXX_Size() int { + return xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest.Size(m) +} +func (m *GetTransactionErrorMessagesByBlockIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTransactionErrorMessagesByBlockIDRequest proto.InternalMessageInfo + +func (m *GetTransactionErrorMessagesByBlockIDRequest) GetBlockId() []byte { + if m != nil { + return m.BlockId + } + return nil +} + +type GetTransactionErrorMessagesResponse struct { + Results []*GetTransactionErrorMessagesResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + func (m *GetTransactionErrorMessagesResponse) Reset() { *m = GetTransactionErrorMessagesResponse{} } func (m *GetTransactionErrorMessagesResponse) String() string { return proto.CompactTextString(m) } func (*GetTransactionErrorMessagesResponse) ProtoMessage() {} func (*GetTransactionErrorMessagesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{13} + return fileDescriptor_699624211ed46c53, []int{16} } func (m *GetTransactionErrorMessagesResponse) XXX_Unmarshal(b []byte) error { @@ -687,13 +826,72 @@ func (m *GetTransactionErrorMessagesResponse) XXX_DiscardUnknown() { var xxx_messageInfo_GetTransactionErrorMessagesResponse proto.InternalMessageInfo -func (m *GetTransactionErrorMessagesResponse) GetErrorMessages() []string { +func (m *GetTransactionErrorMessagesResponse) GetResults() []*GetTransactionErrorMessagesResponse_Result { if m != nil { - return m.ErrorMessages + return m.Results } return nil } +type GetTransactionErrorMessagesResponse_Result struct { + TransactionId []byte `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` + Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` + ErrorMessage string `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTransactionErrorMessagesResponse_Result) Reset() { + *m = GetTransactionErrorMessagesResponse_Result{} +} +func (m *GetTransactionErrorMessagesResponse_Result) String() string { + return proto.CompactTextString(m) +} +func (*GetTransactionErrorMessagesResponse_Result) ProtoMessage() {} +func (*GetTransactionErrorMessagesResponse_Result) Descriptor() ([]byte, []int) { + return fileDescriptor_699624211ed46c53, []int{16, 0} +} + +func (m *GetTransactionErrorMessagesResponse_Result) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTransactionErrorMessagesResponse_Result.Unmarshal(m, b) +} +func (m *GetTransactionErrorMessagesResponse_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTransactionErrorMessagesResponse_Result.Marshal(b, m, deterministic) +} +func (m *GetTransactionErrorMessagesResponse_Result) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTransactionErrorMessagesResponse_Result.Merge(m, src) +} +func (m *GetTransactionErrorMessagesResponse_Result) XXX_Size() int { + return xxx_messageInfo_GetTransactionErrorMessagesResponse_Result.Size(m) +} +func (m *GetTransactionErrorMessagesResponse_Result) XXX_DiscardUnknown() { + xxx_messageInfo_GetTransactionErrorMessagesResponse_Result.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTransactionErrorMessagesResponse_Result proto.InternalMessageInfo + +func (m *GetTransactionErrorMessagesResponse_Result) GetTransactionId() []byte { + if m != nil { + return m.TransactionId + } + return nil +} + +func (m *GetTransactionErrorMessagesResponse_Result) GetIndex() uint32 { + if m != nil { + return m.Index + } + return 0 +} + +func (m *GetTransactionErrorMessagesResponse_Result) GetErrorMessage() string { + if m != nil { + return m.ErrorMessage + } + return "" +} + type GetRegisterAtBlockIDRequest struct { BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` RegisterOwner []byte `protobuf:"bytes,2,opt,name=register_owner,json=registerOwner,proto3" json:"register_owner,omitempty"` @@ -708,7 +906,7 @@ func (m *GetRegisterAtBlockIDRequest) Reset() { *m = GetRegisterAtBlockI func (m *GetRegisterAtBlockIDRequest) String() string { return proto.CompactTextString(m) } func (*GetRegisterAtBlockIDRequest) ProtoMessage() {} func (*GetRegisterAtBlockIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{14} + return fileDescriptor_699624211ed46c53, []int{17} } func (m *GetRegisterAtBlockIDRequest) XXX_Unmarshal(b []byte) error { @@ -761,7 +959,7 @@ func (m *GetRegisterAtBlockIDResponse) Reset() { *m = GetRegisterAtBlock func (m *GetRegisterAtBlockIDResponse) String() string { return proto.CompactTextString(m) } func (*GetRegisterAtBlockIDResponse) ProtoMessage() {} func (*GetRegisterAtBlockIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{15} + return fileDescriptor_699624211ed46c53, []int{18} } func (m *GetRegisterAtBlockIDResponse) XXX_Unmarshal(b []byte) error { @@ -800,7 +998,7 @@ func (m *GetLatestBlockHeaderRequest) Reset() { *m = GetLatestBlockHeade func (m *GetLatestBlockHeaderRequest) String() string { return proto.CompactTextString(m) } func (*GetLatestBlockHeaderRequest) ProtoMessage() {} func (*GetLatestBlockHeaderRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{16} + return fileDescriptor_699624211ed46c53, []int{19} } func (m *GetLatestBlockHeaderRequest) XXX_Unmarshal(b []byte) error { @@ -839,7 +1037,7 @@ func (m *GetBlockHeaderByIDRequest) Reset() { *m = GetBlockHeaderByIDReq func (m *GetBlockHeaderByIDRequest) String() string { return proto.CompactTextString(m) } func (*GetBlockHeaderByIDRequest) ProtoMessage() {} func (*GetBlockHeaderByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{17} + return fileDescriptor_699624211ed46c53, []int{20} } func (m *GetBlockHeaderByIDRequest) XXX_Unmarshal(b []byte) error { @@ -878,7 +1076,7 @@ func (m *BlockHeaderResponse) Reset() { *m = BlockHeaderResponse{} } func (m *BlockHeaderResponse) String() string { return proto.CompactTextString(m) } func (*BlockHeaderResponse) ProtoMessage() {} func (*BlockHeaderResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_699624211ed46c53, []int{18} + return fileDescriptor_699624211ed46c53, []int{21} } func (m *BlockHeaderResponse) XXX_Unmarshal(b []byte) error { @@ -921,7 +1119,11 @@ func init() { proto.RegisterType((*GetTransactionResultResponse)(nil), "flow.execution.GetTransactionResultResponse") proto.RegisterType((*GetTransactionsByBlockIDRequest)(nil), "flow.execution.GetTransactionsByBlockIDRequest") proto.RegisterType((*GetTransactionResultsResponse)(nil), "flow.execution.GetTransactionResultsResponse") + proto.RegisterType((*GetTransactionErrorMessageRequest)(nil), "flow.execution.GetTransactionErrorMessageRequest") + proto.RegisterType((*GetTransactionErrorMessageByIndexRequest)(nil), "flow.execution.GetTransactionErrorMessageByIndexRequest") + proto.RegisterType((*GetTransactionErrorMessagesByBlockIDRequest)(nil), "flow.execution.GetTransactionErrorMessagesByBlockIDRequest") proto.RegisterType((*GetTransactionErrorMessagesResponse)(nil), "flow.execution.GetTransactionErrorMessagesResponse") + proto.RegisterType((*GetTransactionErrorMessagesResponse_Result)(nil), "flow.execution.GetTransactionErrorMessagesResponse.Result") proto.RegisterType((*GetRegisterAtBlockIDRequest)(nil), "flow.execution.GetRegisterAtBlockIDRequest") proto.RegisterType((*GetRegisterAtBlockIDResponse)(nil), "flow.execution.GetRegisterAtBlockIDResponse") proto.RegisterType((*GetLatestBlockHeaderRequest)(nil), "flow.execution.GetLatestBlockHeaderRequest") @@ -932,68 +1134,73 @@ func init() { func init() { proto.RegisterFile("flow/execution/execution.proto", fileDescriptor_699624211ed46c53) } var fileDescriptor_699624211ed46c53 = []byte{ - // 994 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x57, 0xdd, 0x6e, 0xe3, 0x44, - 0x14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 0xa0, 0xd9, 0x11, 0x88, - 0x3e, 0x36, 0xf0, 0x98, 0xc7, 0xe4, 0x52, 0x2c, 0x1d, 0x02, 0x07, 0x2c, 0xf4, 0x6c, 0x16, 0x48, - 0xac, 0xfc, 0x02, 0xb9, 0x8d, 0x5e, 0xa5, 0x4a, 0xbf, 0x7e, 0xe6, 0xf9, 0xe2, 0x2e, 0xba, 0xb5, - 0x07, 0xec, 0xbe, 0xa5, 0x50, 0x2d, 0xf9, 0x93, 0x40, 0x5b, 0x1e, 0x6b, 0xe5, 0x3f, 0xae, 0x6e, - 0x37, 0xe5, 0xdd, 0xe5, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x00, 0x9d, 0xfc, 0x68, 0x75, 0x0d, - 0x00, 0x00, + // 1080 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0x4f, 0x6f, 0xe3, 0x44, + 0x14, 0x97, 0x9b, 0xb4, 0x4d, 0x5e, 0xfe, 0x08, 0x4d, 0xa3, 0x2a, 0x75, 0xfa, 0x6f, 0x5d, 0x56, + 0x2a, 0xb4, 0xeb, 0xb0, 0x29, 0x42, 0x68, 0xe1, 0xd2, 0x40, 0x68, 0x03, 0x2c, 0x5d, 0xbc, 0x2b, + 0x24, 0x40, 0x28, 0x72, 0xe3, 0xd9, 0xd4, 0x6c, 0xea, 0xc9, 0x7a, 0x26, 0xed, 0xe6, 0xc6, 0x81, + 0x03, 0x67, 0x4e, 0xfb, 0x69, 0xf8, 0x1e, 0x7c, 0x02, 0x4e, 0x7c, 0x07, 0xe4, 0x99, 0x71, 0x12, + 0xc7, 0x63, 0xaf, 0xd3, 0x65, 0x2f, 0x55, 0xe6, 0xcd, 0x7b, 0xef, 0xf7, 0xe6, 0xfd, 0x77, 0x61, + 0xf7, 0xf9, 0x90, 0xdc, 0x36, 0xf1, 0x2b, 0xdc, 0x1f, 0x33, 0x97, 0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xa0, 0xc0, 0x51, 0x8f, 0x93, 0x4c, 0x28, 0x6d, 0x0b, 0x76, + 0x88, 0x3f, 0x30, 0x89, 0xc7, 0x79, 0xf9, 0x37, 0xf5, 0xe5, 0xf8, 0xf9, 0x4c, 0xe8, 0xa7, 0x87, + 0x03, 0x97, 0x5d, 0x8d, 0x2f, 0xcd, 0x3e, 0xb9, 0x6e, 0x0a, 0xae, 0x26, 0xff, 0x13, 0xb2, 0x36, + 0x07, 0xa4, 0x19, 0xfd, 0x77, 0xc1, 0xe5, 0x1a, 0xbf, 0x3b, 0xf9, 0x2f, 0x00, 0x00, 0xff, 0xff, + 0x06, 0xe4, 0x2a, 0xee, 0x47, 0x10, 0x00, 0x00, } diff --git a/protobuf/go/flow/execution/execution_grpc.pb.go b/protobuf/go/flow/execution/execution_grpc.pb.go index 41d272024..4c6136a15 100644 --- a/protobuf/go/flow/execution/execution_grpc.pb.go +++ b/protobuf/go/flow/execution/execution_grpc.pb.go @@ -34,14 +34,18 @@ type ExecutionAPIClient interface { GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*GetEventsForBlockIDsResponse, error) // GetTransactionResult gets the result of a transaction. GetTransactionResult(ctx context.Context, in *GetTransactionResultRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) - // GetTransactionResultByIndex gets the result of a transaction at the index . + // GetTransactionResultByIndex gets the result of a transaction at the index. GetTransactionResultByIndex(ctx context.Context, in *GetTransactionByIndexRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) // GetTransactionResultByIndex gets the results of all transactions in the - // block ordered by transaction index + // block ordered by transaction index. GetTransactionResultsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionResultsResponse, error) + // GetTransactionErrorMessage gets the error messages of a failed transaction by id. + GetTransactionErrorMessage(ctx context.Context, in *GetTransactionErrorMessageRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) + // GetTransactionErrorMessageByIndex gets the error messages of a failed transaction at the index. + GetTransactionErrorMessageByIndex(ctx context.Context, in *GetTransactionErrorMessageByIndexRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) // GetTransactionErrorMessagesByBlockID gets the error messages of all failed transactions in the - // block ordered by transaction index - GetTransactionErrorMessagesByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) + // block ordered by transaction index. + GetTransactionErrorMessagesByBlockID(ctx context.Context, in *GetTransactionErrorMessagesByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) // GetRegisterAtBlockID collects a register at the block with the given ID (if // available). GetRegisterAtBlockID(ctx context.Context, in *GetRegisterAtBlockIDRequest, opts ...grpc.CallOption) (*GetRegisterAtBlockIDResponse, error) @@ -122,7 +126,25 @@ func (c *executionAPIClient) GetTransactionResultsByBlockID(ctx context.Context, return out, nil } -func (c *executionAPIClient) GetTransactionErrorMessagesByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) { +func (c *executionAPIClient) GetTransactionErrorMessage(ctx context.Context, in *GetTransactionErrorMessageRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) { + out := new(GetTransactionErrorMessagesResponse) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *executionAPIClient) GetTransactionErrorMessageByIndex(ctx context.Context, in *GetTransactionErrorMessageByIndexRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) { + out := new(GetTransactionErrorMessagesResponse) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *executionAPIClient) GetTransactionErrorMessagesByBlockID(ctx context.Context, in *GetTransactionErrorMessagesByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) { out := new(GetTransactionErrorMessagesResponse) err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID", in, out, opts...) if err != nil { @@ -174,14 +196,18 @@ type ExecutionAPIServer interface { GetEventsForBlockIDs(context.Context, *GetEventsForBlockIDsRequest) (*GetEventsForBlockIDsResponse, error) // GetTransactionResult gets the result of a transaction. GetTransactionResult(context.Context, *GetTransactionResultRequest) (*GetTransactionResultResponse, error) - // GetTransactionResultByIndex gets the result of a transaction at the index . + // GetTransactionResultByIndex gets the result of a transaction at the index. GetTransactionResultByIndex(context.Context, *GetTransactionByIndexRequest) (*GetTransactionResultResponse, error) // GetTransactionResultByIndex gets the results of all transactions in the - // block ordered by transaction index + // block ordered by transaction index. GetTransactionResultsByBlockID(context.Context, *GetTransactionsByBlockIDRequest) (*GetTransactionResultsResponse, error) + // GetTransactionErrorMessage gets the error messages of a failed transaction by id. + GetTransactionErrorMessage(context.Context, *GetTransactionErrorMessageRequest) (*GetTransactionErrorMessagesResponse, error) + // GetTransactionErrorMessageByIndex gets the error messages of a failed transaction at the index. + GetTransactionErrorMessageByIndex(context.Context, *GetTransactionErrorMessageByIndexRequest) (*GetTransactionErrorMessagesResponse, error) // GetTransactionErrorMessagesByBlockID gets the error messages of all failed transactions in the - // block ordered by transaction index - GetTransactionErrorMessagesByBlockID(context.Context, *GetTransactionsByBlockIDRequest) (*GetTransactionErrorMessagesResponse, error) + // block ordered by transaction index. + GetTransactionErrorMessagesByBlockID(context.Context, *GetTransactionErrorMessagesByBlockIDRequest) (*GetTransactionErrorMessagesResponse, error) // GetRegisterAtBlockID collects a register at the block with the given ID (if // available). GetRegisterAtBlockID(context.Context, *GetRegisterAtBlockIDRequest) (*GetRegisterAtBlockIDResponse, error) @@ -216,7 +242,13 @@ func (UnimplementedExecutionAPIServer) GetTransactionResultByIndex(context.Conte func (UnimplementedExecutionAPIServer) GetTransactionResultsByBlockID(context.Context, *GetTransactionsByBlockIDRequest) (*GetTransactionResultsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransactionResultsByBlockID not implemented") } -func (UnimplementedExecutionAPIServer) GetTransactionErrorMessagesByBlockID(context.Context, *GetTransactionsByBlockIDRequest) (*GetTransactionErrorMessagesResponse, error) { +func (UnimplementedExecutionAPIServer) GetTransactionErrorMessage(context.Context, *GetTransactionErrorMessageRequest) (*GetTransactionErrorMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransactionErrorMessage not implemented") +} +func (UnimplementedExecutionAPIServer) GetTransactionErrorMessageByIndex(context.Context, *GetTransactionErrorMessageByIndexRequest) (*GetTransactionErrorMessagesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTransactionErrorMessageByIndex not implemented") +} +func (UnimplementedExecutionAPIServer) GetTransactionErrorMessagesByBlockID(context.Context, *GetTransactionErrorMessagesByBlockIDRequest) (*GetTransactionErrorMessagesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransactionErrorMessagesByBlockID not implemented") } func (UnimplementedExecutionAPIServer) GetRegisterAtBlockID(context.Context, *GetRegisterAtBlockIDRequest) (*GetRegisterAtBlockIDResponse, error) { @@ -366,8 +398,44 @@ func _ExecutionAPI_GetTransactionResultsByBlockID_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } +func _ExecutionAPI_GetTransactionErrorMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTransactionErrorMessageRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutionAPIServer).GetTransactionErrorMessage(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutionAPIServer).GetTransactionErrorMessage(ctx, req.(*GetTransactionErrorMessageRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ExecutionAPI_GetTransactionErrorMessageByIndex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetTransactionErrorMessageByIndexRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutionAPIServer).GetTransactionErrorMessageByIndex(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutionAPIServer).GetTransactionErrorMessageByIndex(ctx, req.(*GetTransactionErrorMessageByIndexRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ExecutionAPI_GetTransactionErrorMessagesByBlockID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetTransactionsByBlockIDRequest) + in := new(GetTransactionErrorMessagesByBlockIDRequest) if err := dec(in); err != nil { return nil, err } @@ -379,7 +447,7 @@ func _ExecutionAPI_GetTransactionErrorMessagesByBlockID_Handler(srv interface{}, FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutionAPIServer).GetTransactionErrorMessagesByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) + return srv.(ExecutionAPIServer).GetTransactionErrorMessagesByBlockID(ctx, req.(*GetTransactionErrorMessagesByBlockIDRequest)) } return interceptor(ctx, in, info, handler) } @@ -473,6 +541,14 @@ var ExecutionAPI_ServiceDesc = grpc.ServiceDesc{ MethodName: "GetTransactionResultsByBlockID", Handler: _ExecutionAPI_GetTransactionResultsByBlockID_Handler, }, + { + MethodName: "GetTransactionErrorMessage", + Handler: _ExecutionAPI_GetTransactionErrorMessage_Handler, + }, + { + MethodName: "GetTransactionErrorMessageByIndex", + Handler: _ExecutionAPI_GetTransactionErrorMessageByIndex_Handler, + }, { MethodName: "GetTransactionErrorMessagesByBlockID", Handler: _ExecutionAPI_GetTransactionErrorMessagesByBlockID_Handler,