poolsv1

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.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 (
	Query_PoolByID_FullMethodName    = "/milkyway.pools.v1.Query/PoolByID"
	Query_PoolByDenom_FullMethodName = "/milkyway.pools.v1.Query/PoolByDenom"
	Query_Pools_FullMethodName       = "/milkyway.pools.v1.Query/Pools"
)

Variables

View Source
var File_milkyway_pools_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_milkyway_pools_v1_models_proto protoreflect.FileDescriptor
View Source
var File_milkyway_pools_v1_params_proto protoreflect.FileDescriptor
View Source
var File_milkyway_pools_v1_query_proto protoreflect.FileDescriptor
View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "milkyway.pools.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PoolByID",
			Handler:    _Query_PoolByID_Handler,
		},
		{
			MethodName: "PoolByDenom",
			Handler:    _Query_PoolByDenom_Handler,
		},
		{
			MethodName: "Pools",
			Handler:    _Query_Pools_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "milkyway/pools/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 RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type GenesisState

type GenesisState struct {

	// Params defines the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// NextPoolID represents the id to be used when creating the next pool.
	NextPoolId uint32 `protobuf:"varint,2,opt,name=next_pool_id,json=nextPoolId,proto3" json:"next_pool_id,omitempty"`
	// Pools defines the list of pools.
	Pools []*Pool `protobuf:"bytes,3,rep,name=pools,proto3" json:"pools,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the pools module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetNextPoolId

func (x *GenesisState) GetNextPoolId() uint32

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPools

func (x *GenesisState) GetPools() []*Pool

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 Params

type Params struct {

	// AllowedServicesIDs defines the list of service IDs that the module allows
	// to join by pools.
	AllowedServicesIds []uint32 `protobuf:"varint,1,rep,packed,name=allowed_services_ids,json=allowedServicesIds,proto3" json:"allowed_services_ids,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the pools module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAllowedServicesIds

func (x *Params) GetAllowedServicesIds() []uint32

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Pool

type Pool struct {

	// ID is the auto-generated unique identifier for the pool
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Denom represents the denomination of the tokens that are staked in the pool
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// Address represents the address of the account that is associated with this
	// pool. This will be used to store tokens that users delegate to this pool.
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	// Tokens define the delegated tokens.
	Tokens string `protobuf:"bytes,4,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// DelegatorShares defines total shares issued to a pool's delegators.
	DelegatorShares string `protobuf:"bytes,5,opt,name=delegator_shares,json=delegatorShares,proto3" json:"delegator_shares,omitempty"`
	// contains filtered or unexported fields
}

Pool defines the structure of a restaking pool

func (*Pool) Descriptor deprecated

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

Deprecated: Use Pool.ProtoReflect.Descriptor instead.

func (*Pool) GetAddress

func (x *Pool) GetAddress() string

func (*Pool) GetDelegatorShares

func (x *Pool) GetDelegatorShares() string

func (*Pool) GetDenom

func (x *Pool) GetDenom() string

func (*Pool) GetId

func (x *Pool) GetId() uint32

func (*Pool) GetTokens

func (x *Pool) GetTokens() string

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) ProtoReflect

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

func (*Pool) Reset

func (x *Pool) Reset()

func (*Pool) String

func (x *Pool) String() string

type QueryClient

type QueryClient interface {
	// PoolByID defines a gRPC query method that returns the pool by the given ID.
	PoolByID(ctx context.Context, in *QueryPoolByIdRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
	// PoolByDenom defines a gRPC query method that returns the pool by the given
	// denom.
	PoolByDenom(ctx context.Context, in *QueryPoolByDenomRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
	// Pools defines a gRPC query method that returns all pools.
	Pools(ctx context.Context, in *QueryPoolsRequest, opts ...grpc.CallOption) (*QueryPoolsResponse, 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.

Query defines the gRPC querier service.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryPoolByDenomRequest

type QueryPoolByDenomRequest struct {

	// Denom is the denom for which the pool is to be queried
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolByDenomRequest is the request type for the Query/PollByDenom RPC method.

func (*QueryPoolByDenomRequest) Descriptor deprecated

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

Deprecated: Use QueryPoolByDenomRequest.ProtoReflect.Descriptor instead.

func (*QueryPoolByDenomRequest) GetDenom

func (x *QueryPoolByDenomRequest) GetDenom() string

func (*QueryPoolByDenomRequest) ProtoMessage

func (*QueryPoolByDenomRequest) ProtoMessage()

func (*QueryPoolByDenomRequest) ProtoReflect

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

func (*QueryPoolByDenomRequest) Reset

func (x *QueryPoolByDenomRequest) Reset()

func (*QueryPoolByDenomRequest) String

func (x *QueryPoolByDenomRequest) String() string

type QueryPoolByIdRequest

type QueryPoolByIdRequest struct {

	// PoolID is the ID of the pool to query
	PoolId uint32 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolByIdRequest is the request type for the Query/PoolById RPC method.

func (*QueryPoolByIdRequest) Descriptor deprecated

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

Deprecated: Use QueryPoolByIdRequest.ProtoReflect.Descriptor instead.

func (*QueryPoolByIdRequest) GetPoolId

func (x *QueryPoolByIdRequest) GetPoolId() uint32

func (*QueryPoolByIdRequest) ProtoMessage

func (*QueryPoolByIdRequest) ProtoMessage()

func (*QueryPoolByIdRequest) ProtoReflect

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

func (*QueryPoolByIdRequest) Reset

func (x *QueryPoolByIdRequest) Reset()

func (*QueryPoolByIdRequest) String

func (x *QueryPoolByIdRequest) String() string

type QueryPoolResponse

type QueryPoolResponse struct {

	// Pool is the queried pool
	Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolResponse is the response type for the Query/PoolById and Query/PoolByDenom RPC methods.

func (*QueryPoolResponse) Descriptor deprecated

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

Deprecated: Use QueryPoolResponse.ProtoReflect.Descriptor instead.

func (*QueryPoolResponse) GetPool

func (x *QueryPoolResponse) GetPool() *Pool

func (*QueryPoolResponse) ProtoMessage

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) ProtoReflect

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

func (*QueryPoolResponse) Reset

func (x *QueryPoolResponse) Reset()

func (*QueryPoolResponse) String

func (x *QueryPoolResponse) String() string

type QueryPoolsRequest

type QueryPoolsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolsRequest is the request type for the Query/Pools RPC method.

func (*QueryPoolsRequest) Descriptor deprecated

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

Deprecated: Use QueryPoolsRequest.ProtoReflect.Descriptor instead.

func (*QueryPoolsRequest) GetPagination

func (x *QueryPoolsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryPoolsRequest) ProtoMessage

func (*QueryPoolsRequest) ProtoMessage()

func (*QueryPoolsRequest) ProtoReflect

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

func (*QueryPoolsRequest) Reset

func (x *QueryPoolsRequest) Reset()

func (*QueryPoolsRequest) String

func (x *QueryPoolsRequest) String() string

type QueryPoolsResponse

type QueryPoolsResponse struct {

	// Pools is the list of pool
	Pools []*Pool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"`
	// Pagination defines the pagination response
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolsResponse is the response type for the Query/Pools RPC method.

func (*QueryPoolsResponse) Descriptor deprecated

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

Deprecated: Use QueryPoolsResponse.ProtoReflect.Descriptor instead.

func (*QueryPoolsResponse) GetPagination

func (x *QueryPoolsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryPoolsResponse) GetPools

func (x *QueryPoolsResponse) GetPools() []*Pool

func (*QueryPoolsResponse) ProtoMessage

func (*QueryPoolsResponse) ProtoMessage()

func (*QueryPoolsResponse) ProtoReflect

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

func (*QueryPoolsResponse) Reset

func (x *QueryPoolsResponse) Reset()

func (*QueryPoolsResponse) String

func (x *QueryPoolsResponse) String() string

type QueryServer

type QueryServer interface {
	// PoolByID defines a gRPC query method that returns the pool by the given ID.
	PoolByID(context.Context, *QueryPoolByIdRequest) (*QueryPoolResponse, error)
	// PoolByDenom defines a gRPC query method that returns the pool by the given
	// denom.
	PoolByDenom(context.Context, *QueryPoolByDenomRequest) (*QueryPoolResponse, error)
	// Pools defines a gRPC query method that returns all pools.
	Pools(context.Context, *QueryPoolsRequest) (*QueryPoolsResponse, error)
	// contains filtered or unexported methods
}

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

Query defines the gRPC querier service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) PoolByDenom

func (UnimplementedQueryServer) PoolByID

func (UnimplementedQueryServer) Pools

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