shardv1

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Msg_SubmitShardTx_FullMethodName = "/shard.v1.Msg/SubmitShardTx"
)
View Source
const (
	Query_Transactions_FullMethodName = "/shard.v1.Query/Transactions"
)

Variables

View Source
var File_shard_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_shard_v1_query_proto protoreflect.FileDescriptor
View Source
var File_shard_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_shard_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shard.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitShardTx",
			Handler:    _Msg_SubmitShardTx_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "shard/v1/tx.proto",
}

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

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "shard.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Transactions",
			Handler:    _Query_Transactions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "shard/v1/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Epoch

type Epoch struct {
	Epoch         uint64         `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	UnixTimestamp uint64         `protobuf:"varint,2,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"`
	Txs           []*Transaction `protobuf:"bytes,3,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

Epoch contains an epoch number, and the transactions that occurred in that epoch.

func (*Epoch) Descriptor deprecated

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

Deprecated: Use Epoch.ProtoReflect.Descriptor instead.

func (*Epoch) GetEpoch

func (x *Epoch) GetEpoch() uint64

func (*Epoch) GetTxs

func (x *Epoch) GetTxs() []*Transaction

func (*Epoch) GetUnixTimestamp

func (x *Epoch) GetUnixTimestamp() uint64

func (*Epoch) ProtoMessage

func (*Epoch) ProtoMessage()

func (*Epoch) ProtoReflect

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

func (*Epoch) Reset

func (x *Epoch) Reset()

func (*Epoch) String

func (x *Epoch) String() string

type GenesisState

type GenesisState struct {

	// namespace_transactions contains a world's namespace, and all the transactions that occurred within that world.
	NamespaceTransactions []*NamespaceTransactions `protobuf:"bytes,1,rep,name=namespace_transactions,json=namespaceTransactions,proto3" json:"namespace_transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetNamespaceTransactions

func (x *GenesisState) GetNamespaceTransactions() []*NamespaceTransactions

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	SubmitShardTx(ctx context.Context, in *SubmitShardTxRequest, opts ...grpc.CallOption) (*SubmitShardTxResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	SubmitShardTx(context.Context, *SubmitShardTxRequest) (*SubmitShardTxResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type NamespaceTransactions

type NamespaceTransactions struct {

	// namespace is the namespace the transactions occurred in.
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// epochs contains an epoch number, and the transactions that occurred within that epoch.
	Epochs []*Epoch `protobuf:"bytes,2,rep,name=epochs,proto3" json:"epochs,omitempty"`
	// contains filtered or unexported fields
}

func (*NamespaceTransactions) Descriptor deprecated

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

Deprecated: Use NamespaceTransactions.ProtoReflect.Descriptor instead.

func (*NamespaceTransactions) GetEpochs

func (x *NamespaceTransactions) GetEpochs() []*Epoch

func (*NamespaceTransactions) GetNamespace

func (x *NamespaceTransactions) GetNamespace() string

func (*NamespaceTransactions) ProtoMessage

func (*NamespaceTransactions) ProtoMessage()

func (*NamespaceTransactions) ProtoReflect

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

func (*NamespaceTransactions) Reset

func (x *NamespaceTransactions) Reset()

func (*NamespaceTransactions) String

func (x *NamespaceTransactions) String() string

type PageRequest

type PageRequest struct {

	// key is the cosmos SDK store key to begin the iteration on.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// limit is the amount of items we want to limit in our return.
	// example, if the collection we are interested has 10 items,
	// and we set limit to 5, the query will only return 5 items.
	Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

PageRequest represents a request for a paged query.

func (*PageRequest) Descriptor deprecated

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

Deprecated: Use PageRequest.ProtoReflect.Descriptor instead.

func (*PageRequest) GetKey

func (x *PageRequest) GetKey() []byte

func (*PageRequest) GetLimit

func (x *PageRequest) GetLimit() uint32

func (*PageRequest) ProtoMessage

func (*PageRequest) ProtoMessage()

func (*PageRequest) ProtoReflect

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

func (*PageRequest) Reset

func (x *PageRequest) Reset()

func (*PageRequest) String

func (x *PageRequest) String() string

type PageResponse

type PageResponse struct {

	// if a key is present, that means there are more items from the collection to query, and the given key is the key for
	// the item after the last one returned. if key is nil, that means there are no more items in the collection to query.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// contains filtered or unexported fields
}

PageResponse represents a response to a paged query.

func (*PageResponse) Descriptor deprecated

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

Deprecated: Use PageResponse.ProtoReflect.Descriptor instead.

func (*PageResponse) GetKey

func (x *PageResponse) GetKey() []byte

func (*PageResponse) ProtoMessage

func (*PageResponse) ProtoMessage()

func (*PageResponse) ProtoReflect

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

func (*PageResponse) Reset

func (x *PageResponse) Reset()

func (*PageResponse) String

func (x *PageResponse) String() string

type QueryClient

type QueryClient interface {
	Transactions(ctx context.Context, in *QueryTransactionsRequest, opts ...grpc.CallOption) (*QueryTransactionsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer

type QueryServer interface {
	Transactions(context.Context, *QueryTransactionsRequest) (*QueryTransactionsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryTransactionsRequest

type QueryTransactionsRequest struct {
	Namespace string       `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Page      *PageRequest `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTransactionsRequest) Descriptor deprecated

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

Deprecated: Use QueryTransactionsRequest.ProtoReflect.Descriptor instead.

func (*QueryTransactionsRequest) GetNamespace

func (x *QueryTransactionsRequest) GetNamespace() string

func (*QueryTransactionsRequest) GetPage

func (x *QueryTransactionsRequest) GetPage() *PageRequest

func (*QueryTransactionsRequest) ProtoMessage

func (*QueryTransactionsRequest) ProtoMessage()

func (*QueryTransactionsRequest) ProtoReflect

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

func (*QueryTransactionsRequest) Reset

func (x *QueryTransactionsRequest) Reset()

func (*QueryTransactionsRequest) String

func (x *QueryTransactionsRequest) String() string

type QueryTransactionsResponse

type QueryTransactionsResponse struct {

	// epochs contains the transactions. Each entry contains an epoch, and a list of txs that occurred in that epoch.
	Epochs []*Epoch `protobuf:"bytes,1,rep,name=epochs,proto3" json:"epochs,omitempty"`
	// page contains information on how to query the next items in the collection, if any.
	// when page is nil/empty, there is nothing left to query.
	Page *PageResponse `protobuf:"bytes,2,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryTransactionsResponse) Descriptor deprecated

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

Deprecated: Use QueryTransactionsResponse.ProtoReflect.Descriptor instead.

func (*QueryTransactionsResponse) GetEpochs

func (x *QueryTransactionsResponse) GetEpochs() []*Epoch

func (*QueryTransactionsResponse) GetPage

func (*QueryTransactionsResponse) ProtoMessage

func (*QueryTransactionsResponse) ProtoMessage()

func (*QueryTransactionsResponse) ProtoReflect

func (*QueryTransactionsResponse) Reset

func (x *QueryTransactionsResponse) Reset()

func (*QueryTransactionsResponse) String

func (x *QueryTransactionsResponse) String() string

type SubmitShardTxRequest

type SubmitShardTxRequest struct {

	// sender is the address of the sender. this will be set to the module address.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// namespace is the namespace of the world the transactions originated from.
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// epoch is an arbitrary interval that this transaction was executed in.
	// for loop driven games, this is likely a tick. for event driven games,
	// this could be some general period of time.
	Epoch         uint64 `protobuf:"varint,3,opt,name=epoch,proto3" json:"epoch,omitempty"`
	UnixTimestamp uint64 `protobuf:"varint,4,opt,name=unix_timestamp,json=unixTimestamp,proto3" json:"unix_timestamp,omitempty"`
	// txs are the transactions that occurred in this tick.
	Txs []*Transaction `protobuf:"bytes,5,rep,name=txs,proto3" json:"txs,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitShardTxRequest) Descriptor deprecated

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

Deprecated: Use SubmitShardTxRequest.ProtoReflect.Descriptor instead.

func (*SubmitShardTxRequest) GetEpoch

func (x *SubmitShardTxRequest) GetEpoch() uint64

func (*SubmitShardTxRequest) GetNamespace

func (x *SubmitShardTxRequest) GetNamespace() string

func (*SubmitShardTxRequest) GetSender

func (x *SubmitShardTxRequest) GetSender() string

func (*SubmitShardTxRequest) GetTxs

func (x *SubmitShardTxRequest) GetTxs() []*Transaction

func (*SubmitShardTxRequest) GetUnixTimestamp

func (x *SubmitShardTxRequest) GetUnixTimestamp() uint64

func (*SubmitShardTxRequest) ProtoMessage

func (*SubmitShardTxRequest) ProtoMessage()

func (*SubmitShardTxRequest) ProtoReflect

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

func (*SubmitShardTxRequest) Reset

func (x *SubmitShardTxRequest) Reset()

func (*SubmitShardTxRequest) String

func (x *SubmitShardTxRequest) String() string

type SubmitShardTxResponse

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

func (*SubmitShardTxResponse) Descriptor deprecated

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

Deprecated: Use SubmitShardTxResponse.ProtoReflect.Descriptor instead.

func (*SubmitShardTxResponse) ProtoMessage

func (*SubmitShardTxResponse) ProtoMessage()

func (*SubmitShardTxResponse) ProtoReflect

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

func (*SubmitShardTxResponse) Reset

func (x *SubmitShardTxResponse) Reset()

func (*SubmitShardTxResponse) String

func (x *SubmitShardTxResponse) String() string

type Transaction

type Transaction struct {

	// tx_id is the ID associated with the payloads below. This is needed so we know which transaction struct
	// to unmarshal the payload.Body into.
	TxId uint64 `protobuf:"varint,1,opt,name=tx_id,json=txId,proto3" json:"tx_id,omitempty"`
	// game_shard_transaction is an encoded game shard transaction.
	GameShardTransaction []byte `protobuf:"bytes,2,opt,name=game_shard_transaction,json=gameShardTransaction,proto3" json:"game_shard_transaction,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetGameShardTransaction

func (x *Transaction) GetGameShardTransaction() []byte

func (*Transaction) GetTxId

func (x *Transaction) GetTxId() uint64

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 UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) SubmitShardTx

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

Jump to

Keyboard shortcuts

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