types

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "notifications"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_notifications"
)
View Source
const (
	TypeMsgCreateNotifications = "create_notifications"
	TypeMsgUpdateNotifications = "update_notifications"
	TypeMsgDeleteNotifications = "delete_notifications"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// NotiCounterKeyPrefix is the prefix to retrieve all NotiCounter
	NotiCounterKeyPrefix = "NotiCounter/value/"
)
View Source
const (
	// NotificationsKeyPrefix is the prefix to retrieve all Notifications
	NotificationsKeyPrefix = "Notifications/"
)
View Source
const TypeMsgBlockSenders = "block_senders"
View Source
const TypeMsgSetCounter = "set_counter"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrNotiCounterNotFound    = sdkerrors.Register(ModuleName, 1100, "User's notiCounter not set")
	ErrCantUnmarshall         = sdkerrors.Register(ModuleName, 1101, "Cannot unmarshall from JSON")
	ErrBlockedSender          = sdkerrors.Register(ModuleName, 1102, "You are a blocked sender")
	ErrNotificationAlreadySet = sdkerrors.Register(ModuleName, 1103, "Notification already set")
	ErrOnlyOwnerCanBlock      = sdkerrors.Register(ModuleName, 1104, "Only the notiCounter owner can block a sender")
	ErrNotificationNotFound   = sdkerrors.Register(ModuleName, 1105, "Notification does not exist")
	ErrNotNotificationOwner   = sdkerrors.Register(ModuleName, 1106, "You do not own this notification")
)

