Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterExecutionServiceServer(s grpc.ServiceRegistrar, srv ExecutionServiceServer)
- type ExecutionServiceClient
- type ExecutionServiceServer
- type UnimplementedExecutionServiceServer
- func (UnimplementedExecutionServiceServer) BatchGetBlocks(context.Context, *v1alpha2.BatchGetBlocksRequest) (*v1alpha2.BatchGetBlocksResponse, error)
- func (UnimplementedExecutionServiceServer) ExecuteBlock(context.Context, *v1alpha2.ExecuteBlockRequest) (*v1alpha2.Block, error)
- func (UnimplementedExecutionServiceServer) GetBlock(context.Context, *v1alpha2.GetBlockRequest) (*v1alpha2.Block, error)
- func (UnimplementedExecutionServiceServer) GetCommitmentState(context.Context, *v1alpha2.GetCommitmentStateRequest) (*v1alpha2.CommitmentState, error)
- func (UnimplementedExecutionServiceServer) GetGenesisInfo(context.Context, *v1alpha2.GetGenesisInfoRequest) (*v1alpha2.GenesisInfo, error)
- func (UnimplementedExecutionServiceServer) UpdateCommitmentState(context.Context, *v1alpha2.UpdateCommitmentStateRequest) (*v1alpha2.CommitmentState, error)
- type UnsafeExecutionServiceServer
Constants ¶
const ( ExecutionService_GetGenesisInfo_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/GetGenesisInfo" ExecutionService_GetBlock_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/GetBlock" ExecutionService_BatchGetBlocks_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/BatchGetBlocks" ExecutionService_ExecuteBlock_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/ExecuteBlock" ExecutionService_GetCommitmentState_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/GetCommitmentState" ExecutionService_UpdateCommitmentState_FullMethodName = "/astria.execution.v1alpha2.ExecutionService/UpdateCommitmentState" )
Variables ¶
var ExecutionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "astria.execution.v1alpha2.ExecutionService", HandlerType: (*ExecutionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetGenesisInfo", Handler: _ExecutionService_GetGenesisInfo_Handler, }, { MethodName: "GetBlock", Handler: _ExecutionService_GetBlock_Handler, }, { MethodName: "BatchGetBlocks", Handler: _ExecutionService_BatchGetBlocks_Handler, }, { MethodName: "ExecuteBlock", Handler: _ExecutionService_ExecuteBlock_Handler, }, { MethodName: "GetCommitmentState", Handler: _ExecutionService_GetCommitmentState_Handler, }, { MethodName: "UpdateCommitmentState", Handler: _ExecutionService_UpdateCommitmentState_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "astria/execution/v1alpha2/execution.proto", }
ExecutionService_ServiceDesc is the grpc.ServiceDesc for ExecutionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterExecutionServiceServer ¶
func RegisterExecutionServiceServer(s grpc.ServiceRegistrar, srv ExecutionServiceServer)
Types ¶
type ExecutionServiceClient ¶
type ExecutionServiceClient interface { // GetGenesisInfo returns the necessary genesis information for rollup chain. GetGenesisInfo(ctx context.Context, in *v1alpha2.GetGenesisInfoRequest, opts ...grpc.CallOption) (*v1alpha2.GenesisInfo, error) // GetBlock will return a block given an identifier. GetBlock(ctx context.Context, in *v1alpha2.GetBlockRequest, opts ...grpc.CallOption) (*v1alpha2.Block, error) // BatchGetBlocks will return an array of Blocks given an array of block // identifiers. BatchGetBlocks(ctx context.Context, in *v1alpha2.BatchGetBlocksRequest, opts ...grpc.CallOption) (*v1alpha2.BatchGetBlocksResponse, error) // ExecuteBlock is called to deterministically derive a rollup block from // filtered sequencer block information. ExecuteBlock(ctx context.Context, in *v1alpha2.ExecuteBlockRequest, opts ...grpc.CallOption) (*v1alpha2.Block, error) // GetCommitmentState fetches the current CommitmentState of the chain. GetCommitmentState(ctx context.Context, in *v1alpha2.GetCommitmentStateRequest, opts ...grpc.CallOption) (*v1alpha2.CommitmentState, error) // UpdateCommitmentState replaces the whole CommitmentState with a new // CommitmentState. UpdateCommitmentState(ctx context.Context, in *v1alpha2.UpdateCommitmentStateRequest, opts ...grpc.CallOption) (*v1alpha2.CommitmentState, error) }
ExecutionServiceClient is the client API for ExecutionService 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.
func NewExecutionServiceClient ¶
func NewExecutionServiceClient(cc grpc.ClientConnInterface) ExecutionServiceClient
type ExecutionServiceServer ¶
type ExecutionServiceServer interface { // GetGenesisInfo returns the necessary genesis information for rollup chain. GetGenesisInfo(context.Context, *v1alpha2.GetGenesisInfoRequest) (*v1alpha2.GenesisInfo, error) // GetBlock will return a block given an identifier. GetBlock(context.Context, *v1alpha2.GetBlockRequest) (*v1alpha2.Block, error) // BatchGetBlocks will return an array of Blocks given an array of block // identifiers. BatchGetBlocks(context.Context, *v1alpha2.BatchGetBlocksRequest) (*v1alpha2.BatchGetBlocksResponse, error) // ExecuteBlock is called to deterministically derive a rollup block from // filtered sequencer block information. ExecuteBlock(context.Context, *v1alpha2.ExecuteBlockRequest) (*v1alpha2.Block, error) // GetCommitmentState fetches the current CommitmentState of the chain. GetCommitmentState(context.Context, *v1alpha2.GetCommitmentStateRequest) (*v1alpha2.CommitmentState, error) // UpdateCommitmentState replaces the whole CommitmentState with a new // CommitmentState. UpdateCommitmentState(context.Context, *v1alpha2.UpdateCommitmentStateRequest) (*v1alpha2.CommitmentState, error) }
ExecutionServiceServer is the server API for ExecutionService service. All implementations should embed UnimplementedExecutionServiceServer for forward compatibility
type UnimplementedExecutionServiceServer ¶
type UnimplementedExecutionServiceServer struct { }
UnimplementedExecutionServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedExecutionServiceServer) BatchGetBlocks ¶
func (UnimplementedExecutionServiceServer) BatchGetBlocks(context.Context, *v1alpha2.BatchGetBlocksRequest) (*v1alpha2.BatchGetBlocksResponse, error)
func (UnimplementedExecutionServiceServer) ExecuteBlock ¶
func (UnimplementedExecutionServiceServer) ExecuteBlock(context.Context, *v1alpha2.ExecuteBlockRequest) (*v1alpha2.Block, error)
func (UnimplementedExecutionServiceServer) GetBlock ¶
func (UnimplementedExecutionServiceServer) GetBlock(context.Context, *v1alpha2.GetBlockRequest) (*v1alpha2.Block, error)
func (UnimplementedExecutionServiceServer) GetCommitmentState ¶
func (UnimplementedExecutionServiceServer) GetCommitmentState(context.Context, *v1alpha2.GetCommitmentStateRequest) (*v1alpha2.CommitmentState, error)
func (UnimplementedExecutionServiceServer) GetGenesisInfo ¶
func (UnimplementedExecutionServiceServer) GetGenesisInfo(context.Context, *v1alpha2.GetGenesisInfoRequest) (*v1alpha2.GenesisInfo, error)
func (UnimplementedExecutionServiceServer) UpdateCommitmentState ¶
func (UnimplementedExecutionServiceServer) UpdateCommitmentState(context.Context, *v1alpha2.UpdateCommitmentStateRequest) (*v1alpha2.CommitmentState, error)
type UnsafeExecutionServiceServer ¶
type UnsafeExecutionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeExecutionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExecutionServiceServer will result in compilation errors.