v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 17 Imported by: 29

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountDataFlag_name = map[int32]string{
		0: "ACCOUNT_DATA_FLAG_UNSPECIFIED",
		1: "ACCOUNT_DATA_FLAG_TRANSACTION_RECEIPT",
		2: "ACCOUNT_DATA_FLAG_REWARD",
		4: "ACCOUNT_DATA_FLAG_ACCOUNT",
	}
	AccountDataFlag_value = map[string]int32{
		"ACCOUNT_DATA_FLAG_UNSPECIFIED":         0,
		"ACCOUNT_DATA_FLAG_TRANSACTION_RECEIPT": 1,
		"ACCOUNT_DATA_FLAG_REWARD":              2,
		"ACCOUNT_DATA_FLAG_ACCOUNT":             4,
	}
)

Enum value maps for AccountDataFlag.

View Source
var (
	GlobalStateDataFlag_name = map[int32]string{
		0: "GLOBAL_STATE_DATA_FLAG_UNSPECIFIED",
		1: "GLOBAL_STATE_DATA_FLAG_TRANSACTION_RECEIPT",
		2: "GLOBAL_STATE_DATA_FLAG_REWARD",
		4: "GLOBAL_STATE_DATA_FLAG_ACCOUNT",
		8: "GLOBAL_STATE_DATA_FLAG_GLOBAL_STATE_HASH",
	}
	GlobalStateDataFlag_value = map[string]int32{
		"GLOBAL_STATE_DATA_FLAG_UNSPECIFIED":         0,
		"GLOBAL_STATE_DATA_FLAG_TRANSACTION_RECEIPT": 1,
		"GLOBAL_STATE_DATA_FLAG_REWARD":              2,
		"GLOBAL_STATE_DATA_FLAG_ACCOUNT":             4,
		"GLOBAL_STATE_DATA_FLAG_GLOBAL_STATE_HASH":   8,
	}
)

Enum value maps for GlobalStateDataFlag.

View Source
var (
	TransactionReceipt_TransactionResult_name = map[int32]string{
		0: "TRANSACTION_RESULT_UNSPECIFIED",
		1: "TRANSACTION_RESULT_EXECUTED",
		2: "TRANSACTION_RESULT_BAD_COUNTER",
		3: "TRANSACTION_RESULT_RUNTIME_EXCEPTION",
		4: "TRANSACTION_RESULT_INSUFFICIENT_GAS",
		5: "TRANSACTION_RESULT_INSUFFICIENT_FUNDS",
	}
	TransactionReceipt_TransactionResult_value = map[string]int32{
		"TRANSACTION_RESULT_UNSPECIFIED":        0,
		"TRANSACTION_RESULT_EXECUTED":           1,
		"TRANSACTION_RESULT_BAD_COUNTER":        2,
		"TRANSACTION_RESULT_RUNTIME_EXCEPTION":  3,
		"TRANSACTION_RESULT_INSUFFICIENT_GAS":   4,
		"TRANSACTION_RESULT_INSUFFICIENT_FUNDS": 5,
	}
)

Enum value maps for TransactionReceipt_TransactionResult.

View Source
var (
	AccountMeshDataFlag_name = map[int32]string{
		0: "ACCOUNT_MESH_DATA_FLAG_UNSPECIFIED",
		1: "ACCOUNT_MESH_DATA_FLAG_TRANSACTIONS",
		2: "ACCOUNT_MESH_DATA_FLAG_ACTIVATIONS",
	}
	AccountMeshDataFlag_value = map[string]int32{
		"ACCOUNT_MESH_DATA_FLAG_UNSPECIFIED":  0,
		"ACCOUNT_MESH_DATA_FLAG_TRANSACTIONS": 1,
		"ACCOUNT_MESH_DATA_FLAG_ACTIVATIONS":  2,
	}
)

Enum value maps for AccountMeshDataFlag.

View Source
var (
	LogLevel_name = map[int32]string{
		0: "LOG_LEVEL_UNSPECIFIED",
		1: "LOG_LEVEL_DEBUG",
		2: "LOG_LEVEL_INFO",
		3: "LOG_LEVEL_WARN",
		4: "LOG_LEVEL_ERROR",
		5: "LOG_LEVEL_DPANIC",
		6: "LOG_LEVEL_PANIC",
		7: "LOG_LEVEL_FATAL",
	}
	LogLevel_value = map[string]int32{
		"LOG_LEVEL_UNSPECIFIED": 0,
		"LOG_LEVEL_DEBUG":       1,
		"LOG_LEVEL_INFO":        2,
		"LOG_LEVEL_WARN":        3,
		"LOG_LEVEL_ERROR":       4,
		"LOG_LEVEL_DPANIC":      5,
		"LOG_LEVEL_PANIC":       6,
		"LOG_LEVEL_FATAL":       7,
	}
)

Enum value maps for LogLevel.

View Source
var (
	PostSetupComputeProvider_ComputeApiClass_name = map[int32]string{
		0: "COMPUTE_API_CLASS_UNSPECIFIED",
		1: "COMPUTE_API_CLASS_CPU",
		2: "COMPUTE_API_CLASS_CUDA",
		3: "COMPUTE_API_CLASS_VULKAN",
	}
	PostSetupComputeProvider_ComputeApiClass_value = map[string]int32{
		"COMPUTE_API_CLASS_UNSPECIFIED": 0,
		"COMPUTE_API_CLASS_CPU":         1,
		"COMPUTE_API_CLASS_CUDA":        2,
		"COMPUTE_API_CLASS_VULKAN":      3,
	}
)

Enum value maps for PostSetupComputeProvider_ComputeApiClass.

View Source
var (
	PostSetupStatus_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STATE_NOT_STARTED",
		2: "STATE_IN_PROGRESS",
		3: "STATE_COMPLETE",
		4: "STATE_ERROR",
	}
	PostSetupStatus_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"STATE_NOT_STARTED": 1,
		"STATE_IN_PROGRESS": 2,
		"STATE_COMPLETE":    3,
		"STATE_ERROR":       4,
	}
)

Enum value maps for PostSetupStatus_State.

View Source
var (
	TransactionState_TransactionState_name = map[int32]string{
		0: "TRANSACTION_STATE_UNSPECIFIED",
		1: "TRANSACTION_STATE_REJECTED",
		2: "TRANSACTION_STATE_INSUFFICIENT_FUNDS",
		3: "TRANSACTION_STATE_CONFLICTING",
		4: "TRANSACTION_STATE_MEMPOOL",
		5: "TRANSACTION_STATE_MESH",
		6: "TRANSACTION_STATE_PROCESSED",
	}
	TransactionState_TransactionState_value = map[string]int32{
		"TRANSACTION_STATE_UNSPECIFIED":        0,
		"TRANSACTION_STATE_REJECTED":           1,
		"TRANSACTION_STATE_INSUFFICIENT_FUNDS": 2,
		"TRANSACTION_STATE_CONFLICTING":        3,
		"TRANSACTION_STATE_MEMPOOL":            4,
		"TRANSACTION_STATE_MESH":               5,
		"TRANSACTION_STATE_PROCESSED":          6,
	}
)

Enum value maps for TransactionState_TransactionState.

View Source
var (
	SmartContractTransaction_TransactionType_name = map[int32]string{
		0: "TRANSACTION_TYPE_UNSPECIFIED",
		1: "TRANSACTION_TYPE_APP",
		2: "TRANSACTION_TYPE_APP_SPAWN_APP",
		3: "TRANSACTION_TYPE_DEPLOY_TEMPLATE",
	}
	SmartContractTransaction_TransactionType_value = map[string]int32{
		"TRANSACTION_TYPE_UNSPECIFIED":     0,
		"TRANSACTION_TYPE_APP":             1,
		"TRANSACTION_TYPE_APP_SPAWN_APP":   2,
		"TRANSACTION_TYPE_DEPLOY_TEMPLATE": 3,
	}
)

Enum value maps for SmartContractTransaction_TransactionType.

View Source
var (
	Signature_Scheme_name = map[int32]string{
		0: "SCHEME_UNSPECIFIED",
		1: "SCHEME_ED25519",
		2: "SCHEME_ED25519_PLUS_PLUS",
	}
	Signature_Scheme_value = map[string]int32{
		"SCHEME_UNSPECIFIED":       0,
		"SCHEME_ED25519":           1,
		"SCHEME_ED25519_PLUS_PLUS": 2,
	}
)

Enum value maps for Signature_Scheme.

View Source
var (
	Layer_LayerStatus_name = map[int32]string{
		0: "LAYER_STATUS_UNSPECIFIED",
		1: "LAYER_STATUS_APPROVED",
		2: "LAYER_STATUS_CONFIRMED",
	}
	Layer_LayerStatus_value = map[string]int32{
		"LAYER_STATUS_UNSPECIFIED": 0,
		"LAYER_STATUS_APPROVED":    1,
		"LAYER_STATUS_CONFIRMED":   2,
	}
)

Enum value maps for Layer_LayerStatus.

View Source
var File_spacemesh_v1_debug_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_debug_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_gateway_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_gateway_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_global_state_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_global_state_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_mesh_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_mesh_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_node_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_node_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_smesher_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_smesher_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_tx_types_proto protoreflect.FileDescriptor
View Source
var File_spacemesh_v1_types_proto protoreflect.FileDescriptor

Functions

func RegisterDebugServiceHandler

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

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

func RegisterDebugServiceHandlerClient

func RegisterDebugServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DebugServiceClient) error

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

func RegisterDebugServiceHandlerFromEndpoint

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

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

func RegisterDebugServiceHandlerServer

func RegisterDebugServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DebugServiceServer) error

RegisterDebugServiceHandlerServer registers the http handlers for service DebugService to "mux". UnaryRPC :call DebugServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterDebugServiceServer

func RegisterDebugServiceServer(s *grpc.Server, srv DebugServiceServer)

func RegisterGatewayServiceHandler

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

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

func RegisterGatewayServiceHandlerClient

func RegisterGatewayServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GatewayServiceClient) error

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

func RegisterGatewayServiceHandlerFromEndpoint

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

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

func RegisterGatewayServiceHandlerServer

func RegisterGatewayServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GatewayServiceServer) error

RegisterGatewayServiceHandlerServer registers the http handlers for service GatewayService to "mux". UnaryRPC :call GatewayServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterGatewayServiceServer

func RegisterGatewayServiceServer(s *grpc.Server, srv GatewayServiceServer)

func RegisterGlobalStateServiceHandler

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

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

func RegisterGlobalStateServiceHandlerClient

func RegisterGlobalStateServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GlobalStateServiceClient) error

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

func RegisterGlobalStateServiceHandlerFromEndpoint

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

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

func RegisterGlobalStateServiceHandlerServer

func RegisterGlobalStateServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GlobalStateServiceServer) error

RegisterGlobalStateServiceHandlerServer registers the http handlers for service GlobalStateService to "mux". UnaryRPC :call GlobalStateServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterGlobalStateServiceServer

func RegisterGlobalStateServiceServer(s *grpc.Server, srv GlobalStateServiceServer)

func RegisterMeshServiceHandler

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

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

func RegisterMeshServiceHandlerClient

func RegisterMeshServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MeshServiceClient) error

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

func RegisterMeshServiceHandlerFromEndpoint

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

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

func RegisterMeshServiceHandlerServer

func RegisterMeshServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MeshServiceServer) error

RegisterMeshServiceHandlerServer registers the http handlers for service MeshService to "mux". UnaryRPC :call MeshServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterMeshServiceServer

func RegisterMeshServiceServer(s *grpc.Server, srv MeshServiceServer)

func RegisterNodeServiceHandler

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

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

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

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.

func RegisterNodeServiceServer

func RegisterNodeServiceServer(s *grpc.Server, srv NodeServiceServer)

func RegisterSmesherServiceHandler

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

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

func RegisterSmesherServiceHandlerClient

func RegisterSmesherServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SmesherServiceClient) error

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

func RegisterSmesherServiceHandlerFromEndpoint

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

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

func RegisterSmesherServiceHandlerServer

func RegisterSmesherServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SmesherServiceServer) error

RegisterSmesherServiceHandlerServer registers the http handlers for service SmesherService to "mux". UnaryRPC :call SmesherServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterSmesherServiceServer

func RegisterSmesherServiceServer(s *grpc.Server, srv SmesherServiceServer)

func RegisterTransactionServiceHandler

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

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

func RegisterTransactionServiceHandlerClient

func RegisterTransactionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TransactionServiceClient) error

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

func RegisterTransactionServiceHandlerFromEndpoint

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

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

func RegisterTransactionServiceHandlerServer

func RegisterTransactionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TransactionServiceServer) error

RegisterTransactionServiceHandlerServer registers the http handlers for service TransactionService to "mux". UnaryRPC :call TransactionServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterTransactionServiceServer

func RegisterTransactionServiceServer(s *grpc.Server, srv TransactionServiceServer)

Types

type Account

type Account struct {
	AccountId      *AccountId    `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`                // account public address
	StateCurrent   *AccountState `protobuf:"bytes,2,opt,name=state_current,json=stateCurrent,proto3" json:"state_current,omitempty"`       // current state
	StateProjected *AccountState `protobuf:"bytes,3,opt,name=state_projected,json=stateProjected,proto3" json:"state_projected,omitempty"` // projected state (includes pending txs)
	// contains filtered or unexported fields
}

func (*Account) Descriptor deprecated

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

Deprecated: Use Account.ProtoReflect.Descriptor instead.

func (*Account) GetAccountId

func (x *Account) GetAccountId() *AccountId

func (*Account) GetStateCurrent

func (x *Account) GetStateCurrent() *AccountState

func (*Account) GetStateProjected

func (x *Account) GetStateProjected() *AccountState

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) ProtoReflect

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

func (*Account) Reset

func (x *Account) Reset()

func (*Account) String

func (x *Account) String() string

type AccountData

type AccountData struct {

	// Types that are assignable to Datum:
	//	*AccountData_Reward
	//	*AccountData_Receipt
	//	*AccountData_AccountWrapper
	Datum isAccountData_Datum `protobuf_oneof:"datum"`
	// contains filtered or unexported fields
}

All data items that touch an account: receipts for transactions from, or to this account, as well as those that modify its state (e.g., token transfers). Rewards here includes fees paid. Account contains counter and balance updates. Note that this mixes concerns: transactions and rewards are _causes_ of a change to account state; nonce and balance updates are _results_.

func (*AccountData) Descriptor deprecated

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

Deprecated: Use AccountData.ProtoReflect.Descriptor instead.

func (*AccountData) GetAccountWrapper

func (x *AccountData) GetAccountWrapper() *Account

func (*AccountData) GetDatum

func (m *AccountData) GetDatum() isAccountData_Datum

func (*AccountData) GetReceipt

func (x *AccountData) GetReceipt() *TransactionReceipt

func (*AccountData) GetReward

func (x *AccountData) GetReward() *Reward

func (*AccountData) ProtoMessage

func (*AccountData) ProtoMessage()

func (*AccountData) ProtoReflect

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

func (*AccountData) Reset

func (x *AccountData) Reset()

func (*AccountData) String

func (x *AccountData) String() string

type AccountDataFilter

type AccountDataFilter struct {
	AccountId        *AccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AccountDataFlags uint32     `protobuf:"varint,2,opt,name=account_data_flags,json=accountDataFlags,proto3" json:"account_data_flags,omitempty"` // bit field of AccountDataFlag
	// contains filtered or unexported fields
}

func (*AccountDataFilter) Descriptor deprecated

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

Deprecated: Use AccountDataFilter.ProtoReflect.Descriptor instead.

func (*AccountDataFilter) GetAccountDataFlags

func (x *AccountDataFilter) GetAccountDataFlags() uint32

func (*AccountDataFilter) GetAccountId

func (x *AccountDataFilter) GetAccountId() *AccountId

func (*AccountDataFilter) ProtoMessage

func (*AccountDataFilter) ProtoMessage()

func (*AccountDataFilter) ProtoReflect

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

func (*AccountDataFilter) Reset

func (x *AccountDataFilter) Reset()

func (*AccountDataFilter) String

func (x *AccountDataFilter) String() string

type AccountDataFlag

type AccountDataFlag int32

All data items that touch an account (see below note, under the associated message)

const (
	AccountDataFlag_ACCOUNT_DATA_FLAG_UNSPECIFIED         AccountDataFlag = 0
	AccountDataFlag_ACCOUNT_DATA_FLAG_TRANSACTION_RECEIPT AccountDataFlag = 1 // tx receipt for a tx to or from an account
	AccountDataFlag_ACCOUNT_DATA_FLAG_REWARD              AccountDataFlag = 2 // reward awarded to an account
	AccountDataFlag_ACCOUNT_DATA_FLAG_ACCOUNT             AccountDataFlag = 4 // account data changes (counter or balance)
)

func (AccountDataFlag) Descriptor

func (AccountDataFlag) Enum

func (x AccountDataFlag) Enum() *AccountDataFlag

func (AccountDataFlag) EnumDescriptor deprecated

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

Deprecated: Use AccountDataFlag.Descriptor instead.

func (AccountDataFlag) Number

func (AccountDataFlag) String

func (x AccountDataFlag) String() string

func (AccountDataFlag) Type

type AccountDataQueryRequest

