Documentation ¶
Overview ¶
Package pb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterSpacemeshServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSpacemeshServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpacemeshServiceClient) error
- func RegisterSpacemeshServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSpacemeshServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpacemeshServiceServer) error
- func RegisterSpacemeshServiceServer(s *grpc.Server, srv SpacemeshServiceServer)
- type AccountId
- type AccountRewards
- type AccountTxs
- func (*AccountTxs) Descriptor() ([]byte, []int)deprecated
- func (x *AccountTxs) GetTxs() []string
- func (x *AccountTxs) GetValidatedLayer() uint64
- func (*AccountTxs) ProtoMessage()
- func (x *AccountTxs) ProtoReflect() protoreflect.Message
- func (x *AccountTxs) Reset()
- func (x *AccountTxs) String() string
- type BinaryMessage
- type BroadcastMessage
- type CommitmentSizeMessage
- func (*CommitmentSizeMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CommitmentSizeMessage) GetMbCommitted() uint64
- func (*CommitmentSizeMessage) ProtoMessage()
- func (x *CommitmentSizeMessage) ProtoReflect() protoreflect.Message
- func (x *CommitmentSizeMessage) Reset()
- func (x *CommitmentSizeMessage) String() string
- type EligibleLayers
- type GetTxsSinceLayer
- func (*GetTxsSinceLayer) Descriptor() ([]byte, []int)deprecated
- func (x *GetTxsSinceLayer) GetAccount() *AccountId
- func (x *GetTxsSinceLayer) GetStartLayer() uint64
- func (*GetTxsSinceLayer) ProtoMessage()
- func (x *GetTxsSinceLayer) ProtoReflect() protoreflect.Message
- func (x *GetTxsSinceLayer) Reset()
- func (x *GetTxsSinceLayer) String() string
- type InitPost
- func (*InitPost) Descriptor() ([]byte, []int)deprecated
- func (x *InitPost) GetCoinbase() string
- func (x *InitPost) GetCommitmentSize() uint64
- func (x *InitPost) GetLogicalDrive() string
- func (*InitPost) ProtoMessage()
- func (x *InitPost) ProtoReflect() protoreflect.Message
- func (x *InitPost) Reset()
- func (x *InitPost) String() string
- type LogicalDriveMessage
- func (*LogicalDriveMessage) Descriptor() ([]byte, []int)deprecated
- func (x *LogicalDriveMessage) GetLogicalDrive() string
- func (*LogicalDriveMessage) ProtoMessage()
- func (x *LogicalDriveMessage) ProtoReflect() protoreflect.Message
- func (x *LogicalDriveMessage) Reset()
- func (x *LogicalDriveMessage) String() string
- type MiningStats
- func (*MiningStats) Descriptor() ([]byte, []int)deprecated
- func (x *MiningStats) GetCoinbase() string
- func (x *MiningStats) GetDataDir() string
- func (x *MiningStats) GetRemainingBytes() uint64
- func (x *MiningStats) GetStatus() int32
- func (*MiningStats) ProtoMessage()
- func (x *MiningStats) ProtoReflect() protoreflect.Message
- func (x *MiningStats) Reset()
- func (x *MiningStats) String() string
- type NodeStatus
- func (*NodeStatus) Descriptor() ([]byte, []int)deprecated
- func (x *NodeStatus) GetCurrentLayer() uint64
- func (x *NodeStatus) GetMaxPeers() uint64
- func (x *NodeStatus) GetMinPeers() uint64
- func (x *NodeStatus) GetPeers() uint64
- func (x *NodeStatus) GetSynced() bool
- func (x *NodeStatus) GetSyncedLayer() uint64
- func (x *NodeStatus) GetVerifiedLayer() uint64
- func (*NodeStatus) ProtoMessage()
- func (x *NodeStatus) ProtoReflect() protoreflect.Message
- func (x *NodeStatus) Reset()
- func (x *NodeStatus) String() string
- type Reward
- func (*Reward) Descriptor() ([]byte, []int)deprecated
- func (x *Reward) GetLayer() uint64
- func (x *Reward) GetLayerRewardEstimate() uint64
- func (x *Reward) GetTotalReward() uint64
- func (*Reward) ProtoMessage()
- func (x *Reward) ProtoReflect() protoreflect.Message
- func (x *Reward) Reset()
- func (x *Reward) String() string
- type SetLogLevel
- func (*SetLogLevel) Descriptor() ([]byte, []int)deprecated
- func (x *SetLogLevel) GetLoggerName() string
- func (x *SetLogLevel) GetSeverity() string
- func (*SetLogLevel) ProtoMessage()
- func (x *SetLogLevel) ProtoReflect() protoreflect.Message
- func (x *SetLogLevel) Reset()
- func (x *SetLogLevel) String() string
- type SignedTransaction
- type SimpleMessage
- type SpacemeshServiceClient
- type SpacemeshServiceServer
- type Transaction
- func (*Transaction) Descriptor() ([]byte, []int)deprecated
- func (x *Transaction) GetAmount() uint64
- func (x *Transaction) GetFee() uint64
- func (x *Transaction) GetLayerId() uint64
- func (x *Transaction) GetReceiver() *AccountId
- func (x *Transaction) GetSender() *AccountId
- func (x *Transaction) GetStatus() TxStatus
- func (x *Transaction) GetTimestamp() uint64
- func (x *Transaction) GetTxId() *TransactionId
- func (*Transaction) ProtoMessage()
- func (x *Transaction) ProtoReflect() protoreflect.Message
- func (x *Transaction) Reset()
- func (x *Transaction) String() string
- type TransactionId
- type TransferFunds
- func (*TransferFunds) Descriptor() ([]byte, []int)deprecated
- func (x *TransferFunds) GetAmount() uint64
- func (x *TransferFunds) GetNonce() uint64
- func (x *TransferFunds) GetReceiver() *AccountId
- func (x *TransferFunds) GetSender() *AccountId
- func (*TransferFunds) ProtoMessage()
- func (x *TransferFunds) ProtoReflect() protoreflect.Message
- func (x *TransferFunds) Reset()
- func (x *TransferFunds) String() string
- type TxConfirmation
- func (*TxConfirmation) Descriptor() ([]byte, []int)deprecated
- func (x *TxConfirmation) GetId() string
- func (x *TxConfirmation) GetValue() string
- func (*TxConfirmation) ProtoMessage()
- func (x *TxConfirmation) ProtoReflect() protoreflect.Message
- func (x *TxConfirmation) Reset()
- func (x *TxConfirmation) String() string
- type TxStatus
- type UnimplementedSpacemeshServiceServer
- func (*UnimplementedSpacemeshServiceServer) Broadcast(context.Context, *BroadcastMessage) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) BroadcastPoet(context.Context, *BinaryMessage) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) Echo(context.Context, *SimpleMessage) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) GetAccountRewards(context.Context, *AccountId) (*AccountRewards, error)
- func (*UnimplementedSpacemeshServiceServer) GetAccountTxs(context.Context, *GetTxsSinceLayer) (*AccountTxs, error)
- func (*UnimplementedSpacemeshServiceServer) GetBalance(context.Context, *AccountId) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) GetGenesisTime(context.Context, *empty.Empty) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) GetMiningStats(context.Context, *empty.Empty) (*MiningStats, error)
- func (*UnimplementedSpacemeshServiceServer) GetNodeStatus(context.Context, *empty.Empty) (*NodeStatus, error)
- func (*UnimplementedSpacemeshServiceServer) GetNonce(context.Context, *AccountId) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) GetStateRoot(context.Context, *empty.Empty) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) GetTransaction(context.Context, *TransactionId) (*Transaction, error)
- func (*UnimplementedSpacemeshServiceServer) GetUpcomingAwards(context.Context, *empty.Empty) (*EligibleLayers, error)
- func (*UnimplementedSpacemeshServiceServer) ResetPost(context.Context, *empty.Empty) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) SetAwardsAddress(context.Context, *AccountId) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) SetLoggerLevel(context.Context, *SetLogLevel) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) StartMining(context.Context, *InitPost) (*SimpleMessage, error)
- func (*UnimplementedSpacemeshServiceServer) SubmitTransaction(context.Context, *SignedTransaction) (*TxConfirmation, error)
Constants ¶
This section is empty.
Variables ¶
var ( TxStatus_name = map[int32]string{ 0: "REJECTED", 3: "PENDING", 6: "CONFIRMED", } TxStatus_value = map[string]int32{ "REJECTED": 0, "PENDING": 3, "CONFIRMED": 6, } )
Enum value maps for TxStatus.
var File_api_pb_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSpacemeshServiceHandler ¶
func RegisterSpacemeshServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSpacemeshServiceHandler registers the http handlers for service SpacemeshService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSpacemeshServiceHandlerClient ¶
func RegisterSpacemeshServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SpacemeshServiceClient) error
RegisterSpacemeshServiceHandlerClient registers the http handlers for service SpacemeshService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SpacemeshServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SpacemeshServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SpacemeshServiceClient" to call the correct interceptors.
func RegisterSpacemeshServiceHandlerFromEndpoint ¶
func RegisterSpacemeshServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSpacemeshServiceHandlerFromEndpoint is same as RegisterSpacemeshServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSpacemeshServiceHandlerServer ¶
func RegisterSpacemeshServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SpacemeshServiceServer) error
RegisterSpacemeshServiceHandlerServer registers the http handlers for service SpacemeshService to "mux". UnaryRPC :call SpacemeshServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterSpacemeshServiceServer ¶
func RegisterSpacemeshServiceServer(s *grpc.Server, srv SpacemeshServiceServer)
Types ¶
type AccountId ¶
type AccountId struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*AccountId) Descriptor
deprecated
func (*AccountId) GetAddress ¶
func (*AccountId) ProtoMessage ¶
func (*AccountId) ProtoMessage()
func (*AccountId) ProtoReflect ¶
func (x *AccountId) ProtoReflect() protoreflect.Message
type AccountRewards ¶
type AccountRewards struct { Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"` // contains filtered or unexported fields }
func (*AccountRewards) Descriptor
deprecated
func (*AccountRewards) Descriptor() ([]byte, []int)
Deprecated: Use AccountRewards.ProtoReflect.Descriptor instead.
func (*AccountRewards) GetRewards ¶
func (x *AccountRewards) GetRewards() []*Reward
func (*AccountRewards) ProtoMessage ¶
func (*AccountRewards) ProtoMessage()
func (*AccountRewards) ProtoReflect ¶
func (x *AccountRewards) ProtoReflect() protoreflect.Message
func (*AccountRewards) Reset ¶
func (x *AccountRewards) Reset()
func (*AccountRewards) String ¶
func (x *AccountRewards) String() string
type AccountTxs ¶
type AccountTxs struct { Txs []string `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` ValidatedLayer uint64 `protobuf:"varint,2,opt,name=validatedLayer,proto3" json:"validatedLayer,omitempty"` // contains filtered or unexported fields }
func (*AccountTxs) Descriptor
deprecated
func (*AccountTxs) Descriptor() ([]byte, []int)
Deprecated: Use AccountTxs.ProtoReflect.Descriptor instead.
func (*AccountTxs) GetTxs ¶
func (x *AccountTxs) GetTxs() []string
func (*AccountTxs) GetValidatedLayer ¶
func (x *AccountTxs) GetValidatedLayer() uint64
func (*AccountTxs) ProtoMessage ¶
func (*AccountTxs) ProtoMessage()
func (*AccountTxs) ProtoReflect ¶
func (x *AccountTxs) ProtoReflect() protoreflect.Message
func (*AccountTxs) Reset ¶
func (x *AccountTxs) Reset()
func (*AccountTxs) String ¶
func (x *AccountTxs) String() string
type BinaryMessage ¶
type BinaryMessage struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BinaryMessage) Descriptor
deprecated
func (*BinaryMessage) Descriptor() ([]byte, []int)
Deprecated: Use BinaryMessage.ProtoReflect.Descriptor instead.
func (*BinaryMessage) GetData ¶
func (x *BinaryMessage) GetData() []byte
func (*BinaryMessage) ProtoMessage ¶
func (*BinaryMessage) ProtoMessage()
func (*BinaryMessage) ProtoReflect ¶
func (x *BinaryMessage) ProtoReflect() protoreflect.Message
func (*BinaryMessage) Reset ¶
func (x *BinaryMessage) Reset()
func (*BinaryMessage) String ¶
func (x *BinaryMessage) String() string
type BroadcastMessage ¶
type BroadcastMessage struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*BroadcastMessage) Descriptor
deprecated
func (*BroadcastMessage) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastMessage.ProtoReflect.Descriptor instead.
func (*BroadcastMessage) GetData ¶
func (x *BroadcastMessage) GetData() string
func (*BroadcastMessage) ProtoMessage ¶
func (*BroadcastMessage) ProtoMessage()
func (*BroadcastMessage) ProtoReflect ¶
func (x *BroadcastMessage) ProtoReflect() protoreflect.Message
func (*BroadcastMessage) Reset ¶
func (x *BroadcastMessage) Reset()
func (*BroadcastMessage) String ¶
func (x *BroadcastMessage) String() string
type CommitmentSizeMessage ¶
type CommitmentSizeMessage struct { MbCommitted uint64 `protobuf:"varint,1,opt,name=mbCommitted,proto3" json:"mbCommitted,omitempty"` // contains filtered or unexported fields }
func (*CommitmentSizeMessage) Descriptor
deprecated
func (*CommitmentSizeMessage) Descriptor() ([]byte, []int)
Deprecated: Use CommitmentSizeMessage.ProtoReflect.Descriptor instead.
func (*CommitmentSizeMessage) GetMbCommitted ¶
func (x *CommitmentSizeMessage) GetMbCommitted() uint64
func (*CommitmentSizeMessage) ProtoMessage ¶
func (*CommitmentSizeMessage) ProtoMessage()
func (*CommitmentSizeMessage) ProtoReflect ¶
func (x *CommitmentSizeMessage) ProtoReflect() protoreflect.Message
func (*CommitmentSizeMessage) Reset ¶
func (x *CommitmentSizeMessage) Reset()
func (*CommitmentSizeMessage) String ¶
func (x *CommitmentSizeMessage) String() string
type EligibleLayers ¶
type EligibleLayers struct { Layers []uint64 `protobuf:"varint,1,rep,packed,name=layers,proto3" json:"layers,omitempty"` // contains filtered or unexported fields }
func (*EligibleLayers) Descriptor
deprecated
func (*EligibleLayers) Descriptor() ([]byte, []int)
Deprecated: Use EligibleLayers.ProtoReflect.Descriptor instead.
func (*EligibleLayers) GetLayers ¶
func (x *EligibleLayers) GetLayers() []uint64
func (*EligibleLayers) ProtoMessage ¶
func (*EligibleLayers) ProtoMessage()
func (*EligibleLayers) ProtoReflect ¶
func (x *EligibleLayers) ProtoReflect() protoreflect.Message
func (*EligibleLayers) Reset ¶
func (x *EligibleLayers) Reset()
func (*EligibleLayers) String ¶
func (x *EligibleLayers) String() string
type GetTxsSinceLayer ¶
type GetTxsSinceLayer struct { StartLayer uint64 `protobuf:"varint,1,opt,name=startLayer,proto3" json:"startLayer,omitempty"` Account *AccountId `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"` // contains filtered or unexported fields }
func (*GetTxsSinceLayer) Descriptor
deprecated
func (*GetTxsSinceLayer) Descriptor() ([]byte, []int)
Deprecated: Use GetTxsSinceLayer.ProtoReflect.Descriptor instead.
func (*GetTxsSinceLayer) GetAccount ¶
func (x *GetTxsSinceLayer) GetAccount() *AccountId
func (*GetTxsSinceLayer) GetStartLayer ¶
func (x *GetTxsSinceLayer) GetStartLayer() uint64
func (*GetTxsSinceLayer) ProtoMessage ¶
func (*GetTxsSinceLayer) ProtoMessage()
func (*GetTxsSinceLayer) ProtoReflect ¶
func (x *GetTxsSinceLayer) ProtoReflect() protoreflect.Message
func (*GetTxsSinceLayer) Reset ¶
func (x *GetTxsSinceLayer) Reset()
func (*GetTxsSinceLayer) String ¶
func (x *GetTxsSinceLayer) String() string
type InitPost ¶
type InitPost struct { LogicalDrive string `protobuf:"bytes,1,opt,name=logicalDrive,proto3" json:"logicalDrive,omitempty"` CommitmentSize uint64 `protobuf:"varint,2,opt,name=commitmentSize,proto3" json:"commitmentSize,omitempty"` Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // contains filtered or unexported fields }
func (*InitPost) Descriptor
deprecated
func (*InitPost) GetCoinbase ¶
func (*InitPost) GetCommitmentSize ¶
func (*InitPost) GetLogicalDrive ¶
func (*InitPost) ProtoMessage ¶
func (*InitPost) ProtoMessage()
func (*InitPost) ProtoReflect ¶
func (x *InitPost) ProtoReflect() protoreflect.Message
type LogicalDriveMessage ¶
type LogicalDriveMessage struct { LogicalDrive string `protobuf:"bytes,1,opt,name=logicalDrive,proto3" json:"logicalDrive,omitempty"` // contains filtered or unexported fields }
func (*LogicalDriveMessage) Descriptor
deprecated
func (*LogicalDriveMessage) Descriptor() ([]byte, []int)
Deprecated: Use LogicalDriveMessage.ProtoReflect.Descriptor instead.
func (*LogicalDriveMessage) GetLogicalDrive ¶
func (x *LogicalDriveMessage) GetLogicalDrive() string
func (*LogicalDriveMessage) ProtoMessage ¶
func (*LogicalDriveMessage) ProtoMessage()
func (*LogicalDriveMessage) ProtoReflect ¶
func (x *LogicalDriveMessage) ProtoReflect() protoreflect.Message
func (*LogicalDriveMessage) Reset ¶
func (x *LogicalDriveMessage) Reset()
func (*LogicalDriveMessage) String ¶
func (x *LogicalDriveMessage) String() string
type MiningStats ¶
type MiningStats struct { DataDir string `protobuf:"bytes,1,opt,name=dataDir,proto3" json:"dataDir,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` RemainingBytes uint64 `protobuf:"varint,4,opt,name=remainingBytes,proto3" json:"remainingBytes,omitempty"` // contains filtered or unexported fields }
func (*MiningStats) Descriptor
deprecated
func (*MiningStats) Descriptor() ([]byte, []int)
Deprecated: Use MiningStats.ProtoReflect.Descriptor instead.
func (*MiningStats) GetCoinbase ¶
func (x *MiningStats) GetCoinbase() string
func (*MiningStats) GetDataDir ¶
func (x *MiningStats) GetDataDir() string
func (*MiningStats) GetRemainingBytes ¶
func (x *MiningStats) GetRemainingBytes() uint64
func (*MiningStats) GetStatus ¶
func (x *MiningStats) GetStatus() int32
func (*MiningStats) ProtoMessage ¶
func (*MiningStats) ProtoMessage()
func (*MiningStats) ProtoReflect ¶
func (x *MiningStats) ProtoReflect() protoreflect.Message
func (*MiningStats) Reset ¶
func (x *MiningStats) Reset()
func (*MiningStats) String ¶
func (x *MiningStats) String() string
type NodeStatus ¶
type NodeStatus struct { Peers uint64 `protobuf:"varint,1,opt,name=peers,proto3" json:"peers,omitempty"` MinPeers uint64 `protobuf:"varint,2,opt,name=minPeers,proto3" json:"minPeers,omitempty"` MaxPeers uint64 `protobuf:"varint,3,opt,name=maxPeers,proto3" json:"maxPeers,omitempty"` Synced bool `protobuf:"varint,4,opt,name=synced,proto3" json:"synced,omitempty"` SyncedLayer uint64 `protobuf:"varint,5,opt,name=syncedLayer,proto3" json:"syncedLayer,omitempty"` CurrentLayer uint64 `protobuf:"varint,6,opt,name=currentLayer,proto3" json:"currentLayer,omitempty"` VerifiedLayer uint64 `protobuf:"varint,7,opt,name=verifiedLayer,proto3" json:"verifiedLayer,omitempty"` // contains filtered or unexported fields }
func (*NodeStatus) Descriptor
deprecated
func (*NodeStatus) Descriptor() ([]byte, []int)
Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.
func (*NodeStatus) GetCurrentLayer ¶
func (x *NodeStatus) GetCurrentLayer() uint64
func (*NodeStatus) GetMaxPeers ¶
func (x *NodeStatus) GetMaxPeers() uint64
func (*NodeStatus) GetMinPeers ¶
func (x *NodeStatus) GetMinPeers() uint64
func (*NodeStatus) GetPeers ¶
func (x *NodeStatus) GetPeers() uint64
func (*NodeStatus) GetSynced ¶
func (x *NodeStatus) GetSynced() bool
func (*NodeStatus) GetSyncedLayer ¶
func (x *NodeStatus) GetSyncedLayer() uint64
func (*NodeStatus) GetVerifiedLayer ¶
func (x *NodeStatus) GetVerifiedLayer() uint64
func (*NodeStatus) ProtoMessage ¶
func (*NodeStatus) ProtoMessage()
func (*NodeStatus) ProtoReflect ¶
func (x *NodeStatus) ProtoReflect() protoreflect.Message
func (*NodeStatus) Reset ¶
func (x *NodeStatus) Reset()
func (*NodeStatus) String ¶
func (x *NodeStatus) String() string
type Reward ¶
type Reward struct { Layer uint64 `protobuf:"varint,1,opt,name=layer,proto3" json:"layer,omitempty"` TotalReward uint64 `protobuf:"varint,2,opt,name=totalReward,proto3" json:"totalReward,omitempty"` LayerRewardEstimate uint64 `protobuf:"varint,3,opt,name=layerRewardEstimate,proto3" json:"layerRewardEstimate,omitempty"` // totalReward - layerRewardEstimate = feesEstimate // contains filtered or unexported fields }
func (*Reward) Descriptor
deprecated
func (*Reward) GetLayerRewardEstimate ¶
func (*Reward) GetTotalReward ¶
func (*Reward) ProtoMessage ¶
func (*Reward) ProtoMessage()
func (*Reward) ProtoReflect ¶
func (x *Reward) ProtoReflect() protoreflect.Message
type SetLogLevel ¶
type SetLogLevel struct { LoggerName string `protobuf:"bytes,1,opt,name=loggerName,proto3" json:"loggerName,omitempty"` Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"` // contains filtered or unexported fields }
func (*SetLogLevel) Descriptor
deprecated
func (*SetLogLevel) Descriptor() ([]byte, []int)
Deprecated: Use SetLogLevel.ProtoReflect.Descriptor instead.
func (*SetLogLevel) GetLoggerName ¶
func (x *SetLogLevel) GetLoggerName() string
func (*SetLogLevel) GetSeverity ¶
func (x *SetLogLevel) GetSeverity() string
func (*SetLogLevel) ProtoMessage ¶
func (*SetLogLevel) ProtoMessage()
func (*SetLogLevel) ProtoReflect ¶
func (x *SetLogLevel) ProtoReflect() protoreflect.Message
func (*SetLogLevel) Reset ¶
func (x *SetLogLevel) Reset()
func (*SetLogLevel) String ¶
func (x *SetLogLevel) String() string
type SignedTransaction ¶
type SignedTransaction struct { Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"` // serialized with XDR // contains filtered or unexported fields }
func (*SignedTransaction) Descriptor
deprecated
func (*SignedTransaction) Descriptor() ([]byte, []int)
Deprecated: Use SignedTransaction.ProtoReflect.Descriptor instead.
func (*SignedTransaction) GetTx ¶
func (x *SignedTransaction) GetTx() []byte
func (*SignedTransaction) ProtoMessage ¶
func (*SignedTransaction) ProtoMessage()
func (*SignedTransaction) ProtoReflect ¶
func (x *SignedTransaction) ProtoReflect() protoreflect.Message
func (*SignedTransaction) Reset ¶
func (x *SignedTransaction) Reset()
func (*SignedTransaction) String ¶
func (x *SignedTransaction) String() string
type SimpleMessage ¶
type SimpleMessage struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SimpleMessage) Descriptor
deprecated
func (*SimpleMessage) Descriptor() ([]byte, []int)
Deprecated: Use SimpleMessage.ProtoReflect.Descriptor instead.
func (*SimpleMessage) GetValue ¶
func (x *SimpleMessage) GetValue() string
func (*SimpleMessage) ProtoMessage ¶
func (*SimpleMessage) ProtoMessage()
func (*SimpleMessage) ProtoReflect ¶
func (x *SimpleMessage) ProtoReflect() protoreflect.Message
func (*SimpleMessage) Reset ¶
func (x *SimpleMessage) Reset()
func (*SimpleMessage) String ¶
func (x *SimpleMessage) String() string
type SpacemeshServiceClient ¶
type SpacemeshServiceClient interface { Echo(ctx context.Context, in *SimpleMessage, opts ...grpc.CallOption) (*SimpleMessage, error) GetNonce(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*SimpleMessage, error) GetBalance(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*SimpleMessage, error) StartMining(ctx context.Context, in *InitPost, opts ...grpc.CallOption) (*SimpleMessage, error) GetTransaction(ctx context.Context, in *TransactionId, opts ...grpc.CallOption) (*Transaction, error) SubmitTransaction(ctx context.Context, in *SignedTransaction, opts ...grpc.CallOption) (*TxConfirmation, error) Broadcast(ctx context.Context, in *BroadcastMessage, opts ...grpc.CallOption) (*SimpleMessage, error) BroadcastPoet(ctx context.Context, in *BinaryMessage, opts ...grpc.CallOption) (*SimpleMessage, error) SetAwardsAddress(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*SimpleMessage, error) GetMiningStats(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MiningStats, error) GetNodeStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeStatus, error) GetGenesisTime(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SimpleMessage, error) GetUpcomingAwards(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*EligibleLayers, error) SetLoggerLevel(ctx context.Context, in *SetLogLevel, opts ...grpc.CallOption) (*SimpleMessage, error) GetAccountTxs(ctx context.Context, in *GetTxsSinceLayer, opts ...grpc.CallOption) (*AccountTxs, error) GetAccountRewards(ctx context.Context, in *AccountId, opts ...grpc.CallOption) (*AccountRewards, error) ResetPost(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SimpleMessage, error) GetStateRoot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SimpleMessage, error) }
SpacemeshServiceClient is the client API for SpacemeshService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSpacemeshServiceClient ¶
func NewSpacemeshServiceClient(cc grpc.ClientConnInterface) SpacemeshServiceClient
type SpacemeshServiceServer ¶
type SpacemeshServiceServer interface { Echo(context.Context, *SimpleMessage) (*SimpleMessage, error) GetNonce(context.Context, *AccountId) (*SimpleMessage, error) GetBalance(context.Context, *AccountId) (*SimpleMessage, error) StartMining(context.Context, *InitPost) (*SimpleMessage, error) GetTransaction(context.Context, *TransactionId) (*Transaction, error) SubmitTransaction(context.Context, *SignedTransaction) (*TxConfirmation, error) Broadcast(context.Context, *BroadcastMessage) (*SimpleMessage, error) BroadcastPoet(context.Context, *BinaryMessage) (*SimpleMessage, error) SetAwardsAddress(context.Context, *AccountId) (*SimpleMessage, error) GetMiningStats(context.Context, *empty.Empty) (*MiningStats, error) GetNodeStatus(context.Context, *empty.Empty) (*NodeStatus, error) GetGenesisTime(context.Context, *empty.Empty) (*SimpleMessage, error) GetUpcomingAwards(context.Context, *empty.Empty) (*EligibleLayers, error) SetLoggerLevel(context.Context, *SetLogLevel) (*SimpleMessage, error) GetAccountTxs(context.Context, *GetTxsSinceLayer) (*AccountTxs, error) GetAccountRewards(context.Context, *AccountId) (*AccountRewards, error) ResetPost(context.Context, *empty.Empty) (*SimpleMessage, error) GetStateRoot(context.Context, *empty.Empty) (*SimpleMessage, error) }
SpacemeshServiceServer is the server API for SpacemeshService service.
type Transaction ¶
type Transaction struct { TxId *TransactionId `protobuf:"bytes,1,opt,name=txId,proto3" json:"txId,omitempty"` Sender *AccountId `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *AccountId `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` Fee uint64 `protobuf:"varint,5,opt,name=fee,proto3" json:"fee,omitempty"` Status TxStatus `protobuf:"varint,6,opt,name=status,proto3,enum=pb.TxStatus" json:"status,omitempty"` LayerId uint64 `protobuf:"varint,7,opt,name=layerId,proto3" json:"layerId,omitempty"` Timestamp uint64 `protobuf:"varint,8,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Transaction) Descriptor
deprecated
func (*Transaction) Descriptor() ([]byte, []int)
Deprecated: Use Transaction.ProtoReflect.Descriptor instead.
func (*Transaction) GetAmount ¶
func (x *Transaction) GetAmount() uint64
func (*Transaction) GetFee ¶
func (x *Transaction) GetFee() uint64
func (*Transaction) GetLayerId ¶
func (x *Transaction) GetLayerId() uint64
func (*Transaction) GetReceiver ¶
func (x *Transaction) GetReceiver() *AccountId
func (*Transaction) GetSender ¶
func (x *Transaction) GetSender() *AccountId
func (*Transaction) GetStatus ¶
func (x *Transaction) GetStatus() TxStatus
func (*Transaction) GetTimestamp ¶
func (x *Transaction) GetTimestamp() uint64
func (*Transaction) GetTxId ¶
func (x *Transaction) GetTxId() *TransactionId
func (*Transaction) ProtoMessage ¶
func (*Transaction) ProtoMessage()
func (*Transaction) ProtoReflect ¶
func (x *Transaction) ProtoReflect() protoreflect.Message
func (*Transaction) Reset ¶
func (x *Transaction) Reset()
func (*Transaction) String ¶
func (x *Transaction) String() string
type TransactionId ¶
type TransactionId struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*TransactionId) Descriptor
deprecated
func (*TransactionId) Descriptor() ([]byte, []int)
Deprecated: Use TransactionId.ProtoReflect.Descriptor instead.
func (*TransactionId) GetId ¶
func (x *TransactionId) GetId() []byte
func (*TransactionId) ProtoMessage ¶
func (*TransactionId) ProtoMessage()
func (*TransactionId) ProtoReflect ¶
func (x *TransactionId) ProtoReflect() protoreflect.Message
func (*TransactionId) Reset ¶
func (x *TransactionId) Reset()
func (*TransactionId) String ¶
func (x *TransactionId) String() string
type TransferFunds ¶
type TransferFunds struct { Sender *AccountId `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Receiver *AccountId `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Nonce uint64 `protobuf:"varint,3,opt,name=nonce,proto3" json:"nonce,omitempty"` Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*TransferFunds) Descriptor
deprecated
func (*TransferFunds) Descriptor() ([]byte, []int)
Deprecated: Use TransferFunds.ProtoReflect.Descriptor instead.
func (*TransferFunds) GetAmount ¶
func (x *TransferFunds) GetAmount() uint64
func (*TransferFunds) GetNonce ¶
func (x *TransferFunds) GetNonce() uint64
func (*TransferFunds) GetReceiver ¶
func (x *TransferFunds) GetReceiver() *AccountId
func (*TransferFunds) GetSender ¶
func (x *TransferFunds) GetSender() *AccountId
func (*TransferFunds) ProtoMessage ¶
func (*TransferFunds) ProtoMessage()
func (*TransferFunds) ProtoReflect ¶
func (x *TransferFunds) ProtoReflect() protoreflect.Message
func (*TransferFunds) Reset ¶
func (x *TransferFunds) Reset()
func (*TransferFunds) String ¶
func (x *TransferFunds) String() string
type TxConfirmation ¶
type TxConfirmation struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*TxConfirmation) Descriptor
deprecated
func (*TxConfirmation) Descriptor() ([]byte, []int)
Deprecated: Use TxConfirmation.ProtoReflect.Descriptor instead.
func (*TxConfirmation) GetId ¶
func (x *TxConfirmation) GetId() string
func (*TxConfirmation) GetValue ¶
func (x *TxConfirmation) GetValue() string
func (*TxConfirmation) ProtoMessage ¶
func (*TxConfirmation) ProtoMessage()
func (*TxConfirmation) ProtoReflect ¶
func (x *TxConfirmation) ProtoReflect() protoreflect.Message
func (*TxConfirmation) Reset ¶
func (x *TxConfirmation) Reset()
func (*TxConfirmation) String ¶
func (x *TxConfirmation) String() string
type TxStatus ¶
type TxStatus int32
func (TxStatus) Descriptor ¶
func (TxStatus) Descriptor() protoreflect.EnumDescriptor
func (TxStatus) EnumDescriptor
deprecated
func (TxStatus) Number ¶
func (x TxStatus) Number() protoreflect.EnumNumber
func (TxStatus) Type ¶
func (TxStatus) Type() protoreflect.EnumType
type UnimplementedSpacemeshServiceServer ¶
type UnimplementedSpacemeshServiceServer struct { }
UnimplementedSpacemeshServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedSpacemeshServiceServer) Broadcast ¶
func (*UnimplementedSpacemeshServiceServer) Broadcast(context.Context, *BroadcastMessage) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) BroadcastPoet ¶
func (*UnimplementedSpacemeshServiceServer) BroadcastPoet(context.Context, *BinaryMessage) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) Echo ¶
func (*UnimplementedSpacemeshServiceServer) Echo(context.Context, *SimpleMessage) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) GetAccountRewards ¶
func (*UnimplementedSpacemeshServiceServer) GetAccountRewards(context.Context, *AccountId) (*AccountRewards, error)
func (*UnimplementedSpacemeshServiceServer) GetAccountTxs ¶
func (*UnimplementedSpacemeshServiceServer) GetAccountTxs(context.Context, *GetTxsSinceLayer) (*AccountTxs, error)
func (*UnimplementedSpacemeshServiceServer) GetBalance ¶
func (*UnimplementedSpacemeshServiceServer) GetBalance(context.Context, *AccountId) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) GetGenesisTime ¶
func (*UnimplementedSpacemeshServiceServer) GetGenesisTime(context.Context, *empty.Empty) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) GetMiningStats ¶
func (*UnimplementedSpacemeshServiceServer) GetMiningStats(context.Context, *empty.Empty) (*MiningStats, error)
func (*UnimplementedSpacemeshServiceServer) GetNodeStatus ¶
func (*UnimplementedSpacemeshServiceServer) GetNodeStatus(context.Context, *empty.Empty) (*NodeStatus, error)
func (*UnimplementedSpacemeshServiceServer) GetNonce ¶
func (*UnimplementedSpacemeshServiceServer) GetNonce(context.Context, *AccountId) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) GetStateRoot ¶
func (*UnimplementedSpacemeshServiceServer) GetStateRoot(context.Context, *empty.Empty) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) GetTransaction ¶
func (*UnimplementedSpacemeshServiceServer) GetTransaction(context.Context, *TransactionId) (*Transaction, error)
func (*UnimplementedSpacemeshServiceServer) GetUpcomingAwards ¶
func (*UnimplementedSpacemeshServiceServer) GetUpcomingAwards(context.Context, *empty.Empty) (*EligibleLayers, error)
func (*UnimplementedSpacemeshServiceServer) ResetPost ¶
func (*UnimplementedSpacemeshServiceServer) ResetPost(context.Context, *empty.Empty) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) SetAwardsAddress ¶
func (*UnimplementedSpacemeshServiceServer) SetAwardsAddress(context.Context, *AccountId) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) SetLoggerLevel ¶
func (*UnimplementedSpacemeshServiceServer) SetLoggerLevel(context.Context, *SetLogLevel) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) StartMining ¶
func (*UnimplementedSpacemeshServiceServer) StartMining(context.Context, *InitPost) (*SimpleMessage, error)
func (*UnimplementedSpacemeshServiceServer) SubmitTransaction ¶
func (*UnimplementedSpacemeshServiceServer) SubmitTransaction(context.Context, *SignedTransaction) (*TxConfirmation, error)