application

package
v0.0.9-2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 21 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.

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_Params_FullMethodName          = "/poktroll.application.Query/Params"
	Query_Application_FullMethodName     = "/poktroll.application.Query/Application"
	Query_AllApplications_FullMethodName = "/poktroll.application.Query/AllApplications"
)
View Source
const (
	Msg_UpdateParams_FullMethodName          = "/poktroll.application.Msg/UpdateParams"
	Msg_StakeApplication_FullMethodName      = "/poktroll.application.Msg/StakeApplication"
	Msg_UnstakeApplication_FullMethodName    = "/poktroll.application.Msg/UnstakeApplication"
	Msg_DelegateToGateway_FullMethodName     = "/poktroll.application.Msg/DelegateToGateway"
	Msg_UndelegateFromGateway_FullMethodName = "/poktroll.application.Msg/UndelegateFromGateway"
)

Variables

View Source
var File_poktroll_application_event_proto protoreflect.FileDescriptor
View Source
var File_poktroll_application_genesis_proto protoreflect.FileDescriptor
View Source
var File_poktroll_application_params_proto protoreflect.FileDescriptor
View Source
var File_poktroll_application_query_proto protoreflect.FileDescriptor
View Source
var File_poktroll_application_tx_proto protoreflect.FileDescriptor
View Source
var File_poktroll_application_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "poktroll.application.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "StakeApplication",
			Handler:    _Msg_StakeApplication_Handler,
		},
		{
			MethodName: "UnstakeApplication",
			Handler:    _Msg_UnstakeApplication_Handler,
		},
		{
			MethodName: "DelegateToGateway",
			Handler:    _Msg_DelegateToGateway_Handler,
		},
		{
			MethodName: "UndelegateFromGateway",
			Handler:    _Msg_UndelegateFromGateway_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/application/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: "poktroll.application.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Application",
			Handler:    _Query_Application_Handler,
		},
		{
			MethodName: "AllApplications",
			Handler:    _Query_AllApplications_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "poktroll/application/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 added in v0.0.3

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer added in v0.0.3

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Application

type Application struct {
	Address string        `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The Bech32 address of the application.
	Stake   *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`     // The total amount of uPOKT the application has staked
	// TODO_BETA(@red-0ne, @olshansk): Limit this to one service_config.
	//
	//	Remove `repeated`, drop the `s` from service_configs and document why
	//	this is the case in the app config (and here) per this discussion:
	//	https://github.com/pokt-network/poktroll/pull/750#discussion_r1735025033
	ServiceConfigs []*shared.ApplicationServiceConfig `protobuf:"bytes,3,rep,name=service_configs,json=serviceConfigs,proto3" json:"service_configs,omitempty"` // The list of services this appliccation is configured to request service for
	// TODO_BETA: Rename `delegatee_gateway_addresses` to `gateway_addresses_delegated_to`.
	// Ensure to rename all relevant configs, comments, variables, function names, etc as well.
	DelegateeGatewayAddresses []string `` // The Bech32 encoded addresses for all delegatee Gateways, in a non-nullable slice
	/* 138-byte string literal not displayed */
	// A map from sessionEndHeights to a list of Gateways.
	// The key is the height of the last block of the session during which the
	// respective undelegation was committed.
	// The value is a list of gateways being undelegated from.
	// TODO_DOCUMENT(@red-0ne): Need to document the flow from this comment
	// so its clear to everyone why this is necessary; https://github.com/pokt-network/poktroll/issues/476#issuecomment-2052639906.
	PendingUndelegations map[uint64]*UndelegatingGatewayList `` /* 210-byte string literal not displayed */
	// The end height of the session at which an application initiated its unstaking process.
	// If the application did not unstake, this value will be 0.
	UnstakeSessionEndHeight uint64 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

Application defines the type used to store an on-chain definition and state for an application

func (*Application) Descriptor deprecated

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

Deprecated: Use Application.ProtoReflect.Descriptor instead.

func (*Application) GetAddress

func (x *Application) GetAddress() string

func (*Application) GetDelegateeGatewayAddresses

func (x *Application) GetDelegateeGatewayAddresses() []string

func (*Application) GetPendingUndelegations added in v0.0.2

func (x *Application) GetPendingUndelegations() map[uint64]*UndelegatingGatewayList

func (*Application) GetServiceConfigs

func (x *Application) GetServiceConfigs() []*shared.ApplicationServiceConfig

func (*Application) GetStake

func (x *Application) GetStake() *v1beta1.Coin

func (*Application) GetUnstakeSessionEndHeight added in v0.0.7

func (x *Application) GetUnstakeSessionEndHeight() uint64

func (*Application) ProtoMessage

func (*Application) ProtoMessage()

func (*Application) ProtoReflect

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

func (*Application) Reset

func (x *Application) Reset()

func (*Application) String

func (x *Application) String() string

type EventRedelegation

type EventRedelegation struct {
	AppAddress     string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"`             // The Bech32 address of the application.
	GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application has changed their delegation of.
	// contains filtered or unexported fields
}

EventRedelegation is an event emitted whenever an application changes its delegatee gateways on chain. This is in response to both a DelegateToGateway and UndelegateFromGateway message.

func (*EventRedelegation) Descriptor deprecated

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

Deprecated: Use EventRedelegation.ProtoReflect.Descriptor instead.

func (*EventRedelegation) GetAppAddress

func (x *EventRedelegation) GetAppAddress() string

func (*EventRedelegation) GetGatewayAddress

func (x *EventRedelegation) GetGatewayAddress() string

func (*EventRedelegation) ProtoMessage

func (*EventRedelegation) ProtoMessage()

func (*EventRedelegation) ProtoReflect

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

func (*EventRedelegation) Reset

func (x *EventRedelegation) Reset()

func (*EventRedelegation) String

func (x *EventRedelegation) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params          *Params        `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	ApplicationList []*Application `protobuf:"bytes,2,rep,name=application_list,json=applicationList,proto3" json:"application_list,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the application module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetApplicationList

func (x *GenesisState) GetApplicationList() []*Application

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

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 added in v0.0.3

type MsgClient interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	StakeApplication(ctx context.Context, in *MsgStakeApplication, opts ...grpc.CallOption) (*MsgStakeApplicationResponse, error)
	UnstakeApplication(ctx context.Context, in *MsgUnstakeApplication, opts ...grpc.CallOption) (*MsgUnstakeApplicationResponse, error)
	DelegateToGateway(ctx context.Context, in *MsgDelegateToGateway, opts ...grpc.CallOption) (*MsgDelegateToGatewayResponse, error)
	UndelegateFromGateway(ctx context.Context, in *MsgUndelegateFromGateway, opts ...grpc.CallOption) (*MsgUndelegateFromGatewayResponse, 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.

Msg defines the Msg service.

func NewMsgClient added in v0.0.3

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgDelegateToGateway

type MsgDelegateToGateway struct {
	AppAddress     string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"`             // The Bech32 address of the application.
	GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application wants to delegate to.
	// contains filtered or unexported fields
}

func (*MsgDelegateToGateway) Descriptor deprecated

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

Deprecated: Use MsgDelegateToGateway.ProtoReflect.Descriptor instead.

func (*MsgDelegateToGateway) GetAppAddress

func (x *MsgDelegateToGateway) GetAppAddress() string

func (*MsgDelegateToGateway) GetGatewayAddress

func (x *MsgDelegateToGateway) GetGatewayAddress() string

func (*MsgDelegateToGateway) ProtoMessage

func (*MsgDelegateToGateway) ProtoMessage()

func (*MsgDelegateToGateway) ProtoReflect

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

func (*MsgDelegateToGateway) Reset

func (x *MsgDelegateToGateway) Reset()

func (*MsgDelegateToGateway) String

func (x *MsgDelegateToGateway) String() string

type MsgDelegateToGatewayResponse

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

func (*MsgDelegateToGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgDelegateToGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgDelegateToGatewayResponse) ProtoMessage

func (*MsgDelegateToGatewayResponse) ProtoMessage()

func (*MsgDelegateToGatewayResponse) ProtoReflect

func (*MsgDelegateToGatewayResponse) Reset

func (x *MsgDelegateToGatewayResponse) Reset()

func (*MsgDelegateToGatewayResponse) String

type MsgServer added in v0.0.3

type MsgServer interface {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	StakeApplication(context.Context, *MsgStakeApplication) (*MsgStakeApplicationResponse, error)
	UnstakeApplication(context.Context, *MsgUnstakeApplication) (*MsgUnstakeApplicationResponse, error)
	DelegateToGateway(context.Context, *MsgDelegateToGateway) (*MsgDelegateToGatewayResponse, error)
	UndelegateFromGateway(context.Context, *MsgUndelegateFromGateway) (*MsgUndelegateFromGatewayResponse, error)
	// contains filtered or unexported methods
}

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

Msg defines the Msg service.

type MsgStakeApplication

type MsgStakeApplication struct {
	Address  string                             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`   // The Bech32 address of the application.
	Stake    *v1beta1.Coin                      `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`       // The total amount of uPOKT the application has staked. Must be ≥ to the current amount that the application has staked (if any)
	Services []*shared.ApplicationServiceConfig `protobuf:"bytes,3,rep,name=services,proto3" json:"services,omitempty"` // The list of services this application is staked to request service for
	// contains filtered or unexported fields
}

func (*MsgStakeApplication) Descriptor deprecated

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

Deprecated: Use MsgStakeApplication.ProtoReflect.Descriptor instead.

func (*MsgStakeApplication) GetAddress

func (x *MsgStakeApplication) GetAddress() string

func (*MsgStakeApplication) GetServices

func (*MsgStakeApplication) GetStake

func (x *MsgStakeApplication) GetStake() *v1beta1.Coin

func (*MsgStakeApplication) ProtoMessage

func (*MsgStakeApplication) ProtoMessage()

func (*MsgStakeApplication) ProtoReflect

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

func (*MsgStakeApplication) Reset

func (x *MsgStakeApplication) Reset()

func (*MsgStakeApplication) String

func (x *MsgStakeApplication) String() string

type MsgStakeApplicationResponse

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

func (*MsgStakeApplicationResponse) Descriptor deprecated

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

Deprecated: Use MsgStakeApplicationResponse.ProtoReflect.Descriptor instead.

func (*MsgStakeApplicationResponse) ProtoMessage

func (*MsgStakeApplicationResponse) ProtoMessage()

func (*MsgStakeApplicationResponse) ProtoReflect

func (*MsgStakeApplicationResponse) Reset

func (x *MsgStakeApplicationResponse) Reset()

func (*MsgStakeApplicationResponse) String

func (x *MsgStakeApplicationResponse) String() string

type MsgUndelegateFromGateway

type MsgUndelegateFromGateway struct {
	AppAddress     string `protobuf:"bytes,1,opt,name=app_address,json=appAddress,proto3" json:"app_address,omitempty"`             // The Bech32 address of the application.
	GatewayAddress string `protobuf:"bytes,2,opt,name=gateway_address,json=gatewayAddress,proto3" json:"gateway_address,omitempty"` // The Bech32 address of the gateway the application wants to undelegate from.
	// contains filtered or unexported fields
}

func (*MsgUndelegateFromGateway) Descriptor deprecated

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

Deprecated: Use MsgUndelegateFromGateway.ProtoReflect.Descriptor instead.

func (*MsgUndelegateFromGateway) GetAppAddress

func (x *MsgUndelegateFromGateway) GetAppAddress() string

func (*MsgUndelegateFromGateway) GetGatewayAddress

func (x *MsgUndelegateFromGateway) GetGatewayAddress() string

func (*MsgUndelegateFromGateway) ProtoMessage

func (*MsgUndelegateFromGateway) ProtoMessage()

func (*MsgUndelegateFromGateway) ProtoReflect

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

func (*MsgUndelegateFromGateway) Reset

func (x *MsgUndelegateFromGateway) Reset()

func (*MsgUndelegateFromGateway) String

func (x *MsgUndelegateFromGateway) String() string

type MsgUndelegateFromGatewayResponse

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

func (*MsgUndelegateFromGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgUndelegateFromGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgUndelegateFromGatewayResponse) ProtoMessage

func (*MsgUndelegateFromGatewayResponse) ProtoMessage()

func (*MsgUndelegateFromGatewayResponse) ProtoReflect

func (*MsgUndelegateFromGatewayResponse) Reset

func (*MsgUndelegateFromGatewayResponse) String

type MsgUnstakeApplication

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

func (*MsgUnstakeApplication) Descriptor deprecated

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

Deprecated: Use MsgUnstakeApplication.ProtoReflect.Descriptor instead.

func (*MsgUnstakeApplication) GetAddress

func (x *MsgUnstakeApplication) GetAddress() string

func (*MsgUnstakeApplication) ProtoMessage

func (*MsgUnstakeApplication) ProtoMessage()

func (*MsgUnstakeApplication) ProtoReflect

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

func (*MsgUnstakeApplication) Reset

func (x *MsgUnstakeApplication) Reset()

func (*MsgUnstakeApplication) String

func (x *MsgUnstakeApplication) String() string

type MsgUnstakeApplicationResponse

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

func (*MsgUnstakeApplicationResponse) Descriptor deprecated

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

Deprecated: Use MsgUnstakeApplicationResponse.ProtoReflect.Descriptor instead.

func (*MsgUnstakeApplicationResponse) ProtoMessage

func (*MsgUnstakeApplicationResponse) ProtoMessage()

func (*MsgUnstakeApplicationResponse) ProtoReflect

func (*MsgUnstakeApplicationResponse) Reset

func (x *MsgUnstakeApplicationResponse) Reset()

func (*MsgUnstakeApplicationResponse) String

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/application parameters to update.
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

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

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {

	// max_delegated_gateways defines the maximum number of gateways that a single
	// application can delegate to. This is used to prevent performance issues
	// in case the relay ring signature becomes too large.
	MaxDelegatedGateways uint64 `protobuf:"varint,1,opt,name=max_delegated_gateways,json=maxDelegatedGateways,proto3" json:"max_delegated_gateways,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetMaxDelegatedGateways

func (x *Params) GetMaxDelegatedGateways() uint64

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 QueryAllApplicationsRequest

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

func (*QueryAllApplicationsRequest) Descriptor deprecated

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

Deprecated: Use QueryAllApplicationsRequest.ProtoReflect.Descriptor instead.

func (*QueryAllApplicationsRequest) GetPagination

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

func (*QueryAllApplicationsRequest) ProtoMessage

func (*QueryAllApplicationsRequest) ProtoMessage()

func (*QueryAllApplicationsRequest) ProtoReflect

func (*QueryAllApplicationsRequest) Reset

func (x *QueryAllApplicationsRequest) Reset()

func (*QueryAllApplicationsRequest) String

func (x *QueryAllApplicationsRequest) String() string

type QueryAllApplicationsResponse

type QueryAllApplicationsResponse struct {
	Applications []*Application        `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"`
	Pagination   *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryAllApplicationsResponse) Descriptor deprecated

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

Deprecated: Use QueryAllApplicationsResponse.ProtoReflect.Descriptor instead.

func (*QueryAllApplicationsResponse) GetApplications

func (x *QueryAllApplicationsResponse) GetApplications() []*Application

func (*QueryAllApplicationsResponse) GetPagination

func (*QueryAllApplicationsResponse) ProtoMessage

func (*QueryAllApplicationsResponse) ProtoMessage()

func (*QueryAllApplicationsResponse) ProtoReflect

func (*QueryAllApplicationsResponse) Reset

func (x *QueryAllApplicationsResponse) Reset()

func (*QueryAllApplicationsResponse) String

type QueryClient added in v0.0.3

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Application items.
	Application(ctx context.Context, in *QueryGetApplicationRequest, opts ...grpc.CallOption) (*QueryGetApplicationResponse, error)
	AllApplications(ctx context.Context, in *QueryAllApplicationsRequest, opts ...grpc.CallOption) (*QueryAllApplicationsResponse, 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 added in v0.0.3

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryGetApplicationRequest

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

func (*QueryGetApplicationRequest) Descriptor deprecated

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

Deprecated: Use QueryGetApplicationRequest.ProtoReflect.Descriptor instead.

func (*QueryGetApplicationRequest) GetAddress

func (x *QueryGetApplicationRequest) GetAddress() string

func (*QueryGetApplicationRequest) ProtoMessage

func (*QueryGetApplicationRequest) ProtoMessage()

func (*QueryGetApplicationRequest) ProtoReflect

func (*QueryGetApplicationRequest) Reset

func (x *QueryGetApplicationRequest) Reset()

func (*QueryGetApplicationRequest) String

func (x *QueryGetApplicationRequest) String() string

type QueryGetApplicationResponse

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

func (*QueryGetApplicationResponse) Descriptor deprecated

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

Deprecated: Use QueryGetApplicationResponse.ProtoReflect.Descriptor instead.

func (*QueryGetApplicationResponse) GetApplication

func (x *QueryGetApplicationResponse) GetApplication() *Application

func (*QueryGetApplicationResponse) ProtoMessage

func (*QueryGetApplicationResponse) ProtoMessage()

func (*QueryGetApplicationResponse) ProtoReflect

func (*QueryGetApplicationResponse) Reset

func (x *QueryGetApplicationResponse) Reset()

func (*QueryGetApplicationResponse) String

func (x *QueryGetApplicationResponse) String() string

type QueryParamsRequest

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

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryServer added in v0.0.3

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Application items.
	Application(context.Context, *QueryGetApplicationRequest) (*QueryGetApplicationResponse, error)
	AllApplications(context.Context, *QueryAllApplicationsRequest) (*QueryAllApplicationsResponse, 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 UndelegatingGatewayList added in v0.0.2

type UndelegatingGatewayList struct {
	GatewayAddresses []string `protobuf:"bytes,2,rep,name=gateway_addresses,json=gatewayAddresses,proto3" json:"gateway_addresses,omitempty"`
	// contains filtered or unexported fields
}

UndelegatingGatewayList is used as the Value of `pending_undelegations`. It is required to store a repeated list of strings as a map value.

func (*UndelegatingGatewayList) Descriptor deprecated added in v0.0.2

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

Deprecated: Use UndelegatingGatewayList.ProtoReflect.Descriptor instead.

func (*UndelegatingGatewayList) GetGatewayAddresses added in v0.0.2

func (x *UndelegatingGatewayList) GetGatewayAddresses() []string

func (*UndelegatingGatewayList) ProtoMessage added in v0.0.2

func (*UndelegatingGatewayList) ProtoMessage()

func (*UndelegatingGatewayList) ProtoReflect added in v0.0.2

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

func (*UndelegatingGatewayList) Reset added in v0.0.2

func (x *UndelegatingGatewayList) Reset()

func (*UndelegatingGatewayList) String added in v0.0.2

func (x *UndelegatingGatewayList) String() string

type UnimplementedMsgServer added in v0.0.3

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) DelegateToGateway added in v0.0.3

func (UnimplementedMsgServer) StakeApplication added in v0.0.3

func (UnimplementedMsgServer) UndelegateFromGateway added in v0.0.3

func (UnimplementedMsgServer) UnstakeApplication added in v0.0.3

func (UnimplementedMsgServer) UpdateParams added in v0.0.3

type UnimplementedQueryServer added in v0.0.3

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) AllApplications added in v0.0.3

func (UnimplementedQueryServer) Application added in v0.0.3

func (UnimplementedQueryServer) Params added in v0.0.3

type UnsafeMsgServer added in v0.0.3

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 added in v0.0.3

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.

Directories

Path Synopsis
Code generated by protoc-gen-go-pulsar.
Code generated by protoc-gen-go-pulsar.

Jump to

Keyboard shortcuts

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