Documentation ¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type MsgClient
- type MsgCommunityPoolSpend
- func (*MsgCommunityPoolSpend) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCommunityPoolSpend) GetAmount() []*v1beta1.Coin
- func (x *MsgCommunityPoolSpend) GetAuthority() string
- func (x *MsgCommunityPoolSpend) GetRecipient() string
- func (*MsgCommunityPoolSpend) ProtoMessage()
- func (x *MsgCommunityPoolSpend) ProtoReflect() protoreflect.Message
- func (x *MsgCommunityPoolSpend) Reset()
- func (x *MsgCommunityPoolSpend) String() string
- type MsgCommunityPoolSpendResponse
- func (*MsgCommunityPoolSpendResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgCommunityPoolSpendResponse) ProtoMessage()
- func (x *MsgCommunityPoolSpendResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCommunityPoolSpendResponse) Reset()
- func (x *MsgCommunityPoolSpendResponse) String() string
- type MsgFundCommunityPool
- func (*MsgFundCommunityPool) Descriptor() ([]byte, []int)deprecated
- func (x *MsgFundCommunityPool) GetAmount() []*v1beta1.Coin
- func (x *MsgFundCommunityPool) GetDepositor() string
- func (*MsgFundCommunityPool) ProtoMessage()
- func (x *MsgFundCommunityPool) ProtoReflect() protoreflect.Message
- func (x *MsgFundCommunityPool) Reset()
- func (x *MsgFundCommunityPool) String() string
- type MsgFundCommunityPoolResponse
- func (*MsgFundCommunityPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgFundCommunityPoolResponse) ProtoMessage()
- func (x *MsgFundCommunityPoolResponse) ProtoReflect() protoreflect.Message
- func (x *MsgFundCommunityPoolResponse) Reset()
- func (x *MsgFundCommunityPoolResponse) String() string
- type MsgServer
- type QueryClient
- type QueryCommunityPoolRequest
- type QueryCommunityPoolResponse
- func (*QueryCommunityPoolResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCommunityPoolResponse) GetPool() []*v1beta1.DecCoin
- func (*QueryCommunityPoolResponse) ProtoMessage()
- func (x *QueryCommunityPoolResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCommunityPoolResponse) Reset()
- func (x *QueryCommunityPoolResponse) String() string
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
const ( Msg_FundCommunityPool_FullMethodName = "/cosmos.protocolpool.v1.Msg/FundCommunityPool" Msg_CommunityPoolSpend_FullMethodName = "/cosmos.protocolpool.v1.Msg/CommunityPoolSpend" )
const (
Query_CommunityPool_FullMethodName = "/cosmos.protocolpool.v1.Query/CommunityPool"
)
Variables ¶
var File_cosmos_protocolpool_v1_query_proto protoreflect.FileDescriptor
var File_cosmos_protocolpool_v1_tx_proto protoreflect.FileDescriptor
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, }, }, 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)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.protocolpool.v1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CommunityPool", Handler: _Query_CommunityPool_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 MsgClient ¶
type MsgClient interface { // FundCommunityPool defines a method to allow an account to directly // fund the community pool. // // Since: cosmos-sdk 0.50 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. // // Since: cosmos-sdk 0.50 CommunityPoolSpend(ctx context.Context, in *MsgCommunityPoolSpend, opts ...grpc.CallOption) (*MsgCommunityPoolSpendResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type 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.
Since: cosmos-sdk 0.50
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.
Since: cosmos-sdk 0.50
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 (x *MsgCommunityPoolSpendResponse) ProtoReflect() protoreflect.Message
func (*MsgCommunityPoolSpendResponse) Reset ¶
func (x *MsgCommunityPoolSpendResponse) Reset()
func (*MsgCommunityPoolSpendResponse) String ¶
func (x *MsgCommunityPoolSpendResponse) String() string
type MsgFundCommunityPool ¶
type MsgFundCommunityPool struct { Amount []*v1beta1.Coin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"` Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,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 (x *MsgFundCommunityPoolResponse) ProtoReflect() protoreflect.Message
func (*MsgFundCommunityPoolResponse) Reset ¶
func (x *MsgFundCommunityPoolResponse) Reset()
func (*MsgFundCommunityPoolResponse) String ¶
func (x *MsgFundCommunityPoolResponse) String() string
type MsgServer ¶
type MsgServer interface { // FundCommunityPool defines a method to allow an account to directly // fund the community pool. // // Since: cosmos-sdk 0.50 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. // // Since: cosmos-sdk 0.50 CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type QueryClient ¶
type QueryClient interface { // CommunityPool queries the community pool coins. CommunityPool(ctx context.Context, in *QueryCommunityPoolRequest, opts ...grpc.CallOption) (*QueryCommunityPoolResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type 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 (x *QueryCommunityPoolRequest) ProtoReflect() protoreflect.Message
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.DecCoin `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.DecCoin
func (*QueryCommunityPoolResponse) ProtoMessage ¶
func (*QueryCommunityPoolResponse) ProtoMessage()
func (*QueryCommunityPoolResponse) ProtoReflect ¶
func (x *QueryCommunityPoolResponse) ProtoReflect() protoreflect.Message
func (*QueryCommunityPoolResponse) Reset ¶
func (x *QueryCommunityPoolResponse) Reset()
func (*QueryCommunityPoolResponse) String ¶
func (x *QueryCommunityPoolResponse) String() string
type QueryServer ¶
type QueryServer interface { // CommunityPool queries the community pool coins. CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) CommunityPoolSpend ¶
func (UnimplementedMsgServer) CommunityPoolSpend(context.Context, *MsgCommunityPoolSpend) (*MsgCommunityPoolSpendResponse, error)
func (UnimplementedMsgServer) FundCommunityPool ¶
func (UnimplementedMsgServer) FundCommunityPool(context.Context, *MsgFundCommunityPool) (*MsgFundCommunityPoolResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) CommunityPool ¶
func (UnimplementedQueryServer) CommunityPool(context.Context, *QueryCommunityPoolRequest) (*QueryCommunityPoolResponse, error)
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.