application

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

DO NOT DELETE this file. It is intentionally added and kept empty to ensure an empty package exists and can be referenced to prevent the ignite CLI from throwing errors during proto generation.

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

Variables

View Source
var (
	ApplicationUnbondingReason_name = map[int32]string{
		0: "APPLICATION_UNBONDING_REASON_ELECTIVE",
		1: "APPLICATION_UNBONDING_REASON_BELOW_MIN_STAKE",
	}
	ApplicationUnbondingReason_value = map[string]int32{
		"APPLICATION_UNBONDING_REASON_ELECTIVE":        0,
		"APPLICATION_UNBONDING_REASON_BELOW_MIN_STAKE": 1,
	}
)

Enum value maps for ApplicationUnbondingReason.

View Source
var File_pocket_application_event_proto protoreflect.FileDescriptor
View Source
var File_pocket_application_genesis_proto protoreflect.FileDescriptor
View Source
var File_pocket_application_params_proto protoreflect.FileDescriptor
View Source
var File_pocket_application_query_proto protoreflect.FileDescriptor
View Source
var File_pocket_application_tx_proto protoreflect.FileDescriptor
View Source
var File_pocket_application_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pocket.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,
		},
		{
			MethodName: "TransferApplication",
			Handler:    _Msg_TransferApplication_Handler,
		},
		{
			MethodName: "UpdateParam",
			Handler:    _Msg_UpdateParam_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pocket/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: "pocket.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: "pocket/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

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Application

type Application struct {

	// Bech32 address of the application
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Total amount of staked uPOKT
	Stake *v1beta1.Coin `protobuf:"bytes,2,opt,name=stake,proto3" json:"stake,omitempty"`
	// CRITICAL: Must contain EXACTLY ONE service config
	// This prevents applications from over-servicing.
	// Kept as repeated field for legacy and future compatibility
	// Refs:
	//   - https://github.com/pokt-network/poktroll/pull/750#discussion_r1735025033
	//   - https://www.notion.so/buildwithgrove/Off-chain-Application-Stake-Tracking-6a8bebb107db4f7f9dc62cbe7ba555f7
	ServiceConfigs []*shared.ApplicationServiceConfig `protobuf:"bytes,3,rep,name=service_configs,json=serviceConfigs,proto3" json:"service_configs,omitempty"`
	// TODO_BETA(@bryanchriswhite): Rename `delegatee_gateway_addresses` to `gateway_addresses_delegated_to`.
	// Ensure to rename all relevant configs, comments, variables, function names, etc as well.
	// Non-nullable list of Bech32 encoded delegatee Gateway addresses
	DelegateeGatewayAddresses []string `` /* 138-byte string literal not displayed */
	// Mapping of session end heights to gateways being undelegated from
	// - Key: Height of the last block of the session when undelegation tx was committed
	// - Value: 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 */
	// Session end height when application initiated unstaking (0 if not unstaking)
	UnstakeSessionEndHeight uint64 `` /* 135-byte string literal not displayed */
	// Information about pending application transfers
	PendingTransfer *PendingApplicationTransfer `protobuf:"bytes,7,opt,name=pending_transfer,json=pendingTransfer,proto3" json:"pending_transfer,omitempty"`
	// contains filtered or unexported fields
}

Application represents the onchain definition and state of 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) GetPendingTransfer

func (x *Application) GetPendingTransfer() *PendingApplicationTransfer

func (*Application) GetPendingUndelegations

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

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 ApplicationUnbondingReason

type ApplicationUnbondingReason int32
const (
	ApplicationUnbondingReason_APPLICATION_UNBONDING_REASON_ELECTIVE        ApplicationUnbondingReason = 0
	ApplicationUnbondingReason_APPLICATION_UNBONDING_REASON_BELOW_MIN_STAKE ApplicationUnbondingReason = 1
)

func (ApplicationUnbondingReason) Descriptor

func (ApplicationUnbondingReason) Enum

func (ApplicationUnbondingReason) EnumDescriptor deprecated

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

Deprecated: Use ApplicationUnbondingReason.Descriptor instead.

func (ApplicationUnbondingReason) Number

func (ApplicationUnbondingReason) String

