types

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 33 Imported by: 14

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName   = "subscription"
	QuerierRoute = ModuleName
)
View Source
const (
	DefaultInactiveDuration = 10 * time.Minute
)

Variables

View Source
var (
	ErrorInvalidField   = errors.Register(ModuleName, 101, "invalid field")
	ErrorInvalidFrom    = errors.Register(ModuleName, 102, "invalid from")
	ErrorInvalidAddress = errors.Register(ModuleName, 103, "invalid address")
	ErrorInvalidDeposit = errors.Register(ModuleName, 104, "invalid deposit")
	ErrorInvalidId      = errors.Register(ModuleName, 105, "invalid id")
	ErrorInvalidDenom   = errors.Register(ModuleName, 106, "invalid denom")
	ErrorInvalidBytes   = errors.Register(ModuleName, 107, "invalid bytes")
)
View Source
var (
	ErrorPlanDoesNotExist          = errors.Register(ModuleName, 201, "plan does not exist")
	ErrorNodeDoesNotExist          = errors.Register(ModuleName, 202, "node does not exist")
	ErrorUnauthorized              = errors.Register(ModuleName, 203, "unauthorized")
	ErrorInvalidPlanStatus         = errors.Register(ModuleName, 204, "invalid plan status")
	ErrorPriceDoesNotExist         = errors.Register(ModuleName, 205, "price does not exist")
	ErrorInvalidNodeStatus         = errors.Register(ModuleName, 206, "invalid node status")
	ErrorSubscriptionDoesNotExist  = errors.Register(ModuleName, 207, "subscription does not exist")
	ErrorInvalidSubscriptionStatus = errors.Register(ModuleName, 208, "invalid subscription status")
	ErrorCanNotSubscribe           = errors.Register(ModuleName, 209, "can not subscribe")
	ErrorInvalidQuota              = errors.Register(ModuleName, 210, "invalid quota")
	ErrorDuplicateQuota            = errors.Register(ModuleName, 211, "duplicate quota")
	ErrorQuotaDoesNotExist         = errors.Register(ModuleName, 212, "quota does not exist")
	ErrorCanNotAddQuota            = errors.Register(ModuleName, 213, "can not add quota")
	ErrorCanNotUpdateQuota         = errors.Register(ModuleName, 214, "can not update quota")
	ErrorCanNotCancel              = errors.Register(ModuleName, 215, "can not cancel")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsSubspace = ModuleName
	RouterKey      = ModuleName
	StoreKey       = ModuleName
)
View Source
var (
	TypeMsgSubscribeToNodeRequest = ModuleName + ":subscribe_to_node"
	TypeMsgSubscribeToPlanRequest = ModuleName + ":subscribe_to_plan"
	TypeMsgCancelRequest          = ModuleName + ":cancel"
	TypeMsgAddQuotaRequest        = ModuleName + ":add_quota"
	TypeMsgUpdateQuotaRequest     = ModuleName + ":update_quota"
)
View Source
var (
	CountKey                                = []byte{0x00}
	SubscriptionKeyPrefix                   = []byte{0x10}
	ActiveSubscriptionForAddressKeyPrefix   = []byte{0x20}
	InactiveSubscriptionForAddressKeyPrefix = []byte{0x21}
	InactiveSubscriptionAtKeyPrefix         = []byte{0x30}
	QuotaKeyPrefix                          = []byte{0x40}
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuota        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuota          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuota = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubscription        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubscription          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubscription = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyInactiveDuration = []byte("InactiveDuration")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ActiveSubscriptionForAddressKey added in v0.4.0

func ActiveSubscriptionForAddressKey(addr sdk.AccAddress, id uint64) []byte

func GetActiveSubscriptionForAddressKeyPrefix added in v0.4.0

func GetActiveSubscriptionForAddressKeyPrefix(addr sdk.AccAddress) []byte

func GetInactiveSubscriptionAtKeyPrefix added in v0.4.0

func GetInactiveSubscriptionAtKeyPrefix(at time.Time) []byte

func GetInactiveSubscriptionForAddressKeyPrefix added in v0.4.0

func GetInactiveSubscriptionForAddressKeyPrefix(addr sdk.AccAddress) []byte

func GetQuotaKeyPrefix

func GetQuotaKeyPrefix(id uint64) []byte

func IDFromInactiveSubscriptionAtKey added in v0.4.0

func IDFromInactiveSubscriptionAtKey(key []byte) uint64

func IDFromStatusSubscriptionForAddressKey added in v0.4.0

func IDFromStatusSubscriptionForAddressKey(key []byte) uint64

func IDFromSubscriptionForNodeKey added in v0.4.0

func IDFromSubscriptionForNodeKey(key []byte) uint64

func IDFromSubscriptionForPlanKey added in v0.4.0

func IDFromSubscriptionForPlanKey(key []byte) uint64

func InactiveSubscriptionAtKey added in v0.4.0

func InactiveSubscriptionAtKey(at time.Time, id uint64) []byte

func InactiveSubscriptionForAddressKey added in v0.4.0

func InactiveSubscriptionForAddressKey(addr sdk.AccAddress, id uint64) []byte

func ParamsKeyTable

func ParamsKeyTable() params.KeyTable

func QuotaKey

func QuotaKey(id uint64, addr sdk.AccAddress) []byte

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 to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead.

func RegisterQueryServiceServer added in v0.6.0

func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)