type AccountDataQueryRequest struct {
	Filter     *AccountDataFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	MaxResults uint32             `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // max numbers of results client would like to get
	Offset     uint32             `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`                           // return results from offset
	// contains filtered or unexported fields
}

func (*AccountDataQueryRequest) Descriptor deprecated

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

Deprecated: Use AccountDataQueryRequest.ProtoReflect.Descriptor instead.

func (*AccountDataQueryRequest) GetFilter

func (*AccountDataQueryRequest) GetMaxResults

func (x *AccountDataQueryRequest) GetMaxResults() uint32

func (*AccountDataQueryRequest) GetOffset

func (x *AccountDataQueryRequest) GetOffset() uint32

func (*AccountDataQueryRequest) ProtoMessage

func (*AccountDataQueryRequest) ProtoMessage()

func (*AccountDataQueryRequest) ProtoReflect

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

func (*AccountDataQueryRequest) Reset

func (x *AccountDataQueryRequest) Reset()

func (*AccountDataQueryRequest) String

func (x *AccountDataQueryRequest) String() string

type AccountDataQueryResponse

type AccountDataQueryResponse struct {
	TotalResults uint32         `protobuf:"varint,1,opt,name=total_results,json=totalResults,proto3" json:"total_results,omitempty"`
	AccountItem  []*AccountData `protobuf:"bytes,2,rep,name=account_item,json=accountItem,proto3" json:"account_item,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountDataQueryResponse) Descriptor deprecated

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

Deprecated: Use AccountDataQueryResponse.ProtoReflect.Descriptor instead.

func (*AccountDataQueryResponse) GetAccountItem

func (x *AccountDataQueryResponse) GetAccountItem() []*AccountData

func (*AccountDataQueryResponse) GetTotalResults

func (x *AccountDataQueryResponse) GetTotalResults() uint32

func (*AccountDataQueryResponse) ProtoMessage

func (*AccountDataQueryResponse) ProtoMessage()

func (*AccountDataQueryResponse) ProtoReflect

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

func (*AccountDataQueryResponse) Reset

func (x *AccountDataQueryResponse) Reset()

func (*AccountDataQueryResponse) String

func (x *AccountDataQueryResponse) String() string

type AccountDataStreamRequest

type AccountDataStreamRequest struct {
	Filter *AccountDataFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountDataStreamRequest) Descriptor deprecated

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

Deprecated: Use AccountDataStreamRequest.ProtoReflect.Descriptor instead.

func (*AccountDataStreamRequest) GetFilter

func (*AccountDataStreamRequest) ProtoMessage

func (*AccountDataStreamRequest) ProtoMessage()

func (*AccountDataStreamRequest) ProtoReflect

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

func (*AccountDataStreamRequest) Reset

func (x *AccountDataStreamRequest) Reset()

func (*AccountDataStreamRequest) String

func (x *AccountDataStreamRequest) String() string

type AccountDataStreamResponse

type AccountDataStreamResponse struct {
	Datum *AccountData `protobuf:"bytes,1,opt,name=datum,proto3" json:"datum,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountDataStreamResponse) Descriptor deprecated

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

Deprecated: Use AccountDataStreamResponse.ProtoReflect.Descriptor instead.

func (*AccountDataStreamResponse) GetDatum

func (x *AccountDataStreamResponse) GetDatum() *AccountData

func (*AccountDataStreamResponse) ProtoMessage

func (*AccountDataStreamResponse) ProtoMessage()

func (*AccountDataStreamResponse) ProtoReflect

func (*AccountDataStreamResponse) Reset

func (x *AccountDataStreamResponse) Reset()

func (*AccountDataStreamResponse) String

func (x *AccountDataStreamResponse) String() string

type AccountData_AccountWrapper

type AccountData_AccountWrapper struct {
	AccountWrapper *Account `protobuf:"bytes,3,opt,name=account_wrapper,json=accountWrapper,proto3,oneof"`
}

type AccountData_Receipt

type AccountData_Receipt struct {
	Receipt *TransactionReceipt `protobuf:"bytes,2,opt,name=receipt,proto3,oneof"`
}

type AccountData_Reward

type AccountData_Reward struct {
	Reward *Reward `protobuf:"bytes,1,opt,name=reward,proto3,oneof"`
}

type AccountId

type AccountId struct {
	Address []byte `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() []byte

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 AccountMeshData

type AccountMeshData struct {

	// Types that are assignable to Datum:
	//	*AccountMeshData_MeshTransaction
	//	*AccountMeshData_Activation
	Datum isAccountMeshData_Datum `protobuf_oneof:"datum"`
	// contains filtered or unexported fields
}

func (*AccountMeshData) Descriptor deprecated

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

Deprecated: Use AccountMeshData.ProtoReflect.Descriptor instead.

func (*AccountMeshData) GetActivation

func (x *AccountMeshData) GetActivation() *Activation

func (*AccountMeshData) GetDatum

func (m *AccountMeshData) GetDatum() isAccountMeshData_Datum

func (*AccountMeshData) GetMeshTransaction

func (x *AccountMeshData) GetMeshTransaction() *MeshTransaction

func (*AccountMeshData) ProtoMessage

func (*AccountMeshData) ProtoMessage()

func (*AccountMeshData) ProtoReflect

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

func (*AccountMeshData) Reset

func (x *AccountMeshData) Reset()

func (*AccountMeshData) String

func (x *AccountMeshData) String() string

type AccountMeshDataFilter

type AccountMeshDataFilter struct {
	AccountId            *AccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	AccountMeshDataFlags uint32     `` // A bit field of AccountMeshDataFlags
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*AccountMeshDataFilter) Descriptor deprecated

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

Deprecated: Use AccountMeshDataFilter.ProtoReflect.Descriptor instead.

func (*AccountMeshDataFilter) GetAccountId

func (x *AccountMeshDataFilter) GetAccountId() *AccountId

func (*AccountMeshDataFilter) GetAccountMeshDataFlags

func (x *AccountMeshDataFilter) GetAccountMeshDataFlags() uint32

func (*AccountMeshDataFilter) ProtoMessage

func (*AccountMeshDataFilter) ProtoMessage()

func (*AccountMeshDataFilter) ProtoReflect

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

func (*AccountMeshDataFilter) Reset

func (x *AccountMeshDataFilter) Reset()

func (*AccountMeshDataFilter) String

func (x *AccountMeshDataFilter) String() string

type AccountMeshDataFlag

type AccountMeshDataFlag int32
const (
	AccountMeshDataFlag_ACCOUNT_MESH_DATA_FLAG_UNSPECIFIED  AccountMeshDataFlag = 0
	AccountMeshDataFlag_ACCOUNT_MESH_DATA_FLAG_TRANSACTIONS AccountMeshDataFlag = 1
	AccountMeshDataFlag_ACCOUNT_MESH_DATA_FLAG_ACTIVATIONS  AccountMeshDataFlag = 2
)

func (AccountMeshDataFlag) Descriptor

func (AccountMeshDataFlag) Enum

func (AccountMeshDataFlag) EnumDescriptor deprecated

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

Deprecated: Use AccountMeshDataFlag.Descriptor instead.

func (AccountMeshDataFlag) Number

func (AccountMeshDataFlag) String

func (x AccountMeshDataFlag) String() string

func (AccountMeshDataFlag) Type

type AccountMeshDataQueryRequest

type AccountMeshDataQueryRequest struct {
	Filter     *AccountMeshDataFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	MinLayer   *LayerNumber           `protobuf:"bytes,2,opt,name=min_layer,json=minLayer,proto3" json:"min_layer,omitempty"`        // return data only from this layer or later
	MaxResults uint32                 `protobuf:"varint,3,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // max number of results to return
	Offset     uint32                 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`                           // query offset
	// contains filtered or unexported fields
}

func (*AccountMeshDataQueryRequest) Descriptor deprecated

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

Deprecated: Use AccountMeshDataQueryRequest.ProtoReflect.Descriptor instead.

func (*AccountMeshDataQueryRequest) GetFilter

func (*AccountMeshDataQueryRequest) GetMaxResults

func (x *AccountMeshDataQueryRequest) GetMaxResults() uint32

func (*AccountMeshDataQueryRequest) GetMinLayer

func (x *AccountMeshDataQueryRequest) GetMinLayer() *LayerNumber

func (*AccountMeshDataQueryRequest) GetOffset

func (x *AccountMeshDataQueryRequest) GetOffset() uint32

func (*AccountMeshDataQueryRequest) ProtoMessage

func (*AccountMeshDataQueryRequest) ProtoMessage()

func (*AccountMeshDataQueryRequest) ProtoReflect

func (*AccountMeshDataQueryRequest) Reset

func (x *AccountMeshDataQueryRequest) Reset()

func (*AccountMeshDataQueryRequest) String

func (x *AccountMeshDataQueryRequest) String() string

type AccountMeshDataQueryResponse

type AccountMeshDataQueryResponse struct {
	Data         []*AccountMeshData `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
	TotalResults uint32             `protobuf:"varint,2,opt,name=total_results,json=totalResults,proto3" json:"total_results,omitempty"` // total number of availble results
	// contains filtered or unexported fields
}

func (*AccountMeshDataQueryResponse) Descriptor deprecated

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

Deprecated: Use AccountMeshDataQueryResponse.ProtoReflect.Descriptor instead.

func (*AccountMeshDataQueryResponse) GetData

func (*AccountMeshDataQueryResponse) GetTotalResults

func (x *AccountMeshDataQueryResponse) GetTotalResults() uint32

func (*AccountMeshDataQueryResponse) ProtoMessage

func (*AccountMeshDataQueryResponse) ProtoMessage()

func (*AccountMeshDataQueryResponse) ProtoReflect

func (*AccountMeshDataQueryResponse) Reset

func (x *AccountMeshDataQueryResponse) Reset()

func (*AccountMeshDataQueryResponse) String

type AccountMeshDataStreamRequest

type AccountMeshDataStreamRequest struct {
	Filter *AccountMeshDataFilter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountMeshDataStreamRequest) Descriptor deprecated

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

Deprecated: Use AccountMeshDataStreamRequest.ProtoReflect.Descriptor instead.

func (*AccountMeshDataStreamRequest) GetFilter

func (*AccountMeshDataStreamRequest) ProtoMessage

func (*AccountMeshDataStreamRequest) ProtoMessage()

func (*AccountMeshDataStreamRequest) ProtoReflect

func (*AccountMeshDataStreamRequest) Reset

func (x *AccountMeshDataStreamRequest) Reset()

func (*AccountMeshDataStreamRequest) String

type AccountMeshDataStreamResponse

type AccountMeshDataStreamResponse struct {
	Datum *AccountMeshData `protobuf:"bytes,1,opt,name=datum,proto3" json:"datum,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountMeshDataStreamResponse) Descriptor deprecated

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

Deprecated: Use AccountMeshDataStreamResponse.ProtoReflect.Descriptor instead.

func (*AccountMeshDataStreamResponse) GetDatum

func (*AccountMeshDataStreamResponse) ProtoMessage

func (*AccountMeshDataStreamResponse) ProtoMessage()

func (*AccountMeshDataStreamResponse) ProtoReflect

func (*AccountMeshDataStreamResponse) Reset

func (x *AccountMeshDataStreamResponse) Reset()

func (*AccountMeshDataStreamResponse) String

type AccountMeshData_Activation

type AccountMeshData_Activation struct {
	Activation *Activation `protobuf:"bytes,2,opt,name=activation,proto3,oneof"`
}

type AccountMeshData_MeshTransaction

type AccountMeshData_MeshTransaction struct {
	MeshTransaction *MeshTransaction `protobuf:"bytes,1,opt,name=mesh_transaction,json=meshTransaction,proto3,oneof"`
}

type AccountRequest

type AccountRequest struct {
	AccountId *AccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountRequest) Descriptor deprecated

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

Deprecated: Use AccountRequest.ProtoReflect.Descriptor instead.

func (*AccountRequest) GetAccountId

func (x *AccountRequest) GetAccountId() *AccountId

func (*AccountRequest) ProtoMessage

func (*AccountRequest) ProtoMessage()

func (*AccountRequest) ProtoReflect

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

func (*AccountRequest) Reset

func (x *AccountRequest) Reset()

func (*AccountRequest) String

func (x *AccountRequest) String() string

type AccountResponse

type AccountResponse struct {
	AccountWrapper *Account `protobuf:"bytes,1,opt,name=account_wrapper,json=accountWrapper,proto3" json:"account_wrapper,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountResponse) Descriptor deprecated

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

Deprecated: Use AccountResponse.ProtoReflect.Descriptor instead.

func (*AccountResponse) GetAccountWrapper

func (x *AccountResponse) GetAccountWrapper() *Account

func (*AccountResponse) ProtoMessage

func (*AccountResponse) ProtoMessage()

func (*AccountResponse) ProtoReflect

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

func (*AccountResponse) Reset

func (x *AccountResponse) Reset()

func (*AccountResponse) String

func (x *AccountResponse) String() string

type AccountState

type AccountState struct {
	Counter uint64  `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // aka nonce
	Balance *Amount `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`  // known account balance
	// contains filtered or unexported fields
}

func (*AccountState) Descriptor deprecated

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

Deprecated: Use AccountState.ProtoReflect.Descriptor instead.

func (*AccountState) GetBalance

func (x *AccountState) GetBalance() *Amount

func (*AccountState) GetCounter

func (x *AccountState) GetCounter() uint64

func (*AccountState) ProtoMessage

func (*AccountState) ProtoMessage()

func (*AccountState) ProtoReflect

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

func (*AccountState) Reset

func (x *AccountState) Reset()

func (*AccountState) String

func (x *AccountState) String() string

type AccountsResponse

type AccountsResponse struct {
	AccountWrapper []*Account `protobuf:"bytes,1,rep,name=account_wrapper,json=accountWrapper,proto3" json:"account_wrapper,omitempty"`
	// contains filtered or unexported fields
}

func (*AccountsResponse) Descriptor deprecated

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

Deprecated: Use AccountsResponse.ProtoReflect.Descriptor instead.

func (*AccountsResponse) GetAccountWrapper

func (x *AccountsResponse) GetAccountWrapper() []*Account

func (*AccountsResponse) ProtoMessage

func (*AccountsResponse) ProtoMessage()

func (*AccountsResponse) ProtoReflect

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

func (*AccountsResponse) Reset

func (x *AccountsResponse) Reset()

func (*AccountsResponse) String

func (x *AccountsResponse) String() string

type Activation

type Activation struct {
	Id        *ActivationId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Layer     *LayerNumber  `protobuf:"bytes,2,opt,name=layer,proto3" json:"layer,omitempty"`                          // the layer that this activation is part of
	SmesherId *SmesherId    `protobuf:"bytes,3,opt,name=smesher_id,json=smesherId,proto3" json:"smesher_id,omitempty"` // id of smesher who created the ATX
	Coinbase  *AccountId    `protobuf:"bytes,4,opt,name=coinbase,proto3" json:"coinbase,omitempty"`                    // coinbase account id
	PrevAtx   *ActivationId `protobuf:"bytes,5,opt,name=prev_atx,json=prevAtx,proto3" json:"prev_atx,omitempty"`       // previous ATX pointed to
	NumUnits  uint32        `protobuf:"varint,6,opt,name=num_units,json=numUnits,proto3" json:"num_units,omitempty"`   // number of PoST data commitment units
	// contains filtered or unexported fields
}

An Activation "transaction" (ATX)

func (*Activation) Descriptor deprecated

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

Deprecated: Use Activation.ProtoReflect.Descriptor instead.

func (*Activation) GetCoinbase

func (x *Activation) GetCoinbase() *AccountId

func (*Activation) GetId

func (x *Activation) GetId() *ActivationId

func (*Activation) GetLayer

func (x *Activation) GetLayer() *LayerNumber

func (*Activation) GetNumUnits added in v1.4.0

func (x *Activation) GetNumUnits() uint32

func (*Activation) GetPrevAtx

func (x *Activation) GetPrevAtx() *ActivationId

func (*Activation) GetSmesherId

func (x *Activation) GetSmesherId() *SmesherId

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 ActivationId

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

func (*ActivationId) Descriptor deprecated

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

Deprecated: Use ActivationId.ProtoReflect.Descriptor instead.

func (*ActivationId) GetId

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

func (*ActivationId) ProtoMessage

func (*ActivationId) ProtoMessage()

func (*ActivationId) ProtoReflect

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

func (*ActivationId) Reset

func (x *ActivationId) Reset()

func (*ActivationId) String

func (x *ActivationId) String() string

type Amount

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

A non-negative coin amount, in smidge

func (*Amount) Descriptor deprecated

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

Deprecated: Use Amount.ProtoReflect.Descriptor instead.

func (*Amount) GetValue

func (x *Amount) GetValue() uint64

func (*Amount) ProtoMessage

func (*Amount) ProtoMessage()

func (*Amount) ProtoReflect

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

func (*Amount) Reset

func (x *Amount) Reset()

func (*Amount) String

func (x *Amount) String() string

type AppEvent

type AppEvent struct {
	TransactionId *TransactionId `protobuf:"bytes,1,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"` // the transaction that called the code
	Message       string         `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`                                  // the event's string emitted from code
	// contains filtered or unexported fields
}

func (*AppEvent) Descriptor deprecated

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

Deprecated: Use AppEvent.ProtoReflect.Descriptor instead.

func (*AppEvent) GetMessage

func (x *AppEvent) GetMessage() string

func (*AppEvent) GetTransactionId

func (x *AppEvent) GetTransactionId() *TransactionId

func (*AppEvent) ProtoMessage

func (*AppEvent) ProtoMessage()

func (*AppEvent) ProtoReflect

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

func (*AppEvent) Reset

func (x *AppEvent) Reset()

func (*AppEvent) String

func (x *AppEvent) String() string

type AppEventStreamRequest

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

func (*AppEventStreamRequest) Descriptor deprecated

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

Deprecated: Use AppEventStreamRequest.ProtoReflect.Descriptor instead.

func (*AppEventStreamRequest) ProtoMessage

func (*AppEventStreamRequest) ProtoMessage()

func (*AppEventStreamRequest) ProtoReflect

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

func (*AppEventStreamRequest) Reset

func (x *AppEventStreamRequest) Reset()

func (*AppEventStreamRequest) String

func (x *AppEventStreamRequest) String() string

type AppEventStreamResponse

type AppEventStreamResponse struct {
	Event *AppEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*AppEventStreamResponse) Descriptor deprecated

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

Deprecated: Use AppEventStreamResponse.ProtoReflect.Descriptor instead.

func (*AppEventStreamResponse) GetEvent

func (x *AppEventStreamResponse) GetEvent() *AppEvent

func (*AppEventStreamResponse) ProtoMessage

func (*AppEventStreamResponse) ProtoMessage()

func (*AppEventStreamResponse) ProtoReflect

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

func (*AppEventStreamResponse) Reset

func (x *AppEventStreamResponse) Reset()

func (*AppEventStreamResponse) String

func (x *AppEventStreamResponse) String() string

type Block

type Block struct {
	Id           []byte         `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                         // block hash
	Transactions []*Transaction `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`                     // block transactions
	ActivationId *ActivationId  `protobuf:"bytes,3,opt,name=activation_id,json=activationId,proto3" json:"activation_id,omitempty"` // the smesher's activation that this block refers to
	SmesherId    *SmesherId     `protobuf:"bytes,4,opt,name=smesher_id,json=smesherId,proto3" json:"smesher_id,omitempty"`          // the id of the smesher who submitted this block
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetActivationId

func (x *Block) GetActivationId() *ActivationId

func (*Block) GetId

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

func (*Block) GetSmesherId

func (x *Block) GetSmesherId() *SmesherId

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

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

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type BroadcastPoetRequest

type BroadcastPoetRequest struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // encoded poet proof
	// contains filtered or unexported fields
}

func (*BroadcastPoetRequest) Descriptor deprecated

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

Deprecated: Use BroadcastPoetRequest.ProtoReflect.Descriptor instead.

func (*BroadcastPoetRequest) GetData

func (x *BroadcastPoetRequest) GetData() []byte

func (*BroadcastPoetRequest) ProtoMessage

func (*BroadcastPoetRequest) ProtoMessage()

func (*BroadcastPoetRequest) ProtoReflect

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

func (*BroadcastPoetRequest) Reset

func (x *BroadcastPoetRequest) Reset()

func (*BroadcastPoetRequest) String

func (x *BroadcastPoetRequest) String() string

type BroadcastPoetResponse

type BroadcastPoetResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*BroadcastPoetResponse) Descriptor deprecated

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

Deprecated: Use BroadcastPoetResponse.ProtoReflect.Descriptor instead.

func (*BroadcastPoetResponse) GetStatus

func (x *BroadcastPoetResponse) GetStatus() *status.Status

func (*BroadcastPoetResponse) ProtoMessage

func (*BroadcastPoetResponse) ProtoMessage()

func (*BroadcastPoetResponse) ProtoReflect

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

func (*BroadcastPoetResponse) Reset

func (x *BroadcastPoetResponse) Reset()

func (*BroadcastPoetResponse) String

func (x *BroadcastPoetResponse) String() string

type BuildResponse

type BuildResponse struct {
	BuildString *SimpleString `protobuf:"bytes,1,opt,name=build_string,json=buildString,proto3" json:"build_string,omitempty"`
	// contains filtered or unexported fields
}

func (*BuildResponse) Descriptor deprecated

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

Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.

func (*BuildResponse) GetBuildString

func (x *BuildResponse) GetBuildString() *SimpleString

func (*BuildResponse) ProtoMessage

func (*BuildResponse) ProtoMessage()

func (*BuildResponse) ProtoReflect

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

func (*BuildResponse) Reset

func (x *BuildResponse) Reset()

func (*BuildResponse) String

func (x *BuildResponse) String() string

type CoinTransferTransaction

type CoinTransferTransaction struct {
	Receiver *AccountId `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// contains filtered or unexported fields
}

Data specific to a simple coin transaction.

func (*CoinTransferTransaction) Descriptor deprecated

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

Deprecated: Use CoinTransferTransaction.ProtoReflect.Descriptor instead.

func (*CoinTransferTransaction) GetReceiver

func (x *CoinTransferTransaction) GetReceiver() *AccountId

func (*CoinTransferTransaction) ProtoMessage

func (*CoinTransferTransaction) ProtoMessage()

func (*CoinTransferTransaction) ProtoReflect

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

func (*CoinTransferTransaction) Reset

func (x *CoinTransferTransaction) Reset()

func (*CoinTransferTransaction) String

func (x *CoinTransferTransaction) String() string

type CoinbaseResponse

type CoinbaseResponse struct {
	AccountId *AccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CoinbaseResponse) Descriptor deprecated

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

Deprecated: Use CoinbaseResponse.ProtoReflect.Descriptor instead.

func (*CoinbaseResponse) GetAccountId

func (x *CoinbaseResponse) GetAccountId() *AccountId

func (*CoinbaseResponse) ProtoMessage

func (*CoinbaseResponse) ProtoMessage()

func (*CoinbaseResponse) ProtoReflect

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

func (*CoinbaseResponse) Reset

func (x *CoinbaseResponse) Reset()

func (*CoinbaseResponse) String

func (x *CoinbaseResponse) String() string

type CurrentEpochRequest

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

func (*CurrentEpochRequest) Descriptor deprecated

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

Deprecated: Use CurrentEpochRequest.ProtoReflect.Descriptor instead.

func (*CurrentEpochRequest) ProtoMessage

func (*CurrentEpochRequest) ProtoMessage()

func (*CurrentEpochRequest) ProtoReflect

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

func (*CurrentEpochRequest) Reset

func (x *CurrentEpochRequest) Reset()

func (*CurrentEpochRequest) String

func (x *CurrentEpochRequest) String() string

type CurrentEpochResponse

type CurrentEpochResponse struct {
	Epochnum *SimpleInt `protobuf:"bytes,1,opt,name=epochnum,proto3" json:"epochnum,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentEpochResponse) Descriptor deprecated

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

Deprecated: Use CurrentEpochResponse.ProtoReflect.Descriptor instead.

func (*CurrentEpochResponse) GetEpochnum

func (x *CurrentEpochResponse) GetEpochnum() *SimpleInt

func (*CurrentEpochResponse) ProtoMessage

func (*CurrentEpochResponse) ProtoMessage()

func (*CurrentEpochResponse) ProtoReflect

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

func (*CurrentEpochResponse) Reset

func (x *CurrentEpochResponse) Reset()

func (*CurrentEpochResponse) String

func (x *CurrentEpochResponse) String() string

type CurrentLayerRequest

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

func (*CurrentLayerRequest) Descriptor deprecated

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

Deprecated: Use CurrentLayerRequest.ProtoReflect.Descriptor instead.

func (*CurrentLayerRequest) ProtoMessage

func (*CurrentLayerRequest) ProtoMessage()

func (*CurrentLayerRequest) ProtoReflect

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

func (*CurrentLayerRequest) Reset

func (x *CurrentLayerRequest) Reset()

func (*CurrentLayerRequest) String

func (x *CurrentLayerRequest) String() string

type CurrentLayerResponse

type CurrentLayerResponse struct {
	Layernum *LayerNumber `protobuf:"bytes,1,opt,name=layernum,proto3" json:"layernum,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentLayerResponse) Descriptor deprecated

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

Deprecated: Use CurrentLayerResponse.ProtoReflect.Descriptor instead.

func (*CurrentLayerResponse) GetLayernum

func (x *CurrentLayerResponse) GetLayernum() *LayerNumber

func (*CurrentLayerResponse) ProtoMessage

func (*CurrentLayerResponse) ProtoMessage()

func (*CurrentLayerResponse) ProtoReflect

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

func (*CurrentLayerResponse) Reset

func (x *CurrentLayerResponse) Reset()

func (*CurrentLayerResponse) String

func (x *CurrentLayerResponse) String() string

type DebugServiceClient

type DebugServiceClient interface {
	// Accounts returns data for all the accounts currently in the node's current global state.
	// This includes each account's address, nonce and balance but excludes projection of account state.
	Accounts(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*AccountsResponse, error)
}

DebugServiceClient is the client API for DebugService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type DebugServiceServer

type DebugServiceServer interface {
	// Accounts returns data for all the accounts currently in the node's current global state.
	// This includes each account's address, nonce and balance but excludes projection of account state.
	Accounts(context.Context, *empty.Empty) (*AccountsResponse, error)
}

DebugServiceServer is the server API for DebugService service.

type EchoRequest

type EchoRequest struct {
	Msg *SimpleString `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetMsg

func (x *EchoRequest) GetMsg() *SimpleString

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

type EchoResponse struct {
	Msg *SimpleString `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetMsg

func (x *EchoResponse) GetMsg() *SimpleString

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type EpochNumLayersRequest

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

func (*EpochNumLayersRequest) Descriptor deprecated

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

Deprecated: Use EpochNumLayersRequest.ProtoReflect.Descriptor instead.

func (*EpochNumLayersRequest) ProtoMessage

func (*EpochNumLayersRequest) ProtoMessage()

func (*EpochNumLayersRequest) ProtoReflect

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

func (*EpochNumLayersRequest) Reset

func (x *EpochNumLayersRequest) Reset()

func (*EpochNumLayersRequest) String

func (x *EpochNumLayersRequest) String() string

type EpochNumLayersResponse

type EpochNumLayersResponse struct {
	Numlayers *SimpleInt `protobuf:"bytes,1,opt,name=numlayers,proto3" json:"numlayers,omitempty"`
	// contains filtered or unexported fields
}

func (*EpochNumLayersResponse) Descriptor deprecated

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

Deprecated: Use EpochNumLayersResponse.ProtoReflect.Descriptor instead.

func (*EpochNumLayersResponse) GetNumlayers

func (x *EpochNumLayersResponse) GetNumlayers() *SimpleInt

func (*EpochNumLayersResponse) ProtoMessage

func (*EpochNumLayersResponse) ProtoMessage()

func (*EpochNumLayersResponse) ProtoReflect

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

func (*EpochNumLayersResponse) Reset

func (x *EpochNumLayersResponse) Reset()

func (*EpochNumLayersResponse) String

func (x *EpochNumLayersResponse) String() string

type ErrorStreamRequest

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

func (*ErrorStreamRequest) Descriptor deprecated

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

Deprecated: Use ErrorStreamRequest.ProtoReflect.Descriptor instead.

func (*ErrorStreamRequest) ProtoMessage

func (*ErrorStreamRequest) ProtoMessage()

func (*ErrorStreamRequest) ProtoReflect

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

func (*ErrorStreamRequest) Reset

func (x *ErrorStreamRequest) Reset()

func (*ErrorStreamRequest) String

func (x *ErrorStreamRequest) String() string

type ErrorStreamResponse

type ErrorStreamResponse struct {
	Error *NodeError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorStreamResponse) Descriptor deprecated

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

Deprecated: Use ErrorStreamResponse.ProtoReflect.Descriptor instead.

func (*ErrorStreamResponse) GetError

func (x *ErrorStreamResponse) GetError() *NodeError

func (*ErrorStreamResponse) ProtoMessage

func (*ErrorStreamResponse) ProtoMessage()

func (*ErrorStreamResponse) ProtoReflect

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

func (*ErrorStreamResponse) Reset

func (x *ErrorStreamResponse) Reset()

func (*ErrorStreamResponse) String

func (x *ErrorStreamResponse) String() string

type EstimatedRewardsRequest

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

func (*EstimatedRewardsRequest) Descriptor deprecated

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

Deprecated: Use EstimatedRewardsRequest.ProtoReflect.Descriptor instead.

func (*EstimatedRewardsRequest) ProtoMessage

func (*EstimatedRewardsRequest) ProtoMessage()

func (*EstimatedRewardsRequest) ProtoReflect

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

func (*EstimatedRewardsRequest) Reset

func (x *EstimatedRewardsRequest) Reset()

func (*EstimatedRewardsRequest) String

func (x *EstimatedRewardsRequest) String() string

type EstimatedRewardsResponse

type EstimatedRewardsResponse struct {

	// The amount of the total estimated reward in the next upcoming epoch
	Amount *Amount `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	// The number of Post data commitment units that this estimated reward corresponds to (part of global config)
	NumUnits uint32 `protobuf:"varint,2,opt,name=num_units,json=numUnits,proto3" json:"num_units,omitempty"`
	// contains filtered or unexported fields
}

Estimated rewards for the next epoch. Note that this is a global value that will be the same for all smeshers, and is based on the default minimum commitment size and fixed epoch length, both of which are network params.

func (*EstimatedRewardsResponse) Descriptor deprecated

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

Deprecated: Use EstimatedRewardsResponse.ProtoReflect.Descriptor instead.

func (*EstimatedRewardsResponse) GetAmount

func (x *EstimatedRewardsResponse) GetAmount() *Amount

func (*EstimatedRewardsResponse) GetNumUnits added in v1.4.0

func (x *EstimatedRewardsResponse) GetNumUnits() uint32

func (*EstimatedRewardsResponse) ProtoMessage

func (*EstimatedRewardsResponse) ProtoMessage()

func (*EstimatedRewardsResponse) ProtoReflect

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

func (*EstimatedRewardsResponse) Reset

func (x *EstimatedRewardsResponse) Reset()

func (*EstimatedRewardsResponse) String

func (x *EstimatedRewardsResponse) String() string

type GasOffered

type GasOffered struct {
	GasProvided uint64 `protobuf:"varint,1,opt,name=gas_provided,json=gasProvided,proto3" json:"gas_provided,omitempty"`
	GasPrice    uint64 `protobuf:"varint,2,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	// contains filtered or unexported fields
}

func (*GasOffered) Descriptor deprecated

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

Deprecated: Use GasOffered.ProtoReflect.Descriptor instead.

func (*GasOffered) GetGasPrice

func (x *GasOffered) GetGasPrice() uint64

func (*GasOffered) GetGasProvided

func (x *GasOffered) GetGasProvided() uint64

func (*GasOffered) ProtoMessage

func (*GasOffered) ProtoMessage()

func (*GasOffered) ProtoReflect

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

func (*GasOffered) Reset

func (x *GasOffered) Reset()

func (*GasOffered) String

func (x *GasOffered) String() string

type GatewayServiceClient

type GatewayServiceClient interface {
	// Submit a poet data packet to the network to broadcast
	BroadcastPoet(ctx context.Context, in *BroadcastPoetRequest, opts ...grpc.CallOption) (*BroadcastPoetResponse, error)
}

GatewayServiceClient is the client API for GatewayService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type GatewayServiceServer

type GatewayServiceServer interface {
	// Submit a poet data packet to the network to broadcast
	BroadcastPoet(context.Context, *BroadcastPoetRequest) (*BroadcastPoetResponse, error)
}

GatewayServiceServer is the server API for GatewayService service.

type GenesisTimeRequest

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

func (*GenesisTimeRequest) Descriptor deprecated

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

Deprecated: Use GenesisTimeRequest.ProtoReflect.Descriptor instead.

func (*GenesisTimeRequest) ProtoMessage

func (*GenesisTimeRequest) ProtoMessage()

func (*GenesisTimeRequest) ProtoReflect

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

func (*GenesisTimeRequest) Reset

func (x *GenesisTimeRequest) Reset()

func (*GenesisTimeRequest) String

func (x *GenesisTimeRequest) String() string

type GenesisTimeResponse

type GenesisTimeResponse struct {
	Unixtime *SimpleInt `protobuf:"bytes,1,opt,name=unixtime,proto3" json:"unixtime,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisTimeResponse) Descriptor deprecated

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

Deprecated: Use GenesisTimeResponse.ProtoReflect.Descriptor instead.

func (*GenesisTimeResponse) GetUnixtime

func (x *GenesisTimeResponse) GetUnixtime() *SimpleInt

func (*GenesisTimeResponse) ProtoMessage

func (*GenesisTimeResponse) ProtoMessage()

func (*GenesisTimeResponse) ProtoReflect

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

func (*GenesisTimeResponse) Reset

func (x *GenesisTimeResponse) Reset()

func (*GenesisTimeResponse) String

func (x *GenesisTimeResponse) String() string

type GlobalStateData

type GlobalStateData struct {

	// Types that are assignable to Datum:
	//	*GlobalStateData_Reward
	//	*GlobalStateData_Receipt
	//	*GlobalStateData_AccountWrapper
	//	*GlobalStateData_GlobalState
	Datum isGlobalStateData_Datum `protobuf_oneof:"datum"`
	// contains filtered or unexported fields
}

func (*GlobalStateData) Descriptor deprecated

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

Deprecated: Use GlobalStateData.ProtoReflect.Descriptor instead.

func (*GlobalStateData) GetAccountWrapper

func (x *GlobalStateData) GetAccountWrapper() *Account

func (*GlobalStateData) GetDatum

func (m *GlobalStateData) GetDatum() isGlobalStateData_Datum

func (*GlobalStateData) GetGlobalState

func (x *GlobalStateData) GetGlobalState() *GlobalStateHash

func (*GlobalStateData) GetReceipt

func (x *GlobalStateData) GetReceipt() *TransactionReceipt

func (*GlobalStateData) GetReward

func (x *GlobalStateData) GetReward() *Reward

func (*GlobalStateData) ProtoMessage

func (*GlobalStateData) ProtoMessage()

func (*GlobalStateData) ProtoReflect

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

func (*GlobalStateData) Reset

func (x *GlobalStateData) Reset()

func (*GlobalStateData) String

func (x *GlobalStateData) String() string

type GlobalStateDataFlag

type GlobalStateDataFlag int32
const (
	GlobalStateDataFlag_GLOBAL_STATE_DATA_FLAG_UNSPECIFIED         GlobalStateDataFlag = 0
	GlobalStateDataFlag_GLOBAL_STATE_DATA_FLAG_TRANSACTION_RECEIPT GlobalStateDataFlag = 1 // tx receipt generated
	GlobalStateDataFlag_GLOBAL_STATE_DATA_FLAG_REWARD              GlobalStateDataFlag = 2 // reward awarded to an account (includes fees paid)
	GlobalStateDataFlag_GLOBAL_STATE_DATA_FLAG_ACCOUNT             GlobalStateDataFlag = 4 // account data changes (counter or balance)
	GlobalStateDataFlag_GLOBAL_STATE_DATA_FLAG_GLOBAL_STATE_HASH   GlobalStateDataFlag = 8 // hash of global state (i.e., state root)
)

func (GlobalStateDataFlag) Descriptor

func (GlobalStateDataFlag) Enum

func (GlobalStateDataFlag) EnumDescriptor deprecated

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

Deprecated: Use GlobalStateDataFlag.Descriptor instead.

func (GlobalStateDataFlag) Number

func (GlobalStateDataFlag) String

func (x GlobalStateDataFlag) String() string

func (GlobalStateDataFlag) Type

type GlobalStateData_AccountWrapper

type GlobalStateData_AccountWrapper struct {
	AccountWrapper *Account `protobuf:"bytes,3,opt,name=account_wrapper,json=accountWrapper,proto3,oneof"`
}

type GlobalStateData_GlobalState

type GlobalStateData_GlobalState struct {
	GlobalState *GlobalStateHash `protobuf:"bytes,4,opt,name=global_state,json=globalState,proto3,oneof"`
}

type GlobalStateData_Receipt

type GlobalStateData_Receipt struct {
	Receipt *TransactionReceipt `protobuf:"bytes,2,opt,name=receipt,proto3,oneof"`
}

type GlobalStateData_Reward

type GlobalStateData_Reward struct {
	Reward *Reward `protobuf:"bytes,1,opt,name=reward,proto3,oneof"`
}

type GlobalStateHash

type GlobalStateHash struct {
	RootHash []byte       `protobuf:"bytes,1,opt,name=root_hash,json=rootHash,proto3" json:"root_hash,omitempty"`
	Layer    *LayerNumber `protobuf:"bytes,2,opt,name=layer,proto3" json:"layer,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalStateHash) Descriptor deprecated

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

Deprecated: Use GlobalStateHash.ProtoReflect.Descriptor instead.

func (*GlobalStateHash) GetLayer

func (x *GlobalStateHash) GetLayer() *LayerNumber

func (*GlobalStateHash) GetRootHash

func (x *GlobalStateHash) GetRootHash() []byte

func (*GlobalStateHash) ProtoMessage

func (*GlobalStateHash) ProtoMessage()

func (*GlobalStateHash) ProtoReflect

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

func (*GlobalStateHash) Reset

func (x *GlobalStateHash) Reset()

func (*GlobalStateHash) String

func (x *GlobalStateHash) String() string

type GlobalStateHashRequest

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

For now this is empty but in future we might want to allow this to take a layer number.

func (*GlobalStateHashRequest) Descriptor deprecated

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

Deprecated: Use GlobalStateHashRequest.ProtoReflect.Descriptor instead.

func (*GlobalStateHashRequest) ProtoMessage

func (*GlobalStateHashRequest) ProtoMessage()

func (*GlobalStateHashRequest) ProtoReflect

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

func (*GlobalStateHashRequest) Reset

func (x *GlobalStateHashRequest) Reset()

func (*GlobalStateHashRequest) String

func (x *GlobalStateHashRequest) String() string

type GlobalStateHashResponse

type GlobalStateHashResponse struct {
	Response *GlobalStateHash `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalStateHashResponse) Descriptor deprecated

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

Deprecated: Use GlobalStateHashResponse.ProtoReflect.Descriptor instead.

func (*GlobalStateHashResponse) GetResponse

func (x *GlobalStateHashResponse) GetResponse() *GlobalStateHash

func (*GlobalStateHashResponse) ProtoMessage

func (*GlobalStateHashResponse) ProtoMessage()

func (*GlobalStateHashResponse) ProtoReflect

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

func (*GlobalStateHashResponse) Reset

func (x *GlobalStateHashResponse) Reset()

func (*GlobalStateHashResponse) String

func (x *GlobalStateHashResponse) String() string

type GlobalStateServiceClient

type GlobalStateServiceClient interface {
	// Latest computed global state - layer and its root hash
	GlobalStateHash(ctx context.Context, in *GlobalStateHashRequest, opts ...grpc.CallOption) (*GlobalStateHashResponse, error)
	// Account info in the current global state.
	Account(ctx context.Context, in *AccountRequest, opts ...grpc.CallOption) (*AccountResponse, error)
	// Query for account related data such as rewards, tx receipts and account info
	//
	// Note: it might be too expensive to add a param for layer to get these results from
	// as it may require indexing all global state changes per account by layer.
	// If it is possible to index by layer then we should add param start_layer to
	// AccountDataParams. Currently it will return data from genesis.
	AccountDataQuery(ctx context.Context, in *AccountDataQueryRequest, opts ...grpc.CallOption) (*AccountDataQueryResponse, error)
	// Query for smesher data. Currently returns smesher rewards.
	// Note: Not supporting start_layer yet as it may require to index all rewards by
	// smesher and by layer id or allow for queries from a layer and later....
	SmesherDataQuery(ctx context.Context, in *SmesherDataQueryRequest, opts ...grpc.CallOption) (*SmesherDataQueryResponse, error)
	// Get a stream of account related changes such as account balance change,
	// tx receipts and rewards
	AccountDataStream(ctx context.Context, in *AccountDataStreamRequest, opts ...grpc.CallOption) (GlobalStateService_AccountDataStreamClient, error)
	// Rewards awarded to a smesher id
	SmesherRewardStream(ctx context.Context, in *SmesherRewardStreamRequest, opts ...grpc.CallOption) (GlobalStateService_SmesherRewardStreamClient, error)
	// App Events - emitted by app methods impl code trigged by an
	// app transaction
	AppEventStream(ctx context.Context, in *AppEventStreamRequest, opts ...grpc.CallOption) (GlobalStateService_AppEventStreamClient, error)
	// New global state computed for a layer by the STF
	GlobalStateStream(ctx context.Context, in *GlobalStateStreamRequest, opts ...grpc.CallOption) (GlobalStateService_GlobalStateStreamClient, error)
}

GlobalStateServiceClient is the client API for GlobalStateService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type GlobalStateServiceServer

type GlobalStateServiceServer interface {
	// Latest computed global state - layer and its root hash
	GlobalStateHash(context.Context, *GlobalStateHashRequest) (*GlobalStateHashResponse, error)
	// Account info in the current global state.
	Account(context.Context, *AccountRequest) (*AccountResponse, error)
	// Query for account related data such as rewards, tx receipts and account info
	//
	// Note: it might be too expensive to add a param for layer to get these results from
	// as it may require indexing all global state changes per account by layer.
	// If it is possible to index by layer then we should add param start_layer to
	// AccountDataParams. Currently it will return data from genesis.
	AccountDataQuery(context.Context, *AccountDataQueryRequest) (*AccountDataQueryResponse, error)
	// Query for smesher data. Currently returns smesher rewards.
	// Note: Not supporting start_layer yet as it may require to index all rewards by
	// smesher and by layer id or allow for queries from a layer and later....
	SmesherDataQuery(context.Context, *SmesherDataQueryRequest) (*SmesherDataQueryResponse, error)
	// Get a stream of account related changes such as account balance change,
	// tx receipts and rewards
	AccountDataStream(*AccountDataStreamRequest, GlobalStateService_AccountDataStreamServer) error
	// Rewards awarded to a smesher id
	SmesherRewardStream(*SmesherRewardStreamRequest, GlobalStateService_SmesherRewardStreamServer) error
	// App Events - emitted by app methods impl code trigged by an
	// app transaction
	AppEventStream(*AppEventStreamRequest, GlobalStateService_AppEventStreamServer) error
	// New global state computed for a layer by the STF
	GlobalStateStream(*GlobalStateStreamRequest, GlobalStateService_GlobalStateStreamServer) error
}

GlobalStateServiceServer is the server API for GlobalStateService service.

type GlobalStateService_AccountDataStreamClient

type GlobalStateService_AccountDataStreamClient interface {
	Recv() (*AccountDataStreamResponse, error)
	grpc.ClientStream
}

type GlobalStateService_AccountDataStreamServer

type GlobalStateService_AccountDataStreamServer interface {
	Send(*AccountDataStreamResponse) error
	grpc.ServerStream
}

type GlobalStateService_AppEventStreamClient

type GlobalStateService_AppEventStreamClient interface {
	Recv() (*AppEventStreamResponse, error)
	grpc.ClientStream
}

type GlobalStateService_AppEventStreamServer

type GlobalStateService_AppEventStreamServer interface {
	Send(*AppEventStreamResponse) error
	grpc.ServerStream
}

type GlobalStateService_GlobalStateStreamClient

type GlobalStateService_GlobalStateStreamClient interface {
	Recv() (*GlobalStateStreamResponse, error)
	grpc.ClientStream
}

type GlobalStateService_GlobalStateStreamServer

type GlobalStateService_GlobalStateStreamServer interface {
	Send(*GlobalStateStreamResponse) error
	grpc.ServerStream
}

type GlobalStateService_SmesherRewardStreamClient

type GlobalStateService_SmesherRewardStreamClient interface {
	Recv() (*SmesherRewardStreamResponse, error)
	grpc.ClientStream
}

type GlobalStateService_SmesherRewardStreamServer

type GlobalStateService_SmesherRewardStreamServer interface {
	Send(*SmesherRewardStreamResponse) error
	grpc.ServerStream
}

type GlobalStateStreamRequest

type GlobalStateStreamRequest struct {
	GlobalStateDataFlags uint32 `` // bit field of GlobalStateDataFlag
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GlobalStateStreamRequest) Descriptor deprecated

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

Deprecated: Use GlobalStateStreamRequest.ProtoReflect.Descriptor instead.

func (*GlobalStateStreamRequest) GetGlobalStateDataFlags

func (x *GlobalStateStreamRequest) GetGlobalStateDataFlags() uint32

func (*GlobalStateStreamRequest) ProtoMessage

func (*GlobalStateStreamRequest) ProtoMessage()

func (*GlobalStateStreamRequest) ProtoReflect

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

func (*GlobalStateStreamRequest) Reset

func (x *GlobalStateStreamRequest) Reset()

func (*GlobalStateStreamRequest) String

func (x *GlobalStateStreamRequest) String() string

type GlobalStateStreamResponse

type GlobalStateStreamResponse struct {
	Datum *GlobalStateData `protobuf:"bytes,1,opt,name=datum,proto3" json:"datum,omitempty"`
	// contains filtered or unexported fields
}

func (*GlobalStateStreamResponse) Descriptor deprecated

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

Deprecated: Use GlobalStateStreamResponse.ProtoReflect.Descriptor instead.

func (*GlobalStateStreamResponse) GetDatum

func (*GlobalStateStreamResponse) ProtoMessage

func (*GlobalStateStreamResponse) ProtoMessage()

func (*GlobalStateStreamResponse) ProtoReflect

func (*GlobalStateStreamResponse) Reset

func (x *GlobalStateStreamResponse) Reset()

func (*GlobalStateStreamResponse) String

func (x *GlobalStateStreamResponse) String() string

type IsSmeshingResponse

type IsSmeshingResponse struct {
	IsSmeshing bool `protobuf:"varint,1,opt,name=is_smeshing,json=isSmeshing,proto3" json:"is_smeshing,omitempty"`
	// contains filtered or unexported fields
}

func (*IsSmeshingResponse) Descriptor deprecated

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

Deprecated: Use IsSmeshingResponse.ProtoReflect.Descriptor instead.

func (*IsSmeshingResponse) GetIsSmeshing

func (x *IsSmeshingResponse) GetIsSmeshing() bool

func (*IsSmeshingResponse) ProtoMessage

func (*IsSmeshingResponse) ProtoMessage()

func (*IsSmeshingResponse) ProtoReflect

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

func (*IsSmeshingResponse) Reset

func (x *IsSmeshingResponse) Reset()

func (*IsSmeshingResponse) String

func (x *IsSmeshingResponse) String() string

type Layer

type Layer struct {
	Number        *LayerNumber      `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // layer number - not hash - layer content may change
	Status        Layer_LayerStatus `protobuf:"varint,2,opt,name=status,proto3,enum=spacemesh.v1.Layer_LayerStatus" json:"status,omitempty"`
	Hash          []byte            `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`                                          // computer layer hash - do we need this?
	Blocks        []*Block          `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`                                      // layer's blocks
	Activations   []*Activation     `protobuf:"bytes,5,rep,name=activations,proto3" json:"activations,omitempty"`                            // list of layer's activations
	RootStateHash []byte            `protobuf:"bytes,6,opt,name=root_state_hash,json=rootStateHash,proto3" json:"root_state_hash,omitempty"` // when available - the root state hash of global state in this layer
	// contains filtered or unexported fields
}

func (*Layer) Descriptor deprecated

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

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetActivations

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

func (*Layer) GetBlocks

func (x *Layer) GetBlocks() []*Block

func (*Layer) GetHash

func (x *Layer) GetHash() []byte

func (*Layer) GetNumber

func (x *Layer) GetNumber() *LayerNumber

func (*Layer) GetRootStateHash

func (x *Layer) GetRootStateHash() []byte

func (*Layer) GetStatus

func (x *Layer) GetStatus() Layer_LayerStatus

func (*Layer) ProtoMessage

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect

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

func (*Layer) Reset

func (x *Layer) Reset()

func (*Layer) String

func (x *Layer) String() string

type LayerDurationRequest

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

func (*LayerDurationRequest) Descriptor deprecated

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

Deprecated: Use LayerDurationRequest.ProtoReflect.Descriptor instead.

func (*LayerDurationRequest) ProtoMessage

func (*LayerDurationRequest) ProtoMessage()

func (*LayerDurationRequest) ProtoReflect

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

func (*LayerDurationRequest) Reset

func (x *LayerDurationRequest) Reset()

func (*LayerDurationRequest) String

func (x *LayerDurationRequest) String() string

type LayerDurationResponse

type LayerDurationResponse struct {

	// layer duration, in seconds
	Duration *SimpleInt `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*LayerDurationResponse) Descriptor deprecated

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

Deprecated: Use LayerDurationResponse.ProtoReflect.Descriptor instead.

func (*LayerDurationResponse) GetDuration

func (x *LayerDurationResponse) GetDuration() *SimpleInt

func (*LayerDurationResponse) ProtoMessage

func (*LayerDurationResponse) ProtoMessage()

func (*LayerDurationResponse) ProtoReflect

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

func (*LayerDurationResponse) Reset

func (x *LayerDurationResponse) Reset()

func (*LayerDurationResponse) String

func (x *LayerDurationResponse) String() string

type LayerNumber

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

func (*LayerNumber) Descriptor deprecated

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

Deprecated: Use LayerNumber.ProtoReflect.Descriptor instead.

func (*LayerNumber) GetNumber

func (x *LayerNumber) GetNumber() uint32

func (*LayerNumber) ProtoMessage

func (*LayerNumber) ProtoMessage()

func (*LayerNumber) ProtoReflect

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

func (*LayerNumber) Reset

func (x *LayerNumber) Reset()

func (*LayerNumber) String

func (x *LayerNumber) String() string

type LayerStreamRequest

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

func (*LayerStreamRequest) Descriptor deprecated

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

Deprecated: Use LayerStreamRequest.ProtoReflect.Descriptor instead.

func (*LayerStreamRequest) ProtoMessage

func (*LayerStreamRequest) ProtoMessage()

func (*LayerStreamRequest) ProtoReflect

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

func (*LayerStreamRequest) Reset

func (x *LayerStreamRequest) Reset()

func (*LayerStreamRequest) String

func (x *LayerStreamRequest) String() string

type LayerStreamResponse

type LayerStreamResponse struct {
	Layer *Layer `protobuf:"bytes,1,opt,name=layer,proto3" json:"layer,omitempty"`
	// contains filtered or unexported fields
}

func (*LayerStreamResponse) Descriptor deprecated

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

Deprecated: Use LayerStreamResponse.ProtoReflect.Descriptor instead.

func (*LayerStreamResponse) GetLayer

func (x *LayerStreamResponse) GetLayer() *Layer

func (*LayerStreamResponse) ProtoMessage

func (*LayerStreamResponse) ProtoMessage()

func (*LayerStreamResponse) ProtoReflect

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

func (*LayerStreamResponse) Reset

func (x *LayerStreamResponse) Reset()

func (*LayerStreamResponse) String

func (x *LayerStreamResponse) String() string

type Layer_LayerStatus

type Layer_LayerStatus int32
const (
	Layer_LAYER_STATUS_UNSPECIFIED Layer_LayerStatus = 0 // not yet approved or confirmed
	Layer_LAYER_STATUS_APPROVED    Layer_LayerStatus = 1 // approved by hare
	Layer_LAYER_STATUS_CONFIRMED   Layer_LayerStatus = 2 // confirmed by tortoise
)

func (Layer_LayerStatus) Descriptor

func (Layer_LayerStatus) Enum

func (Layer_LayerStatus) EnumDescriptor deprecated

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

Deprecated: Use Layer_LayerStatus.Descriptor instead.

func (Layer_LayerStatus) Number

func (Layer_LayerStatus) String

func (x Layer_LayerStatus) String() string

func (Layer_LayerStatus) Type

type LayersQueryRequest

type LayersQueryRequest struct {
	StartLayer *LayerNumber `protobuf:"bytes,1,opt,name=start_layer,json=startLayer,proto3" json:"start_layer,omitempty"`
	EndLayer   *LayerNumber `protobuf:"bytes,2,opt,name=end_layer,json=endLayer,proto3" json:"end_layer,omitempty"`
	// contains filtered or unexported fields
}

func (*LayersQueryRequest) Descriptor deprecated

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

Deprecated: Use LayersQueryRequest.ProtoReflect.Descriptor instead.

func (*LayersQueryRequest) GetEndLayer

func (x *LayersQueryRequest) GetEndLayer() *LayerNumber

func (*LayersQueryRequest) GetStartLayer

func (x *LayersQueryRequest) GetStartLayer() *LayerNumber

func (*LayersQueryRequest) ProtoMessage

func (*LayersQueryRequest) ProtoMessage()

func (*LayersQueryRequest) ProtoReflect

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

func (*LayersQueryRequest) Reset

func (x *LayersQueryRequest) Reset()

func (*LayersQueryRequest) String

func (x *LayersQueryRequest) String() string

type LayersQueryResponse

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

func (*LayersQueryResponse) Descriptor deprecated

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

Deprecated: Use LayersQueryResponse.ProtoReflect.Descriptor instead.

func (*LayersQueryResponse) GetLayer

func (x *LayersQueryResponse) GetLayer() []*Layer

func (*LayersQueryResponse) ProtoMessage

func (*LayersQueryResponse) ProtoMessage()

func (*LayersQueryResponse) ProtoReflect

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

func (*LayersQueryResponse) Reset

func (x *LayersQueryResponse) Reset()

func (*LayersQueryResponse) String

func (x *LayersQueryResponse) String() string

type LogLevel

type LogLevel int32
const (
	LogLevel_LOG_LEVEL_UNSPECIFIED LogLevel = 0
	LogLevel_LOG_LEVEL_DEBUG       LogLevel = 1
	LogLevel_LOG_LEVEL_INFO        LogLevel = 2
	LogLevel_LOG_LEVEL_WARN        LogLevel = 3
	LogLevel_LOG_LEVEL_ERROR       LogLevel = 4
	LogLevel_LOG_LEVEL_DPANIC      LogLevel = 5
	LogLevel_LOG_LEVEL_PANIC       LogLevel = 6
	LogLevel_LOG_LEVEL_FATAL       LogLevel = 7
)

func (LogLevel) Descriptor

func (LogLevel) Descriptor() protoreflect.EnumDescriptor

func (LogLevel) Enum

func (x LogLevel) Enum() *LogLevel

func (LogLevel) EnumDescriptor deprecated

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

Deprecated: Use LogLevel.Descriptor instead.

func (LogLevel) Number

func (x LogLevel) Number() protoreflect.EnumNumber

func (LogLevel) String

func (x LogLevel) String() string

func (LogLevel) Type

type MaxTransactionsPerSecondRequest

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

func (*MaxTransactionsPerSecondRequest) Descriptor deprecated

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

Deprecated: Use MaxTransactionsPerSecondRequest.ProtoReflect.Descriptor instead.

func (*MaxTransactionsPerSecondRequest) ProtoMessage

func (*MaxTransactionsPerSecondRequest) ProtoMessage()

func (*MaxTransactionsPerSecondRequest) ProtoReflect

func (*MaxTransactionsPerSecondRequest) Reset

func (*MaxTransactionsPerSecondRequest) String

type MaxTransactionsPerSecondResponse

type MaxTransactionsPerSecondResponse struct {
	MaxTxsPerSecond *SimpleInt `protobuf:"bytes,1,opt,name=max_txs_per_second,json=maxTxsPerSecond,proto3" json:"max_txs_per_second,omitempty"`
	// contains filtered or unexported fields
}

func (*MaxTransactionsPerSecondResponse) Descriptor deprecated

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

Deprecated: Use MaxTransactionsPerSecondResponse.ProtoReflect.Descriptor instead.

func (*MaxTransactionsPerSecondResponse) GetMaxTxsPerSecond

func (x *MaxTransactionsPerSecondResponse) GetMaxTxsPerSecond() *SimpleInt

func (*MaxTransactionsPerSecondResponse) ProtoMessage

func (*MaxTransactionsPerSecondResponse) ProtoMessage()

func (*MaxTransactionsPerSecondResponse) ProtoReflect

func (*MaxTransactionsPerSecondResponse) Reset

func (*MaxTransactionsPerSecondResponse) String

type MeshServiceClient

type MeshServiceClient interface {
	// Network genesis time as unix epoch time
	GenesisTime(ctx context.Context, in *GenesisTimeRequest, opts ...grpc.CallOption) (*GenesisTimeResponse, error)
	// Current layer number
	CurrentLayer(ctx context.Context, in *CurrentLayerRequest, opts ...grpc.CallOption) (*CurrentLayerResponse, error)
	// Current epoch number
	CurrentEpoch(ctx context.Context, in *CurrentEpochRequest, opts ...grpc.CallOption) (*CurrentEpochResponse, error)
	// Network ID
	NetID(ctx context.Context, in *NetIDRequest, opts ...grpc.CallOption) (*NetIDResponse, error)
	// Number of layers per epoch (a network parameter)
	EpochNumLayers(ctx context.Context, in *EpochNumLayersRequest, opts ...grpc.CallOption) (*EpochNumLayersResponse, error)
	// Layer duration (a network parameter)
	LayerDuration(ctx context.Context, in *LayerDurationRequest, opts ...grpc.CallOption) (*LayerDurationResponse, error)
	// Number of transactions per second (a network parameter)
	MaxTransactionsPerSecond(ctx context.Context, in *MaxTransactionsPerSecondRequest, opts ...grpc.CallOption) (*MaxTransactionsPerSecondResponse, error)
	// Get account data query
	AccountMeshDataQuery(ctx context.Context, in *AccountMeshDataQueryRequest, opts ...grpc.CallOption) (*AccountMeshDataQueryResponse, error)
	// Layers data query
	LayersQuery(ctx context.Context, in *LayersQueryRequest, opts ...grpc.CallOption) (*LayersQueryResponse, error)
	// A stream of transactions and activations from an account.
	// Includes simple coin transactions with the account as the destination.
	AccountMeshDataStream(ctx context.Context, in *AccountMeshDataStreamRequest, opts ...grpc.CallOption) (MeshService_AccountMeshDataStreamClient, error)
	// Layer with blocks, transactions and activations
	// Sent each time layer data changes. Designed for heavy-duty clients.
	LayerStream(ctx context.Context, in *LayerStreamRequest, opts ...grpc.CallOption) (MeshService_LayerStreamClient, error)
}

MeshServiceClient is the client API for MeshService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MeshServiceServer

type MeshServiceServer interface {
	// Network genesis time as unix epoch time
	GenesisTime(context.Context, *GenesisTimeRequest) (*GenesisTimeResponse, error)
	// Current layer number
	CurrentLayer(context.Context, *CurrentLayerRequest) (*CurrentLayerResponse, error)
	// Current epoch number
	CurrentEpoch(context.Context, *CurrentEpochRequest) (*CurrentEpochResponse, error)
	// Network ID
	NetID(context.Context, *NetIDRequest) (*NetIDResponse, error)
	// Number of layers per epoch (a network parameter)
	EpochNumLayers(context.Context, *EpochNumLayersRequest) (*EpochNumLayersResponse, error)
	// Layer duration (a network parameter)
	LayerDuration(context.Context, *LayerDurationRequest) (*LayerDurationResponse, error)
	// Number of transactions per second (a network parameter)
	MaxTransactionsPerSecond(context.Context, *MaxTransactionsPerSecondRequest) (*MaxTransactionsPerSecondResponse, error)
	// Get account data query
	AccountMeshDataQuery(context.Context, *AccountMeshDataQueryRequest) (*AccountMeshDataQueryResponse, error)
	// Layers data query
	LayersQuery(context.Context, *LayersQueryRequest) (*LayersQueryResponse, error)
	// A stream of transactions and activations from an account.
	// Includes simple coin transactions with the account as the destination.
	AccountMeshDataStream(*AccountMeshDataStreamRequest, MeshService_AccountMeshDataStreamServer) error
	// Layer with blocks, transactions and activations
	// Sent each time layer data changes. Designed for heavy-duty clients.
	LayerStream(*LayerStreamRequest, MeshService_LayerStreamServer) error
}

MeshServiceServer is the server API for MeshService service.

type MeshService_AccountMeshDataStreamClient

type MeshService_AccountMeshDataStreamClient interface {
	Recv() (*AccountMeshDataStreamResponse, error)
	grpc.ClientStream
}

type MeshService_AccountMeshDataStreamServer

type MeshService_AccountMeshDataStreamServer interface {
	Send(*AccountMeshDataStreamResponse) error
	grpc.ServerStream
}

type MeshService_LayerStreamClient

type MeshService_LayerStreamClient interface {
	Recv() (*LayerStreamResponse, error)
	grpc.ClientStream
}

type MeshService_LayerStreamServer

type MeshService_LayerStreamServer interface {
	Send(*LayerStreamResponse) error
	grpc.ServerStream
}

type MeshTransaction

type MeshTransaction struct {
	Transaction *Transaction `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"`
	LayerId     *LayerNumber `protobuf:"bytes,2,opt,name=layer_id,json=layerId,proto3" json:"layer_id,omitempty"`
	// contains filtered or unexported fields
}

Transaction that was added to the mesh.

func (*MeshTransaction) Descriptor deprecated

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

Deprecated: Use MeshTransaction.ProtoReflect.Descriptor instead.

func (*MeshTransaction) GetLayerId

func (x *MeshTransaction) GetLayerId() *LayerNumber

func (*MeshTransaction) GetTransaction

func (x *MeshTransaction) GetTransaction() *Transaction

func (*MeshTransaction) ProtoMessage

func (*MeshTransaction) ProtoMessage()

func (*MeshTransaction) ProtoReflect

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

func (*MeshTransaction) Reset

func (x *MeshTransaction) Reset()

func (*MeshTransaction) String

func (x *MeshTransaction) String() string

type MinGasResponse

type MinGasResponse struct {
	Mingas *SimpleInt `protobuf:"bytes,1,opt,name=mingas,proto3" json:"mingas,omitempty"`
	// contains filtered or unexported fields
}

func (*MinGasResponse) Descriptor deprecated

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

Deprecated: Use MinGasResponse.ProtoReflect.Descriptor instead.

func (*MinGasResponse) GetMingas

func (x *MinGasResponse) GetMingas() *SimpleInt

func (*MinGasResponse) ProtoMessage

func (*MinGasResponse) ProtoMessage()

func (*MinGasResponse) ProtoReflect

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

func (*MinGasResponse) Reset

func (x *MinGasResponse) Reset()

func (*MinGasResponse) String

func (x *MinGasResponse) String() string

type NetIDRequest

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

func (*NetIDRequest) Descriptor deprecated

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

Deprecated: Use NetIDRequest.ProtoReflect.Descriptor instead.

func (*NetIDRequest) ProtoMessage

func (*NetIDRequest) ProtoMessage()

func (*NetIDRequest) ProtoReflect

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

func (*NetIDRequest) Reset

func (x *NetIDRequest) Reset()

func (*NetIDRequest) String

func (x *NetIDRequest) String() string

type NetIDResponse

type NetIDResponse struct {
	Netid *SimpleInt `protobuf:"bytes,1,opt,name=netid,proto3" json:"netid,omitempty"`
	// contains filtered or unexported fields
}

func (*NetIDResponse) Descriptor deprecated

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

Deprecated: Use NetIDResponse.ProtoReflect.Descriptor instead.

func (*NetIDResponse) GetNetid

func (x *NetIDResponse) GetNetid() *SimpleInt

func (*NetIDResponse) ProtoMessage

func (*NetIDResponse) ProtoMessage()

func (*NetIDResponse) ProtoReflect

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

func (*NetIDResponse) Reset

func (x *NetIDResponse) Reset()

func (*NetIDResponse) String

func (x *NetIDResponse) String() string

type NodeError

type NodeError struct {
	Level      LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=spacemesh.v1.LogLevel" json:"level,omitempty"`
	Module     string   `protobuf:"bytes,2,opt,name=module,proto3" json:"module,omitempty"`
	Msg        string   `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	StackTrace string   `protobuf:"bytes,4,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// contains filtered or unexported fields
}

func (*NodeError) Descriptor deprecated

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

Deprecated: Use NodeError.ProtoReflect.Descriptor instead.

func (*NodeError) GetLevel

func (x *NodeError) GetLevel() LogLevel

func (*NodeError) GetModule

func (x *NodeError) GetModule() string

func (*NodeError) GetMsg

func (x *NodeError) GetMsg() string

func (*NodeError) GetStackTrace

func (x *NodeError) GetStackTrace() string

func (*NodeError) ProtoMessage

func (*NodeError) ProtoMessage()

func (*NodeError) ProtoReflect

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

func (*NodeError) Reset

func (x *NodeError) Reset()

func (*NodeError) String

func (x *NodeError) String() string

type NodeServiceClient

type NodeServiceClient interface {
	// A simple test endpoint
	Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
	// Returns the version of the node software as a semver string
	Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
	// Returns the github commit hash used to build the node
	Build(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BuildResponse, error)
	// Current node status (net and sync)
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*StatusResponse, error)
	// Request that the node start syncing the mesh
	SyncStart(ctx context.Context, in *SyncStartRequest, opts ...grpc.CallOption) (*SyncStartResponse, error)
	// Request that the node initiate graceful shutdown
	Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error)
	// UpdatePoetServer updates poet server
	UpdatePoetServer(ctx context.Context, in *UpdatePoetServerRequest, opts ...grpc.CallOption) (*UpdatePoetServerResponse, error)
	// Node status events (sync and net)
	StatusStream(ctx context.Context, in *StatusStreamRequest, opts ...grpc.CallOption) (NodeService_StatusStreamClient, error)
	// Node error events
	ErrorStream(ctx context.Context, in *ErrorStreamRequest, opts ...grpc.CallOption) (NodeService_ErrorStreamClient, error)
}

NodeServiceClient is the client API for NodeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type NodeServiceServer

type NodeServiceServer interface {
	// A simple test endpoint
	Echo(context.Context, *EchoRequest) (*EchoResponse, error)
	// Returns the version of the node software as a semver string
	Version(context.Context, *empty.Empty) (*VersionResponse, error)
	// Returns the github commit hash used to build the node
	Build(context.Context, *empty.Empty) (*BuildResponse, error)
	// Current node status (net and sync)
	Status(context.Context, *StatusRequest) (*StatusResponse, error)
	// Request that the node start syncing the mesh
	SyncStart(context.Context, *SyncStartRequest) (*SyncStartResponse, error)
	// Request that the node initiate graceful shutdown
	Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error)
	// UpdatePoetServer updates poet server
	UpdatePoetServer(context.Context, *UpdatePoetServerRequest) (*UpdatePoetServerResponse, error)
	// Node status events (sync and net)
	StatusStream(*StatusStreamRequest, NodeService_StatusStreamServer) error
	// Node error events
	ErrorStream(*ErrorStreamRequest, NodeService_ErrorStreamServer) error
}

NodeServiceServer is the server API for NodeService service.

type NodeService_ErrorStreamClient

type NodeService_ErrorStreamClient interface {
	Recv() (*ErrorStreamResponse, error)
	grpc.ClientStream
}

type NodeService_ErrorStreamServer

type NodeService_ErrorStreamServer interface {
	Send(*ErrorStreamResponse) error
	grpc.ServerStream
}

type NodeService_StatusStreamClient

type NodeService_StatusStreamClient interface {
	Recv() (*StatusStreamResponse, error)
	grpc.ClientStream
}

type NodeService_StatusStreamServer

type NodeService_StatusStreamServer interface {
	Send(*StatusStreamResponse) error
	grpc.ServerStream
}

type NodeStatus

type NodeStatus struct {
	ConnectedPeers uint64       `protobuf:"varint,1,opt,name=connected_peers,json=connectedPeers,proto3" json:"connected_peers,omitempty"` // number of connected neighbors
	IsSynced       bool         `protobuf:"varint,2,opt,name=is_synced,json=isSynced,proto3" json:"is_synced,omitempty"`                   // true when meshed is synced
	SyncedLayer    *LayerNumber `protobuf:"bytes,3,opt,name=synced_layer,json=syncedLayer,proto3" json:"synced_layer,omitempty"`           // the last layer node has synced
	TopLayer       *LayerNumber `protobuf:"bytes,4,opt,name=top_layer,json=topLayer,proto3" json:"top_layer,omitempty"`                    // top layer is the tip
	VerifiedLayer  *LayerNumber `protobuf:"bytes,5,opt,name=verified_layer,json=verifiedLayer,proto3" json:"verified_layer,omitempty"`     // the last layer node has verified
	// contains filtered or unexported fields
}

current node status

func (*NodeStatus) Descriptor deprecated

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

Deprecated: Use NodeStatus.ProtoReflect.Descriptor instead.

func (*NodeStatus) GetConnectedPeers

func (x *NodeStatus) GetConnectedPeers() uint64

func (*NodeStatus) GetIsSynced

func (x *NodeStatus) GetIsSynced() bool

func (*NodeStatus) GetSyncedLayer

func (x *NodeStatus) GetSyncedLayer() *LayerNumber

func (*NodeStatus) GetTopLayer

func (x *NodeStatus) GetTopLayer() *LayerNumber

func (*NodeStatus) GetVerifiedLayer

func (x *NodeStatus) GetVerifiedLayer() *LayerNumber

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 PostConfigResponse added in v1.4.0

type PostConfigResponse struct {
	BitsPerLabel  uint32 `protobuf:"varint,1,opt,name=bits_per_label,json=bitsPerLabel,proto3" json:"bits_per_label,omitempty"`
	LabelsPerUnit uint64 `protobuf:"varint,2,opt,name=labels_per_unit,json=labelsPerUnit,proto3" json:"labels_per_unit,omitempty"`
	MinNumUnits   uint32 `protobuf:"varint,3,opt,name=min_num_units,json=minNumUnits,proto3" json:"min_num_units,omitempty"`
	MaxNumUnits   uint32 `protobuf:"varint,4,opt,name=max_num_units,json=maxNumUnits,proto3" json:"max_num_units,omitempty"`
	// contains filtered or unexported fields
}

func (*PostConfigResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostConfigResponse.ProtoReflect.Descriptor instead.

func (*PostConfigResponse) GetBitsPerLabel added in v1.4.0

func (x *PostConfigResponse) GetBitsPerLabel() uint32

func (*PostConfigResponse) GetLabelsPerUnit added in v1.4.0

func (x *PostConfigResponse) GetLabelsPerUnit() uint64

func (*PostConfigResponse) GetMaxNumUnits added in v1.4.0

func (x *PostConfigResponse) GetMaxNumUnits() uint32

func (*PostConfigResponse) GetMinNumUnits added in v1.4.0

func (x *PostConfigResponse) GetMinNumUnits() uint32

func (*PostConfigResponse) ProtoMessage added in v1.4.0

func (*PostConfigResponse) ProtoMessage()

func (*PostConfigResponse) ProtoReflect added in v1.4.0

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

func (*PostConfigResponse) Reset added in v1.4.0

func (x *PostConfigResponse) Reset()

func (*PostConfigResponse) String added in v1.4.0

func (x *PostConfigResponse) String() string

type PostSetupComputeProvider added in v1.4.0

type PostSetupComputeProvider struct {
	Id         uint32                                   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`      // 0, 1, 2...
	Model      string                                   `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // e.g. Nvidia GTX 2700
	ComputeApi PostSetupComputeProvider_ComputeApiClass ``                                                                // A provided compute api
	/* 151-byte string literal not displayed */
	Performance uint64 `protobuf:"varint,4,opt,name=performance,proto3" json:"performance,omitempty"` // Estimated performance in hashes per second
	// contains filtered or unexported fields
}

func (*PostSetupComputeProvider) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupComputeProvider.ProtoReflect.Descriptor instead.

func (*PostSetupComputeProvider) GetComputeApi added in v1.4.0

func (*PostSetupComputeProvider) GetId added in v1.4.0

func (x *PostSetupComputeProvider) GetId() uint32

func (*PostSetupComputeProvider) GetModel added in v1.4.0

func (x *PostSetupComputeProvider) GetModel() string

func (*PostSetupComputeProvider) GetPerformance added in v1.4.0

func (x *PostSetupComputeProvider) GetPerformance() uint64

func (*PostSetupComputeProvider) ProtoMessage added in v1.4.0

func (*PostSetupComputeProvider) ProtoMessage()

func (*PostSetupComputeProvider) ProtoReflect added in v1.4.0

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

func (*PostSetupComputeProvider) Reset added in v1.4.0

func (x *PostSetupComputeProvider) Reset()

func (*PostSetupComputeProvider) String added in v1.4.0

func (x *PostSetupComputeProvider) String() string

type PostSetupComputeProvider_ComputeApiClass added in v1.4.0

type PostSetupComputeProvider_ComputeApiClass int32
const (
	PostSetupComputeProvider_COMPUTE_API_CLASS_UNSPECIFIED PostSetupComputeProvider_ComputeApiClass = 0
	PostSetupComputeProvider_COMPUTE_API_CLASS_CPU         PostSetupComputeProvider_ComputeApiClass = 1 // useful for testing on systems without a cuda or vulkan GPU
	PostSetupComputeProvider_COMPUTE_API_CLASS_CUDA        PostSetupComputeProvider_ComputeApiClass = 2
	PostSetupComputeProvider_COMPUTE_API_CLASS_VULKAN      PostSetupComputeProvider_ComputeApiClass = 3
)

func (PostSetupComputeProvider_ComputeApiClass) Descriptor added in v1.4.0

func (PostSetupComputeProvider_ComputeApiClass) Enum added in v1.4.0

func (PostSetupComputeProvider_ComputeApiClass) EnumDescriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupComputeProvider_ComputeApiClass.Descriptor instead.

func (PostSetupComputeProvider_ComputeApiClass) Number added in v1.4.0

func (PostSetupComputeProvider_ComputeApiClass) String added in v1.4.0

func (PostSetupComputeProvider_ComputeApiClass) Type added in v1.4.0

type PostSetupComputeProvidersRequest added in v1.4.0

type PostSetupComputeProvidersRequest struct {

	// Whether to run a short benchmarking session for each provider to evaluate its performance
	Benchmark bool `protobuf:"varint,1,opt,name=benchmark,proto3" json:"benchmark,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSetupComputeProvidersRequest) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupComputeProvidersRequest.ProtoReflect.Descriptor instead.

func (*PostSetupComputeProvidersRequest) GetBenchmark added in v1.4.0

func (x *PostSetupComputeProvidersRequest) GetBenchmark() bool

func (*PostSetupComputeProvidersRequest) ProtoMessage added in v1.4.0

func (*PostSetupComputeProvidersRequest) ProtoMessage()

func (*PostSetupComputeProvidersRequest) ProtoReflect added in v1.4.0

func (*PostSetupComputeProvidersRequest) Reset added in v1.4.0

func (*PostSetupComputeProvidersRequest) String added in v1.4.0

type PostSetupComputeProvidersResponse added in v1.4.0

type PostSetupComputeProvidersResponse struct {
	Providers []*PostSetupComputeProvider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSetupComputeProvidersResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupComputeProvidersResponse.ProtoReflect.Descriptor instead.

func (*PostSetupComputeProvidersResponse) GetProviders added in v1.4.0

func (*PostSetupComputeProvidersResponse) ProtoMessage added in v1.4.0

func (*PostSetupComputeProvidersResponse) ProtoMessage()

func (*PostSetupComputeProvidersResponse) ProtoReflect added in v1.4.0

func (*PostSetupComputeProvidersResponse) Reset added in v1.4.0

func (*PostSetupComputeProvidersResponse) String added in v1.4.0

type PostSetupOpts added in v1.4.0

type PostSetupOpts struct {
	DataDir           string `protobuf:"bytes,1,opt,name=data_dir,json=dataDir,proto3" json:"data_dir,omitempty"`                                  // User provided path to create the setup data files at
	NumUnits          uint32 `protobuf:"varint,2,opt,name=num_units,json=numUnits,proto3" json:"num_units,omitempty"`                              // Number of Post data units to generate
	NumFiles          uint32 `protobuf:"varint,3,opt,name=num_files,json=numFiles,proto3" json:"num_files,omitempty"`                              // Number of files to equally distribute the data among
	ComputeProviderId uint32 `protobuf:"varint,4,opt,name=compute_provider_id,json=computeProviderId,proto3" json:"compute_provider_id,omitempty"` // A `PostSetupComputeProvider` id
	Throttle          bool   `protobuf:"varint,5,opt,name=throttle,proto3" json:"throttle,omitempty"`                                              // Throttle down setup phase computations while user is interactive on system
	// contains filtered or unexported fields
}

Post setup options, used to define the setup requirements.

func (*PostSetupOpts) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupOpts.ProtoReflect.Descriptor instead.

func (*PostSetupOpts) GetComputeProviderId added in v1.4.0

func (x *PostSetupOpts) GetComputeProviderId() uint32

func (*PostSetupOpts) GetDataDir added in v1.4.0

func (x *PostSetupOpts) GetDataDir() string

func (*PostSetupOpts) GetNumFiles added in v1.4.0

func (x *PostSetupOpts) GetNumFiles() uint32

func (*PostSetupOpts) GetNumUnits added in v1.4.0

func (x *PostSetupOpts) GetNumUnits() uint32

func (*PostSetupOpts) GetThrottle added in v1.4.0

func (x *PostSetupOpts) GetThrottle() bool

func (*PostSetupOpts) ProtoMessage added in v1.4.0

func (*PostSetupOpts) ProtoMessage()

func (*PostSetupOpts) ProtoReflect added in v1.4.0

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

func (*PostSetupOpts) Reset added in v1.4.0

func (x *PostSetupOpts) Reset()

func (*PostSetupOpts) String added in v1.4.0

func (x *PostSetupOpts) String() string

type PostSetupStatus added in v1.4.0

type PostSetupStatus struct {
	State            PostSetupStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=spacemesh.v1.PostSetupStatus_State" json:"state,omitempty"`
	NumLabelsWritten uint64                `protobuf:"varint,2,opt,name=num_labels_written,json=numLabelsWritten,proto3" json:"num_labels_written,omitempty"` // Number of labels (hashes) written to the data files
	Opts             *PostSetupOpts        `protobuf:"bytes,3,opt,name=opts,proto3" json:"opts,omitempty"`                                                    // setup options previously set by the user
	ErrorMessage     string                `protobuf:"bytes,4,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`                // The error message, if the state is STATE_ERROR
	// contains filtered or unexported fields
}

func (*PostSetupStatus) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupStatus.ProtoReflect.Descriptor instead.

func (*PostSetupStatus) GetErrorMessage added in v1.4.0

func (x *PostSetupStatus) GetErrorMessage() string

func (*PostSetupStatus) GetNumLabelsWritten added in v1.4.0

func (x *PostSetupStatus) GetNumLabelsWritten() uint64

func (*PostSetupStatus) GetOpts added in v1.4.0

func (x *PostSetupStatus) GetOpts() *PostSetupOpts

func (*PostSetupStatus) GetState added in v1.4.0

func (x *PostSetupStatus) GetState() PostSetupStatus_State

func (*PostSetupStatus) ProtoMessage added in v1.4.0

func (*PostSetupStatus) ProtoMessage()

func (*PostSetupStatus) ProtoReflect added in v1.4.0

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

func (*PostSetupStatus) Reset added in v1.4.0

func (x *PostSetupStatus) Reset()

func (*PostSetupStatus) String added in v1.4.0

func (x *PostSetupStatus) String() string

type PostSetupStatusResponse added in v1.4.0

type PostSetupStatusResponse struct {
	Status *PostSetupStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSetupStatusResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupStatusResponse.ProtoReflect.Descriptor instead.

func (*PostSetupStatusResponse) GetStatus added in v1.4.0

func (x *PostSetupStatusResponse) GetStatus() *PostSetupStatus

func (*PostSetupStatusResponse) ProtoMessage added in v1.4.0

func (*PostSetupStatusResponse) ProtoMessage()

func (*PostSetupStatusResponse) ProtoReflect added in v1.4.0

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

func (*PostSetupStatusResponse) Reset added in v1.4.0

func (x *PostSetupStatusResponse) Reset()

func (*PostSetupStatusResponse) String added in v1.4.0

func (x *PostSetupStatusResponse) String() string

type PostSetupStatusStreamResponse added in v1.4.0

type PostSetupStatusStreamResponse struct {
	Status *PostSetupStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*PostSetupStatusStreamResponse) Descriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupStatusStreamResponse.ProtoReflect.Descriptor instead.

func (*PostSetupStatusStreamResponse) GetStatus added in v1.4.0

func (*PostSetupStatusStreamResponse) ProtoMessage added in v1.4.0

func (*PostSetupStatusStreamResponse) ProtoMessage()

func (*PostSetupStatusStreamResponse) ProtoReflect added in v1.4.0

func (*PostSetupStatusStreamResponse) Reset added in v1.4.0

func (x *PostSetupStatusStreamResponse) Reset()

func (*PostSetupStatusStreamResponse) String added in v1.4.0

type PostSetupStatus_State added in v1.4.0

type PostSetupStatus_State int32
const (
	PostSetupStatus_STATE_UNSPECIFIED PostSetupStatus_State = 0 // Lane's favorite impossible value
	PostSetupStatus_STATE_NOT_STARTED PostSetupStatus_State = 1 // Setup not started
	PostSetupStatus_STATE_IN_PROGRESS PostSetupStatus_State = 2 // Setup in progress
	PostSetupStatus_STATE_COMPLETE    PostSetupStatus_State = 3 // Setup is complete
	PostSetupStatus_STATE_ERROR       PostSetupStatus_State = 4 // Setup last session ended with an error
)

func (PostSetupStatus_State) Descriptor added in v1.4.0

func (PostSetupStatus_State) Enum added in v1.4.0

func (PostSetupStatus_State) EnumDescriptor deprecated added in v1.4.0

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

Deprecated: Use PostSetupStatus_State.Descriptor instead.

func (PostSetupStatus_State) Number added in v1.4.0

func (PostSetupStatus_State) String added in v1.4.0

func (x PostSetupStatus_State) String() string

func (PostSetupStatus_State) Type added in v1.4.0

type Reward

type Reward struct {
	Layer         *LayerNumber `protobuf:"bytes,1,opt,name=layer,proto3" json:"layer,omitempty"`                                      // layer award was paid in
	Total         *Amount      `protobuf:"bytes,2,opt,name=total,proto3" json:"total,omitempty"`                                      // total reward paid (sum of tx fee and layer reward)
	LayerReward   *Amount      `protobuf:"bytes,3,opt,name=layer_reward,json=layerReward,proto3" json:"layer_reward,omitempty"`       // tx_fee = total - layer_reward
	LayerComputed *LayerNumber `protobuf:"bytes,4,opt,name=layer_computed,json=layerComputed,proto3" json:"layer_computed,omitempty"` // layer number of the layer when reward was computed
	Coinbase      *AccountId   `protobuf:"bytes,5,opt,name=coinbase,proto3" json:"coinbase,omitempty"`                                // account awarded this reward
	Smesher       *SmesherId   `protobuf:"bytes,6,opt,name=smesher,proto3" json:"smesher,omitempty"`                                  // id of smesher who earned this reward
	// contains filtered or unexported fields
}

func (*Reward) Descriptor deprecated

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

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetCoinbase

func (x *Reward) GetCoinbase() *AccountId

func (*Reward) GetLayer

func (x *Reward) GetLayer() *LayerNumber

func (*Reward) GetLayerComputed

func (x *Reward) GetLayerComputed() *LayerNumber

func (*Reward) GetLayerReward

func (x *Reward) GetLayerReward() *Amount

func (*Reward) GetSmesher

func (x *Reward) GetSmesher() *SmesherId

func (*Reward) GetTotal

func (x *Reward) GetTotal() *Amount

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 SetCoinbaseRequest

type SetCoinbaseRequest struct {
	Id *AccountId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCoinbaseRequest) Descriptor deprecated

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

Deprecated: Use SetCoinbaseRequest.ProtoReflect.Descriptor instead.

func (*SetCoinbaseRequest) GetId

func (x *SetCoinbaseRequest) GetId() *AccountId

func (*SetCoinbaseRequest) ProtoMessage

func (*SetCoinbaseRequest) ProtoMessage()

func (*SetCoinbaseRequest) ProtoReflect

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

func (*SetCoinbaseRequest) Reset

func (x *SetCoinbaseRequest) Reset()

func (*SetCoinbaseRequest) String

func (x *SetCoinbaseRequest) String() string

type SetCoinbaseResponse

type SetCoinbaseResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SetCoinbaseResponse) Descriptor deprecated

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

Deprecated: Use SetCoinbaseResponse.ProtoReflect.Descriptor instead.

func (*SetCoinbaseResponse) GetStatus

func (x *SetCoinbaseResponse) GetStatus() *status.Status

func (*SetCoinbaseResponse) ProtoMessage

func (*SetCoinbaseResponse) ProtoMessage()

func (*SetCoinbaseResponse) ProtoReflect

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

func (*SetCoinbaseResponse) Reset

func (x *SetCoinbaseResponse) Reset()

func (*SetCoinbaseResponse) String

func (x *SetCoinbaseResponse) String() string

type SetMinGasRequest

type SetMinGasRequest struct {
	Mingas *SimpleInt `protobuf:"bytes,1,opt,name=mingas,proto3" json:"mingas,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMinGasRequest) Descriptor deprecated

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

Deprecated: Use SetMinGasRequest.ProtoReflect.Descriptor instead.

func (*SetMinGasRequest) GetMingas

func (x *SetMinGasRequest) GetMingas() *SimpleInt

func (*SetMinGasRequest) ProtoMessage

func (*SetMinGasRequest) ProtoMessage()

func (*SetMinGasRequest) ProtoReflect

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

func (*SetMinGasRequest) Reset

func (x *SetMinGasRequest) Reset()

func (*SetMinGasRequest) String

func (x *SetMinGasRequest) String() string

type SetMinGasResponse

type SetMinGasResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SetMinGasResponse) Descriptor deprecated

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

Deprecated: Use SetMinGasResponse.ProtoReflect.Descriptor instead.

func (*SetMinGasResponse) GetStatus

func (x *SetMinGasResponse) GetStatus() *status.Status

func (*SetMinGasResponse) ProtoMessage

func (*SetMinGasResponse) ProtoMessage()

func (*SetMinGasResponse) ProtoReflect

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

func (*SetMinGasResponse) Reset

func (x *SetMinGasResponse) Reset()

func (*SetMinGasResponse) String

func (x *SetMinGasResponse) String() string

type ShutdownRequest

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

func (*ShutdownRequest) Descriptor deprecated

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

Deprecated: Use ShutdownRequest.ProtoReflect.Descriptor instead.

func (*ShutdownRequest) ProtoMessage

func (*ShutdownRequest) ProtoMessage()

func (*ShutdownRequest) ProtoReflect

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

func (*ShutdownRequest) Reset

func (x *ShutdownRequest) Reset()

func (*ShutdownRequest) String

func (x *ShutdownRequest) String() string

type ShutdownResponse

type ShutdownResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ShutdownResponse) Descriptor deprecated

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

Deprecated: Use ShutdownResponse.ProtoReflect.Descriptor instead.

func (*ShutdownResponse) GetStatus

func (x *ShutdownResponse) GetStatus() *status.Status

func (*ShutdownResponse) ProtoMessage

func (*ShutdownResponse) ProtoMessage()

func (*ShutdownResponse) ProtoReflect

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

func (*ShutdownResponse) Reset

func (x *ShutdownResponse) Reset()

func (*ShutdownResponse) String

func (x *ShutdownResponse) String() string

type Signature

type Signature struct {
	Scheme    Signature_Scheme `protobuf:"varint,1,opt,name=scheme,proto3,enum=spacemesh.v1.Signature_Scheme" json:"scheme,omitempty"` // the signature's scheme
	Signature []byte           `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`                               // the signature itself
	PublicKey []byte           `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`              // included in schemes which require signer to provide a public key
	// contains filtered or unexported fields
}

A simple signature data

func (*Signature) Descriptor deprecated

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

Deprecated: Use Signature.ProtoReflect.Descriptor instead.

func (*Signature) GetPublicKey

func (x *Signature) GetPublicKey() []byte

func (*Signature) GetScheme

func (x *Signature) GetScheme() Signature_Scheme

func (*Signature) GetSignature

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

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) ProtoReflect

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

func (*Signature) Reset

func (x *Signature) Reset()

func (*Signature) String

func (x *Signature) String() string

type Signature_Scheme

type Signature_Scheme int32
const (
	Signature_SCHEME_UNSPECIFIED       Signature_Scheme = 0
	Signature_SCHEME_ED25519           Signature_Scheme = 1 // standard Ed25519 scheme
	Signature_SCHEME_ED25519_PLUS_PLUS Signature_Scheme = 2 // sm-modified ED25519 , a.k.a. ED25519++
)

func (Signature_Scheme) Descriptor

func (Signature_Scheme) Enum

func (Signature_Scheme) EnumDescriptor deprecated

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

Deprecated: Use Signature_Scheme.Descriptor instead.

func (Signature_Scheme) Number

func (Signature_Scheme) String

func (x Signature_Scheme) String() string

func (Signature_Scheme) Type

type SimpleInt

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

func (*SimpleInt) Descriptor deprecated

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

Deprecated: Use SimpleInt.ProtoReflect.Descriptor instead.

func (*SimpleInt) GetValue

func (x *SimpleInt) GetValue() uint64

func (*SimpleInt) ProtoMessage

func (*SimpleInt) ProtoMessage()

func (*SimpleInt) ProtoReflect

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

func (*SimpleInt) Reset

func (x *SimpleInt) Reset()

func (*SimpleInt) String

func (x *SimpleInt) String() string

type SimpleString

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

func (*SimpleString) Descriptor deprecated

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

Deprecated: Use SimpleString.ProtoReflect.Descriptor instead.

func (*SimpleString) GetValue

func (x *SimpleString) GetValue() string

func (*SimpleString) ProtoMessage

func (*SimpleString) ProtoMessage()

func (*SimpleString) ProtoReflect

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

func (*SimpleString) Reset

func (x *SimpleString) Reset()

func (*SimpleString) String

func (x *SimpleString) String() string

type SmartContractTransaction

type SmartContractTransaction struct {
	Type      SmartContractTransaction_TransactionType `protobuf:"varint,1,opt,name=type,proto3,enum=spacemesh.v1.SmartContractTransaction_TransactionType" json:"type,omitempty"`
	Data      []byte                                   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`                            // packed binary arguments, including ABI selector
	AccountId *AccountId                               `protobuf:"bytes,3,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // address of smart contract or template
	// contains filtered or unexported fields
}

Data specific to a smart contract transaction.

func (*SmartContractTransaction) Descriptor deprecated

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

Deprecated: Use SmartContractTransaction.ProtoReflect.Descriptor instead.

func (*SmartContractTransaction) GetAccountId

func (x *SmartContractTransaction) GetAccountId() *AccountId

func (*SmartContractTransaction) GetData

func (x *SmartContractTransaction) GetData() []byte

func (*SmartContractTransaction) GetType

func (*SmartContractTransaction) ProtoMessage

func (*SmartContractTransaction) ProtoMessage()

func (*SmartContractTransaction) ProtoReflect

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

func (*SmartContractTransaction) Reset

func (x *SmartContractTransaction) Reset()

func (*SmartContractTransaction) String

func (x *SmartContractTransaction) String() string

type SmartContractTransaction_TransactionType

type SmartContractTransaction_TransactionType int32
const (
	SmartContractTransaction_TRANSACTION_TYPE_UNSPECIFIED     SmartContractTransaction_TransactionType = 0
	SmartContractTransaction_TRANSACTION_TYPE_APP             SmartContractTransaction_TransactionType = 1 // smart contract method
	SmartContractTransaction_TRANSACTION_TYPE_APP_SPAWN_APP   SmartContractTransaction_TransactionType = 2 // deploy app from template using svm terminology
	SmartContractTransaction_TRANSACTION_TYPE_DEPLOY_TEMPLATE SmartContractTransaction_TransactionType = 3 // deploy app template code to mesh
)

func (SmartContractTransaction_TransactionType) Descriptor

func (SmartContractTransaction_TransactionType) Enum

func (SmartContractTransaction_TransactionType) EnumDescriptor deprecated

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

Deprecated: Use SmartContractTransaction_TransactionType.Descriptor instead.

func (SmartContractTransaction_TransactionType) Number

func (SmartContractTransaction_TransactionType) String

func (SmartContractTransaction_TransactionType) Type

type SmesherDataQueryRequest

type SmesherDataQueryRequest struct {
	SmesherId  *SmesherId `protobuf:"bytes,1,opt,name=smesher_id,json=smesherId,proto3" json:"smesher_id,omitempty"`
	MaxResults uint32     `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // max numbers of results client would like to get
	Offset     uint32     `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`                           // return results from offset
	// contains filtered or unexported fields
}

func (*SmesherDataQueryRequest) Descriptor deprecated

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

Deprecated: Use SmesherDataQueryRequest.ProtoReflect.Descriptor instead.

func (*SmesherDataQueryRequest) GetMaxResults

func (x *SmesherDataQueryRequest) GetMaxResults() uint32

func (*SmesherDataQueryRequest) GetOffset

func (x *SmesherDataQueryRequest) GetOffset() uint32

func (*SmesherDataQueryRequest) GetSmesherId

func (x *SmesherDataQueryRequest) GetSmesherId() *SmesherId

func (*SmesherDataQueryRequest) ProtoMessage

func (*SmesherDataQueryRequest) ProtoMessage()

func (*SmesherDataQueryRequest) ProtoReflect

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

func (*SmesherDataQueryRequest) Reset

func (x *SmesherDataQueryRequest) Reset()

func (*SmesherDataQueryRequest) String

func (x *SmesherDataQueryRequest) String() string

type SmesherDataQueryResponse

type SmesherDataQueryResponse struct {
	TotalResults uint32    `protobuf:"varint,1,opt,name=total_results,json=totalResults,proto3" json:"total_results,omitempty"`
	Rewards      []*Reward `protobuf:"bytes,2,rep,name=rewards,proto3" json:"rewards,omitempty"`
	// contains filtered or unexported fields
}

func (*SmesherDataQueryResponse) Descriptor deprecated

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

Deprecated: Use SmesherDataQueryResponse.ProtoReflect.Descriptor instead.

func (*SmesherDataQueryResponse) GetRewards

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

func (*SmesherDataQueryResponse) GetTotalResults

func (x *SmesherDataQueryResponse) GetTotalResults() uint32

func (*SmesherDataQueryResponse) ProtoMessage

func (*SmesherDataQueryResponse) ProtoMessage()

func (*SmesherDataQueryResponse) ProtoReflect

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

func (*SmesherDataQueryResponse) Reset

func (x *SmesherDataQueryResponse) Reset()

func (*SmesherDataQueryResponse) String

func (x *SmesherDataQueryResponse) String() string

type SmesherIDResponse

type SmesherIDResponse struct {
	AccountId *AccountId `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SmesherIDResponse) Descriptor deprecated

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

Deprecated: Use SmesherIDResponse.ProtoReflect.Descriptor instead.

func (*SmesherIDResponse) GetAccountId

func (x *SmesherIDResponse) GetAccountId() *AccountId

func (*SmesherIDResponse) ProtoMessage

func (*SmesherIDResponse) ProtoMessage()

func (*SmesherIDResponse) ProtoReflect

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

func (*SmesherIDResponse) Reset

func (x *SmesherIDResponse) Reset()

func (*SmesherIDResponse) String

func (x *SmesherIDResponse) String() string

type SmesherId

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

func (*SmesherId) Descriptor deprecated

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

Deprecated: Use SmesherId.ProtoReflect.Descriptor instead.

func (*SmesherId) GetId

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

func (*SmesherId) ProtoMessage

func (*SmesherId) ProtoMessage()

func (*SmesherId) ProtoReflect

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

func (*SmesherId) Reset

func (x *SmesherId) Reset()

func (*SmesherId) String

func (x *SmesherId) String() string

type SmesherRewardStreamRequest

type SmesherRewardStreamRequest struct {
	Id *SmesherId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SmesherRewardStreamRequest) Descriptor deprecated

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

Deprecated: Use SmesherRewardStreamRequest.ProtoReflect.Descriptor instead.

func (*SmesherRewardStreamRequest) GetId

func (*SmesherRewardStreamRequest) ProtoMessage

func (*SmesherRewardStreamRequest) ProtoMessage()

func (*SmesherRewardStreamRequest) ProtoReflect

func (*SmesherRewardStreamRequest) Reset

func (x *SmesherRewardStreamRequest) Reset()

func (*SmesherRewardStreamRequest) String

func (x *SmesherRewardStreamRequest) String() string

type SmesherRewardStreamResponse

type SmesherRewardStreamResponse struct {
	Reward *Reward `protobuf:"bytes,1,opt,name=reward,proto3" json:"reward,omitempty"`
	// contains filtered or unexported fields
}

func (*SmesherRewardStreamResponse) Descriptor deprecated

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

Deprecated: Use SmesherRewardStreamResponse.ProtoReflect.Descriptor instead.

func (*SmesherRewardStreamResponse) GetReward

func (x *SmesherRewardStreamResponse) GetReward() *Reward

func (*SmesherRewardStreamResponse) ProtoMessage

func (*SmesherRewardStreamResponse) ProtoMessage()

func (*SmesherRewardStreamResponse) ProtoReflect

func (*SmesherRewardStreamResponse) Reset

func (x *SmesherRewardStreamResponse) Reset()

func (*SmesherRewardStreamResponse) String

func (x *SmesherRewardStreamResponse) String() string

type SmesherServiceClient

type SmesherServiceClient interface {
	// Returns true iff node is currently smeshing
	IsSmeshing(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*IsSmeshingResponse, error)
	// Starts smeshing, after completing the post setup.
	// Changing of the post setup options (e.g., number of units), after initial setup, is supported.
	// Returns success if request is accepted by node , failure if it fails
	StartSmeshing(ctx context.Context, in *StartSmeshingRequest, opts ...grpc.CallOption) (*StartSmeshingResponse, error)
	// Stops smeshing, or the preceding post setup session, and optionally attempt to
	// delete the post setup data files(s).
	// Returns success if request is accepted by node, failure if it fails
	StopSmeshing(ctx context.Context, in *StopSmeshingRequest, opts ...grpc.CallOption) (*StopSmeshingResponse, error)
	// Get the current smesher id generated by the node
	SmesherID(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*SmesherIDResponse, error)
	// Get the current coinbase
	Coinbase(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*CoinbaseResponse, error)
	// Set the coinbase
	// Returns success if request succeeds, failure if it fails
	SetCoinbase(ctx context.Context, in *SetCoinbaseRequest, opts ...grpc.CallOption) (*SetCoinbaseResponse, error)
	// Get the current min gas for including txs in blocks by this smesher
	MinGas(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MinGasResponse, error)
	// Set a min gas units for including txs in blocks by this smesher
	// Returns success if request succeeds, failure if it fails
	SetMinGas(ctx context.Context, in *SetMinGasRequest, opts ...grpc.CallOption) (*SetMinGasResponse, error)
	// Estimate smeshing rewards over the next upcoming epoch
	EstimatedRewards(ctx context.Context, in *EstimatedRewardsRequest, opts ...grpc.CallOption) (*EstimatedRewardsResponse, error)
	// Returns the Post setup status
	PostSetupStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PostSetupStatusResponse, error)
	// Returns a stream of updates for the Post setup status
	PostSetupStatusStream(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (SmesherService_PostSetupStatusStreamClient, error)
	// Returns a list of available Post setup compute providers
	PostSetupComputeProviders(ctx context.Context, in *PostSetupComputeProvidersRequest, opts ...grpc.CallOption) (*PostSetupComputeProvidersResponse, error)
	// Returns the Post protocol config
	PostConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*PostConfigResponse, error)
}

SmesherServiceClient is the client API for SmesherService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type SmesherServiceServer

type SmesherServiceServer interface {
	// Returns true iff node is currently smeshing
	IsSmeshing(context.Context, *empty.Empty) (*IsSmeshingResponse, error)
	// Starts smeshing, after completing the post setup.
	// Changing of the post setup options (e.g., number of units), after initial setup, is supported.
	// Returns success if request is accepted by node , failure if it fails
	StartSmeshing(context.Context, *StartSmeshingRequest) (*StartSmeshingResponse, error)
	// Stops smeshing, or the preceding post setup session, and optionally attempt to
	// delete the post setup data files(s).
	// Returns success if request is accepted by node, failure if it fails
	StopSmeshing(context.Context, *StopSmeshingRequest) (*StopSmeshingResponse, error)
	// Get the current smesher id generated by the node
	SmesherID(context.Context, *empty.Empty) (*SmesherIDResponse, error)
	// Get the current coinbase
	Coinbase(context.Context, *empty.Empty) (*CoinbaseResponse, error)
	// Set the coinbase
	// Returns success if request succeeds, failure if it fails
	SetCoinbase(context.Context, *SetCoinbaseRequest) (*SetCoinbaseResponse, error)
	// Get the current min gas for including txs in blocks by this smesher
	MinGas(context.Context, *empty.Empty) (*MinGasResponse, error)
	// Set a min gas units for including txs in blocks by this smesher
	// Returns success if request succeeds, failure if it fails
	SetMinGas(context.Context, *SetMinGasRequest) (*SetMinGasResponse, error)
	// Estimate smeshing rewards over the next upcoming epoch
	EstimatedRewards(context.Context, *EstimatedRewardsRequest) (*EstimatedRewardsResponse, error)
	// Returns the Post setup status
	PostSetupStatus(context.Context, *empty.Empty) (*PostSetupStatusResponse, error)
	// Returns a stream of updates for the Post setup status
	PostSetupStatusStream(*empty.Empty, SmesherService_PostSetupStatusStreamServer) error
	// Returns a list of available Post setup compute providers
	PostSetupComputeProviders(context.Context, *PostSetupComputeProvidersRequest) (*PostSetupComputeProvidersResponse, error)
	// Returns the Post protocol config
	PostConfig(context.Context, *empty.Empty) (*PostConfigResponse, error)
}

SmesherServiceServer is the server API for SmesherService service.

type SmesherService_PostSetupStatusStreamClient added in v1.4.0

type SmesherService_PostSetupStatusStreamClient interface {
	Recv() (*PostSetupStatusStreamResponse, error)
	grpc.ClientStream
}

type SmesherService_PostSetupStatusStreamServer added in v1.4.0

type SmesherService_PostSetupStatusStreamServer interface {
	Send(*PostSetupStatusStreamResponse) error
	grpc.ServerStream
}

type StartSmeshingRequest

type StartSmeshingRequest struct {

	// Coinbase account for rewards accumulation.
	Coinbase *AccountId `protobuf:"bytes,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"`
	// The Post setup options.
	Opts *PostSetupOpts `protobuf:"bytes,2,opt,name=opts,proto3" json:"opts,omitempty"`
	// contains filtered or unexported fields
}

func (*StartSmeshingRequest) Descriptor deprecated

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

Deprecated: Use StartSmeshingRequest.ProtoReflect.Descriptor instead.

func (*StartSmeshingRequest) GetCoinbase

func (x *StartSmeshingRequest) GetCoinbase() *AccountId

func (*StartSmeshingRequest) GetOpts added in v1.4.0

func (x *StartSmeshingRequest) GetOpts() *PostSetupOpts

func (*StartSmeshingRequest) ProtoMessage

func (*StartSmeshingRequest) ProtoMessage()

func (*StartSmeshingRequest) ProtoReflect

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

func (*StartSmeshingRequest) Reset

func (x *StartSmeshingRequest) Reset()

func (*StartSmeshingRequest) String

func (x *StartSmeshingRequest) String() string

type StartSmeshingResponse

type StartSmeshingResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StartSmeshingResponse) Descriptor deprecated

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

Deprecated: Use StartSmeshingResponse.ProtoReflect.Descriptor instead.

func (*StartSmeshingResponse) GetStatus

func (x *StartSmeshingResponse) GetStatus() *status.Status

func (*StartSmeshingResponse) ProtoMessage

func (*StartSmeshingResponse) ProtoMessage()

func (*StartSmeshingResponse) ProtoReflect

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

func (*StartSmeshingResponse) Reset

func (x *StartSmeshingResponse) Reset()

func (*StartSmeshingResponse) String

func (x *StartSmeshingResponse) String() string

type StatusRequest

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

func (*StatusRequest) Descriptor deprecated

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

Deprecated: Use StatusRequest.ProtoReflect.Descriptor instead.

func (*StatusRequest) ProtoMessage

func (*StatusRequest) ProtoMessage()

func (*StatusRequest) ProtoReflect

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

func (*StatusRequest) Reset

func (x *StatusRequest) Reset()

func (*StatusRequest) String

func (x *StatusRequest) String() string

type StatusResponse

type StatusResponse struct {
	Status *NodeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusResponse) Descriptor deprecated

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

Deprecated: Use StatusResponse.ProtoReflect.Descriptor instead.

func (*StatusResponse) GetStatus

func (x *StatusResponse) GetStatus() *NodeStatus

func (*StatusResponse) ProtoMessage

func (*StatusResponse) ProtoMessage()

func (*StatusResponse) ProtoReflect

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

func (*StatusResponse) Reset

func (x *StatusResponse) Reset()

func (*StatusResponse) String

func (x *StatusResponse) String() string

type StatusStreamRequest

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

func (*StatusStreamRequest) Descriptor deprecated

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

Deprecated: Use StatusStreamRequest.ProtoReflect.Descriptor instead.

func (*StatusStreamRequest) ProtoMessage

func (*StatusStreamRequest) ProtoMessage()

func (*StatusStreamRequest) ProtoReflect

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

func (*StatusStreamRequest) Reset

func (x *StatusStreamRequest) Reset()

func (*StatusStreamRequest) String

func (x *StatusStreamRequest) String() string

type StatusStreamResponse

type StatusStreamResponse struct {
	Status *NodeStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StatusStreamResponse) Descriptor deprecated

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

Deprecated: Use StatusStreamResponse.ProtoReflect.Descriptor instead.

func (*StatusStreamResponse) GetStatus

func (x *StatusStreamResponse) GetStatus() *NodeStatus

func (*StatusStreamResponse) ProtoMessage

func (*StatusStreamResponse) ProtoMessage()

func (*StatusStreamResponse) ProtoReflect

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

func (*StatusStreamResponse) Reset

func (x *StatusStreamResponse) Reset()

func (*StatusStreamResponse) String

func (x *StatusStreamResponse) String() string

type StopSmeshingRequest

type StopSmeshingRequest struct {
	DeleteFiles bool `protobuf:"varint,1,opt,name=delete_files,json=deleteFiles,proto3" json:"delete_files,omitempty"`
	// contains filtered or unexported fields
}

Param passed to methods to indicate a request to delete data files

func (*StopSmeshingRequest) Descriptor deprecated

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

Deprecated: Use StopSmeshingRequest.ProtoReflect.Descriptor instead.

func (*StopSmeshingRequest) GetDeleteFiles

func (x *StopSmeshingRequest) GetDeleteFiles() bool

func (*StopSmeshingRequest) ProtoMessage

func (*StopSmeshingRequest) ProtoMessage()

func (*StopSmeshingRequest) ProtoReflect

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

func (*StopSmeshingRequest) Reset

func (x *StopSmeshingRequest) Reset()

func (*StopSmeshingRequest) String

func (x *StopSmeshingRequest) String() string

type StopSmeshingResponse

type StopSmeshingResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*StopSmeshingResponse) Descriptor deprecated

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

Deprecated: Use StopSmeshingResponse.ProtoReflect.Descriptor instead.

func (*StopSmeshingResponse) GetStatus

func (x *StopSmeshingResponse) GetStatus() *status.Status

func (*StopSmeshingResponse) ProtoMessage

func (*StopSmeshingResponse) ProtoMessage()

func (*StopSmeshingResponse) ProtoReflect

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

func (*StopSmeshingResponse) Reset

func (x *StopSmeshingResponse) Reset()

func (*StopSmeshingResponse) String

func (x *StopSmeshingResponse) String() string

type SubmitTransactionRequest

type SubmitTransactionRequest struct {
	Transaction []byte `protobuf:"bytes,1,opt,name=transaction,proto3" json:"transaction,omitempty"` // signed binary transaction
	// contains filtered or unexported fields
}

func (*SubmitTransactionRequest) Descriptor deprecated

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

Deprecated: Use SubmitTransactionRequest.ProtoReflect.Descriptor instead.

func (*SubmitTransactionRequest) GetTransaction

func (x *SubmitTransactionRequest) GetTransaction() []byte

func (*SubmitTransactionRequest) ProtoMessage

func (*SubmitTransactionRequest) ProtoMessage()

func (*SubmitTransactionRequest) ProtoReflect

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

func (*SubmitTransactionRequest) Reset

func (x *SubmitTransactionRequest) Reset()

func (*SubmitTransactionRequest) String

func (x *SubmitTransactionRequest) String() string

type SubmitTransactionResponse

type SubmitTransactionResponse struct {
	Status  *status.Status    `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Txstate *TransactionState `protobuf:"bytes,2,opt,name=txstate,proto3" json:"txstate,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitTransactionResponse) Descriptor deprecated

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

Deprecated: Use SubmitTransactionResponse.ProtoReflect.Descriptor instead.

func (*SubmitTransactionResponse) GetStatus

func (x *SubmitTransactionResponse) GetStatus() *status.Status

func (*SubmitTransactionResponse) GetTxstate

func (*SubmitTransactionResponse) ProtoMessage

func (*SubmitTransactionResponse) ProtoMessage()

func (*SubmitTransactionResponse) ProtoReflect

func (*SubmitTransactionResponse) Reset

func (x *SubmitTransactionResponse) Reset()

func (*SubmitTransactionResponse) String

func (x *SubmitTransactionResponse) String() string

type SyncStartRequest

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

func (*SyncStartRequest) Descriptor deprecated

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

Deprecated: Use SyncStartRequest.ProtoReflect.Descriptor instead.

func (*SyncStartRequest) ProtoMessage

func (*SyncStartRequest) ProtoMessage()

func (*SyncStartRequest) ProtoReflect

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

func (*SyncStartRequest) Reset

func (x *SyncStartRequest) Reset()

func (*SyncStartRequest) String

func (x *SyncStartRequest) String() string

type SyncStartResponse

type SyncStartResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncStartResponse) Descriptor deprecated

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

Deprecated: Use SyncStartResponse.ProtoReflect.Descriptor instead.

func (*SyncStartResponse) GetStatus

func (x *SyncStartResponse) GetStatus() *status.Status

func (*SyncStartResponse) ProtoMessage

func (*SyncStartResponse) ProtoMessage()

func (*SyncStartResponse) ProtoReflect

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

func (*SyncStartResponse) Reset

func (x *SyncStartResponse) Reset()

func (*SyncStartResponse) String

func (x *SyncStartResponse) String() string

type Transaction

type Transaction struct {
	Id *TransactionId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Types that are assignable to Datum:
	//	*Transaction_CoinTransfer
	//	*Transaction_SmartContract
	Datum      isTransaction_Datum `protobuf_oneof:"datum"`
	Sender     *AccountId          `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`                           // tx originator, should match signer inside Signature
	GasOffered *GasOffered         `protobuf:"bytes,5,opt,name=gas_offered,json=gasOffered,proto3" json:"gas_offered,omitempty"` // gas price and max gas offered
	Amount     *Amount             `protobuf:"bytes,6,opt,name=amount,proto3" json:"amount,omitempty"`                           // amount of coin transfered in this tx by sender
	Counter    uint64              `protobuf:"varint,7,opt,name=counter,proto3" json:"counter,omitempty"`                        // tx counter aka nonce
	Signature  *Signature          `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`                     // sender signature on transaction
	// contains filtered or unexported fields
}

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

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAmount

func (x *Transaction) GetAmount() *Amount

func (*Transaction) GetCoinTransfer

func (x *Transaction) GetCoinTransfer() *CoinTransferTransaction

func (*Transaction) GetCounter

func (x *Transaction) GetCounter() uint64

func (*Transaction) GetDatum

func (m *Transaction) GetDatum() isTransaction_Datum

func (*Transaction) GetGasOffered

func (x *Transaction) GetGasOffered() *GasOffered

func (*Transaction) GetId

func (x *Transaction) GetId() *TransactionId

func (*Transaction) GetSender

func (x *Transaction) GetSender() *AccountId

func (*Transaction) GetSignature

func (x *Transaction) GetSignature() *Signature

func (*Transaction) GetSmartContract

func (x *Transaction) GetSmartContract() *SmartContractTransaction

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 TransactionReceipt

type TransactionReceipt struct {
	Id      *TransactionId                       `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                                                                 // the source transaction
	Result  TransactionReceipt_TransactionResult `protobuf:"varint,2,opt,name=result,proto3,enum=spacemesh.v1.TransactionReceipt_TransactionResult" json:"result,omitempty"` // tx processing result
	GasUsed uint64                               `protobuf:"varint,3,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`                                       // gas units used by the transaction
	Fee     *Amount                              `protobuf:"bytes,4,opt,name=fee,proto3" json:"fee,omitempty"`                                                               // transaction fee charged for the transaction (in smidge, gas_price * gas_used)
	Layer   *LayerNumber                         `protobuf:"bytes,5,opt,name=layer,proto3" json:"layer,omitempty"`                                                           // the layer in which the STF processed this transaction
	Index   uint32                               `protobuf:"varint,6,opt,name=index,proto3" json:"index,omitempty"`                                                          // the index of the tx in the ordered list of txs to be executed by stf in the layer.
	SvmData []byte                               `protobuf:"bytes,7,opt,name=svm_data,json=svmData,proto3" json:"svm_data,omitempty"`                                        // svm binary data. Decode with svm-codec
	// contains filtered or unexported fields
}

func (*TransactionReceipt) Descriptor deprecated

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

Deprecated: Use TransactionReceipt.ProtoReflect.Descriptor instead.

func (*TransactionReceipt) GetFee

func (x *TransactionReceipt) GetFee() *Amount

func (*TransactionReceipt) GetGasUsed

func (x *TransactionReceipt) GetGasUsed() uint64

func (*TransactionReceipt) GetId

func (x *TransactionReceipt) GetId() *TransactionId

func (*TransactionReceipt) GetIndex

func (x *TransactionReceipt) GetIndex() uint32

func (*TransactionReceipt) GetLayer

func (x *TransactionReceipt) GetLayer() *LayerNumber

func (*TransactionReceipt) GetResult

func (*TransactionReceipt) GetSvmData

func (x *TransactionReceipt) GetSvmData() []byte

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) ProtoReflect

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

func (*TransactionReceipt) Reset

func (x *TransactionReceipt) Reset()

func (*TransactionReceipt) String

func (x *TransactionReceipt) String() string

type TransactionReceipt_TransactionResult

type TransactionReceipt_TransactionResult int32
const (
	TransactionReceipt_TRANSACTION_RESULT_UNSPECIFIED        TransactionReceipt_TransactionResult = 0
	TransactionReceipt_TRANSACTION_RESULT_EXECUTED           TransactionReceipt_TransactionResult = 1 // executed w/o error by the STF
	TransactionReceipt_TRANSACTION_RESULT_BAD_COUNTER        TransactionReceipt_TransactionResult = 2 // unexpected transaction counter
	TransactionReceipt_TRANSACTION_RESULT_RUNTIME_EXCEPTION  TransactionReceipt_TransactionResult = 3 // app code exception
	TransactionReceipt_TRANSACTION_RESULT_INSUFFICIENT_GAS   TransactionReceipt_TransactionResult = 4 // out of gas
	TransactionReceipt_TRANSACTION_RESULT_INSUFFICIENT_FUNDS TransactionReceipt_TransactionResult = 5 // failed due to sender's insufficient funds
)

func (TransactionReceipt_TransactionResult) Descriptor

func (TransactionReceipt_TransactionResult) Enum

func (TransactionReceipt_TransactionResult) EnumDescriptor deprecated

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

Deprecated: Use TransactionReceipt_TransactionResult.Descriptor instead.

func (TransactionReceipt_TransactionResult) Number

func (TransactionReceipt_TransactionResult) String

func (TransactionReceipt_TransactionResult) Type

type TransactionServiceClient

type TransactionServiceClient interface {
	// Submit a new tx to the node for processing. The response
	// TransactionState message contains both the txid of the new tx, as well
	// as whether or not it was admitted into the mempool.
	SubmitTransaction(ctx context.Context, in *SubmitTransactionRequest, opts ...grpc.CallOption) (*SubmitTransactionResponse, error)
	// Returns current tx state for one or more txs which indicates if a tx is
	// on the mesh, on its way to the mesh or was rejected and will never get
	// to the mesh
	TransactionsState(ctx context.Context, in *TransactionsStateRequest, opts ...grpc.CallOption) (*TransactionsStateResponse, error)
	// Returns tx state for one or more txs every time the tx state changes for
	// one of these txs
	TransactionsStateStream(ctx context.Context, in *TransactionsStateStreamRequest, opts ...grpc.CallOption) (TransactionService_TransactionsStateStreamClient, error)
}

TransactionServiceClient is the client API for TransactionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type TransactionServiceServer

type TransactionServiceServer interface {
	// Submit a new tx to the node for processing. The response
	// TransactionState message contains both the txid of the new tx, as well
	// as whether or not it was admitted into the mempool.
	SubmitTransaction(context.Context, *SubmitTransactionRequest) (*SubmitTransactionResponse, error)
	// Returns current tx state for one or more txs which indicates if a tx is
	// on the mesh, on its way to the mesh or was rejected and will never get
	// to the mesh
	TransactionsState(context.Context, *TransactionsStateRequest) (*TransactionsStateResponse, error)
	// Returns tx state for one or more txs every time the tx state changes for
	// one of these txs
	TransactionsStateStream(*TransactionsStateStreamRequest, TransactionService_TransactionsStateStreamServer) error
}

TransactionServiceServer is the server API for TransactionService service.

type TransactionService_TransactionsStateStreamClient

type TransactionService_TransactionsStateStreamClient interface {
	Recv() (*TransactionsStateStreamResponse, error)
	grpc.ClientStream
}

type TransactionService_TransactionsStateStreamServer

type TransactionService_TransactionsStateStreamServer interface {
	Send(*TransactionsStateStreamResponse) error
	grpc.ServerStream
}

type TransactionState

type TransactionState struct {
	Id    *TransactionId                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	State TransactionState_TransactionState `protobuf:"varint,2,opt,name=state,proto3,enum=spacemesh.v1.TransactionState_TransactionState" json:"state,omitempty"`
	// contains filtered or unexported fields
}

TransactionState is the "journey" of a tx from mempool to block inclusion to mesh to STF processing. To know whether or not the tx actually succeeded, and its side effects, check the Receipt in the GlobalStateService.

func (*TransactionState) Descriptor deprecated

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

Deprecated: Use TransactionState.ProtoReflect.Descriptor instead.

func (*TransactionState) GetId

func (x *TransactionState) GetId() *TransactionId

func (*TransactionState) GetState

func (*TransactionState) ProtoMessage

func (*TransactionState) ProtoMessage()

func (*TransactionState) ProtoReflect

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

func (*TransactionState) Reset

func (x *TransactionState) Reset()

func (*TransactionState) String

func (x *TransactionState) String() string

type TransactionState_TransactionState

type TransactionState_TransactionState int32
const (
	TransactionState_TRANSACTION_STATE_UNSPECIFIED        TransactionState_TransactionState = 0 // default state
	TransactionState_TRANSACTION_STATE_REJECTED           TransactionState_TransactionState = 1 // rejected from mempool due to, e.g., invalid syntax
	TransactionState_TRANSACTION_STATE_INSUFFICIENT_FUNDS TransactionState_TransactionState = 2 // rejected from mempool by funds check
	TransactionState_TRANSACTION_STATE_CONFLICTING        TransactionState_TransactionState = 3 // rejected from mempool due to conflicting counter
	TransactionState_TRANSACTION_STATE_MEMPOOL            TransactionState_TransactionState = 4 // in mempool but not on the mesh yet
	TransactionState_TRANSACTION_STATE_MESH               TransactionState_TransactionState = 5 // submitted to the mesh
	TransactionState_TRANSACTION_STATE_PROCESSED          TransactionState_TransactionState = 6 // processed by STF; check Receipt for success or failure
)

func (TransactionState_TransactionState) Descriptor

func (TransactionState_TransactionState) Enum

func (TransactionState_TransactionState) EnumDescriptor deprecated

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

Deprecated: Use TransactionState_TransactionState.Descriptor instead.

func (TransactionState_TransactionState) Number

func (TransactionState_TransactionState) String

func (TransactionState_TransactionState) Type

type Transaction_CoinTransfer

type Transaction_CoinTransfer struct {
	CoinTransfer *CoinTransferTransaction `protobuf:"bytes,2,opt,name=coin_transfer,json=coinTransfer,proto3,oneof"`
}

type Transaction_SmartContract

type Transaction_SmartContract struct {
	SmartContract *SmartContractTransaction `protobuf:"bytes,3,opt,name=smart_contract,json=smartContract,proto3,oneof"`
}

type TransactionsIds

type TransactionsIds struct {
	TransactionId []*TransactionId `protobuf:"bytes,1,rep,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionsIds) Descriptor deprecated

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

Deprecated: Use TransactionsIds.ProtoReflect.Descriptor instead.

func (*TransactionsIds) GetTransactionId

func (x *TransactionsIds) GetTransactionId() []*TransactionId

func (*TransactionsIds) ProtoMessage

func (*TransactionsIds) ProtoMessage()

func (*TransactionsIds) ProtoReflect

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

func (*TransactionsIds) Reset

func (x *TransactionsIds) Reset()

func (*TransactionsIds) String

func (x *TransactionsIds) String() string

type TransactionsStateRequest

type TransactionsStateRequest struct {
	TransactionId       []*TransactionId `protobuf:"bytes,1,rep,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	IncludeTransactions bool             `protobuf:"varint,2,opt,name=include_transactions,json=includeTransactions,proto3" json:"include_transactions,omitempty"` // when true response will include matching transactions in addition to state
	// contains filtered or unexported fields
}

func (*TransactionsStateRequest) Descriptor deprecated

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

Deprecated: Use TransactionsStateRequest.ProtoReflect.Descriptor instead.

func (*TransactionsStateRequest) GetIncludeTransactions

func (x *TransactionsStateRequest) GetIncludeTransactions() bool

func (*TransactionsStateRequest) GetTransactionId

func (x *TransactionsStateRequest) GetTransactionId() []*TransactionId

func (*TransactionsStateRequest) ProtoMessage

func (*TransactionsStateRequest) ProtoMessage()

func (*TransactionsStateRequest) ProtoReflect

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

func (*TransactionsStateRequest) Reset

func (x *TransactionsStateRequest) Reset()

func (*TransactionsStateRequest) String

func (x *TransactionsStateRequest) String() string

type TransactionsStateResponse

type TransactionsStateResponse struct {
	TransactionsState []*TransactionState `protobuf:"bytes,1,rep,name=transactions_state,json=transactionsState,proto3" json:"transactions_state,omitempty"`
	Transactions      []*Transaction      `protobuf:"bytes,2,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionsStateResponse) Descriptor deprecated

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

Deprecated: Use TransactionsStateResponse.ProtoReflect.Descriptor instead.

func (*TransactionsStateResponse) GetTransactions

func (x *TransactionsStateResponse) GetTransactions() []*Transaction

func (*TransactionsStateResponse) GetTransactionsState

func (x *TransactionsStateResponse) GetTransactionsState() []*TransactionState

func (*TransactionsStateResponse) ProtoMessage

func (*TransactionsStateResponse) ProtoMessage()

func (*TransactionsStateResponse) ProtoReflect

func (*TransactionsStateResponse) Reset

func (x *TransactionsStateResponse) Reset()

func (*TransactionsStateResponse) String

func (x *TransactionsStateResponse) String() string

type TransactionsStateStreamRequest

type TransactionsStateStreamRequest struct {
	TransactionId       []*TransactionId `protobuf:"bytes,1,rep,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	IncludeTransactions bool             `protobuf:"varint,2,opt,name=include_transactions,json=includeTransactions,proto3" json:"include_transactions,omitempty"` // when true response will include matching transactions in addition to state
	// contains filtered or unexported fields
}

func (*TransactionsStateStreamRequest) Descriptor deprecated

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

Deprecated: Use TransactionsStateStreamRequest.ProtoReflect.Descriptor instead.

func (*TransactionsStateStreamRequest) GetIncludeTransactions

func (x *TransactionsStateStreamRequest) GetIncludeTransactions() bool

func (*TransactionsStateStreamRequest) GetTransactionId

func (x *TransactionsStateStreamRequest) GetTransactionId() []*TransactionId

func (*TransactionsStateStreamRequest) ProtoMessage

func (*TransactionsStateStreamRequest) ProtoMessage()

func (*TransactionsStateStreamRequest) ProtoReflect

func (*TransactionsStateStreamRequest) Reset

func (x *TransactionsStateStreamRequest) Reset()

func (*TransactionsStateStreamRequest) String

type TransactionsStateStreamResponse

type TransactionsStateStreamResponse struct {
	TransactionState *TransactionState `protobuf:"bytes,1,opt,name=transaction_state,json=transactionState,proto3" json:"transaction_state,omitempty"`
	Transaction      *Transaction      `protobuf:"bytes,2,opt,name=transaction,proto3" json:"transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*TransactionsStateStreamResponse) Descriptor deprecated

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

Deprecated: Use TransactionsStateStreamResponse.ProtoReflect.Descriptor instead.

func (*TransactionsStateStreamResponse) GetTransaction

func (x *TransactionsStateStreamResponse) GetTransaction() *Transaction

func (*TransactionsStateStreamResponse) GetTransactionState

func (x *TransactionsStateStreamResponse) GetTransactionState() *TransactionState

func (*TransactionsStateStreamResponse) ProtoMessage

func (*TransactionsStateStreamResponse) ProtoMessage()

func (*TransactionsStateStreamResponse) ProtoReflect

func (*TransactionsStateStreamResponse) Reset

func (*TransactionsStateStreamResponse) String

type UnimplementedDebugServiceServer

type UnimplementedDebugServiceServer struct {
}

UnimplementedDebugServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedDebugServiceServer) Accounts

type UnimplementedGatewayServiceServer

type UnimplementedGatewayServiceServer struct {
}

UnimplementedGatewayServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGatewayServiceServer) BroadcastPoet

type UnimplementedGlobalStateServiceServer

type UnimplementedGlobalStateServiceServer struct {
}

UnimplementedGlobalStateServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedGlobalStateServiceServer) Account

func (*UnimplementedGlobalStateServiceServer) AccountDataQuery

func (*UnimplementedGlobalStateServiceServer) AppEventStream

func (*UnimplementedGlobalStateServiceServer) GlobalStateHash

func (*UnimplementedGlobalStateServiceServer) SmesherDataQuery

type UnimplementedMeshServiceServer

type UnimplementedMeshServiceServer struct {
}

UnimplementedMeshServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMeshServiceServer) AccountMeshDataQuery

func (*UnimplementedMeshServiceServer) CurrentEpoch

func (*UnimplementedMeshServiceServer) CurrentLayer

func (*UnimplementedMeshServiceServer) EpochNumLayers

func (*UnimplementedMeshServiceServer) GenesisTime

func (*UnimplementedMeshServiceServer) LayerDuration

func (*UnimplementedMeshServiceServer) LayerStream

func (*UnimplementedMeshServiceServer) LayersQuery

func (*UnimplementedMeshServiceServer) NetID

type UnimplementedNodeServiceServer

type UnimplementedNodeServiceServer struct {
}

UnimplementedNodeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedNodeServiceServer) Build

func (*UnimplementedNodeServiceServer) Echo

func (*UnimplementedNodeServiceServer) ErrorStream

func (*UnimplementedNodeServiceServer) Shutdown

func (*UnimplementedNodeServiceServer) Status

func (*UnimplementedNodeServiceServer) StatusStream

func (*UnimplementedNodeServiceServer) SyncStart

func (*UnimplementedNodeServiceServer) UpdatePoetServer

func (*UnimplementedNodeServiceServer) Version

type UnimplementedSmesherServiceServer

type UnimplementedSmesherServiceServer struct {
}

UnimplementedSmesherServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedSmesherServiceServer) Coinbase

func (*UnimplementedSmesherServiceServer) EstimatedRewards

func (*UnimplementedSmesherServiceServer) IsSmeshing

func (*UnimplementedSmesherServiceServer) MinGas

func (*UnimplementedSmesherServiceServer) PostConfig added in v1.4.0

func (*UnimplementedSmesherServiceServer) PostSetupComputeProviders added in v1.4.0

func (*UnimplementedSmesherServiceServer) PostSetupStatus added in v1.4.0

func (*UnimplementedSmesherServiceServer) PostSetupStatusStream added in v1.4.0

func (*UnimplementedSmesherServiceServer) SetCoinbase

func (*UnimplementedSmesherServiceServer) SetMinGas

func (*UnimplementedSmesherServiceServer) SmesherID

func (*UnimplementedSmesherServiceServer) StartSmeshing

func (*UnimplementedSmesherServiceServer) StopSmeshing

type UnimplementedTransactionServiceServer

type UnimplementedTransactionServiceServer struct {
}

UnimplementedTransactionServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTransactionServiceServer) SubmitTransaction

func (*UnimplementedTransactionServiceServer) TransactionsState

type UpdatePoetServerRequest

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

func (*UpdatePoetServerRequest) Descriptor deprecated

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

Deprecated: Use UpdatePoetServerRequest.ProtoReflect.Descriptor instead.

func (*UpdatePoetServerRequest) GetUrl

func (x *UpdatePoetServerRequest) GetUrl() string

func (*UpdatePoetServerRequest) ProtoMessage

func (*UpdatePoetServerRequest) ProtoMessage()

func (*UpdatePoetServerRequest) ProtoReflect

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

func (*UpdatePoetServerRequest) Reset

func (x *UpdatePoetServerRequest) Reset()

func (*UpdatePoetServerRequest) String

func (x *UpdatePoetServerRequest) String() string

type UpdatePoetServerResponse

type UpdatePoetServerResponse struct {
	Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePoetServerResponse) Descriptor deprecated

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

Deprecated: Use UpdatePoetServerResponse.ProtoReflect.Descriptor instead.

func (*UpdatePoetServerResponse) GetStatus

func (x *UpdatePoetServerResponse) GetStatus() *status.Status

func (*UpdatePoetServerResponse) ProtoMessage

func (*UpdatePoetServerResponse) ProtoMessage()

func (*UpdatePoetServerResponse) ProtoReflect

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

func (*UpdatePoetServerResponse) Reset

func (x *UpdatePoetServerResponse) Reset()

func (*UpdatePoetServerResponse) String

func (x *UpdatePoetServerResponse) String() string

type VersionResponse

type VersionResponse struct {
	VersionString *SimpleString `protobuf:"bytes,1,opt,name=version_string,json=versionString,proto3" json:"version_string,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

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

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetVersionString

func (x *VersionResponse) GetVersionString() *SimpleString

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

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

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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