From 1a86ee3c7953d94c30d4be1f5914e6ce24a7588c Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 21 Dec 2023 16:47:55 +0200 Subject: [PATCH 01/36] Added request and response data for new API call --- .../flow/executiondata/executiondata.proto | 66 +++- .../go/flow/executiondata/executiondata.pb.go | 304 +++++++++++++++--- 2 files changed, 322 insertions(+), 48 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index 087ca2579..a6c7e1170 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -230,4 +230,68 @@ message GetRegisterValuesResponse { // raw register values at the given height. repeated bytes values = 1; -} \ No newline at end of file +} + +// The request for SubscribeAccountStatuses +message SubscribeAccountStatusesRequest { + // Block ID of the first block to search for events. + // Only one of start_block_id and start_block_height may be provided, + // otherwise an InvalidArgument error is returned. If neither are provided, + // the latest sealed block is used. + bytes start_block_id = 1; + + // Block height of the first block to search for events. + // Only one of start_block_id and start_block_height may be provided, + // otherwise an InvalidArgument error is returned. If neither are provided, + // the latest sealed block is used. + uint64 start_block_height = 2; + + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + StatusFilter filter = 3; + + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + uint64 heartbeat_interval = 4; + + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + entities.EventEncodingVersion event_encoding_version = 5; +} + +// The response for SubscribeAccountStatuses +message SubscribeAccountStatusesResponse { + // Block ID of the block containing the events. + bytes block_id = 1; + + // + bytes address = 2; + + // + string status = 3; +} + +// StatusesFilter defines the filter to apply to block events. +// Filters are applied as an OR operation, i.e. any event matching any of the +// filters is returned. If no filters are provided, all events are returned. If +// there are any invalid filters, the API will return an InvalidArgument error. +message StatusFilter { + // A list of full event types to include. + // + // All events exactly matching any of the provided event types will be + // returned. + // + // Event types have 2 formats: + // - Protocol events: + // flow.[event name] + repeated string event_type = 1; +} + diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index f68b32889..1bb7b5937 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -589,6 +589,208 @@ func (m *GetRegisterValuesResponse) GetValues() [][]byte { return nil } +// The request for SubscribeAccountStatuses +type SubscribeAccountStatusesRequest struct { + // Block ID of the first block to search for events. + // Only one of start_block_id and start_block_height may be provided, + // otherwise an InvalidArgument error is returned. If neither are provided, + // the latest sealed block is used. + StartBlockId []byte `protobuf:"bytes,1,opt,name=start_block_id,json=startBlockId,proto3" json:"start_block_id,omitempty"` + // Block height of the first block to search for events. + // Only one of start_block_id and start_block_height may be provided, + // otherwise an InvalidArgument error is returned. If neither are provided, + // the latest sealed block is used. + StartBlockHeight uint64 `protobuf:"varint,2,opt,name=start_block_height,json=startBlockHeight,proto3" json:"start_block_height,omitempty"` + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + Filter *StatusFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + HeartbeatInterval uint64 `protobuf:"varint,4,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,5,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscribeAccountStatusesRequest) Reset() { *m = SubscribeAccountStatusesRequest{} } +func (m *SubscribeAccountStatusesRequest) String() string { return proto.CompactTextString(m) } +func (*SubscribeAccountStatusesRequest) ProtoMessage() {} +func (*SubscribeAccountStatusesRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{9} +} + +func (m *SubscribeAccountStatusesRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesRequest.Unmarshal(m, b) +} +func (m *SubscribeAccountStatusesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesRequest.Marshal(b, m, deterministic) +} +func (m *SubscribeAccountStatusesRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesRequest.Merge(m, src) +} +func (m *SubscribeAccountStatusesRequest) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesRequest.Size(m) +} +func (m *SubscribeAccountStatusesRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeAccountStatusesRequest proto.InternalMessageInfo + +func (m *SubscribeAccountStatusesRequest) GetStartBlockId() []byte { + if m != nil { + return m.StartBlockId + } + return nil +} + +func (m *SubscribeAccountStatusesRequest) GetStartBlockHeight() uint64 { + if m != nil { + return m.StartBlockHeight + } + return 0 +} + +func (m *SubscribeAccountStatusesRequest) GetFilter() *StatusFilter { + if m != nil { + return m.Filter + } + return nil +} + +func (m *SubscribeAccountStatusesRequest) GetHeartbeatInterval() uint64 { + if m != nil { + return m.HeartbeatInterval + } + return 0 +} + +func (m *SubscribeAccountStatusesRequest) GetEventEncodingVersion() entities.EventEncodingVersion { + if m != nil { + return m.EventEncodingVersion + } + return entities.EventEncodingVersion_JSON_CDC_V0 +} + +// The response for SubscribeAccountStatuses +type SubscribeAccountStatusesResponse struct { + // Block ID of the block containing the events. + BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscribeAccountStatusesResponse) Reset() { *m = SubscribeAccountStatusesResponse{} } +func (m *SubscribeAccountStatusesResponse) String() string { return proto.CompactTextString(m) } +func (*SubscribeAccountStatusesResponse) ProtoMessage() {} +func (*SubscribeAccountStatusesResponse) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{10} +} + +func (m *SubscribeAccountStatusesResponse) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesResponse.Unmarshal(m, b) +} +func (m *SubscribeAccountStatusesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesResponse.Marshal(b, m, deterministic) +} +func (m *SubscribeAccountStatusesResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesResponse.Merge(m, src) +} +func (m *SubscribeAccountStatusesResponse) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesResponse.Size(m) +} +func (m *SubscribeAccountStatusesResponse) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesResponse.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeAccountStatusesResponse proto.InternalMessageInfo + +func (m *SubscribeAccountStatusesResponse) GetBlockId() []byte { + if m != nil { + return m.BlockId + } + return nil +} + +func (m *SubscribeAccountStatusesResponse) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + +func (m *SubscribeAccountStatusesResponse) GetStatus() string { + if m != nil { + return m.Status + } + return "" +} + +// StatusesFilter defines the filter to apply to block events. +// Filters are applied as an OR operation, i.e. any event matching any of the +// filters is returned. If no filters are provided, all events are returned. If +// there are any invalid filters, the API will return an InvalidArgument error. +type StatusFilter struct { + // A list of full event types to include. + // + // All events exactly matching any of the provided event types will be + // returned. + // + // Event types have 2 formats: + // - Protocol events: + // flow.[event name] + EventType []string `protobuf:"bytes,1,rep,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StatusFilter) Reset() { *m = StatusFilter{} } +func (m *StatusFilter) String() string { return proto.CompactTextString(m) } +func (*StatusFilter) ProtoMessage() {} +func (*StatusFilter) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{11} +} + +func (m *StatusFilter) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StatusFilter.Unmarshal(m, b) +} +func (m *StatusFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StatusFilter.Marshal(b, m, deterministic) +} +func (m *StatusFilter) XXX_Merge(src proto.Message) { + xxx_messageInfo_StatusFilter.Merge(m, src) +} +func (m *StatusFilter) XXX_Size() int { + return xxx_messageInfo_StatusFilter.Size(m) +} +func (m *StatusFilter) XXX_DiscardUnknown() { + xxx_messageInfo_StatusFilter.DiscardUnknown(m) +} + +var xxx_messageInfo_StatusFilter proto.InternalMessageInfo + +func (m *StatusFilter) GetEventType() []string { + if m != nil { + return m.EventType + } + return nil +} + func init() { proto.RegisterType((*GetExecutionDataByBlockIDRequest)(nil), "flow.executiondata.GetExecutionDataByBlockIDRequest") proto.RegisterType((*GetExecutionDataByBlockIDResponse)(nil), "flow.executiondata.GetExecutionDataByBlockIDResponse") @@ -599,6 +801,9 @@ func init() { proto.RegisterType((*EventFilter)(nil), "flow.executiondata.EventFilter") proto.RegisterType((*GetRegisterValuesRequest)(nil), "flow.executiondata.GetRegisterValuesRequest") proto.RegisterType((*GetRegisterValuesResponse)(nil), "flow.executiondata.GetRegisterValuesResponse") + proto.RegisterType((*SubscribeAccountStatusesRequest)(nil), "flow.executiondata.SubscribeAccountStatusesRequest") + proto.RegisterType((*SubscribeAccountStatusesResponse)(nil), "flow.executiondata.SubscribeAccountStatusesResponse") + proto.RegisterType((*StatusFilter)(nil), "flow.executiondata.StatusFilter") } func init() { @@ -606,51 +811,56 @@ func init() { } var fileDescriptor_da469632570513fb = []byte{ - // 735 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcb, 0x6e, 0xd3, 0x4c, - 0x14, 0x96, 0x93, 0xfc, 0x69, 0x7b, 0x12, 0xf5, 0x32, 0xaa, 0xfa, 0x3b, 0x16, 0xa5, 0x49, 0x40, - 0x28, 0x82, 0xd6, 0x06, 0x97, 0x8a, 0x0d, 0x1b, 0x42, 0x4b, 0xc9, 0x0e, 0xb9, 0x55, 0x25, 0xba, - 0xb1, 0x7c, 0x99, 0x3a, 0x23, 0x5c, 0x4f, 0xf0, 0x4c, 0x42, 0x2b, 0x56, 0xdd, 0xf1, 0x08, 0xbc, - 0x05, 0xef, 0xc1, 0x82, 0x37, 0xe0, 0x5d, 0x50, 0xc6, 0x63, 0x37, 0x4e, 0xdc, 0xd0, 0xaa, 0x62, - 0x13, 0xe9, 0xcc, 0xf9, 0xce, 0x9c, 0x6f, 0xbe, 0x73, 0x89, 0xe1, 0xc9, 0x59, 0x48, 0xbf, 0x18, - 0xf8, 0x02, 0x7b, 0x43, 0x4e, 0x68, 0xe4, 0x3b, 0xdc, 0xc9, 0x5b, 0xfa, 0x20, 0xa6, 0x9c, 0x22, - 0x34, 0xc6, 0xe9, 0x39, 0x8f, 0xd6, 0x49, 0x62, 0x23, 0x4e, 0x38, 0xc1, 0xcc, 0x70, 0x43, 0xea, - 0x7d, 0xb2, 0x33,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 0x9d, 0x5b, 0xa2, 0x93, 0x9c, 0xdd, 0x53, 0x68, 0xd1, 0x38, 0xd0, 0x69, - 0x24, 0xa2, 0xb2, 0x51, 0xca, 0x85, 0x9f, 0xee, 0x05, 0x84, 0xf7, 0x87, 0xae, 0xee, 0xd1, 0x73, - 0x23, 0x41, 0x1a, 0xe2, 0x27, 0xfb, 0x68, 0x08, 0xa8, 0x31, 0xfb, 0x99, 0xe3, 0x56, 0x85, 0x7f, - 0xf7, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x45, 0x79, 0x16, 0x03, 0x09, 0x00, 0x00, + // 805 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4e, 0xdb, 0x4a, + 0x14, 0x96, 0x93, 0xdc, 0x40, 0x4e, 0x22, 0x7e, 0x46, 0x88, 0x9b, 0x58, 0x97, 0x4b, 0xe2, 0x7b, + 0x55, 0x45, 0x2d, 0x38, 0x6d, 0x28, 0x6a, 0x17, 0xdd, 0x90, 0x42, 0x69, 0x76, 0x95, 0x41, 0x48, + 0x65, 0x13, 0xf9, 0x67, 0x70, 0x46, 0x0d, 0x9e, 0xd4, 0x33, 0x4e, 0x41, 0x5d, 0xb1, 0xeb, 0x23, + 0xf4, 0x2d, 0xba, 0xee, 0x2b, 0x74, 0xd1, 0x37, 0xe8, 0xbb, 0x54, 0x99, 0x99, 0x98, 0x38, 0x71, + 0x02, 0x08, 0x21, 0x75, 0x13, 0xe9, 0xcc, 0xf9, 0xce, 0x9c, 0x6f, 0xbe, 0xf3, 0xe3, 0xc0, 0xa3, + 0xb3, 0x1e, 0xfd, 0xd4, 0xc0, 0x17, 0xd8, 0x8d, 0x38, 0xa1, 0x81, 0x67, 0x73, 0x3b, 0x69, 0x99, + 0xfd, 0x90, 0x72, 0x8a, 0xd0, 0x10, 0x67, 0x26, 0x3c, 0x7a, 0x5d, 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0x6b, 0xa3, 0x2f, 0x9a, 0x68, 0x93, 0xf4, 0x2f, 0x26, 0x7a, 0x9e, 0x56, 0x86, 0x9b, 0x3e, 0xfd, + 0xfa, 0xee, 0x1d, 0xa3, 0x94, 0x36, 0x57, 0xda, 0xf8, 0x42, 0x4e, 0x2c, 0xfc, 0x67, 0xa9, 0xed, + 0x30, 0xef, 0x6b, 0xab, 0x37, 0xef, 0x12, 0x22, 0x19, 0x3c, 0xd5, 0x50, 0x0f, 0x96, 0x27, 0x36, + 0x1c, 0x7a, 0x3c, 0xff, 0xa2, 0xf1, 0x0f, 0x87, 0xfe, 0xe4, 0x56, 0xd8, 0x38, 0x5b, 0x1f, 0x56, + 0xa7, 0x46, 0x14, 0x6d, 0xcd, 0x50, 0x2f, 0x75, 0x8d, 0xe8, 0xdb, 0xb7, 0x44, 0xcb, 0x9c, 0xad, + 0x53, 0xa8, 0xd1, 0xd0, 0x37, 0x69, 0x20, 0xa2, 0xe2, 0x35, 0x99, 0x08, 0x3f, 0xdd, 0xf5, 0x09, + 0xef, 0x46, 0x8e, 0xe9, 0xd2, 0xf3, 0x86, 0x44, 0x36, 0xc4, 0x4f, 0xfc, 0x87, 0xd0, 0xa7, 0x8d, + 0xe9, 0xbf, 0xb0, 0x4e, 0x5e, 0xf8, 0x77, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x82, 0x7b, 0xad, + 0xa5, 0xdf, 0x0a, 0x00, 0x00, } From 7dec94d882781405a1f6ad10dfe431b1129b196b Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 28 Dec 2023 16:21:07 +0200 Subject: [PATCH 02/36] Added rpc call and documentation for it --- .../flow/executiondata/executiondata.proto | 26 +++- .../go/flow/executiondata/executiondata.pb.go | 103 ++++++++-------- .../executiondata/executiondata_grpc.pb.go | 111 +++++++++++++++++- 3 files changed, 186 insertions(+), 54 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index a6c7e1170..4c5670134 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -48,7 +48,7 @@ service ExecutionDataAPI { // all events are returned. // // Responses are returned for each block containing at least one event that - // matches the filter. Additionally, heatbeat responses + // matches the filter. Additionally, heartbeat responses // (SubscribeEventsResponse with no events) are returned periodically to allow // clients to track which blocks were searched. Clients can use this // information to determine which block to start from when reconnecting. @@ -66,6 +66,30 @@ service ExecutionDataAPI { // GetRegisterValues gets the values for the given register IDs as of the given block height rpc GetRegisterValues(GetRegisterValuesRequest) returns (GetRegisterValuesResponse); + + // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested + // start block, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // not been received. + rpc SubscribeAccountStatuses(SubscribeAccountStatusesRequest) + returns (stream SubscribeAccountStatusesResponse); } // The request for GetExecutionDataByBlockID diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index 1bb7b5937..4ccd9a228 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -811,56 +811,57 @@ func init() { } var fileDescriptor_da469632570513fb = []byte{ - // 805 bytes of a gzipped FileDescriptorProto + // 825 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4e, 0x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 0x11, 0x66, 0x1c, 0x55, 0x60, 0x51, 0x92, 0x23, 0x5e, 0x59, - 0xab, 0x6a, 0xf5, 0x92, 0xb5, 0x20, 0xec, 0xb6, 0x87, 0xde, 0xc3, 0xba, 0x60, 0xd3, 0xc1, 0x81, - 0x4b, 0x3d, 0x12, 0xf8, 0x9d, 0x01, 0x0e, 0x19, 0xa1, 0x41, 0x39, 0x53, 0xd5, 0xea, 0x4b, 0xcd, - 0xff, 0x4c, 0xf9, 0x70, 0xc5, 0xcf, 0x3c, 0x18, 0x82, 0x0f, 0x14, 0xf6, 0x44, 0x42, 0xad, 0x35, - 0x9c, 0x72, 0x6a, 0x5c, 0x40, 0x6d, 0x0e, 0x33, 0xd6, 0xa7, 0x01, 0xc3, 0xe8, 0x08, 0xd6, 0xd2, - 0x74, 0x13, 0x34, 0x8b, 0xcd, 0xda, 0x44, 0x76, 0x11, 0x9d, 0xb8, 0xd1, 0x42, 0xce, 0xd4, 0x99, - 0xf1, 0x53, 0x83, 0x8d, 0xa3, 0xc8, 0x61, 0x6e, 0x48, 0x1c, 0x9c, 0x84, 0x2b, 0x45, 0xfe, 0x87, - 0x25, 0xc6, 0xed, 0x90, 0x77, 0x26, 0x74, 0x29, 0x89, 0xd3, 0x96, 0x12, 0x67, 0x0b, 0xd0, 0x38, - 0xaa, 0x8b, 0x89, 0xdf, 0xe5, 0x42, 0x98, 0x9c, 0xb5, 0x72, 0x8d, 0x7c, 0x2b, 0xce, 0xe7, 0x48, - 0x99, 0xbd, 0xaf, 0x94, 0xbf, 0x34, 0xf8, 0x77, 0xd6, 0x83, 0x94, 0x90, 0x35, 0x28, 0x25, 0x58, - 0x6a, 0x82, 0x65, 0xd1, 0x19, 0x23, 0x38, 0x4b, 0xeb, 0xcc, 0x3d, 0xb4, 0x46, 0xaf, 0x61, 0x59, - 0x5e, 0x1a, 0x77, 0xa6, 0x78, 0x6e, 0xb1, 0xa9, 0x9b, 0xb2, 0x77, 0xcd, 0x51, 0xef, 0x9a,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x65, 0xb8, 0xe9, + 0xd3, 0xaf, 0xec, 0xcd, 0x18, 0x25, 0xb4, 0xf9, 0x24, 0x8d, 0x2e, 0xe4, 0xc4, 0xc2, 0x7f, 0x9a, + 0xda, 0x0e, 0x59, 0x5f, 0x5b, 0xa5, 0x39, 0x4b, 0x48, 0xc8, 0xe0, 0x89, 0x84, 0x7a, 0xb0, 0x3c, + 0xb6, 0xe1, 0xd0, 0xa3, 0xec, 0x8b, 0x46, 0x3f, 0x1c, 0xca, 0xe3, 0x5b, 0x61, 0xe3, 0x6c, 0x7d, + 0x58, 0x9d, 0x18, 0x51, 0xb4, 0x35, 0x45, 0xbd, 0xd4, 0x35, 0xa2, 0x6c, 0xdf, 0x12, 0x2d, 0x34, + 0xfe, 0x2c, 0x81, 0x3c, 0xad, 0x49, 0xd1, 0x4e, 0x26, 0xfb, 0xf4, 0x6d, 0xa0, 0xec, 0xce, 0x16, + 0x14, 0xbd, 0xbd, 0x75, 0x06, 0x35, 0xe2, 0x3b, 0x1a, 0xf1, 0x78, 0x78, 0xbc, 0xb0, 0x13, 0xf7, + 0x9c, 0xed, 0x39, 0x2e, 0xeb, 0x06, 0xa6, 0x66, 0x91, 0x8b, 0x46, 0x88, 0x6c, 0xf0, 0x9f, 0xf8, + 0xaf, 0xa9, 0x43, 0x1a, 0x93, 0x7f, 0xa6, 0xcd, 0x02, 0xf7, 0xef, 0xfc, 0x09, 0x00, 0x00, 0xff, + 0xff, 0x2a, 0xe5, 0x12, 0xaa, 0x69, 0x0b, 0x00, 0x00, } diff --git a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go index 7ebf00d07..3b9898726 100644 --- a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go +++ b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go @@ -56,7 +56,7 @@ type ExecutionDataAPIClient interface { // all events are returned. // // Responses are returned for each block containing at least one event that - // matches the filter. Additionally, heatbeat responses + // matches the filter. Additionally, heartbeat responses // (SubscribeEventsResponse with no events) are returned periodically to allow // clients to track which blocks were searched. Clients can use this // information to determine which block to start from when reconnecting. @@ -72,6 +72,29 @@ type ExecutionDataAPIClient interface { SubscribeEvents(ctx context.Context, in *SubscribeEventsRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeEventsClient, error) // GetRegisterValues gets the values for the given register IDs as of the given block height GetRegisterValues(ctx context.Context, in *GetRegisterValuesRequest, opts ...grpc.CallOption) (*GetRegisterValuesResponse, error) + // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested + // start block, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatuses(ctx context.Context, in *SubscribeAccountStatusesRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesClient, error) } type executionDataAPIClient struct { @@ -164,6 +187,38 @@ func (c *executionDataAPIClient) GetRegisterValues(ctx context.Context, in *GetR return out, nil } +func (c *executionDataAPIClient) SubscribeAccountStatuses(ctx context.Context, in *SubscribeAccountStatusesRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesClient, error) { + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[2], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatuses", opts...) + if err != nil { + return nil, err + } + x := &executionDataAPISubscribeAccountStatusesClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ExecutionDataAPI_SubscribeAccountStatusesClient interface { + Recv() (*SubscribeAccountStatusesResponse, error) + grpc.ClientStream +} + +type executionDataAPISubscribeAccountStatusesClient struct { + grpc.ClientStream +} + +func (x *executionDataAPISubscribeAccountStatusesClient) Recv() (*SubscribeAccountStatusesResponse, error) { + m := new(SubscribeAccountStatusesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + // ExecutionDataAPIServer is the server API for ExecutionDataAPI service. // All implementations should embed UnimplementedExecutionDataAPIServer // for forward compatibility @@ -202,7 +257,7 @@ type ExecutionDataAPIServer interface { // all events are returned. // // Responses are returned for each block containing at least one event that - // matches the filter. Additionally, heatbeat responses + // matches the filter. Additionally, heartbeat responses // (SubscribeEventsResponse with no events) are returned periodically to allow // clients to track which blocks were searched. Clients can use this // information to determine which block to start from when reconnecting. @@ -218,6 +273,29 @@ type ExecutionDataAPIServer interface { SubscribeEvents(*SubscribeEventsRequest, ExecutionDataAPI_SubscribeEventsServer) error // GetRegisterValues gets the values for the given register IDs as of the given block height GetRegisterValues(context.Context, *GetRegisterValuesRequest) (*GetRegisterValuesResponse, error) + // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested + // start block, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatuses(*SubscribeAccountStatusesRequest, ExecutionDataAPI_SubscribeAccountStatusesServer) error } // UnimplementedExecutionDataAPIServer should be embedded to have forward compatible implementations. @@ -236,6 +314,9 @@ func (UnimplementedExecutionDataAPIServer) SubscribeEvents(*SubscribeEventsReque func (UnimplementedExecutionDataAPIServer) GetRegisterValues(context.Context, *GetRegisterValuesRequest) (*GetRegisterValuesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRegisterValues not implemented") } +func (UnimplementedExecutionDataAPIServer) SubscribeAccountStatuses(*SubscribeAccountStatusesRequest, ExecutionDataAPI_SubscribeAccountStatusesServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeAccountStatuses not implemented") +} // UnsafeExecutionDataAPIServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExecutionDataAPIServer will @@ -326,6 +407,27 @@ func _ExecutionDataAPI_GetRegisterValues_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } +func _ExecutionDataAPI_SubscribeAccountStatuses_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeAccountStatusesRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ExecutionDataAPIServer).SubscribeAccountStatuses(m, &executionDataAPISubscribeAccountStatusesServer{stream}) +} + +type ExecutionDataAPI_SubscribeAccountStatusesServer interface { + Send(*SubscribeAccountStatusesResponse) error + grpc.ServerStream +} + +type executionDataAPISubscribeAccountStatusesServer struct { + grpc.ServerStream +} + +func (x *executionDataAPISubscribeAccountStatusesServer) Send(m *SubscribeAccountStatusesResponse) error { + return x.ServerStream.SendMsg(m) +} + // ExecutionDataAPI_ServiceDesc is the grpc.ServiceDesc for ExecutionDataAPI service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -353,6 +455,11 @@ var ExecutionDataAPI_ServiceDesc = grpc.ServiceDesc{ Handler: _ExecutionDataAPI_SubscribeEvents_Handler, ServerStreams: true, }, + { + StreamName: "SubscribeAccountStatuses", + Handler: _ExecutionDataAPI_SubscribeAccountStatuses_Handler, + ServerStreams: true, + }, }, Metadata: "flow/executiondata/executiondata.proto", } From 9d39790c8a812d13920da37f38da28f9407ad907 Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 3 Jan 2024 15:39:03 +0200 Subject: [PATCH 03/36] Added documentation for missing fields --- protobuf/flow/executiondata/executiondata.proto | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index 4c5670134..a91afb816 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -296,10 +296,13 @@ message SubscribeAccountStatusesResponse { // Block ID of the block containing the events. bytes block_id = 1; - // + // Unique identifier for the account being streamed bytes address = 2; - // + // Events matching the StatusFilter in the request. + // The API may return no events which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. string status = 3; } From 71121c1455416df87e30ce6081ea596f56eebf28 Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 13 Feb 2024 15:37:00 +0200 Subject: [PATCH 04/36] Added messageIndex for AccountStatusesRequest and added event for response --- .../flow/executiondata/executiondata.proto | 6 +- .../go/flow/executiondata/executiondata.pb.go | 130 ++++++++++-------- 2 files changed, 78 insertions(+), 58 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index a91afb816..46a42ffcd 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -303,7 +303,11 @@ message SubscribeAccountStatusesResponse { // The API may return no events which signals a periodic heartbeat. This // allows clients to track which blocks were searched. Client can use this // information to determine which block to start from when reconnecting. - string status = 3; + repeated entities.Event events = 3; + + // The MessageIndex of the response message. + // Used by the client to ensure they received all messages. + uint64 messageIndex = 4; } // StatusesFilter defines the filter to apply to block events. diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index 4ccd9a228..2f0fd3fe0 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -687,8 +687,16 @@ func (m *SubscribeAccountStatusesRequest) GetEventEncodingVersion() entities.Eve type SubscribeAccountStatusesResponse struct { // Block ID of the block containing the events. BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` + // Unique identifier for the account being streamed Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + // Events matching the StatusFilter in the request. + // The API may return no events which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. + Events []*entities.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + // The MessageIndex of the response message. + // Used by the client to ensure they received all messages. + MessageIndex uint64 `protobuf:"varint,4,opt,name=messageIndex,proto3" json:"messageIndex,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -733,11 +741,18 @@ func (m *SubscribeAccountStatusesResponse) GetAddress() []byte { return nil } -func (m *SubscribeAccountStatusesResponse) GetStatus() string { +func (m *SubscribeAccountStatusesResponse) GetEvents() []*entities.Event { if m != nil { - return m.Status + return m.Events } - return "" + return nil +} + +func (m *SubscribeAccountStatusesResponse) GetMessageIndex() uint64 { + if m != nil { + return m.MessageIndex + } + return 0 } // StatusesFilter defines the filter to apply to block events. @@ -811,57 +826,58 @@ func init() { } var fileDescriptor_da469632570513fb = []byte{ - // 825 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4e, 0xdb, 0x4a, - 0x14, 0x96, 0x13, 0x08, 0xe4, 0x24, 0xe2, 0x67, 0x84, 0xb8, 0x8e, 0x75, 0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x2c, 0x81, 0x3c, 0xad, 0x49, 0xd1, 0x4e, 0x26, 0xfb, 0xf4, 0x6d, 0xa0, 0xec, 0xce, 0x16, - 0x14, 0xbd, 0xbd, 0x75, 0x06, 0x35, 0xe2, 0x3b, 0x1a, 0xf1, 0x78, 0x78, 0xbc, 0xb0, 0x13, 0xf7, - 0x9c, 0xed, 0x39, 0x2e, 0xeb, 0x06, 0xa6, 0x66, 0x91, 0x8b, 0x46, 0x88, 0x6c, 0xf0, 0x9f, 0xf8, - 0xaf, 0xa9, 0x43, 0x1a, 0x93, 0x7f, 0xa6, 0xcd, 0x02, 0xf7, 0xef, 0xfc, 0x09, 0x00, 0x00, 0xff, - 0xff, 0x2a, 0xe5, 0x12, 0xaa, 0x69, 0x0b, 0x00, 0x00, + // 837 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4e, 0xeb, 0x46, + 0x14, 0x96, 0x13, 0x08, 0x70, 0x12, 0xf1, 0x33, 0x42, 0xd4, 0xb1, 0x4a, 0x49, 0xdc, 0xaa, 0x8a, + 0x5a, 0x70, 0xda, 0x00, 0x6a, 0x17, 0xdd, 0x90, 0x42, 0x69, 0x76, 0x95, 0x41, 0x48, 0x65, 0x13, + 0xf9, 0xe7, 0xe0, 0x58, 0x4d, 0x3c, 0xa9, 0x67, 0x9c, 0x82, 0xba, 0xea, 0xaa, 0x95, 0xfa, 0x02, + 0x7d, 0x85, 0xae, 0xba, 0xee, 0x2b, 0xdc, 0xc5, 0x7d, 0x83, 0xfb, 0x2e, 0x57, 0x19, 0x8f, 0x4d, + 0x9c, 0x38, 0x81, 0x08, 0x21, 0xdd, 0x8d, 0xa5, 0x33, 0xe7, 0x3b, 0x33, 0xdf, 0x7c, 0xe7, 0x67, + 0x0c, 0x9f, 0xdf, 0xf5, 0xe9, 0x6f, 0x4d, 0xbc, 0x47, 0x27, 0xe2, 0x3e, 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70b49bcfaac834d94ccce8ccd Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 13 Feb 2024 15:43:21 +0200 Subject: [PATCH 05/36] Merged with main --- protobuf/go/flow/access/access_grpc.pb.go | 160 +++++++----------- .../go/flow/execution/execution_grpc.pb.go | 70 +++----- .../executiondata/executiondata_grpc.pb.go | 21 +-- .../go/flow/legacy/access/access_grpc.pb.go | 105 +++++------- .../legacy/execution/execution_grpc.pb.go | 30 ++-- 5 files changed, 149 insertions(+), 237 deletions(-) diff --git a/protobuf/go/flow/access/access_grpc.pb.go b/protobuf/go/flow/access/access_grpc.pb.go index b7308c8ec..3ead2dad0 100644 --- a/protobuf/go/flow/access/access_grpc.pb.go +++ b/protobuf/go/flow/access/access_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) // source: flow/access/access.proto @@ -18,40 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - AccessAPI_Ping_FullMethodName = "/flow.access.AccessAPI/Ping" - AccessAPI_GetNodeVersionInfo_FullMethodName = "/flow.access.AccessAPI/GetNodeVersionInfo" - AccessAPI_GetLatestBlockHeader_FullMethodName = "/flow.access.AccessAPI/GetLatestBlockHeader" - AccessAPI_GetBlockHeaderByID_FullMethodName = "/flow.access.AccessAPI/GetBlockHeaderByID" - AccessAPI_GetBlockHeaderByHeight_FullMethodName = "/flow.access.AccessAPI/GetBlockHeaderByHeight" - AccessAPI_GetLatestBlock_FullMethodName = "/flow.access.AccessAPI/GetLatestBlock" - AccessAPI_GetBlockByID_FullMethodName = "/flow.access.AccessAPI/GetBlockByID" - AccessAPI_GetBlockByHeight_FullMethodName = "/flow.access.AccessAPI/GetBlockByHeight" - AccessAPI_GetCollectionByID_FullMethodName = "/flow.access.AccessAPI/GetCollectionByID" - AccessAPI_SendTransaction_FullMethodName = "/flow.access.AccessAPI/SendTransaction" - AccessAPI_GetTransaction_FullMethodName = "/flow.access.AccessAPI/GetTransaction" - AccessAPI_GetTransactionResult_FullMethodName = "/flow.access.AccessAPI/GetTransactionResult" - AccessAPI_GetTransactionResultByIndex_FullMethodName = "/flow.access.AccessAPI/GetTransactionResultByIndex" - AccessAPI_GetTransactionResultsByBlockID_FullMethodName = "/flow.access.AccessAPI/GetTransactionResultsByBlockID" - AccessAPI_GetTransactionsByBlockID_FullMethodName = "/flow.access.AccessAPI/GetTransactionsByBlockID" - AccessAPI_GetSystemTransaction_FullMethodName = "/flow.access.AccessAPI/GetSystemTransaction" - AccessAPI_GetSystemTransactionResult_FullMethodName = "/flow.access.AccessAPI/GetSystemTransactionResult" - AccessAPI_GetAccount_FullMethodName = "/flow.access.AccessAPI/GetAccount" - AccessAPI_GetAccountAtLatestBlock_FullMethodName = "/flow.access.AccessAPI/GetAccountAtLatestBlock" - AccessAPI_GetAccountAtBlockHeight_FullMethodName = "/flow.access.AccessAPI/GetAccountAtBlockHeight" - AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock" - AccessAPI_ExecuteScriptAtBlockID_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtBlockID" - AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight" - AccessAPI_GetEventsForHeightRange_FullMethodName = "/flow.access.AccessAPI/GetEventsForHeightRange" - AccessAPI_GetEventsForBlockIDs_FullMethodName = "/flow.access.AccessAPI/GetEventsForBlockIDs" - AccessAPI_GetNetworkParameters_FullMethodName = "/flow.access.AccessAPI/GetNetworkParameters" - AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName = "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot" - AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName = "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID" - AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName = "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight" - AccessAPI_GetExecutionResultForBlockID_FullMethodName = "/flow.access.AccessAPI/GetExecutionResultForBlockID" - AccessAPI_GetExecutionResultByID_FullMethodName = "/flow.access.AccessAPI/GetExecutionResultByID" -) - // AccessAPIClient is the client API for AccessAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -153,7 +119,7 @@ func NewAccessAPIClient(cc grpc.ClientConnInterface) AccessAPIClient { func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, AccessAPI_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/Ping", in, out, opts...) if err != nil { return nil, err } @@ -162,7 +128,7 @@ func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grp func (c *accessAPIClient) GetNodeVersionInfo(ctx context.Context, in *GetNodeVersionInfoRequest, opts ...grpc.CallOption) (*GetNodeVersionInfoResponse, error) { out := new(GetNodeVersionInfoResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetNodeVersionInfo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetNodeVersionInfo", in, out, opts...) if err != nil { return nil, err } @@ -171,7 +137,7 @@ func (c *accessAPIClient) GetNodeVersionInfo(ctx context.Context, in *GetNodeVer func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestBlockHeader", in, out, opts...) if err != nil { return nil, err } @@ -180,7 +146,7 @@ func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLates func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockHeaderByID", in, out, opts...) if err != nil { return nil, err } @@ -189,7 +155,7 @@ func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHe func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockHeaderByHeight", in, out, opts...) if err != nil { return nil, err } @@ -198,7 +164,7 @@ func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlo func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -207,7 +173,7 @@ func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlock func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockByID", in, out, opts...) if err != nil { return nil, err } @@ -216,7 +182,7 @@ func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockByHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockByHeight", in, out, opts...) if err != nil { return nil, err } @@ -225,7 +191,7 @@ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHe func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollectionByIDRequest, opts ...grpc.CallOption) (*CollectionResponse, error) { out := new(CollectionResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetCollectionByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetCollectionByID", in, out, opts...) if err != nil { return nil, err } @@ -234,7 +200,7 @@ func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollecti func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { out := new(SendTransactionResponse) - err := c.cc.Invoke(ctx, AccessAPI_SendTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/SendTransaction", in, out, opts...) if err != nil { return nil, err } @@ -243,7 +209,7 @@ func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransacti func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransaction", in, out, opts...) if err != nil { return nil, err } @@ -252,7 +218,7 @@ func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransaction func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResult", in, out, opts...) if err != nil { return nil, err } @@ -261,7 +227,7 @@ func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTrans func (c *accessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *GetTransactionByIndexRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResultByIndex_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResultByIndex", in, out, opts...) if err != nil { return nil, err } @@ -270,7 +236,7 @@ func (c *accessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *G func (c *accessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*TransactionResultsResponse, error) { out := new(TransactionResultsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResultsByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResultsByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -279,7 +245,7 @@ func (c *accessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in func (c *accessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*TransactionsResponse, error) { out := new(TransactionsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransactionsByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionsByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -288,7 +254,7 @@ func (c *accessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *GetT func (c *accessAPIClient) GetSystemTransaction(ctx context.Context, in *GetSystemTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetSystemTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetSystemTransaction", in, out, opts...) if err != nil { return nil, err } @@ -297,7 +263,7 @@ func (c *accessAPIClient) GetSystemTransaction(ctx context.Context, in *GetSyste func (c *accessAPIClient) GetSystemTransactionResult(ctx context.Context, in *GetSystemTransactionResultRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetSystemTransactionResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetSystemTransactionResult", in, out, opts...) if err != nil { return nil, err } @@ -306,7 +272,7 @@ func (c *accessAPIClient) GetSystemTransactionResult(ctx context.Context, in *Ge func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccount", in, out, opts...) if err != nil { return nil, err } @@ -315,7 +281,7 @@ func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccountAtLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -324,7 +290,7 @@ func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAc func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtBlockHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccountAtBlockHeight", in, out, opts...) if err != nil { return nil, err } @@ -333,7 +299,7 @@ func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAc func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -342,7 +308,7 @@ func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *Ex func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -351,7 +317,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Execut func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight", in, out, opts...) if err != nil { return nil, err } @@ -360,7 +326,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *Ex func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetEventsForHeightRange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetEventsForHeightRange", in, out, opts...) if err != nil { return nil, err } @@ -369,7 +335,7 @@ func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEv func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetEventsForBlockIDs", in, out, opts...) if err != nil { return nil, err } @@ -378,7 +344,7 @@ func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEvent func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetworkParametersRequest, opts ...grpc.CallOption) (*GetNetworkParametersResponse, error) { out := new(GetNetworkParametersResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetNetworkParameters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetNetworkParameters", in, out, opts...) if err != nil { return nil, err } @@ -387,7 +353,7 @@ func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetwo func (c *accessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in *GetLatestProtocolStateSnapshotRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot", in, out, opts...) if err != nil { return nil, err } @@ -396,7 +362,7 @@ func (c *accessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in func (c *accessAPIClient) GetProtocolStateSnapshotByBlockID(ctx context.Context, in *GetProtocolStateSnapshotByBlockIDRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -405,7 +371,7 @@ func (c *accessAPIClient) GetProtocolStateSnapshotByBlockID(ctx context.Context, func (c *accessAPIClient) GetProtocolStateSnapshotByHeight(ctx context.Context, in *GetProtocolStateSnapshotByHeightRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight", in, out, opts...) if err != nil { return nil, err } @@ -414,7 +380,7 @@ func (c *accessAPIClient) GetProtocolStateSnapshotByHeight(ctx context.Context, func (c *accessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in *GetExecutionResultForBlockIDRequest, opts ...grpc.CallOption) (*ExecutionResultForBlockIDResponse, error) { out := new(ExecutionResultForBlockIDResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetExecutionResultForBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetExecutionResultForBlockID", in, out, opts...) if err != nil { return nil, err } @@ -423,7 +389,7 @@ func (c *accessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in * func (c *accessAPIClient) GetExecutionResultByID(ctx context.Context, in *GetExecutionResultByIDRequest, opts ...grpc.CallOption) (*ExecutionResultByIDResponse, error) { out := new(ExecutionResultByIDResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetExecutionResultByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetExecutionResultByID", in, out, opts...) if err != nil { return nil, err } @@ -640,7 +606,7 @@ func _AccessAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_Ping_FullMethodName, + FullMethod: "/flow.access.AccessAPI/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).Ping(ctx, req.(*PingRequest)) @@ -658,7 +624,7 @@ func _AccessAPI_GetNodeVersionInfo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetNodeVersionInfo_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetNodeVersionInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNodeVersionInfo(ctx, req.(*GetNodeVersionInfoRequest)) @@ -676,7 +642,7 @@ func _AccessAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetLatestBlockHeader_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetLatestBlockHeader", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -694,7 +660,7 @@ func _AccessAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockHeaderByID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetBlockHeaderByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) @@ -712,7 +678,7 @@ func _AccessAPI_GetBlockHeaderByHeight_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockHeaderByHeight_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetBlockHeaderByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByHeight(ctx, req.(*GetBlockHeaderByHeightRequest)) @@ -730,7 +696,7 @@ func _AccessAPI_GetLatestBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetLatestBlock_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlock(ctx, req.(*GetLatestBlockRequest)) @@ -748,7 +714,7 @@ func _AccessAPI_GetBlockByID_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockByID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetBlockByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByID(ctx, req.(*GetBlockByIDRequest)) @@ -766,7 +732,7 @@ func _AccessAPI_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockByHeight_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetBlockByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) @@ -784,7 +750,7 @@ func _AccessAPI_GetCollectionByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetCollectionByID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetCollectionByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetCollectionByID(ctx, req.(*GetCollectionByIDRequest)) @@ -802,7 +768,7 @@ func _AccessAPI_SendTransaction_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_SendTransaction_FullMethodName, + FullMethod: "/flow.access.AccessAPI/SendTransaction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).SendTransaction(ctx, req.(*SendTransactionRequest)) @@ -820,7 +786,7 @@ func _AccessAPI_GetTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransaction_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetTransaction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransaction(ctx, req.(*GetTransactionRequest)) @@ -838,7 +804,7 @@ func _AccessAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransactionResult_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetTransactionResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResult(ctx, req.(*GetTransactionRequest)) @@ -856,7 +822,7 @@ func _AccessAPI_GetTransactionResultByIndex_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransactionResultByIndex_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetTransactionResultByIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResultByIndex(ctx, req.(*GetTransactionByIndexRequest)) @@ -874,7 +840,7 @@ func _AccessAPI_GetTransactionResultsByBlockID_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransactionResultsByBlockID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetTransactionResultsByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResultsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -892,7 +858,7 @@ func _AccessAPI_GetTransactionsByBlockID_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransactionsByBlockID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetTransactionsByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -910,7 +876,7 @@ func _AccessAPI_GetSystemTransaction_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetSystemTransaction_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetSystemTransaction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetSystemTransaction(ctx, req.(*GetSystemTransactionRequest)) @@ -928,7 +894,7 @@ func _AccessAPI_GetSystemTransactionResult_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetSystemTransactionResult_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetSystemTransactionResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetSystemTransactionResult(ctx, req.(*GetSystemTransactionResultRequest)) @@ -946,7 +912,7 @@ func _AccessAPI_GetAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccount_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccount(ctx, req.(*GetAccountRequest)) @@ -964,7 +930,7 @@ func _AccessAPI_GetAccountAtLatestBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccountAtLatestBlock_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetAccountAtLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtLatestBlock(ctx, req.(*GetAccountAtLatestBlockRequest)) @@ -982,7 +948,7 @@ func _AccessAPI_GetAccountAtBlockHeight_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccountAtBlockHeight_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetAccountAtBlockHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtBlockHeight(ctx, req.(*GetAccountAtBlockHeightRequest)) @@ -1000,7 +966,7 @@ func _AccessAPI_ExecuteScriptAtLatestBlock_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, + FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtLatestBlock(ctx, req.(*ExecuteScriptAtLatestBlockRequest)) @@ -1018,7 +984,7 @@ func _AccessAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtBlockID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -1036,7 +1002,7 @@ func _AccessAPI_ExecuteScriptAtBlockHeight_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, + FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockHeight(ctx, req.(*ExecuteScriptAtBlockHeightRequest)) @@ -1054,7 +1020,7 @@ func _AccessAPI_GetEventsForHeightRange_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetEventsForHeightRange_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetEventsForHeightRange", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForHeightRange(ctx, req.(*GetEventsForHeightRangeRequest)) @@ -1072,7 +1038,7 @@ func _AccessAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetEventsForBlockIDs_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetEventsForBlockIDs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -1090,7 +1056,7 @@ func _AccessAPI_GetNetworkParameters_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetNetworkParameters_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetNetworkParameters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNetworkParameters(ctx, req.(*GetNetworkParametersRequest)) @@ -1108,7 +1074,7 @@ func _AccessAPI_GetLatestProtocolStateSnapshot_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestProtocolStateSnapshot(ctx, req.(*GetLatestProtocolStateSnapshotRequest)) @@ -1126,7 +1092,7 @@ func _AccessAPI_GetProtocolStateSnapshotByBlockID_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetProtocolStateSnapshotByBlockID(ctx, req.(*GetProtocolStateSnapshotByBlockIDRequest)) @@ -1144,7 +1110,7 @@ func _AccessAPI_GetProtocolStateSnapshotByHeight_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetProtocolStateSnapshotByHeight(ctx, req.(*GetProtocolStateSnapshotByHeightRequest)) @@ -1162,7 +1128,7 @@ func _AccessAPI_GetExecutionResultForBlockID_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetExecutionResultForBlockID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetExecutionResultForBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetExecutionResultForBlockID(ctx, req.(*GetExecutionResultForBlockIDRequest)) @@ -1180,7 +1146,7 @@ func _AccessAPI_GetExecutionResultByID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetExecutionResultByID_FullMethodName, + FullMethod: "/flow.access.AccessAPI/GetExecutionResultByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetExecutionResultByID(ctx, req.(*GetExecutionResultByIDRequest)) diff --git a/protobuf/go/flow/execution/execution_grpc.pb.go b/protobuf/go/flow/execution/execution_grpc.pb.go index 49846e80c..7726a8e90 100644 --- a/protobuf/go/flow/execution/execution_grpc.pb.go +++ b/protobuf/go/flow/execution/execution_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) // source: flow/execution/execution.proto @@ -18,22 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - ExecutionAPI_Ping_FullMethodName = "/flow.execution.ExecutionAPI/Ping" - ExecutionAPI_GetAccountAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetAccountAtBlockID" - ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID" - ExecutionAPI_GetEventsForBlockIDs_FullMethodName = "/flow.execution.ExecutionAPI/GetEventsForBlockIDs" - ExecutionAPI_GetTransactionResult_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResult" - ExecutionAPI_GetTransactionResultByIndex_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResultByIndex" - ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID" - ExecutionAPI_GetTransactionErrorMessage_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessage" - ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex" - ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID" - ExecutionAPI_GetRegisterAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetRegisterAtBlockID" - ExecutionAPI_GetLatestBlockHeader_FullMethodName = "/flow.execution.ExecutionAPI/GetLatestBlockHeader" - ExecutionAPI_GetBlockHeaderByID_FullMethodName = "/flow.execution.ExecutionAPI/GetBlockHeaderByID" -) - // ExecutionAPIClient is the client API for ExecutionAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -81,7 +65,7 @@ func NewExecutionAPIClient(cc grpc.ClientConnInterface) ExecutionAPIClient { func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/Ping", in, out, opts...) if err != nil { return nil, err } @@ -90,7 +74,7 @@ func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ... func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAccountAtBlockIDRequest, opts ...grpc.CallOption) (*GetAccountAtBlockIDResponse, error) { out := new(GetAccountAtBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetAccountAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetAccountAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -99,7 +83,7 @@ func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAcc func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptAtBlockIDResponse, error) { out := new(ExecuteScriptAtBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -108,7 +92,7 @@ func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Exe func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*GetEventsForBlockIDsResponse, error) { out := new(GetEventsForBlockIDsResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetEventsForBlockIDs", in, out, opts...) if err != nil { return nil, err } @@ -117,7 +101,7 @@ func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEv func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionResultRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResult", in, out, opts...) if err != nil { return nil, err } @@ -126,7 +110,7 @@ func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTr func (c *executionAPIClient) GetTransactionResultByIndex(ctx context.Context, in *GetTransactionByIndexRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResultByIndex_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResultByIndex", in, out, opts...) if err != nil { return nil, err } @@ -135,7 +119,7 @@ func (c *executionAPIClient) GetTransactionResultByIndex(ctx context.Context, in func (c *executionAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionResultsResponse, error) { out := new(GetTransactionResultsResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -144,7 +128,7 @@ func (c *executionAPIClient) GetTransactionResultsByBlockID(ctx context.Context, func (c *executionAPIClient) GetTransactionErrorMessage(ctx context.Context, in *GetTransactionErrorMessageRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessageResponse, error) { out := new(GetTransactionErrorMessageResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", in, out, opts...) if err != nil { return nil, err } @@ -153,7 +137,7 @@ func (c *executionAPIClient) GetTransactionErrorMessage(ctx context.Context, in func (c *executionAPIClient) GetTransactionErrorMessageByIndex(ctx context.Context, in *GetTransactionErrorMessageByIndexRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessageResponse, error) { out := new(GetTransactionErrorMessageResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", in, out, opts...) if err != nil { return nil, err } @@ -162,7 +146,7 @@ func (c *executionAPIClient) GetTransactionErrorMessageByIndex(ctx context.Conte func (c *executionAPIClient) GetTransactionErrorMessagesByBlockID(ctx context.Context, in *GetTransactionErrorMessagesByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessagesResponse, error) { out := new(GetTransactionErrorMessagesResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -171,7 +155,7 @@ func (c *executionAPIClient) GetTransactionErrorMessagesByBlockID(ctx context.Co func (c *executionAPIClient) GetRegisterAtBlockID(ctx context.Context, in *GetRegisterAtBlockIDRequest, opts ...grpc.CallOption) (*GetRegisterAtBlockIDResponse, error) { out := new(GetRegisterAtBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetRegisterAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetRegisterAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -180,7 +164,7 @@ func (c *executionAPIClient) GetRegisterAtBlockID(ctx context.Context, in *GetRe func (c *executionAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetLatestBlockHeader", in, out, opts...) if err != nil { return nil, err } @@ -189,7 +173,7 @@ func (c *executionAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLa func (c *executionAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetBlockHeaderByID", in, out, opts...) if err != nil { return nil, err } @@ -298,7 +282,7 @@ func _ExecutionAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_Ping_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).Ping(ctx, req.(*PingRequest)) @@ -316,7 +300,7 @@ func _ExecutionAPI_GetAccountAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetAccountAtBlockID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetAccountAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetAccountAtBlockID(ctx, req.(*GetAccountAtBlockIDRequest)) @@ -334,7 +318,7 @@ func _ExecutionAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -352,7 +336,7 @@ func _ExecutionAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetEventsForBlockIDs_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetEventsForBlockIDs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -370,7 +354,7 @@ func _ExecutionAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionResult_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResult(ctx, req.(*GetTransactionResultRequest)) @@ -388,7 +372,7 @@ func _ExecutionAPI_GetTransactionResultByIndex_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionResultByIndex_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResultByIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResultByIndex(ctx, req.(*GetTransactionByIndexRequest)) @@ -406,7 +390,7 @@ func _ExecutionAPI_GetTransactionResultsByBlockID_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResultsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -424,7 +408,7 @@ func _ExecutionAPI_GetTransactionErrorMessage_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionErrorMessage_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessage(ctx, req.(*GetTransactionErrorMessageRequest)) @@ -442,7 +426,7 @@ func _ExecutionAPI_GetTransactionErrorMessageByIndex_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessageByIndex(ctx, req.(*GetTransactionErrorMessageByIndexRequest)) @@ -460,7 +444,7 @@ func _ExecutionAPI_GetTransactionErrorMessagesByBlockID_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessagesByBlockID(ctx, req.(*GetTransactionErrorMessagesByBlockIDRequest)) @@ -478,7 +462,7 @@ func _ExecutionAPI_GetRegisterAtBlockID_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetRegisterAtBlockID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetRegisterAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetRegisterAtBlockID(ctx, req.(*GetRegisterAtBlockIDRequest)) @@ -496,7 +480,7 @@ func _ExecutionAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetLatestBlockHeader_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetLatestBlockHeader", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -514,7 +498,7 @@ func _ExecutionAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetBlockHeaderByID_FullMethodName, + FullMethod: "/flow.execution.ExecutionAPI/GetBlockHeaderByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) diff --git a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go index 7a2682abf..3b9898726 100644 --- a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go +++ b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) // source: flow/executiondata/executiondata.proto @@ -18,13 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName = "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID" - ExecutionDataAPI_SubscribeExecutionData_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeExecutionData" - ExecutionDataAPI_SubscribeEvents_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeEvents" - ExecutionDataAPI_GetRegisterValues_FullMethodName = "/flow.executiondata.ExecutionDataAPI/GetRegisterValues" -) - // ExecutionDataAPIClient is the client API for ExecutionDataAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -114,7 +107,7 @@ func NewExecutionDataAPIClient(cc grpc.ClientConnInterface) ExecutionDataAPIClie func (c *executionDataAPIClient) GetExecutionDataByBlockID(ctx context.Context, in *GetExecutionDataByBlockIDRequest, opts ...grpc.CallOption) (*GetExecutionDataByBlockIDResponse, error) { out := new(GetExecutionDataByBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID", in, out, opts...) if err != nil { return nil, err } @@ -122,7 +115,7 @@ func (c *executionDataAPIClient) GetExecutionDataByBlockID(ctx context.Context, } func (c *executionDataAPIClient) SubscribeExecutionData(ctx context.Context, in *SubscribeExecutionDataRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeExecutionDataClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[0], ExecutionDataAPI_SubscribeExecutionData_FullMethodName, opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[0], "/flow.executiondata.ExecutionDataAPI/SubscribeExecutionData", opts...) if err != nil { return nil, err } @@ -154,7 +147,7 @@ func (x *executionDataAPISubscribeExecutionDataClient) Recv() (*SubscribeExecuti } func (c *executionDataAPIClient) SubscribeEvents(ctx context.Context, in *SubscribeEventsRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeEventsClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[1], ExecutionDataAPI_SubscribeEvents_FullMethodName, opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[1], "/flow.executiondata.ExecutionDataAPI/SubscribeEvents", opts...) if err != nil { return nil, err } @@ -187,7 +180,7 @@ func (x *executionDataAPISubscribeEventsClient) Recv() (*SubscribeEventsResponse func (c *executionDataAPIClient) GetRegisterValues(ctx context.Context, in *GetRegisterValuesRequest, opts ...grpc.CallOption) (*GetRegisterValuesResponse, error) { out := new(GetRegisterValuesResponse) - err := c.cc.Invoke(ctx, ExecutionDataAPI_GetRegisterValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/flow.executiondata.ExecutionDataAPI/GetRegisterValues", in, out, opts...) if err != nil { return nil, err } @@ -346,7 +339,7 @@ func _ExecutionDataAPI_GetExecutionDataByBlockID_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName, + FullMethod: "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionDataAPIServer).GetExecutionDataByBlockID(ctx, req.(*GetExecutionDataByBlockIDRequest)) @@ -406,7 +399,7 @@ func _ExecutionDataAPI_GetRegisterValues_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionDataAPI_GetRegisterValues_FullMethodName, + FullMethod: "/flow.executiondata.ExecutionDataAPI/GetRegisterValues", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionDataAPIServer).GetRegisterValues(ctx, req.(*GetRegisterValuesRequest)) diff --git a/protobuf/go/flow/legacy/access/access_grpc.pb.go b/protobuf/go/flow/legacy/access/access_grpc.pb.go index 76938b868..35afbce0b 100644 --- a/protobuf/go/flow/legacy/access/access_grpc.pb.go +++ b/protobuf/go/flow/legacy/access/access_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) // source: flow/legacy/access/access.proto @@ -18,29 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - AccessAPI_Ping_FullMethodName = "/access.AccessAPI/Ping" - AccessAPI_GetLatestBlockHeader_FullMethodName = "/access.AccessAPI/GetLatestBlockHeader" - AccessAPI_GetBlockHeaderByID_FullMethodName = "/access.AccessAPI/GetBlockHeaderByID" - AccessAPI_GetBlockHeaderByHeight_FullMethodName = "/access.AccessAPI/GetBlockHeaderByHeight" - AccessAPI_GetLatestBlock_FullMethodName = "/access.AccessAPI/GetLatestBlock" - AccessAPI_GetBlockByID_FullMethodName = "/access.AccessAPI/GetBlockByID" - AccessAPI_GetBlockByHeight_FullMethodName = "/access.AccessAPI/GetBlockByHeight" - AccessAPI_GetCollectionByID_FullMethodName = "/access.AccessAPI/GetCollectionByID" - AccessAPI_SendTransaction_FullMethodName = "/access.AccessAPI/SendTransaction" - AccessAPI_GetTransaction_FullMethodName = "/access.AccessAPI/GetTransaction" - AccessAPI_GetTransactionResult_FullMethodName = "/access.AccessAPI/GetTransactionResult" - AccessAPI_GetAccount_FullMethodName = "/access.AccessAPI/GetAccount" - AccessAPI_GetAccountAtLatestBlock_FullMethodName = "/access.AccessAPI/GetAccountAtLatestBlock" - AccessAPI_GetAccountAtBlockHeight_FullMethodName = "/access.AccessAPI/GetAccountAtBlockHeight" - AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName = "/access.AccessAPI/ExecuteScriptAtLatestBlock" - AccessAPI_ExecuteScriptAtBlockID_FullMethodName = "/access.AccessAPI/ExecuteScriptAtBlockID" - AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName = "/access.AccessAPI/ExecuteScriptAtBlockHeight" - AccessAPI_GetEventsForHeightRange_FullMethodName = "/access.AccessAPI/GetEventsForHeightRange" - AccessAPI_GetEventsForBlockIDs_FullMethodName = "/access.AccessAPI/GetEventsForBlockIDs" - AccessAPI_GetNetworkParameters_FullMethodName = "/access.AccessAPI/GetNetworkParameters" -) - // AccessAPIClient is the client API for AccessAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -108,7 +85,7 @@ func NewAccessAPIClient(cc grpc.ClientConnInterface) AccessAPIClient { func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, AccessAPI_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/Ping", in, out, opts...) if err != nil { return nil, err } @@ -117,7 +94,7 @@ func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grp func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetLatestBlockHeader", in, out, opts...) if err != nil { return nil, err } @@ -126,7 +103,7 @@ func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLates func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockHeaderByID", in, out, opts...) if err != nil { return nil, err } @@ -135,7 +112,7 @@ func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHe func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockHeaderByHeight", in, out, opts...) if err != nil { return nil, err } @@ -144,7 +121,7 @@ func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlo func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -153,7 +130,7 @@ func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlock func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockByID", in, out, opts...) if err != nil { return nil, err } @@ -162,7 +139,7 @@ func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetBlockByHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockByHeight", in, out, opts...) if err != nil { return nil, err } @@ -171,7 +148,7 @@ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHe func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollectionByIDRequest, opts ...grpc.CallOption) (*CollectionResponse, error) { out := new(CollectionResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetCollectionByID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetCollectionByID", in, out, opts...) if err != nil { return nil, err } @@ -180,7 +157,7 @@ func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollecti func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { out := new(SendTransactionResponse) - err := c.cc.Invoke(ctx, AccessAPI_SendTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/SendTransaction", in, out, opts...) if err != nil { return nil, err } @@ -189,7 +166,7 @@ func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransacti func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetTransaction", in, out, opts...) if err != nil { return nil, err } @@ -198,7 +175,7 @@ func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransaction func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetTransactionResult", in, out, opts...) if err != nil { return nil, err } @@ -207,7 +184,7 @@ func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTrans func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccount", in, out, opts...) if err != nil { return nil, err } @@ -216,7 +193,7 @@ func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccountAtLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -225,7 +202,7 @@ func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAc func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtBlockHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccountAtBlockHeight", in, out, opts...) if err != nil { return nil, err } @@ -234,7 +211,7 @@ func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAc func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtLatestBlock", in, out, opts...) if err != nil { return nil, err } @@ -243,7 +220,7 @@ func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *Ex func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -252,7 +229,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Execut func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtBlockHeight", in, out, opts...) if err != nil { return nil, err } @@ -261,7 +238,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *Ex func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetEventsForHeightRange_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetEventsForHeightRange", in, out, opts...) if err != nil { return nil, err } @@ -270,7 +247,7 @@ func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEv func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetEventsForBlockIDs", in, out, opts...) if err != nil { return nil, err } @@ -279,7 +256,7 @@ func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEvent func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetworkParametersRequest, opts ...grpc.CallOption) (*GetNetworkParametersResponse, error) { out := new(GetNetworkParametersResponse) - err := c.cc.Invoke(ctx, AccessAPI_GetNetworkParameters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/access.AccessAPI/GetNetworkParameters", in, out, opts...) if err != nil { return nil, err } @@ -429,7 +406,7 @@ func _AccessAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_Ping_FullMethodName, + FullMethod: "/access.AccessAPI/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).Ping(ctx, req.(*PingRequest)) @@ -447,7 +424,7 @@ func _AccessAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetLatestBlockHeader_FullMethodName, + FullMethod: "/access.AccessAPI/GetLatestBlockHeader", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -465,7 +442,7 @@ func _AccessAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockHeaderByID_FullMethodName, + FullMethod: "/access.AccessAPI/GetBlockHeaderByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) @@ -483,7 +460,7 @@ func _AccessAPI_GetBlockHeaderByHeight_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockHeaderByHeight_FullMethodName, + FullMethod: "/access.AccessAPI/GetBlockHeaderByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByHeight(ctx, req.(*GetBlockHeaderByHeightRequest)) @@ -501,7 +478,7 @@ func _AccessAPI_GetLatestBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetLatestBlock_FullMethodName, + FullMethod: "/access.AccessAPI/GetLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlock(ctx, req.(*GetLatestBlockRequest)) @@ -519,7 +496,7 @@ func _AccessAPI_GetBlockByID_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockByID_FullMethodName, + FullMethod: "/access.AccessAPI/GetBlockByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByID(ctx, req.(*GetBlockByIDRequest)) @@ -537,7 +514,7 @@ func _AccessAPI_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetBlockByHeight_FullMethodName, + FullMethod: "/access.AccessAPI/GetBlockByHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) @@ -555,7 +532,7 @@ func _AccessAPI_GetCollectionByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetCollectionByID_FullMethodName, + FullMethod: "/access.AccessAPI/GetCollectionByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetCollectionByID(ctx, req.(*GetCollectionByIDRequest)) @@ -573,7 +550,7 @@ func _AccessAPI_SendTransaction_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_SendTransaction_FullMethodName, + FullMethod: "/access.AccessAPI/SendTransaction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).SendTransaction(ctx, req.(*SendTransactionRequest)) @@ -591,7 +568,7 @@ func _AccessAPI_GetTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransaction_FullMethodName, + FullMethod: "/access.AccessAPI/GetTransaction", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransaction(ctx, req.(*GetTransactionRequest)) @@ -609,7 +586,7 @@ func _AccessAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetTransactionResult_FullMethodName, + FullMethod: "/access.AccessAPI/GetTransactionResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResult(ctx, req.(*GetTransactionRequest)) @@ -627,7 +604,7 @@ func _AccessAPI_GetAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccount_FullMethodName, + FullMethod: "/access.AccessAPI/GetAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccount(ctx, req.(*GetAccountRequest)) @@ -645,7 +622,7 @@ func _AccessAPI_GetAccountAtLatestBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccountAtLatestBlock_FullMethodName, + FullMethod: "/access.AccessAPI/GetAccountAtLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtLatestBlock(ctx, req.(*GetAccountAtLatestBlockRequest)) @@ -663,7 +640,7 @@ func _AccessAPI_GetAccountAtBlockHeight_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetAccountAtBlockHeight_FullMethodName, + FullMethod: "/access.AccessAPI/GetAccountAtBlockHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtBlockHeight(ctx, req.(*GetAccountAtBlockHeightRequest)) @@ -681,7 +658,7 @@ func _AccessAPI_ExecuteScriptAtLatestBlock_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, + FullMethod: "/access.AccessAPI/ExecuteScriptAtLatestBlock", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtLatestBlock(ctx, req.(*ExecuteScriptAtLatestBlockRequest)) @@ -699,7 +676,7 @@ func _AccessAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtBlockID_FullMethodName, + FullMethod: "/access.AccessAPI/ExecuteScriptAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -717,7 +694,7 @@ func _AccessAPI_ExecuteScriptAtBlockHeight_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, + FullMethod: "/access.AccessAPI/ExecuteScriptAtBlockHeight", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockHeight(ctx, req.(*ExecuteScriptAtBlockHeightRequest)) @@ -735,7 +712,7 @@ func _AccessAPI_GetEventsForHeightRange_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetEventsForHeightRange_FullMethodName, + FullMethod: "/access.AccessAPI/GetEventsForHeightRange", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForHeightRange(ctx, req.(*GetEventsForHeightRangeRequest)) @@ -753,7 +730,7 @@ func _AccessAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetEventsForBlockIDs_FullMethodName, + FullMethod: "/access.AccessAPI/GetEventsForBlockIDs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -771,7 +748,7 @@ func _AccessAPI_GetNetworkParameters_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: AccessAPI_GetNetworkParameters_FullMethodName, + FullMethod: "/access.AccessAPI/GetNetworkParameters", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNetworkParameters(ctx, req.(*GetNetworkParametersRequest)) diff --git a/protobuf/go/flow/legacy/execution/execution_grpc.pb.go b/protobuf/go/flow/legacy/execution/execution_grpc.pb.go index f806f3909..78c62fe6a 100644 --- a/protobuf/go/flow/legacy/execution/execution_grpc.pb.go +++ b/protobuf/go/flow/legacy/execution/execution_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.2.0 // - protoc (unknown) // source: flow/legacy/execution/execution.proto @@ -18,14 +18,6 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 -const ( - ExecutionAPI_Ping_FullMethodName = "/execution.ExecutionAPI/Ping" - ExecutionAPI_GetAccountAtBlockID_FullMethodName = "/execution.ExecutionAPI/GetAccountAtBlockID" - ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName = "/execution.ExecutionAPI/ExecuteScriptAtBlockID" - ExecutionAPI_GetEventsForBlockIDs_FullMethodName = "/execution.ExecutionAPI/GetEventsForBlockIDs" - ExecutionAPI_GetTransactionResult_FullMethodName = "/execution.ExecutionAPI/GetTransactionResult" -) - // ExecutionAPIClient is the client API for ExecutionAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -54,7 +46,7 @@ func NewExecutionAPIClient(cc grpc.ClientConnInterface) ExecutionAPIClient { func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_Ping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/Ping", in, out, opts...) if err != nil { return nil, err } @@ -63,7 +55,7 @@ func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ... func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAccountAtBlockIDRequest, opts ...grpc.CallOption) (*GetAccountAtBlockIDResponse, error) { out := new(GetAccountAtBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetAccountAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetAccountAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -72,7 +64,7 @@ func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAcc func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptAtBlockIDResponse, error) { out := new(ExecuteScriptAtBlockIDResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/ExecuteScriptAtBlockID", in, out, opts...) if err != nil { return nil, err } @@ -81,7 +73,7 @@ func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Exe func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*GetEventsForBlockIDsResponse, error) { out := new(GetEventsForBlockIDsResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetEventsForBlockIDs", in, out, opts...) if err != nil { return nil, err } @@ -90,7 +82,7 @@ func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEv func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionResultRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResult_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetTransactionResult", in, out, opts...) if err != nil { return nil, err } @@ -156,7 +148,7 @@ func _ExecutionAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_Ping_FullMethodName, + FullMethod: "/execution.ExecutionAPI/Ping", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).Ping(ctx, req.(*PingRequest)) @@ -174,7 +166,7 @@ func _ExecutionAPI_GetAccountAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetAccountAtBlockID_FullMethodName, + FullMethod: "/execution.ExecutionAPI/GetAccountAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetAccountAtBlockID(ctx, req.(*GetAccountAtBlockIDRequest)) @@ -192,7 +184,7 @@ func _ExecutionAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, + FullMethod: "/execution.ExecutionAPI/ExecuteScriptAtBlockID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -210,7 +202,7 @@ func _ExecutionAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetEventsForBlockIDs_FullMethodName, + FullMethod: "/execution.ExecutionAPI/GetEventsForBlockIDs", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -228,7 +220,7 @@ func _ExecutionAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: ExecutionAPI_GetTransactionResult_FullMethodName, + FullMethod: "/execution.ExecutionAPI/GetTransactionResult", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResult(ctx, req.(*GetTransactionResultRequest)) From 13b14085de00cc4c94c499f1f51bdac4cc193970 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 16 Feb 2024 12:00:13 +0200 Subject: [PATCH 06/36] Added missing field in request for account address --- .../flow/executiondata/executiondata.proto | 9 +- .../go/flow/executiondata/executiondata.pb.go | 124 ++++++++++-------- 2 files changed, 73 insertions(+), 60 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index 46a42ffcd..ba91e846a 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -270,9 +270,12 @@ message SubscribeAccountStatusesRequest { // the latest sealed block is used. uint64 start_block_height = 2; + // Unique identifier for the account being streamed + bytes address = 3; + // Filter to apply to events for each block searched. // If no filter is provided, all statuses are returned. - StatusFilter filter = 3; + StatusFilter filter = 4; // Interval in block heights at which the server should return a heartbeat // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse @@ -282,13 +285,13 @@ message SubscribeAccountStatusesRequest { // // The interval is calculated from the last response returned, which could be // either another heartbeat or a response containing events. - uint64 heartbeat_interval = 4; + uint64 heartbeat_interval = 5; // Preferred event encoding version of the block events payload. // Possible variants: // 1. CCF // 2. JSON-CDC - entities.EventEncodingVersion event_encoding_version = 5; + entities.EventEncodingVersion event_encoding_version = 6; } // The response for SubscribeAccountStatuses diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index 2f0fd3fe0..aadf2ad16 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -601,9 +601,11 @@ type SubscribeAccountStatusesRequest struct { // otherwise an InvalidArgument error is returned. If neither are provided, // the latest sealed block is used. StartBlockHeight uint64 `protobuf:"varint,2,opt,name=start_block_height,json=startBlockHeight,proto3" json:"start_block_height,omitempty"` + // Unique identifier for the account being streamed + Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // Filter to apply to events for each block searched. // If no filter is provided, all statuses are returned. - Filter *StatusFilter `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"` + Filter *StatusFilter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` // Interval in block heights at which the server should return a heartbeat // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse // with no events, and allows clients to track which blocks were searched. @@ -612,12 +614,12 @@ type SubscribeAccountStatusesRequest struct { // // The interval is calculated from the last response returned, which could be // either another heartbeat or a response containing events. - HeartbeatInterval uint64 `protobuf:"varint,4,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + HeartbeatInterval uint64 `protobuf:"varint,5,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` // Preferred event encoding version of the block events payload. // Possible variants: // 1. CCF // 2. JSON-CDC - EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,5,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` + EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,6,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -662,6 +664,13 @@ func (m *SubscribeAccountStatusesRequest) GetStartBlockHeight() uint64 { return 0 } +func (m *SubscribeAccountStatusesRequest) GetAddress() []byte { + if m != nil { + return m.Address + } + return nil +} + func (m *SubscribeAccountStatusesRequest) GetFilter() *StatusFilter { if m != nil { return m.Filter @@ -826,58 +835,59 @@ func init() { } var fileDescriptor_da469632570513fb = []byte{ - // 837 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcd, 0x4e, 0xeb, 0x46, - 0x14, 0x96, 0x13, 0x08, 0x70, 0x12, 0xf1, 0x33, 0x42, 0xd4, 0xb1, 0x4a, 0x49, 0xdc, 0xaa, 0x8a, - 0x5a, 0x70, 0xda, 0x00, 0x6a, 0x17, 0xdd, 0x90, 0x42, 0x69, 0x76, 0x95, 0x41, 0x48, 0x65, 0x13, - 0xf9, 0xe7, 0xe0, 0x58, 0x4d, 0x3c, 0xa9, 0x67, 0x9c, 0x82, 0xba, 0xea, 0xaa, 0x95, 0xfa, 0x02, - 0x7d, 0x85, 0xae, 0xba, 0xee, 0x2b, 0xdc, 0xc5, 0x7d, 0x83, 0xfb, 0x2e, 0x57, 0x19, 0x8f, 0x4d, - 0x9c, 0x38, 0x81, 0x08, 0x21, 0xdd, 0x8d, 0xa5, 0x33, 0xe7, 0x3b, 0x33, 0xdf, 0x7c, 0xe7, 0x67, - 0x0c, 0x9f, 0xdf, 0xf5, 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x45, 0x74, 0x66, 0x47, 0x93, 0xd8, - 0x33, 0x6b, 0xfa, 0x5b, 0x05, 0xf6, 0xaf, 0x22, 0x9b, 0x39, 0xa1, 0x6f, 0x63, 0x16, 0x2e, 0x15, - 0xf9, 0x0c, 0x36, 0x19, 0xb7, 0x42, 0xde, 0x9d, 0xd2, 0xa5, 0x22, 0x56, 0xdb, 0x52, 0x9c, 0x43, - 0x20, 0x93, 0xa8, 0x1e, 0xfa, 0x5e, 0x8f, 0x0b, 0x61, 0x56, 0xcc, 0xed, 0x47, 0xe4, 0x8f, 0x62, - 0x7d, 0x81, 0x94, 0xc5, 0x97, 0x4a, 0xf9, 0x4e, 0x81, 0x4f, 0xe6, 0x5d, 0x48, 0x0a, 0x59, 0x87, - 0x4a, 0x86, 0xa5, 0x22, 0x58, 0x96, 0xed, 0x09, 0x82, 0xf3, 0xb4, 0x2e, 0xbc, 0x40, 0x6b, 0xf2, - 0x3d, 0x6c, 0xc5, 0x9b, 0xa6, 0x95, 0x29, 0xae, 0x5b, 0x6e, 0x69, 0x46, 0x5c, 0xbb, 0x46, 0x52, - 0xbb, 0xc6, 0x75, 0x82, 0x30, 0x37, 0x45, 0x48, 0x6a, 0xeb, 0xff, 0x15, 0x60, 0xef, 0xf1, 0x7e, - 0x63, 0x05, 0xd8, 0x6b, 0x66, 0xea, 0x1b, 0x28, 0xdd, 0xf9, 0x7d, 0x8e, 0xa1, 0xa4, 0x7a, 0x60, - 0xcc, 0x76, 0x77, 0x9c, 0x9e, 0x1f, 0x04, 0xcc, 0x94, 0x70, 0x72, 0x04, 0xa4, 0x87, 0x56, 0xc8, - 0x6d, 0xb4, 0x78, 0xd7, 0x0f, 0x38, 0x86, 0x23, 0xab, 0xaf, 0xae, 0x88, 0x63, 0x76, 0x52, 0x4f, - 0x47, 0x3a, 0x16, 0x54, 0xc4, 0xea, 0x4b, 0x2b, 0xe2, 0x8d, 0x02, 0x1f, 0xcd, 0x28, 0x26, 0x4b, - 0x61, 0x41, 0x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, 0x4e, - 0xad, 0xa4, 0x0b, 0x00, 0x00, + // 849 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xd3, 0x4a, + 0x14, 0x96, 0x93, 0x36, 0x6d, 0x4f, 0xa2, 0xfe, 0x8c, 0xaa, 0x5e, 0xc7, 0xba, 0xbd, 0x4d, 0x7c, + 0x11, 0x8a, 0xa0, 0x75, 0x20, 0x6d, 0x05, 0x0b, 0x36, 0x0d, 0x2d, 0x25, 0x3b, 0xe4, 0x56, 0x95, + 0xe8, 0x26, 0xf2, 0xcf, 0xd4, 0xb1, 0x48, 0x3c, 0xc1, 0x33, 0x0e, 0xad, 0x58, 0xb1, 0x02, 0x89, + 0x17, 0xe0, 0x15, 0x58, 0xf1, 0x1e, 0x2c, 0xd8, 0xb0, 0xe6, 0x5d, 0x50, 0xc6, 0x63, 0x37, 0x4e, + 0x9c, 0x34, 0x51, 0xd4, 0x8d, 0xa5, 0x33, 0xe7, 0x3b, 0x33, 0xdf, 0x7c, 0xe7, 0x67, 0x0c, 0x0f, + 0xaf, 0xda, 0xe4, 0x43, 0x15, 0x5f, 0x63, 0x2b, 0x60, 0x2e, 0xf1, 0x6c, 0x83, 0x19, 0x49, 0x4b, + 0xeb, 0xfa, 0x84, 0x11, 0x84, 0xfa, 0x38, 0x2d, 0xe1, 0x51, 0x2a, 0x61, 0xac, 0xc7, 0x5c, 0xe6, + 0x62, 0x5a, 0x35, 0xdb, 0xc4, 0x7a, 0xd7, 0x8c, 0x21, 0xcd, 0xdb, 0x68, 0xa5, 0x98, 0x44, 0xe2, + 0x1e, 0xf6, 0x98, 0x70, 0xfd, 0x9b, 0x74, 0xf9, 0xd8, 0x71, 0x29, 0xc3, 0xbe, 0xf0, 0xee, 0x38, + 0x84, 0x38, 0x6d, 0x5c, 0xe5, 0x96, 0x19, 0x5c, 0x55, 0x99, 0xdb, 0x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8c, 0x12, 0xaa, 0x7e, + 0x92, 0x06, 0xa7, 0x7c, 0xe2, 0x15, 0x79, 0x9a, 0x5a, 0x49, 0x93, 0x9e, 0x70, 0xa5, 0x36, 0x4b, + 0x48, 0xc8, 0xe0, 0x89, 0x84, 0xda, 0xb0, 0x36, 0x34, 0x36, 0xd1, 0xa3, 0xc9, 0x1b, 0x0d, 0xbe, + 0x46, 0xca, 0xe3, 0xa9, 0xb0, 0xf1, 0x69, 0x5d, 0xd8, 0x18, 0xe9, 0x7b, 0xb4, 0x3b, 0x46, 0xbd, + 0xd4, 0xd9, 0xa4, 0xec, 0x4d, 0x89, 0x16, 0x1a, 0x7f, 0x96, 0x40, 0x1e, 0x57, 0xde, 0x68, 0x7f, + 0x22, 0xfb, 0xf4, 0x11, 0xa3, 0x1c, 0xcc, 0x16, 0x14, 0xdd, 0xbd, 0x7e, 0x09, 0x65, 0xe2, 0x3b, + 0x1a, 0xf1, 0x78, 0x78, 0xfc, 0x0a, 0x24, 0xf6, 0xb9, 0x3c, 0x74, 0x5c, 0xd6, 0x0a, 0x4c, 0xcd, + 0x22, 0x9d, 0x6a, 0x88, 0xac, 0xf2, 0x4f, 0xfc, 0xbf, 0xeb, 0x90, 0xea, 0xe8, 0x1f, 0xba, 0x99, + 0xe3, 0xfe, 0xfd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xf6, 0xab, 0x88, 0xbe, 0x0b, 0x00, + 0x00, } From 51f1271b7083f37e72c2703dfeeb11513fa108f2 Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 5 Mar 2024 14:18:11 +0200 Subject: [PATCH 07/36] Fixed remarks --- .../flow/executiondata/executiondata.proto | 147 +++++- .../go/flow/executiondata/executiondata.pb.go | 443 +++++++++++++----- .../executiondata/executiondata_grpc.pb.go | 258 +++++++++- 3 files changed, 693 insertions(+), 155 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index ba91e846a..b0b921b41 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -67,8 +67,56 @@ service ExecutionDataAPI { rpc GetRegisterValues(GetRegisterValuesRequest) returns (GetRegisterValuesResponse); - // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested - // start block, up until the latest available block. Once the latest is + // SubscribeAccountStatusesFromStartBlockID streams account statuses for all blocks starting at the requested + // start block ID, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // not been received. + rpc SubscribeAccountStatusesFromStartBlockID(SubscribeAccountStatusesFromStartBlockIDRequest) + returns (stream SubscribeAccountStatusesResponse); + + // SubscribeAccountStatusesFromStartHeight streams account statuses for all blocks starting at the requested + // start block height, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // not been received. + rpc SubscribeAccountStatusesFromStartHeight(SubscribeAccountStatusesFromStartHeightRequest) + returns (stream SubscribeAccountStatusesResponse); + + // SubscribeAccountStatusesFromLatestBlock streams account statuses for all blocks starting + // at the last sealed block, up until the latest available block. Once the latest is // reached, the stream will remain open and responses are sent for each new // block as it becomes available. // @@ -88,7 +136,7 @@ service ExecutionDataAPI { // - NotFound is returned if the start block is not currently available on the // node. This may happen if the block was from a previous spork, or if the block has yet // not been received. - rpc SubscribeAccountStatuses(SubscribeAccountStatusesRequest) + rpc SubscribeAccountStatusesFromLatestBlock(SubscribeAccountStatusesFromLatestBlockRequest) returns (stream SubscribeAccountStatusesResponse); } @@ -256,26 +304,69 @@ message GetRegisterValuesResponse { repeated bytes values = 1; } -// The request for SubscribeAccountStatuses -message SubscribeAccountStatusesRequest { +// The request for SubscribeAccountStatusesFromStartBlockID +message SubscribeAccountStatusesFromStartBlockIDRequest { // Block ID of the first block to search for events. // Only one of start_block_id and start_block_height may be provided, // otherwise an InvalidArgument error is returned. If neither are provided, // the latest sealed block is used. bytes start_block_id = 1; + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + StatusFilter filter = 2; + + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + uint64 heartbeat_interval = 3; + + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + entities.EventEncodingVersion event_encoding_version = 4; +} + +// The request for SubscribeAccountStatusesFromStartHeight +message SubscribeAccountStatusesFromStartHeightRequest { // Block height of the first block to search for events. // Only one of start_block_id and start_block_height may be provided, // otherwise an InvalidArgument error is returned. If neither are provided, // the latest sealed block is used. - uint64 start_block_height = 2; + uint64 start_block_height = 1; + + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + StatusFilter filter = 2; + + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + uint64 heartbeat_interval = 3; - // Unique identifier for the account being streamed - bytes address = 3; + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + entities.EventEncodingVersion event_encoding_version = 4; +} +// The request for SubscribeAccountStatusesFromLatestBlock +message SubscribeAccountStatusesFromLatestBlockRequest { // Filter to apply to events for each block searched. // If no filter is provided, all statuses are returned. - StatusFilter filter = 4; + StatusFilter filter = 1; // Interval in block heights at which the server should return a heartbeat // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse @@ -285,13 +376,13 @@ message SubscribeAccountStatusesRequest { // // The interval is calculated from the last response returned, which could be // either another heartbeat or a response containing events. - uint64 heartbeat_interval = 5; + uint64 heartbeat_interval = 2; // Preferred event encoding version of the block events payload. // Possible variants: // 1. CCF // 2. JSON-CDC - entities.EventEncodingVersion event_encoding_version = 6; + entities.EventEncodingVersion event_encoding_version = 3; } // The response for SubscribeAccountStatuses @@ -299,18 +390,23 @@ message SubscribeAccountStatusesResponse { // Block ID of the block containing the events. bytes block_id = 1; - // Unique identifier for the account being streamed - bytes address = 2; - - // Events matching the StatusFilter in the request. - // The API may return no events which signals a periodic heartbeat. This - // allows clients to track which blocks were searched. Client can use this - // information to determine which block to start from when reconnecting. - repeated entities.Event events = 3; + // Block ID of the block containing the events. + uint64 block_height = 2; // The MessageIndex of the response message. - // Used by the client to ensure they received all messages. - uint64 messageIndex = 4; + // Used by the client to ensure they have received all messages. + uint64 messageIndex = 3; + + message Result { + // Unique identifier for the account being streamed + bytes address = 1; + // Events matching the StatusFilter in the request. + // The API may return no events which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. + repeated entities.Event events = 2; + } + repeated Result results = 4; } // StatusesFilter defines the filter to apply to block events. @@ -327,5 +423,14 @@ message StatusFilter { // - Protocol events: // flow.[event name] repeated string event_type = 1; + // A list of addresses who's events should be included. + // + // All events emitted by any contract held by any of the provided addresses + // will be returned. + // + // Addresses must be Flow account addresses in hex format and valid for the + // network the node is connected to. i.e. only a mainnet address is valid for + // a mainnet node. Addresses may optionally include the 0x prefix. + repeated string address = 3; } diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index aadf2ad16..2bb928efe 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -589,23 +589,16 @@ func (m *GetRegisterValuesResponse) GetValues() [][]byte { return nil } -// The request for SubscribeAccountStatuses -type SubscribeAccountStatusesRequest struct { +// The request for SubscribeAccountStatusesFromStartBlockID +type SubscribeAccountStatusesFromStartBlockIDRequest struct { // Block ID of the first block to search for events. // Only one of start_block_id and start_block_height may be provided, // otherwise an InvalidArgument error is returned. If neither are provided, // the latest sealed block is used. StartBlockId []byte `protobuf:"bytes,1,opt,name=start_block_id,json=startBlockId,proto3" json:"start_block_id,omitempty"` - // Block height of the first block to search for events. - // Only one of start_block_id and start_block_height may be provided, - // otherwise an InvalidArgument error is returned. If neither are provided, - // the latest sealed block is used. - StartBlockHeight uint64 `protobuf:"varint,2,opt,name=start_block_height,json=startBlockHeight,proto3" json:"start_block_height,omitempty"` - // Unique identifier for the account being streamed - Address []byte `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` // Filter to apply to events for each block searched. // If no filter is provided, all statuses are returned. - Filter *StatusFilter `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"` + Filter *StatusFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Interval in block heights at which the server should return a heartbeat // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse // with no events, and allows clients to track which blocks were searched. @@ -614,78 +607,228 @@ type SubscribeAccountStatusesRequest struct { // // The interval is calculated from the last response returned, which could be // either another heartbeat or a response containing events. - HeartbeatInterval uint64 `protobuf:"varint,5,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + HeartbeatInterval uint64 `protobuf:"varint,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` // Preferred event encoding version of the block events payload. // Possible variants: // 1. CCF // 2. JSON-CDC - EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,6,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` + EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,4,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } -func (m *SubscribeAccountStatusesRequest) Reset() { *m = SubscribeAccountStatusesRequest{} } -func (m *SubscribeAccountStatusesRequest) String() string { return proto.CompactTextString(m) } -func (*SubscribeAccountStatusesRequest) ProtoMessage() {} -func (*SubscribeAccountStatusesRequest) Descriptor() ([]byte, []int) { +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) Reset() { + *m = SubscribeAccountStatusesFromStartBlockIDRequest{} +} +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) String() string { + return proto.CompactTextString(m) +} +func (*SubscribeAccountStatusesFromStartBlockIDRequest) ProtoMessage() {} +func (*SubscribeAccountStatusesFromStartBlockIDRequest) Descriptor() ([]byte, []int) { return fileDescriptor_da469632570513fb, []int{9} } -func (m *SubscribeAccountStatusesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SubscribeAccountStatusesRequest.Unmarshal(m, b) +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest.Unmarshal(m, b) } -func (m *SubscribeAccountStatusesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SubscribeAccountStatusesRequest.Marshal(b, m, deterministic) +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest.Marshal(b, m, deterministic) } -func (m *SubscribeAccountStatusesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubscribeAccountStatusesRequest.Merge(m, src) +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest.Merge(m, src) } -func (m *SubscribeAccountStatusesRequest) XXX_Size() int { - return xxx_messageInfo_SubscribeAccountStatusesRequest.Size(m) +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest.Size(m) } -func (m *SubscribeAccountStatusesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SubscribeAccountStatusesRequest.DiscardUnknown(m) +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest.DiscardUnknown(m) } -var xxx_messageInfo_SubscribeAccountStatusesRequest proto.InternalMessageInfo +var xxx_messageInfo_SubscribeAccountStatusesFromStartBlockIDRequest proto.InternalMessageInfo -func (m *SubscribeAccountStatusesRequest) GetStartBlockId() []byte { +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) GetStartBlockId() []byte { if m != nil { return m.StartBlockId } return nil } -func (m *SubscribeAccountStatusesRequest) GetStartBlockHeight() uint64 { +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) GetFilter() *StatusFilter { + if m != nil { + return m.Filter + } + return nil +} + +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) GetHeartbeatInterval() uint64 { + if m != nil { + return m.HeartbeatInterval + } + return 0 +} + +func (m *SubscribeAccountStatusesFromStartBlockIDRequest) GetEventEncodingVersion() entities.EventEncodingVersion { + if m != nil { + return m.EventEncodingVersion + } + return entities.EventEncodingVersion_JSON_CDC_V0 +} + +// The request for SubscribeAccountStatusesFromStartHeight +type SubscribeAccountStatusesFromStartHeightRequest struct { + // Block height of the first block to search for events. + // Only one of start_block_id and start_block_height may be provided, + // otherwise an InvalidArgument error is returned. If neither are provided, + // the latest sealed block is used. + StartBlockHeight uint64 `protobuf:"varint,1,opt,name=start_block_height,json=startBlockHeight,proto3" json:"start_block_height,omitempty"` + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + Filter *StatusFilter `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + HeartbeatInterval uint64 `protobuf:"varint,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,4,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscribeAccountStatusesFromStartHeightRequest) Reset() { + *m = SubscribeAccountStatusesFromStartHeightRequest{} +} +func (m *SubscribeAccountStatusesFromStartHeightRequest) String() string { + return proto.CompactTextString(m) +} +func (*SubscribeAccountStatusesFromStartHeightRequest) ProtoMessage() {} +func (*SubscribeAccountStatusesFromStartHeightRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{10} +} + +func (m *SubscribeAccountStatusesFromStartHeightRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest.Unmarshal(m, b) +} +func (m *SubscribeAccountStatusesFromStartHeightRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest.Marshal(b, m, deterministic) +} +func (m *SubscribeAccountStatusesFromStartHeightRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest.Merge(m, src) +} +func (m *SubscribeAccountStatusesFromStartHeightRequest) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest.Size(m) +} +func (m *SubscribeAccountStatusesFromStartHeightRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeAccountStatusesFromStartHeightRequest proto.InternalMessageInfo + +func (m *SubscribeAccountStatusesFromStartHeightRequest) GetStartBlockHeight() uint64 { if m != nil { return m.StartBlockHeight } return 0 } -func (m *SubscribeAccountStatusesRequest) GetAddress() []byte { +func (m *SubscribeAccountStatusesFromStartHeightRequest) GetFilter() *StatusFilter { if m != nil { - return m.Address + return m.Filter } return nil } -func (m *SubscribeAccountStatusesRequest) GetFilter() *StatusFilter { +func (m *SubscribeAccountStatusesFromStartHeightRequest) GetHeartbeatInterval() uint64 { + if m != nil { + return m.HeartbeatInterval + } + return 0 +} + +func (m *SubscribeAccountStatusesFromStartHeightRequest) GetEventEncodingVersion() entities.EventEncodingVersion { + if m != nil { + return m.EventEncodingVersion + } + return entities.EventEncodingVersion_JSON_CDC_V0 +} + +// The request for SubscribeAccountStatusesFromLatestBlock +type SubscribeAccountStatusesFromLatestBlockRequest struct { + // Filter to apply to events for each block searched. + // If no filter is provided, all statuses are returned. + Filter *StatusFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` + // Interval in block heights at which the server should return a heartbeat + // message to the client. The heartbeat is a normal SubscribeAccountStatusesResponse + // with no events, and allows clients to track which blocks were searched. + // Clients can use this information to determine which block to start from + // when reconnecting. + // + // The interval is calculated from the last response returned, which could be + // either another heartbeat or a response containing events. + HeartbeatInterval uint64 `protobuf:"varint,2,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` + // Preferred event encoding version of the block events payload. + // Possible variants: + // 1. CCF + // 2. JSON-CDC + EventEncodingVersion entities.EventEncodingVersion `protobuf:"varint,3,opt,name=event_encoding_version,json=eventEncodingVersion,proto3,enum=flow.entities.EventEncodingVersion" json:"event_encoding_version,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscribeAccountStatusesFromLatestBlockRequest) Reset() { + *m = SubscribeAccountStatusesFromLatestBlockRequest{} +} +func (m *SubscribeAccountStatusesFromLatestBlockRequest) String() string { + return proto.CompactTextString(m) +} +func (*SubscribeAccountStatusesFromLatestBlockRequest) ProtoMessage() {} +func (*SubscribeAccountStatusesFromLatestBlockRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{11} +} + +func (m *SubscribeAccountStatusesFromLatestBlockRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest.Unmarshal(m, b) +} +func (m *SubscribeAccountStatusesFromLatestBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest.Marshal(b, m, deterministic) +} +func (m *SubscribeAccountStatusesFromLatestBlockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest.Merge(m, src) +} +func (m *SubscribeAccountStatusesFromLatestBlockRequest) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest.Size(m) +} +func (m *SubscribeAccountStatusesFromLatestBlockRequest) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeAccountStatusesFromLatestBlockRequest proto.InternalMessageInfo + +func (m *SubscribeAccountStatusesFromLatestBlockRequest) GetFilter() *StatusFilter { if m != nil { return m.Filter } return nil } -func (m *SubscribeAccountStatusesRequest) GetHeartbeatInterval() uint64 { +func (m *SubscribeAccountStatusesFromLatestBlockRequest) GetHeartbeatInterval() uint64 { if m != nil { return m.HeartbeatInterval } return 0 } -func (m *SubscribeAccountStatusesRequest) GetEventEncodingVersion() entities.EventEncodingVersion { +func (m *SubscribeAccountStatusesFromLatestBlockRequest) GetEventEncodingVersion() entities.EventEncodingVersion { if m != nil { return m.EventEncodingVersion } @@ -696,26 +839,22 @@ func (m *SubscribeAccountStatusesRequest) GetEventEncodingVersion() entities.Eve type SubscribeAccountStatusesResponse struct { // Block ID of the block containing the events. BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - // Unique identifier for the account being streamed - Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` - // Events matching the StatusFilter in the request. - // The API may return no events which signals a periodic heartbeat. This - // allows clients to track which blocks were searched. Client can use this - // information to determine which block to start from when reconnecting. - Events []*entities.Event `protobuf:"bytes,3,rep,name=events,proto3" json:"events,omitempty"` + // Block ID of the block containing the events. + BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The MessageIndex of the response message. - // Used by the client to ensure they received all messages. - MessageIndex uint64 `protobuf:"varint,4,opt,name=messageIndex,proto3" json:"messageIndex,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // Used by the client to ensure they have received all messages. + MessageIndex uint64 `protobuf:"varint,3,opt,name=messageIndex,proto3" json:"messageIndex,omitempty"` + Results []*SubscribeAccountStatusesResponse_Result `protobuf:"bytes,4,rep,name=results,proto3" json:"results,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *SubscribeAccountStatusesResponse) Reset() { *m = SubscribeAccountStatusesResponse{} } func (m *SubscribeAccountStatusesResponse) String() string { return proto.CompactTextString(m) } func (*SubscribeAccountStatusesResponse) ProtoMessage() {} func (*SubscribeAccountStatusesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_da469632570513fb, []int{10} + return fileDescriptor_da469632570513fb, []int{12} } func (m *SubscribeAccountStatusesResponse) XXX_Unmarshal(b []byte) error { @@ -743,25 +882,79 @@ func (m *SubscribeAccountStatusesResponse) GetBlockId() []byte { return nil } -func (m *SubscribeAccountStatusesResponse) GetAddress() []byte { +func (m *SubscribeAccountStatusesResponse) GetBlockHeight() uint64 { if m != nil { - return m.Address + return m.BlockHeight + } + return 0 +} + +func (m *SubscribeAccountStatusesResponse) GetMessageIndex() uint64 { + if m != nil { + return m.MessageIndex + } + return 0 +} + +func (m *SubscribeAccountStatusesResponse) GetResults() []*SubscribeAccountStatusesResponse_Result { + if m != nil { + return m.Results } return nil } -func (m *SubscribeAccountStatusesResponse) GetEvents() []*entities.Event { +type SubscribeAccountStatusesResponse_Result struct { + // Unique identifier for the account being streamed + Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` + // Events matching the StatusFilter in the request. + // The API may return no events which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. + Events []*entities.Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SubscribeAccountStatusesResponse_Result) Reset() { + *m = SubscribeAccountStatusesResponse_Result{} +} +func (m *SubscribeAccountStatusesResponse_Result) String() string { return proto.CompactTextString(m) } +func (*SubscribeAccountStatusesResponse_Result) ProtoMessage() {} +func (*SubscribeAccountStatusesResponse_Result) Descriptor() ([]byte, []int) { + return fileDescriptor_da469632570513fb, []int{12, 0} +} + +func (m *SubscribeAccountStatusesResponse_Result) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SubscribeAccountStatusesResponse_Result.Unmarshal(m, b) +} +func (m *SubscribeAccountStatusesResponse_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SubscribeAccountStatusesResponse_Result.Marshal(b, m, deterministic) +} +func (m *SubscribeAccountStatusesResponse_Result) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubscribeAccountStatusesResponse_Result.Merge(m, src) +} +func (m *SubscribeAccountStatusesResponse_Result) XXX_Size() int { + return xxx_messageInfo_SubscribeAccountStatusesResponse_Result.Size(m) +} +func (m *SubscribeAccountStatusesResponse_Result) XXX_DiscardUnknown() { + xxx_messageInfo_SubscribeAccountStatusesResponse_Result.DiscardUnknown(m) +} + +var xxx_messageInfo_SubscribeAccountStatusesResponse_Result proto.InternalMessageInfo + +func (m *SubscribeAccountStatusesResponse_Result) GetAddress() []byte { if m != nil { - return m.Events + return m.Address } return nil } -func (m *SubscribeAccountStatusesResponse) GetMessageIndex() uint64 { +func (m *SubscribeAccountStatusesResponse_Result) GetEvents() []*entities.Event { if m != nil { - return m.MessageIndex + return m.Events } - return 0 + return nil } // StatusesFilter defines the filter to apply to block events. @@ -777,7 +970,16 @@ type StatusFilter struct { // Event types have 2 formats: // - Protocol events: // flow.[event name] - EventType []string `protobuf:"bytes,1,rep,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` + EventType []string `protobuf:"bytes,1,rep,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` + // A list of addresses who's events should be included. + // + // All events emitted by any contract held by any of the provided addresses + // will be returned. + // + // Addresses must be Flow account addresses in hex format and valid for the + // network the node is connected to. i.e. only a mainnet address is valid for + // a mainnet node. Addresses may optionally include the 0x prefix. + Address []string `protobuf:"bytes,3,rep,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -787,7 +989,7 @@ func (m *StatusFilter) Reset() { *m = StatusFilter{} } func (m *StatusFilter) String() string { return proto.CompactTextString(m) } func (*StatusFilter) ProtoMessage() {} func (*StatusFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_da469632570513fb, []int{11} + return fileDescriptor_da469632570513fb, []int{13} } func (m *StatusFilter) XXX_Unmarshal(b []byte) error { @@ -815,6 +1017,13 @@ func (m *StatusFilter) GetEventType() []string { return nil } +func (m *StatusFilter) GetAddress() []string { + if m != nil { + return m.Address + } + return nil +} + func init() { proto.RegisterType((*GetExecutionDataByBlockIDRequest)(nil), "flow.executiondata.GetExecutionDataByBlockIDRequest") proto.RegisterType((*GetExecutionDataByBlockIDResponse)(nil), "flow.executiondata.GetExecutionDataByBlockIDResponse") @@ -825,8 +1034,11 @@ func init() { proto.RegisterType((*EventFilter)(nil), "flow.executiondata.EventFilter") proto.RegisterType((*GetRegisterValuesRequest)(nil), "flow.executiondata.GetRegisterValuesRequest") proto.RegisterType((*GetRegisterValuesResponse)(nil), "flow.executiondata.GetRegisterValuesResponse") - proto.RegisterType((*SubscribeAccountStatusesRequest)(nil), "flow.executiondata.SubscribeAccountStatusesRequest") + proto.RegisterType((*SubscribeAccountStatusesFromStartBlockIDRequest)(nil), "flow.executiondata.SubscribeAccountStatusesFromStartBlockIDRequest") + proto.RegisterType((*SubscribeAccountStatusesFromStartHeightRequest)(nil), "flow.executiondata.SubscribeAccountStatusesFromStartHeightRequest") + proto.RegisterType((*SubscribeAccountStatusesFromLatestBlockRequest)(nil), "flow.executiondata.SubscribeAccountStatusesFromLatestBlockRequest") proto.RegisterType((*SubscribeAccountStatusesResponse)(nil), "flow.executiondata.SubscribeAccountStatusesResponse") + proto.RegisterType((*SubscribeAccountStatusesResponse_Result)(nil), "flow.executiondata.SubscribeAccountStatusesResponse.Result") proto.RegisterType((*StatusFilter)(nil), "flow.executiondata.StatusFilter") } @@ -835,59 +1047,66 @@ func init() { } var fileDescriptor_da469632570513fb = []byte{ - // 849 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x6e, 0xd3, 0x4a, - 0x14, 0x96, 0x93, 0x36, 0x6d, 0x4f, 0xa2, 0xfe, 0x8c, 0xaa, 0x5e, 0xc7, 0xba, 0xbd, 0x4d, 0x7c, - 0x11, 0x8a, 0xa0, 0x75, 0x20, 0x6d, 0x05, 0x0b, 0x36, 0x0d, 0x2d, 0x25, 0x3b, 0xe4, 0x56, 0x95, - 0xe8, 0x26, 0xf2, 0xcf, 0xd4, 0xb1, 0x48, 0x3c, 0xc1, 0x33, 0x0e, 0xad, 0x58, 0xb1, 0x02, 0x89, - 0x17, 0xe0, 0x15, 0x58, 0xf1, 0x1e, 0x2c, 0xd8, 0xb0, 0xe6, 0x5d, 0x50, 0xc6, 0x63, 0x37, 0x4e, - 0x9c, 0x34, 0x51, 0xd4, 0x8d, 0xa5, 0x33, 0xe7, 0x3b, 0x33, 0xdf, 0x7c, 0xe7, 0x67, 0x0c, 0x0f, - 0xaf, 0xda, 0xe4, 0x43, 0x15, 0x5f, 0x63, 0x2b, 0x60, 0x2e, 0xf1, 0x6c, 0x83, 0x19, 0x49, 0x4b, - 0xeb, 0xfa, 0x84, 0x11, 0x84, 0xfa, 0x38, 0x2d, 0xe1, 0x51, 0x2a, 0x61, 0xac, 0xc7, 0x5c, 0xe6, - 0x62, 0x5a, 0x35, 0xdb, 0xc4, 0x7a, 0xd7, 0x8c, 0x21, 0xcd, 0xdb, 0x68, 0xa5, 0x98, 0x44, 0xe2, - 0x1e, 0xf6, 0x98, 0x70, 0xfd, 0x9b, 0x74, 0xf9, 0xd8, 0x71, 0x29, 0xc3, 0xbe, 0xf0, 0xee, 0x38, -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 0x86, 0xd1, 0x41, 0x5a, 0x06, 0xef, 0xfa, 0x9f, 0x50, 0x0e, 0x67, 0x8c, 0x12, 0xaa, 0x7e, - 0x92, 0x06, 0xa7, 0x7c, 0xe2, 0x15, 0x79, 0x9a, 0x5a, 0x49, 0x93, 0x9e, 0x70, 0xa5, 0x36, 0x4b, - 0x48, 0xc8, 0xe0, 0x89, 0x84, 0xda, 0xb0, 0x36, 0x34, 0x36, 0xd1, 0xa3, 0xc9, 0x1b, 0x0d, 0xbe, - 0x46, 0xca, 0xe3, 0xa9, 0xb0, 0xf1, 0x69, 0x5d, 0xd8, 0x18, 0xe9, 0x7b, 0xb4, 0x3b, 0x46, 0xbd, - 0xd4, 0xd9, 0xa4, 0xec, 0x4d, 0x89, 0x16, 0x1a, 0x7f, 0x96, 0x40, 0x1e, 0x57, 0xde, 0x68, 0x7f, - 0x22, 0xfb, 0xf4, 0x11, 0xa3, 0x1c, 0xcc, 0x16, 0x14, 0xdd, 0xbd, 0x7e, 0x09, 0x65, 0xe2, 0x3b, - 0x1a, 0xf1, 0x78, 0x78, 0xfc, 0x0a, 0x24, 0xf6, 0xb9, 0x3c, 0x74, 0x5c, 0xd6, 0x0a, 0x4c, 0xcd, - 0x22, 0x9d, 0x6a, 0x88, 0xac, 0xf2, 0x4f, 0xfc, 0xbf, 0xeb, 0x90, 0xea, 0xe8, 0x1f, 0xba, 0x99, - 0xe3, 0xfe, 0xfd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xf3, 0xf6, 0xab, 0x88, 0xbe, 0x0b, 0x00, - 0x00, + // 971 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0x4d, 0x8f, 0xdb, 0x44, + 0x18, 0xd6, 0x38, 0x21, 0xdb, 0x7d, 0x13, 0x6d, 0xdb, 0xd1, 0x6a, 0xc9, 0x5a, 0x94, 0x66, 0x0d, + 0x82, 0x08,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x05, 0x5e, 0x13, 0xb5, 0x50, 0xbb, 0x61, 0x6d, 0x89, + 0x71, 0xdf, 0xc3, 0xdf, 0xc0, 0x9e, 0x60, 0x33, 0x20, 0xa1, 0x4b, 0xbd, 0x20, 0xf4, 0x07, 0x17, + 0x24, 0x62, 0x01, 0x0d, 0x9b, 0x5a, 0x0b, 0xb5, 0x77, 0xba, 0xef, 0x99, 0xd2, 0x70, 0xc5, 0xcf, + 0x3c, 0x9e, 0x80, 0x8f, 0x15, 0xf6, 0x85, 0x84, 0x5a, 0xbb, 0xa4, 0x60, 0xd6, 0xb8, 0x84, 0x83, + 0x25, 0xcc, 0xd8, 0x98, 0x86, 0x8c, 0xe0, 0x53, 0xd8, 0x2d, 0xd2, 0x4d, 0xd0, 0xac, 0x77, 0x0f, + 0x66, 0x6e, 0x17, 0xbb, 0x73, 0x27, 0x5a, 0xd8, 0x99, 0x9b, 0x33, 0xfe, 0x46, 0x70, 0xe7, 0x34, + 0x76, 0x98, 0x1b, 0x05, 0x0e, 0xc9, 0xc3, 0x95, 0x22, 0xef, 0xc3, 0x0e, 0xe3, 0x76, 0xc4, 0x07, + 0x33, 0xba, 0x34, 0xc4, 0x6c, 0x4f, 0x89, 0x73, 0x08, 0x38, 0x8b, 0x3a, 0x27, 0x81, 0x7f, 0xce, + 0x85, 0x30, 0x55, 0xeb, 0xd6, 0x14, 0xf9, 0xa5, 0x98, 0x5f, 0x22, 0x65, 0x65, 0x53, 0x29, 0xff, + 0x41, 0xf0, 0xee, 0x22, 0x83, 0x94, 0x90, 0x07, 0xd0, 0xc8, 0xb1, 0x44, 0x82, 0x65, 0xdd, 0xc9, + 0x10, 0x5c, 0xa4, 0xb5, 0xb6, 0x81, 0xd6, 0xf8, 0x09, 0xdc, 0x94, 0x87, 0xa6, 0x91, 0x29, 0xcc, + 0xad, 0x77, 0x75, 0x53, 0xc6, 0xae, 0x99, 0xc4, 0xae, 0xf9, 0x3c, 0x41, 0x58, 0x3b, 0x62, 0x4b, + 0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x7f, 0xb8, 0x3e, 0xed, 0xcc, 0xff, 0x93, 0x3b, 0x35, 0xb1, 0xfe, 0xe0, 0xff, 0x00, 0x00, + 0x00, 0xff, 0xff, 0xd3, 0xc0, 0x73, 0xc5, 0xb0, 0x0f, 0x00, 0x00, } diff --git a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go index 3b9898726..cde6bb05d 100644 --- a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go +++ b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go @@ -72,8 +72,31 @@ type ExecutionDataAPIClient interface { SubscribeEvents(ctx context.Context, in *SubscribeEventsRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeEventsClient, error) // GetRegisterValues gets the values for the given register IDs as of the given block height GetRegisterValues(ctx context.Context, in *GetRegisterValuesRequest, opts ...grpc.CallOption) (*GetRegisterValuesResponse, error) - // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested - // start block, up until the latest available block. Once the latest is + // SubscribeAccountStatusesFromStartBlockID streams account statuses for all blocks starting at the requested + // start block ID, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatusesFromStartBlockID(ctx context.Context, in *SubscribeAccountStatusesFromStartBlockIDRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDClient, error) + // SubscribeAccountStatusesFromStartHeight streams account statuses for all blocks starting at the requested + // start block height, up until the latest available block. Once the latest is // reached, the stream will remain open and responses are sent for each new // block as it becomes available. // @@ -94,7 +117,30 @@ type ExecutionDataAPIClient interface { // node. This may happen if the block was from a previous spork, or if the block has yet // // not been received. - SubscribeAccountStatuses(ctx context.Context, in *SubscribeAccountStatusesRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesClient, error) + SubscribeAccountStatusesFromStartHeight(ctx context.Context, in *SubscribeAccountStatusesFromStartHeightRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightClient, error) + // SubscribeAccountStatusesFromLatestBlock streams account statuses for all blocks starting + // at the last sealed block, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatusesFromLatestBlock(ctx context.Context, in *SubscribeAccountStatusesFromLatestBlockRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockClient, error) } type executionDataAPIClient struct { @@ -187,12 +233,76 @@ func (c *executionDataAPIClient) GetRegisterValues(ctx context.Context, in *GetR return out, nil } -func (c *executionDataAPIClient) SubscribeAccountStatuses(ctx context.Context, in *SubscribeAccountStatusesRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[2], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatuses", opts...) +func (c *executionDataAPIClient) SubscribeAccountStatusesFromStartBlockID(ctx context.Context, in *SubscribeAccountStatusesFromStartBlockIDRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDClient, error) { + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[2], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartBlockID", opts...) + if err != nil { + return nil, err + } + x := &executionDataAPISubscribeAccountStatusesFromStartBlockIDClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDClient interface { + Recv() (*SubscribeAccountStatusesResponse, error) + grpc.ClientStream +} + +type executionDataAPISubscribeAccountStatusesFromStartBlockIDClient struct { + grpc.ClientStream +} + +func (x *executionDataAPISubscribeAccountStatusesFromStartBlockIDClient) Recv() (*SubscribeAccountStatusesResponse, error) { + m := new(SubscribeAccountStatusesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *executionDataAPIClient) SubscribeAccountStatusesFromStartHeight(ctx context.Context, in *SubscribeAccountStatusesFromStartHeightRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightClient, error) { + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[3], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartHeight", opts...) + if err != nil { + return nil, err + } + x := &executionDataAPISubscribeAccountStatusesFromStartHeightClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightClient interface { + Recv() (*SubscribeAccountStatusesResponse, error) + grpc.ClientStream +} + +type executionDataAPISubscribeAccountStatusesFromStartHeightClient struct { + grpc.ClientStream +} + +func (x *executionDataAPISubscribeAccountStatusesFromStartHeightClient) Recv() (*SubscribeAccountStatusesResponse, error) { + m := new(SubscribeAccountStatusesResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *executionDataAPIClient) SubscribeAccountStatusesFromLatestBlock(ctx context.Context, in *SubscribeAccountStatusesFromLatestBlockRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockClient, error) { + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[4], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromLatestBlock", opts...) if err != nil { return nil, err } - x := &executionDataAPISubscribeAccountStatusesClient{stream} + x := &executionDataAPISubscribeAccountStatusesFromLatestBlockClient{stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -202,16 +312,16 @@ func (c *executionDataAPIClient) SubscribeAccountStatuses(ctx context.Context, i return x, nil } -type ExecutionDataAPI_SubscribeAccountStatusesClient interface { +type ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockClient interface { Recv() (*SubscribeAccountStatusesResponse, error) grpc.ClientStream } -type executionDataAPISubscribeAccountStatusesClient struct { +type executionDataAPISubscribeAccountStatusesFromLatestBlockClient struct { grpc.ClientStream } -func (x *executionDataAPISubscribeAccountStatusesClient) Recv() (*SubscribeAccountStatusesResponse, error) { +func (x *executionDataAPISubscribeAccountStatusesFromLatestBlockClient) Recv() (*SubscribeAccountStatusesResponse, error) { m := new(SubscribeAccountStatusesResponse) if err := x.ClientStream.RecvMsg(m); err != nil { return nil, err @@ -273,8 +383,54 @@ type ExecutionDataAPIServer interface { SubscribeEvents(*SubscribeEventsRequest, ExecutionDataAPI_SubscribeEventsServer) error // GetRegisterValues gets the values for the given register IDs as of the given block height GetRegisterValues(context.Context, *GetRegisterValuesRequest) (*GetRegisterValuesResponse, error) - // SubscribeAccountStatuses streams account statuses for all blocks starting at the requested - // start block, up until the latest available block. Once the latest is + // SubscribeAccountStatusesFromStartBlockID streams account statuses for all blocks starting at the requested + // start block ID, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatusesFromStartBlockID(*SubscribeAccountStatusesFromStartBlockIDRequest, ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDServer) error + // SubscribeAccountStatusesFromStartHeight streams account statuses for all blocks starting at the requested + // start block height, up until the latest available block. Once the latest is + // reached, the stream will remain open and responses are sent for each new + // block as it becomes available. + // + // Events within each block are filtered by the provided StatusFilter, and only + // those events that match the filter are returned. If no filter is provided, + // all events are returned. + // + // Responses are returned for each block containing at least one event that + // matches the filter. Additionally, heartbeat responses + // (SubscribeAccountStatusesResponse with no events) are returned periodically to allow + // clients to track which blocks were searched. Clients can use this + // information to determine which block to start from when reconnecting. + // + // Errors: + // - InvalidArgument is returned if the request contains an invalid + // StatusFilter or start block. + // - NotFound is returned if the start block is not currently available on the + // node. This may happen if the block was from a previous spork, or if the block has yet + // + // not been received. + SubscribeAccountStatusesFromStartHeight(*SubscribeAccountStatusesFromStartHeightRequest, ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightServer) error + // SubscribeAccountStatusesFromLatestBlock streams account statuses for all blocks starting + // at the last sealed block, up until the latest available block. Once the latest is // reached, the stream will remain open and responses are sent for each new // block as it becomes available. // @@ -295,7 +451,7 @@ type ExecutionDataAPIServer interface { // node. This may happen if the block was from a previous spork, or if the block has yet // // not been received. - SubscribeAccountStatuses(*SubscribeAccountStatusesRequest, ExecutionDataAPI_SubscribeAccountStatusesServer) error + SubscribeAccountStatusesFromLatestBlock(*SubscribeAccountStatusesFromLatestBlockRequest, ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockServer) error } // UnimplementedExecutionDataAPIServer should be embedded to have forward compatible implementations. @@ -314,8 +470,14 @@ func (UnimplementedExecutionDataAPIServer) SubscribeEvents(*SubscribeEventsReque func (UnimplementedExecutionDataAPIServer) GetRegisterValues(context.Context, *GetRegisterValuesRequest) (*GetRegisterValuesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRegisterValues not implemented") } -func (UnimplementedExecutionDataAPIServer) SubscribeAccountStatuses(*SubscribeAccountStatusesRequest, ExecutionDataAPI_SubscribeAccountStatusesServer) error { - return status.Errorf(codes.Unimplemented, "method SubscribeAccountStatuses not implemented") +func (UnimplementedExecutionDataAPIServer) SubscribeAccountStatusesFromStartBlockID(*SubscribeAccountStatusesFromStartBlockIDRequest, ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeAccountStatusesFromStartBlockID not implemented") +} +func (UnimplementedExecutionDataAPIServer) SubscribeAccountStatusesFromStartHeight(*SubscribeAccountStatusesFromStartHeightRequest, ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeAccountStatusesFromStartHeight not implemented") +} +func (UnimplementedExecutionDataAPIServer) SubscribeAccountStatusesFromLatestBlock(*SubscribeAccountStatusesFromLatestBlockRequest, ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockServer) error { + return status.Errorf(codes.Unimplemented, "method SubscribeAccountStatusesFromLatestBlock not implemented") } // UnsafeExecutionDataAPIServer may be embedded to opt out of forward compatibility for this service. @@ -407,24 +569,66 @@ func _ExecutionDataAPI_GetRegisterValues_Handler(srv interface{}, ctx context.Co return interceptor(ctx, in, info, handler) } -func _ExecutionDataAPI_SubscribeAccountStatuses_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(SubscribeAccountStatusesRequest) +func _ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockID_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeAccountStatusesFromStartBlockIDRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ExecutionDataAPIServer).SubscribeAccountStatusesFromStartBlockID(m, &executionDataAPISubscribeAccountStatusesFromStartBlockIDServer{stream}) +} + +type ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDServer interface { + Send(*SubscribeAccountStatusesResponse) error + grpc.ServerStream +} + +type executionDataAPISubscribeAccountStatusesFromStartBlockIDServer struct { + grpc.ServerStream +} + +func (x *executionDataAPISubscribeAccountStatusesFromStartBlockIDServer) Send(m *SubscribeAccountStatusesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ExecutionDataAPI_SubscribeAccountStatusesFromStartHeight_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeAccountStatusesFromStartHeightRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ExecutionDataAPIServer).SubscribeAccountStatuses(m, &executionDataAPISubscribeAccountStatusesServer{stream}) + return srv.(ExecutionDataAPIServer).SubscribeAccountStatusesFromStartHeight(m, &executionDataAPISubscribeAccountStatusesFromStartHeightServer{stream}) } -type ExecutionDataAPI_SubscribeAccountStatusesServer interface { +type ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightServer interface { Send(*SubscribeAccountStatusesResponse) error grpc.ServerStream } -type executionDataAPISubscribeAccountStatusesServer struct { +type executionDataAPISubscribeAccountStatusesFromStartHeightServer struct { grpc.ServerStream } -func (x *executionDataAPISubscribeAccountStatusesServer) Send(m *SubscribeAccountStatusesResponse) error { +func (x *executionDataAPISubscribeAccountStatusesFromStartHeightServer) Send(m *SubscribeAccountStatusesResponse) error { + return x.ServerStream.SendMsg(m) +} + +func _ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlock_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(SubscribeAccountStatusesFromLatestBlockRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ExecutionDataAPIServer).SubscribeAccountStatusesFromLatestBlock(m, &executionDataAPISubscribeAccountStatusesFromLatestBlockServer{stream}) +} + +type ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockServer interface { + Send(*SubscribeAccountStatusesResponse) error + grpc.ServerStream +} + +type executionDataAPISubscribeAccountStatusesFromLatestBlockServer struct { + grpc.ServerStream +} + +func (x *executionDataAPISubscribeAccountStatusesFromLatestBlockServer) Send(m *SubscribeAccountStatusesResponse) error { return x.ServerStream.SendMsg(m) } @@ -456,8 +660,18 @@ var ExecutionDataAPI_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, { - StreamName: "SubscribeAccountStatuses", - Handler: _ExecutionDataAPI_SubscribeAccountStatuses_Handler, + StreamName: "SubscribeAccountStatusesFromStartBlockID", + Handler: _ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockID_Handler, + ServerStreams: true, + }, + { + StreamName: "SubscribeAccountStatusesFromStartHeight", + Handler: _ExecutionDataAPI_SubscribeAccountStatusesFromStartHeight_Handler, + ServerStreams: true, + }, + { + StreamName: "SubscribeAccountStatusesFromLatestBlock", + Handler: _ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlock_Handler, ServerStreams: true, }, }, From 3a249a30685562e9f8aec62dce7caf53295003ed Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 5 Mar 2024 14:18:59 +0200 Subject: [PATCH 08/36] Fixed remarks --- protobuf/flow/executiondata/executiondata.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index b0b921b41..00a04e437 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -281,7 +281,7 @@ message EventFilter { // All events emitted by any contract held by any of the provided addresses // will be returned. // - // Addresses must be Flow account addresses in hex format and valid for the + // Addresses must be Flgit ow account addresses in hex format and valid for the // network the node is connected to. i.e. only a mainnet address is valid for // a mainnet node. Addresses may optionally include the 0x prefix. repeated string address = 3; From d0ee0148839b9fd069a5601bc0221288011afa91 Mon Sep 17 00:00:00 2001 From: Andrii Date: Tue, 5 Mar 2024 14:20:16 +0200 Subject: [PATCH 09/36] Fixed typo --- protobuf/flow/executiondata/executiondata.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index 00a04e437..b0b921b41 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -281,7 +281,7 @@ message EventFilter { // All events emitted by any contract held by any of the provided addresses // will be returned. // - // Addresses must be Flgit ow account addresses in hex format and valid for the + // Addresses must be Flow account addresses in hex format and valid for the // network the node is connected to. i.e. only a mainnet address is valid for // a mainnet node. Addresses may optionally include the 0x prefix. repeated string address = 3; From fb3f64276d31812af6156e11013f5f3f2da62f55 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 15 Mar 2024 13:28:24 +0200 Subject: [PATCH 10/36] Fixed documentation --- .../flow/executiondata/executiondata.proto | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index b0b921b41..2aea8a480 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -390,7 +390,7 @@ message SubscribeAccountStatusesResponse { // Block ID of the block containing the events. bytes block_id = 1; - // Block ID of the block containing the events. + // Block height of the block containing the events. uint64 block_height = 2; // The MessageIndex of the response message. @@ -410,23 +410,25 @@ message SubscribeAccountStatusesResponse { } // StatusesFilter defines the filter to apply to block events. -// Filters are applied as an OR operation, i.e. any event matching any of the -// filters is returned. If no filters are provided, all events are returned. If -// there are any invalid filters, the API will return an InvalidArgument error. +// Filters match for events with types in the included event_type list, that are +// related to at least one address from the provided address list. An event who's +// type matches but address does not is ignored, and vice versa. +// If no event_types are provided, all account related protocol event types are matched. +// If no addresses are provided, any address matches. +// If there are any invalid filters, the API will return an InvalidArgument error. message StatusFilter { // A list of full event types to include. // // All events exactly matching any of the provided event types will be // returned. // - // Event types have 2 formats: - // - Protocol events: + // Event types must be protocol events. e.g. // flow.[event name] repeated string event_type = 1; // A list of addresses who's events should be included. // - // All events emitted by any contract held by any of the provided addresses - // will be returned. + // All events matching the provided event_types that are related to any of the provided addresses + // will be returned. If no addresses are provided, all events matching event_types will be returned. // // Addresses must be Flow account addresses in hex format and valid for the // network the node is connected to. i.e. only a mainnet address is valid for From 9a9a5c9bab0733afb6dcd0bf8619b11e35d8a7d6 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 15 Mar 2024 14:27:48 +0200 Subject: [PATCH 11/36] Moved godoc to proper place --- protobuf/flow/executiondata/executiondata.proto | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/protobuf/flow/executiondata/executiondata.proto b/protobuf/flow/executiondata/executiondata.proto index 2aea8a480..f32549ed3 100644 --- a/protobuf/flow/executiondata/executiondata.proto +++ b/protobuf/flow/executiondata/executiondata.proto @@ -398,14 +398,14 @@ message SubscribeAccountStatusesResponse { uint64 messageIndex = 3; message Result { - // Unique identifier for the account being streamed + // Unique identifier for the account being streamed bytes address = 1; // Events matching the StatusFilter in the request. - // The API may return no events which signals a periodic heartbeat. This - // allows clients to track which blocks were searched. Client can use this - // information to determine which block to start from when reconnecting. repeated entities.Event events = 2; } + // The API may return no results which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. repeated Result results = 4; } From 800b01fc0dac429a69133502050619912de9b231 Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 15 Mar 2024 14:28:47 +0200 Subject: [PATCH 12/36] Generated proto --- .../go/flow/executiondata/executiondata.pb.go | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/protobuf/go/flow/executiondata/executiondata.pb.go b/protobuf/go/flow/executiondata/executiondata.pb.go index 2bb928efe..191895838 100644 --- a/protobuf/go/flow/executiondata/executiondata.pb.go +++ b/protobuf/go/flow/executiondata/executiondata.pb.go @@ -839,11 +839,14 @@ func (m *SubscribeAccountStatusesFromLatestBlockRequest) GetEventEncodingVersion type SubscribeAccountStatusesResponse struct { // Block ID of the block containing the events. BlockId []byte `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"` - // Block ID of the block containing the events. + // Block height of the block containing the events. BlockHeight uint64 `protobuf:"varint,2,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"` // The MessageIndex of the response message. // Used by the client to ensure they have received all messages. - MessageIndex uint64 `protobuf:"varint,3,opt,name=messageIndex,proto3" json:"messageIndex,omitempty"` + MessageIndex uint64 `protobuf:"varint,3,opt,name=messageIndex,proto3" json:"messageIndex,omitempty"` + // The API may return no results which signals a periodic heartbeat. This + // allows clients to track which blocks were searched. Client can use this + // information to determine which block to start from when reconnecting. Results []*SubscribeAccountStatusesResponse_Result `protobuf:"bytes,4,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -907,9 +910,6 @@ type SubscribeAccountStatusesResponse_Result struct { // Unique identifier for the account being streamed Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Events matching the StatusFilter in the request. - // The API may return no events which signals a periodic heartbeat. This - // allows clients to track which blocks were searched. Client can use this - // information to determine which block to start from when reconnecting. Events []*entities.Event `protobuf:"bytes,2,rep,name=events,proto3" json:"events,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -958,23 +958,26 @@ func (m *SubscribeAccountStatusesResponse_Result) GetEvents() []*entities.Event } // StatusesFilter defines the filter to apply to block events. -// Filters are applied as an OR operation, i.e. any event matching any of the -// filters is returned. If no filters are provided, all events are returned. If -// there are any invalid filters, the API will return an InvalidArgument error. +// Filters match for events with types in the included event_type list, that are +// related to at least one address from the provided address list. An event who's +// type matches but address does not is ignored, and vice versa. +// If no event_types are provided, all account related protocol event types are matched. +// If no addresses are provided, any address matches. +// If there are any invalid filters, the API will return an InvalidArgument error. type StatusFilter struct { // A list of full event types to include. // // All events exactly matching any of the provided event types will be // returned. // - // Event types have 2 formats: - // - Protocol events: - // flow.[event name] + // Event types must be protocol events. e.g. + // + // flow.[event name] EventType []string `protobuf:"bytes,1,rep,name=event_type,json=eventType,proto3" json:"event_type,omitempty"` // A list of addresses who's events should be included. // - // All events emitted by any contract held by any of the provided addresses - // will be returned. + // All events matching the provided event_types that are related to any of the provided addresses + // will be returned. If no addresses are provided, all events matching event_types will be returned. // // Addresses must be Flow account addresses in hex format and valid for the // network the node is connected to. i.e. only a mainnet address is valid for From 95e76cabc0aa6d346a7085d3e7f623d5ff60db5f Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Thu, 21 Mar 2024 00:49:04 +0530 Subject: [PATCH 13/36] Create 2024-03-21-Protocol-Product-Sync.md Adding this week's sync doc --- agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md diff --git a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md new file mode 100644 index 000000000..c87bcbd4b --- /dev/null +++ b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md @@ -0,0 +1,3 @@ +# Please add agenda items below + +1. From 8bd001435949f4259a582c3ad095006ee218203a Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Fri, 22 Mar 2024 02:58:43 +0530 Subject: [PATCH 14/36] Update 2024-03-21-Protocol-Product-Sync.md + discussion notes --- .../2024/product-sync/2024-03-21-Protocol-Product-Sync.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md index c87bcbd4b..137333f5a 100644 --- a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md +++ b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md @@ -1,3 +1,7 @@ # Please add agenda items below -1. +1. Hiring/ Recruitment + a. Probably need a TPM - Come up with a list of priorities, draft and share JD for this role. Check with UX WG's priorities + b. Engineering hires - plans to hire interns, young grads. Protocol should figure the engg resources we'd need. Young grads are preferred (for delegation); senior hiring and onboarding is time-consuming + +2. Flow as a data availability layer - to be discussed with Dete From 7c98663df21c528cad17ac11cc2d6e02a0c696a1 Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Fri, 22 Mar 2024 03:01:22 +0530 Subject: [PATCH 15/36] Update 2024-03-21-Protocol-Product-Sync.md editing syntax --- .../2024/product-sync/2024-03-21-Protocol-Product-Sync.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md index 137333f5a..3c9dc6975 100644 --- a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md +++ b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md @@ -1,7 +1,7 @@ # Please add agenda items below -1. Hiring/ Recruitment - a. Probably need a TPM - Come up with a list of priorities, draft and share JD for this role. Check with UX WG's priorities - b. Engineering hires - plans to hire interns, young grads. Protocol should figure the engg resources we'd need. Young grads are preferred (for delegation); senior hiring and onboarding is time-consuming +1. Hiring/ Recruitment
+ a. Probably need a TPM - Come up with a list of priorities, draft and share JD for this role. Check with UX WG's priorities
+ b. Engineering hires - plans to hire interns, young grads. Protocol should figure the engg resources we'd need. Young grads are preferred (for delegation); senior hiring and onboarding is time-consuming 2. Flow as a data availability layer - to be discussed with Dete From cee23759952ee2d0c1a1301a74161991cc032c9c Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Fri, 22 Mar 2024 03:02:14 +0530 Subject: [PATCH 16/36] Update 2024-03-21-Protocol-Product-Sync.md adding names --- agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md index 3c9dc6975..b8ea1f4cd 100644 --- a/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md +++ b/agendas/2024/product-sync/2024-03-21-Protocol-Product-Sync.md @@ -1,7 +1,7 @@ # Please add agenda items below 1. Hiring/ Recruitment
- a. Probably need a TPM - Come up with a list of priorities, draft and share JD for this role. Check with UX WG's priorities
+ a. Probably need a TPM - Come up with a list of priorities, @Kan and @Sean would draft and share JD for this role. Check with UX WG's priorities
b. Engineering hires - plans to hire interns, young grads. Protocol should figure the engg resources we'd need. Young grads are preferred (for delegation); senior hiring and onboarding is time-consuming -2. Flow as a data availability layer - to be discussed with Dete +2. Flow as a data availability layer - to be discussed with @dete From 39a249cc0ec32c676667949a71c34fb05daa4097 Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Fri, 22 Mar 2024 09:13:59 +0100 Subject: [PATCH 17/36] adding spring kickoff file for Mar 29 2024 --- .../2024-03-29-Flow-Sprint-Kickoff.md | 320 ++++++++++++++++++ 1 file changed, 320 insertions(+) create mode 100644 agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md new file mode 100644 index 000000000..ac85e442e --- /dev/null +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -0,0 +1,320 @@ +# Overview + + ### Team Wins 🎉 + +* + +--- + +### Mainnet Uptime - Last 7 days (3/9/24 to 3/15/24) \[Vishal] + +| | Target | Current Score | Error budget used | +|:------------------------|:------:|:-------------:|:-----------------:| +| Collection Finalization | 99.9% | 100% | 0% | +| Block Finalization | 99.9% | 100% | 0% | +| Transaction Execution | 99.9% | 100% | 0% | +| Block Sealing | 99.9% | 100% | 0% | +| Access API Liveness | 99.9% | 99.92% | 79.0 | + +[SLO dashboards](https://flowfoundation.grafana.net/d/hgW3l-m4k/slo-dashboard?orgId=1&from=now-2w&to=now) are now live again on FF Grafana + +[YTD SLA: 100%](https://app.metrika.co/flow/dashboard/slas?tr=YTD) + +## Incidents +N/A + +### Key Release Dates & Breaking Changes + +- Next Mainnet/Testnet network upgrade (spork): TBD + +--- + +### FLIPs Tracker \[Kshitij] + +| | Application | Cadence | Governance | Protocol | Total | +|:------------------------|:------:|:-------------:|:-----------------:|:-----------------:|:-----------------:| +| Drafted | 7 | 8 (+2) | 0 | 5 | **20** (+2) | +| Proposed | 3 | 2 (+1) | 2 | 1 | **8** (+1) | +| Accepted | 2 | 1 | 1 | 2 | **6** | +| Rejected | 0 | 0 | 1 | 0 | **1** | +| Implemented | 1 | 19 | 2 | 0 | **22** | +| Released | 4 | 0 | 3 (+1) | 4 | **11** (+1) | +| Total | **17** | **30** (+3) | **9** (+1) | **12** | **68** (+4) | + +- Overall FLIPs went up by 4 in the last sprint. 3 new Cadence FLIPs were drafted and proposed; 1 new Governance FLIP was drafted, implemented and released during the sprint. +- Some FLIPs are still not reflected in the project tracker. **Remember**: FLIP process starts with an issue creation. +(https://github.com/onflow/flips?tab=readme-ov-file#submitting-the-flip) + +--- + + +# Working Group Updates + +### **Cadence and Virtual Machine** \[Jan] +Cycle Objective(s): + +1) Upgrade Mainnet to Crescendo Release with minimal impact on developers, to lower the barrier for cross chain liquidity on Flow +2) Calibrate Transaction fees so that they accurately reflect resource usage during execution and deploy as part of Crescendo to avoid future disruption. +3) Analyze execution runtime trends and risks to plan next set of scalability OKRs. + +* Stretch-goals: +4) Expand testing capability of storehouse so that we can validate execution correctness and benchmark performance on Mainnet data +5) Design a new Trie to improve performance of update operation, reduce memory usage and size of proofs and to support more flexible proof queries. +6) Enable Concurrent Execution on one EN on Mainnet to validate correctness of the implementation (Detect execution forks) +7) Improve execution performance to mitigate the impact of adding metadata to token standards + +**Done last sprint** + +Cadence 1.0 migration testing with emulator + +Cadence 1.0 TN migration environment + +Cadence 1.0 features & improvements + +Cadence 1.0 dependency updates + +Cadence Execution + +EVM Gateway productization + +EVM Core + + +**This sprint** + +Objective 1, KR 1: Enable Developers and the Flow Foundation to simulate Cadence 1.0 Contract upgrades +* [Emulator release is ready](https://github.com/onflow/flow-cli/releases/tag/v1.12.0-cadence-v1.0.0-preview.9), going through last [testing](https://github.com/onflow/cadence/issues/3098) before we announce it. +* Testnet migration completed, moving on to adding [Atree register inlining](https://github.com/onflow/cadence/pull/3048) migration and validating migrated state on the TN migration environment. + +Objective 1, KR4: Testnet Upgrade to Crescendo Release +* Continue with [EVM Gateway development](https://github.com/onflow/flow-evm-gateway/issues/126) and [EVM Core development](https://github.com/onflow/flow-go/issues/5536) for production readiness. + +Objective 4, KR1: Execution node handles restart from spork root block reguardless of how many blocks it is behind +* Continue refactoring of Ingestion engine to [prevent EN entering crash loop](https://github.com/onflow/flow-go/issues/5298) + +Objective 3: Analyze execution runtime trends and risks to plan next set of scalability OKRs +* Continue work on making [Make TPS loader input more flexible](https://github.com/onflow/flow-go/issues/5490) for better analysis and tracking of performance data. + +* Start Atree optimization: [Adding support for lazy decoding of registers](https://github.com/onflow/atree/issues/341) + +**On Hold** + +Objective 2: Calibrate Transaction fees so that they accurately reflect resource usage during execution and deploy as part of Crescendo to avoid future disruption +- KR1: Update weights for the execution operations on TN and MN + - [Execution effort recalibration - data collection](https://github.com/onflow/flow-go/issues/5026) + + +**Active Epics** + +Objective 1: Upgrade Mainnet to Crescendo Release with minimal impact on developers, to lower the barrier for cross chain liquidity on Flow +- KR1: Enable Developers and the Flow Foundation to simulate Cadence 1.0 Contract upgrades +- KR4: Testnet Upgrade to Crescendo Release +- KR6: Develop & share with community a disaster recovery plan to address potential issues after migration to Crescendo Release. +- KR7: Decision on how to deal with contracts that have not been upgraded to Cadence 1.0 by developers. +Objective 3: Analyze execution runtime trends and risks to plan next set of scalability OKRs +- KR1: Measure execution state growth trends, identify future bottlenecks and prioritize by urgency + +--- + +### **Core Protocol** \[Jerome] +Cycle Objective(s): + +* Translate crypto performance improvements to consensus block rate increase +* Provide developers secure and non-rate limited way to access all of chain data (transactions, blocks, account balance, events, account balance etc) by locally running an access or an observer node +* Reduce CPU usage on Execution node by 30% +* Continue design and implementation of Sporkless Epoch Fallback Recovery solution + +**Done last sprint** + +* + +**This sprint** + +* EFM Recovery + * Merge KV store state machine PR + * [Integrate state machine with the higher level logic](https://github.com/onflow/flow-go/issues/5319) + * [Integrating KV Store state machine into upgrade integration tests](extending https://github.com/onflow/flow-go/pull/5477) + * [Finalizing smart contract changes](https://github.com/onflow/flow-core-contracts/pull/411) + * [Complete EFM data recovery](https://github.com/dapperlabs/flow-go/issues/6957) + * Wrap up reading and knowledge ramp up for Khalil + * [Start EFM recovery transaction](https://github.com/dapperlabs/flow-go/issues/6956) +* Data Availability + * [Enable programs cache on AN](https://github.com/onflow/flow-go/issues/5278) - finish and deploy to devnet + * [Debug unusual disk usage on ANs](https://github.com/onflow/flow-go/issues/5549) + * KROK team - merge remaining Event streaming PRs which are nearly done + * [SendAndSubscribeTransactionStatuses endpoint implementation for Access Streaming API](https://github.com/onflow/flow-go/pull/5310) + * [Add standard Access API implementations on Observer](https://github.com/onflow/flow-go/pull/5358) + * [Benchmark testing and analysis of execution data indexing on Observers](https://github.com/onflow/flow-go/issues/4849) +* Crypto + * New crypto lib + * Continue following up with ArtBlocks and make sure their node work + * [Reproducing CPU issue on similar CPUs from gcloud](https://github.com/onflow/flow-go/pull/5471) + * Randomness-on chain contract: get back to the contract fix + +**On Hold** +* Deliver public roadmap & vision for technical protocol decentralization focusing on current challenges and upcoming updates for permissionless consensus on Flow. +* Implement BFT mitigations to enable 20 permissionless ANs + +**Active Epics** + +- Reinforcing Flow’s commitment to full protocol autonomy and scalability +- Improve network performance +- Improve network availability +- Simplify community contributions to core protocol and maintainability +- Improve network reliability and data availability for dApp developers +- Data-driven Prioritization and Scaling Engineering + +--- + +### **DeFi** \[Jerome] + +Cycle Objective(s): +- Resolving Circle's existing engineering improvements for USDC on Flow +- DEX Prep - IncrementFi +- Bridge Prep - Axelar + +**Done last sprint** + +* + +**This sprint** + +* Start milestones #5 & #6 of JVM SDK update to update example repo, then analyze scope of work for subsequent grant + +**On Hold** +- Axelar release waiting confirmation of new timeline, no engineering ongoing + +**Active Epics** + +- Establish Defi/Liquidity infrastructure for Cadence 1.0 update +- Ensure Flow has best-in-class on- and off-ramps for USDC liquidity across DeFi ecosystem +- Expand Flow DeFi ecosystem primitives and protocols + +--- + +### **User Experience** \[Greg] + +Cycle Objective(s): + +* Bring Cadence 1.0 to market as part of the Crescendo release to minimize customer impact and developer effort +* Bring EVM on Flow to Market as part of the Crescendo release to increase liquidity and bring top-tier developer platforms to our network +* Use the Crescendo Release grow Flow's developer base and network activity + +**Done last sprint** + +* + +**This sprint** +**Sprint goal focusing on updating EVM docs, tooling support, and examples for Cadence 1.0** + +* EVM Docs v2 +* Add viem guide (EVM) +* Update Access Node Docs +* Create video to demonstrate local upgrade, staging, and state migration +* [Add dependencies from Dependency Manager to a deployment account](https://github.com/onflow/flow-cli/issues/1362) +* [Allow adding alias when adding a contract with Dependency Manager](https://github.com/onflow/flow-cli/issues/1363) +* [QA full Cadence 1.0 state migration in Emulator](https://github.com/onflow/cadence/issues/3098) +* [Add Linter and Cadence checker to CLI stage command](https://github.com/onflow/flow-cli/issues/1454) +* [Review Code Changes for New Token Standards #648](https://github.com/onflow/docs/issues/648) +* Create Cadence 1.0 Project Upgrade demo repo +* [New Dev Docs Landing Page](https://github.com/onflow/docs/issues/509) + +**On Hold** + +* [Update Flowport for Cadence Crescendo instance](https://github.com/orgs/onflow/projects/13/views/85?pane=issue&itemId=51960824) +* [Update Playground to support Cadence 1.0](https://github.com/onflow/flow-playground/issues/760) + +--- + +### **Wallet** \[Jeff] + +Cycle Objective(s): + +- Ensure there exists a wallet ecosystem supports FlowEVM + - Release version 2.2 of Flow Wallet which supports FlowEVM + - Support Authn / Authz / User Sign with Web3.js and WalletConnect + - Support FT and NFT management cross VMs + - FlowEVM onboarding and COA creation + - Ensure commitments from key EVM wallet providers to support FlowEVM + - Secure FlowEVM as an option in the network selector list for MetaMask. + - Reach out to Coinbase wallet for a commitment to support FlowEVM + - Ensure commitments from key EVM wallet providers to support FlowEVM + - Reach out to Privy for a commitment to support FlowEVM + - Reach out to Bastion for a commitment to support FlowEVM + - Ensure awareness for existing Cadence aware wallet (aside from Flow Wallet) to support FlowEVM + - Provide a design document outlining the steps existing Cadence aware wallets can take to support FlowEVM. + - Reach out to Blocto for a commitment to support FlowEVM + - Reach out to Shadow wallet for a commitment to support FlowEVM + - Reach out to Magic for a commitment to support FlowEVM + +- Promote safe, human readable transaction authorization on Flow + - Secure a partnership with Blockaid to integrate their transaction simulation and security platform with FlowEVM. + - Ensure the existing MetaMask Blockaid integration is compatible with FlowEVM. + +- Modernize and improve FCL Discovery + - Create a PRD and associated community bounty/grant for UI/UX improvements and analytics additions to FCL Discovery. + +**Done last sprint** + +* + +**This sprint** + +- CTD cadence transactions / scripts for Cadence 1.0 +- COA integration (including Web3.js integration with COA) +- VM Bridge integration, meeting scheduled for Monday. +- CTD: Outreach with Coinbase Wallet, MetaMask, Shadow Wallet and Blocto + +**On Hold** + +- N/A + +**Active Epics** + +- TBD + +--- + +### **Infra - JP** +Cycle Objective(s): +- Finish GCP project migration to the Flow Foundation org + +**Done last sprint** + +* + +**Goal of Sprint is to prepare for GCP migration to FF account** +**This Sprint** +- Finish migrating all GCP projects and shift billing accounts for these projects +- Enable FF groups in the GCP projects for IAM shift +- Evaluate best path forward for Terraform management +- Create plan for CloudFlare account migration +- Continue suppporting migration network initiative +- Continue supporting Cloud Run migration initiative + +--- + +### **Governance and Tokenomics** \[Kshitij] +Cycle Objective(s): Transaction fees on EVM, increasing transaction fees and inflation reduction plan. + +**Done last sprint** + +* + +**This sprint** + +- Publish forum post detailing the computation limit, gas to compute conversion, and the transaction fee increase +- EIP 4844 vs Flow analysis - create self explanatory publicly available spreadsheets, write a blog post +- Partner outreach regarding the upcoming transaction fee increase +- Model inflation reduction via two methods - (1) a planned reduction in reward rate over time like sol, and (2) a capped reward number that reduces inflation over time when the cap hits in future +- Finalize cresendo related governance and tokenomics plan +- Consensus node rebalancing exercise to maintain decentralization + +**On Hold** + +- N/A + + +**Active Epics** + +- N/A From 0d8db0296cf6c6e59bb7f3b913d921b5d9ec3f0d Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Fri, 22 Mar 2024 09:33:19 +0100 Subject: [PATCH 18/36] adding Cadence updates 18-23 Mar --- .../2024-03-29-Flow-Sprint-Kickoff.md | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index ac85e442e..149e9747e 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -65,19 +65,33 @@ Cycle Objective(s): **Done last sprint** -Cadence 1.0 migration testing with emulator +Cadence 1.0 migration testing with emulator & TN migration environment +- [Make contract update validation thread safe](https://github.com/onflow/flow-go/issues/5565) +- [Improve cadence migrations](https://github.com/onflow/flow-go/issues/5564) +- [Relax interface conformance changes in contract update validator](https://github.com/onflow/cadence/pull/3184) +- [Fix import resolving during staged contract updates](https://github.com/onflow/flow-go/issues/5551) -Cadence 1.0 TN migration environment +Cadence 1.0 dependency updates +- CLI: [1](https://github.com/onflow/flow-cli/issues/1470), [2](https://github.com/onflow/flow-cli/issues/1462) +- EVM Gateway: [1](https://github.com/onflow/flow-evm-gateway/issues/175), [2](https://github.com/onflow/flow-evm-gateway/issues/165) +- flixkit-go: [1](https://github.com/onflow/flixkit-go/issues/52), [2](https://github.com/onflow/flixkit-go/issues/51) +- cadence-tools: [1](https://github.com/onflow/cadence-tools/issues/323), [2](https://github.com/onflow/cadence-tools/issues/322), [3](https://github.com/onflow/cadence-tools/issues/320), [4](https://github.com/onflow/cadence-tools/issues/318), [5](https://github.com/onflow/cadence-tools/issues/316) +- flowkit: [1](https://github.com/onflow/flowkit/issues/32), [2](https://github.com/onflow/flowkit/issues/31), [3](https://github.com/onflow/flowkit/issues/30) +- emulator: [1](https://github.com/onflow/flow-emulator/issues/622), [2](https://github.com/onflow/flow-emulator/issues/621), [3](https://github.com/onflow/flow-emulator/issues/618) +- flow-go-sdk: [1](https://github.com/onflow/flow-go-sdk/issues/610), [2](https://github.com/onflow/flow-go-sdk/issues/609) +- flow-go: [1](https://github.com/onflow/flow-go/issues/5555) Cadence 1.0 features & improvements -Cadence 1.0 dependency updates - Cadence Execution EVM Gateway productization EVM Core +- [Populate receiptRoot in the block](https://github.com/onflow/flow-go/issues/5509) +- [Add flow token bridge events](https://github.com/onflow/flow-go/issues/5537) +- [Fix the possibility of concurrent Precompile setup calls](https://github.com/onflow/flow-go/issues/5512) +- Go-ethereum: [Update internal package references](https://github.com/onflow/go-ethereum/pull/5) **This sprint** From 0b1a9b9cf38f53a4ffe43c3ca58529ba05fd8150 Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Wed, 27 Mar 2024 06:35:26 +0100 Subject: [PATCH 19/36] Cadence wg updates 23-27 March --- .../sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 149e9747e..2314f4f0e 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -66,6 +66,15 @@ Cycle Objective(s): **Done last sprint** Cadence 1.0 migration testing with emulator & TN migration environment +- [State migration fails in some cases](https://github.com/onflow/cadence/issues/3192) + - [Handle unparameterized Capability static types](https://github.com/onflow/cadence/pull/3196) +- [Make custom contract update rules mandatory](https://github.com/onflow/cadence/issues/3187) +- Fix for the Migration environment using tons of compute after migration to C1.0 + - [Don't copy dictionary in getEpochMetadata](https://github.com/onflow/flow-core-contracts/pull/413) + - [Update Core Contracts](https://github.com/onflow/flow-go/pull/5579) +- [Make ExampleNFT compatible for contract update](https://github.com/onflow/flow-nft/pull/205) +- [Optimise merge registers for migrations](https://github.com/onflow/flow-go/pull/5522) +- new tool: [Storage Explorer](https://github.com/onflow/cadence/pull/3147) - [Make contract update validation thread safe](https://github.com/onflow/flow-go/issues/5565) - [Improve cadence migrations](https://github.com/onflow/flow-go/issues/5564) - [Relax interface conformance changes in contract update validator](https://github.com/onflow/cadence/pull/3184) @@ -82,6 +91,8 @@ Cadence 1.0 dependency updates - flow-go: [1](https://github.com/onflow/flow-go/issues/5555) Cadence 1.0 features & improvements +- bugfix: [Crasher when converting integer to opional address](https://github.com/onflow/cadence/issues/3194) +- Docs: [Improve development documentation](https://github.com/onflow/cadence/pull/3189) Cadence Execution From 21d7d8424262df083f88db160037eadb258f44fe Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Wed, 27 Mar 2024 21:22:51 +0530 Subject: [PATCH 20/36] Create 2024-03-27-Protocol-Product-Sync.md Creating new meeting file --- agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md diff --git a/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md @@ -0,0 +1 @@ + From 95a7509b7cf26ad9b90eabacc72695b28bf58d5c Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Wed, 27 Mar 2024 21:23:44 +0530 Subject: [PATCH 21/36] Update 2024-03-27-Protocol-Product-Sync.md Editing text --- agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md index 8b1378917..c87bcbd4b 100644 --- a/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md +++ b/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md @@ -1 +1,3 @@ +# Please add agenda items below +1. From e8c5c58531640abece15021f6072fe625098f534 Mon Sep 17 00:00:00 2001 From: Kan Zhang Date: Wed, 27 Mar 2024 11:06:27 -0700 Subject: [PATCH 22/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- .../2024-03-29-Flow-Sprint-Kickoff.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 2314f4f0e..bdafca216 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -1,8 +1,22 @@ # Overview - ### Team Wins 🎉 + +### Team Wins 🎉 + +- Emulator state migration of NFT example to Cadence 1.0 finally successful! +- + +### General updates + +- Starting to move towards Grafana Incident Management, as well as a split EU/NA schedule during the work week. Feel free to take a look at the current setup [here](https://flowfoundation.grafana.net/a/grafana-oncall-app/schedules/S8X18TEALX93Z?p=1) +- Open to discussion, how the weekends should be handled (EU/NA split, or standard rotation) +- Reminder for US folks to submit their 83(b) forms before tomorrow + +### OOO +- [Full List](https://www.notion.so/flowfoundation/de89aa4e79364216a665888335a1cdee?v=4de18b26f60d4bae8f62724dddcce260) +- Starting Next Week: + - G - April 1st to April 15th -* --- @@ -26,6 +40,7 @@ N/A ### Key Release Dates & Breaking Changes - Next Mainnet/Testnet network upgrade (spork): TBD +- First Testnet Migration test run: April 3rd --- From 0d8b01fa6d3318e32169c7df706d7f404bf4fd50 Mon Sep 17 00:00:00 2001 From: Kshitij Chaudhary <78124453+KshitijChaudhary666@users.noreply.github.com> Date: Thu, 28 Mar 2024 00:03:51 +0530 Subject: [PATCH 23/36] Rename 2024-03-27-Protocol-Product-Sync.md to 2024-03-28-Protocol-Product-Sync.md editing file name --- ...otocol-Product-Sync.md => 2024-03-28-Protocol-Product-Sync.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename agendas/2024/product-sync/{2024-03-27-Protocol-Product-Sync.md => 2024-03-28-Protocol-Product-Sync.md} (100%) diff --git a/agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md b/agendas/2024/product-sync/2024-03-28-Protocol-Product-Sync.md similarity index 100% rename from agendas/2024/product-sync/2024-03-27-Protocol-Product-Sync.md rename to agendas/2024/product-sync/2024-03-28-Protocol-Product-Sync.md From 01b75bf70b596854c81e8cdf5611cdabdf144cb0 Mon Sep 17 00:00:00 2001 From: Ali Serag Date: Wed, 27 Mar 2024 16:30:09 -0700 Subject: [PATCH 24/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- .../2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index bdafca216..cd466ea70 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -215,7 +215,10 @@ Cycle Objective(s): **Done last sprint** -* +* Blocto, Metapier, Celer have not started upgrading to C1.0, encouraging them to start asap. IncrementFi started but blocked on merging FT Standard +* Axelar is set to deploy on EVM +* Circle update contract and USDC +* IncrementFi lending, borrowing and staking multisig **This sprint** From 0a561c221f9af7b0bcdc6255c27f7275aef8cd01 Mon Sep 17 00:00:00 2001 From: Alexander Hentschel Date: Wed, 27 Mar 2024 16:53:30 -0700 Subject: [PATCH 25/36] first version --- .../2024-03-29-Flow-Sprint-Kickoff.md | 67 ++++++++++++------- 1 file changed, 44 insertions(+), 23 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index bdafca216..fccba1b4b 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -156,7 +156,7 @@ Objective 3: Analyze execution runtime trends and risks to plan next set of scal --- -### **Core Protocol** \[Jerome] +### **Core Protocol** \[Yurii] Cycle Objective(s): * Translate crypto performance improvements to consensus block rate increase @@ -164,32 +164,53 @@ Cycle Objective(s): * Reduce CPU usage on Execution node by 30% * Continue design and implementation of Sporkless Epoch Fallback Recovery solution -**Done last sprint** +**Significant Progress Last Sprint:** + +* Zero-downtime Upgrades of Node Software: + - Integrated Key-Value Store into Dynamic Protocol State and added framework for independent state machines to update values in Key-Value Store ([PR #5513](https://github.com/onflow/flow-go/pull/5513) merged) + - [proof of concept] used Key-Value in Dynamic Protocol State for upgrading protocol; + + confirmed with tests on prototype code ([draft PR #5477](https://github.com/onflow/flow-go/pull/5477)): + - upgrading Protocol at a coordinated view without downtime works + - Nodes that don't support new version yet will halt at specified view (tested on prototype code) + + - large refactoring for cleanup (ongoing) + - Smart contract to coordinate protocol upgrade ([PR #411](https://github.com/onflow/flow-core-contracts/pull/411) in progress) + + +* EFM Recovery + * Khalil onboarded + * Tooling to generate data for EFM recovery ([PR #5576](https://github.com/onflow/flow-go/pull/5576) in progress) -* + +* Cryptography + - Randomness-on chain contract: aligning on solution + implemented proposal + implemented tests ([PR #416](https://github.com/onflow/flow-core-contracts/pull/416) in progress) + - New cryptography stack: + - further optimization and build docs ([PR #5](https://github.com/onflow/crypto/pull/5) merged) + - investigate root cause of CPU-compatability issue that `Figment` encountered (ongoing) + + +* Consensus speedup: + - completed analysis ([notion](https://www.notion.so/flowfoundation/Cruise-Control-headroom-for-speedups-46dc17e07ae14462b03341e4432a907d?pvs=4)) **This sprint** -* EFM Recovery - * Merge KV store state machine PR - * [Integrate state machine with the higher level logic](https://github.com/onflow/flow-go/issues/5319) - * [Integrating KV Store state machine into upgrade integration tests](extending https://github.com/onflow/flow-go/pull/5477) - * [Finalizing smart contract changes](https://github.com/onflow/flow-core-contracts/pull/411) - * [Complete EFM data recovery](https://github.com/dapperlabs/flow-go/issues/6957) - * Wrap up reading and knowledge ramp up for Khalil - * [Start EFM recovery transaction](https://github.com/dapperlabs/flow-go/issues/6956) -* Data Availability - * [Enable programs cache on AN](https://github.com/onflow/flow-go/issues/5278) - finish and deploy to devnet - * [Debug unusual disk usage on ANs](https://github.com/onflow/flow-go/issues/5549) - * KROK team - merge remaining Event streaming PRs which are nearly done - * [SendAndSubscribeTransactionStatuses endpoint implementation for Access Streaming API](https://github.com/onflow/flow-go/pull/5310) - * [Add standard Access API implementations on Observer](https://github.com/onflow/flow-go/pull/5358) - * [Benchmark testing and analysis of execution data indexing on Observers](https://github.com/onflow/flow-go/issues/4849) -* Crypto - * New crypto lib - * Continue following up with ArtBlocks and make sure their node work - * [Reproducing CPU issue on similar CPUs from gcloud](https://github.com/onflow/flow-go/pull/5471) - * Randomness-on chain contract: get back to the contract fix +* Zero-downtime Upgrades of Node Software: + - Cleanup and fix tests (large!) + - Finish smart contract to coordinate protocol upgrade ([PR #411](https://github.com/onflow/flow-core-contracts/pull/411)) + - Continue on integration tests ([draft PR #5477](https://github.com/onflow/flow-go/pull/5477)) + + +* EFM Recovery + - Generate data for EFM recovery (complete [PR #5576](https://github.com/onflow/flow-go/pull/5576) and potential follow-up) + - Start on [Governance Transaction to initiate EFM recovery](https://github.com/dapperlabs/flow-go/issues/6956) + + +* Cryptography + - Randomness-on chain contract: finish the implementation and update the contracts onchain + - new cryptography stack: + - continue on CPU-compatability issue + - extra build docs in all repos **On Hold** * Deliver public roadmap & vision for technical protocol decentralization focusing on current challenges and upcoming updates for permissionless consensus on Flow. From 616c8ebccecdaf7f3063724da8d21c1c4ae154e4 Mon Sep 17 00:00:00 2001 From: Alexander Hentschel Date: Wed, 27 Mar 2024 17:04:57 -0700 Subject: [PATCH 26/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 6b4d75eba..27194a763 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -156,7 +156,7 @@ Objective 3: Analyze execution runtime trends and risks to plan next set of scal --- -### **Core Protocol** \[Yurii] +### **Core Protocol** \[Yurii & Peter] Cycle Objective(s): * Translate crypto performance improvements to consensus block rate increase From 9ba5c32ce04200281d1f9d42ce2f602528eac651 Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef <50252200+tarakby@users.noreply.github.com> Date: Wed, 27 Mar 2024 18:08:48 -0600 Subject: [PATCH 27/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 27194a763..0dc6fd24e 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -186,8 +186,8 @@ Cycle Objective(s): * Cryptography - Randomness-on chain contract: aligning on solution + implemented proposal + implemented tests ([PR #416](https://github.com/onflow/flow-core-contracts/pull/416) in progress) - New cryptography stack: - - further optimization and build docs ([PR #5](https://github.com/onflow/crypto/pull/5) merged) - - investigate root cause of CPU-compatability issue that `Figment` encountered (ongoing) + - fix CPU-compatability issue: `Artblocks` are unblocked, root cause and long-term solutions are still ongoing (requires `Figment`'s help) + - further optimization and docs clarifications ([PR #5](https://github.com/onflow/crypto/pull/5) merged) * Consensus speedup: From 6b50540306f301fdc41d86c124c288ed3051789d Mon Sep 17 00:00:00 2001 From: Vishal <1117327+vishalchangrani@users.noreply.github.com> Date: Fri, 29 Mar 2024 03:14:05 +0530 Subject: [PATCH 28/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- .../2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 0dc6fd24e..a2de9018d 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -20,7 +20,7 @@ --- -### Mainnet Uptime - Last 7 days (3/9/24 to 3/15/24) \[Vishal] +### Mainnet Uptime - Last 7 days (3/15/24 to 3/29/24) \[Vishal] | | Target | Current Score | Error budget used | |:------------------------|:------:|:-------------:|:-----------------:| @@ -28,9 +28,9 @@ | Block Finalization | 99.9% | 100% | 0% | | Transaction Execution | 99.9% | 100% | 0% | | Block Sealing | 99.9% | 100% | 0% | -| Access API Liveness | 99.9% | 99.92% | 79.0 | +| Access API Liveness | 99.9% | 99.992% | 8.27% | -[SLO dashboards](https://flowfoundation.grafana.net/d/hgW3l-m4k/slo-dashboard?orgId=1&from=now-2w&to=now) are now live again on FF Grafana +[SLO dashboards](https://flowfoundation.grafana.net/d/hgW3l-m4k/slo-dashboard?orgId=1&from=now-2w&to=now) [YTD SLA: 100%](https://app.metrika.co/flow/dashboard/slas?tr=YTD) From d608145a980b4869c3b5bb86ae7500214f38a182 Mon Sep 17 00:00:00 2001 From: Vishal <1117327+vishalchangrani@users.noreply.github.com> Date: Fri, 29 Mar 2024 03:28:42 +0530 Subject: [PATCH 29/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- .../sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index a2de9018d..3785addc5 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -35,11 +35,18 @@ [YTD SLA: 100%](https://app.metrika.co/flow/dashboard/slas?tr=YTD) ## Incidents -N/A + +### Mainnet +1. March 25th 5:14 AM Pacific: EN1 memory leak observed by JP and mitigated by a restart ([slack thread](https://dapperlabs.slack.com/archives/C014WBGR1J9/p1711323881744749)) - Root cause: https://github.com/onflow/flow-go/issues/5150 +2. March 25th 10:45 PM Paficic: AN9 went OOM ([slack thread](https://dapperlabs.slack.com/archives/CUU2KQL4A/p1711386932706579)) - Same root cause as 1. +3. QN Public EU-based ANs went offline for 10 mins. ([RCA](https://discord.com/channels/613813861610684416/1162086721471647874/1223025960769818799])) + +### Testnet +1. ### Key Release Dates & Breaking Changes -- Next Mainnet/Testnet network upgrade (spork): TBD +- Next Mainnet/Testnet network upgrade (spork): ~End of April/ early May. - First Testnet Migration test run: April 3rd --- From 83a262418fc60238a8d5b900db1049c9e0d81b83 Mon Sep 17 00:00:00 2001 From: Vishal <1117327+vishalchangrani@users.noreply.github.com> Date: Fri, 29 Mar 2024 03:45:53 +0530 Subject: [PATCH 30/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- .../sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 3785addc5..e2aae9d89 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -37,12 +37,14 @@ ## Incidents ### Mainnet -1. March 25th 5:14 AM Pacific: EN1 memory leak observed by JP and mitigated by a restart ([slack thread](https://dapperlabs.slack.com/archives/C014WBGR1J9/p1711323881744749)) - Root cause: https://github.com/onflow/flow-go/issues/5150 -2. March 25th 10:45 PM Paficic: AN9 went OOM ([slack thread](https://dapperlabs.slack.com/archives/CUU2KQL4A/p1711386932706579)) - Same root cause as 1. -3. QN Public EU-based ANs went offline for 10 mins. ([RCA](https://discord.com/channels/613813861610684416/1162086721471647874/1223025960769818799])) +1. March 24th 4:45 PM Pacific: EN1 memory leak observed by JP and mitigated by a restart ([slack thread](https://dapperlabs.slack.com/archives/C014WBGR1J9/p1711323881744749)) - Root cause: https://github.com/onflow/flow-go/issues/5150 +2. March 25th 10:15 AM Pacific: AN9 went OOM ([slack thread](https://dapperlabs.slack.com/archives/CUU2KQL4A/p1711386932706579)) - Same root cause as 1. +3. March 25th 7:50 AM Pacific: QN Public EU-based ANs went offline for 10 minutes. ([RCA](https://discord.com/channels/613813861610684416/1162086721471647874/1223025960769818799])) +4. March 27th 0:00 AM Pacific: TTF spiked on QN public Access nodes. Root cause is yet to be determined. ### Testnet -1. +1. March 20th 11:12 AM: Sealing halt ([slack thread](https://dapperlabs.slack.com/archives/C015ABLUV41/p1710914042806219)) - Root cause: EN3 had failed to start after a move/restart. +2. March 28th 11:28 AM: EN1 deleted ([slack thread](https://dapperlabs.slack.com/archives/C015ABLUV41/p1711650523244509) - Root cause: human error. ### Key Release Dates & Breaking Changes From b6d67c625097d37154f149fb6bf1eeb90198fb8d Mon Sep 17 00:00:00 2001 From: sjonpaulbrown Date: Thu, 28 Mar 2024 17:34:02 -0600 Subject: [PATCH 31/36] Add infra section --- .../2024-03-29-Flow-Sprint-Kickoff.md | 36 ++++++++++++++++--- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index e2aae9d89..6bba807e2 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -351,19 +351,45 @@ Cycle Objective(s): ### **Infra - JP** Cycle Objective(s): - Finish GCP project migration to the Flow Foundation org +- Start planning CloudFlare migration +- Finish DevEx migration to Cloud Run **Done last sprint** -* +**CloudFlare Migration** +- [Develop load balancer solution for migrating existing ingresses](https://github.com/dapperlabs/terraform/pull/4187) + +**DevEx Migration +- [Update module to support load balancer services and apply to staging service](https://github.com/dapperlabs/flow-devex-infrastructure/pull/138) + +**GCP Project Migration** +- Migrate project containing Mainnet nodes to FF org +- Validate IAM access to nodes following migration + +**Grafana OnCall migration** +- Created Grafana teams for Grafana OnCall +- Created Esalatiton policies for Grafana OnCall +- Created on-call schedules for Grafana OnCall +- Designed split schedules for protocol team to enable flexible coverage + +**Node Hosting** +- Pruned chunk data packs on Devnet ENs to reclaim disk space +- Executed dynamic bootstrap on Devnet EN3 to get node caught up +- Pruned Devnet node logs to clean up boot disks +- [Increase Devnet LN disk sizes](https://github.com/dapperlabs/terraform/pull/4189) +- [Update SN disk sizes for Mainnet](https://github.com/dapperlabs/terraform/pull/4189) + +**Support** +- Generate credentials for QN +- Generate new KMS keys for new accounts +- Support migration network setup **Goal of Sprint is to prepare for GCP migration to FF account** **This Sprint** - Finish migrating all GCP projects and shift billing accounts for these projects - Enable FF groups in the GCP projects for IAM shift -- Evaluate best path forward for Terraform management -- Create plan for CloudFlare account migration -- Continue suppporting migration network initiative -- Continue supporting Cloud Run migration initiative +- Start eveluating & planning CloudFlare migration +- Finish migration to Cloud Run & deprecate clusters --- From c2db26e6e51b80f7330e32555d2e2417d7f21225 Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Fri, 29 Mar 2024 06:05:26 +0100 Subject: [PATCH 32/36] Cadence wg updates 27-29 March --- .../2024-03-29-Flow-Sprint-Kickoff.md | 43 +++++++++++++------ 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 6bba807e2..ae7e29fce 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -4,7 +4,7 @@ ### Team Wins 🎉 - Emulator state migration of NFT example to Cadence 1.0 finally successful! -- +- Successfully bootstrapped and run TN Migration environment from TN stated migrated to Cadence 1.0 (Fixed [issue with epoch contract](https://github.com/onflow/flow-core-contracts/pull/413) that caused ENs on migration network to hog CPU) ### General updates @@ -90,6 +90,14 @@ Cycle Objective(s): **Done last sprint** Cadence 1.0 migration testing with emulator & TN migration environment +- [Contract update fails if there were enums as type-requirements](https://github.com/onflow/cadence/issues/3186) +- [Run existing tests for C1.0 contract update validator](https://github.com/onflow/cadence/issues/3188) +- [State migration fails in some cases](https://github.com/onflow/cadence/issues/3192) + - [Only encode reference static type in legacy format if it was decoded as such](https://github.com/onflow/cadence/pull/3199) + - [Name storage migration, include in error](https://github.com/onflow/cadence/pull/3198) + - [Optionally check atree storage health before migration](https://github.com/onflow/flow-go/pull/5591) +- [Improve error printing in contract validator](https://github.com/onflow/flow-go/pull/5596) + - dependency for ^: [Simplify AuthorizationMismatchError](https://github.com/onflow/cadence/pull/3201) - [State migration fails in some cases](https://github.com/onflow/cadence/issues/3192) - [Handle unparameterized Capability static types](https://github.com/onflow/cadence/pull/3196) - [Make custom contract update rules mandatory](https://github.com/onflow/cadence/issues/3187) @@ -104,30 +112,39 @@ Cadence 1.0 migration testing with emulator & TN migration environment - [Relax interface conformance changes in contract update validator](https://github.com/onflow/cadence/pull/3184) - [Fix import resolving during staged contract updates](https://github.com/onflow/flow-go/issues/5551) -Cadence 1.0 dependency updates -- CLI: [1](https://github.com/onflow/flow-cli/issues/1470), [2](https://github.com/onflow/flow-cli/issues/1462) -- EVM Gateway: [1](https://github.com/onflow/flow-evm-gateway/issues/175), [2](https://github.com/onflow/flow-evm-gateway/issues/165) -- flixkit-go: [1](https://github.com/onflow/flixkit-go/issues/52), [2](https://github.com/onflow/flixkit-go/issues/51) -- cadence-tools: [1](https://github.com/onflow/cadence-tools/issues/323), [2](https://github.com/onflow/cadence-tools/issues/322), [3](https://github.com/onflow/cadence-tools/issues/320), [4](https://github.com/onflow/cadence-tools/issues/318), [5](https://github.com/onflow/cadence-tools/issues/316) -- flowkit: [1](https://github.com/onflow/flowkit/issues/32), [2](https://github.com/onflow/flowkit/issues/31), [3](https://github.com/onflow/flowkit/issues/30) -- emulator: [1](https://github.com/onflow/flow-emulator/issues/622), [2](https://github.com/onflow/flow-emulator/issues/621), [3](https://github.com/onflow/flow-emulator/issues/618) -- flow-go-sdk: [1](https://github.com/onflow/flow-go-sdk/issues/610), [2](https://github.com/onflow/flow-go-sdk/issues/609) -- flow-go: [1](https://github.com/onflow/flow-go/issues/5555) - Cadence 1.0 features & improvements +- bugfix: [Enums in Contract Interfaces cannot be updated to Cadence 1.0](https://github.com/onflow/cadence/issues/3182) - bugfix: [Crasher when converting integer to opional address](https://github.com/onflow/cadence/issues/3194) - Docs: [Improve development documentation](https://github.com/onflow/cadence/pull/3189) +- Docs: [Improve Cadence 1.0 migration guide](https://github.com/onflow/cadence-lang.org/pull/74) -Cadence Execution +Cadence 1.0 dependency updates +- CLI: [1](https://github.com/onflow/flow-cli/issues/1470), [2](https://github.com/onflow/flow-cli/issues/1462), [3](https://github.com/onflow/flow-cli/pull/1480) +- EVM Gateway: [1](https://github.com/onflow/flow-evm-gateway/issues/175), [2](https://github.com/onflow/flow-evm-gateway/issues/165) +- flixkit-go: [1](https://github.com/onflow/flixkit-go/issues/52), [2](https://github.com/onflow/flixkit-go/issues/51), [3](https://github.com/onflow/flixkit-go/pull/53) +- cadence-tools: [1](https://github.com/onflow/cadence-tools/issues/323), [2](https://github.com/onflow/cadence-tools/issues/322), [3](https://github.com/onflow/cadence-tools/issues/320), [4](https://github.com/onflow/cadence-tools/issues/318), [5](https://github.com/onflow/cadence-tools/issues/316), [6](https://github.com/onflow/cadence-tools/pull/328), [7](https://github.com/onflow/cadence-tools/pull/327), [8](https://github.com/onflow/cadence-tools/pull/326) +- flowkit: [1](https://github.com/onflow/flowkit/issues/32), [2](https://github.com/onflow/flowkit/issues/31), [3](https://github.com/onflow/flowkit/issues/30), [4](https://github.com/onflow/flowkit/pull/33) +- emulator: [1](https://github.com/onflow/flow-emulator/issues/622), [2](https://github.com/onflow/flow-emulator/issues/621), [3](https://github.com/onflow/flow-emulator/issues/618), [4](https://github.com/onflow/flow-emulator/pull/626) +- flow-go-sdk: [1](https://github.com/onflow/flow-go-sdk/issues/610), [2](https://github.com/onflow/flow-go-sdk/issues/609), [3](https://github.com/onflow/flow-go-sdk/pull/612), [4](https://github.com/onflow/flow-go-sdk/pull/611) +- flow-go: [1](https://github.com/onflow/flow-go/issues/5555), [2](https://github.com/onflow/flow-go/pull/5600) -EVM Gateway productization +Cadence Execution +- [Bump atree version in Cadence v1.0 for new features (e.g. deduplication of Cadence dictionary type info)](https://github.com/onflow/cadence/pull/3178) +- Test bugfix: [Fix data races in tests](https://github.com/onflow/flow-go/pull/5599) +- Reverting migration optimization causing unstable test behaviour: [Revert "Optimise merge registers for migrations"](https://github.com/onflow/flow-go/pull/5594) EVM Core +- [[Flow EVM] supporting evm.batchRun](https://github.com/onflow/flow-go/issues/5501) + - work towards ^: [prepare the StateDB and the Emulator to support batch run operations](https://github.com/onflow/flow-go/pull/5577) - [Populate receiptRoot in the block](https://github.com/onflow/flow-go/issues/5509) - [Add flow token bridge events](https://github.com/onflow/flow-go/issues/5537) - [Fix the possibility of concurrent Precompile setup calls](https://github.com/onflow/flow-go/issues/5512) - Go-ethereum: [Update internal package references](https://github.com/onflow/go-ethereum/pull/5) +EVM Gateway +- [Implement filter management](https://github.com/onflow/flow-evm-gateway/issues/7) +- [Support polling new data since filter changes](https://github.com/onflow/flow-evm-gateway/issues/141) + **This sprint** From 296bd1fee6be0403c8ed0d0c46516269845c7f2a Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Fri, 29 Mar 2024 06:15:58 +0100 Subject: [PATCH 33/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index ae7e29fce..ed3f87279 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -149,7 +149,7 @@ EVM Gateway **This sprint** Objective 1, KR 1: Enable Developers and the Flow Foundation to simulate Cadence 1.0 Contract upgrades -* [Emulator release is ready](https://github.com/onflow/flow-cli/releases/tag/v1.12.0-cadence-v1.0.0-preview.9), going through last [testing](https://github.com/onflow/cadence/issues/3098) before we announce it. +* [Emulator release is ready](https://github.com/onflow/flow-cli/releases/tag/v1.15.0-cadence-v1.0.0-preview.14), support devs that are teting migration, monitor Discord questions. * Testnet migration completed, moving on to adding [Atree register inlining](https://github.com/onflow/cadence/pull/3048) migration and validating migrated state on the TN migration environment. Objective 1, KR4: Testnet Upgrade to Crescendo Release From c9d8e9c202401f429aad38d3ddd1f7357ab33e28 Mon Sep 17 00:00:00 2001 From: Jan Bernatik Date: Fri, 29 Mar 2024 06:16:20 +0100 Subject: [PATCH 34/36] Update 2024-03-29-Flow-Sprint-Kickoff.md --- agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md | 1 + 1 file changed, 1 insertion(+) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index ed3f87279..4942ab608 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -5,6 +5,7 @@ - Emulator state migration of NFT example to Cadence 1.0 finally successful! - Successfully bootstrapped and run TN Migration environment from TN stated migrated to Cadence 1.0 (Fixed [issue with epoch contract](https://github.com/onflow/flow-core-contracts/pull/413) that caused ENs on migration network to hog CPU) +- [New CLI released](https://github.com/onflow/flow-cli/releases/tag/v1.15.0-cadence-v1.0.0-preview.14) with updated Cadence 1.0 (preview 18), supporting testig of contract upgrade to C1.0. ### General updates From 99e567d13301d73a981104cb615087bd69dc5bbe Mon Sep 17 00:00:00 2001 From: Andrii Date: Fri, 29 Mar 2024 15:10:02 +0200 Subject: [PATCH 35/36] Generated protobuf --- protobuf/go/flow/access/access_grpc.pb.go | 190 +++++++++++------- .../go/flow/execution/execution_grpc.pb.go | 70 ++++--- .../executiondata/executiondata_grpc.pb.go | 30 ++- .../go/flow/legacy/access/access_grpc.pb.go | 105 ++++++---- .../legacy/execution/execution_grpc.pb.go | 30 ++- 5 files changed, 263 insertions(+), 162 deletions(-) diff --git a/protobuf/go/flow/access/access_grpc.pb.go b/protobuf/go/flow/access/access_grpc.pb.go index 172e340f4..e1cad3888 100644 --- a/protobuf/go/flow/access/access_grpc.pb.go +++ b/protobuf/go/flow/access/access_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: flow/access/access.proto @@ -18,6 +18,50 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AccessAPI_Ping_FullMethodName = "/flow.access.AccessAPI/Ping" + AccessAPI_GetNodeVersionInfo_FullMethodName = "/flow.access.AccessAPI/GetNodeVersionInfo" + AccessAPI_GetLatestBlockHeader_FullMethodName = "/flow.access.AccessAPI/GetLatestBlockHeader" + AccessAPI_GetBlockHeaderByID_FullMethodName = "/flow.access.AccessAPI/GetBlockHeaderByID" + AccessAPI_GetBlockHeaderByHeight_FullMethodName = "/flow.access.AccessAPI/GetBlockHeaderByHeight" + AccessAPI_GetLatestBlock_FullMethodName = "/flow.access.AccessAPI/GetLatestBlock" + AccessAPI_GetBlockByID_FullMethodName = "/flow.access.AccessAPI/GetBlockByID" + AccessAPI_GetBlockByHeight_FullMethodName = "/flow.access.AccessAPI/GetBlockByHeight" + AccessAPI_GetCollectionByID_FullMethodName = "/flow.access.AccessAPI/GetCollectionByID" + AccessAPI_SendTransaction_FullMethodName = "/flow.access.AccessAPI/SendTransaction" + AccessAPI_GetTransaction_FullMethodName = "/flow.access.AccessAPI/GetTransaction" + AccessAPI_GetTransactionResult_FullMethodName = "/flow.access.AccessAPI/GetTransactionResult" + AccessAPI_GetTransactionResultByIndex_FullMethodName = "/flow.access.AccessAPI/GetTransactionResultByIndex" + AccessAPI_GetTransactionResultsByBlockID_FullMethodName = "/flow.access.AccessAPI/GetTransactionResultsByBlockID" + AccessAPI_GetTransactionsByBlockID_FullMethodName = "/flow.access.AccessAPI/GetTransactionsByBlockID" + AccessAPI_GetSystemTransaction_FullMethodName = "/flow.access.AccessAPI/GetSystemTransaction" + AccessAPI_GetSystemTransactionResult_FullMethodName = "/flow.access.AccessAPI/GetSystemTransactionResult" + AccessAPI_GetAccount_FullMethodName = "/flow.access.AccessAPI/GetAccount" + AccessAPI_GetAccountAtLatestBlock_FullMethodName = "/flow.access.AccessAPI/GetAccountAtLatestBlock" + AccessAPI_GetAccountAtBlockHeight_FullMethodName = "/flow.access.AccessAPI/GetAccountAtBlockHeight" + AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock" + AccessAPI_ExecuteScriptAtBlockID_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtBlockID" + AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName = "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight" + AccessAPI_GetEventsForHeightRange_FullMethodName = "/flow.access.AccessAPI/GetEventsForHeightRange" + AccessAPI_GetEventsForBlockIDs_FullMethodName = "/flow.access.AccessAPI/GetEventsForBlockIDs" + AccessAPI_GetNetworkParameters_FullMethodName = "/flow.access.AccessAPI/GetNetworkParameters" + AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName = "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot" + AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName = "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID" + AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName = "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight" + AccessAPI_GetExecutionResultForBlockID_FullMethodName = "/flow.access.AccessAPI/GetExecutionResultForBlockID" + AccessAPI_GetExecutionResultByID_FullMethodName = "/flow.access.AccessAPI/GetExecutionResultByID" + AccessAPI_SubscribeBlocksFromStartBlockID_FullMethodName = "/flow.access.AccessAPI/SubscribeBlocksFromStartBlockID" + AccessAPI_SubscribeBlocksFromStartHeight_FullMethodName = "/flow.access.AccessAPI/SubscribeBlocksFromStartHeight" + AccessAPI_SubscribeBlocksFromLatest_FullMethodName = "/flow.access.AccessAPI/SubscribeBlocksFromLatest" + AccessAPI_SubscribeBlockHeadersFromStartBlockID_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockHeadersFromStartBlockID" + AccessAPI_SubscribeBlockHeadersFromStartHeight_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockHeadersFromStartHeight" + AccessAPI_SubscribeBlockHeadersFromLatest_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockHeadersFromLatest" + AccessAPI_SubscribeBlockDigestsFromStartBlockID_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockDigestsFromStartBlockID" + AccessAPI_SubscribeBlockDigestsFromStartHeight_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockDigestsFromStartHeight" + AccessAPI_SubscribeBlockDigestsFromLatest_FullMethodName = "/flow.access.AccessAPI/SubscribeBlockDigestsFromLatest" + AccessAPI_SendAndSubscribeTransactionStatuses_FullMethodName = "/flow.access.AccessAPI/SendAndSubscribeTransactionStatuses" +) + // AccessAPIClient is the client API for AccessAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -188,7 +232,7 @@ func NewAccessAPIClient(cc grpc.ClientConnInterface) AccessAPIClient { func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_Ping_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -197,7 +241,7 @@ func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grp func (c *accessAPIClient) GetNodeVersionInfo(ctx context.Context, in *GetNodeVersionInfoRequest, opts ...grpc.CallOption) (*GetNodeVersionInfoResponse, error) { out := new(GetNodeVersionInfoResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetNodeVersionInfo", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetNodeVersionInfo_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -206,7 +250,7 @@ func (c *accessAPIClient) GetNodeVersionInfo(ctx context.Context, in *GetNodeVer func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestBlockHeader", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -215,7 +259,7 @@ func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLates func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockHeaderByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -224,7 +268,7 @@ func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHe func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockHeaderByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -233,7 +277,7 @@ func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlo func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -242,7 +286,7 @@ func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlock func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -251,7 +295,7 @@ func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetBlockByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockByHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -260,7 +304,7 @@ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHe func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollectionByIDRequest, opts ...grpc.CallOption) (*CollectionResponse, error) { out := new(CollectionResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetCollectionByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetCollectionByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -269,7 +313,7 @@ func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollecti func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { out := new(SendTransactionResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/SendTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_SendTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -278,7 +322,7 @@ func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransacti func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -287,7 +331,7 @@ func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransaction func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResult", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResult_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -296,7 +340,7 @@ func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTrans func (c *accessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *GetTransactionByIndexRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResultByIndex", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResultByIndex_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -305,7 +349,7 @@ func (c *accessAPIClient) GetTransactionResultByIndex(ctx context.Context, in *G func (c *accessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*TransactionResultsResponse, error) { out := new(TransactionResultsResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionResultsByBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResultsByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -314,7 +358,7 @@ func (c *accessAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in func (c *accessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*TransactionsResponse, error) { out := new(TransactionsResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetTransactionsByBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransactionsByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -323,7 +367,7 @@ func (c *accessAPIClient) GetTransactionsByBlockID(ctx context.Context, in *GetT func (c *accessAPIClient) GetSystemTransaction(ctx context.Context, in *GetSystemTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetSystemTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetSystemTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -332,7 +376,7 @@ func (c *accessAPIClient) GetSystemTransaction(ctx context.Context, in *GetSyste func (c *accessAPIClient) GetSystemTransactionResult(ctx context.Context, in *GetSystemTransactionResultRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetSystemTransactionResult", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetSystemTransactionResult_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -341,7 +385,7 @@ func (c *accessAPIClient) GetSystemTransactionResult(ctx context.Context, in *Ge func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccount", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -350,7 +394,7 @@ func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccountAtLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -359,7 +403,7 @@ func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAc func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetAccountAtBlockHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtBlockHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -368,7 +412,7 @@ func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAc func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -377,7 +421,7 @@ func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *Ex func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -386,7 +430,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Execut func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -395,7 +439,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *Ex func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetEventsForHeightRange", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetEventsForHeightRange_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -404,7 +448,7 @@ func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEv func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetEventsForBlockIDs", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -413,7 +457,7 @@ func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEvent func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetworkParametersRequest, opts ...grpc.CallOption) (*GetNetworkParametersResponse, error) { out := new(GetNetworkParametersResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetNetworkParameters", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetNetworkParameters_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -422,7 +466,7 @@ func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetwo func (c *accessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in *GetLatestProtocolStateSnapshotRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -431,7 +475,7 @@ func (c *accessAPIClient) GetLatestProtocolStateSnapshot(ctx context.Context, in func (c *accessAPIClient) GetProtocolStateSnapshotByBlockID(ctx context.Context, in *GetProtocolStateSnapshotByBlockIDRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -440,7 +484,7 @@ func (c *accessAPIClient) GetProtocolStateSnapshotByBlockID(ctx context.Context, func (c *accessAPIClient) GetProtocolStateSnapshotByHeight(ctx context.Context, in *GetProtocolStateSnapshotByHeightRequest, opts ...grpc.CallOption) (*ProtocolStateSnapshotResponse, error) { out := new(ProtocolStateSnapshotResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -449,7 +493,7 @@ func (c *accessAPIClient) GetProtocolStateSnapshotByHeight(ctx context.Context, func (c *accessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in *GetExecutionResultForBlockIDRequest, opts ...grpc.CallOption) (*ExecutionResultForBlockIDResponse, error) { out := new(ExecutionResultForBlockIDResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetExecutionResultForBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetExecutionResultForBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -458,7 +502,7 @@ func (c *accessAPIClient) GetExecutionResultForBlockID(ctx context.Context, in * func (c *accessAPIClient) GetExecutionResultByID(ctx context.Context, in *GetExecutionResultByIDRequest, opts ...grpc.CallOption) (*ExecutionResultByIDResponse, error) { out := new(ExecutionResultByIDResponse) - err := c.cc.Invoke(ctx, "/flow.access.AccessAPI/GetExecutionResultByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetExecutionResultByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -466,7 +510,7 @@ func (c *accessAPIClient) GetExecutionResultByID(ctx context.Context, in *GetExe } func (c *accessAPIClient) SubscribeBlocksFromStartBlockID(ctx context.Context, in *SubscribeBlocksFromStartBlockIDRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlocksFromStartBlockIDClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[0], "/flow.access.AccessAPI/SubscribeBlocksFromStartBlockID", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[0], AccessAPI_SubscribeBlocksFromStartBlockID_FullMethodName, opts...) if err != nil { return nil, err } @@ -498,7 +542,7 @@ func (x *accessAPISubscribeBlocksFromStartBlockIDClient) Recv() (*SubscribeBlock } func (c *accessAPIClient) SubscribeBlocksFromStartHeight(ctx context.Context, in *SubscribeBlocksFromStartHeightRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlocksFromStartHeightClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[1], "/flow.access.AccessAPI/SubscribeBlocksFromStartHeight", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[1], AccessAPI_SubscribeBlocksFromStartHeight_FullMethodName, opts...) if err != nil { return nil, err } @@ -530,7 +574,7 @@ func (x *accessAPISubscribeBlocksFromStartHeightClient) Recv() (*SubscribeBlocks } func (c *accessAPIClient) SubscribeBlocksFromLatest(ctx context.Context, in *SubscribeBlocksFromLatestRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlocksFromLatestClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[2], "/flow.access.AccessAPI/SubscribeBlocksFromLatest", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[2], AccessAPI_SubscribeBlocksFromLatest_FullMethodName, opts...) if err != nil { return nil, err } @@ -562,7 +606,7 @@ func (x *accessAPISubscribeBlocksFromLatestClient) Recv() (*SubscribeBlocksRespo } func (c *accessAPIClient) SubscribeBlockHeadersFromStartBlockID(ctx context.Context, in *SubscribeBlockHeadersFromStartBlockIDRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockHeadersFromStartBlockIDClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[3], "/flow.access.AccessAPI/SubscribeBlockHeadersFromStartBlockID", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[3], AccessAPI_SubscribeBlockHeadersFromStartBlockID_FullMethodName, opts...) if err != nil { return nil, err } @@ -594,7 +638,7 @@ func (x *accessAPISubscribeBlockHeadersFromStartBlockIDClient) Recv() (*Subscrib } func (c *accessAPIClient) SubscribeBlockHeadersFromStartHeight(ctx context.Context, in *SubscribeBlockHeadersFromStartHeightRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockHeadersFromStartHeightClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[4], "/flow.access.AccessAPI/SubscribeBlockHeadersFromStartHeight", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[4], AccessAPI_SubscribeBlockHeadersFromStartHeight_FullMethodName, opts...) if err != nil { return nil, err } @@ -626,7 +670,7 @@ func (x *accessAPISubscribeBlockHeadersFromStartHeightClient) Recv() (*Subscribe } func (c *accessAPIClient) SubscribeBlockHeadersFromLatest(ctx context.Context, in *SubscribeBlockHeadersFromLatestRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockHeadersFromLatestClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[5], "/flow.access.AccessAPI/SubscribeBlockHeadersFromLatest", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[5], AccessAPI_SubscribeBlockHeadersFromLatest_FullMethodName, opts...) if err != nil { return nil, err } @@ -658,7 +702,7 @@ func (x *accessAPISubscribeBlockHeadersFromLatestClient) Recv() (*SubscribeBlock } func (c *accessAPIClient) SubscribeBlockDigestsFromStartBlockID(ctx context.Context, in *SubscribeBlockDigestsFromStartBlockIDRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockDigestsFromStartBlockIDClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[6], "/flow.access.AccessAPI/SubscribeBlockDigestsFromStartBlockID", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[6], AccessAPI_SubscribeBlockDigestsFromStartBlockID_FullMethodName, opts...) if err != nil { return nil, err } @@ -690,7 +734,7 @@ func (x *accessAPISubscribeBlockDigestsFromStartBlockIDClient) Recv() (*Subscrib } func (c *accessAPIClient) SubscribeBlockDigestsFromStartHeight(ctx context.Context, in *SubscribeBlockDigestsFromStartHeightRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockDigestsFromStartHeightClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[7], "/flow.access.AccessAPI/SubscribeBlockDigestsFromStartHeight", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[7], AccessAPI_SubscribeBlockDigestsFromStartHeight_FullMethodName, opts...) if err != nil { return nil, err } @@ -722,7 +766,7 @@ func (x *accessAPISubscribeBlockDigestsFromStartHeightClient) Recv() (*Subscribe } func (c *accessAPIClient) SubscribeBlockDigestsFromLatest(ctx context.Context, in *SubscribeBlockDigestsFromLatestRequest, opts ...grpc.CallOption) (AccessAPI_SubscribeBlockDigestsFromLatestClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[8], "/flow.access.AccessAPI/SubscribeBlockDigestsFromLatest", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[8], AccessAPI_SubscribeBlockDigestsFromLatest_FullMethodName, opts...) if err != nil { return nil, err } @@ -754,7 +798,7 @@ func (x *accessAPISubscribeBlockDigestsFromLatestClient) Recv() (*SubscribeBlock } func (c *accessAPIClient) SendAndSubscribeTransactionStatuses(ctx context.Context, in *SendAndSubscribeTransactionStatusesRequest, opts ...grpc.CallOption) (AccessAPI_SendAndSubscribeTransactionStatusesClient, error) { - stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[9], "/flow.access.AccessAPI/SendAndSubscribeTransactionStatuses", opts...) + stream, err := c.cc.NewStream(ctx, &AccessAPI_ServiceDesc.Streams[9], AccessAPI_SendAndSubscribeTransactionStatuses_FullMethodName, opts...) if err != nil { return nil, err } @@ -1094,7 +1138,7 @@ func _AccessAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/Ping", + FullMethod: AccessAPI_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).Ping(ctx, req.(*PingRequest)) @@ -1112,7 +1156,7 @@ func _AccessAPI_GetNodeVersionInfo_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetNodeVersionInfo", + FullMethod: AccessAPI_GetNodeVersionInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNodeVersionInfo(ctx, req.(*GetNodeVersionInfoRequest)) @@ -1130,7 +1174,7 @@ func _AccessAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetLatestBlockHeader", + FullMethod: AccessAPI_GetLatestBlockHeader_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -1148,7 +1192,7 @@ func _AccessAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetBlockHeaderByID", + FullMethod: AccessAPI_GetBlockHeaderByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) @@ -1166,7 +1210,7 @@ func _AccessAPI_GetBlockHeaderByHeight_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetBlockHeaderByHeight", + FullMethod: AccessAPI_GetBlockHeaderByHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByHeight(ctx, req.(*GetBlockHeaderByHeightRequest)) @@ -1184,7 +1228,7 @@ func _AccessAPI_GetLatestBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetLatestBlock", + FullMethod: AccessAPI_GetLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlock(ctx, req.(*GetLatestBlockRequest)) @@ -1202,7 +1246,7 @@ func _AccessAPI_GetBlockByID_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetBlockByID", + FullMethod: AccessAPI_GetBlockByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByID(ctx, req.(*GetBlockByIDRequest)) @@ -1220,7 +1264,7 @@ func _AccessAPI_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetBlockByHeight", + FullMethod: AccessAPI_GetBlockByHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) @@ -1238,7 +1282,7 @@ func _AccessAPI_GetCollectionByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetCollectionByID", + FullMethod: AccessAPI_GetCollectionByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetCollectionByID(ctx, req.(*GetCollectionByIDRequest)) @@ -1256,7 +1300,7 @@ func _AccessAPI_SendTransaction_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/SendTransaction", + FullMethod: AccessAPI_SendTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).SendTransaction(ctx, req.(*SendTransactionRequest)) @@ -1274,7 +1318,7 @@ func _AccessAPI_GetTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetTransaction", + FullMethod: AccessAPI_GetTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransaction(ctx, req.(*GetTransactionRequest)) @@ -1292,7 +1336,7 @@ func _AccessAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetTransactionResult", + FullMethod: AccessAPI_GetTransactionResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResult(ctx, req.(*GetTransactionRequest)) @@ -1310,7 +1354,7 @@ func _AccessAPI_GetTransactionResultByIndex_Handler(srv interface{}, ctx context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetTransactionResultByIndex", + FullMethod: AccessAPI_GetTransactionResultByIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResultByIndex(ctx, req.(*GetTransactionByIndexRequest)) @@ -1328,7 +1372,7 @@ func _AccessAPI_GetTransactionResultsByBlockID_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetTransactionResultsByBlockID", + FullMethod: AccessAPI_GetTransactionResultsByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResultsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -1346,7 +1390,7 @@ func _AccessAPI_GetTransactionsByBlockID_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetTransactionsByBlockID", + FullMethod: AccessAPI_GetTransactionsByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -1364,7 +1408,7 @@ func _AccessAPI_GetSystemTransaction_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetSystemTransaction", + FullMethod: AccessAPI_GetSystemTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetSystemTransaction(ctx, req.(*GetSystemTransactionRequest)) @@ -1382,7 +1426,7 @@ func _AccessAPI_GetSystemTransactionResult_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetSystemTransactionResult", + FullMethod: AccessAPI_GetSystemTransactionResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetSystemTransactionResult(ctx, req.(*GetSystemTransactionResultRequest)) @@ -1400,7 +1444,7 @@ func _AccessAPI_GetAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetAccount", + FullMethod: AccessAPI_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccount(ctx, req.(*GetAccountRequest)) @@ -1418,7 +1462,7 @@ func _AccessAPI_GetAccountAtLatestBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetAccountAtLatestBlock", + FullMethod: AccessAPI_GetAccountAtLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtLatestBlock(ctx, req.(*GetAccountAtLatestBlockRequest)) @@ -1436,7 +1480,7 @@ func _AccessAPI_GetAccountAtBlockHeight_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetAccountAtBlockHeight", + FullMethod: AccessAPI_GetAccountAtBlockHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtBlockHeight(ctx, req.(*GetAccountAtBlockHeightRequest)) @@ -1454,7 +1498,7 @@ func _AccessAPI_ExecuteScriptAtLatestBlock_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtLatestBlock", + FullMethod: AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtLatestBlock(ctx, req.(*ExecuteScriptAtLatestBlockRequest)) @@ -1472,7 +1516,7 @@ func _AccessAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtBlockID", + FullMethod: AccessAPI_ExecuteScriptAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -1490,7 +1534,7 @@ func _AccessAPI_ExecuteScriptAtBlockHeight_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/ExecuteScriptAtBlockHeight", + FullMethod: AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockHeight(ctx, req.(*ExecuteScriptAtBlockHeightRequest)) @@ -1508,7 +1552,7 @@ func _AccessAPI_GetEventsForHeightRange_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetEventsForHeightRange", + FullMethod: AccessAPI_GetEventsForHeightRange_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForHeightRange(ctx, req.(*GetEventsForHeightRangeRequest)) @@ -1526,7 +1570,7 @@ func _AccessAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetEventsForBlockIDs", + FullMethod: AccessAPI_GetEventsForBlockIDs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -1544,7 +1588,7 @@ func _AccessAPI_GetNetworkParameters_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetNetworkParameters", + FullMethod: AccessAPI_GetNetworkParameters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNetworkParameters(ctx, req.(*GetNetworkParametersRequest)) @@ -1562,7 +1606,7 @@ func _AccessAPI_GetLatestProtocolStateSnapshot_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetLatestProtocolStateSnapshot", + FullMethod: AccessAPI_GetLatestProtocolStateSnapshot_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestProtocolStateSnapshot(ctx, req.(*GetLatestProtocolStateSnapshotRequest)) @@ -1580,7 +1624,7 @@ func _AccessAPI_GetProtocolStateSnapshotByBlockID_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetProtocolStateSnapshotByBlockID", + FullMethod: AccessAPI_GetProtocolStateSnapshotByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetProtocolStateSnapshotByBlockID(ctx, req.(*GetProtocolStateSnapshotByBlockIDRequest)) @@ -1598,7 +1642,7 @@ func _AccessAPI_GetProtocolStateSnapshotByHeight_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetProtocolStateSnapshotByHeight", + FullMethod: AccessAPI_GetProtocolStateSnapshotByHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetProtocolStateSnapshotByHeight(ctx, req.(*GetProtocolStateSnapshotByHeightRequest)) @@ -1616,7 +1660,7 @@ func _AccessAPI_GetExecutionResultForBlockID_Handler(srv interface{}, ctx contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetExecutionResultForBlockID", + FullMethod: AccessAPI_GetExecutionResultForBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetExecutionResultForBlockID(ctx, req.(*GetExecutionResultForBlockIDRequest)) @@ -1634,7 +1678,7 @@ func _AccessAPI_GetExecutionResultByID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.access.AccessAPI/GetExecutionResultByID", + FullMethod: AccessAPI_GetExecutionResultByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetExecutionResultByID(ctx, req.(*GetExecutionResultByIDRequest)) diff --git a/protobuf/go/flow/execution/execution_grpc.pb.go b/protobuf/go/flow/execution/execution_grpc.pb.go index 7726a8e90..49846e80c 100644 --- a/protobuf/go/flow/execution/execution_grpc.pb.go +++ b/protobuf/go/flow/execution/execution_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: flow/execution/execution.proto @@ -18,6 +18,22 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ExecutionAPI_Ping_FullMethodName = "/flow.execution.ExecutionAPI/Ping" + ExecutionAPI_GetAccountAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetAccountAtBlockID" + ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID" + ExecutionAPI_GetEventsForBlockIDs_FullMethodName = "/flow.execution.ExecutionAPI/GetEventsForBlockIDs" + ExecutionAPI_GetTransactionResult_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResult" + ExecutionAPI_GetTransactionResultByIndex_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResultByIndex" + ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID" + ExecutionAPI_GetTransactionErrorMessage_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessage" + ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex" + ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID" + ExecutionAPI_GetRegisterAtBlockID_FullMethodName = "/flow.execution.ExecutionAPI/GetRegisterAtBlockID" + ExecutionAPI_GetLatestBlockHeader_FullMethodName = "/flow.execution.ExecutionAPI/GetLatestBlockHeader" + ExecutionAPI_GetBlockHeaderByID_FullMethodName = "/flow.execution.ExecutionAPI/GetBlockHeaderByID" +) + // ExecutionAPIClient is the client API for ExecutionAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -65,7 +81,7 @@ func NewExecutionAPIClient(cc grpc.ClientConnInterface) ExecutionAPIClient { func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_Ping_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -74,7 +90,7 @@ func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ... func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAccountAtBlockIDRequest, opts ...grpc.CallOption) (*GetAccountAtBlockIDResponse, error) { out := new(GetAccountAtBlockIDResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetAccountAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetAccountAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -83,7 +99,7 @@ func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAcc func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptAtBlockIDResponse, error) { out := new(ExecuteScriptAtBlockIDResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -92,7 +108,7 @@ func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Exe func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*GetEventsForBlockIDsResponse, error) { out := new(GetEventsForBlockIDsResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetEventsForBlockIDs", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -101,7 +117,7 @@ func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEv func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionResultRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResult", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResult_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -110,7 +126,7 @@ func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTr func (c *executionAPIClient) GetTransactionResultByIndex(ctx context.Context, in *GetTransactionByIndexRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResultByIndex", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResultByIndex_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -119,7 +135,7 @@ func (c *executionAPIClient) GetTransactionResultByIndex(ctx context.Context, in func (c *executionAPIClient) GetTransactionResultsByBlockID(ctx context.Context, in *GetTransactionsByBlockIDRequest, opts ...grpc.CallOption) (*GetTransactionResultsResponse, error) { out := new(GetTransactionResultsResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -128,7 +144,7 @@ func (c *executionAPIClient) GetTransactionResultsByBlockID(ctx context.Context, func (c *executionAPIClient) GetTransactionErrorMessage(ctx context.Context, in *GetTransactionErrorMessageRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessageResponse, error) { out := new(GetTransactionErrorMessageResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessage_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -137,7 +153,7 @@ func (c *executionAPIClient) GetTransactionErrorMessage(ctx context.Context, in func (c *executionAPIClient) GetTransactionErrorMessageByIndex(ctx context.Context, in *GetTransactionErrorMessageByIndexRequest, opts ...grpc.CallOption) (*GetTransactionErrorMessageResponse, error) { out := new(GetTransactionErrorMessageResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -146,7 +162,7 @@ func (c *executionAPIClient) GetTransactionErrorMessageByIndex(ctx context.Conte 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...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -155,7 +171,7 @@ func (c *executionAPIClient) GetTransactionErrorMessagesByBlockID(ctx context.Co func (c *executionAPIClient) GetRegisterAtBlockID(ctx context.Context, in *GetRegisterAtBlockIDRequest, opts ...grpc.CallOption) (*GetRegisterAtBlockIDResponse, error) { out := new(GetRegisterAtBlockIDResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetRegisterAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetRegisterAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -164,7 +180,7 @@ func (c *executionAPIClient) GetRegisterAtBlockID(ctx context.Context, in *GetRe func (c *executionAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetLatestBlockHeader", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -173,7 +189,7 @@ func (c *executionAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLa func (c *executionAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/flow.execution.ExecutionAPI/GetBlockHeaderByID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -282,7 +298,7 @@ func _ExecutionAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/Ping", + FullMethod: ExecutionAPI_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).Ping(ctx, req.(*PingRequest)) @@ -300,7 +316,7 @@ func _ExecutionAPI_GetAccountAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetAccountAtBlockID", + FullMethod: ExecutionAPI_GetAccountAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetAccountAtBlockID(ctx, req.(*GetAccountAtBlockIDRequest)) @@ -318,7 +334,7 @@ func _ExecutionAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/ExecuteScriptAtBlockID", + FullMethod: ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -336,7 +352,7 @@ func _ExecutionAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetEventsForBlockIDs", + FullMethod: ExecutionAPI_GetEventsForBlockIDs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -354,7 +370,7 @@ func _ExecutionAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResult", + FullMethod: ExecutionAPI_GetTransactionResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResult(ctx, req.(*GetTransactionResultRequest)) @@ -372,7 +388,7 @@ func _ExecutionAPI_GetTransactionResultByIndex_Handler(srv interface{}, ctx cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResultByIndex", + FullMethod: ExecutionAPI_GetTransactionResultByIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResultByIndex(ctx, req.(*GetTransactionByIndexRequest)) @@ -390,7 +406,7 @@ func _ExecutionAPI_GetTransactionResultsByBlockID_Handler(srv interface{}, ctx c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionResultsByBlockID", + FullMethod: ExecutionAPI_GetTransactionResultsByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResultsByBlockID(ctx, req.(*GetTransactionsByBlockIDRequest)) @@ -408,7 +424,7 @@ func _ExecutionAPI_GetTransactionErrorMessage_Handler(srv interface{}, ctx conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessage", + FullMethod: ExecutionAPI_GetTransactionErrorMessage_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessage(ctx, req.(*GetTransactionErrorMessageRequest)) @@ -426,7 +442,7 @@ func _ExecutionAPI_GetTransactionErrorMessageByIndex_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessageByIndex", + FullMethod: ExecutionAPI_GetTransactionErrorMessageByIndex_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessageByIndex(ctx, req.(*GetTransactionErrorMessageByIndexRequest)) @@ -444,7 +460,7 @@ func _ExecutionAPI_GetTransactionErrorMessagesByBlockID_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetTransactionErrorMessagesByBlockID", + FullMethod: ExecutionAPI_GetTransactionErrorMessagesByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionErrorMessagesByBlockID(ctx, req.(*GetTransactionErrorMessagesByBlockIDRequest)) @@ -462,7 +478,7 @@ func _ExecutionAPI_GetRegisterAtBlockID_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetRegisterAtBlockID", + FullMethod: ExecutionAPI_GetRegisterAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetRegisterAtBlockID(ctx, req.(*GetRegisterAtBlockIDRequest)) @@ -480,7 +496,7 @@ func _ExecutionAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetLatestBlockHeader", + FullMethod: ExecutionAPI_GetLatestBlockHeader_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -498,7 +514,7 @@ func _ExecutionAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Conte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.execution.ExecutionAPI/GetBlockHeaderByID", + FullMethod: ExecutionAPI_GetBlockHeaderByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) diff --git a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go index cde6bb05d..f10ff7173 100644 --- a/protobuf/go/flow/executiondata/executiondata_grpc.pb.go +++ b/protobuf/go/flow/executiondata/executiondata_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: flow/executiondata/executiondata.proto @@ -18,6 +18,16 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName = "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID" + ExecutionDataAPI_SubscribeExecutionData_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeExecutionData" + ExecutionDataAPI_SubscribeEvents_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeEvents" + ExecutionDataAPI_GetRegisterValues_FullMethodName = "/flow.executiondata.ExecutionDataAPI/GetRegisterValues" + ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockID_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartBlockID" + ExecutionDataAPI_SubscribeAccountStatusesFromStartHeight_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartHeight" + ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlock_FullMethodName = "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromLatestBlock" +) + // ExecutionDataAPIClient is the client API for ExecutionDataAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -153,7 +163,7 @@ func NewExecutionDataAPIClient(cc grpc.ClientConnInterface) ExecutionDataAPIClie func (c *executionDataAPIClient) GetExecutionDataByBlockID(ctx context.Context, in *GetExecutionDataByBlockIDRequest, opts ...grpc.CallOption) (*GetExecutionDataByBlockIDResponse, error) { out := new(GetExecutionDataByBlockIDResponse) - err := c.cc.Invoke(ctx, "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -161,7 +171,7 @@ func (c *executionDataAPIClient) GetExecutionDataByBlockID(ctx context.Context, } func (c *executionDataAPIClient) SubscribeExecutionData(ctx context.Context, in *SubscribeExecutionDataRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeExecutionDataClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[0], "/flow.executiondata.ExecutionDataAPI/SubscribeExecutionData", opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[0], ExecutionDataAPI_SubscribeExecutionData_FullMethodName, opts...) if err != nil { return nil, err } @@ -193,7 +203,7 @@ func (x *executionDataAPISubscribeExecutionDataClient) Recv() (*SubscribeExecuti } func (c *executionDataAPIClient) SubscribeEvents(ctx context.Context, in *SubscribeEventsRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeEventsClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[1], "/flow.executiondata.ExecutionDataAPI/SubscribeEvents", opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[1], ExecutionDataAPI_SubscribeEvents_FullMethodName, opts...) if err != nil { return nil, err } @@ -226,7 +236,7 @@ func (x *executionDataAPISubscribeEventsClient) Recv() (*SubscribeEventsResponse func (c *executionDataAPIClient) GetRegisterValues(ctx context.Context, in *GetRegisterValuesRequest, opts ...grpc.CallOption) (*GetRegisterValuesResponse, error) { out := new(GetRegisterValuesResponse) - err := c.cc.Invoke(ctx, "/flow.executiondata.ExecutionDataAPI/GetRegisterValues", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionDataAPI_GetRegisterValues_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -234,7 +244,7 @@ func (c *executionDataAPIClient) GetRegisterValues(ctx context.Context, in *GetR } func (c *executionDataAPIClient) SubscribeAccountStatusesFromStartBlockID(ctx context.Context, in *SubscribeAccountStatusesFromStartBlockIDRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockIDClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[2], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartBlockID", opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[2], ExecutionDataAPI_SubscribeAccountStatusesFromStartBlockID_FullMethodName, opts...) if err != nil { return nil, err } @@ -266,7 +276,7 @@ func (x *executionDataAPISubscribeAccountStatusesFromStartBlockIDClient) Recv() } func (c *executionDataAPIClient) SubscribeAccountStatusesFromStartHeight(ctx context.Context, in *SubscribeAccountStatusesFromStartHeightRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromStartHeightClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[3], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromStartHeight", opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[3], ExecutionDataAPI_SubscribeAccountStatusesFromStartHeight_FullMethodName, opts...) if err != nil { return nil, err } @@ -298,7 +308,7 @@ func (x *executionDataAPISubscribeAccountStatusesFromStartHeightClient) Recv() ( } func (c *executionDataAPIClient) SubscribeAccountStatusesFromLatestBlock(ctx context.Context, in *SubscribeAccountStatusesFromLatestBlockRequest, opts ...grpc.CallOption) (ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlockClient, error) { - stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[4], "/flow.executiondata.ExecutionDataAPI/SubscribeAccountStatusesFromLatestBlock", opts...) + stream, err := c.cc.NewStream(ctx, &ExecutionDataAPI_ServiceDesc.Streams[4], ExecutionDataAPI_SubscribeAccountStatusesFromLatestBlock_FullMethodName, opts...) if err != nil { return nil, err } @@ -501,7 +511,7 @@ func _ExecutionDataAPI_GetExecutionDataByBlockID_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.executiondata.ExecutionDataAPI/GetExecutionDataByBlockID", + FullMethod: ExecutionDataAPI_GetExecutionDataByBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionDataAPIServer).GetExecutionDataByBlockID(ctx, req.(*GetExecutionDataByBlockIDRequest)) @@ -561,7 +571,7 @@ func _ExecutionDataAPI_GetRegisterValues_Handler(srv interface{}, ctx context.Co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/flow.executiondata.ExecutionDataAPI/GetRegisterValues", + FullMethod: ExecutionDataAPI_GetRegisterValues_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionDataAPIServer).GetRegisterValues(ctx, req.(*GetRegisterValuesRequest)) diff --git a/protobuf/go/flow/legacy/access/access_grpc.pb.go b/protobuf/go/flow/legacy/access/access_grpc.pb.go index 35afbce0b..76938b868 100644 --- a/protobuf/go/flow/legacy/access/access_grpc.pb.go +++ b/protobuf/go/flow/legacy/access/access_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: flow/legacy/access/access.proto @@ -18,6 +18,29 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + AccessAPI_Ping_FullMethodName = "/access.AccessAPI/Ping" + AccessAPI_GetLatestBlockHeader_FullMethodName = "/access.AccessAPI/GetLatestBlockHeader" + AccessAPI_GetBlockHeaderByID_FullMethodName = "/access.AccessAPI/GetBlockHeaderByID" + AccessAPI_GetBlockHeaderByHeight_FullMethodName = "/access.AccessAPI/GetBlockHeaderByHeight" + AccessAPI_GetLatestBlock_FullMethodName = "/access.AccessAPI/GetLatestBlock" + AccessAPI_GetBlockByID_FullMethodName = "/access.AccessAPI/GetBlockByID" + AccessAPI_GetBlockByHeight_FullMethodName = "/access.AccessAPI/GetBlockByHeight" + AccessAPI_GetCollectionByID_FullMethodName = "/access.AccessAPI/GetCollectionByID" + AccessAPI_SendTransaction_FullMethodName = "/access.AccessAPI/SendTransaction" + AccessAPI_GetTransaction_FullMethodName = "/access.AccessAPI/GetTransaction" + AccessAPI_GetTransactionResult_FullMethodName = "/access.AccessAPI/GetTransactionResult" + AccessAPI_GetAccount_FullMethodName = "/access.AccessAPI/GetAccount" + AccessAPI_GetAccountAtLatestBlock_FullMethodName = "/access.AccessAPI/GetAccountAtLatestBlock" + AccessAPI_GetAccountAtBlockHeight_FullMethodName = "/access.AccessAPI/GetAccountAtBlockHeight" + AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName = "/access.AccessAPI/ExecuteScriptAtLatestBlock" + AccessAPI_ExecuteScriptAtBlockID_FullMethodName = "/access.AccessAPI/ExecuteScriptAtBlockID" + AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName = "/access.AccessAPI/ExecuteScriptAtBlockHeight" + AccessAPI_GetEventsForHeightRange_FullMethodName = "/access.AccessAPI/GetEventsForHeightRange" + AccessAPI_GetEventsForBlockIDs_FullMethodName = "/access.AccessAPI/GetEventsForBlockIDs" + AccessAPI_GetNetworkParameters_FullMethodName = "/access.AccessAPI/GetNetworkParameters" +) + // AccessAPIClient is the client API for AccessAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -85,7 +108,7 @@ func NewAccessAPIClient(cc grpc.ClientConnInterface) AccessAPIClient { func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_Ping_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -94,7 +117,7 @@ func (c *accessAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grp func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLatestBlockHeaderRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetLatestBlockHeader", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlockHeader_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -103,7 +126,7 @@ func (c *accessAPIClient) GetLatestBlockHeader(ctx context.Context, in *GetLates func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHeaderByIDRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockHeaderByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -112,7 +135,7 @@ func (c *accessAPIClient) GetBlockHeaderByID(ctx context.Context, in *GetBlockHe func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlockHeaderByHeightRequest, opts ...grpc.CallOption) (*BlockHeaderResponse, error) { out := new(BlockHeaderResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockHeaderByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockHeaderByHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -121,7 +144,7 @@ func (c *accessAPIClient) GetBlockHeaderByHeight(ctx context.Context, in *GetBlo func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -130,7 +153,7 @@ func (c *accessAPIClient) GetLatestBlock(ctx context.Context, in *GetLatestBlock func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -139,7 +162,7 @@ func (c *accessAPIClient) GetBlockByID(ctx context.Context, in *GetBlockByIDRequ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*BlockResponse, error) { out := new(BlockResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetBlockByHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetBlockByHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -148,7 +171,7 @@ func (c *accessAPIClient) GetBlockByHeight(ctx context.Context, in *GetBlockByHe func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollectionByIDRequest, opts ...grpc.CallOption) (*CollectionResponse, error) { out := new(CollectionResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetCollectionByID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetCollectionByID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -157,7 +180,7 @@ func (c *accessAPIClient) GetCollectionByID(ctx context.Context, in *GetCollecti func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransactionRequest, opts ...grpc.CallOption) (*SendTransactionResponse, error) { out := new(SendTransactionResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/SendTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_SendTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -166,7 +189,7 @@ func (c *accessAPIClient) SendTransaction(ctx context.Context, in *SendTransacti func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResponse, error) { out := new(TransactionResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetTransaction", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -175,7 +198,7 @@ func (c *accessAPIClient) GetTransaction(ctx context.Context, in *GetTransaction func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*TransactionResultResponse, error) { out := new(TransactionResultResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetTransactionResult", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetTransactionResult_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -184,7 +207,7 @@ func (c *accessAPIClient) GetTransactionResult(ctx context.Context, in *GetTrans func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*GetAccountResponse, error) { out := new(GetAccountResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccount", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccount_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -193,7 +216,7 @@ func (c *accessAPIClient) GetAccount(ctx context.Context, in *GetAccountRequest, func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAccountAtLatestBlockRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccountAtLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -202,7 +225,7 @@ func (c *accessAPIClient) GetAccountAtLatestBlock(ctx context.Context, in *GetAc func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAccountAtBlockHeightRequest, opts ...grpc.CallOption) (*AccountResponse, error) { out := new(AccountResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetAccountAtBlockHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetAccountAtBlockHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -211,7 +234,7 @@ func (c *accessAPIClient) GetAccountAtBlockHeight(ctx context.Context, in *GetAc func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *ExecuteScriptAtLatestBlockRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtLatestBlock", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -220,7 +243,7 @@ func (c *accessAPIClient) ExecuteScriptAtLatestBlock(ctx context.Context, in *Ex func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -229,7 +252,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Execut func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *ExecuteScriptAtBlockHeightRequest, opts ...grpc.CallOption) (*ExecuteScriptResponse, error) { out := new(ExecuteScriptResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/ExecuteScriptAtBlockHeight", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -238,7 +261,7 @@ func (c *accessAPIClient) ExecuteScriptAtBlockHeight(ctx context.Context, in *Ex func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEventsForHeightRangeRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetEventsForHeightRange", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetEventsForHeightRange_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -247,7 +270,7 @@ func (c *accessAPIClient) GetEventsForHeightRange(ctx context.Context, in *GetEv func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*EventsResponse, error) { out := new(EventsResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetEventsForBlockIDs", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -256,7 +279,7 @@ func (c *accessAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEvent func (c *accessAPIClient) GetNetworkParameters(ctx context.Context, in *GetNetworkParametersRequest, opts ...grpc.CallOption) (*GetNetworkParametersResponse, error) { out := new(GetNetworkParametersResponse) - err := c.cc.Invoke(ctx, "/access.AccessAPI/GetNetworkParameters", in, out, opts...) + err := c.cc.Invoke(ctx, AccessAPI_GetNetworkParameters_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -406,7 +429,7 @@ func _AccessAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(inte } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/Ping", + FullMethod: AccessAPI_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).Ping(ctx, req.(*PingRequest)) @@ -424,7 +447,7 @@ func _AccessAPI_GetLatestBlockHeader_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetLatestBlockHeader", + FullMethod: AccessAPI_GetLatestBlockHeader_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlockHeader(ctx, req.(*GetLatestBlockHeaderRequest)) @@ -442,7 +465,7 @@ func _AccessAPI_GetBlockHeaderByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetBlockHeaderByID", + FullMethod: AccessAPI_GetBlockHeaderByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByID(ctx, req.(*GetBlockHeaderByIDRequest)) @@ -460,7 +483,7 @@ func _AccessAPI_GetBlockHeaderByHeight_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetBlockHeaderByHeight", + FullMethod: AccessAPI_GetBlockHeaderByHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockHeaderByHeight(ctx, req.(*GetBlockHeaderByHeightRequest)) @@ -478,7 +501,7 @@ func _AccessAPI_GetLatestBlock_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetLatestBlock", + FullMethod: AccessAPI_GetLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetLatestBlock(ctx, req.(*GetLatestBlockRequest)) @@ -496,7 +519,7 @@ func _AccessAPI_GetBlockByID_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetBlockByID", + FullMethod: AccessAPI_GetBlockByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByID(ctx, req.(*GetBlockByIDRequest)) @@ -514,7 +537,7 @@ func _AccessAPI_GetBlockByHeight_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetBlockByHeight", + FullMethod: AccessAPI_GetBlockByHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetBlockByHeight(ctx, req.(*GetBlockByHeightRequest)) @@ -532,7 +555,7 @@ func _AccessAPI_GetCollectionByID_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetCollectionByID", + FullMethod: AccessAPI_GetCollectionByID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetCollectionByID(ctx, req.(*GetCollectionByIDRequest)) @@ -550,7 +573,7 @@ func _AccessAPI_SendTransaction_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/SendTransaction", + FullMethod: AccessAPI_SendTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).SendTransaction(ctx, req.(*SendTransactionRequest)) @@ -568,7 +591,7 @@ func _AccessAPI_GetTransaction_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetTransaction", + FullMethod: AccessAPI_GetTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransaction(ctx, req.(*GetTransactionRequest)) @@ -586,7 +609,7 @@ func _AccessAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetTransactionResult", + FullMethod: AccessAPI_GetTransactionResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetTransactionResult(ctx, req.(*GetTransactionRequest)) @@ -604,7 +627,7 @@ func _AccessAPI_GetAccount_Handler(srv interface{}, ctx context.Context, dec fun } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetAccount", + FullMethod: AccessAPI_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccount(ctx, req.(*GetAccountRequest)) @@ -622,7 +645,7 @@ func _AccessAPI_GetAccountAtLatestBlock_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetAccountAtLatestBlock", + FullMethod: AccessAPI_GetAccountAtLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtLatestBlock(ctx, req.(*GetAccountAtLatestBlockRequest)) @@ -640,7 +663,7 @@ func _AccessAPI_GetAccountAtBlockHeight_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetAccountAtBlockHeight", + FullMethod: AccessAPI_GetAccountAtBlockHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetAccountAtBlockHeight(ctx, req.(*GetAccountAtBlockHeightRequest)) @@ -658,7 +681,7 @@ func _AccessAPI_ExecuteScriptAtLatestBlock_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/ExecuteScriptAtLatestBlock", + FullMethod: AccessAPI_ExecuteScriptAtLatestBlock_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtLatestBlock(ctx, req.(*ExecuteScriptAtLatestBlockRequest)) @@ -676,7 +699,7 @@ func _AccessAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/ExecuteScriptAtBlockID", + FullMethod: AccessAPI_ExecuteScriptAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -694,7 +717,7 @@ func _AccessAPI_ExecuteScriptAtBlockHeight_Handler(srv interface{}, ctx context. } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/ExecuteScriptAtBlockHeight", + FullMethod: AccessAPI_ExecuteScriptAtBlockHeight_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).ExecuteScriptAtBlockHeight(ctx, req.(*ExecuteScriptAtBlockHeightRequest)) @@ -712,7 +735,7 @@ func _AccessAPI_GetEventsForHeightRange_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetEventsForHeightRange", + FullMethod: AccessAPI_GetEventsForHeightRange_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForHeightRange(ctx, req.(*GetEventsForHeightRangeRequest)) @@ -730,7 +753,7 @@ func _AccessAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetEventsForBlockIDs", + FullMethod: AccessAPI_GetEventsForBlockIDs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -748,7 +771,7 @@ func _AccessAPI_GetNetworkParameters_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/access.AccessAPI/GetNetworkParameters", + FullMethod: AccessAPI_GetNetworkParameters_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccessAPIServer).GetNetworkParameters(ctx, req.(*GetNetworkParametersRequest)) diff --git a/protobuf/go/flow/legacy/execution/execution_grpc.pb.go b/protobuf/go/flow/legacy/execution/execution_grpc.pb.go index 78c62fe6a..f806f3909 100644 --- a/protobuf/go/flow/legacy/execution/execution_grpc.pb.go +++ b/protobuf/go/flow/legacy/execution/execution_grpc.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.2.0 +// - protoc-gen-go-grpc v1.3.0 // - protoc (unknown) // source: flow/legacy/execution/execution.proto @@ -18,6 +18,14 @@ import ( // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 +const ( + ExecutionAPI_Ping_FullMethodName = "/execution.ExecutionAPI/Ping" + ExecutionAPI_GetAccountAtBlockID_FullMethodName = "/execution.ExecutionAPI/GetAccountAtBlockID" + ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName = "/execution.ExecutionAPI/ExecuteScriptAtBlockID" + ExecutionAPI_GetEventsForBlockIDs_FullMethodName = "/execution.ExecutionAPI/GetEventsForBlockIDs" + ExecutionAPI_GetTransactionResult_FullMethodName = "/execution.ExecutionAPI/GetTransactionResult" +) + // ExecutionAPIClient is the client API for ExecutionAPI service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. @@ -46,7 +54,7 @@ func NewExecutionAPIClient(cc grpc.ClientConnInterface) ExecutionAPIClient { func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { out := new(PingResponse) - err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/Ping", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_Ping_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -55,7 +63,7 @@ func (c *executionAPIClient) Ping(ctx context.Context, in *PingRequest, opts ... func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAccountAtBlockIDRequest, opts ...grpc.CallOption) (*GetAccountAtBlockIDResponse, error) { out := new(GetAccountAtBlockIDResponse) - err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetAccountAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetAccountAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -64,7 +72,7 @@ func (c *executionAPIClient) GetAccountAtBlockID(ctx context.Context, in *GetAcc func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *ExecuteScriptAtBlockIDRequest, opts ...grpc.CallOption) (*ExecuteScriptAtBlockIDResponse, error) { out := new(ExecuteScriptAtBlockIDResponse) - err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/ExecuteScriptAtBlockID", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -73,7 +81,7 @@ func (c *executionAPIClient) ExecuteScriptAtBlockID(ctx context.Context, in *Exe func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEventsForBlockIDsRequest, opts ...grpc.CallOption) (*GetEventsForBlockIDsResponse, error) { out := new(GetEventsForBlockIDsResponse) - err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetEventsForBlockIDs", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetEventsForBlockIDs_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -82,7 +90,7 @@ func (c *executionAPIClient) GetEventsForBlockIDs(ctx context.Context, in *GetEv func (c *executionAPIClient) GetTransactionResult(ctx context.Context, in *GetTransactionResultRequest, opts ...grpc.CallOption) (*GetTransactionResultResponse, error) { out := new(GetTransactionResultResponse) - err := c.cc.Invoke(ctx, "/execution.ExecutionAPI/GetTransactionResult", in, out, opts...) + err := c.cc.Invoke(ctx, ExecutionAPI_GetTransactionResult_FullMethodName, in, out, opts...) if err != nil { return nil, err } @@ -148,7 +156,7 @@ func _ExecutionAPI_Ping_Handler(srv interface{}, ctx context.Context, dec func(i } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/execution.ExecutionAPI/Ping", + FullMethod: ExecutionAPI_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).Ping(ctx, req.(*PingRequest)) @@ -166,7 +174,7 @@ func _ExecutionAPI_GetAccountAtBlockID_Handler(srv interface{}, ctx context.Cont } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/execution.ExecutionAPI/GetAccountAtBlockID", + FullMethod: ExecutionAPI_GetAccountAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetAccountAtBlockID(ctx, req.(*GetAccountAtBlockIDRequest)) @@ -184,7 +192,7 @@ func _ExecutionAPI_ExecuteScriptAtBlockID_Handler(srv interface{}, ctx context.C } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/execution.ExecutionAPI/ExecuteScriptAtBlockID", + FullMethod: ExecutionAPI_ExecuteScriptAtBlockID_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).ExecuteScriptAtBlockID(ctx, req.(*ExecuteScriptAtBlockIDRequest)) @@ -202,7 +210,7 @@ func _ExecutionAPI_GetEventsForBlockIDs_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/execution.ExecutionAPI/GetEventsForBlockIDs", + FullMethod: ExecutionAPI_GetEventsForBlockIDs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetEventsForBlockIDs(ctx, req.(*GetEventsForBlockIDsRequest)) @@ -220,7 +228,7 @@ func _ExecutionAPI_GetTransactionResult_Handler(srv interface{}, ctx context.Con } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/execution.ExecutionAPI/GetTransactionResult", + FullMethod: ExecutionAPI_GetTransactionResult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ExecutionAPIServer).GetTransactionResult(ctx, req.(*GetTransactionResultRequest)) From aeb0fd58c18cb0cfdd368ed2804cce451234bdf4 Mon Sep 17 00:00:00 2001 From: Peter Argue <89119817+peterargue@users.noreply.github.com> Date: Fri, 29 Mar 2024 06:53:42 -0700 Subject: [PATCH 36/36] update data availability sprint 2024-03-29 --- .../2024-03-29-Flow-Sprint-Kickoff.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md index 4942ab608..890061f68 100644 --- a/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md +++ b/agendas/2024/sprint-kickoff/2024-03-29-Flow-Sprint-Kickoff.md @@ -6,6 +6,7 @@ - Emulator state migration of NFT example to Cadence 1.0 finally successful! - Successfully bootstrapped and run TN Migration environment from TN stated migrated to Cadence 1.0 (Fixed [issue with epoch contract](https://github.com/onflow/flow-core-contracts/pull/413) that caused ENs on migration network to hog CPU) - [New CLI released](https://github.com/onflow/flow-cli/releases/tag/v1.15.0-cadence-v1.0.0-preview.14) with updated Cadence 1.0 (preview 18), supporting testig of contract upgrade to C1.0. +- Finished deploying local events APIs on mainnet (FF/Dapper/QN). 50% reduction in event queries handled by ENs ### General updates @@ -220,6 +221,17 @@ Cycle Objective(s): * Consensus speedup: - completed analysis ([notion](https://www.notion.so/flowfoundation/Cruise-Control-headroom-for-speedups-46dc17e07ae14462b03341e4432a907d?pvs=4)) + +* Data Availability: + - Completed rollout of local events to all QuickNode/FF/Dapper ANs + - Completed testing of local tx results on TN & MN and deployed to 2 nodes on each network + - Fix discarded event encoding ([PR #5582](https://github.com/onflow/flow-go/pull/5582)) + - Added support for CPU Profiles in admin server ([PR #5545](https://github.com/onflow/flow-go/pull/5545)) + - KROK Team + - Add streaming SendAndSubscribe for tx ([PR #5310](https://github.com/onflow/flow-go/pull/5310)) + - Add standard Access API implementations on Observer ([PR #5358](https://github.com/onflow/flow-go/pull/5358)) + - Benchmark testing and analysis of execution data indexing on Observers ([PR #4849](https://github.com/onflow/flow-go/issues/4849)) + **This sprint** * Zero-downtime Upgrades of Node Software: @@ -239,6 +251,18 @@ Cycle Objective(s): - continue on CPU-compatability issue - extra build docs in all repos + +* Data Availability: + - Rollout local tx results to QuickNode ANs + - Work with QN to get profile collection deployed - support debugging script exec + - Enable programs cache on AN (Continue [PR #5585](https://github.com/onflow/flow-go/pull/5585) and testing) + - KROK Team + - Complete streaming account statuses endpoint ([PR #5406](https://github.com/onflow/flow-go/pull/5406)) + - Add tx results to streaming SendAndSubscribe response ([PR #5566](https://github.com/onflow/flow-go/issues/5566)) + - Unify Events API with new interfaces ([Issue #5557](https://github.com/onflow/flow-go/issues/5557)) + - Add integration tests for streaming blocks and observer APIs ([PR #5572](https://github.com/onflow/flow-go/issues/5572), [PR #5573](https://github.com/onflow/flow-go/issues/5573)) + + **On Hold** * Deliver public roadmap & vision for technical protocol decentralization focusing on current challenges and upcoming updates for permissionless consensus on Flow. * Implement BFT mitigations to enable 20 permissionless ANs