spacemeshv2alpha1

package
v1.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 18 Imported by: 1

Documentation

Overview

Package spacemeshv2alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package spacemeshv2alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package spacemeshv2alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package spacemeshv2alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package spacemeshv2alpha1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ActivationService_List_FullMethodName             = "/spacemesh.v2alpha1.ActivationService/List"
	ActivationService_ActivationsCount_FullMethodName = "/spacemesh.v2alpha1.ActivationService/ActivationsCount"
)
View Source
const (
	ActivationStreamService_Stream_FullMethodName = "/spacemesh.v2alpha1.ActivationStreamService/Stream"
)
View Source
const (
	LayerService_List_FullMethodName = "/spacemesh.v2alpha1.LayerService/List"
)
View Source
const (
	LayerStreamService_Stream_FullMethodName = "/spacemesh.v2alpha1.LayerStreamService/Stream"
)
View Source
const (
	NetworkService_Info_FullMethodName = "/spacemesh.v2alpha1.NetworkService/Info"
)
View Source
const (
	NodeService_Status_FullMethodName = "/spacemesh.v2alpha1.NodeService/Status"
)
View Source
const (
	RewardService_List_FullMethodName = "/spacemesh.v2alpha1.RewardService/List"
)
View Source
const (
	RewardStreamService_Stream_FullMethodName = "/spacemesh.v2alpha1.RewardStreamService/Stream"
)

Variables

View Source
var (
	LayerV1_LayerStatus_name = map[int32]string{
		0: "LAYER_STATUS_UNSPECIFIED",
		1: "LAYER_STATUS_APPLIED",
		2: "LAYER_STATUS_VERIFIED",
	}
	LayerV1_LayerStatus_value = map[string]int32{
		"LAYER_STATUS_UNSPECIFIED": 0,
		"LAYER_STATUS_APPLIED":     1,
		"LAYER_STATUS_VERIFIED":    2,
	}
)

Enum value maps for LayerV1_LayerStatus.

View Source
var (
	NodeStatusResponse_SyncStatus_name = map[int32]string{
		0: "SYNC_STATUS_UNSPECIFIED",
		1: "SYNC_STATUS_OFFLINE",
		2: "SYNC_STATUS_SYNCING",
		3: "SYNC_STATUS_SYNCED",
	}
	NodeStatusResponse_SyncStatus_value = map[string]int32{
		"SYNC_STATUS_UNSPECIFIED": 0,
		"SYNC_STATUS_OFFLINE":     1,
		"SYNC_STATUS_SYNCING":     2,
		"SYNC_STATUS_SYNCED":      3,
	}
)

Enum value maps for NodeStatusResponse_SyncStatus.

View Source
var (
	TransactionV1_TransactionType_name = map[int32]string{
		0: "TRANSACTION_TYPE_UNSPECIFIED",
		1: "TRANSACTION_TYPE_SINGLE_SIG_SEND",
		2: "TRANSACTION_TYPE_SINGLE_SIG_SPAWN",
		3: "TRANSACTION_TYPE_SINGLE_SIG_SELFSPAWN",
		4: "TRANSACTION_TYPE_MULTI_SIG_SEND",
		5: "TRANSACTION_TYPE_MULTI_SIG_SPAWN",
		6: "TRANSACTION_TYPE_MULTI_SIG_SELFSPAWN",
	}
	TransactionV1_TransactionType_value = map[string]int32{
		"TRANSACTION_TYPE_UNSPECIFIED":          0,
		"TRANSACTION_TYPE_SINGLE_SIG_SEND":      1,
		"TRANSACTION_TYPE_SINGLE_SIG_SPAWN":     2,
		"TRANSACTION_TYPE_SINGLE_SIG_SELFSPAWN": 3,
		"TRANSACTION_TYPE_MULTI_SIG_SEND":       4,
		"TRANSACTION_TYPE_MULTI_SIG_SPAWN":      5,
		"TRANSACTION_TYPE_MULTI_SIG_SELFSPAWN":  6,
	}
)

Enum value maps for TransactionV1_TransactionType.

View Source
var ActivationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.ActivationService",
	HandlerType: (*ActivationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _ActivationService_List_Handler,
		},
		{
			MethodName: "ActivationsCount",
			Handler:    _ActivationService_ActivationsCount_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacemesh/v2alpha1/activation.proto",
}

ActivationService_ServiceDesc is the grpc.ServiceDesc for ActivationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ActivationStreamService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.ActivationStreamService",
	HandlerType: (*ActivationStreamServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _ActivationStreamService_Stream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "spacemesh/v2alpha1/activation.proto",
}

ActivationStreamService_ServiceDesc is the grpc.ServiceDesc for ActivationStreamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_spacemesh_v2alpha1_activation_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_block_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_layer_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_network_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_node_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_reward_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v2alpha1_tx_proto protoreflect.FileDescriptor
View Source
var LayerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.LayerService",
	HandlerType: (*LayerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _LayerService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacemesh/v2alpha1/layer.proto",
}

LayerService_ServiceDesc is the grpc.ServiceDesc for LayerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var LayerStreamService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.LayerStreamService",
	HandlerType: (*LayerStreamServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _LayerStreamService_Stream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "spacemesh/v2alpha1/layer.proto",
}

LayerStreamService_ServiceDesc is the grpc.ServiceDesc for LayerStreamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var NetworkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.NetworkService",
	HandlerType: (*NetworkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Info",
			Handler:    _NetworkService_Info_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacemesh/v2alpha1/network.proto",
}

NetworkService_ServiceDesc is the grpc.ServiceDesc for NetworkService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var NodeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.NodeService",
	HandlerType: (*NodeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Status",
			Handler:    _NodeService_Status_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacemesh/v2alpha1/node.proto",
}

NodeService_ServiceDesc is the grpc.ServiceDesc for NodeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var RewardService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.RewardService",
	HandlerType: (*RewardServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _RewardService_List_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "spacemesh/v2alpha1/reward.proto",
}

RewardService_ServiceDesc is the grpc.ServiceDesc for RewardService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var RewardStreamService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "spacemesh.v2alpha1.RewardStreamService",
	HandlerType: (*RewardStreamServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _RewardStreamService_Stream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "spacemesh/v2alpha1/reward.proto",
}

RewardStreamService_ServiceDesc is the grpc.ServiceDesc for RewardStreamService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterActivationServiceHandler

func RegisterActivationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterActivationServiceHandler registers the http handlers for service ActivationService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterActivationServiceHandlerClient

func RegisterActivationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActivationServiceClient) error

RegisterActivationServiceHandlerClient registers the http handlers for service ActivationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActivationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActivationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ActivationServiceClient" to call the correct interceptors.

func RegisterActivationServiceHandlerFromEndpoint

func RegisterActivationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterActivationServiceHandlerFromEndpoint is same as RegisterActivationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterActivationServiceHandlerServer

func RegisterActivationServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActivationServiceServer) error

RegisterActivationServiceHandlerServer registers the http handlers for service ActivationService to "mux". UnaryRPC :call ActivationServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActivationServiceHandlerFromEndpoint instead.

func RegisterActivationServiceServer

func RegisterActivationServiceServer(s grpc.ServiceRegistrar, srv ActivationServiceServer)

func RegisterActivationStreamServiceHandler

func RegisterActivationStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterActivationStreamServiceHandler registers the http handlers for service ActivationStreamService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterActivationStreamServiceHandlerClient

func RegisterActivationStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ActivationStreamServiceClient) error

RegisterActivationStreamServiceHandlerClient registers the http handlers for service ActivationStreamService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActivationStreamServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActivationStreamServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ActivationStreamServiceClient" to call the correct interceptors.

func RegisterActivationStreamServiceHandlerFromEndpoint

func RegisterActivationStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterActivationStreamServiceHandlerFromEndpoint is same as RegisterActivationStreamServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterActivationStreamServiceHandlerServer

func RegisterActivationStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ActivationStreamServiceServer) error

RegisterActivationStreamServiceHandlerServer registers the http handlers for service ActivationStreamService to "mux". UnaryRPC :call ActivationStreamServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterActivationStreamServiceHandlerFromEndpoint instead.

func RegisterActivationStreamServiceServer

func RegisterActivationStreamServiceServer(s grpc.ServiceRegistrar, srv ActivationStreamServiceServer)

func RegisterLayerServiceHandler added in v1.39.0

func RegisterLayerServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLayerServiceHandler registers the http handlers for service LayerService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLayerServiceHandlerClient added in v1.39.0

func RegisterLayerServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LayerServiceClient) error

RegisterLayerServiceHandlerClient registers the http handlers for service LayerService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LayerServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LayerServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LayerServiceClient" to call the correct interceptors.

func RegisterLayerServiceHandlerFromEndpoint added in v1.39.0

func RegisterLayerServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLayerServiceHandlerFromEndpoint is same as RegisterLayerServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLayerServiceHandlerServer added in v1.39.0

func RegisterLayerServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LayerServiceServer) error

RegisterLayerServiceHandlerServer registers the http handlers for service LayerService to "mux". UnaryRPC :call LayerServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLayerServiceHandlerFromEndpoint instead.

