pb

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AccountId.ProtoReflect.Descriptor instead.

func (*AccountId) GetAddress

func (x *AccountId) GetAddress() string

func (*AccountId) ProtoMessage

func (*AccountId) ProtoMessage()

func (*AccountId) ProtoReflect

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

func (*AccountId) Reset

func (x *AccountId) Reset()

func (*AccountId) String

func (x *AccountId) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use InitPost.ProtoReflect.Descriptor instead.

func (*InitPost) GetCoinbase

func (x *InitPost) GetCoinbase() string

func (*InitPost) GetCommitmentSize

func (x *InitPost) GetCommitmentSize() uint64

func (*InitPost) GetLogicalDrive

func (x *InitPost) GetLogicalDrive() string

func (*InitPost) ProtoMessage

func (*InitPost) ProtoMessage()

func (*InitPost) ProtoReflect

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

func (*InitPost) Reset

func (x *InitPost) Reset()

func (*InitPost) String

func (x *InitPost) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetLayer

func (x *Reward) GetLayer() uint64

func (*Reward) GetLayerRewardEstimate

func (x *Reward) GetLayerRewardEstimate() uint64

func (*Reward) GetTotalReward

func (x *Reward) GetTotalReward() uint64

func (*Reward) ProtoMessage

func (*Reward) ProtoMessage()

func (*Reward) ProtoReflect

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

func (*Reward) Reset

func (x *Reward) Reset()

func (*Reward) String

func (x *Reward) String() string

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.

type SpacemeshServiceServer

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
const (
	TxStatus_REJECTED TxStatus = 0
	//INSUFFICIENT_FUNDS = 1;
	//CONFLICTING = 2;
	TxStatus_PENDING TxStatus = 3
	//PROCESSING = 4;
	//APPROVED = 5;
	TxStatus_CONFIRMED TxStatus = 6
)

func (TxStatus) Descriptor

func (TxStatus) Descriptor() protoreflect.EnumDescriptor

func (TxStatus) Enum

func (x TxStatus) Enum() *TxStatus

func (TxStatus) EnumDescriptor deprecated

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

Deprecated: Use TxStatus.Descriptor instead.

func (TxStatus) Number

func (x TxStatus) Number() protoreflect.EnumNumber

func (TxStatus) String

func (x TxStatus) String() string

func (TxStatus) Type

type UnimplementedSpacemeshServiceServer

type UnimplementedSpacemeshServiceServer struct {
}

UnimplementedSpacemeshServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSpacemeshServiceServer) Broadcast

func (*UnimplementedSpacemeshServiceServer) BroadcastPoet

func (*UnimplementedSpacemeshServiceServer) Echo

func (*UnimplementedSpacemeshServiceServer) GetAccountRewards

func (*UnimplementedSpacemeshServiceServer) GetAccountTxs

func (*UnimplementedSpacemeshServiceServer) GetBalance

func (*UnimplementedSpacemeshServiceServer) GetGenesisTime

func (*UnimplementedSpacemeshServiceServer) GetMiningStats

func (*UnimplementedSpacemeshServiceServer) GetNodeStatus

func (*UnimplementedSpacemeshServiceServer) GetNonce

func (*UnimplementedSpacemeshServiceServer) GetStateRoot

func (*UnimplementedSpacemeshServiceServer) GetTransaction

func (*UnimplementedSpacemeshServiceServer) GetUpcomingAwards

func (*UnimplementedSpacemeshServiceServer) ResetPost

func (*UnimplementedSpacemeshServiceServer) SetAwardsAddress

func (*UnimplementedSpacemeshServiceServer) SetLoggerLevel

func (*UnimplementedSpacemeshServiceServer) StartMining

func (*UnimplementedSpacemeshServiceServer) SubmitTransaction

Jump to

Keyboard shortcuts

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