protocolpoolv1

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 18 Imported by: 1

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_CommunityPool_FullMethodName   = "/cosmos.protocolpool.v1.Query/CommunityPool"
	Query_ContinuousFund_FullMethodName  = "/cosmos.protocolpool.v1.Query/ContinuousFund"
	Query_ContinuousFunds_FullMethodName = "/cosmos.protocolpool.v1.Query/ContinuousFunds"
	Query_Params_FullMethodName          = "/cosmos.protocolpool.v1.Query/Params"
)
View Source
const (
	Msg_FundCommunityPool_FullMethodName    = "/cosmos.protocolpool.v1.Msg/FundCommunityPool"
	Msg_CommunityPoolSpend_FullMethodName   = "/cosmos.protocolpool.v1.Msg/CommunityPoolSpend"
	Msg_CreateContinuousFund_FullMethodName = "/cosmos.protocolpool.v1.Msg/CreateContinuousFund"
	Msg_CancelContinuousFund_FullMethodName = "/cosmos.protocolpool.v1.Msg/CancelContinuousFund"
	Msg_UpdateParams_FullMethodName         = "/cosmos.protocolpool.v1.Msg/UpdateParams"
)

Variables

View Source
var File_cosmos_protocolpool_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_protocolpool_v1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_protocolpool_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_cosmos_protocolpool_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.protocolpool.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FundCommunityPool",
			Handler:    _Msg_FundCommunityPool_Handler,
		},
		{
			MethodName: "CommunityPoolSpend",
			Handler:    _Msg_CommunityPoolSpend_Handler,
		},
		{
			MethodName: "CreateContinuousFund",
			Handler:    _Msg_CreateContinuousFund_Handler,
		},
		{
			MethodName: "CancelContinuousFund",
			Handler:    _Msg_CancelContinuousFund_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/protocolpool/v1/tx.proto",
}

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

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.protocolpool.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CommunityPool",
			Handler:    _Query_CommunityPool_Handler,
		},
		{
			MethodName: "ContinuousFund",
			Handler:    _Query_ContinuousFund_Handler,
		},
		{
			MethodName: "ContinuousFunds",
			Handler:    _Query_ContinuousFunds_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/protocolpool/v1/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type ContinuousFund added in v0.8.0

type ContinuousFund struct {

	// Recipient is the address string of the account receiving funds.
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// Percentage is the percentage of funds to be allocated from Community pool.
	Percentage string `protobuf:"bytes,2,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// Optional, if expiry is set, removes the state object when expired.
	Expiry *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}

ContinuousFund defines the fields of continuous fund proposal.

func (*ContinuousFund) Descriptor deprecated added in v0.8.0

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

Deprecated: Use ContinuousFund.ProtoReflect.Descriptor instead.

func (*ContinuousFund) GetExpiry added in v0.8.0

func (x *ContinuousFund) GetExpiry() *timestamppb.Timestamp

func (*ContinuousFund) GetPercentage added in v0.8.0

func (x *ContinuousFund) GetPercentage() string

func (*ContinuousFund) GetRecipient added in v0.8.0

func (x *ContinuousFund) GetRecipient() string

func (*ContinuousFund) ProtoMessage added in v0.8.0

func (*ContinuousFund) ProtoMessage()

func (*ContinuousFund) ProtoReflect added in v0.8.0

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

func (*ContinuousFund) Reset added in v0.8.0

func (x *ContinuousFund) Reset()

func (*ContinuousFund) String added in v0.8.0

func (x *ContinuousFund) String() string

type GenesisState added in v0.8.0

type GenesisState struct {

	// ContinuousFunds defines the continuous funds at genesis.
	ContinuousFunds []*ContinuousFund `protobuf:"bytes,1,rep,name=continuous_funds,json=continuousFunds,proto3" json:"continuous_funds,omitempty"`
	// Params defines the parameters of this module, currently only contains the
	// denoms that will be used for continuous fund distributions.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the protocolpool module's genesis state.

func (*GenesisState) Descriptor deprecated added in v0.8.0

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetContinuousFunds added in v0.9.0

func (x *GenesisState) GetContinuousFunds() []*ContinuousFund

func (*GenesisState) GetParams added in v0.8.0

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage added in v0.8.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect added in v0.8.0

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

func (*GenesisState) Reset added in v0.8.0

func (x *GenesisState) Reset()

func (*GenesisState) String added in v0.8.0

func (x *GenesisState) String() string

type MsgCancelContinuousFund added in v0.8.0

type MsgCancelContinuousFund struct {

	// Authority is the account address of authority.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// Recipient is the account address string of the recipient whose funds are to be cancelled.
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

MsgCancelContinuousFund defines a message to cancel continuous funds for a specific recipient.

func (*MsgCancelContinuousFund) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgCancelContinuousFund.ProtoReflect.Descriptor instead.

func (*MsgCancelContinuousFund) GetAuthority added in v0.8.0

func (x *MsgCancelContinuousFund) GetAuthority() string

func (*MsgCancelContinuousFund) GetRecipient added in v0.9.0

func (x *MsgCancelContinuousFund) GetRecipient() string

func (*MsgCancelContinuousFund) ProtoMessage added in v0.8.0

func (*MsgCancelContinuousFund) ProtoMessage()

func (*MsgCancelContinuousFund) ProtoReflect added in v0.8.0

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

func (*MsgCancelContinuousFund) Reset added in v0.8.0

func (x *MsgCancelContinuousFund) Reset()

func (*MsgCancelContinuousFund) String added in v0.8.0

func (x *MsgCancelContinuousFund) String() string

type MsgCancelContinuousFundResponse added in v0.8.0

type MsgCancelContinuousFundResponse struct {

	// CanceledTime is the canceled time.
	CanceledTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=canceled_time,json=canceledTime,proto3" json:"canceled_time,omitempty"`
	// CanceledHeight defines the canceled block height.
	CanceledHeight uint64 `protobuf:"varint,2,opt,name=canceled_height,json=canceledHeight,proto3" json:"canceled_height,omitempty"`
	// Recipient is the account address string of the recipient whose funds are cancelled.
	Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

MsgCancelContinuousFundResponse defines the response to executing a MsgCancelContinuousFund message.

func (*MsgCancelContinuousFundResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgCancelContinuousFundResponse.ProtoReflect.Descriptor instead.

func (*MsgCancelContinuousFundResponse) GetCanceledHeight added in v0.8.0

func (x *MsgCancelContinuousFundResponse) GetCanceledHeight() uint64

func (*MsgCancelContinuousFundResponse) GetCanceledTime added in v0.8.0

func (*MsgCancelContinuousFundResponse) GetRecipient added in v0.9.0

func (x *MsgCancelContinuousFundResponse) GetRecipient() string

func (*MsgCancelContinuousFundResponse) ProtoMessage added in v0.8.0

func (*MsgCancelContinuousFundResponse) ProtoMessage()

func (*MsgCancelContinuousFundResponse) ProtoReflect added in v0.8.0

func (*MsgCancelContinuousFundResponse) Reset added in v0.8.0

func (*MsgCancelContinuousFundResponse) String added in v0.8.0

type MsgClient

type MsgClient interface {
	// FundCommunityPool defines a method to allow an account to directly
	// fund the community pool.
	FundCommunityPool(ctx context.Context, in *MsgFundCommunityPool, opts ...grpc.CallOption) (*MsgFundCommunityPoolResponse, error)
	// CommunityPoolSpend defines a governance operation for sending tokens from
	// the community pool in the x/protocolpool module to another account, which
	// could be the governance module itself. The authority is defined in the
	// keeper.
	CommunityPoolSpend(ctx context.Context, in *MsgCommunityPoolSpend, opts ...grpc.CallOption) (*MsgCommunityPoolSpendResponse, error)
	// CreateContinuousFund defines a method to distribute a percentage of funds to an address continuously.
	// This ContinuousFund can be indefinite or run until a given expiry time.
	// Funds come from validator block rewards from x/distribution, but may also come from
	// any user who funds the ProtocolPoolEscrow module account directly through x/bank.
	CreateContinuousFund(ctx context.Context, in *MsgCreateContinuousFund, opts ...grpc.CallOption) (*MsgCreateContinuousFundResponse, error)
	// CancelContinuousFund defines a method for cancelling continuous fund.
	CancelContinuousFund(ctx context.Context, in *MsgCancelContinuousFund, opts ...grpc.CallOption) (*MsgCancelContinuousFundResponse, error)
	// UpdateParams defines a governance operation for updating the x/protocolpool module parameters.
	// The authority is defined in the keeper.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 pool Msg service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCommunityPoolSpend

type MsgCommunityPoolSpend 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"`
	Recipient string          `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    []*v1beta1.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgCommunityPoolSpend defines a message for sending tokens from the community pool to another account. This message is typically executed via a governance proposal with the governance module being the executing authority.

func (*MsgCommunityPoolSpend) Descriptor deprecated

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

Deprecated: Use MsgCommunityPoolSpend.ProtoReflect.Descriptor instead.

func (*MsgCommunityPoolSpend) GetAmount

func (x *MsgCommunityPoolSpend) GetAmount() []*v1beta1.Coin

func (*MsgCommunityPoolSpend) GetAuthority

func (x *MsgCommunityPoolSpend) GetAuthority() string

func (*MsgCommunityPoolSpend) GetRecipient

func (x *MsgCommunityPoolSpend) GetRecipient() string

func (*MsgCommunityPoolSpend) ProtoMessage

func (*MsgCommunityPoolSpend) ProtoMessage()

func (*MsgCommunityPoolSpend) ProtoReflect

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

func (*MsgCommunityPoolSpend) Reset

func (x *MsgCommunityPoolSpend) Reset()

func (*MsgCommunityPoolSpend) String

func (x *MsgCommunityPoolSpend) String() string

type MsgCommunityPoolSpendResponse

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

MsgCommunityPoolSpendResponse defines the response to executing a MsgCommunityPoolSpend message.

func (*MsgCommunityPoolSpendResponse) Descriptor deprecated

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

Deprecated: Use MsgCommunityPoolSpendResponse.ProtoReflect.Descriptor instead.

func (*MsgCommunityPoolSpendResponse) ProtoMessage

func (*MsgCommunityPoolSpendResponse) ProtoMessage()

func (*MsgCommunityPoolSpendResponse) ProtoReflect

func (*MsgCommunityPoolSpendResponse) Reset

func (x *MsgCommunityPoolSpendResponse) Reset()

func (*MsgCommunityPoolSpendResponse) String

type MsgCreateContinuousFund added in v0.8.0

type MsgCreateContinuousFund 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"`
	// Recipient address of the account receiving funds.
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// Percentage is the percentage of funds to be allocated from Community pool.
	Percentage string `protobuf:"bytes,3,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// Optional, if expiry is set, removes the state object when expired.
	Expiry *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateContinuousFund defines a message for adding continuous funds.

func (*MsgCreateContinuousFund) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgCreateContinuousFund.ProtoReflect.Descriptor instead.

func (*MsgCreateContinuousFund) GetAuthority added in v0.8.0

func (x *MsgCreateContinuousFund) GetAuthority() string

func (*MsgCreateContinuousFund) GetExpiry added in v0.8.0

func (*MsgCreateContinuousFund) GetPercentage added in v0.8.0

func (x *MsgCreateContinuousFund) GetPercentage() string

func (*MsgCreateContinuousFund) GetRecipient added in v0.8.0

func (x *MsgCreateContinuousFund) GetRecipient() string

func (*MsgCreateContinuousFund) ProtoMessage added in v0.8.0

func (*MsgCreateContinuousFund) ProtoMessage()

func (*MsgCreateContinuousFund) ProtoReflect added in v0.8.0

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

func (*MsgCreateContinuousFund) Reset added in v0.8.0

func (x *MsgCreateContinuousFund) Reset()

func (*MsgCreateContinuousFund) String added in v0.8.0

func (x *MsgCreateContinuousFund) String() string

type MsgCreateContinuousFundResponse added in v0.8.0

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

MsgCreateContinuousFundResponse defines the response to executing a MsgCreateContinuousFund message.

func (*MsgCreateContinuousFundResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgCreateContinuousFundResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateContinuousFundResponse) ProtoMessage added in v0.8.0

func (*MsgCreateContinuousFundResponse) ProtoMessage()

func (*MsgCreateContinuousFundResponse) ProtoReflect added in v0.8.0

func (*MsgCreateContinuousFundResponse) Reset added in v0.8.0

func (*MsgCreateContinuousFundResponse) String added in v0.8.0

type MsgFundCommunityPool

type MsgFundCommunityPool struct {
	Depositor string          `protobuf:"bytes,1,opt,name=depositor,proto3" json:"depositor,omitempty"`
	Amount    []*v1beta1.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgFundCommunityPool allows an account to directly fund the community pool.

func (*MsgFundCommunityPool) Descriptor deprecated

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

Deprecated: Use MsgFundCommunityPool.ProtoReflect.Descriptor instead.

func (*MsgFundCommunityPool) GetAmount

func (x *MsgFundCommunityPool) GetAmount() []*v1beta1.Coin

func (*MsgFundCommunityPool) GetDepositor

func (x *MsgFundCommunityPool) GetDepositor() string

func (*MsgFundCommunityPool) ProtoMessage

func (*MsgFundCommunityPool) ProtoMessage()

func (*MsgFundCommunityPool) ProtoReflect

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

func (*MsgFundCommunityPool) Reset

func (x *MsgFundCommunityPool) Reset()

func (*MsgFundCommunityPool) String

func (x *MsgFundCommunityPool) String() string

type MsgFundCommunityPoolResponse

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

MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.

func (*MsgFundCommunityPoolResponse) Descriptor deprecated

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

Deprecated: Use MsgFundCommunityPoolResponse.ProtoReflect.Descriptor instead.

func (*MsgFundCommunityPoolResponse) ProtoMessage

func (*MsgFundCommunityPoolResponse) ProtoMessage()

func (*MsgFundCommunityPoolResponse) ProtoReflect

func (*MsgFundCommunityPoolResponse) Reset

func (x *MsgFundCommunityPoolResponse) Reset()

func (*MsgFundCommunityPoolResponse) String

type MsgServer

type MsgServer interface {
	// FundCommunityPool defines a method to allow an account to directly
	// fund the community pool.
	FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error)
	// CommunityPoolSpend defines a governance operation for sending tokens from
	// the community pool in the x/protocolpool module to another account, which
	// could be the governance module itself. The authority is defined in the
	// keeper.
	CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error)
	// CreateContinuousFund defines a method to distribute a percentage of funds to an address continuously.
	// This ContinuousFund can be indefinite or run until a given expiry time.
	// Funds come from validator block rewards from x/distribution, but may also come from
	// any user who funds the ProtocolPoolEscrow module account directly through x/bank.
	CreateContinuousFund(context.Context, *MsgCreateContinuousFund) (*MsgCreateContinuousFundResponse, error)
	// CancelContinuousFund defines a method for cancelling continuous fund.
	CancelContinuousFund(context.Context, *MsgCancelContinuousFund) (*MsgCancelContinuousFundResponse, error)
	// UpdateParams defines a governance operation for updating the x/protocolpool module parameters.
	// The authority is defined in the keeper.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, 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 pool Msg service.

type MsgUpdateParams added in v0.8.0

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/protocolpool 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 added in v0.8.0

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority added in v0.8.0

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v0.8.0

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage added in v0.8.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect added in v0.8.0

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

func (*MsgUpdateParams) Reset added in v0.8.0

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String added in v0.8.0

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse added in v0.8.0

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

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor deprecated added in v0.8.0

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage added in v0.8.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect added in v0.8.0

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

func (*MsgUpdateParamsResponse) Reset added in v0.8.0

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String added in v0.8.0

func (x *MsgUpdateParamsResponse) String() string

type Params added in v0.8.0

type Params struct {

	// EnabledDistributionDenoms lists the denoms that are allowed to be distributed.
	// This is to avoid spending time distributing undesired tokens to continuous funds and budgets.
	EnabledDistributionDenoms []string `` /* 138-byte string literal not displayed */
	// DistributionFrequency is the frequency (in terms of blocks) that funds are distributed out from the
	// x/protocolpool module.
	DistributionFrequency uint64 `protobuf:"varint,2,opt,name=distribution_frequency,json=distributionFrequency,proto3" json:"distribution_frequency,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the protocolpool module.

func (*Params) Descriptor deprecated added in v0.8.0

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetDistributionFrequency added in v0.9.0

func (x *Params) GetDistributionFrequency() uint64

func (*Params) GetEnabledDistributionDenoms added in v0.8.0

func (x *Params) GetEnabledDistributionDenoms() []string

func (*Params) ProtoMessage added in v0.8.0

func (*Params) ProtoMessage()

func (*Params) ProtoReflect added in v0.8.0

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

func (*Params) Reset added in v0.8.0

func (x *Params) Reset()

func (*Params) String added in v0.8.0

func (x *Params) String() string

type QueryClient

type QueryClient interface {
	// CommunityPool queries the community pool coins.
	CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error)
	// ContinuousFund queries a continuous fund by the recipient is is associated with.
	ContinuousFund(ctx context.Context, in *QueryContinuousFundRequest, opts ...grpc.CallOption) (*QueryContinuousFundResponse, error)
	// ContinuousFunds queries all continuous funds in the store.
	ContinuousFunds(ctx context.Context, in *QueryContinuousFundsRequest, opts ...grpc.CallOption) (*QueryContinuousFundsResponse, error)
	// Params returns the total set of x/protocolpool parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 for community pool module.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryCommunityPoolRequest

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

QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC method.

func (*QueryCommunityPoolRequest) Descriptor deprecated

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

Deprecated: Use QueryCommunityPoolRequest.ProtoReflect.Descriptor instead.

func (*QueryCommunityPoolRequest) ProtoMessage

func (*QueryCommunityPoolRequest) ProtoMessage()

func (*QueryCommunityPoolRequest) ProtoReflect

func (*QueryCommunityPoolRequest) Reset

func (x *QueryCommunityPoolRequest) Reset()

func (*QueryCommunityPoolRequest) String

func (x *QueryCommunityPoolRequest) String() string

type QueryCommunityPoolResponse

type QueryCommunityPoolResponse struct {

	// pool defines community pool's coins.
	Pool []*v1beta1.Coin `protobuf:"bytes,1,rep,name=pool,proto3" json:"pool,omitempty"`
	// contains filtered or unexported fields
}

QueryCommunityPoolResponse is the response type for the Query/CommunityPool RPC method.

func (*QueryCommunityPoolResponse) Descriptor deprecated

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

Deprecated: Use QueryCommunityPoolResponse.ProtoReflect.Descriptor instead.

func (*QueryCommunityPoolResponse) GetPool

func (x *QueryCommunityPoolResponse) GetPool() []*v1beta1.Coin

func (*QueryCommunityPoolResponse) ProtoMessage

func (*QueryCommunityPoolResponse) ProtoMessage()

func (*QueryCommunityPoolResponse) ProtoReflect

func (*QueryCommunityPoolResponse) Reset

func (x *QueryCommunityPoolResponse) Reset()

func (*QueryCommunityPoolResponse) String

func (x *QueryCommunityPoolResponse) String() string

type QueryContinuousFundRequest added in v0.9.0

type QueryContinuousFundRequest struct {

	// recipient is the recipient address to query unclaimed budget amount for.
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contains filtered or unexported fields
}

QueryContinuousFundRequest is the request type for the Query/ContinuousFund RPC method.

func (*QueryContinuousFundRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryContinuousFundRequest.ProtoReflect.Descriptor instead.

func (*QueryContinuousFundRequest) GetRecipient added in v0.9.0

func (x *QueryContinuousFundRequest) GetRecipient() string

func (*QueryContinuousFundRequest) ProtoMessage added in v0.9.0

func (*QueryContinuousFundRequest) ProtoMessage()

func (*QueryContinuousFundRequest) ProtoReflect added in v0.9.0

func (*QueryContinuousFundRequest) Reset added in v0.9.0

func (x *QueryContinuousFundRequest) Reset()

func (*QueryContinuousFundRequest) String added in v0.9.0

func (x *QueryContinuousFundRequest) String() string

type QueryContinuousFundResponse added in v0.9.0

type QueryContinuousFundResponse struct {

	// ContinuousFunds is the given continuous fund returned in the query.
	ContinuousFund *ContinuousFund `protobuf:"bytes,1,opt,name=continuous_fund,json=continuousFund,proto3" json:"continuous_fund,omitempty"`
	// contains filtered or unexported fields
}

QueryUnclaimedBudgetResponse is the response type for the Query/ContinuousFund RPC method.

func (*QueryContinuousFundResponse) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryContinuousFundResponse.ProtoReflect.Descriptor instead.

func (*QueryContinuousFundResponse) GetContinuousFund added in v0.9.0

func (x *QueryContinuousFundResponse) GetContinuousFund() *ContinuousFund

func (*QueryContinuousFundResponse) ProtoMessage added in v0.9.0

func (*QueryContinuousFundResponse) ProtoMessage()

func (*QueryContinuousFundResponse) ProtoReflect added in v0.9.0

func (*QueryContinuousFundResponse) Reset added in v0.9.0

func (x *QueryContinuousFundResponse) Reset()

func (*QueryContinuousFundResponse) String added in v0.9.0

func (x *QueryContinuousFundResponse) String() string

type QueryContinuousFundsRequest added in v0.9.0

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

QueryContinuousFundRequest is the request type for the Query/ContinuousFunds RPC method.

func (*QueryContinuousFundsRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryContinuousFundsRequest.ProtoReflect.Descriptor instead.

func (*QueryContinuousFundsRequest) ProtoMessage added in v0.9.0

func (*QueryContinuousFundsRequest) ProtoMessage()

func (*QueryContinuousFundsRequest) ProtoReflect added in v0.9.0

func (*QueryContinuousFundsRequest) Reset added in v0.9.0

func (x *QueryContinuousFundsRequest) Reset()

func (*QueryContinuousFundsRequest) String added in v0.9.0

func (x *QueryContinuousFundsRequest) String() string

type QueryContinuousFundsResponse added in v0.9.0

type QueryContinuousFundsResponse struct {

	// ContinuousFunds defines all continuous funds in state.
	ContinuousFunds []*ContinuousFund `protobuf:"bytes,1,rep,name=continuous_funds,json=continuousFunds,proto3" json:"continuous_funds,omitempty"`
	// contains filtered or unexported fields
}

QueryUnclaimedBudgetResponse is the response type for the Query/ContinuousFunds RPC method.

func (*QueryContinuousFundsResponse) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryContinuousFundsResponse.ProtoReflect.Descriptor instead.

func (*QueryContinuousFundsResponse) GetContinuousFunds added in v0.9.0

func (x *QueryContinuousFundsResponse) GetContinuousFunds() []*ContinuousFund

func (*QueryContinuousFundsResponse) ProtoMessage added in v0.9.0

func (*QueryContinuousFundsResponse) ProtoMessage()

func (*QueryContinuousFundsResponse) ProtoReflect added in v0.9.0

func (*QueryContinuousFundsResponse) Reset added in v0.9.0

func (x *QueryContinuousFundsResponse) Reset()

func (*QueryContinuousFundsResponse) String added in v0.9.0

type QueryParamsRequest added in v0.9.0

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

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

func (*QueryParamsRequest) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage added in v0.9.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect added in v0.9.0

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

func (*QueryParamsRequest) Reset added in v0.9.0

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String added in v0.9.0

func (x *QueryParamsRequest) String() string

type QueryParamsResponse added in v0.9.0

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

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

func (*QueryParamsResponse) Descriptor deprecated added in v0.9.0

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams added in v0.9.0

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage added in v0.9.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect added in v0.9.0

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

func (*QueryParamsResponse) Reset added in v0.9.0

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String added in v0.9.0

func (x *QueryParamsResponse) String() string

type QueryServer

type QueryServer interface {
	// CommunityPool queries the community pool coins.
	CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
	// ContinuousFund queries a continuous fund by the recipient is is associated with.
	ContinuousFund(context.Context, *QueryContinuousFundRequest) (*QueryContinuousFundResponse, error)
	// ContinuousFunds queries all continuous funds in the store.
	ContinuousFunds(context.Context, *QueryContinuousFundsRequest) (*QueryContinuousFundsResponse, error)
	// Params returns the total set of x/protocolpool parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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 for community pool module.

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer 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 (UnimplementedMsgServer) CancelContinuousFund added in v0.8.0

func (UnimplementedMsgServer) CreateContinuousFund added in v0.8.0

func (UnimplementedMsgServer) UpdateParams added in v0.8.0

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) ContinuousFund added in v0.9.0

func (UnimplementedQueryServer) ContinuousFunds added in v0.9.0

func (UnimplementedQueryServer) Params added in v0.9.0

type UnsafeMsgServer

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

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

type UnsafeQueryServer

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

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

Jump to

Keyboard shortcuts

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