func RegisterLayerServiceServer added in v1.39.0

func RegisterLayerServiceServer(s grpc.ServiceRegistrar, srv LayerServiceServer)

func RegisterLayerStreamServiceHandler added in v1.39.0

func RegisterLayerStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLayerStreamServiceHandler registers the http handlers for service LayerStreamService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLayerStreamServiceHandlerClient added in v1.39.0

func RegisterLayerStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LayerStreamServiceClient) error

RegisterLayerStreamServiceHandlerClient registers the http handlers for service LayerStreamService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LayerStreamServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LayerStreamServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LayerStreamServiceClient" to call the correct interceptors.

func RegisterLayerStreamServiceHandlerFromEndpoint added in v1.39.0

func RegisterLayerStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLayerStreamServiceHandlerFromEndpoint is same as RegisterLayerStreamServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLayerStreamServiceHandlerServer added in v1.39.0

func RegisterLayerStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LayerStreamServiceServer) error

RegisterLayerStreamServiceHandlerServer registers the http handlers for service LayerStreamService to "mux". UnaryRPC :call LayerStreamServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLayerStreamServiceHandlerFromEndpoint instead.

func RegisterLayerStreamServiceServer added in v1.39.0

func RegisterLayerStreamServiceServer(s grpc.ServiceRegistrar, srv LayerStreamServiceServer)

func RegisterNetworkServiceHandler added in v1.35.0

func RegisterNetworkServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNetworkServiceHandler registers the http handlers for service NetworkService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNetworkServiceHandlerClient added in v1.35.0

func RegisterNetworkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkServiceClient) error

RegisterNetworkServiceHandlerClient registers the http handlers for service NetworkService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetworkServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetworkServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetworkServiceClient" to call the correct interceptors.

func RegisterNetworkServiceHandlerFromEndpoint added in v1.35.0

func RegisterNetworkServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNetworkServiceHandlerFromEndpoint is same as RegisterNetworkServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNetworkServiceHandlerServer added in v1.35.0

func RegisterNetworkServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkServiceServer) error

RegisterNetworkServiceHandlerServer registers the http handlers for service NetworkService to "mux". UnaryRPC :call NetworkServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetworkServiceHandlerFromEndpoint instead.

func RegisterNetworkServiceServer added in v1.35.0

func RegisterNetworkServiceServer(s grpc.ServiceRegistrar, srv NetworkServiceServer)

func RegisterNodeServiceHandler added in v1.36.0

func RegisterNodeServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterNodeServiceHandler registers the http handlers for service NodeService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterNodeServiceHandlerClient added in v1.36.0

func RegisterNodeServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NodeServiceClient) error

RegisterNodeServiceHandlerClient registers the http handlers for service NodeService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NodeServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NodeServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NodeServiceClient" to call the correct interceptors.

func RegisterNodeServiceHandlerFromEndpoint added in v1.36.0

func RegisterNodeServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterNodeServiceHandlerFromEndpoint is same as RegisterNodeServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterNodeServiceHandlerServer added in v1.36.0

func RegisterNodeServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NodeServiceServer) error

RegisterNodeServiceHandlerServer registers the http handlers for service NodeService to "mux". UnaryRPC :call NodeServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNodeServiceHandlerFromEndpoint instead.

func RegisterNodeServiceServer added in v1.36.0

func RegisterNodeServiceServer(s grpc.ServiceRegistrar, srv NodeServiceServer)

func RegisterRewardServiceHandler added in v1.30.0

func RegisterRewardServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRewardServiceHandler registers the http handlers for service RewardService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRewardServiceHandlerClient added in v1.30.0

func RegisterRewardServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RewardServiceClient) error

RegisterRewardServiceHandlerClient registers the http handlers for service RewardService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RewardServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RewardServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RewardServiceClient" to call the correct interceptors.

func RegisterRewardServiceHandlerFromEndpoint added in v1.30.0

func RegisterRewardServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRewardServiceHandlerFromEndpoint is same as RegisterRewardServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRewardServiceHandlerServer added in v1.30.0

func RegisterRewardServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RewardServiceServer) error

RegisterRewardServiceHandlerServer registers the http handlers for service RewardService to "mux". UnaryRPC :call RewardServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRewardServiceHandlerFromEndpoint instead.

func RegisterRewardServiceServer added in v1.30.0

func RegisterRewardServiceServer(s grpc.ServiceRegistrar, srv RewardServiceServer)

func RegisterRewardStreamServiceHandler added in v1.30.0

func RegisterRewardStreamServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterRewardStreamServiceHandler registers the http handlers for service RewardStreamService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterRewardStreamServiceHandlerClient added in v1.30.0

func RegisterRewardStreamServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RewardStreamServiceClient) error

RegisterRewardStreamServiceHandlerClient registers the http handlers for service RewardStreamService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RewardStreamServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RewardStreamServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RewardStreamServiceClient" to call the correct interceptors.

func RegisterRewardStreamServiceHandlerFromEndpoint added in v1.30.0

func RegisterRewardStreamServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterRewardStreamServiceHandlerFromEndpoint is same as RegisterRewardStreamServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterRewardStreamServiceHandlerServer added in v1.30.0

func RegisterRewardStreamServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RewardStreamServiceServer) error

RegisterRewardStreamServiceHandlerServer registers the http handlers for service RewardStreamService to "mux". UnaryRPC :call RewardStreamServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterRewardStreamServiceHandlerFromEndpoint instead.

func RegisterRewardStreamServiceServer added in v1.30.0

func RegisterRewardStreamServiceServer(s grpc.ServiceRegistrar, srv RewardStreamServiceServer)

Types

type Activation

type Activation struct {

	// Types that are assignable to Versioned:
	//
	//	*Activation_V1
	Versioned isActivation_Versioned `protobuf_oneof:"versioned"`
	// contains filtered or unexported fields
}

func (*Activation) Descriptor deprecated

func (*Activation) Descriptor() ([]byte, []int)

Deprecated: Use Activation.ProtoReflect.Descriptor instead.

func (*Activation) GetV1

func (x *Activation) GetV1() *ActivationV1

func (*Activation) GetVersioned

func (m *Activation) GetVersioned() isActivation_Versioned

func (*Activation) ProtoMessage

func (*Activation) ProtoMessage()

func (*Activation) ProtoReflect

func (x *Activation) ProtoReflect() protoreflect.Message

func (*Activation) Reset

func (x *Activation) Reset()

func (*Activation) String

func (x *Activation) String() string

type ActivationList

type ActivationList struct {
	Activations []*Activation `protobuf:"bytes,1,rep,name=activations,proto3" json:"activations,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationList) Descriptor deprecated

func (*ActivationList) Descriptor() ([]byte, []int)

Deprecated: Use ActivationList.ProtoReflect.Descriptor instead.

func (*ActivationList) GetActivations

func (x *ActivationList) GetActivations() []*Activation

func (*ActivationList) ProtoMessage

func (*ActivationList) ProtoMessage()

func (*ActivationList) ProtoReflect

func (x *ActivationList) ProtoReflect() protoreflect.Message

func (*ActivationList) Reset

func (x *ActivationList) Reset()

func (*ActivationList) String

func (x *ActivationList) String() string

type ActivationRequest

type ActivationRequest struct {
	StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` // Apply `start_epoch/end_epoch` filters together with `coinbase` filter for better performance.
	EndEpoch   uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"`
	Id         []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	NodeId     []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Coinbase   string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // `coinbase` filter is not supported by database index and will result in sequential scan.
	Offset     uint64 `protobuf:"varint,6,opt,name=offset,proto3" json:"offset,omitempty"`
	Limit      uint64 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationRequest) Descriptor deprecated

func (*ActivationRequest) Descriptor() ([]byte, []int)

Deprecated: Use ActivationRequest.ProtoReflect.Descriptor instead.

func (*ActivationRequest) GetCoinbase

func (x *ActivationRequest) GetCoinbase() string

func (*ActivationRequest) GetEndEpoch

func (x *ActivationRequest) GetEndEpoch() uint32

func (*ActivationRequest) GetId

func (x *ActivationRequest) GetId() []byte

func (*ActivationRequest) GetLimit

func (x *ActivationRequest) GetLimit() uint64

func (*ActivationRequest) GetNodeId

func (x *ActivationRequest) GetNodeId() []byte

func (*ActivationRequest) GetOffset

func (x *ActivationRequest) GetOffset() uint64

func (*ActivationRequest) GetStartEpoch

func (x *ActivationRequest) GetStartEpoch() uint32

func (*ActivationRequest) ProtoMessage

func (*ActivationRequest) ProtoMessage()

func (*ActivationRequest) ProtoReflect

func (x *ActivationRequest) ProtoReflect() protoreflect.Message

func (*ActivationRequest) Reset

func (x *ActivationRequest) Reset()

func (*ActivationRequest) String

func (x *ActivationRequest) String() string

type ActivationServiceClient