x/notifications module sentinel errors

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 (
	ErrInvalidLengthNotiCounter        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNotiCounter          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNotiCounter = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthNotifications        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNotifications          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNotifications = 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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func NotiCounterKey

func NotiCounterKey(
	address string,
) []byte

NotiCounterKey returns the store key to retrieve a NotiCounter from the index fields

func NotificationsKey

func NotificationsKey(
	count uint64,
) []byte

NotificationsKey returns the store key to retrieve a Notifications from the index fields

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState

type GenesisState struct {
	Params            Params          `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	NotificationsList []Notifications `protobuf:"bytes,2,rep,name=notificationsList,proto3" json:"notificationsList"`
	NotiCounterList   []NotiCounter   `protobuf:"bytes,3,rep,name=notiCounterList,proto3" json:"notiCounterList"`
}

GenesisState defines the notifications module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetNotiCounterList

func (m *GenesisState) GetNotiCounterList() []NotiCounter

func (*GenesisState) GetNotificationsList

func (m *GenesisState) GetNotificationsList() []Notifications

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgBlockSenders

type MsgBlockSenders struct {
	Creator   string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SenderIds string `protobuf:"bytes,2,opt,name=senderIds,proto3" json:"senderIds,omitempty"`
}

func NewMsgBlockSenders

func NewMsgBlockSenders(creator string, senderIds string) *MsgBlockSenders

func (*MsgBlockSenders) Descriptor

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

func (*MsgBlockSenders) GetCreator

func (m *MsgBlockSenders) GetCreator() string

func (*MsgBlockSenders) GetSenderIds

func (m *MsgBlockSenders) GetSenderIds() string

func (*MsgBlockSenders) GetSignBytes

func (msg *MsgBlockSenders) GetSignBytes() []byte

func (*MsgBlockSenders) GetSigners

func (msg *MsgBlockSenders) GetSigners() []sdk.AccAddress

func (*MsgBlockSenders) Marshal

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

func (*MsgBlockSenders) MarshalTo

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

func (*MsgBlockSenders) MarshalToSizedBuffer

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

func (*MsgBlockSenders) ProtoMessage

func (*MsgBlockSenders) ProtoMessage()

func (*MsgBlockSenders) Reset

func (m *MsgBlockSenders) Reset()

func (*MsgBlockSenders) Route

func (msg *MsgBlockSenders) Route() string

func (*MsgBlockSenders) Size

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

func (*MsgBlockSenders) String

func (m *MsgBlockSenders) String() string

func (*MsgBlockSenders) Type

func (msg *MsgBlockSenders) Type() string

func (*MsgBlockSenders) Unmarshal

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

func (*MsgBlockSenders) ValidateBasic

func (msg *MsgBlockSenders) ValidateBasic() error

func (*MsgBlockSenders) XXX_DiscardUnknown

func (m *MsgBlockSenders) XXX_DiscardUnknown()

func (*MsgBlockSenders) XXX_Marshal

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

func (*MsgBlockSenders) XXX_Merge

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

func (*MsgBlockSenders) XXX_Size

func (m *MsgBlockSenders) XXX_Size() int

func (*MsgBlockSenders) XXX_Unmarshal

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

type MsgBlockSendersResponse

type MsgBlockSendersResponse struct {
}

func (*MsgBlockSendersResponse) Descriptor

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

func (*MsgBlockSendersResponse) Marshal

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

func (*MsgBlockSendersResponse) MarshalTo

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

func (*MsgBlockSendersResponse) MarshalToSizedBuffer

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

func (*MsgBlockSendersResponse) ProtoMessage

func (*MsgBlockSendersResponse) ProtoMessage()

func (*MsgBlockSendersResponse) Reset

func (m *MsgBlockSendersResponse) Reset()

func (*MsgBlockSendersResponse) Size

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

func (*MsgBlockSendersResponse) String

func (m *MsgBlockSendersResponse) String() string

func (*MsgBlockSendersResponse) Unmarshal

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

func (*MsgBlockSendersResponse) XXX_DiscardUnknown

func (m *MsgBlockSendersResponse) XXX_DiscardUnknown()

func (*MsgBlockSendersResponse) XXX_Marshal

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

func (*MsgBlockSendersResponse) XXX_Merge

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

func (*MsgBlockSendersResponse) XXX_Size

func (m *MsgBlockSendersResponse) XXX_Size() int

func (*MsgBlockSendersResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreateNotifications(ctx context.Context, in *MsgCreateNotifications, opts ...grpc.CallOption) (*MsgCreateNotificationsResponse, error)
	UpdateNotifications(ctx context.Context, in *MsgUpdateNotifications, opts ...grpc.CallOption) (*MsgUpdateNotificationsResponse, error)
	DeleteNotifications(ctx context.Context, in *MsgDeleteNotifications, opts ...grpc.CallOption) (*MsgDeleteNotificationsResponse, error)
	SetCounter(ctx context.Context, in *MsgSetCounter, opts ...grpc.CallOption) (*MsgSetCounterResponse, error)
	BlockSenders(ctx context.Context, in *MsgBlockSenders, opts ...grpc.CallOption) (*MsgBlockSendersResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateNotifications

type MsgCreateNotifications struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Notification string `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"`
	Address      string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgCreateNotifications

func NewMsgCreateNotifications(
	creator string,
	notification string,
	address string,
) *MsgCreateNotifications

func (*MsgCreateNotifications) Descriptor

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

func (*MsgCreateNotifications) GetAddress

func (m *MsgCreateNotifications) GetAddress() string

func (*MsgCreateNotifications) GetCreator

func (m *MsgCreateNotifications) GetCreator() string

func (*MsgCreateNotifications) GetNotification

func (m *MsgCreateNotifications) GetNotification() string

func (*MsgCreateNotifications) GetSignBytes

func (msg *MsgCreateNotifications) GetSignBytes() []byte

func (*MsgCreateNotifications) GetSigners

func (msg *MsgCreateNotifications) GetSigners() []sdk.AccAddress

func (*MsgCreateNotifications) Marshal

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

func (*MsgCreateNotifications) MarshalTo

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

func (*MsgCreateNotifications) MarshalToSizedBuffer

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

func (*MsgCreateNotifications) ProtoMessage

func (*MsgCreateNotifications) ProtoMessage()

func (*MsgCreateNotifications) Reset

func (m *MsgCreateNotifications) Reset()

func (*MsgCreateNotifications) Route

func (msg *MsgCreateNotifications) Route() string

func (*MsgCreateNotifications) Size

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

func (*MsgCreateNotifications) String

func (m *MsgCreateNotifications) String() string

func (*MsgCreateNotifications) Type

func (msg *MsgCreateNotifications) Type() string

func (*MsgCreateNotifications) Unmarshal

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

func (*MsgCreateNotifications) ValidateBasic

func (msg *MsgCreateNotifications) ValidateBasic() error

func (*MsgCreateNotifications) XXX_DiscardUnknown

func (m *MsgCreateNotifications) XXX_DiscardUnknown()

func (*MsgCreateNotifications) XXX_Marshal

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

func (*MsgCreateNotifications) XXX_Merge

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

func (*MsgCreateNotifications) XXX_Size

func (m *MsgCreateNotifications) XXX_Size() int

func (*MsgCreateNotifications) XXX_Unmarshal

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

type MsgCreateNotificationsResponse

type MsgCreateNotificationsResponse struct {
	NotiCounter uint64 `protobuf:"varint,1,opt,name=notiCounter,proto3" json:"notiCounter,omitempty"`
}

func (*MsgCreateNotificationsResponse) Descriptor

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

func (*MsgCreateNotificationsResponse) GetNotiCounter

func (m *MsgCreateNotificationsResponse) GetNotiCounter() uint64

func (*MsgCreateNotificationsResponse) Marshal

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

func (*MsgCreateNotificationsResponse) MarshalTo

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

func (*MsgCreateNotificationsResponse) MarshalToSizedBuffer

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

func (*MsgCreateNotificationsResponse) ProtoMessage

func (*MsgCreateNotificationsResponse) ProtoMessage()

func (*MsgCreateNotificationsResponse) Reset

func (m *MsgCreateNotificationsResponse) Reset()

func (*MsgCreateNotificationsResponse) Size

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

func (*MsgCreateNotificationsResponse) String

func (*MsgCreateNotificationsResponse) Unmarshal

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

func (*MsgCreateNotificationsResponse) XXX_DiscardUnknown

func (m *MsgCreateNotificationsResponse) XXX_DiscardUnknown()

func (*MsgCreateNotificationsResponse) XXX_Marshal

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

func (*MsgCreateNotificationsResponse) XXX_Merge

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

func (*MsgCreateNotificationsResponse) XXX_Size

func (m *MsgCreateNotificationsResponse) XXX_Size() int

func (*MsgCreateNotificationsResponse) XXX_Unmarshal

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

type MsgDeleteNotifications

type MsgDeleteNotifications struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func NewMsgDeleteNotifications

func NewMsgDeleteNotifications(
	creator string,
) *MsgDeleteNotifications

func (*MsgDeleteNotifications) Descriptor

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

func (*MsgDeleteNotifications) GetCreator

func (m *MsgDeleteNotifications) GetCreator() string

func (*MsgDeleteNotifications) GetSignBytes

func (msg *MsgDeleteNotifications) GetSignBytes() []byte

func (*MsgDeleteNotifications) GetSigners

func (msg *MsgDeleteNotifications) GetSigners() []sdk.AccAddress

func (*MsgDeleteNotifications) Marshal

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

func (*MsgDeleteNotifications) MarshalTo

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

func (*MsgDeleteNotifications) MarshalToSizedBuffer

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

func (*MsgDeleteNotifications) ProtoMessage

func (*MsgDeleteNotifications) ProtoMessage()

func (*MsgDeleteNotifications) Reset

func (m *MsgDeleteNotifications) Reset()

func (*MsgDeleteNotifications) Route

func (msg *MsgDeleteNotifications) Route() string

func (*MsgDeleteNotifications) Size

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

func (*MsgDeleteNotifications) String

func (m *MsgDeleteNotifications) String() string

func (*MsgDeleteNotifications) Type

func (msg *MsgDeleteNotifications) Type() string

func (*MsgDeleteNotifications) Unmarshal

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

func (*MsgDeleteNotifications) ValidateBasic

func (msg *MsgDeleteNotifications) ValidateBasic() error

func (*MsgDeleteNotifications) XXX_DiscardUnknown

func (m *MsgDeleteNotifications) XXX_DiscardUnknown()

func (*MsgDeleteNotifications) XXX_Marshal

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

func (*MsgDeleteNotifications) XXX_Merge

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

func (*MsgDeleteNotifications) XXX_Size

func (m *MsgDeleteNotifications) XXX_Size() int

func (*MsgDeleteNotifications) XXX_Unmarshal

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

type MsgDeleteNotificationsResponse

type MsgDeleteNotificationsResponse struct {
	NotiCounter uint64 `protobuf:"varint,1,opt,name=notiCounter,proto3" json:"notiCounter,omitempty"`
}

func (*MsgDeleteNotificationsResponse) Descriptor

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

func (*MsgDeleteNotificationsResponse) GetNotiCounter

func (m *MsgDeleteNotificationsResponse) GetNotiCounter() uint64

func (*MsgDeleteNotificationsResponse) Marshal

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

func (*MsgDeleteNotificationsResponse) MarshalTo

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

func (*MsgDeleteNotificationsResponse) MarshalToSizedBuffer

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

func (*MsgDeleteNotificationsResponse) ProtoMessage

func (*MsgDeleteNotificationsResponse) ProtoMessage()

func (*MsgDeleteNotificationsResponse) Reset

func (m *MsgDeleteNotificationsResponse) Reset()

func (*MsgDeleteNotificationsResponse) Size

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

func (*MsgDeleteNotificationsResponse) String

func (*MsgDeleteNotificationsResponse) Unmarshal

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

func (*MsgDeleteNotificationsResponse) XXX_DiscardUnknown

func (m *MsgDeleteNotificationsResponse) XXX_DiscardUnknown()

func (*MsgDeleteNotificationsResponse) XXX_Marshal

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

func (*MsgDeleteNotificationsResponse) XXX_Merge

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

func (*MsgDeleteNotificationsResponse) XXX_Size

func (m *MsgDeleteNotificationsResponse) XXX_Size() int

func (*MsgDeleteNotificationsResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetCounter

type MsgSetCounter struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func NewMsgSetCounter

func NewMsgSetCounter(creator string) *MsgSetCounter

func (*MsgSetCounter) Descriptor

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

func (*MsgSetCounter) GetCreator

func (m *MsgSetCounter) GetCreator() string

func (*MsgSetCounter) GetSignBytes

func (msg *MsgSetCounter) GetSignBytes() []byte

func (*MsgSetCounter) GetSigners

func (msg *MsgSetCounter) GetSigners() []sdk.AccAddress

func (*MsgSetCounter) Marshal

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

func (*MsgSetCounter) MarshalTo

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

func (*MsgSetCounter) MarshalToSizedBuffer

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

func (*MsgSetCounter) ProtoMessage

func (*MsgSetCounter) ProtoMessage()

func (*MsgSetCounter) Reset

func (m *MsgSetCounter) Reset()

func (*MsgSetCounter) Route

func (msg *MsgSetCounter) Route() string

func (*MsgSetCounter) Size

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

func (*MsgSetCounter) String

func (m *MsgSetCounter) String() string

func (*MsgSetCounter) Type

func (msg *MsgSetCounter) Type() string

func (*MsgSetCounter) Unmarshal

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

func (*MsgSetCounter) ValidateBasic

func (msg *MsgSetCounter) ValidateBasic() error

func (*MsgSetCounter) XXX_DiscardUnknown

func (m *MsgSetCounter) XXX_DiscardUnknown()

func (*MsgSetCounter) XXX_Marshal

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

func (*MsgSetCounter) XXX_Merge

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

func (*MsgSetCounter) XXX_Size

func (m *MsgSetCounter) XXX_Size() int

func (*MsgSetCounter) XXX_Unmarshal

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

type MsgSetCounterResponse

type MsgSetCounterResponse struct {
	NotiCounter uint64 `protobuf:"varint,1,opt,name=notiCounter,proto3" json:"notiCounter,omitempty"`
}

func (*MsgSetCounterResponse) Descriptor

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

func (*MsgSetCounterResponse) GetNotiCounter

func (m *MsgSetCounterResponse) GetNotiCounter() uint64

func (*MsgSetCounterResponse) Marshal

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

func (*MsgSetCounterResponse) MarshalTo

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

func (*MsgSetCounterResponse) MarshalToSizedBuffer

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

func (*MsgSetCounterResponse) ProtoMessage

func (*MsgSetCounterResponse) ProtoMessage()

func (*MsgSetCounterResponse) Reset

func (m *MsgSetCounterResponse) Reset()

func (*MsgSetCounterResponse) Size

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

func (*MsgSetCounterResponse) String

func (m *MsgSetCounterResponse) String() string

func (*MsgSetCounterResponse) Unmarshal

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

func (*MsgSetCounterResponse) XXX_DiscardUnknown

func (m *MsgSetCounterResponse) XXX_DiscardUnknown()

func (*MsgSetCounterResponse) XXX_Marshal

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

func (*MsgSetCounterResponse) XXX_Merge

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

func (*MsgSetCounterResponse) XXX_Size

func (m *MsgSetCounterResponse) XXX_Size() int

func (*MsgSetCounterResponse) XXX_Unmarshal

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

type MsgUpdateNotifications

type MsgUpdateNotifications struct {
	Creator      string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Count        uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	Notification string `protobuf:"bytes,3,opt,name=notification,proto3" json:"notification,omitempty"`
	Address      string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgUpdateNotifications

func NewMsgUpdateNotifications(
	creator string,
	count uint64,
	notification string,
	address string,
) *MsgUpdateNotifications

func (*MsgUpdateNotifications) Descriptor

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

func (*MsgUpdateNotifications) GetAddress

func (m *MsgUpdateNotifications) GetAddress() string

func (*MsgUpdateNotifications) GetCount

func (m *MsgUpdateNotifications) GetCount() uint64

func (*MsgUpdateNotifications) GetCreator

func (m *MsgUpdateNotifications) GetCreator() string

func (*MsgUpdateNotifications) GetNotification

func (m *MsgUpdateNotifications) GetNotification() string

func (*MsgUpdateNotifications) GetSignBytes

func (msg *MsgUpdateNotifications) GetSignBytes() []byte

func (*MsgUpdateNotifications) GetSigners

func (msg *MsgUpdateNotifications) GetSigners() []sdk.AccAddress

func (*MsgUpdateNotifications) Marshal

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

func (*MsgUpdateNotifications) MarshalTo

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

func (*MsgUpdateNotifications) MarshalToSizedBuffer

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

func (*MsgUpdateNotifications) ProtoMessage

func (*MsgUpdateNotifications) ProtoMessage()

func (*MsgUpdateNotifications) Reset

func (m *MsgUpdateNotifications) Reset()

func (*MsgUpdateNotifications) Route

func (msg *MsgUpdateNotifications) Route() string

func (*MsgUpdateNotifications) Size

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

func (*MsgUpdateNotifications) String

func (m *MsgUpdateNotifications) String() string

func (*MsgUpdateNotifications) Type

func (msg *MsgUpdateNotifications) Type() string

func (*MsgUpdateNotifications) Unmarshal

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

func (*MsgUpdateNotifications) ValidateBasic

func (msg *MsgUpdateNotifications) ValidateBasic() error

func (*MsgUpdateNotifications) XXX_DiscardUnknown

func (m *MsgUpdateNotifications) XXX_DiscardUnknown()

func (*MsgUpdateNotifications) XXX_Marshal

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

func (*MsgUpdateNotifications) XXX_Merge

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

func (*MsgUpdateNotifications) XXX_Size

func (m *MsgUpdateNotifications) XXX_Size() int

func (*MsgUpdateNotifications) XXX_Unmarshal

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

type MsgUpdateNotificationsResponse

type MsgUpdateNotificationsResponse struct {
}

func (*MsgUpdateNotificationsResponse) Descriptor

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

func (*MsgUpdateNotificationsResponse) Marshal

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

func (*MsgUpdateNotificationsResponse) MarshalTo

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

func (*MsgUpdateNotificationsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateNotificationsResponse) ProtoMessage

func (*MsgUpdateNotificationsResponse) ProtoMessage()

func (*MsgUpdateNotificationsResponse) Reset

func (m *MsgUpdateNotificationsResponse) Reset()

func (*MsgUpdateNotificationsResponse) Size

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

func (*MsgUpdateNotificationsResponse) String

func (*MsgUpdateNotificationsResponse) Unmarshal

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

func (*MsgUpdateNotificationsResponse) XXX_DiscardUnknown

func (m *MsgUpdateNotificationsResponse) XXX_DiscardUnknown()

func (*MsgUpdateNotificationsResponse) XXX_Marshal

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

func (*MsgUpdateNotificationsResponse) XXX_Merge

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

func (*MsgUpdateNotificationsResponse) XXX_Size

func (m *MsgUpdateNotificationsResponse) XXX_Size() int

func (*MsgUpdateNotificationsResponse) XXX_Unmarshal

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

type NotiCounter

type NotiCounter struct {
	Address        string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Counter        uint64 `protobuf:"varint,2,opt,name=counter,proto3" json:"counter,omitempty"`
	BlockedSenders string `protobuf:"bytes,3,opt,name=blockedSenders,proto3" json:"blockedSenders,omitempty"`
}

func (*NotiCounter) Descriptor

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

func (*NotiCounter) GetAddress

func (m *NotiCounter) GetAddress() string

func (*NotiCounter) GetBlockedSenders

func (m *NotiCounter) GetBlockedSenders() string

func (*NotiCounter) GetCounter

func (m *NotiCounter) GetCounter() uint64

func (*NotiCounter) Marshal

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

func (*NotiCounter) MarshalTo

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

func (*NotiCounter) MarshalToSizedBuffer

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

func (*NotiCounter) ProtoMessage

func (*NotiCounter) ProtoMessage()

func (*NotiCounter) Reset

func (m *NotiCounter) Reset()

func (*NotiCounter) Size

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

func (*NotiCounter) String

func (m *NotiCounter) String() string

func (*NotiCounter) Unmarshal

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

func (*NotiCounter) XXX_DiscardUnknown

func (m *NotiCounter) XXX_DiscardUnknown()

func (*NotiCounter) XXX_Marshal

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

func (*NotiCounter) XXX_Merge

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

func (*NotiCounter) XXX_Size

func (m *NotiCounter) XXX_Size() int

func (*NotiCounter) XXX_Unmarshal

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

type Notifications

type Notifications struct {
	Count        uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Notification string `protobuf:"bytes,2,opt,name=notification,proto3" json:"notification,omitempty"`
	Address      string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Sender       string `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"`
}

func (*Notifications) Descriptor

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

func (*Notifications) GetAddress

func (m *Notifications) GetAddress() string

func (*Notifications) GetCount

func (m *Notifications) GetCount() uint64

func (*Notifications) GetNotification

func (m *Notifications) GetNotification() string

func (*Notifications) GetSender

func (m *Notifications) GetSender() string

func (*Notifications) Marshal

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

func (*Notifications) MarshalTo

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

func (*Notifications) MarshalToSizedBuffer

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

func (*Notifications) ProtoMessage

func (*Notifications) ProtoMessage()

func (*Notifications) Reset

func (m *Notifications) Reset()

func (*Notifications) Size

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

func (*Notifications) String

func (m *Notifications) String() string

func (*Notifications) Unmarshal

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

func (*Notifications) XXX_DiscardUnknown

func (m *Notifications) XXX_DiscardUnknown()

func (*Notifications) XXX_Marshal

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

func (*Notifications) XXX_Merge

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

func (*Notifications) XXX_Size

func (m *Notifications) XXX_Size() int

func (*Notifications) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAllNotiCounterRequest

type QueryAllNotiCounterRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNotiCounterRequest) Descriptor

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

func (*QueryAllNotiCounterRequest) GetPagination

func (m *QueryAllNotiCounterRequest) GetPagination() *query.PageRequest

func (*QueryAllNotiCounterRequest) Marshal

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

func (*QueryAllNotiCounterRequest) MarshalTo

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

func (*QueryAllNotiCounterRequest) MarshalToSizedBuffer

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

func (*QueryAllNotiCounterRequest) ProtoMessage

func (*QueryAllNotiCounterRequest) ProtoMessage()

func (*QueryAllNotiCounterRequest) Reset

func (m *QueryAllNotiCounterRequest) Reset()

func (*QueryAllNotiCounterRequest) Size

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

func (*QueryAllNotiCounterRequest) String

func (m *QueryAllNotiCounterRequest) String() string

func (*QueryAllNotiCounterRequest) Unmarshal

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

func (*QueryAllNotiCounterRequest) XXX_DiscardUnknown

func (m *QueryAllNotiCounterRequest) XXX_DiscardUnknown()

func (*QueryAllNotiCounterRequest) XXX_Marshal

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

func (*QueryAllNotiCounterRequest) XXX_Merge

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

func (*QueryAllNotiCounterRequest) XXX_Size

func (m *QueryAllNotiCounterRequest) XXX_Size() int

func (*QueryAllNotiCounterRequest) XXX_Unmarshal

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

type QueryAllNotiCounterResponse

type QueryAllNotiCounterResponse struct {
	NotiCounter []NotiCounter       `protobuf:"bytes,1,rep,name=notiCounter,proto3" json:"notiCounter"`
	Pagination  *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNotiCounterResponse) Descriptor

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

func (*QueryAllNotiCounterResponse) GetNotiCounter

func (m *QueryAllNotiCounterResponse) GetNotiCounter() []NotiCounter

func (*QueryAllNotiCounterResponse) GetPagination

func (m *QueryAllNotiCounterResponse) GetPagination() *query.PageResponse

func (*QueryAllNotiCounterResponse) Marshal

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

func (*QueryAllNotiCounterResponse) MarshalTo

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

func (*QueryAllNotiCounterResponse) MarshalToSizedBuffer

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

func (*QueryAllNotiCounterResponse) ProtoMessage

func (*QueryAllNotiCounterResponse) ProtoMessage()

func (*QueryAllNotiCounterResponse) Reset

func (m *QueryAllNotiCounterResponse) Reset()

func (*QueryAllNotiCounterResponse) Size

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

func (*QueryAllNotiCounterResponse) String

func (m *QueryAllNotiCounterResponse) String() string

func (*QueryAllNotiCounterResponse) Unmarshal

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

func (*QueryAllNotiCounterResponse) XXX_DiscardUnknown

func (m *QueryAllNotiCounterResponse) XXX_DiscardUnknown()

func (*QueryAllNotiCounterResponse) XXX_Marshal

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

func (*QueryAllNotiCounterResponse) XXX_Merge

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

func (*QueryAllNotiCounterResponse) XXX_Size

func (m *QueryAllNotiCounterResponse) XXX_Size() int

func (*QueryAllNotiCounterResponse) XXX_Unmarshal

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

type QueryAllNotificationsByAddressRequest

type QueryAllNotificationsByAddressRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Address    string             `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryAllNotificationsByAddressRequest) Descriptor

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

func (*QueryAllNotificationsByAddressRequest) GetAddress

func (*QueryAllNotificationsByAddressRequest) GetPagination

func (*QueryAllNotificationsByAddressRequest) Marshal

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

func (*QueryAllNotificationsByAddressRequest) MarshalTo

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

func (*QueryAllNotificationsByAddressRequest) MarshalToSizedBuffer

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

func (*QueryAllNotificationsByAddressRequest) ProtoMessage

func (*QueryAllNotificationsByAddressRequest) ProtoMessage()

func (*QueryAllNotificationsByAddressRequest) Reset

func (*QueryAllNotificationsByAddressRequest) Size

func (*QueryAllNotificationsByAddressRequest) String

func (*QueryAllNotificationsByAddressRequest) Unmarshal

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

func (*QueryAllNotificationsByAddressRequest) XXX_DiscardUnknown

func (m *QueryAllNotificationsByAddressRequest) XXX_DiscardUnknown()

func (*QueryAllNotificationsByAddressRequest) XXX_Marshal

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

func (*QueryAllNotificationsByAddressRequest) XXX_Merge

func (*QueryAllNotificationsByAddressRequest) XXX_Size

func (*QueryAllNotificationsByAddressRequest) XXX_Unmarshal

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

type QueryAllNotificationsByAddressResponse

type QueryAllNotificationsByAddressResponse struct {
	Notifications []Notifications     `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications"`
	Pagination    *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNotificationsByAddressResponse) Descriptor

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

func (*QueryAllNotificationsByAddressResponse) GetNotifications

func (m *QueryAllNotificationsByAddressResponse) GetNotifications() []Notifications

func (*QueryAllNotificationsByAddressResponse) GetPagination

func (*QueryAllNotificationsByAddressResponse) Marshal

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

func (*QueryAllNotificationsByAddressResponse) MarshalTo

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

func (*QueryAllNotificationsByAddressResponse) MarshalToSizedBuffer

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

func (*QueryAllNotificationsByAddressResponse) ProtoMessage

func (*QueryAllNotificationsByAddressResponse) Reset

func (*QueryAllNotificationsByAddressResponse) Size

func (*QueryAllNotificationsByAddressResponse) String

func (*QueryAllNotificationsByAddressResponse) Unmarshal

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

func (*QueryAllNotificationsByAddressResponse) XXX_DiscardUnknown

func (m *QueryAllNotificationsByAddressResponse) XXX_DiscardUnknown()

func (*QueryAllNotificationsByAddressResponse) XXX_Marshal

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

func (*QueryAllNotificationsByAddressResponse) XXX_Merge

func (*QueryAllNotificationsByAddressResponse) XXX_Size

func (*QueryAllNotificationsByAddressResponse) XXX_Unmarshal

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

type QueryAllNotificationsRequest

type QueryAllNotificationsRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNotificationsRequest) Descriptor

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

func (*QueryAllNotificationsRequest) GetPagination

func (m *QueryAllNotificationsRequest) GetPagination() *query.PageRequest

func (*QueryAllNotificationsRequest) Marshal

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

func (*QueryAllNotificationsRequest) MarshalTo

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

func (*QueryAllNotificationsRequest) MarshalToSizedBuffer

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

func (*QueryAllNotificationsRequest) ProtoMessage

func (*QueryAllNotificationsRequest) ProtoMessage()

func (*QueryAllNotificationsRequest) Reset

func (m *QueryAllNotificationsRequest) Reset()

func (*QueryAllNotificationsRequest) Size

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

func (*QueryAllNotificationsRequest) String

func (*QueryAllNotificationsRequest) Unmarshal

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

func (*QueryAllNotificationsRequest) XXX_DiscardUnknown

func (m *QueryAllNotificationsRequest) XXX_DiscardUnknown()

func (*QueryAllNotificationsRequest) XXX_Marshal

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

func (*QueryAllNotificationsRequest) XXX_Merge

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

func (*QueryAllNotificationsRequest) XXX_Size

func (m *QueryAllNotificationsRequest) XXX_Size() int

func (*QueryAllNotificationsRequest) XXX_Unmarshal

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

type QueryAllNotificationsResponse

type QueryAllNotificationsResponse struct {
	Notifications []Notifications     `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications"`
	Pagination    *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllNotificationsResponse) Descriptor

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

func (*QueryAllNotificationsResponse) GetNotifications

func (m *QueryAllNotificationsResponse) GetNotifications() []Notifications

func (*QueryAllNotificationsResponse) GetPagination

func (m *QueryAllNotificationsResponse) GetPagination() *query.PageResponse

func (*QueryAllNotificationsResponse) Marshal

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

func (*QueryAllNotificationsResponse) MarshalTo

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

func (*QueryAllNotificationsResponse) MarshalToSizedBuffer

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

func (*QueryAllNotificationsResponse) ProtoMessage

func (*QueryAllNotificationsResponse) ProtoMessage()

func (*QueryAllNotificationsResponse) Reset

func (m *QueryAllNotificationsResponse) Reset()

func (*QueryAllNotificationsResponse) Size

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

func (*QueryAllNotificationsResponse) String

func (*QueryAllNotificationsResponse) Unmarshal

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

func (*QueryAllNotificationsResponse) XXX_DiscardUnknown

func (m *QueryAllNotificationsResponse) XXX_DiscardUnknown()

func (*QueryAllNotificationsResponse) XXX_Marshal

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

func (*QueryAllNotificationsResponse) XXX_Merge

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

func (*QueryAllNotificationsResponse) XXX_Size

func (m *QueryAllNotificationsResponse) XXX_Size() int

func (*QueryAllNotificationsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a Notifications by index.
	Notifications(ctx context.Context, in *QueryGetNotificationsRequest, opts ...grpc.CallOption) (*QueryGetNotificationsResponse, error)
	// Queries a list of Notifications items.
	NotificationsAll(ctx context.Context, in *QueryAllNotificationsRequest, opts ...grpc.CallOption) (*QueryAllNotificationsResponse, error)
	// Queries a list of Notifications items by address.
	NotificationsByAddress(ctx context.Context, in *QueryAllNotificationsByAddressRequest, opts ...grpc.CallOption) (*QueryAllNotificationsByAddressResponse, error)
	// Queries a NotiCounter by index.
	NotiCounter(ctx context.Context, in *QueryGetNotiCounterRequest, opts ...grpc.CallOption) (*QueryGetNotiCounterResponse, error)
	// Queries a list of NotiCounter items.
	NotiCounterAll(ctx context.Context, in *QueryAllNotiCounterRequest, opts ...grpc.CallOption) (*QueryAllNotiCounterResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetNotiCounterRequest

type QueryGetNotiCounterRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetNotiCounterRequest) Descriptor

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

func (*QueryGetNotiCounterRequest) GetAddress

func (m *QueryGetNotiCounterRequest) GetAddress() string

func (*QueryGetNotiCounterRequest) Marshal

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

func (*QueryGetNotiCounterRequest) MarshalTo

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

func (*QueryGetNotiCounterRequest) MarshalToSizedBuffer

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

func (*QueryGetNotiCounterRequest) ProtoMessage

func (*QueryGetNotiCounterRequest) ProtoMessage()

func (*QueryGetNotiCounterRequest) Reset

func (m *QueryGetNotiCounterRequest) Reset()

func (*QueryGetNotiCounterRequest) Size

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

func (*QueryGetNotiCounterRequest) String

func (m *QueryGetNotiCounterRequest) String() string

func (*QueryGetNotiCounterRequest) Unmarshal

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

func (*QueryGetNotiCounterRequest) XXX_DiscardUnknown

func (m *QueryGetNotiCounterRequest) XXX_DiscardUnknown()

func (*QueryGetNotiCounterRequest) XXX_Marshal

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

func (*QueryGetNotiCounterRequest) XXX_Merge

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

func (*QueryGetNotiCounterRequest) XXX_Size

func (m *QueryGetNotiCounterRequest) XXX_Size() int

func (*QueryGetNotiCounterRequest) XXX_Unmarshal

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

type QueryGetNotiCounterResponse

type QueryGetNotiCounterResponse struct {
	NotiCounter NotiCounter `protobuf:"bytes,1,opt,name=notiCounter,proto3" json:"notiCounter"`
}

func (*QueryGetNotiCounterResponse) Descriptor

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

func (*QueryGetNotiCounterResponse) GetNotiCounter

func (m *QueryGetNotiCounterResponse) GetNotiCounter() NotiCounter

func (*QueryGetNotiCounterResponse) Marshal

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

func (*QueryGetNotiCounterResponse) MarshalTo

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

func (*QueryGetNotiCounterResponse) MarshalToSizedBuffer

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

func (*QueryGetNotiCounterResponse) ProtoMessage

func (*QueryGetNotiCounterResponse) ProtoMessage()

func (*QueryGetNotiCounterResponse) Reset

func (m *QueryGetNotiCounterResponse) Reset()

func (*QueryGetNotiCounterResponse) Size

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

func (*QueryGetNotiCounterResponse) String

func (m *QueryGetNotiCounterResponse) String() string

func (*QueryGetNotiCounterResponse) Unmarshal

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

func (*QueryGetNotiCounterResponse) XXX_DiscardUnknown

func (m *QueryGetNotiCounterResponse) XXX_DiscardUnknown()

func (*QueryGetNotiCounterResponse) XXX_Marshal

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

func (*QueryGetNotiCounterResponse) XXX_Merge

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

func (*QueryGetNotiCounterResponse) XXX_Size

func (m *QueryGetNotiCounterResponse) XXX_Size() int

func (*QueryGetNotiCounterResponse) XXX_Unmarshal

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

type QueryGetNotificationsRequest

type QueryGetNotificationsRequest struct {
	Count   uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryGetNotificationsRequest) Descriptor

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

func (*QueryGetNotificationsRequest) GetAddress

func (m *QueryGetNotificationsRequest) GetAddress() string

func (*QueryGetNotificationsRequest) GetCount

func (m *QueryGetNotificationsRequest) GetCount() uint64

func (*QueryGetNotificationsRequest) Marshal

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

func (*QueryGetNotificationsRequest) MarshalTo

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

func (*QueryGetNotificationsRequest) MarshalToSizedBuffer

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

func (*QueryGetNotificationsRequest) ProtoMessage

func (*QueryGetNotificationsRequest) ProtoMessage()

func (*QueryGetNotificationsRequest) Reset

func (m *QueryGetNotificationsRequest) Reset()

func (*QueryGetNotificationsRequest) Size

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

func (*QueryGetNotificationsRequest) String

func (*QueryGetNotificationsRequest) Unmarshal

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

func (*QueryGetNotificationsRequest) XXX_DiscardUnknown

func (m *QueryGetNotificationsRequest) XXX_DiscardUnknown()

func (*QueryGetNotificationsRequest) XXX_Marshal

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

func (*QueryGetNotificationsRequest) XXX_Merge

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

func (*QueryGetNotificationsRequest) XXX_Size

func (m *QueryGetNotificationsRequest) XXX_Size() int

func (*QueryGetNotificationsRequest) XXX_Unmarshal

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

type QueryGetNotificationsResponse

type QueryGetNotificationsResponse struct {
	Notifications Notifications `protobuf:"bytes,1,opt,name=notifications,proto3" json:"notifications"`
}

func (*QueryGetNotificationsResponse) Descriptor

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

func (*QueryGetNotificationsResponse) GetNotifications

func (m *QueryGetNotificationsResponse) GetNotifications() Notifications

func (*QueryGetNotificationsResponse) Marshal

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

func (*QueryGetNotificationsResponse) MarshalTo

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

func (*QueryGetNotificationsResponse) MarshalToSizedBuffer

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

func (*QueryGetNotificationsResponse) ProtoMessage

func (*QueryGetNotificationsResponse) ProtoMessage()

func (*QueryGetNotificationsResponse) Reset

func (m *QueryGetNotificationsResponse) Reset()

func (*QueryGetNotificationsResponse) Size

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

func (*QueryGetNotificationsResponse) String

func (*QueryGetNotificationsResponse) Unmarshal

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

func (*QueryGetNotificationsResponse) XXX_DiscardUnknown

func (m *QueryGetNotificationsResponse) XXX_DiscardUnknown()

func (*QueryGetNotificationsResponse) XXX_Marshal

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

func (*QueryGetNotificationsResponse) XXX_Merge

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

func (*QueryGetNotificationsResponse) XXX_Size

func (m *QueryGetNotificationsResponse) XXX_Size() int

func (*QueryGetNotificationsResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a Notifications by index.
	Notifications(context.Context, *QueryGetNotificationsRequest) (*QueryGetNotificationsResponse, error)
	// Queries a list of Notifications items.
	NotificationsAll(context.Context, *QueryAllNotificationsRequest) (*QueryAllNotificationsResponse, error)
	// Queries a list of Notifications items by address.
	NotificationsByAddress(context.Context, *QueryAllNotificationsByAddressRequest) (*QueryAllNotificationsByAddressResponse, error)
	// Queries a NotiCounter by index.
	NotiCounter(context.Context, *QueryGetNotiCounterRequest) (*QueryGetNotiCounterResponse, error)
	// Queries a list of NotiCounter items.
	NotiCounterAll(context.Context, *QueryAllNotiCounterRequest) (*QueryAllNotiCounterResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BlockSenders

func (*UnimplementedMsgServer) CreateNotifications

func (*UnimplementedMsgServer) DeleteNotifications

func (*UnimplementedMsgServer) SetCounter

func (*UnimplementedMsgServer) UpdateNotifications

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) NotiCounter

func (*UnimplementedQueryServer) NotiCounterAll

func (*UnimplementedQueryServer) Notifications

func (*UnimplementedQueryServer) NotificationsAll

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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