func SubscriptionKey

func SubscriptionKey(id uint64) []byte

func ValidateGenesis added in v0.6.0

func ValidateGenesis(state *GenesisState) error

Types

type EventAddQuota added in v0.6.0

type EventAddQuota struct {
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

func (*EventAddQuota) Descriptor added in v0.6.0

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

func (*EventAddQuota) Marshal added in v0.6.0

func (m *EventAddQuota) Marshal() (dAtA []byte, err error)

func (*EventAddQuota) MarshalTo added in v0.6.0

func (m *EventAddQuota) MarshalTo(dAtA []byte) (int, error)

func (*EventAddQuota) MarshalToSizedBuffer added in v0.6.0

func (m *EventAddQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventAddQuota) ProtoMessage added in v0.6.0

func (*EventAddQuota) ProtoMessage()

func (*EventAddQuota) Reset added in v0.6.0

func (m *EventAddQuota) Reset()

func (*EventAddQuota) Size added in v0.6.0

func (m *EventAddQuota) Size() (n int)

func (*EventAddQuota) String added in v0.6.0

func (m *EventAddQuota) String() string

func (*EventAddQuota) Unmarshal added in v0.6.0

func (m *EventAddQuota) Unmarshal(dAtA []byte) error

func (*EventAddQuota) XXX_DiscardUnknown added in v0.6.0

func (m *EventAddQuota) XXX_DiscardUnknown()

func (*EventAddQuota) XXX_Marshal added in v0.6.0

func (m *EventAddQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventAddQuota) XXX_Merge added in v0.6.0

func (m *EventAddQuota) XXX_Merge(src proto.Message)

func (*EventAddQuota) XXX_Size added in v0.6.0

func (m *EventAddQuota) XXX_Size() int

func (*EventAddQuota) XXX_Unmarshal added in v0.6.0

func (m *EventAddQuota) XXX_Unmarshal(b []byte) error

type EventSetStatus added in v0.8.0

type EventSetStatus struct {
	Id     uint64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Status types.Status `protobuf:"varint,2,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty" yaml:"status"`
}

func (*EventSetStatus) Descriptor added in v0.8.0

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

func (*EventSetStatus) Marshal added in v0.8.0

func (m *EventSetStatus) Marshal() (dAtA []byte, err error)

func (*EventSetStatus) MarshalTo added in v0.8.0

func (m *EventSetStatus) MarshalTo(dAtA []byte) (int, error)

func (*EventSetStatus) MarshalToSizedBuffer added in v0.8.0

func (m *EventSetStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSetStatus) ProtoMessage added in v0.8.0

func (*EventSetStatus) ProtoMessage()

func (*EventSetStatus) Reset added in v0.8.0

func (m *EventSetStatus) Reset()

func (*EventSetStatus) Size added in v0.8.0

func (m *EventSetStatus) Size() (n int)

func (*EventSetStatus) String added in v0.8.0

func (m *EventSetStatus) String() string

func (*EventSetStatus) Unmarshal added in v0.8.0

func (m *EventSetStatus) Unmarshal(dAtA []byte) error

func (*EventSetStatus) XXX_DiscardUnknown added in v0.8.0

func (m *EventSetStatus) XXX_DiscardUnknown()

func (*EventSetStatus) XXX_Marshal added in v0.8.0

func (m *EventSetStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSetStatus) XXX_Merge added in v0.8.0

func (m *EventSetStatus) XXX_Merge(src proto.Message)

func (*EventSetStatus) XXX_Size added in v0.8.0

func (m *EventSetStatus) XXX_Size() int

func (*EventSetStatus) XXX_Unmarshal added in v0.8.0

func (m *EventSetStatus) XXX_Unmarshal(b []byte) error

type EventSubscribe added in v0.8.0

type EventSubscribe struct {
	Id   uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty" yaml:"node"`
	Plan uint64 `protobuf:"varint,3,opt,name=plan,proto3" json:"plan,omitempty" yaml:"plan"`
}

func (*EventSubscribe) Descriptor added in v0.8.0

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

func (*EventSubscribe) Marshal added in v0.8.0

func (m *EventSubscribe) Marshal() (dAtA []byte, err error)

func (*EventSubscribe) MarshalTo added in v0.8.0

func (m *EventSubscribe) MarshalTo(dAtA []byte) (int, error)

func (*EventSubscribe) MarshalToSizedBuffer added in v0.8.0

func (m *EventSubscribe) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSubscribe) ProtoMessage added in v0.8.0

