Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ActiveSubscriptionForAddressKey(address sdk.AccAddress, i uint64) []byte
- func GetActiveSubscriptionForAddressKeyPrefix(address sdk.AccAddress) []byte
- func GetInactiveSubscriptionAtKeyPrefix(at time.Time) []byte
- func GetInactiveSubscriptionForAddressKeyPrefix(address sdk.AccAddress) []byte
- func GetQuotaKeyPrefix(id uint64) []byte
- func GetSubscriptionForNodeKeyPrefix(address hubtypes.NodeAddress) []byte
- func GetSubscriptionForPlanKeyPrefix(id uint64) []byte
- func IDFromInactiveSubscriptionAtKey(key []byte) uint64
- func IDFromStatusSubscriptionForAddressKey(key []byte) uint64
- func IDFromSubscriptionForNodeKey(key []byte) uint64
- func IDFromSubscriptionForPlanKey(key []byte) uint64
- func InactiveSubscriptionAtKey(at time.Time, id uint64) []byte
- func InactiveSubscriptionForAddressKey(address sdk.AccAddress, i uint64) []byte
- func ParamsKeyTable() params.KeyTable
- func QuotaKey(id uint64, address sdk.AccAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- func SubscriptionForNodeKey(address hubtypes.NodeAddress, id uint64) []byte
- func SubscriptionForPlanKey(p, s uint64) []byte
- func SubscriptionKey(id uint64) []byte
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GenesisSubscription
- func (*GenesisSubscription) Descriptor() ([]byte, []int)
- func (m *GenesisSubscription) Marshal() (dAtA []byte, err error)
- func (m *GenesisSubscription) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisSubscription) ProtoMessage()
- func (m *GenesisSubscription) Reset()
- func (m *GenesisSubscription) Size() (n int)
- func (m *GenesisSubscription) String() string
- func (m *GenesisSubscription) Unmarshal(dAtA []byte) error
- func (m *GenesisSubscription) XXX_DiscardUnknown()
- func (m *GenesisSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisSubscription) XXX_Merge(src proto.Message)
- func (m *GenesisSubscription) XXX_Size() int
- func (m *GenesisSubscription) XXX_Unmarshal(b []byte) error
- type GenesisSubscriptions
- type MsgAddQuotaRequest
- func (*MsgAddQuotaRequest) Descriptor() ([]byte, []int)
- func (m *MsgAddQuotaRequest) GetSignBytes() []byte
- func (m *MsgAddQuotaRequest) GetSigners() []sdk.AccAddress
- func (m *MsgAddQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgAddQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddQuotaRequest) ProtoMessage()
- func (m *MsgAddQuotaRequest) Reset()
- func (m *MsgAddQuotaRequest) Route() string
- func (m *MsgAddQuotaRequest) Size() (n int)
- func (m *MsgAddQuotaRequest) String() string
- func (m *MsgAddQuotaRequest) Type() string
- func (m *MsgAddQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *MsgAddQuotaRequest) ValidateBasic() error
- func (m *MsgAddQuotaRequest) XXX_DiscardUnknown()
- func (m *MsgAddQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddQuotaRequest) XXX_Merge(src proto.Message)
- func (m *MsgAddQuotaRequest) XXX_Size() int
- func (m *MsgAddQuotaRequest) XXX_Unmarshal(b []byte) error
- type MsgAddQuotaResponse
- func (*MsgAddQuotaResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddQuotaResponse) ProtoMessage()
- func (m *MsgAddQuotaResponse) Reset()
- func (m *MsgAddQuotaResponse) Size() (n int)
- func (m *MsgAddQuotaResponse) String() string
- func (m *MsgAddQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddQuotaResponse) XXX_DiscardUnknown()
- func (m *MsgAddQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddQuotaResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddQuotaResponse) XXX_Size() int
- func (m *MsgAddQuotaResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelRequest
- func (*MsgCancelRequest) Descriptor() ([]byte, []int)
- func (m *MsgCancelRequest) GetSignBytes() []byte
- func (m *MsgCancelRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCancelRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelRequest) ProtoMessage()
- func (m *MsgCancelRequest) Reset()
- func (m *MsgCancelRequest) Route() string
- func (m *MsgCancelRequest) Size() (n int)
- func (m *MsgCancelRequest) String() string
- func (m *MsgCancelRequest) Type() string
- func (m *MsgCancelRequest) Unmarshal(dAtA []byte) error
- func (m *MsgCancelRequest) ValidateBasic() error
- func (m *MsgCancelRequest) XXX_DiscardUnknown()
- func (m *MsgCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelRequest) XXX_Merge(src proto.Message)
- func (m *MsgCancelRequest) XXX_Size() int
- func (m *MsgCancelRequest) XXX_Unmarshal(b []byte) error
- type MsgCancelResponse
- func (*MsgCancelResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelResponse) ProtoMessage()
- func (m *MsgCancelResponse) Reset()
- func (m *MsgCancelResponse) Size() (n int)
- func (m *MsgCancelResponse) String() string
- func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelResponse) XXX_DiscardUnknown()
- func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelResponse) XXX_Size() int
- func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error
- type MsgServiceClient
- type MsgServiceServer
- type MsgSubscribeToNodeRequest
- func (*MsgSubscribeToNodeRequest) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToNodeRequest) GetSignBytes() []byte
- func (m *MsgSubscribeToNodeRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSubscribeToNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToNodeRequest) ProtoMessage()
- func (m *MsgSubscribeToNodeRequest) Reset()
- func (m *MsgSubscribeToNodeRequest) Route() string
- func (m *MsgSubscribeToNodeRequest) Size() (n int)
- func (m *MsgSubscribeToNodeRequest) String() string
- func (m *MsgSubscribeToNodeRequest) Type() string
- func (m *MsgSubscribeToNodeRequest) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeToNodeRequest) ValidateBasic() error
- func (m *MsgSubscribeToNodeRequest) XXX_DiscardUnknown()
- func (m *MsgSubscribeToNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToNodeRequest) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToNodeRequest) XXX_Size() int
- func (m *MsgSubscribeToNodeRequest) XXX_Unmarshal(b []byte) error
- type MsgSubscribeToNodeResponse
- func (*MsgSubscribeToNodeResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToNodeResponse) ProtoMessage()
- func (m *MsgSubscribeToNodeResponse) Reset()
- func (m *MsgSubscribeToNodeResponse) Size() (n int)
- func (m *MsgSubscribeToNodeResponse) String() string
- func (m *MsgSubscribeToNodeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeToNodeResponse) XXX_DiscardUnknown()
- func (m *MsgSubscribeToNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToNodeResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToNodeResponse) XXX_Size() int
- func (m *MsgSubscribeToNodeResponse) XXX_Unmarshal(b []byte) error
- type MsgSubscribeToPlanRequest
- func (*MsgSubscribeToPlanRequest) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToPlanRequest) GetSignBytes() []byte
- func (m *MsgSubscribeToPlanRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSubscribeToPlanRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToPlanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToPlanRequest) ProtoMessage()
- func (m *MsgSubscribeToPlanRequest) Reset()
- func (m *MsgSubscribeToPlanRequest) Route() string
- func (m *MsgSubscribeToPlanRequest) Size() (n int)
- func (m *MsgSubscribeToPlanRequest) String() string
- func (m *MsgSubscribeToPlanRequest) Type() string
- func (m *MsgSubscribeToPlanRequest) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeToPlanRequest) ValidateBasic() error
- func (m *MsgSubscribeToPlanRequest) XXX_DiscardUnknown()
- func (m *MsgSubscribeToPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToPlanRequest) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToPlanRequest) XXX_Size() int
- func (m *MsgSubscribeToPlanRequest) XXX_Unmarshal(b []byte) error
- type MsgSubscribeToPlanResponse
- func (*MsgSubscribeToPlanResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubscribeToPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubscribeToPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubscribeToPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubscribeToPlanResponse) ProtoMessage()
- func (m *MsgSubscribeToPlanResponse) Reset()
- func (m *MsgSubscribeToPlanResponse) Size() (n int)
- func (m *MsgSubscribeToPlanResponse) String() string
- func (m *MsgSubscribeToPlanResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubscribeToPlanResponse) XXX_DiscardUnknown()
- func (m *MsgSubscribeToPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubscribeToPlanResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubscribeToPlanResponse) XXX_Size() int
- func (m *MsgSubscribeToPlanResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateQuotaRequest
- func (*MsgUpdateQuotaRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateQuotaRequest) GetSignBytes() []byte
- func (m *MsgUpdateQuotaRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateQuotaRequest) ProtoMessage()
- func (m *MsgUpdateQuotaRequest) Reset()
- func (m *MsgUpdateQuotaRequest) Route() string
- func (m *MsgUpdateQuotaRequest) Size() (n int)
- func (m *MsgUpdateQuotaRequest) String() string
- func (m *MsgUpdateQuotaRequest) Type() string
- func (m *MsgUpdateQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateQuotaRequest) ValidateBasic() error
- func (m *MsgUpdateQuotaRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateQuotaRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateQuotaRequest) XXX_Size() int
- func (m *MsgUpdateQuotaRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateQuotaResponse
- func (*MsgUpdateQuotaResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateQuotaResponse) ProtoMessage()
- func (m *MsgUpdateQuotaResponse) Reset()
- func (m *MsgUpdateQuotaResponse) Size() (n int)
- func (m *MsgUpdateQuotaResponse) String() string
- func (m *MsgUpdateQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateQuotaResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateQuotaResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateQuotaResponse) XXX_Size() int
- func (m *MsgUpdateQuotaResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() params.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryQuotaRequest
- func (*QueryQuotaRequest) Descriptor() ([]byte, []int)
- func (m *QueryQuotaRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryQuotaRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryQuotaRequest) ProtoMessage()
- func (m *QueryQuotaRequest) Reset()
- func (m *QueryQuotaRequest) Size() (n int)
- func (m *QueryQuotaRequest) String() string
- func (m *QueryQuotaRequest) Unmarshal(dAtA []byte) error
- func (m *QueryQuotaRequest) XXX_DiscardUnknown()
- func (m *QueryQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryQuotaRequest) XXX_Merge(src proto.Message)
- func (m *QueryQuotaRequest) XXX_Size() int
- func (m *QueryQuotaRequest) XXX_Unmarshal(b []byte) error
- type QueryQuotaResponse
- func (*QueryQuotaResponse) Descriptor() ([]byte, []int)
- func (m *QueryQuotaResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryQuotaResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryQuotaResponse) ProtoMessage()
- func (m *QueryQuotaResponse) Reset()
- func (m *QueryQuotaResponse) Size() (n int)
- func (m *QueryQuotaResponse) String() string
- func (m *QueryQuotaResponse) Unmarshal(dAtA []byte) error
- func (m *QueryQuotaResponse) XXX_DiscardUnknown()
- func (m *QueryQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryQuotaResponse) XXX_Merge(src proto.Message)
- func (m *QueryQuotaResponse) XXX_Size() int
- func (m *QueryQuotaResponse) XXX_Unmarshal(b []byte) error
- type QueryQuotasRequest
- func (*QueryQuotasRequest) Descriptor() ([]byte, []int)
- func (m *QueryQuotasRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryQuotasRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryQuotasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryQuotasRequest) ProtoMessage()
- func (m *QueryQuotasRequest) Reset()
- func (m *QueryQuotasRequest) Size() (n int)
- func (m *QueryQuotasRequest) String() string
- func (m *QueryQuotasRequest) Unmarshal(dAtA []byte) error
- func (m *QueryQuotasRequest) XXX_DiscardUnknown()
- func (m *QueryQuotasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryQuotasRequest) XXX_Merge(src proto.Message)
- func (m *QueryQuotasRequest) XXX_Size() int
- func (m *QueryQuotasRequest) XXX_Unmarshal(b []byte) error
- type QueryQuotasResponse
- func (*QueryQuotasResponse) Descriptor() ([]byte, []int)
- func (m *QueryQuotasResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryQuotasResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryQuotasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryQuotasResponse) ProtoMessage()
- func (m *QueryQuotasResponse) Reset()
- func (m *QueryQuotasResponse) Size() (n int)
- func (m *QueryQuotasResponse) String() string
- func (m *QueryQuotasResponse) Unmarshal(dAtA []byte) error
- func (m *QueryQuotasResponse) XXX_DiscardUnknown()
- func (m *QueryQuotasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryQuotasResponse) XXX_Merge(src proto.Message)
- func (m *QueryQuotasResponse) XXX_Size() int
- func (m *QueryQuotasResponse) XXX_Unmarshal(b []byte) error
- type QueryServiceClient
- type QueryServiceServer
- type QuerySubscriptionRequest
- func (*QuerySubscriptionRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionRequest) ProtoMessage()
- func (m *QuerySubscriptionRequest) Reset()
- func (m *QuerySubscriptionRequest) Size() (n int)
- func (m *QuerySubscriptionRequest) String() string
- func (m *QuerySubscriptionRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionRequest) XXX_Size() int
- func (m *QuerySubscriptionRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionResponse
- func (*QuerySubscriptionResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionResponse) ProtoMessage()
- func (m *QuerySubscriptionResponse) Reset()
- func (m *QuerySubscriptionResponse) Size() (n int)
- func (m *QuerySubscriptionResponse) String() string
- func (m *QuerySubscriptionResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionResponse) XXX_Size() int
- func (m *QuerySubscriptionResponse) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForAddressRequest
- func (*QuerySubscriptionsForAddressRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForAddressRequest) ProtoMessage()
- func (m *QuerySubscriptionsForAddressRequest) Reset()
- func (m *QuerySubscriptionsForAddressRequest) Size() (n int)
- func (m *QuerySubscriptionsForAddressRequest) String() string
- func (m *QuerySubscriptionsForAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForAddressRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForAddressRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForAddressRequest) XXX_Size() int
- func (m *QuerySubscriptionsForAddressRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForAddressResponse
- func (*QuerySubscriptionsForAddressResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForAddressResponse) ProtoMessage()
- func (m *QuerySubscriptionsForAddressResponse) Reset()
- func (m *QuerySubscriptionsForAddressResponse) Size() (n int)
- func (m *QuerySubscriptionsForAddressResponse) String() string
- func (m *QuerySubscriptionsForAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForAddressResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForAddressResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForAddressResponse) XXX_Size() int
- func (m *QuerySubscriptionsForAddressResponse) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForNodeRequest
- func (*QuerySubscriptionsForNodeRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForNodeRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForNodeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForNodeRequest) ProtoMessage()
- func (m *QuerySubscriptionsForNodeRequest) Reset()
- func (m *QuerySubscriptionsForNodeRequest) Size() (n int)
- func (m *QuerySubscriptionsForNodeRequest) String() string
- func (m *QuerySubscriptionsForNodeRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForNodeRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForNodeRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForNodeRequest) XXX_Size() int
- func (m *QuerySubscriptionsForNodeRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForNodeResponse
- func (*QuerySubscriptionsForNodeResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForNodeResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForNodeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForNodeResponse) ProtoMessage()
- func (m *QuerySubscriptionsForNodeResponse) Reset()
- func (m *QuerySubscriptionsForNodeResponse) Size() (n int)
- func (m *QuerySubscriptionsForNodeResponse) String() string
- func (m *QuerySubscriptionsForNodeResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForNodeResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForNodeResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForNodeResponse) XXX_Size() int
- func (m *QuerySubscriptionsForNodeResponse) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForPlanRequest
- func (*QuerySubscriptionsForPlanRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForPlanRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForPlanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForPlanRequest) ProtoMessage()
- func (m *QuerySubscriptionsForPlanRequest) Reset()
- func (m *QuerySubscriptionsForPlanRequest) Size() (n int)
- func (m *QuerySubscriptionsForPlanRequest) String() string
- func (m *QuerySubscriptionsForPlanRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForPlanRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForPlanRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForPlanRequest) XXX_Size() int
- func (m *QuerySubscriptionsForPlanRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsForPlanResponse
- func (*QuerySubscriptionsForPlanResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsForPlanResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsForPlanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsForPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsForPlanResponse) ProtoMessage()
- func (m *QuerySubscriptionsForPlanResponse) Reset()
- func (m *QuerySubscriptionsForPlanResponse) Size() (n int)
- func (m *QuerySubscriptionsForPlanResponse) String() string
- func (m *QuerySubscriptionsForPlanResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsForPlanResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsForPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsForPlanResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsForPlanResponse) XXX_Size() int
- func (m *QuerySubscriptionsForPlanResponse) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsRequest
- func (*QuerySubscriptionsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsRequest) ProtoMessage()
- func (m *QuerySubscriptionsRequest) Reset()
- func (m *QuerySubscriptionsRequest) Size() (n int)
- func (m *QuerySubscriptionsRequest) String() string
- func (m *QuerySubscriptionsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsRequest) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsRequest) XXX_Size() int
- func (m *QuerySubscriptionsRequest) XXX_Unmarshal(b []byte) error
- type QuerySubscriptionsResponse
- func (*QuerySubscriptionsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubscriptionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubscriptionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubscriptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubscriptionsResponse) ProtoMessage()
- func (m *QuerySubscriptionsResponse) Reset()
- func (m *QuerySubscriptionsResponse) Size() (n int)
- func (m *QuerySubscriptionsResponse) String() string
- func (m *QuerySubscriptionsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubscriptionsResponse) XXX_DiscardUnknown()
- func (m *QuerySubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubscriptionsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubscriptionsResponse) XXX_Size() int
- func (m *QuerySubscriptionsResponse) XXX_Unmarshal(b []byte) error
- type Quota
- func (*Quota) Descriptor() ([]byte, []int)
- func (q *Quota) GetAddress() sdk.AccAddress
- func (m *Quota) Marshal() (dAtA []byte, err error)
- func (m *Quota) MarshalTo(dAtA []byte) (int, error)
- func (m *Quota) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Quota) ProtoMessage()
- func (m *Quota) Reset()
- func (m *Quota) Size() (n int)
- func (q *Quota) String() string
- func (m *Quota) Unmarshal(dAtA []byte) error
- func (q *Quota) Validate() error
- func (m *Quota) XXX_DiscardUnknown()
- func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Quota) XXX_Merge(src proto.Message)
- func (m *Quota) XXX_Size() int
- func (m *Quota) XXX_Unmarshal(b []byte) error
- type Quotas
- type Subscription
- func (s *Subscription) Amount(consumed sdk.Int) sdk.Coin
- func (*Subscription) Descriptor() ([]byte, []int)
- func (s *Subscription) GetNode() hubtypes.NodeAddress
- func (m *Subscription) Marshal() (dAtA []byte, err error)
- func (m *Subscription) MarshalTo(dAtA []byte) (int, error)
- func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Subscription) ProtoMessage()
- func (m *Subscription) Reset()
- func (m *Subscription) Size() (n int)
- func (s *Subscription) String() string
- func (m *Subscription) Unmarshal(dAtA []byte) error
- func (s *Subscription) Validate() error
- func (m *Subscription) XXX_DiscardUnknown()
- func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subscription) XXX_Merge(src proto.Message)
- func (m *Subscription) XXX_Size() int
- func (m *Subscription) XXX_Unmarshal(b []byte) error
- type Subscriptions
- type UnimplementedMsgServiceServer
- func (*UnimplementedMsgServiceServer) MsgAddQuota(ctx context.Context, req *MsgAddQuotaRequest) (*MsgAddQuotaResponse, error)
- func (*UnimplementedMsgServiceServer) MsgCancel(ctx context.Context, req *MsgCancelRequest) (*MsgCancelResponse, error)
- func (*UnimplementedMsgServiceServer) MsgSubscribeToNode(ctx context.Context, req *MsgSubscribeToNodeRequest) (*MsgSubscribeToNodeResponse, error)
- func (*UnimplementedMsgServiceServer) MsgSubscribeToPlan(ctx context.Context, req *MsgSubscribeToPlanRequest) (*MsgSubscribeToPlanResponse, error)
- func (*UnimplementedMsgServiceServer) MsgUpdateQuota(ctx context.Context, req *MsgUpdateQuotaRequest) (*MsgUpdateQuotaResponse, error)
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryQuota(ctx context.Context, req *QueryQuotaRequest) (*QueryQuotaResponse, error)
- func (*UnimplementedQueryServiceServer) QueryQuotas(ctx context.Context, req *QueryQuotasRequest) (*QueryQuotasResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySubscription(ctx context.Context, req *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySubscriptions(ctx context.Context, req *QuerySubscriptionsRequest) (*QuerySubscriptionsResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySubscriptionsForAddress(ctx context.Context, req *QuerySubscriptionsForAddressRequest) (*QuerySubscriptionsForAddressResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySubscriptionsForNode(ctx context.Context, req *QuerySubscriptionsForNodeRequest) (*QuerySubscriptionsForNodeResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySubscriptionsForPlan(ctx context.Context, req *QuerySubscriptionsForPlanRequest) (*QuerySubscriptionsForPlanResponse, error)
Constants ¶
const ( AttributeKeyOwner = "owner" AttributeKeyAddress = "address" AttributeKeyID = "id" AttributeKeyStatus = "status" AttributeKeyNode = "node" AttributeKeyCount = "count" AttributeKeyPlan = "plan" AttributeKeyConsumed = "consumed" AttributeKeyAllocated = "allocated" )
const ( ModuleName = "subscription" QuerierRoute = ModuleName )
const (
DefaultInactiveDuration = 10 * time.Minute
)
Variables ¶
var ( ErrorMarshal = errors.Register(ModuleName, 101, "error occurred while marshalling") ErrorUnmarshal = errors.Register(ModuleName, 102, "error occurred while unmarshalling") ErrorUnknownMsgType = errors.Register(ModuleName, 103, "unknown message type") ErrorUnknownQueryType = errors.Register(ModuleName, 104, "unknown query type") ErrorInvalidField = errors.Register(ModuleName, 105, "invalid field") ErrorPlanDoesNotExist = errors.Register(ModuleName, 106, "plan does not exist") ErrorNodeDoesNotExist = errors.Register(ModuleName, 107, "node does not exist") ErrorInvalidPlanStatus = errors.Register(ModuleName, 109, "invalid plan status") ErrorPriceDoesNotExist = errors.Register(ModuleName, 110, "price does not exist") ErrorInvalidNodeStatus = errors.Register(ModuleName, 111, "invalid node status") ErrorSubscriptionDoesNotExist = errors.Register(ModuleName, 112, "subscription does not exist") ErrorInvalidSubscriptionStatus = errors.Register(ModuleName, 113, "invalid subscription status") ErrorCanNotSubscribe = errors.Register(ModuleName, 114, "can not subscribe") ErrorInvalidQuota = errors.Register(ModuleName, 115, "invalid quota") ErrorDuplicateQuota = errors.Register(ModuleName, 116, "duplicate quota") ErrorQuotaDoesNotExist = errors.Register(ModuleName, 117, "quota does not exist") ErrorCanNotAddQuota = errors.Register(ModuleName, 118, "can not add quota") )
var ( EventTypeSetCount = fmt.Sprintf("%s:set_count", ModuleName) EventTypeSet = fmt.Sprintf("%s:set", ModuleName) EventTypeCancel = fmt.Sprintf("%s:cancel", ModuleName) EventTypeAddQuota = fmt.Sprintf("%s:add_quota", ModuleName) EventTypeUpdateQuota = fmt.Sprintf("%s:update_quota", ModuleName) )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsSubspace = ModuleName RouterKey = ModuleName StoreKey = ModuleName )
var ( CountKey = []byte{0x00} SubscriptionKeyPrefix = []byte{0x10} SubscriptionForNodeKeyPrefix = []byte{0x11} SubscriptionForPlanKeyPrefix = []byte{0x12} ActiveSubscriptionForAddressKeyPrefix = []byte{0x20} InactiveSubscriptionForAddressKeyPrefix = []byte{0x21} InactiveSubscriptionAtKeyPrefix = []byte{0x30} QuotaKeyPrefix = []byte{0x40} )
var ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuerier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuerier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuota = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuota = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuota = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSubscription = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSubscription = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group") )
var ( EventModuleName = sdk.NewEvent( sdk.EventTypeMessage, sdk.NewAttribute(sdk.AttributeKeyModule, ModuleName), ) )
var (
KeyInactiveDuration = []byte("InactiveDuration")
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func ActiveSubscriptionForAddressKey ¶ added in v0.4.0
func ActiveSubscriptionForAddressKey(address sdk.AccAddress, i uint64) []byte
func GetActiveSubscriptionForAddressKeyPrefix ¶ added in v0.4.0
func GetActiveSubscriptionForAddressKeyPrefix(address sdk.AccAddress) []byte
func GetInactiveSubscriptionAtKeyPrefix ¶ added in v0.4.0
func GetInactiveSubscriptionForAddressKeyPrefix ¶ added in v0.4.0
func GetInactiveSubscriptionForAddressKeyPrefix(address sdk.AccAddress) []byte
func GetQuotaKeyPrefix ¶
func GetSubscriptionForNodeKeyPrefix ¶
func GetSubscriptionForNodeKeyPrefix(address hubtypes.NodeAddress) []byte
func IDFromInactiveSubscriptionAtKey ¶ added in v0.4.0
func IDFromStatusSubscriptionForAddressKey ¶ added in v0.4.0
func IDFromSubscriptionForNodeKey ¶ added in v0.4.0
func IDFromSubscriptionForPlanKey ¶ added in v0.4.0
func InactiveSubscriptionAtKey ¶ added in v0.4.0
func InactiveSubscriptionForAddressKey ¶ added in v0.4.0
func InactiveSubscriptionForAddressKey(address sdk.AccAddress, i uint64) []byte
func ParamsKeyTable ¶
func RegisterInterfaces ¶ added in v0.6.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.6.0
func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
func RegisterMsgServiceServer ¶ added in v0.6.0
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶ added in v0.6.0
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶ added in v0.6.0
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶ added in v0.6.0
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶ added in v0.6.0
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶ added in v0.6.0
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
func SubscriptionForNodeKey ¶
func SubscriptionForNodeKey(address hubtypes.NodeAddress, id uint64) []byte
func SubscriptionForPlanKey ¶
func SubscriptionKey ¶
Types ¶
type GenesisState ¶
type GenesisState struct { Subscriptions []GenesisSubscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"_,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(subscriptions GenesisSubscriptions, params Params) *GenesisState
func (*GenesisState) Descriptor ¶ added in v0.6.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶ added in v0.6.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.6.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.6.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.6.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.6.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.6.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.6.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.6.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.6.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.6.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GenesisSubscription ¶
type GenesisSubscription struct { Subscription Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"_"` Quotas []Quota `protobuf:"bytes,2,rep,name=quotas,proto3" json:"quotas"` }
func (*GenesisSubscription) Descriptor ¶ added in v0.6.0
func (*GenesisSubscription) Descriptor() ([]byte, []int)
func (*GenesisSubscription) Marshal ¶ added in v0.6.0
func (m *GenesisSubscription) Marshal() (dAtA []byte, err error)
func (*GenesisSubscription) MarshalTo ¶ added in v0.6.0
func (m *GenesisSubscription) MarshalTo(dAtA []byte) (int, error)
func (*GenesisSubscription) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *GenesisSubscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisSubscription) ProtoMessage ¶ added in v0.6.0
func (*GenesisSubscription) ProtoMessage()
func (*GenesisSubscription) Reset ¶ added in v0.6.0
func (m *GenesisSubscription) Reset()
func (*GenesisSubscription) Size ¶ added in v0.6.0
func (m *GenesisSubscription) Size() (n int)
func (*GenesisSubscription) String ¶ added in v0.6.0
func (m *GenesisSubscription) String() string
func (*GenesisSubscription) Unmarshal ¶ added in v0.6.0
func (m *GenesisSubscription) Unmarshal(dAtA []byte) error
func (*GenesisSubscription) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *GenesisSubscription) XXX_DiscardUnknown()
func (*GenesisSubscription) XXX_Marshal ¶ added in v0.6.0
func (m *GenesisSubscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisSubscription) XXX_Merge ¶ added in v0.6.0
func (m *GenesisSubscription) XXX_Merge(src proto.Message)
func (*GenesisSubscription) XXX_Size ¶ added in v0.6.0
func (m *GenesisSubscription) XXX_Size() int
func (*GenesisSubscription) XXX_Unmarshal ¶ added in v0.6.0
func (m *GenesisSubscription) XXX_Unmarshal(b []byte) error
type GenesisSubscriptions ¶
type GenesisSubscriptions []GenesisSubscription
type MsgAddQuotaRequest ¶ added in v0.6.0
type MsgAddQuotaRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Bytes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=bytes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bytes"` }
func NewMsgAddQuotaRequest ¶ added in v0.6.0
func NewMsgAddQuotaRequest(from sdk.AccAddress, id uint64, address sdk.AccAddress, bytes sdk.Int) *MsgAddQuotaRequest
func (*MsgAddQuotaRequest) Descriptor ¶ added in v0.6.0
func (*MsgAddQuotaRequest) Descriptor() ([]byte, []int)
func (*MsgAddQuotaRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) GetSignBytes() []byte
func (*MsgAddQuotaRequest) GetSigners ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) GetSigners() []sdk.AccAddress
func (*MsgAddQuotaRequest) Marshal ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Marshal() (dAtA []byte, err error)
func (*MsgAddQuotaRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddQuotaRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddQuotaRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgAddQuotaRequest) ProtoMessage()
func (*MsgAddQuotaRequest) Reset ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Reset()
func (*MsgAddQuotaRequest) Route ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Route() string
func (*MsgAddQuotaRequest) Size ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Size() (n int)
func (*MsgAddQuotaRequest) String ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) String() string
func (*MsgAddQuotaRequest) Type ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Type() string
func (*MsgAddQuotaRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) Unmarshal(dAtA []byte) error
func (*MsgAddQuotaRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) ValidateBasic() error
func (*MsgAddQuotaRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) XXX_DiscardUnknown()
func (*MsgAddQuotaRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddQuotaRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) XXX_Merge(src proto.Message)
func (*MsgAddQuotaRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) XXX_Size() int
func (*MsgAddQuotaRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgAddQuotaRequest) XXX_Unmarshal(b []byte) error
type MsgAddQuotaResponse ¶ added in v0.6.0
type MsgAddQuotaResponse struct { }
func (*MsgAddQuotaResponse) Descriptor ¶ added in v0.6.0
func (*MsgAddQuotaResponse) Descriptor() ([]byte, []int)
func (*MsgAddQuotaResponse) Marshal ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddQuotaResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddQuotaResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddQuotaResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgAddQuotaResponse) ProtoMessage()
func (*MsgAddQuotaResponse) Reset ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) Reset()
func (*MsgAddQuotaResponse) Size ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) Size() (n int)
func (*MsgAddQuotaResponse) String ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) String() string
func (*MsgAddQuotaResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) Unmarshal(dAtA []byte) error
func (*MsgAddQuotaResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) XXX_DiscardUnknown()
func (*MsgAddQuotaResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddQuotaResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) XXX_Merge(src proto.Message)
func (*MsgAddQuotaResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) XXX_Size() int
func (*MsgAddQuotaResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgAddQuotaResponse) XXX_Unmarshal(b []byte) error
type MsgCancelRequest ¶ added in v0.6.0
type MsgCancelRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` }
func NewMsgCancelRequest ¶ added in v0.6.0
func NewMsgCancelRequest(from sdk.AccAddress, id uint64) *MsgCancelRequest
func (*MsgCancelRequest) Descriptor ¶ added in v0.6.0
func (*MsgCancelRequest) Descriptor() ([]byte, []int)
func (*MsgCancelRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgCancelRequest) GetSignBytes() []byte
func (*MsgCancelRequest) GetSigners ¶ added in v0.6.0
func (m *MsgCancelRequest) GetSigners() []sdk.AccAddress
func (*MsgCancelRequest) Marshal ¶ added in v0.6.0
func (m *MsgCancelRequest) Marshal() (dAtA []byte, err error)
func (*MsgCancelRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgCancelRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgCancelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgCancelRequest) ProtoMessage()
func (*MsgCancelRequest) Reset ¶ added in v0.6.0
func (m *MsgCancelRequest) Reset()
func (*MsgCancelRequest) Route ¶ added in v0.6.0
func (m *MsgCancelRequest) Route() string
func (*MsgCancelRequest) Size ¶ added in v0.6.0
func (m *MsgCancelRequest) Size() (n int)
func (*MsgCancelRequest) String ¶ added in v0.6.0
func (m *MsgCancelRequest) String() string
func (*MsgCancelRequest) Type ¶ added in v0.6.0
func (m *MsgCancelRequest) Type() string
func (*MsgCancelRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgCancelRequest) Unmarshal(dAtA []byte) error
func (*MsgCancelRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgCancelRequest) ValidateBasic() error
func (*MsgCancelRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgCancelRequest) XXX_DiscardUnknown()
func (*MsgCancelRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgCancelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgCancelRequest) XXX_Merge(src proto.Message)
func (*MsgCancelRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgCancelRequest) XXX_Size() int
func (*MsgCancelRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgCancelRequest) XXX_Unmarshal(b []byte) error
type MsgCancelResponse ¶ added in v0.6.0
type MsgCancelResponse struct { }
func (*MsgCancelResponse) Descriptor ¶ added in v0.6.0
func (*MsgCancelResponse) Descriptor() ([]byte, []int)
func (*MsgCancelResponse) Marshal ¶ added in v0.6.0
func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgCancelResponse) ProtoMessage()
func (*MsgCancelResponse) Reset ¶ added in v0.6.0
func (m *MsgCancelResponse) Reset()
func (*MsgCancelResponse) Size ¶ added in v0.6.0
func (m *MsgCancelResponse) Size() (n int)
func (*MsgCancelResponse) String ¶ added in v0.6.0
func (m *MsgCancelResponse) String() string
func (*MsgCancelResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgCancelResponse) XXX_DiscardUnknown()
func (*MsgCancelResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgCancelResponse) XXX_Merge(src proto.Message)
func (*MsgCancelResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgCancelResponse) XXX_Size() int
func (*MsgCancelResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶ added in v0.6.0
type MsgServiceClient interface { MsgSubscribeToNode(ctx context.Context, in *MsgSubscribeToNodeRequest, opts ...grpc.CallOption) (*MsgSubscribeToNodeResponse, error) MsgSubscribeToPlan(ctx context.Context, in *MsgSubscribeToPlanRequest, opts ...grpc.CallOption) (*MsgSubscribeToPlanResponse, error) MsgCancel(ctx context.Context, in *MsgCancelRequest, opts ...grpc.CallOption) (*MsgCancelResponse, error) MsgAddQuota(ctx context.Context, in *MsgAddQuotaRequest, opts ...grpc.CallOption) (*MsgAddQuotaResponse, error) MsgUpdateQuota(ctx context.Context, in *MsgUpdateQuotaRequest, opts ...grpc.CallOption) (*MsgUpdateQuotaResponse, error) }
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶ added in v0.6.0
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶ added in v0.6.0
type MsgServiceServer interface { MsgSubscribeToNode(context.Context, *MsgSubscribeToNodeRequest) (*MsgSubscribeToNodeResponse, error) MsgSubscribeToPlan(context.Context, *MsgSubscribeToPlanRequest) (*MsgSubscribeToPlanResponse, error) MsgCancel(context.Context, *MsgCancelRequest) (*MsgCancelResponse, error) MsgAddQuota(context.Context, *MsgAddQuotaRequest) (*MsgAddQuotaResponse, error) MsgUpdateQuota(context.Context, *MsgUpdateQuotaRequest) (*MsgUpdateQuotaResponse, error) }
MsgServiceServer is the server API for MsgService service.
type MsgSubscribeToNodeRequest ¶ added in v0.6.0
type MsgSubscribeToNodeRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Deposit types.Coin `protobuf:"bytes,3,opt,name=deposit,proto3" json:"deposit"` }
func NewMsgSubscribeToNodeRequest ¶ added in v0.6.0
func NewMsgSubscribeToNodeRequest(from sdk.AccAddress, address hubtypes.NodeAddress, deposit sdk.Coin) *MsgSubscribeToNodeRequest
func (*MsgSubscribeToNodeRequest) Descriptor ¶ added in v0.6.0
func (*MsgSubscribeToNodeRequest) Descriptor() ([]byte, []int)
func (*MsgSubscribeToNodeRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) GetSignBytes() []byte
func (*MsgSubscribeToNodeRequest) GetSigners ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) GetSigners() []sdk.AccAddress
func (*MsgSubscribeToNodeRequest) Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeToNodeRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeToNodeRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeToNodeRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgSubscribeToNodeRequest) ProtoMessage()
func (*MsgSubscribeToNodeRequest) Reset ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Reset()
func (*MsgSubscribeToNodeRequest) Route ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Route() string
func (*MsgSubscribeToNodeRequest) Size ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Size() (n int)
func (*MsgSubscribeToNodeRequest) String ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) String() string
func (*MsgSubscribeToNodeRequest) Type ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Type() string
func (*MsgSubscribeToNodeRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) Unmarshal(dAtA []byte) error
func (*MsgSubscribeToNodeRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) ValidateBasic() error
func (*MsgSubscribeToNodeRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) XXX_DiscardUnknown()
func (*MsgSubscribeToNodeRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeToNodeRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) XXX_Merge(src proto.Message)
func (*MsgSubscribeToNodeRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) XXX_Size() int
func (*MsgSubscribeToNodeRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeRequest) XXX_Unmarshal(b []byte) error
type MsgSubscribeToNodeResponse ¶ added in v0.6.0
type MsgSubscribeToNodeResponse struct { }
func (*MsgSubscribeToNodeResponse) Descriptor ¶ added in v0.6.0
func (*MsgSubscribeToNodeResponse) Descriptor() ([]byte, []int)
func (*MsgSubscribeToNodeResponse) Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeToNodeResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeToNodeResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeToNodeResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgSubscribeToNodeResponse) ProtoMessage()
func (*MsgSubscribeToNodeResponse) Reset ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) Reset()
func (*MsgSubscribeToNodeResponse) Size ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) Size() (n int)
func (*MsgSubscribeToNodeResponse) String ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) String() string
func (*MsgSubscribeToNodeResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) Unmarshal(dAtA []byte) error
func (*MsgSubscribeToNodeResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) XXX_DiscardUnknown()
func (*MsgSubscribeToNodeResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeToNodeResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) XXX_Merge(src proto.Message)
func (*MsgSubscribeToNodeResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) XXX_Size() int
func (*MsgSubscribeToNodeResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToNodeResponse) XXX_Unmarshal(b []byte) error
type MsgSubscribeToPlanRequest ¶ added in v0.6.0
type MsgSubscribeToPlanRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"` }
func NewMsgSubscribeToPlanRequest ¶ added in v0.6.0
func NewMsgSubscribeToPlanRequest(from sdk.AccAddress, id uint64, denom string) *MsgSubscribeToPlanRequest
func (*MsgSubscribeToPlanRequest) Descriptor ¶ added in v0.6.0
func (*MsgSubscribeToPlanRequest) Descriptor() ([]byte, []int)
func (*MsgSubscribeToPlanRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) GetSignBytes() []byte
func (*MsgSubscribeToPlanRequest) GetSigners ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) GetSigners() []sdk.AccAddress
func (*MsgSubscribeToPlanRequest) Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeToPlanRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeToPlanRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeToPlanRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgSubscribeToPlanRequest) ProtoMessage()
func (*MsgSubscribeToPlanRequest) Reset ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Reset()
func (*MsgSubscribeToPlanRequest) Route ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Route() string
func (*MsgSubscribeToPlanRequest) Size ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Size() (n int)
func (*MsgSubscribeToPlanRequest) String ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) String() string
func (*MsgSubscribeToPlanRequest) Type ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Type() string
func (*MsgSubscribeToPlanRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) Unmarshal(dAtA []byte) error
func (*MsgSubscribeToPlanRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) ValidateBasic() error
func (*MsgSubscribeToPlanRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) XXX_DiscardUnknown()
func (*MsgSubscribeToPlanRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeToPlanRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) XXX_Merge(src proto.Message)
func (*MsgSubscribeToPlanRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) XXX_Size() int
func (*MsgSubscribeToPlanRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanRequest) XXX_Unmarshal(b []byte) error
type MsgSubscribeToPlanResponse ¶ added in v0.6.0
type MsgSubscribeToPlanResponse struct { }
func (*MsgSubscribeToPlanResponse) Descriptor ¶ added in v0.6.0
func (*MsgSubscribeToPlanResponse) Descriptor() ([]byte, []int)
func (*MsgSubscribeToPlanResponse) Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubscribeToPlanResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubscribeToPlanResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubscribeToPlanResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgSubscribeToPlanResponse) ProtoMessage()
func (*MsgSubscribeToPlanResponse) Reset ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) Reset()
func (*MsgSubscribeToPlanResponse) Size ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) Size() (n int)
func (*MsgSubscribeToPlanResponse) String ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) String() string
func (*MsgSubscribeToPlanResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) Unmarshal(dAtA []byte) error
func (*MsgSubscribeToPlanResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) XXX_DiscardUnknown()
func (*MsgSubscribeToPlanResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubscribeToPlanResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) XXX_Merge(src proto.Message)
func (*MsgSubscribeToPlanResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) XXX_Size() int
func (*MsgSubscribeToPlanResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgSubscribeToPlanResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateQuotaRequest ¶ added in v0.6.0
type MsgUpdateQuotaRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Bytes github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,opt,name=bytes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bytes"` }
func NewMsgUpdateQuotaRequest ¶ added in v0.6.0
func NewMsgUpdateQuotaRequest(from sdk.AccAddress, id uint64, address sdk.AccAddress, bytes sdk.Int) *MsgUpdateQuotaRequest
func (*MsgUpdateQuotaRequest) Descriptor ¶ added in v0.6.0
func (*MsgUpdateQuotaRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateQuotaRequest) GetSignBytes ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) GetSignBytes() []byte
func (*MsgUpdateQuotaRequest) GetSigners ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) GetSigners() []sdk.AccAddress
func (*MsgUpdateQuotaRequest) Marshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateQuotaRequest) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateQuotaRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateQuotaRequest) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateQuotaRequest) ProtoMessage()
func (*MsgUpdateQuotaRequest) Reset ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Reset()
func (*MsgUpdateQuotaRequest) Route ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Route() string
func (*MsgUpdateQuotaRequest) Size ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Size() (n int)
func (*MsgUpdateQuotaRequest) String ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) String() string
func (*MsgUpdateQuotaRequest) Type ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Type() string
func (*MsgUpdateQuotaRequest) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateQuotaRequest) ValidateBasic ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) ValidateBasic() error
func (*MsgUpdateQuotaRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) XXX_DiscardUnknown()
func (*MsgUpdateQuotaRequest) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateQuotaRequest) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateQuotaRequest) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) XXX_Size() int
func (*MsgUpdateQuotaRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateQuotaResponse ¶ added in v0.6.0
type MsgUpdateQuotaResponse struct { }
func (*MsgUpdateQuotaResponse) Descriptor ¶ added in v0.6.0
func (*MsgUpdateQuotaResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateQuotaResponse) Marshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateQuotaResponse) MarshalTo ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateQuotaResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateQuotaResponse) ProtoMessage ¶ added in v0.6.0
func (*MsgUpdateQuotaResponse) ProtoMessage()
func (*MsgUpdateQuotaResponse) Reset ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) Reset()
func (*MsgUpdateQuotaResponse) Size ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) Size() (n int)
func (*MsgUpdateQuotaResponse) String ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) String() string
func (*MsgUpdateQuotaResponse) Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateQuotaResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) XXX_DiscardUnknown()
func (*MsgUpdateQuotaResponse) XXX_Marshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateQuotaResponse) XXX_Merge ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateQuotaResponse) XXX_Size ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) XXX_Size() int
func (*MsgUpdateQuotaResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *MsgUpdateQuotaResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
InactiveDuration time.Duration `protobuf:"bytes,1,opt,name=inactive_duration,json=inactiveDuration,proto3,stdduration" json:"inactive_duration"`
}
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶ added in v0.6.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() params.ParamSetPairs
func (*Params) ProtoMessage ¶ added in v0.6.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.6.0
func (*Params) XXX_Unmarshal ¶ added in v0.6.0
type QueryQuotaRequest ¶ added in v0.6.0
type QueryQuotaRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
func NewQueryQuotaRequest ¶ added in v0.6.0
func NewQueryQuotaRequest(id uint64, address sdk.AccAddress) *QueryQuotaRequest
func (*QueryQuotaRequest) Descriptor ¶ added in v0.6.0
func (*QueryQuotaRequest) Descriptor() ([]byte, []int)
func (*QueryQuotaRequest) Marshal ¶ added in v0.6.0
func (m *QueryQuotaRequest) Marshal() (dAtA []byte, err error)
func (*QueryQuotaRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryQuotaRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryQuotaRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryQuotaRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryQuotaRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryQuotaRequest) ProtoMessage()
func (*QueryQuotaRequest) Reset ¶ added in v0.6.0
func (m *QueryQuotaRequest) Reset()
func (*QueryQuotaRequest) Size ¶ added in v0.6.0
func (m *QueryQuotaRequest) Size() (n int)
func (*QueryQuotaRequest) String ¶ added in v0.6.0
func (m *QueryQuotaRequest) String() string
func (*QueryQuotaRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryQuotaRequest) Unmarshal(dAtA []byte) error
func (*QueryQuotaRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryQuotaRequest) XXX_DiscardUnknown()
func (*QueryQuotaRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryQuotaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryQuotaRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryQuotaRequest) XXX_Merge(src proto.Message)
func (*QueryQuotaRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryQuotaRequest) XXX_Size() int
func (*QueryQuotaRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryQuotaRequest) XXX_Unmarshal(b []byte) error
type QueryQuotaResponse ¶ added in v0.6.0
type QueryQuotaResponse struct {
Quota Quota `protobuf:"bytes,1,opt,name=quota,proto3" json:"quota"`
}
func (*QueryQuotaResponse) Descriptor ¶ added in v0.6.0
func (*QueryQuotaResponse) Descriptor() ([]byte, []int)
func (*QueryQuotaResponse) Marshal ¶ added in v0.6.0
func (m *QueryQuotaResponse) Marshal() (dAtA []byte, err error)
func (*QueryQuotaResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryQuotaResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryQuotaResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryQuotaResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryQuotaResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryQuotaResponse) ProtoMessage()
func (*QueryQuotaResponse) Reset ¶ added in v0.6.0
func (m *QueryQuotaResponse) Reset()
func (*QueryQuotaResponse) Size ¶ added in v0.6.0
func (m *QueryQuotaResponse) Size() (n int)
func (*QueryQuotaResponse) String ¶ added in v0.6.0
func (m *QueryQuotaResponse) String() string
func (*QueryQuotaResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryQuotaResponse) Unmarshal(dAtA []byte) error
func (*QueryQuotaResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryQuotaResponse) XXX_DiscardUnknown()
func (*QueryQuotaResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryQuotaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryQuotaResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryQuotaResponse) XXX_Merge(src proto.Message)
func (*QueryQuotaResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryQuotaResponse) XXX_Size() int
func (*QueryQuotaResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryQuotaResponse) XXX_Unmarshal(b []byte) error
type QueryQuotasRequest ¶ added in v0.6.0
type QueryQuotasRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQueryQuotasRequest ¶ added in v0.6.0
func NewQueryQuotasRequest(id uint64, pagination *query.PageRequest) *QueryQuotasRequest
func (*QueryQuotasRequest) Descriptor ¶ added in v0.6.0
func (*QueryQuotasRequest) Descriptor() ([]byte, []int)
func (*QueryQuotasRequest) Marshal ¶ added in v0.6.0
func (m *QueryQuotasRequest) Marshal() (dAtA []byte, err error)
func (*QueryQuotasRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryQuotasRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryQuotasRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryQuotasRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryQuotasRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryQuotasRequest) ProtoMessage()
func (*QueryQuotasRequest) Reset ¶ added in v0.6.0
func (m *QueryQuotasRequest) Reset()
func (*QueryQuotasRequest) Size ¶ added in v0.6.0
func (m *QueryQuotasRequest) Size() (n int)
func (*QueryQuotasRequest) String ¶ added in v0.6.0
func (m *QueryQuotasRequest) String() string
func (*QueryQuotasRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryQuotasRequest) Unmarshal(dAtA []byte) error
func (*QueryQuotasRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryQuotasRequest) XXX_DiscardUnknown()
func (*QueryQuotasRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryQuotasRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryQuotasRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryQuotasRequest) XXX_Merge(src proto.Message)
func (*QueryQuotasRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryQuotasRequest) XXX_Size() int
func (*QueryQuotasRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryQuotasRequest) XXX_Unmarshal(b []byte) error
type QueryQuotasResponse ¶ added in v0.6.0
type QueryQuotasResponse struct { Quotas []Quota `protobuf:"bytes,1,rep,name=quotas,proto3" json:"quotas"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryQuotasResponse) Descriptor ¶ added in v0.6.0
func (*QueryQuotasResponse) Descriptor() ([]byte, []int)
func (*QueryQuotasResponse) Marshal ¶ added in v0.6.0
func (m *QueryQuotasResponse) Marshal() (dAtA []byte, err error)
func (*QueryQuotasResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryQuotasResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryQuotasResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryQuotasResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryQuotasResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryQuotasResponse) ProtoMessage()
func (*QueryQuotasResponse) Reset ¶ added in v0.6.0
func (m *QueryQuotasResponse) Reset()
func (*QueryQuotasResponse) Size ¶ added in v0.6.0
func (m *QueryQuotasResponse) Size() (n int)
func (*QueryQuotasResponse) String ¶ added in v0.6.0
func (m *QueryQuotasResponse) String() string
func (*QueryQuotasResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryQuotasResponse) Unmarshal(dAtA []byte) error
func (*QueryQuotasResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryQuotasResponse) XXX_DiscardUnknown()
func (*QueryQuotasResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryQuotasResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryQuotasResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryQuotasResponse) XXX_Merge(src proto.Message)
func (*QueryQuotasResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryQuotasResponse) XXX_Size() int
func (*QueryQuotasResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryQuotasResponse) XXX_Unmarshal(b []byte) error
type QueryServiceClient ¶ added in v0.6.0
type QueryServiceClient interface { QuerySubscriptions(ctx context.Context, in *QuerySubscriptionsRequest, opts ...grpc.CallOption) (*QuerySubscriptionsResponse, error) QuerySubscriptionsForNode(ctx context.Context, in *QuerySubscriptionsForNodeRequest, opts ...grpc.CallOption) (*QuerySubscriptionsForNodeResponse, error) QuerySubscriptionsForPlan(ctx context.Context, in *QuerySubscriptionsForPlanRequest, opts ...grpc.CallOption) (*QuerySubscriptionsForPlanResponse, error) QuerySubscriptionsForAddress(ctx context.Context, in *QuerySubscriptionsForAddressRequest, opts ...grpc.CallOption) (*QuerySubscriptionsForAddressResponse, error) QuerySubscription(ctx context.Context, in *QuerySubscriptionRequest, opts ...grpc.CallOption) (*QuerySubscriptionResponse, error) QueryQuota(ctx context.Context, in *QueryQuotaRequest, opts ...grpc.CallOption) (*QueryQuotaResponse, error) QueryQuotas(ctx context.Context, in *QueryQuotasRequest, opts ...grpc.CallOption) (*QueryQuotasResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶ added in v0.6.0
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶ added in v0.6.0
type QueryServiceServer interface { QuerySubscriptions(context.Context, *QuerySubscriptionsRequest) (*QuerySubscriptionsResponse, error) QuerySubscriptionsForNode(context.Context, *QuerySubscriptionsForNodeRequest) (*QuerySubscriptionsForNodeResponse, error) QuerySubscriptionsForPlan(context.Context, *QuerySubscriptionsForPlanRequest) (*QuerySubscriptionsForPlanResponse, error) QuerySubscriptionsForAddress(context.Context, *QuerySubscriptionsForAddressRequest) (*QuerySubscriptionsForAddressResponse, error) QuerySubscription(context.Context, *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error) QueryQuota(context.Context, *QueryQuotaRequest) (*QueryQuotaResponse, error) QueryQuotas(context.Context, *QueryQuotasRequest) (*QueryQuotasResponse, error) }
QueryServiceServer is the server API for QueryService service.
type QuerySubscriptionRequest ¶ added in v0.6.0
type QuerySubscriptionRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func NewQuerySubscriptionRequest ¶ added in v0.6.0
func NewQuerySubscriptionRequest(id uint64) *QuerySubscriptionRequest
func (*QuerySubscriptionRequest) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionRequest) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionRequest) ProtoMessage()
func (*QuerySubscriptionRequest) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) Reset()
func (*QuerySubscriptionRequest) Size ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) Size() (n int)
func (*QuerySubscriptionRequest) String ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) String() string
func (*QuerySubscriptionRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) XXX_Size() int
func (*QuerySubscriptionRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionResponse ¶ added in v0.6.0
type QuerySubscriptionResponse struct {
Subscription Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription"`
}
func (*QuerySubscriptionResponse) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionResponse) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionResponse) ProtoMessage()
func (*QuerySubscriptionResponse) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) Reset()
func (*QuerySubscriptionResponse) Size ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) Size() (n int)
func (*QuerySubscriptionResponse) String ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) String() string
func (*QuerySubscriptionResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) XXX_Size() int
func (*QuerySubscriptionResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionResponse) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForAddressRequest ¶ added in v0.6.0
type QuerySubscriptionsForAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Status types.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySubscriptionsForAddressRequest ¶ added in v0.6.0
func NewQuerySubscriptionsForAddressRequest(address sdk.AccAddress, status hubtypes.Status, pagination *query.PageRequest) *QuerySubscriptionsForAddressRequest
func (*QuerySubscriptionsForAddressRequest) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForAddressRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForAddressRequest) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForAddressRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForAddressRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForAddressRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForAddressRequest) ProtoMessage()
func (*QuerySubscriptionsForAddressRequest) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) Reset()
func (*QuerySubscriptionsForAddressRequest) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) Size() (n int)
func (*QuerySubscriptionsForAddressRequest) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) String() string
func (*QuerySubscriptionsForAddressRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForAddressRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionsForAddressRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForAddressRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForAddressRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) XXX_Size() int
func (*QuerySubscriptionsForAddressRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForAddressResponse ¶ added in v0.6.0
type QuerySubscriptionsForAddressResponse struct { Subscriptions []Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySubscriptionsForAddressResponse) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForAddressResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForAddressResponse) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForAddressResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForAddressResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForAddressResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForAddressResponse) ProtoMessage()
func (*QuerySubscriptionsForAddressResponse) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) Reset()
func (*QuerySubscriptionsForAddressResponse) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) Size() (n int)
func (*QuerySubscriptionsForAddressResponse) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) String() string
func (*QuerySubscriptionsForAddressResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForAddressResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionsForAddressResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForAddressResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForAddressResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) XXX_Size() int
func (*QuerySubscriptionsForAddressResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForAddressResponse) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForNodeRequest ¶ added in v0.6.0
type QuerySubscriptionsForNodeRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySubscriptionsForNodeRequest ¶ added in v0.6.0
func NewQuerySubscriptionsForNodeRequest(address hubtypes.NodeAddress, pagination *query.PageRequest) *QuerySubscriptionsForNodeRequest
func (*QuerySubscriptionsForNodeRequest) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForNodeRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForNodeRequest) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForNodeRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForNodeRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForNodeRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForNodeRequest) ProtoMessage()
func (*QuerySubscriptionsForNodeRequest) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) Reset()
func (*QuerySubscriptionsForNodeRequest) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) Size() (n int)
func (*QuerySubscriptionsForNodeRequest) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) String() string
func (*QuerySubscriptionsForNodeRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForNodeRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionsForNodeRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForNodeRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForNodeRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) XXX_Size() int
func (*QuerySubscriptionsForNodeRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForNodeResponse ¶ added in v0.6.0
type QuerySubscriptionsForNodeResponse struct { Subscriptions []Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySubscriptionsForNodeResponse) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForNodeResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForNodeResponse) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForNodeResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForNodeResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForNodeResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForNodeResponse) ProtoMessage()
func (*QuerySubscriptionsForNodeResponse) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) Reset()
func (*QuerySubscriptionsForNodeResponse) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) Size() (n int)
func (*QuerySubscriptionsForNodeResponse) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) String() string
func (*QuerySubscriptionsForNodeResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForNodeResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionsForNodeResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForNodeResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForNodeResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) XXX_Size() int
func (*QuerySubscriptionsForNodeResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForNodeResponse) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForPlanRequest ¶ added in v0.6.0
type QuerySubscriptionsForPlanRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewQuerySubscriptionsForPlanRequest ¶ added in v0.6.0
func NewQuerySubscriptionsForPlanRequest(id uint64, pagination *query.PageRequest) *QuerySubscriptionsForPlanRequest
func (*QuerySubscriptionsForPlanRequest) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForPlanRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForPlanRequest) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForPlanRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForPlanRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForPlanRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForPlanRequest) ProtoMessage()
func (*QuerySubscriptionsForPlanRequest) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) Reset()
func (*QuerySubscriptionsForPlanRequest) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) Size() (n int)
func (*QuerySubscriptionsForPlanRequest) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) String() string
func (*QuerySubscriptionsForPlanRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForPlanRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionsForPlanRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForPlanRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForPlanRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) XXX_Size() int
func (*QuerySubscriptionsForPlanRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsForPlanResponse ¶ added in v0.6.0
type QuerySubscriptionsForPlanResponse struct { Subscriptions []Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySubscriptionsForPlanResponse) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsForPlanResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsForPlanResponse) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsForPlanResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsForPlanResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsForPlanResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsForPlanResponse) ProtoMessage()
func (*QuerySubscriptionsForPlanResponse) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) Reset()
func (*QuerySubscriptionsForPlanResponse) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) Size() (n int)
func (*QuerySubscriptionsForPlanResponse) String ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) String() string
func (*QuerySubscriptionsForPlanResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsForPlanResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionsForPlanResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsForPlanResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsForPlanResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) XXX_Size() int
func (*QuerySubscriptionsForPlanResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsForPlanResponse) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsRequest ¶ added in v0.6.0
type QuerySubscriptionsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func NewQuerySubscriptionsRequest ¶ added in v0.6.0
func NewQuerySubscriptionsRequest(pagination *query.PageRequest) *QuerySubscriptionsRequest
func (*QuerySubscriptionsRequest) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsRequest) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsRequest) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsRequest) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsRequest) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsRequest) ProtoMessage()
func (*QuerySubscriptionsRequest) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) Reset()
func (*QuerySubscriptionsRequest) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) Size() (n int)
func (*QuerySubscriptionsRequest) String ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) String() string
func (*QuerySubscriptionsRequest) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) XXX_DiscardUnknown()
func (*QuerySubscriptionsRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsRequest) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsRequest) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) XXX_Size() int
func (*QuerySubscriptionsRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsRequest) XXX_Unmarshal(b []byte) error
type QuerySubscriptionsResponse ¶ added in v0.6.0
type QuerySubscriptionsResponse struct { Subscriptions []Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySubscriptionsResponse) Descriptor ¶ added in v0.6.0
func (*QuerySubscriptionsResponse) Descriptor() ([]byte, []int)
func (*QuerySubscriptionsResponse) Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubscriptionsResponse) MarshalTo ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubscriptionsResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubscriptionsResponse) ProtoMessage ¶ added in v0.6.0
func (*QuerySubscriptionsResponse) ProtoMessage()
func (*QuerySubscriptionsResponse) Reset ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) Reset()
func (*QuerySubscriptionsResponse) Size ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) Size() (n int)
func (*QuerySubscriptionsResponse) String ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) String() string
func (*QuerySubscriptionsResponse) Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) Unmarshal(dAtA []byte) error
func (*QuerySubscriptionsResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) XXX_DiscardUnknown()
func (*QuerySubscriptionsResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubscriptionsResponse) XXX_Merge ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) XXX_Merge(src proto.Message)
func (*QuerySubscriptionsResponse) XXX_Size ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) XXX_Size() int
func (*QuerySubscriptionsResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QuerySubscriptionsResponse) XXX_Unmarshal(b []byte) error
type Quota ¶
type Quota struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Allocated github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=allocated,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"allocated"` Consumed github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=consumed,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"consumed"` }
func (*Quota) Descriptor ¶ added in v0.6.0
func (*Quota) GetAddress ¶ added in v0.6.0
func (q *Quota) GetAddress() sdk.AccAddress
func (*Quota) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Quota) ProtoMessage ¶ added in v0.6.0
func (*Quota) ProtoMessage()
func (*Quota) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Quota) XXX_DiscardUnknown()
func (*Quota) XXX_Marshal ¶ added in v0.6.0
func (*Quota) XXX_Unmarshal ¶ added in v0.6.0
type Subscription ¶
type Subscription struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` Price types.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price"` Deposit types.Coin `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit"` Plan uint64 `protobuf:"varint,6,opt,name=plan,proto3" json:"plan,omitempty"` Expiry time.Time `protobuf:"bytes,7,opt,name=expiry,proto3,stdtime" json:"expiry"` Free github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,8,opt,name=free,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"free"` Status types1.Status `protobuf:"varint,9,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"` StatusAt time.Time `protobuf:"bytes,10,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"` }
func (*Subscription) Descriptor ¶ added in v0.6.0
func (*Subscription) Descriptor() ([]byte, []int)
func (*Subscription) GetNode ¶ added in v0.6.0
func (s *Subscription) GetNode() hubtypes.NodeAddress
func (*Subscription) Marshal ¶ added in v0.6.0
func (m *Subscription) Marshal() (dAtA []byte, err error)
func (*Subscription) MarshalTo ¶ added in v0.6.0
func (m *Subscription) MarshalTo(dAtA []byte) (int, error)
func (*Subscription) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *Subscription) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Subscription) ProtoMessage ¶ added in v0.6.0
func (*Subscription) ProtoMessage()
func (*Subscription) Reset ¶ added in v0.6.0
func (m *Subscription) Reset()
func (*Subscription) Size ¶ added in v0.6.0
func (m *Subscription) Size() (n int)
func (*Subscription) String ¶
func (s *Subscription) String() string
func (*Subscription) Unmarshal ¶ added in v0.6.0
func (m *Subscription) Unmarshal(dAtA []byte) error
func (*Subscription) Validate ¶
func (s *Subscription) Validate() error
func (*Subscription) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Subscription) XXX_DiscardUnknown()
func (*Subscription) XXX_Marshal ¶ added in v0.6.0
func (m *Subscription) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Subscription) XXX_Merge ¶ added in v0.6.0
func (m *Subscription) XXX_Merge(src proto.Message)
func (*Subscription) XXX_Size ¶ added in v0.6.0
func (m *Subscription) XXX_Size() int
func (*Subscription) XXX_Unmarshal ¶ added in v0.6.0
func (m *Subscription) XXX_Unmarshal(b []byte) error
type Subscriptions ¶
type Subscriptions []Subscription
type UnimplementedMsgServiceServer ¶ added in v0.6.0
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgAddQuota ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgAddQuota(ctx context.Context, req *MsgAddQuotaRequest) (*MsgAddQuotaResponse, error)
func (*UnimplementedMsgServiceServer) MsgCancel ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgCancel(ctx context.Context, req *MsgCancelRequest) (*MsgCancelResponse, error)
func (*UnimplementedMsgServiceServer) MsgSubscribeToNode ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgSubscribeToNode(ctx context.Context, req *MsgSubscribeToNodeRequest) (*MsgSubscribeToNodeResponse, error)
func (*UnimplementedMsgServiceServer) MsgSubscribeToPlan ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgSubscribeToPlan(ctx context.Context, req *MsgSubscribeToPlanRequest) (*MsgSubscribeToPlanResponse, error)
func (*UnimplementedMsgServiceServer) MsgUpdateQuota ¶ added in v0.6.0
func (*UnimplementedMsgServiceServer) MsgUpdateQuota(ctx context.Context, req *MsgUpdateQuotaRequest) (*MsgUpdateQuotaResponse, error)
type UnimplementedQueryServiceServer ¶ added in v0.6.0
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryQuota ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryQuota(ctx context.Context, req *QueryQuotaRequest) (*QueryQuotaResponse, error)
func (*UnimplementedQueryServiceServer) QueryQuotas ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QueryQuotas(ctx context.Context, req *QueryQuotasRequest) (*QueryQuotasResponse, error)
func (*UnimplementedQueryServiceServer) QuerySubscription ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySubscription(ctx context.Context, req *QuerySubscriptionRequest) (*QuerySubscriptionResponse, error)
func (*UnimplementedQueryServiceServer) QuerySubscriptions ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySubscriptions(ctx context.Context, req *QuerySubscriptionsRequest) (*QuerySubscriptionsResponse, error)
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForAddress ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForAddress(ctx context.Context, req *QuerySubscriptionsForAddressRequest) (*QuerySubscriptionsForAddressResponse, error)
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForNode ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForNode(ctx context.Context, req *QuerySubscriptionsForNodeRequest) (*QuerySubscriptionsForNodeResponse, error)
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForPlan ¶ added in v0.6.0
func (*UnimplementedQueryServiceServer) QuerySubscriptionsForPlan(ctx context.Context, req *QuerySubscriptionsForPlanRequest) (*QuerySubscriptionsForPlanResponse, error)