func (ApplicationUnbondingReason) Type

type EventApplicationStaked

type EventApplicationStaked struct {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// The end height of the session in which the application was staked.
	SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventApplicationStaked is emitted when an application is staked or up-staked.

func (*EventApplicationStaked) Descriptor deprecated

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

Deprecated: Use EventApplicationStaked.ProtoReflect.Descriptor instead.

func (*EventApplicationStaked) GetApplication

func (x *EventApplicationStaked) GetApplication() *Application

func (*EventApplicationStaked) GetSessionEndHeight

func (x *EventApplicationStaked) GetSessionEndHeight() int64

func (*EventApplicationStaked) ProtoMessage

func (*EventApplicationStaked) ProtoMessage()

func (*EventApplicationStaked) ProtoReflect

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

func (*EventApplicationStaked) Reset

func (x *EventApplicationStaked) Reset()

func (*EventApplicationStaked) String

func (x *EventApplicationStaked) String() string

type EventApplicationUnbondingBegin

type EventApplicationUnbondingBegin struct {
	Application *Application               `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	Reason      ApplicationUnbondingReason `protobuf:"varint,2,opt,name=reason,proto3,enum=pocket.application.ApplicationUnbondingReason" json:"reason,omitempty"`
	// The end height of the session in which the unbonding began.
	SessionEndHeight int64 `protobuf:"varint,3,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// The height at which application unbonding will end.
	UnbondingEndHeight int64 `protobuf:"varint,4,opt,name=unbonding_end_height,json=unbondingEndHeight,proto3" json:"unbonding_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventApplicationUnbondingBegin is emitted when an application begins unbonding. This can be triggered by the commitment of an unstake message or by the application's stake dropping below the minimum. This event signals that an application has begun unbonding. The unbonding period is determined by the shared param, application_unbonding_period_sessions.

func (*EventApplicationUnbondingBegin) Descriptor deprecated

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

Deprecated: Use EventApplicationUnbondingBegin.ProtoReflect.Descriptor instead.

func (*EventApplicationUnbondingBegin) GetApplication

func (x *EventApplicationUnbondingBegin) GetApplication() *Application

func (*EventApplicationUnbondingBegin) GetReason

func (*EventApplicationUnbondingBegin) GetSessionEndHeight

func (x *EventApplicationUnbondingBegin) GetSessionEndHeight() int64

func (*EventApplicationUnbondingBegin) GetUnbondingEndHeight

func (x *EventApplicationUnbondingBegin) GetUnbondingEndHeight() int64

func (*EventApplicationUnbondingBegin) ProtoMessage

func (*EventApplicationUnbondingBegin) ProtoMessage()

func (*EventApplicationUnbondingBegin) ProtoReflect

func (*EventApplicationUnbondingBegin) Reset

func (x *EventApplicationUnbondingBegin) Reset()

func (*EventApplicationUnbondingBegin) String

type EventApplicationUnbondingCanceled

type EventApplicationUnbondingCanceled struct {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// The end height of the session in which the unbonding was canceled.
	SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventApplicationUnbondingCanceled is emitted when an application which was unbonding successfully (re-)stakes before the unbonding period has elapsed. An EventApplicationStaked event will also be emitted immediately after this event.

func (*EventApplicationUnbondingCanceled) Descriptor deprecated

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

Deprecated: Use EventApplicationUnbondingCanceled.ProtoReflect.Descriptor instead.

func (*EventApplicationUnbondingCanceled) GetApplication

func (x *EventApplicationUnbondingCanceled) GetApplication() *Application

func (*EventApplicationUnbondingCanceled) GetSessionEndHeight

func (x *EventApplicationUnbondingCanceled) GetSessionEndHeight() int64

func (*EventApplicationUnbondingCanceled) ProtoMessage

func (*EventApplicationUnbondingCanceled) ProtoMessage()

func (*EventApplicationUnbondingCanceled) ProtoReflect

func (*EventApplicationUnbondingCanceled) Reset

func (*EventApplicationUnbondingCanceled) String

type EventApplicationUnbondingEnd

type EventApplicationUnbondingEnd struct {
	Application *Application               `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	Reason      ApplicationUnbondingReason `protobuf:"varint,2,opt,name=reason,proto3,enum=pocket.application.ApplicationUnbondingReason" json:"reason,omitempty"`
	// The end height of the session in which the unbonding ended.
	SessionEndHeight int64 `protobuf:"varint,3,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// The height at which application unbonding ended.
	UnbondingEndHeight int64 `protobuf:"varint,4,opt,name=unbonding_end_height,json=unbondingEndHeight,proto3" json:"unbonding_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventApplicationUnbondingEnd is emitted when an application has completed unbonding. The unbonding period is determined by the shared param, application_unbonding_period_sessions.

func (*EventApplicationUnbondingEnd) Descriptor deprecated

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

Deprecated: Use EventApplicationUnbondingEnd.ProtoReflect.Descriptor instead.

func (*EventApplicationUnbondingEnd) GetApplication

func (x *EventApplicationUnbondingEnd) GetApplication() *Application

func (*EventApplicationUnbondingEnd) GetReason

func (*EventApplicationUnbondingEnd) GetSessionEndHeight

func (x *EventApplicationUnbondingEnd) GetSessionEndHeight() int64

func (*EventApplicationUnbondingEnd) GetUnbondingEndHeight

func (x *EventApplicationUnbondingEnd) GetUnbondingEndHeight() int64

func (*EventApplicationUnbondingEnd) ProtoMessage

func (*EventApplicationUnbondingEnd) ProtoMessage()

func (*EventApplicationUnbondingEnd) ProtoReflect

func (*EventApplicationUnbondingEnd) Reset

func (x *EventApplicationUnbondingEnd) Reset()

func (*EventApplicationUnbondingEnd) String

type EventRedelegation

type EventRedelegation struct {

	// The application which was redelegated.
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// The end height of the session in which the redelegation was committed.
	SessionEndHeight int64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// 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) GetApplication

func (x *EventRedelegation) GetApplication() *Application

func (*EventRedelegation) GetSessionEndHeight

func (x *EventRedelegation) GetSessionEndHeight() int64

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 EventTransferBegin

type EventTransferBegin struct {
	SourceAddress      string       `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	DestinationAddress string       `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	SourceApplication  *Application `protobuf:"bytes,3,opt,name=source_application,json=sourceApplication,proto3" json:"source_application,omitempty"`
	// The end height of the session in which the transfer began.
	SessionEndHeight int64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// The height at which the transfer will complete.
	TransferEndHeight int64 `protobuf:"varint,5,opt,name=transfer_end_height,json=transferEndHeight,proto3" json:"transfer_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventTransferBegin is emitted whenever an application begins a transfer. It includes the source application state immediately after the transfer began.

func (*EventTransferBegin) Descriptor deprecated

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

Deprecated: Use EventTransferBegin.ProtoReflect.Descriptor instead.

func (*EventTransferBegin) GetDestinationAddress

func (x *EventTransferBegin) GetDestinationAddress() string

func (*EventTransferBegin) GetSessionEndHeight

func (x *EventTransferBegin) GetSessionEndHeight() int64

func (*EventTransferBegin) GetSourceAddress

func (x *EventTransferBegin) GetSourceAddress() string

func (*EventTransferBegin) GetSourceApplication

func (x *EventTransferBegin) GetSourceApplication() *Application

func (*EventTransferBegin) GetTransferEndHeight

func (x *EventTransferBegin) GetTransferEndHeight() int64

func (*EventTransferBegin) ProtoMessage

func (*EventTransferBegin) ProtoMessage()

func (*EventTransferBegin) ProtoReflect

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

func (*EventTransferBegin) Reset

func (x *EventTransferBegin) Reset()

func (*EventTransferBegin) String

func (x *EventTransferBegin) String() string

type EventTransferEnd

type EventTransferEnd struct {
	SourceAddress          string       `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	DestinationAddress     string       `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	DestinationApplication *Application `` /* 127-byte string literal not displayed */
	// The end height of the session in which the transfer ended.
	SessionEndHeight int64 `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// The height at which the transfer completed.
	TransferEndHeight int64 `protobuf:"varint,5,opt,name=transfer_end_height,json=transferEndHeight,proto3" json:"transfer_end_height,omitempty"`
	// contains filtered or unexported fields
}

EventTransferEnd is emitted whenever an application transfer is completed. It includes the destination application state at the time the transfer completed. Either EventTransferEnd or EventTransferError will be emitted corresponding to any given EventTransferBegin event.

func (*EventTransferEnd) Descriptor deprecated

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

Deprecated: Use EventTransferEnd.ProtoReflect.Descriptor instead.

func (*EventTransferEnd) GetDestinationAddress

func (x *EventTransferEnd) GetDestinationAddress() string

func (*EventTransferEnd) GetDestinationApplication

func (x *EventTransferEnd) GetDestinationApplication() *Application

func (*EventTransferEnd) GetSessionEndHeight

func (x *EventTransferEnd) GetSessionEndHeight() int64

func (*EventTransferEnd) GetSourceAddress

func (x *EventTransferEnd) GetSourceAddress() string

func (*EventTransferEnd) GetTransferEndHeight

func (x *EventTransferEnd) GetTransferEndHeight() int64

func (*EventTransferEnd) ProtoMessage

func (*EventTransferEnd) ProtoMessage()

func (*EventTransferEnd) ProtoReflect

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

func (*EventTransferEnd) Reset

func (x *EventTransferEnd) Reset()

func (*EventTransferEnd) String

func (x *EventTransferEnd) String() string

type EventTransferError

type EventTransferError struct {
	SourceAddress      string       `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	DestinationAddress string       `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	SourceApplication  *Application `protobuf:"bytes,3,opt,name=source_application,json=sourceApplication,proto3" json:"source_application,omitempty"`
	// The end height of the session in which the transfer failed.
	SessionEndHeight int64  `protobuf:"varint,4,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	Error            string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

EventTransferError is emitted whenever an application transfer fails. It includes the source application state at the time the transfer failed and the error message. Either EventTransferEnd or EventTransferError will be emitted corresponding to any given EventTransferBegin event.

func (*EventTransferError) Descriptor deprecated

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

Deprecated: Use EventTransferError.ProtoReflect.Descriptor instead.

func (*EventTransferError) GetDestinationAddress

func (x *EventTransferError) GetDestinationAddress() string

func (*EventTransferError) GetError

func (x *EventTransferError) GetError() string

func (*EventTransferError) GetSessionEndHeight

func (x *EventTransferError) GetSessionEndHeight() int64

func (*EventTransferError) GetSourceAddress

func (x *EventTransferError) GetSourceAddress() string

func (*EventTransferError) GetSourceApplication

func (x *EventTransferError) GetSourceApplication() *Application

func (*EventTransferError) ProtoMessage

func (*EventTransferError) ProtoMessage()

func (*EventTransferError) ProtoReflect

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

func (*EventTransferError) Reset

func (x *EventTransferError) Reset()

func (*EventTransferError) String

func (x *EventTransferError) 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

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)
	TransferApplication(ctx context.Context, in *MsgTransferApplication, opts ...grpc.CallOption) (*MsgTransferApplicationResponse, error)
	UpdateParam(ctx context.Context, in *MsgUpdateParam, opts ...grpc.CallOption) (*MsgUpdateParamResponse, 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

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 {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgDelegateToGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgDelegateToGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgDelegateToGatewayResponse) GetApplication

func (x *MsgDelegateToGatewayResponse) GetApplication() *Application

func (*MsgDelegateToGatewayResponse) ProtoMessage

func (*MsgDelegateToGatewayResponse) ProtoMessage()

func (*MsgDelegateToGatewayResponse) ProtoReflect

func (*MsgDelegateToGatewayResponse) Reset

func (x *MsgDelegateToGatewayResponse) Reset()

func (*MsgDelegateToGatewayResponse) String

type MsgServer

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)
	TransferApplication(context.Context, *MsgTransferApplication) (*MsgTransferApplicationResponse, error)
	UpdateParam(context.Context, *MsgUpdateParam) (*MsgUpdateParamResponse, 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 {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgStakeApplicationResponse) Descriptor deprecated

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

Deprecated: Use MsgStakeApplicationResponse.ProtoReflect.Descriptor instead.

func (*MsgStakeApplicationResponse) GetApplication

func (x *MsgStakeApplicationResponse) GetApplication() *Application

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 MsgTransferApplication

type MsgTransferApplication struct {
	SourceAddress      string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
	DestinationAddress string `protobuf:"bytes,2,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgTransferApplication) Descriptor deprecated

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

Deprecated: Use MsgTransferApplication.ProtoReflect.Descriptor instead.

func (*MsgTransferApplication) GetDestinationAddress

func (x *MsgTransferApplication) GetDestinationAddress() string

func (*MsgTransferApplication) GetSourceAddress

func (x *MsgTransferApplication) GetSourceAddress() string

func (*MsgTransferApplication) ProtoMessage

func (*MsgTransferApplication) ProtoMessage()

func (*MsgTransferApplication) ProtoReflect

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

func (*MsgTransferApplication) Reset

func (x *MsgTransferApplication) Reset()

func (*MsgTransferApplication) String

func (x *MsgTransferApplication) String() string

type MsgTransferApplicationResponse

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

func (*MsgTransferApplicationResponse) Descriptor deprecated

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

Deprecated: Use MsgTransferApplicationResponse.ProtoReflect.Descriptor instead.

func (*MsgTransferApplicationResponse) GetApplication

func (x *MsgTransferApplicationResponse) GetApplication() *Application

func (*MsgTransferApplicationResponse) ProtoMessage

func (*MsgTransferApplicationResponse) ProtoMessage()

func (*MsgTransferApplicationResponse) ProtoReflect

func (*MsgTransferApplicationResponse) Reset

func (x *MsgTransferApplicationResponse) Reset()

func (*MsgTransferApplicationResponse) 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 {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUndelegateFromGatewayResponse) Descriptor deprecated

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

Deprecated: Use MsgUndelegateFromGatewayResponse.ProtoReflect.Descriptor instead.

func (*MsgUndelegateFromGatewayResponse) GetApplication

func (x *MsgUndelegateFromGatewayResponse) GetApplication() *Application

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 {
	Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgUnstakeApplicationResponse) Descriptor deprecated

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

Deprecated: Use MsgUnstakeApplicationResponse.ProtoReflect.Descriptor instead.

func (*MsgUnstakeApplicationResponse) GetApplication

func (x *MsgUnstakeApplicationResponse) GetApplication() *Application

func (*MsgUnstakeApplicationResponse) ProtoMessage

func (*MsgUnstakeApplicationResponse) ProtoMessage()

func (*MsgUnstakeApplicationResponse) ProtoReflect

func (*MsgUnstakeApplicationResponse) Reset

func (x *MsgUnstakeApplicationResponse) Reset()

func (*MsgUnstakeApplicationResponse) String

type MsgUpdateParam

type MsgUpdateParam 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"`
	Name      string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Types that are assignable to AsType:
	//
	//	*MsgUpdateParam_AsUint64
	//	*MsgUpdateParam_AsCoin
	AsType isMsgUpdateParam_AsType `protobuf_oneof:"asType"`
	// contains filtered or unexported fields
}

func (*MsgUpdateParam) Descriptor deprecated

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

Deprecated: Use MsgUpdateParam.ProtoReflect.Descriptor instead.

func (*MsgUpdateParam) GetAsCoin

func (x *MsgUpdateParam) GetAsCoin() *v1beta1.Coin

func (*MsgUpdateParam) GetAsType

func (x *MsgUpdateParam) GetAsType() isMsgUpdateParam_AsType

func (*MsgUpdateParam) GetAsUint64

func (x *MsgUpdateParam) GetAsUint64() uint64

func (*MsgUpdateParam) GetAuthority

func (x *MsgUpdateParam) GetAuthority() string

func (*MsgUpdateParam) GetName

func (x *MsgUpdateParam) GetName() string

func (*MsgUpdateParam) ProtoMessage

func (*MsgUpdateParam) ProtoMessage()

func (*MsgUpdateParam) ProtoReflect

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

func (*MsgUpdateParam) Reset

func (x *MsgUpdateParam) Reset()

func (*MsgUpdateParam) String

func (x *MsgUpdateParam) String() string

type MsgUpdateParamResponse

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

func (*MsgUpdateParamResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamResponse) GetParams

func (x *MsgUpdateParamResponse) GetParams() *Params

func (*MsgUpdateParamResponse) ProtoMessage

func (*MsgUpdateParamResponse) ProtoMessage()

func (*MsgUpdateParamResponse) ProtoReflect

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

func (*MsgUpdateParamResponse) Reset

func (x *MsgUpdateParamResponse) Reset()

func (*MsgUpdateParamResponse) String

func (x *MsgUpdateParamResponse) String() string

type MsgUpdateParam_AsCoin

type MsgUpdateParam_AsCoin struct {
	AsCoin *v1beta1.Coin `protobuf:"bytes,4,opt,name=as_coin,json=asCoin,proto3,oneof"`
}

type MsgUpdateParam_AsUint64

type MsgUpdateParam_AsUint64 struct {
	AsUint64 uint64 `protobuf:"varint,3,opt,name=as_uint64,json=asUint64,proto3,oneof"`
}

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"`
	// min_stake is the minimum stake in upokt that an application must have to remain staked.
	MinStake *v1beta1.Coin `protobuf:"bytes,2,opt,name=min_stake,json=minStake,proto3" json:"min_stake,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) GetMinStake

func (x *Params) GetMinStake() *v1beta1.Coin

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 PendingApplicationTransfer

type PendingApplicationTransfer struct {
	DestinationAddress string `protobuf:"bytes,1,opt,name=destination_address,json=destinationAddress,proto3" json:"destination_address,omitempty"`
	SessionEndHeight   uint64 `protobuf:"varint,2,opt,name=session_end_height,json=sessionEndHeight,proto3" json:"session_end_height,omitempty"`
	// contains filtered or unexported fields
}

PendingTransfer is used to store the details of a pending transfer. It is only intended to be used inside of an Application object.

func (*PendingApplicationTransfer) Descriptor deprecated

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

Deprecated: Use PendingApplicationTransfer.ProtoReflect.Descriptor instead.

func (*PendingApplicationTransfer) GetDestinationAddress

func (x *PendingApplicationTransfer) GetDestinationAddress() string

func (*PendingApplicationTransfer) GetSessionEndHeight

func (x *PendingApplicationTransfer) GetSessionEndHeight() uint64

func (*PendingApplicationTransfer) ProtoMessage

func (*PendingApplicationTransfer) ProtoMessage()

func (*PendingApplicationTransfer) ProtoReflect

func (*PendingApplicationTransfer) Reset

func (x *PendingApplicationTransfer) Reset()

func (*PendingApplicationTransfer) String

func (x *PendingApplicationTransfer) String() string

type QueryAllApplicationsRequest

type QueryAllApplicationsRequest struct {
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// TODO_MAINNET(@adshmh): rename this field to `gateway_address_delegated_to`
	// delegatee_gateway_address, if specified, filters the application list to only include those with delegation to the specified gateway address.
	DelegateeGatewayAddress string `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*QueryAllApplicationsRequest) Descriptor deprecated

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

Deprecated: Use QueryAllApplicationsRequest.ProtoReflect.Descriptor instead.

func (*QueryAllApplicationsRequest) GetDelegateeGatewayAddress

func (x *QueryAllApplicationsRequest) GetDelegateeGatewayAddress() string

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

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

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

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

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

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

Deprecated: Use UndelegatingGatewayList.ProtoReflect.Descriptor instead.

func (*UndelegatingGatewayList) GetGatewayAddresses

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

func (*UndelegatingGatewayList) ProtoMessage

func (*UndelegatingGatewayList) ProtoMessage()

func (*UndelegatingGatewayList) ProtoReflect

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

func (*UndelegatingGatewayList) Reset

func (x *UndelegatingGatewayList) Reset()

func (*UndelegatingGatewayList) String

func (x *UndelegatingGatewayList) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) StakeApplication

func (UnimplementedMsgServer) UpdateParam

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

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.

Directories

Path Synopsis
DO NOT DELETE this file.
DO NOT DELETE this file.

Jump to

Keyboard shortcuts

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