func (*EventSubscribe) ProtoMessage()

func (*EventSubscribe) Reset added in v0.8.0

func (m *EventSubscribe) Reset()

func (*EventSubscribe) Size added in v0.8.0

func (m *EventSubscribe) Size() (n int)

func (*EventSubscribe) String added in v0.8.0

func (m *EventSubscribe) String() string

func (*EventSubscribe) Unmarshal added in v0.8.0

func (m *EventSubscribe) Unmarshal(dAtA []byte) error

func (*EventSubscribe) XXX_DiscardUnknown added in v0.8.0

func (m *EventSubscribe) XXX_DiscardUnknown()

func (*EventSubscribe) XXX_Marshal added in v0.8.0

func (m *EventSubscribe) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSubscribe) XXX_Merge added in v0.8.0

func (m *EventSubscribe) XXX_Merge(src proto.Message)

func (*EventSubscribe) XXX_Size added in v0.8.0

func (m *EventSubscribe) XXX_Size() int

func (*EventSubscribe) XXX_Unmarshal added in v0.8.0

func (m *EventSubscribe) XXX_Unmarshal(b []byte) error

type EventUpdateQuota added in v0.6.0

type EventUpdateQuota struct {
	Id      uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
}

func (*EventUpdateQuota) Descriptor added in v0.6.0

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

func (*EventUpdateQuota) Marshal added in v0.6.0

func (m *EventUpdateQuota) Marshal() (dAtA []byte, err error)

func (*EventUpdateQuota) MarshalTo added in v0.6.0

func (m *EventUpdateQuota) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateQuota) MarshalToSizedBuffer added in v0.6.0

func (m *EventUpdateQuota) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateQuota) ProtoMessage added in v0.6.0

func (*EventUpdateQuota) ProtoMessage()

func (*EventUpdateQuota) Reset added in v0.6.0

func (m *EventUpdateQuota) Reset()

func (*EventUpdateQuota) Size added in v0.6.0

func (m *EventUpdateQuota) Size() (n int)

func (*EventUpdateQuota) String added in v0.6.0

func (m *EventUpdateQuota) String() string

func (*EventUpdateQuota) Unmarshal added in v0.6.0

func (m *EventUpdateQuota) Unmarshal(dAtA []byte) error

func (*EventUpdateQuota) XXX_DiscardUnknown added in v0.6.0

func (m *EventUpdateQuota) XXX_DiscardUnknown()

func (*EventUpdateQuota) XXX_Marshal added in v0.6.0

func (m *EventUpdateQuota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUpdateQuota) XXX_Merge added in v0.6.0

func (m *EventUpdateQuota) XXX_Merge(src proto.Message)

func (*EventUpdateQuota) XXX_Size added in v0.6.0

func (m *EventUpdateQuota) XXX_Size() int

func (*EventUpdateQuota) XXX_Unmarshal added in v0.6.0

func (m *EventUpdateQuota) XXX_Unmarshal(b []byte) error

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,4,opt,name=bytes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bytes"`
}

MsgAddQuotaRequest defines the SDK message for adding the quota to an address

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 {
}

MsgAddQuotaResponse defines the response of message MsgAddQuotaRequest

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"`
}

MsgCancelRequest defines the SDK message for cancelling a subscription

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 {
}

MsgCancelResponse defines the response of message MsgCancelRequest

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

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"`
}

MsgSubscribeToNodeRequest defines the SDK message for subscribing to a node

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 (*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 {
}

MsgSubscribeToNodeResponse defines the response of message MsgSubscribeToNodeRequest

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"`
}

MsgSubscribeToPlanRequest defines the SDK message for subscribing to a plan

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 (*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 {
}

MsgSubscribeToPlanResponse defines the response of message MsgSubscribeToPlanRequest

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,4,opt,name=bytes,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bytes"`
}

MsgUpdateQuotaRequest defines the SDK message for updating the quota of an address

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 {
}

MsgUpdateQuotaResponse defines the response of message MsgUpdateQuotaRequest

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 NewParams

func NewParams(inactiveDuration time.Duration) Params

func (*Params) Descriptor added in v0.6.0

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

func (*Params) Marshal added in v0.6.0

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.6.0

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.6.0

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (m *Params) ParamSetPairs() params.ParamSetPairs

func (*Params) ProtoMessage added in v0.6.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.6.0

func (m *Params) Reset()

func (*Params) Size added in v0.6.0

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.6.0

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) Validate

func (m *Params) Validate() error

func (*Params) XXX_DiscardUnknown added in v0.6.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.6.0

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v0.6.0

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v0.6.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.6.0

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryParamsRequest added in v0.6.1

type QueryParamsRequest struct {
}

func NewQueryParamsRequest added in v0.6.1

func NewQueryParamsRequest() *QueryParamsRequest

func (*QueryParamsRequest) Descriptor added in v0.6.1

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

func (*QueryParamsRequest) Marshal added in v0.6.1

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo added in v0.6.1

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.6.1

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage added in v0.6.1

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.6.1

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.6.1

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String added in v0.6.1

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.6.1

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.6.1

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.6.1

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge added in v0.6.1

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size added in v0.6.1

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.6.1

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse added in v0.6.1

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor added in v0.6.1

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

func (*QueryParamsResponse) Marshal added in v0.6.1

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo added in v0.6.1

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.6.1

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage added in v0.6.1

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.6.1

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.6.1

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String added in v0.6.1

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.6.1

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.6.1

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.6.1

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge added in v0.6.1

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size added in v0.6.1

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.6.1

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

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)
	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)
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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

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 (*QuerySubscriptionsForAddressRequest) Size added in v0.6.0

func (*QuerySubscriptionsForAddressRequest) String added in v0.6.0

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 (*QuerySubscriptionsForAddressRequest) XXX_Size added in v0.6.0

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 (*QuerySubscriptionsForAddressResponse) Size added in v0.6.0

func (*QuerySubscriptionsForAddressResponse) String added in v0.6.0

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 (*QuerySubscriptionsForAddressResponse) XXX_Size added in v0.6.0

func (*QuerySubscriptionsForAddressResponse) XXX_Unmarshal added in v0.6.0

func (m *QuerySubscriptionsForAddressResponse) 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) Descriptor() ([]byte, []int)

func (*Quota) GetAddress added in v0.6.0

func (m *Quota) GetAddress() sdk.AccAddress

func (*Quota) Marshal added in v0.6.0

func (m *Quota) Marshal() (dAtA []byte, err error)

func (*Quota) MarshalTo added in v0.6.0

func (m *Quota) MarshalTo(dAtA []byte) (int, error)

func (*Quota) MarshalToSizedBuffer added in v0.6.0

func (m *Quota) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Quota) ProtoMessage added in v0.6.0

func (*Quota) ProtoMessage()

func (*Quota) Reset added in v0.6.0

func (m *Quota) Reset()

func (*Quota) Size added in v0.6.0

func (m *Quota) Size() (n int)

func (*Quota) String

func (m *Quota) String() string

func (*Quota) Unmarshal added in v0.6.0

func (m *Quota) Unmarshal(dAtA []byte) error

func (*Quota) Validate

func (m *Quota) Validate() error

func (*Quota) XXX_DiscardUnknown added in v0.6.0

func (m *Quota) XXX_DiscardUnknown()

func (*Quota) XXX_Marshal added in v0.6.0

func (m *Quota) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Quota) XXX_Merge added in v0.6.0

func (m *Quota) XXX_Merge(src proto.Message)

func (*Quota) XXX_Size added in v0.6.0

func (m *Quota) XXX_Size() int

func (*Quota) XXX_Unmarshal added in v0.6.0

func (m *Quota) XXX_Unmarshal(b []byte) error

type Quotas

type Quotas []Quota

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"`
	Denom    string                                 `protobuf:"bytes,7,opt,name=denom,proto3" json:"denom,omitempty"`
	Expiry   time.Time                              `protobuf:"bytes,8,opt,name=expiry,proto3,stdtime" json:"expiry"`
	Free     github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,9,opt,name=free,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"free"`
	Status   types1.Status                          `protobuf:"varint,10,opt,name=status,proto3,enum=sentinel.types.v1.Status" json:"status,omitempty"`
	StatusAt time.Time                              `protobuf:"bytes,11,opt,name=status_at,json=statusAt,proto3,stdtime" json:"status_at"`
}

func (*Subscription) Amount

func (m *Subscription) Amount(consumed sdk.Int) sdk.Coin

func (*Subscription) Descriptor added in v0.6.0

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

func (*Subscription) GetNode added in v0.6.0

func (m *Subscription) GetNode() hubtypes.NodeAddress

func (*Subscription) GetOwner added in v0.6.1

func (m *Subscription) GetOwner() sdk.AccAddress

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 (m *Subscription) String() string

func (*Subscription) Unmarshal added in v0.6.0

func (m *Subscription) Unmarshal(dAtA []byte) error

func (*Subscription) Validate

func (m *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) MsgCancel added in v0.6.0

func (*UnimplementedMsgServiceServer) MsgSubscribeToNode added in v0.6.0

func (*UnimplementedMsgServiceServer) MsgSubscribeToPlan added in v0.6.0

func (*UnimplementedMsgServiceServer) MsgUpdateQuota added in v0.6.0

type UnimplementedQueryServiceServer added in v0.6.0

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryParams added in v0.6.1

func (*UnimplementedQueryServiceServer) QueryQuota added in v0.6.0

func (*UnimplementedQueryServiceServer) QueryQuotas added in v0.6.0

func (*UnimplementedQueryServiceServer) QuerySubscription added in v0.6.0

func (*UnimplementedQueryServiceServer) QuerySubscriptions added in v0.6.0

func (*UnimplementedQueryServiceServer) QuerySubscriptionsForAddress added in v0.6.0

Directories

Path Synopsis
legacy

Jump to

Keyboard shortcuts

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