type ActivationServiceClient interface {
	List(ctx context.Context, in *ActivationRequest, opts ...grpc.CallOption) (*ActivationList, error)
	ActivationsCount(ctx context.Context, in *ActivationsCountRequest, opts ...grpc.CallOption) (*ActivationsCountResponse, error)
}

ActivationServiceClient is the client API for ActivationService 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.

type ActivationServiceServer

type ActivationServiceServer interface {
	List(context.Context, *ActivationRequest) (*ActivationList, error)
	ActivationsCount(context.Context, *ActivationsCountRequest) (*ActivationsCountResponse, error)
}

ActivationServiceServer is the server API for ActivationService service. All implementations should embed UnimplementedActivationServiceServer for forward compatibility

type ActivationStreamRequest

type ActivationStreamRequest struct {
	StartEpoch uint32 `protobuf:"varint,1,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` // Apply `start_epoch/end_epoch` filters together with `coinbase` filter for better performance.
	EndEpoch   uint32 `protobuf:"varint,2,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"`
	Id         []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	NodeId     []byte `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	Coinbase   string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // `coinbase` filter is not supported by database index and will result in sequential scan.
	Watch      bool   `protobuf:"varint,6,opt,name=watch,proto3" json:"watch,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationStreamRequest) Descriptor deprecated

func (*ActivationStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use ActivationStreamRequest.ProtoReflect.Descriptor instead.

func (*ActivationStreamRequest) GetCoinbase

func (x *ActivationStreamRequest) GetCoinbase() string

func (*ActivationStreamRequest) GetEndEpoch

func (x *ActivationStreamRequest) GetEndEpoch() uint32

func (*ActivationStreamRequest) GetId

func (x *ActivationStreamRequest) GetId() []byte

func (*ActivationStreamRequest) GetNodeId

func (x *ActivationStreamRequest) GetNodeId() []byte

func (*ActivationStreamRequest) GetStartEpoch

func (x *ActivationStreamRequest) GetStartEpoch() uint32

func (*ActivationStreamRequest) GetWatch

func (x *ActivationStreamRequest) GetWatch() bool

func (*ActivationStreamRequest) ProtoMessage

func (*ActivationStreamRequest) ProtoMessage()

func (*ActivationStreamRequest) ProtoReflect

func (x *ActivationStreamRequest) ProtoReflect() protoreflect.Message

func (*ActivationStreamRequest) Reset

func (x *ActivationStreamRequest) Reset()

func (*ActivationStreamRequest) String

func (x *ActivationStreamRequest) String() string

type ActivationStreamServiceClient

type ActivationStreamServiceClient interface {
	Stream(ctx context.Context, in *ActivationStreamRequest, opts ...grpc.CallOption) (ActivationStreamService_StreamClient, error)
}

ActivationStreamServiceClient is the client API for ActivationStreamService 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.

type ActivationStreamServiceServer

type ActivationStreamServiceServer interface {
	Stream(*ActivationStreamRequest, ActivationStreamService_StreamServer) error
}

ActivationStreamServiceServer is the server API for ActivationStreamService service. All implementations should embed UnimplementedActivationStreamServiceServer for forward compatibility

type ActivationStreamService_StreamClient

type ActivationStreamService_StreamClient interface {
	Recv() (*Activation, error)
	grpc.ClientStream
}

type ActivationStreamService_StreamServer

type ActivationStreamService_StreamServer interface {
	Send(*Activation) error
	grpc.ServerStream
}

type ActivationV1

type ActivationV1 struct {
	Id           []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	SmesherId    []byte `protobuf:"bytes,2,opt,name=smesher_id,json=smesherId,proto3" json:"smesher_id,omitempty"`
	Signature    []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	PublishEpoch uint32 `protobuf:"varint,4,opt,name=publish_epoch,json=publishEpoch,proto3" json:"publish_epoch,omitempty"`
	PreviousAtx  []byte `protobuf:"bytes,5,opt,name=previous_atx,json=previousAtx,proto3" json:"previous_atx,omitempty"`
	Coinbase     string `protobuf:"bytes,6,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	Weight       uint64 `protobuf:"varint,7,opt,name=weight,proto3" json:"weight,omitempty"`
	Height       uint64 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationV1) Descriptor deprecated

func (*ActivationV1) Descriptor() ([]byte, []int)

Deprecated: Use ActivationV1.ProtoReflect.Descriptor instead.

func (*ActivationV1) GetCoinbase

func (x *ActivationV1) GetCoinbase() string

func (*ActivationV1) GetHeight added in v1.37.0

func (x *ActivationV1) GetHeight() uint64

func (*ActivationV1) GetId

func (x *ActivationV1) GetId() []byte

func (*ActivationV1) GetPreviousAtx

func (x *ActivationV1) GetPreviousAtx() []byte

func (*ActivationV1) GetPublishEpoch

func (x *ActivationV1) GetPublishEpoch() uint32

func (*ActivationV1) GetSignature

func (x *ActivationV1) GetSignature() []byte

func (*ActivationV1) GetSmesherId added in v1.37.0

func (x *ActivationV1) GetSmesherId() []byte

func (*ActivationV1) GetWeight added in v1.37.0

func (x *ActivationV1) GetWeight() uint64

func (*ActivationV1) ProtoMessage

func (*ActivationV1) ProtoMessage()

func (*ActivationV1) ProtoReflect

func (x *ActivationV1) ProtoReflect() protoreflect.Message

func (*ActivationV1) Reset

func (x *ActivationV1) Reset()

func (*ActivationV1) String

func (x *ActivationV1) String() string

type Activation_V1

type Activation_V1 struct {
	V1 *ActivationV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type ActivationsCountRequest

type ActivationsCountRequest struct {
	Epoch *uint32 `protobuf:"varint,1,opt,name=epoch,proto3,oneof" json:"epoch,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationsCountRequest) Descriptor deprecated

func (*ActivationsCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use ActivationsCountRequest.ProtoReflect.Descriptor instead.

func (*ActivationsCountRequest) GetEpoch

func (x *ActivationsCountRequest) GetEpoch() uint32

func (*ActivationsCountRequest) ProtoMessage

func (*ActivationsCountRequest) ProtoMessage()

func (*ActivationsCountRequest) ProtoReflect

func (x *ActivationsCountRequest) ProtoReflect() protoreflect.Message

func (*ActivationsCountRequest) Reset

func (x *ActivationsCountRequest) Reset()

func (*ActivationsCountRequest) String

func (x *ActivationsCountRequest) String() string

type ActivationsCountResponse

type ActivationsCountResponse struct {
	Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*ActivationsCountResponse) Descriptor deprecated

func (*ActivationsCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use ActivationsCountResponse.ProtoReflect.Descriptor instead.

func (*ActivationsCountResponse) GetCount

func (x *ActivationsCountResponse) GetCount() uint32

func (*ActivationsCountResponse) ProtoMessage

func (*ActivationsCountResponse) ProtoMessage()

func (*ActivationsCountResponse) ProtoReflect

func (x *ActivationsCountResponse) ProtoReflect() protoreflect.Message

func (*ActivationsCountResponse) Reset

func (x *ActivationsCountResponse) Reset()

func (*ActivationsCountResponse) String

func (x *ActivationsCountResponse) String() string

type Block added in v1.39.0

type Block struct {

	// Types that are assignable to Versioned:
	//
	//	*Block_V1
	Versioned isBlock_Versioned `protobuf_oneof:"versioned"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated added in v1.39.0

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetV1 added in v1.39.0

func (x *Block) GetV1() *BlockV1

func (*Block) GetVersioned added in v1.39.0

func (m *Block) GetVersioned() isBlock_Versioned

func (*Block) ProtoMessage added in v1.39.0

func (*Block) ProtoMessage()

func (*Block) ProtoReflect added in v1.39.0

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset added in v1.39.0

func (x *Block) Reset()

func (*Block) String added in v1.39.0

func (x *Block) String() string

type BlockV1 added in v1.39.0

type BlockV1 struct {
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // block hash
	// contains filtered or unexported fields
}

func (*BlockV1) Descriptor deprecated added in v1.39.0

func (*BlockV1) Descriptor() ([]byte, []int)

Deprecated: Use BlockV1.ProtoReflect.Descriptor instead.

func (*BlockV1) GetId added in v1.39.0

func (x *BlockV1) GetId() []byte

func (*BlockV1) ProtoMessage added in v1.39.0

func (*BlockV1) ProtoMessage()

func (*BlockV1) ProtoReflect added in v1.39.0

func (x *BlockV1) ProtoReflect() protoreflect.Message

func (*BlockV1) Reset added in v1.39.0

func (x *BlockV1) Reset()

func (*BlockV1) String added in v1.39.0

func (x *BlockV1) String() string

type Block_V1 added in v1.39.0

type Block_V1 struct {
	V1 *BlockV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type ContentsMultiSigSpawn added in v1.39.0

type ContentsMultiSigSpawn struct {
	Required uint32   `protobuf:"varint,1,opt,name=required,proto3" json:"required,omitempty"` // number of required signatures
	Pubkey   []string `protobuf:"bytes,2,rep,name=pubkey,proto3" json:"pubkey,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentsMultiSigSpawn) Descriptor deprecated added in v1.39.0

func (*ContentsMultiSigSpawn) Descriptor() ([]byte, []int)

Deprecated: Use ContentsMultiSigSpawn.ProtoReflect.Descriptor instead.

func (*ContentsMultiSigSpawn) GetPubkey added in v1.39.0

func (x *ContentsMultiSigSpawn) GetPubkey() []string

func (*ContentsMultiSigSpawn) GetRequired added in v1.39.0

func (x *ContentsMultiSigSpawn) GetRequired() uint32

func (*ContentsMultiSigSpawn) ProtoMessage added in v1.39.0

func (*ContentsMultiSigSpawn) ProtoMessage()

func (*ContentsMultiSigSpawn) ProtoReflect added in v1.39.0

func (x *ContentsMultiSigSpawn) ProtoReflect() protoreflect.Message

func (*ContentsMultiSigSpawn) Reset added in v1.39.0

func (x *ContentsMultiSigSpawn) Reset()

func (*ContentsMultiSigSpawn) String added in v1.39.0

func (x *ContentsMultiSigSpawn) String() string

type ContentsSend added in v1.39.0

type ContentsSend struct {
	Destination string `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` // recipient account
	Amount      uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`          // amount in smidge
	// contains filtered or unexported fields
}

func (*ContentsSend) Descriptor deprecated added in v1.39.0

func (*ContentsSend) Descriptor() ([]byte, []int)

Deprecated: Use ContentsSend.ProtoReflect.Descriptor instead.

func (*ContentsSend) GetAmount added in v1.39.0

func (x *ContentsSend) GetAmount() uint64

func (*ContentsSend) GetDestination added in v1.39.0

func (x *ContentsSend) GetDestination() string

func (*ContentsSend) ProtoMessage added in v1.39.0

func (*ContentsSend) ProtoMessage()

func (*ContentsSend) ProtoReflect added in v1.39.0

func (x *ContentsSend) ProtoReflect() protoreflect.Message

func (*ContentsSend) Reset added in v1.39.0

func (x *ContentsSend) Reset()

func (*ContentsSend) String added in v1.39.0

func (x *ContentsSend) String() string

type ContentsSingleSigSpawn added in v1.39.0

type ContentsSingleSigSpawn struct {
	Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentsSingleSigSpawn) Descriptor deprecated added in v1.39.0

func (*ContentsSingleSigSpawn) Descriptor() ([]byte, []int)

Deprecated: Use ContentsSingleSigSpawn.ProtoReflect.Descriptor instead.

func (*ContentsSingleSigSpawn) GetPubkey added in v1.39.0

func (x *ContentsSingleSigSpawn) GetPubkey() string

func (*ContentsSingleSigSpawn) ProtoMessage added in v1.39.0

func (*ContentsSingleSigSpawn) ProtoMessage()

func (*ContentsSingleSigSpawn) ProtoReflect added in v1.39.0

func (x *ContentsSingleSigSpawn) ProtoReflect() protoreflect.Message

func (*ContentsSingleSigSpawn) Reset added in v1.39.0

func (x *ContentsSingleSigSpawn) Reset()

func (*ContentsSingleSigSpawn) String added in v1.39.0

func (x *ContentsSingleSigSpawn) String() string

type Layer added in v1.39.0

type Layer struct {

	// Types that are assignable to Versioned:
	//
	//	*Layer_V1
	Versioned isLayer_Versioned `protobuf_oneof:"versioned"`
	// contains filtered or unexported fields
}

func (*Layer) Descriptor deprecated added in v1.39.0

func (*Layer) Descriptor() ([]byte, []int)

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetV1 added in v1.39.0

func (x *Layer) GetV1() *LayerV1

func (*Layer) GetVersioned added in v1.39.0

func (m *Layer) GetVersioned() isLayer_Versioned

func (*Layer) ProtoMessage added in v1.39.0

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect added in v1.39.0

func (x *Layer) ProtoReflect() protoreflect.Message

func (*Layer) Reset added in v1.39.0

func (x *Layer) Reset()

func (*Layer) String added in v1.39.0

func (x *Layer) String() string

type LayerList added in v1.39.0

type LayerList struct {
	Layers []*Layer `protobuf:"bytes,1,rep,name=layers,proto3" json:"layers,omitempty"`
	// contains filtered or unexported fields
}

func (*LayerList) Descriptor deprecated added in v1.39.0

func (*LayerList) Descriptor() ([]byte, []int)

Deprecated: Use LayerList.ProtoReflect.Descriptor instead.

func (*LayerList) GetLayers added in v1.39.0

func (x *LayerList) GetLayers() []*Layer

func (*LayerList) ProtoMessage added in v1.39.0

func (*LayerList) ProtoMessage()

func (*LayerList) ProtoReflect added in v1.39.0

func (x *LayerList) ProtoReflect() protoreflect.Message

func (*LayerList) Reset added in v1.39.0

func (x *LayerList) Reset()

func (*LayerList) String added in v1.39.0

func (x *LayerList) String() string

type LayerRequest added in v1.39.0

type LayerRequest struct {
	StartLayer uint32 `protobuf:"varint,1,opt,name=start_layer,json=startLayer,proto3" json:"start_layer,omitempty"`
	EndLayer   uint32 `protobuf:"varint,2,opt,name=end_layer,json=endLayer,proto3" json:"end_layer,omitempty"`
	Offset     uint64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // adjusts the starting point for data
	Limit      uint64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`   // specifies max number of items to fetch
	// contains filtered or unexported fields
}

func (*LayerRequest) Descriptor deprecated added in v1.39.0

func (*LayerRequest) Descriptor() ([]byte, []int)

Deprecated: Use LayerRequest.ProtoReflect.Descriptor instead.

func (*LayerRequest) GetEndLayer added in v1.39.0

func (x *LayerRequest) GetEndLayer() uint32

func (*LayerRequest) GetLimit added in v1.39.0

func (x *LayerRequest) GetLimit() uint64

func (*LayerRequest) GetOffset added in v1.39.0

func (x *LayerRequest) GetOffset() uint64

func (*LayerRequest) GetStartLayer added in v1.39.0

func (x *LayerRequest) GetStartLayer() uint32

func (*LayerRequest) ProtoMessage added in v1.39.0

func (*LayerRequest) ProtoMessage()

func (*LayerRequest) ProtoReflect added in v1.39.0

func (x *LayerRequest) ProtoReflect() protoreflect.Message

func (*LayerRequest) Reset added in v1.39.0

func (x *LayerRequest) Reset()

func (*LayerRequest) String added in v1.39.0

func (x *LayerRequest) String() string

type LayerServiceClient added in v1.39.0

type LayerServiceClient interface {
	List(ctx context.Context, in *LayerRequest, opts ...grpc.CallOption) (*LayerList, error)
}

LayerServiceClient is the client API for LayerService 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 NewLayerServiceClient added in v1.39.0

func NewLayerServiceClient(cc grpc.ClientConnInterface) LayerServiceClient

type LayerServiceServer added in v1.39.0

type LayerServiceServer interface {
	List(context.Context, *LayerRequest) (*LayerList, error)
}

LayerServiceServer is the server API for LayerService service. All implementations should embed UnimplementedLayerServiceServer for forward compatibility

type LayerStreamRequest added in v1.39.0

type LayerStreamRequest struct {
	StartLayer uint32 `protobuf:"varint,1,opt,name=start_layer,json=startLayer,proto3" json:"start_layer,omitempty"`
	EndLayer   uint32 `protobuf:"varint,2,opt,name=end_layer,json=endLayer,proto3" json:"end_layer,omitempty"`
	Watch      bool   `protobuf:"varint,3,opt,name=watch,proto3" json:"watch,omitempty"`
	// contains filtered or unexported fields
}

func (*LayerStreamRequest) Descriptor deprecated added in v1.39.0

func (*LayerStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use LayerStreamRequest.ProtoReflect.Descriptor instead.

func (*LayerStreamRequest) GetEndLayer added in v1.39.0

func (x *LayerStreamRequest) GetEndLayer() uint32

func (*LayerStreamRequest) GetStartLayer added in v1.39.0

func (x *LayerStreamRequest) GetStartLayer() uint32

func (*LayerStreamRequest) GetWatch added in v1.39.0

func (x *LayerStreamRequest) GetWatch() bool

func (*LayerStreamRequest) ProtoMessage added in v1.39.0

func (*LayerStreamRequest) ProtoMessage()

func (*LayerStreamRequest) ProtoReflect added in v1.39.0

func (x *LayerStreamRequest) ProtoReflect() protoreflect.Message

func (*LayerStreamRequest) Reset added in v1.39.0

func (x *LayerStreamRequest) Reset()

func (*LayerStreamRequest) String added in v1.39.0

func (x *LayerStreamRequest) String() string

type LayerStreamServiceClient added in v1.39.0

type LayerStreamServiceClient interface {
	Stream(ctx context.Context, in *LayerStreamRequest, opts ...grpc.CallOption) (LayerStreamService_StreamClient, error)
}

LayerStreamServiceClient is the client API for LayerStreamService 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 NewLayerStreamServiceClient added in v1.39.0

func NewLayerStreamServiceClient(cc grpc.ClientConnInterface) LayerStreamServiceClient

type LayerStreamServiceServer added in v1.39.0

type LayerStreamServiceServer interface {
	Stream(*LayerStreamRequest, LayerStreamService_StreamServer) error
}

LayerStreamServiceServer is the server API for LayerStreamService service. All implementations should embed UnimplementedLayerStreamServiceServer for forward compatibility

type LayerStreamService_StreamClient added in v1.39.0

type LayerStreamService_StreamClient interface {
	Recv() (*Layer, error)
	grpc.ClientStream
}

type LayerStreamService_StreamServer added in v1.39.0

type LayerStreamService_StreamServer interface {
	Send(*Layer) error
	grpc.ServerStream
}

type LayerV1 added in v1.39.0

type LayerV1 struct {
	Number              uint32              `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"` // layer number - not hash - layer content may change
	Status              LayerV1_LayerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=spacemesh.v2alpha1.LayerV1_LayerStatus" json:"status,omitempty"`
	ConsensusHash       string              `protobuf:"bytes,3,opt,name=consensus_hash,json=consensusHash,proto3" json:"consensus_hash,omitempty"`
	StateHash           []byte              `protobuf:"bytes,4,opt,name=state_hash,json=stateHash,proto3" json:"state_hash,omitempty"`                                 // fingerprint of the computed state at the layer
	CumulativeStateHash []byte              `protobuf:"bytes,5,opt,name=cumulative_state_hash,json=cumulativeStateHash,proto3" json:"cumulative_state_hash,omitempty"` // cumulative fingerprint that uniquely identifies state since genesis
	Block               *Block              `protobuf:"bytes,6,opt,name=block,proto3" json:"block,omitempty"`                                                          // layer's block
	// contains filtered or unexported fields
}

func (*LayerV1) Descriptor deprecated added in v1.39.0

func (*LayerV1) Descriptor() ([]byte, []int)

Deprecated: Use LayerV1.ProtoReflect.Descriptor instead.

func (*LayerV1) GetBlock added in v1.39.0

func (x *LayerV1) GetBlock() *Block

func (*LayerV1) GetConsensusHash added in v1.39.0

func (x *LayerV1) GetConsensusHash() string

func (*LayerV1) GetCumulativeStateHash added in v1.39.0

func (x *LayerV1) GetCumulativeStateHash() []byte

func (*LayerV1) GetNumber added in v1.39.0

func (x *LayerV1) GetNumber() uint32

func (*LayerV1) GetStateHash added in v1.39.0

func (x *LayerV1) GetStateHash() []byte

func (*LayerV1) GetStatus added in v1.39.0

func (x *LayerV1) GetStatus() LayerV1_LayerStatus

func (*LayerV1) ProtoMessage added in v1.39.0

func (*LayerV1) ProtoMessage()

func (*LayerV1) ProtoReflect added in v1.39.0

func (x *LayerV1) ProtoReflect() protoreflect.Message

func (*LayerV1) Reset added in v1.39.0

func (x *LayerV1) Reset()

func (*LayerV1) String added in v1.39.0

func (x *LayerV1) String() string

type LayerV1_LayerStatus added in v1.39.0

type LayerV1_LayerStatus int32
const (
	LayerV1_LAYER_STATUS_UNSPECIFIED LayerV1_LayerStatus = 0
	LayerV1_LAYER_STATUS_APPLIED     LayerV1_LayerStatus = 1 // applied by hare
	LayerV1_LAYER_STATUS_VERIFIED    LayerV1_LayerStatus = 2 // verified by tortoise
)

func (LayerV1_LayerStatus) Descriptor added in v1.39.0

func (LayerV1_LayerStatus) Enum added in v1.39.0

func (LayerV1_LayerStatus) EnumDescriptor deprecated added in v1.39.0

func (LayerV1_LayerStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use LayerV1_LayerStatus.Descriptor instead.

func (LayerV1_LayerStatus) Number added in v1.39.0

func (LayerV1_LayerStatus) String added in v1.39.0

func (x LayerV1_LayerStatus) String() string

func (LayerV1_LayerStatus) Type added in v1.39.0

type Layer_V1 added in v1.39.0

type Layer_V1 struct {
	V1 *LayerV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type NetworkInfoRequest added in v1.35.0

type NetworkInfoRequest struct {
	// contains filtered or unexported fields
}

func (*NetworkInfoRequest) Descriptor deprecated added in v1.35.0

func (*NetworkInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use NetworkInfoRequest.ProtoReflect.Descriptor instead.

func (*NetworkInfoRequest) ProtoMessage added in v1.35.0

func (*NetworkInfoRequest) ProtoMessage()

func (*NetworkInfoRequest) ProtoReflect added in v1.35.0

func (x *NetworkInfoRequest) ProtoReflect() protoreflect.Message

func (*NetworkInfoRequest) Reset added in v1.35.0

func (x *NetworkInfoRequest) Reset()

func (*NetworkInfoRequest) String added in v1.35.0

func (x *NetworkInfoRequest) String() string

type NetworkInfoResponse added in v1.35.0

type NetworkInfoResponse struct {
	GenesisTime           *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=genesis_time,json=genesisTime,proto3" json:"genesis_time,omitempty"`       // genesis time of the network, represented as a timestamp
	LayerDuration         *durationpb.Duration   `protobuf:"bytes,3,opt,name=layer_duration,json=layerDuration,proto3" json:"layer_duration,omitempty"` // duration of each layer in the network, specified as a duration
	GenesisId             []byte                 `protobuf:"bytes,4,opt,name=genesis_id,json=genesisId,proto3" json:"genesis_id,omitempty"`
	Hrp                   string                 `protobuf:"bytes,5,opt,name=hrp,proto3" json:"hrp,omitempty"`
	EffectiveGenesisLayer uint32                 `` // effective genesis layer, i.e., first layer after genesis initialization period
	/* 127-byte string literal not displayed */
	LayersPerEpoch uint32 `protobuf:"varint,7,opt,name=layers_per_epoch,json=layersPerEpoch,proto3" json:"layers_per_epoch,omitempty"` // number of layers per epoch
	// contains filtered or unexported fields
}

func (*NetworkInfoResponse) Descriptor deprecated added in v1.35.0

func (*NetworkInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use NetworkInfoResponse.ProtoReflect.Descriptor instead.

func (*NetworkInfoResponse) GetEffectiveGenesisLayer added in v1.35.0

func (x *NetworkInfoResponse) GetEffectiveGenesisLayer() uint32

func (*NetworkInfoResponse) GetGenesisId added in v1.35.0

func (x *NetworkInfoResponse) GetGenesisId() []byte

func (*NetworkInfoResponse) GetGenesisTime added in v1.35.0

func (x *NetworkInfoResponse) GetGenesisTime() *timestamppb.Timestamp

func (*NetworkInfoResponse) GetHrp added in v1.35.0

func (x *NetworkInfoResponse) GetHrp() string

func (*NetworkInfoResponse) GetLayerDuration added in v1.35.0

func (x *NetworkInfoResponse) GetLayerDuration() *durationpb.Duration

func (*NetworkInfoResponse) GetLayersPerEpoch added in v1.35.0

func (x *NetworkInfoResponse) GetLayersPerEpoch() uint32

func (*NetworkInfoResponse) ProtoMessage added in v1.35.0

func (*NetworkInfoResponse) ProtoMessage()

func (*NetworkInfoResponse) ProtoReflect added in v1.35.0

func (x *NetworkInfoResponse) ProtoReflect() protoreflect.Message

func (*NetworkInfoResponse) Reset added in v1.35.0

func (x *NetworkInfoResponse) Reset()

func (*NetworkInfoResponse) String added in v1.35.0

func (x *NetworkInfoResponse) String() string

type NetworkServiceClient added in v1.35.0

type NetworkServiceClient interface {
	Info(ctx context.Context, in *NetworkInfoRequest, opts ...grpc.CallOption) (*NetworkInfoResponse, error)
}

NetworkServiceClient is the client API for NetworkService 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 NewNetworkServiceClient added in v1.35.0

func NewNetworkServiceClient(cc grpc.ClientConnInterface) NetworkServiceClient

type NetworkServiceServer added in v1.35.0

type NetworkServiceServer interface {
	Info(context.Context, *NetworkInfoRequest) (*NetworkInfoResponse, error)
}

NetworkServiceServer is the server API for NetworkService service. All implementations should embed UnimplementedNetworkServiceServer for forward compatibility

type NodeServiceClient added in v1.36.0

type NodeServiceClient interface {
	Status(ctx context.Context, in *NodeStatusRequest, opts ...grpc.CallOption) (*NodeStatusResponse, error)
}

NodeServiceClient is the client API for NodeService 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 NewNodeServiceClient added in v1.36.0

func NewNodeServiceClient(cc grpc.ClientConnInterface) NodeServiceClient

type NodeServiceServer added in v1.36.0

type NodeServiceServer interface {
	Status(context.Context, *NodeStatusRequest) (*NodeStatusResponse, error)
}

NodeServiceServer is the server API for NodeService service. All implementations should embed UnimplementedNodeServiceServer for forward compatibility

type NodeStatusRequest added in v1.36.0

type NodeStatusRequest struct {
	// contains filtered or unexported fields
}

func (*NodeStatusRequest) Descriptor deprecated added in v1.36.0

func (*NodeStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatusRequest.ProtoReflect.Descriptor instead.

func (*NodeStatusRequest) ProtoMessage added in v1.36.0

func (*NodeStatusRequest) ProtoMessage()

func (*NodeStatusRequest) ProtoReflect added in v1.36.0

func (x *NodeStatusRequest) ProtoReflect() protoreflect.Message

func (*NodeStatusRequest) Reset added in v1.36.0

func (x *NodeStatusRequest) Reset()

func (*NodeStatusRequest) String added in v1.36.0

func (x *NodeStatusRequest) String() string

type NodeStatusResponse added in v1.36.0

type NodeStatusResponse struct {
	ConnectedPeers uint64                        `protobuf:"varint,1,opt,name=connected_peers,json=connectedPeers,proto3" json:"connected_peers,omitempty"` // number of connected neighbors
	Status         NodeStatusResponse_SyncStatus `protobuf:"varint,2,opt,name=status,proto3,enum=spacemesh.v2alpha1.NodeStatusResponse_SyncStatus" json:"status,omitempty"`
	LatestLayer    uint32                        `protobuf:"varint,3,opt,name=latest_layer,json=latestLayer,proto3" json:"latest_layer,omitempty"`          // latest layer node has seen from blocks
	AppliedLayer   uint32                        `protobuf:"varint,4,opt,name=applied_layer,json=appliedLayer,proto3" json:"applied_layer,omitempty"`       // last layer node has applied to the state
	ProcessedLayer uint32                        `protobuf:"varint,5,opt,name=processed_layer,json=processedLayer,proto3" json:"processed_layer,omitempty"` // last layer whose votes have been processed
	CurrentLayer   uint32                        `protobuf:"varint,6,opt,name=current_layer,json=currentLayer,proto3" json:"current_layer,omitempty"`       // current layer, based on clock time
	// contains filtered or unexported fields
}

func (*NodeStatusResponse) Descriptor deprecated added in v1.36.0

func (*NodeStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use NodeStatusResponse.ProtoReflect.Descriptor instead.

func (*NodeStatusResponse) GetAppliedLayer added in v1.36.0

func (x *NodeStatusResponse) GetAppliedLayer() uint32

func (*NodeStatusResponse) GetConnectedPeers added in v1.36.0

func (x *NodeStatusResponse) GetConnectedPeers() uint64

func (*NodeStatusResponse) GetCurrentLayer added in v1.36.0

func (x *NodeStatusResponse) GetCurrentLayer() uint32

func (*NodeStatusResponse) GetLatestLayer added in v1.36.0

func (x *NodeStatusResponse) GetLatestLayer() uint32

func (*NodeStatusResponse) GetProcessedLayer added in v1.36.0

func (x *NodeStatusResponse) GetProcessedLayer() uint32

func (*NodeStatusResponse) GetStatus added in v1.36.0

func (*NodeStatusResponse) ProtoMessage added in v1.36.0

func (*NodeStatusResponse) ProtoMessage()

func (*NodeStatusResponse) ProtoReflect added in v1.36.0

func (x *NodeStatusResponse) ProtoReflect() protoreflect.Message

func (*NodeStatusResponse) Reset added in v1.36.0

func (x *NodeStatusResponse) Reset()

func (*NodeStatusResponse) String added in v1.36.0

func (x *NodeStatusResponse) String() string

type NodeStatusResponse_SyncStatus added in v1.36.0

type NodeStatusResponse_SyncStatus int32
const (
	NodeStatusResponse_SYNC_STATUS_UNSPECIFIED NodeStatusResponse_SyncStatus = 0
	NodeStatusResponse_SYNC_STATUS_OFFLINE     NodeStatusResponse_SyncStatus = 1
	NodeStatusResponse_SYNC_STATUS_SYNCING     NodeStatusResponse_SyncStatus = 2
	NodeStatusResponse_SYNC_STATUS_SYNCED      NodeStatusResponse_SyncStatus = 3
)

func (NodeStatusResponse_SyncStatus) Descriptor added in v1.36.0

func (NodeStatusResponse_SyncStatus) Enum added in v1.36.0

func (NodeStatusResponse_SyncStatus) EnumDescriptor deprecated added in v1.36.0

func (NodeStatusResponse_SyncStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use NodeStatusResponse_SyncStatus.Descriptor instead.

func (NodeStatusResponse_SyncStatus) Number added in v1.36.0

func (NodeStatusResponse_SyncStatus) String added in v1.36.0

func (NodeStatusResponse_SyncStatus) Type added in v1.36.0

type Nonce added in v1.39.0

type Nonce struct {
	Counter uint64 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"`
	// contains filtered or unexported fields
}

func (*Nonce) Descriptor deprecated added in v1.39.0

func (*Nonce) Descriptor() ([]byte, []int)

Deprecated: Use Nonce.ProtoReflect.Descriptor instead.

func (*Nonce) GetCounter added in v1.39.0

func (x *Nonce) GetCounter() uint64

func (*Nonce) ProtoMessage added in v1.39.0

func (*Nonce) ProtoMessage()

func (*Nonce) ProtoReflect added in v1.39.0

func (x *Nonce) ProtoReflect() protoreflect.Message

func (*Nonce) Reset added in v1.39.0

func (x *Nonce) Reset()

func (*Nonce) String added in v1.39.0

func (x *Nonce) String() string

type Reward added in v1.30.0

type Reward struct {

	// Types that are assignable to Versioned:
	//
	//	*Reward_V1
	Versioned isReward_Versioned `protobuf_oneof:"versioned"`
	// contains filtered or unexported fields
}

func (*Reward) Descriptor deprecated added in v1.30.0

func (*Reward) Descriptor() ([]byte, []int)

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetV1 added in v1.30.0

func (x *Reward) GetV1() *RewardV1

func (*Reward) GetVersioned added in v1.30.0

func (m *Reward) GetVersioned() isReward_Versioned

func (*Reward) ProtoMessage added in v1.30.0

func (*Reward) ProtoMessage()

func (*Reward) ProtoReflect added in v1.30.0

func (x *Reward) ProtoReflect() protoreflect.Message

func (*Reward) Reset added in v1.30.0

func (x *Reward) Reset()

func (*Reward) String added in v1.30.0

func (x *Reward) String() string

type RewardList added in v1.30.0

type RewardList struct {
	Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
	// contains filtered or unexported fields
}

func (*RewardList) Descriptor deprecated added in v1.30.0

func (*RewardList) Descriptor() ([]byte, []int)

Deprecated: Use RewardList.ProtoReflect.Descriptor instead.

func (*RewardList) GetRewards added in v1.30.0

func (x *RewardList) GetRewards() []*Reward

func (*RewardList) ProtoMessage added in v1.30.0

func (*RewardList) ProtoMessage()

func (*RewardList) ProtoReflect added in v1.30.0

func (x *RewardList) ProtoReflect() protoreflect.Message

func (*RewardList) Reset added in v1.30.0

func (x *RewardList) Reset()

func (*RewardList) String added in v1.30.0

func (x *RewardList) String() string

type RewardRequest added in v1.30.0

type RewardRequest struct {
	StartLayer uint32 `protobuf:"varint,1,opt,name=start_layer,json=startLayer,proto3" json:"start_layer,omitempty"`
	EndLayer   uint32 `protobuf:"varint,2,opt,name=end_layer,json=endLayer,proto3" json:"end_layer,omitempty"`
	// Types that are assignable to FilterBy:
	//
	//	*RewardRequest_Coinbase
	//	*RewardRequest_Smesher
	FilterBy isRewardRequest_FilterBy `protobuf_oneof:"filter_by"`
	Offset   uint64                   `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` // adjusts the starting point for data
	Limit    uint64                   `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`   // specifies max number of items to fetch
	// contains filtered or unexported fields
}

func (*RewardRequest) Descriptor deprecated added in v1.30.0

func (*RewardRequest) Descriptor() ([]byte, []int)

Deprecated: Use RewardRequest.ProtoReflect.Descriptor instead.

func (*RewardRequest) GetCoinbase added in v1.30.0

func (x *RewardRequest) GetCoinbase() string

func (*RewardRequest) GetEndLayer added in v1.30.0

func (x *RewardRequest) GetEndLayer() uint32

func (*RewardRequest) GetFilterBy added in v1.30.0

func (m *RewardRequest) GetFilterBy() isRewardRequest_FilterBy

func (*RewardRequest) GetLimit added in v1.30.0

func (x *RewardRequest) GetLimit() uint64

func (*RewardRequest) GetOffset added in v1.30.0

func (x *RewardRequest) GetOffset() uint64

func (*RewardRequest) GetSmesher added in v1.30.0

func (x *RewardRequest) GetSmesher() []byte

func (*RewardRequest) GetStartLayer added in v1.30.0

func (x *RewardRequest) GetStartLayer() uint32

func (*RewardRequest) ProtoMessage added in v1.30.0

func (*RewardRequest) ProtoMessage()

func (*RewardRequest) ProtoReflect added in v1.30.0

func (x *RewardRequest) ProtoReflect() protoreflect.Message

func (*RewardRequest) Reset added in v1.30.0

func (x *RewardRequest) Reset()

func (*RewardRequest) String added in v1.30.0

func (x *RewardRequest) String() string

type RewardRequest_Coinbase added in v1.30.0

type RewardRequest_Coinbase struct {
	Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3,oneof"`
}

type RewardRequest_Smesher added in v1.30.0

type RewardRequest_Smesher struct {
	Smesher []byte `protobuf:"bytes,4,opt,name=smesher,proto3,oneof"`
}

type RewardServiceClient added in v1.30.0

type RewardServiceClient interface {
	List(ctx context.Context, in *RewardRequest, opts ...grpc.CallOption) (*RewardList, error)
}

RewardServiceClient is the client API for RewardService 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 NewRewardServiceClient added in v1.30.0

func NewRewardServiceClient(cc grpc.ClientConnInterface) RewardServiceClient

type RewardServiceServer added in v1.30.0

type RewardServiceServer interface {
	List(context.Context, *RewardRequest) (*RewardList, error)
}

RewardServiceServer is the server API for RewardService service. All implementations should embed UnimplementedRewardServiceServer for forward compatibility

type RewardStreamRequest added in v1.30.0

type RewardStreamRequest struct {
	StartLayer uint32 `protobuf:"varint,1,opt,name=start_layer,json=startLayer,proto3" json:"start_layer,omitempty"`
	EndLayer   uint32 `protobuf:"varint,2,opt,name=end_layer,json=endLayer,proto3" json:"end_layer,omitempty"`
	// Types that are assignable to FilterBy:
	//
	//	*RewardStreamRequest_Coinbase
	//	*RewardStreamRequest_Smesher
	FilterBy isRewardStreamRequest_FilterBy `protobuf_oneof:"filter_by"`
	Watch    bool                           `protobuf:"varint,5,opt,name=watch,proto3" json:"watch,omitempty"`
	// contains filtered or unexported fields
}

func (*RewardStreamRequest) Descriptor deprecated added in v1.30.0

func (*RewardStreamRequest) Descriptor() ([]byte, []int)

Deprecated: Use RewardStreamRequest.ProtoReflect.Descriptor instead.

func (*RewardStreamRequest) GetCoinbase added in v1.30.0

func (x *RewardStreamRequest) GetCoinbase() string

func (*RewardStreamRequest) GetEndLayer added in v1.30.0

func (x *RewardStreamRequest) GetEndLayer() uint32

func (*RewardStreamRequest) GetFilterBy added in v1.30.0

func (m *RewardStreamRequest) GetFilterBy() isRewardStreamRequest_FilterBy

func (*RewardStreamRequest) GetSmesher added in v1.30.0

func (x *RewardStreamRequest) GetSmesher() []byte

func (*RewardStreamRequest) GetStartLayer added in v1.30.0

func (x *RewardStreamRequest) GetStartLayer() uint32

func (*RewardStreamRequest) GetWatch added in v1.30.0

func (x *RewardStreamRequest) GetWatch() bool

func (*RewardStreamRequest) ProtoMessage added in v1.30.0

func (*RewardStreamRequest) ProtoMessage()

func (*RewardStreamRequest) ProtoReflect added in v1.30.0

func (x *RewardStreamRequest) ProtoReflect() protoreflect.Message

func (*RewardStreamRequest) Reset added in v1.30.0

func (x *RewardStreamRequest) Reset()

func (*RewardStreamRequest) String added in v1.30.0

func (x *RewardStreamRequest) String() string

type RewardStreamRequest_Coinbase added in v1.30.0

type RewardStreamRequest_Coinbase struct {
	Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3,oneof"`
}

type RewardStreamRequest_Smesher added in v1.30.0

type RewardStreamRequest_Smesher struct {
	Smesher []byte `protobuf:"bytes,4,opt,name=smesher,proto3,oneof"`
}

type RewardStreamServiceClient added in v1.30.0

type RewardStreamServiceClient interface {
	Stream(ctx context.Context, in *RewardStreamRequest, opts ...grpc.CallOption) (RewardStreamService_StreamClient, error)
}

RewardStreamServiceClient is the client API for RewardStreamService 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 NewRewardStreamServiceClient added in v1.30.0

func NewRewardStreamServiceClient(cc grpc.ClientConnInterface) RewardStreamServiceClient

type RewardStreamServiceServer added in v1.30.0

type RewardStreamServiceServer interface {
	Stream(*RewardStreamRequest, RewardStreamService_StreamServer) error
}

RewardStreamServiceServer is the server API for RewardStreamService service. All implementations should embed UnimplementedRewardStreamServiceServer for forward compatibility

type RewardStreamService_StreamClient added in v1.30.0

type RewardStreamService_StreamClient interface {
	Recv() (*Reward, error)
	grpc.ClientStream
}

type RewardStreamService_StreamServer added in v1.30.0

type RewardStreamService_StreamServer interface {
	Send(*Reward) error
	grpc.ServerStream
}

type RewardV1 added in v1.30.0

type RewardV1 struct {
	Layer       uint32 `protobuf:"varint,1,opt,name=layer,proto3" json:"layer,omitempty"`                                // layer award was paid in
	Total       uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`                                // total reward paid in smidge (sum of tx fee and layer reward)
	LayerReward uint64 `protobuf:"varint,3,opt,name=layer_reward,json=layerReward,proto3" json:"layer_reward,omitempty"` // tx_fee = total - layer_reward
	Coinbase    string `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"`                           // account awarded this reward
	Smesher     []byte `protobuf:"bytes,6,opt,name=smesher,proto3" json:"smesher,omitempty"`                             // id of smesher who earned this reward
	// contains filtered or unexported fields
}

func (*RewardV1) Descriptor deprecated added in v1.30.0

func (*RewardV1) Descriptor() ([]byte, []int)

Deprecated: Use RewardV1.ProtoReflect.Descriptor instead.

func (*RewardV1) GetCoinbase added in v1.30.0

func (x *RewardV1) GetCoinbase() string

func (*RewardV1) GetLayer added in v1.30.0

func (x *RewardV1) GetLayer() uint32

func (*RewardV1) GetLayerReward added in v1.30.0

func (x *RewardV1) GetLayerReward() uint64

func (*RewardV1) GetSmesher added in v1.30.0

func (x *RewardV1) GetSmesher() []byte

func (*RewardV1) GetTotal added in v1.30.0

func (x *RewardV1) GetTotal() uint64

func (*RewardV1) ProtoMessage added in v1.30.0

func (*RewardV1) ProtoMessage()

func (*RewardV1) ProtoReflect added in v1.30.0

func (x *RewardV1) ProtoReflect() protoreflect.Message

func (*RewardV1) Reset added in v1.30.0

func (x *RewardV1) Reset()

func (*RewardV1) String added in v1.30.0

func (x *RewardV1) String() string

type Reward_V1 added in v1.30.0

type Reward_V1 struct {
	V1 *RewardV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type Transaction added in v1.39.0

type Transaction struct {

	// Types that are assignable to Versioned:
	//
	//	*Transaction_V1
	Versioned isTransaction_Versioned `protobuf_oneof:"versioned"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated added in v1.39.0

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetV1 added in v1.39.0

func (x *Transaction) GetV1() *TransactionV1

func (*Transaction) GetVersioned added in v1.39.0

func (m *Transaction) GetVersioned() isTransaction_Versioned

func (*Transaction) ProtoMessage added in v1.39.0

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect added in v1.39.0

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset added in v1.39.0

func (x *Transaction) Reset()

func (*Transaction) String added in v1.39.0

func (x *Transaction) String() string

type TransactionContents added in v1.39.0

type TransactionContents struct {

	// Types that are assignable to Contents:
	//
	//	*TransactionContents_Send
	//	*TransactionContents_SingleSigSpawn
	//	*TransactionContents_MultiSigSpawn
	Contents isTransactionContents_Contents `protobuf_oneof:"contents"`
	// contains filtered or unexported fields
}

func (*TransactionContents) Descriptor deprecated added in v1.39.0

func (*TransactionContents) Descriptor() ([]byte, []int)

Deprecated: Use TransactionContents.ProtoReflect.Descriptor instead.

func (*TransactionContents) GetContents added in v1.39.0

func (m *TransactionContents) GetContents() isTransactionContents_Contents

func (*TransactionContents) GetMultiSigSpawn added in v1.39.0

func (x *TransactionContents) GetMultiSigSpawn() *ContentsMultiSigSpawn

func (*TransactionContents) GetSend added in v1.39.0

func (x *TransactionContents) GetSend() *ContentsSend

func (*TransactionContents) GetSingleSigSpawn added in v1.39.0

func (x *TransactionContents) GetSingleSigSpawn() *ContentsSingleSigSpawn

func (*TransactionContents) ProtoMessage added in v1.39.0

func (*TransactionContents) ProtoMessage()

func (*TransactionContents) ProtoReflect added in v1.39.0

func (x *TransactionContents) ProtoReflect() protoreflect.Message

func (*TransactionContents) Reset added in v1.39.0

func (x *TransactionContents) Reset()

func (*TransactionContents) String added in v1.39.0

func (x *TransactionContents) String() string

type TransactionContents_MultiSigSpawn added in v1.39.0

type TransactionContents_MultiSigSpawn struct {
	MultiSigSpawn *ContentsMultiSigSpawn `protobuf:"bytes,3,opt,name=multi_sig_spawn,json=multiSigSpawn,proto3,oneof"`
}

type TransactionContents_Send added in v1.39.0

type TransactionContents_Send struct {
	Send *ContentsSend `protobuf:"bytes,1,opt,name=send,proto3,oneof"`
}

type TransactionContents_SingleSigSpawn added in v1.39.0

type TransactionContents_SingleSigSpawn struct {
	SingleSigSpawn *ContentsSingleSigSpawn `protobuf:"bytes,2,opt,name=single_sig_spawn,json=singleSigSpawn,proto3,oneof"`
}

type TransactionV1 added in v1.39.0

type TransactionV1 struct {
	Id        []byte                        `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Principal string                        `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` // principal account address
	Template  string                        `protobuf:"bytes,3,opt,name=template,proto3" json:"template,omitempty"`   // template account address
	Method    uint32                        `protobuf:"varint,4,opt,name=method,proto3" json:"method,omitempty"`      // this is actually limited by uint8, but no type for that.
	Nonce     *Nonce                        `protobuf:"bytes,5,opt,name=nonce,proto3" json:"nonce,omitempty"`
	MaxGas    uint64                        `protobuf:"varint,6,opt,name=max_gas,json=maxGas,proto3" json:"max_gas,omitempty"`       // max gas units consumed by tx
	GasPrice  uint64                        `protobuf:"varint,7,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // fee per unit gas, in smidge
	MaxSpend  uint64                        `protobuf:"varint,8,opt,name=max_spend,json=maxSpend,proto3" json:"max_spend,omitempty"`
	Raw       []byte                        `protobuf:"bytes,9,opt,name=raw,proto3" json:"raw,omitempty"`
	Type      TransactionV1_TransactionType `protobuf:"varint,10,opt,name=type,proto3,enum=spacemesh.v2alpha1.TransactionV1_TransactionType" json:"type,omitempty"`
	Contents  *TransactionContents          `protobuf:"bytes,11,opt,name=contents,proto3" json:"contents,omitempty"` // parsed transaction contents
	// contains filtered or unexported fields
}

An immutable Spacemesh transaction. do not include mutable data such as tx state or result.

func (*TransactionV1) Descriptor deprecated added in v1.39.0

func (*TransactionV1) Descriptor() ([]byte, []int)

Deprecated: Use TransactionV1.ProtoReflect.Descriptor instead.

func (*TransactionV1) GetContents added in v1.39.0

func (x *TransactionV1) GetContents() *TransactionContents

func (*TransactionV1) GetGasPrice added in v1.39.0

func (x *TransactionV1) GetGasPrice() uint64

func (*TransactionV1) GetId added in v1.39.0

func (x *TransactionV1) GetId() []byte

func (*TransactionV1) GetMaxGas added in v1.39.0

func (x *TransactionV1) GetMaxGas() uint64

func (*TransactionV1) GetMaxSpend added in v1.39.0

func (x *TransactionV1) GetMaxSpend() uint64

func (*TransactionV1) GetMethod added in v1.39.0

func (x *TransactionV1) GetMethod() uint32

func (*TransactionV1) GetNonce added in v1.39.0

func (x *TransactionV1) GetNonce() *Nonce

func (*TransactionV1) GetPrincipal added in v1.39.0

func (x *TransactionV1) GetPrincipal() string

func (*TransactionV1) GetRaw added in v1.39.0

func (x *TransactionV1) GetRaw() []byte

func (*TransactionV1) GetTemplate added in v1.39.0

func (x *TransactionV1) GetTemplate() string

func (*TransactionV1) GetType added in v1.39.0

func (*TransactionV1) ProtoMessage added in v1.39.0

func (*TransactionV1) ProtoMessage()

func (*TransactionV1) ProtoReflect added in v1.39.0

func (x *TransactionV1) ProtoReflect() protoreflect.Message

func (*TransactionV1) Reset added in v1.39.0

func (x *TransactionV1) Reset()

func (*TransactionV1) String added in v1.39.0

func (x *TransactionV1) String() string

type TransactionV1_TransactionType added in v1.39.0

type TransactionV1_TransactionType int32
const (
	TransactionV1_TRANSACTION_TYPE_UNSPECIFIED          TransactionV1_TransactionType = 0
	TransactionV1_TRANSACTION_TYPE_SINGLE_SIG_SEND      TransactionV1_TransactionType = 1
	TransactionV1_TRANSACTION_TYPE_SINGLE_SIG_SPAWN     TransactionV1_TransactionType = 2
	TransactionV1_TRANSACTION_TYPE_SINGLE_SIG_SELFSPAWN TransactionV1_TransactionType = 3
	TransactionV1_TRANSACTION_TYPE_MULTI_SIG_SEND       TransactionV1_TransactionType = 4
	TransactionV1_TRANSACTION_TYPE_MULTI_SIG_SPAWN      TransactionV1_TransactionType = 5
	TransactionV1_TRANSACTION_TYPE_MULTI_SIG_SELFSPAWN  TransactionV1_TransactionType = 6
)

func (TransactionV1_TransactionType) Descriptor added in v1.39.0

func (TransactionV1_TransactionType) Enum added in v1.39.0

func (TransactionV1_TransactionType) EnumDescriptor deprecated added in v1.39.0

func (TransactionV1_TransactionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TransactionV1_TransactionType.Descriptor instead.

func (TransactionV1_TransactionType) Number added in v1.39.0

func (TransactionV1_TransactionType) String added in v1.39.0

func (TransactionV1_TransactionType) Type added in v1.39.0

type Transaction_V1 added in v1.39.0

type Transaction_V1 struct {
	V1 *TransactionV1 `protobuf:"bytes,1,opt,name=v1,proto3,oneof"`
}

type UnimplementedActivationServiceServer

type UnimplementedActivationServiceServer struct {
}

UnimplementedActivationServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedActivationServiceServer) ActivationsCount

func (UnimplementedActivationServiceServer) List

type UnimplementedActivationStreamServiceServer

type UnimplementedActivationStreamServiceServer struct {
}

UnimplementedActivationStreamServiceServer should be embedded to have forward compatible implementations.

type UnimplementedLayerServiceServer added in v1.39.0

type UnimplementedLayerServiceServer struct {
}

UnimplementedLayerServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedLayerServiceServer) List added in v1.39.0

type UnimplementedLayerStreamServiceServer added in v1.39.0

type UnimplementedLayerStreamServiceServer struct {
}

UnimplementedLayerStreamServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedLayerStreamServiceServer) Stream added in v1.39.0

type UnimplementedNetworkServiceServer added in v1.35.0

type UnimplementedNetworkServiceServer struct {
}

UnimplementedNetworkServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNetworkServiceServer) Info added in v1.35.0

type UnimplementedNodeServiceServer added in v1.36.0

type UnimplementedNodeServiceServer struct {
}

UnimplementedNodeServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedNodeServiceServer) Status added in v1.36.0

type UnimplementedRewardServiceServer added in v1.30.0

type UnimplementedRewardServiceServer struct {
}

UnimplementedRewardServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRewardServiceServer) List added in v1.30.0

type UnimplementedRewardStreamServiceServer added in v1.30.0

type UnimplementedRewardStreamServiceServer struct {
}

UnimplementedRewardStreamServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRewardStreamServiceServer) Stream added in v1.30.0

type UnsafeActivationServiceServer

type UnsafeActivationServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeActivationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActivationServiceServer will result in compilation errors.

type UnsafeActivationStreamServiceServer

type UnsafeActivationStreamServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeActivationStreamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActivationStreamServiceServer will result in compilation errors.

type UnsafeLayerServiceServer added in v1.39.0

type UnsafeLayerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLayerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LayerServiceServer will result in compilation errors.

type UnsafeLayerStreamServiceServer added in v1.39.0

type UnsafeLayerStreamServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeLayerStreamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LayerStreamServiceServer will result in compilation errors.

type UnsafeNetworkServiceServer added in v1.35.0

type UnsafeNetworkServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNetworkServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkServiceServer will result in compilation errors.

type UnsafeNodeServiceServer added in v1.36.0

type UnsafeNodeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeNodeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NodeServiceServer will result in compilation errors.

type UnsafeRewardServiceServer added in v1.30.0

type UnsafeRewardServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRewardServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RewardServiceServer will result in compilation errors.

type UnsafeRewardStreamServiceServer added in v1.30.0

type UnsafeRewardStreamServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeRewardStreamServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RewardStreamServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL