Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BlockKey(owner string, address string) []byte
- func KeyPrefix(p string) []byte
- func NotificationsKey(to string, from string, time int64) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type Block
- func (*Block) Descriptor() ([]byte, []int)
- func (m *Block) GetAddress() string
- func (m *Block) GetBlockedAddress() string
- func (m *Block) Marshal() (dAtA []byte, err error)
- func (m *Block) MarshalTo(dAtA []byte) (int, error)
- func (m *Block) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Block) ProtoMessage()
- func (m *Block) Reset()
- func (m *Block) Size() (n int)
- func (m *Block) String() string
- func (m *Block) Unmarshal(dAtA []byte) error
- func (m *Block) XXX_DiscardUnknown()
- func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Block) XXX_Merge(src proto.Message)
- func (m *Block) XXX_Size() int
- func (m *Block) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNotifications() []Notification
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgBlockSenders
- func (*MsgBlockSenders) Descriptor() ([]byte, []int)
- func (m *MsgBlockSenders) GetCreator() string
- func (msg *MsgBlockSenders) GetSignBytes() []byte
- func (msg *MsgBlockSenders) GetSigners() []sdk.AccAddress
- func (m *MsgBlockSenders) GetToBlock() []string
- func (m *MsgBlockSenders) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockSenders) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockSenders) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockSenders) ProtoMessage()
- func (m *MsgBlockSenders) Reset()
- func (msg *MsgBlockSenders) Route() string
- func (m *MsgBlockSenders) Size() (n int)
- func (m *MsgBlockSenders) String() string
- func (msg *MsgBlockSenders) Type() string
- func (m *MsgBlockSenders) Unmarshal(dAtA []byte) error
- func (msg *MsgBlockSenders) ValidateBasic() error
- func (m *MsgBlockSenders) XXX_DiscardUnknown()
- func (m *MsgBlockSenders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockSenders) XXX_Merge(src proto.Message)
- func (m *MsgBlockSenders) XXX_Size() int
- func (m *MsgBlockSenders) XXX_Unmarshal(b []byte) error
- type MsgBlockSendersResponse
- func (*MsgBlockSendersResponse) Descriptor() ([]byte, []int)
- func (m *MsgBlockSendersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBlockSendersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBlockSendersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBlockSendersResponse) ProtoMessage()
- func (m *MsgBlockSendersResponse) Reset()
- func (m *MsgBlockSendersResponse) Size() (n int)
- func (m *MsgBlockSendersResponse) String() string
- func (m *MsgBlockSendersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBlockSendersResponse) XXX_DiscardUnknown()
- func (m *MsgBlockSendersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBlockSendersResponse) XXX_Merge(src proto.Message)
- func (m *MsgBlockSendersResponse) XXX_Size() int
- func (m *MsgBlockSendersResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateNotification
- func (*MsgCreateNotification) Descriptor() ([]byte, []int)
- func (m *MsgCreateNotification) GetContents() string
- func (m *MsgCreateNotification) GetCreator() string
- func (m *MsgCreateNotification) GetPrivateContents() []byte
- func (msg *MsgCreateNotification) GetSignBytes() []byte
- func (msg *MsgCreateNotification) GetSigners() []sdk.AccAddress
- func (m *MsgCreateNotification) GetTo() string
- func (m *MsgCreateNotification) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateNotification) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateNotification) ProtoMessage()
- func (m *MsgCreateNotification) Reset()
- func (msg *MsgCreateNotification) Route() string
- func (m *MsgCreateNotification) Size() (n int)
- func (m *MsgCreateNotification) String() string
- func (msg *MsgCreateNotification) Type() string
- func (m *MsgCreateNotification) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateNotification) ValidateBasic() error
- func (m *MsgCreateNotification) XXX_DiscardUnknown()
- func (m *MsgCreateNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateNotification) XXX_Merge(src proto.Message)
- func (m *MsgCreateNotification) XXX_Size() int
- func (m *MsgCreateNotification) XXX_Unmarshal(b []byte) error
- type MsgCreateNotificationResponse
- func (*MsgCreateNotificationResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateNotificationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateNotificationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateNotificationResponse) ProtoMessage()
- func (m *MsgCreateNotificationResponse) Reset()
- func (m *MsgCreateNotificationResponse) Size() (n int)
- func (m *MsgCreateNotificationResponse) String() string
- func (m *MsgCreateNotificationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateNotificationResponse) XXX_DiscardUnknown()
- func (m *MsgCreateNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateNotificationResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateNotificationResponse) XXX_Size() int
- func (m *MsgCreateNotificationResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteNotification
- func (*MsgDeleteNotification) Descriptor() ([]byte, []int)
- func (m *MsgDeleteNotification) GetCreator() string
- func (m *MsgDeleteNotification) GetFrom() string
- func (msg *MsgDeleteNotification) GetSignBytes() []byte
- func (msg *MsgDeleteNotification) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteNotification) GetTime() int64
- func (m *MsgDeleteNotification) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteNotification) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteNotification) ProtoMessage()
- func (m *MsgDeleteNotification) Reset()
- func (msg *MsgDeleteNotification) Route() string
- func (m *MsgDeleteNotification) Size() (n int)
- func (m *MsgDeleteNotification) String() string
- func (msg *MsgDeleteNotification) Type() string
- func (m *MsgDeleteNotification) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteNotification) ValidateBasic() error
- func (m *MsgDeleteNotification) XXX_DiscardUnknown()
- func (m *MsgDeleteNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteNotification) XXX_Merge(src proto.Message)
- func (m *MsgDeleteNotification) XXX_Size() int
- func (m *MsgDeleteNotification) XXX_Unmarshal(b []byte) error
- type MsgDeleteNotificationResponse
- func (*MsgDeleteNotificationResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteNotificationResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteNotificationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteNotificationResponse) ProtoMessage()
- func (m *MsgDeleteNotificationResponse) Reset()
- func (m *MsgDeleteNotificationResponse) Size() (n int)
- func (m *MsgDeleteNotificationResponse) String() string
- func (m *MsgDeleteNotificationResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteNotificationResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteNotificationResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteNotificationResponse) XXX_Size() int
- func (m *MsgDeleteNotificationResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Notification
- func (*Notification) Descriptor() ([]byte, []int)
- func (m *Notification) GetContents() string
- func (m *Notification) GetFrom() string
- func (m *Notification) GetPrivateContents() []byte
- func (m *Notification) GetTime() int64
- func (m *Notification) GetTo() string
- func (m *Notification) Marshal() (dAtA []byte, err error)
- func (m *Notification) MarshalTo(dAtA []byte) (int, error)
- func (m *Notification) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Notification) ProtoMessage()
- func (m *Notification) Reset()
- func (m *Notification) Size() (n int)
- func (m *Notification) String() string
- func (m *Notification) Unmarshal(dAtA []byte) error
- func (m *Notification) XXX_DiscardUnknown()
- func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Notification) XXX_Merge(src proto.Message)
- func (m *Notification) XXX_Size() int
- func (m *Notification) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p *Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllNotifications
- func (*QueryAllNotifications) Descriptor() ([]byte, []int)
- func (m *QueryAllNotifications) GetPagination() *query.PageRequest
- func (m *QueryAllNotifications) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNotifications) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNotifications) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNotifications) ProtoMessage()
- func (m *QueryAllNotifications) Reset()
- func (m *QueryAllNotifications) Size() (n int)
- func (m *QueryAllNotifications) String() string
- func (m *QueryAllNotifications) Unmarshal(dAtA []byte) error
- func (m *QueryAllNotifications) XXX_DiscardUnknown()
- func (m *QueryAllNotifications) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNotifications) XXX_Merge(src proto.Message)
- func (m *QueryAllNotifications) XXX_Size() int
- func (m *QueryAllNotifications) XXX_Unmarshal(b []byte) error
- type QueryAllNotificationsByAddress
- func (*QueryAllNotificationsByAddress) Descriptor() ([]byte, []int)
- func (m *QueryAllNotificationsByAddress) GetPagination() *query.PageRequest
- func (m *QueryAllNotificationsByAddress) GetTo() string
- func (m *QueryAllNotificationsByAddress) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNotificationsByAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNotificationsByAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNotificationsByAddress) ProtoMessage()
- func (m *QueryAllNotificationsByAddress) Reset()
- func (m *QueryAllNotificationsByAddress) Size() (n int)
- func (m *QueryAllNotificationsByAddress) String() string
- func (m *QueryAllNotificationsByAddress) Unmarshal(dAtA []byte) error
- func (m *QueryAllNotificationsByAddress) XXX_DiscardUnknown()
- func (m *QueryAllNotificationsByAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNotificationsByAddress) XXX_Merge(src proto.Message)
- func (m *QueryAllNotificationsByAddress) XXX_Size() int
- func (m *QueryAllNotificationsByAddress) XXX_Unmarshal(b []byte) error
- type QueryAllNotificationsByAddressResponse
- func (*QueryAllNotificationsByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllNotificationsByAddressResponse) GetNotifications() []Notification
- func (m *QueryAllNotificationsByAddressResponse) GetPagination() *query.PageResponse
- func (m *QueryAllNotificationsByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNotificationsByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNotificationsByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNotificationsByAddressResponse) ProtoMessage()
- func (m *QueryAllNotificationsByAddressResponse) Reset()
- func (m *QueryAllNotificationsByAddressResponse) Size() (n int)
- func (m *QueryAllNotificationsByAddressResponse) String() string
- func (m *QueryAllNotificationsByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllNotificationsByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryAllNotificationsByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNotificationsByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllNotificationsByAddressResponse) XXX_Size() int
- func (m *QueryAllNotificationsByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryAllNotificationsResponse
- func (*QueryAllNotificationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllNotificationsResponse) GetNotifications() []Notification
- func (m *QueryAllNotificationsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllNotificationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllNotificationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllNotificationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllNotificationsResponse) ProtoMessage()
- func (m *QueryAllNotificationsResponse) Reset()
- func (m *QueryAllNotificationsResponse) Size() (n int)
- func (m *QueryAllNotificationsResponse) String() string
- func (m *QueryAllNotificationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllNotificationsResponse) XXX_DiscardUnknown()
- func (m *QueryAllNotificationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllNotificationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllNotificationsResponse) XXX_Size() int
- func (m *QueryAllNotificationsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryNotification
- func (*QueryNotification) Descriptor() ([]byte, []int)
- func (m *QueryNotification) GetFrom() string
- func (m *QueryNotification) GetTime() int64
- func (m *QueryNotification) GetTo() string
- func (m *QueryNotification) Marshal() (dAtA []byte, err error)
- func (m *QueryNotification) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNotification) ProtoMessage()
- func (m *QueryNotification) Reset()
- func (m *QueryNotification) Size() (n int)
- func (m *QueryNotification) String() string
- func (m *QueryNotification) Unmarshal(dAtA []byte) error
- func (m *QueryNotification) XXX_DiscardUnknown()
- func (m *QueryNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNotification) XXX_Merge(src proto.Message)
- func (m *QueryNotification) XXX_Size() int
- func (m *QueryNotification) XXX_Unmarshal(b []byte) error
- type QueryNotificationResponse
- func (*QueryNotificationResponse) Descriptor() ([]byte, []int)
- func (m *QueryNotificationResponse) GetNotification() Notification
- func (m *QueryNotificationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNotificationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNotificationResponse) ProtoMessage()
- func (m *QueryNotificationResponse) Reset()
- func (m *QueryNotificationResponse) Size() (n int)
- func (m *QueryNotificationResponse) String() string
- func (m *QueryNotificationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNotificationResponse) XXX_DiscardUnknown()
- func (m *QueryNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNotificationResponse) XXX_Merge(src proto.Message)
- func (m *QueryNotificationResponse) XXX_Size() int
- func (m *QueryNotificationResponse) XXX_Unmarshal(b []byte) error
- type QueryParams
- func (*QueryParams) Descriptor() ([]byte, []int)
- func (m *QueryParams) Marshal() (dAtA []byte, err error)
- func (m *QueryParams) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParams) ProtoMessage()
- func (m *QueryParams) Reset()
- func (m *QueryParams) Size() (n int)
- func (m *QueryParams) String() string
- func (m *QueryParams) Unmarshal(dAtA []byte) error
- func (m *QueryParams) XXX_DiscardUnknown()
- func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParams) XXX_Merge(src proto.Message)
- func (m *QueryParams) XXX_Size() int
- func (m *QueryParams) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type RnsKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BlockSenders(ctx context.Context, req *MsgBlockSenders) (*MsgBlockSendersResponse, error)
- func (*UnimplementedMsgServer) CreateNotification(ctx context.Context, req *MsgCreateNotification) (*MsgCreateNotificationResponse, error)
- func (*UnimplementedMsgServer) DeleteNotification(ctx context.Context, req *MsgDeleteNotification) (*MsgDeleteNotificationResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllNotifications(ctx context.Context, req *QueryAllNotifications) (*QueryAllNotificationsResponse, error)
- func (*UnimplementedQueryServer) AllNotificationsByAddress(ctx context.Context, req *QueryAllNotificationsByAddress) (*QueryAllNotificationsByAddressResponse, error)
- func (*UnimplementedQueryServer) Notification(ctx context.Context, req *QueryNotification) (*QueryNotificationResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "notification" // 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_notification" )
const ( TypeMsgCreateNotification = "create_notification" TypeMsgDeleteNotification = "delete_notification" )
const (
// NotificationsKeyPrefix is the prefix to retrieve all Notifications
NotificationsKeyPrefix = "Notification/"
)
const TypeMsgBlockSenders = "block_senders"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
var ( 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") ErrNotificationNotFound = sdkerrors.Register(ModuleName, 1105, "notification does not exist") ErrNotNotificationOwner = sdkerrors.Register(ModuleName, 1106, "you do not own this notification") ErrInvalidContents = sdkerrors.Register(ModuleName, 1110, "contents must be valid JSON") )
x/notifications module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthNotification = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowNotification = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupNotification = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func NotificationsKey ¶
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 RegisterQueryHandler ¶
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type Block ¶
type Block struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` BlockedAddress string `protobuf:"bytes,2,opt,name=blocked_address,json=blockedAddress,proto3" json:"blocked_address,omitempty"` }
func (*Block) Descriptor ¶
func (*Block) GetAddress ¶
func (*Block) GetBlockedAddress ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
func (*Block) XXX_DiscardUnknown ¶
func (m *Block) XXX_DiscardUnknown()
func (*Block) XXX_Marshal ¶
func (*Block) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` Notifications []Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications"` }
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNotifications ¶
func (m *GenesisState) GetNotifications() []Notification
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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"` ToBlock []string `protobuf:"bytes,2,rep,name=to_block,json=toBlock,proto3" json:"to_block,omitempty"` }
func NewMsgBlockSenders ¶
func NewMsgBlockSenders(creator string, toBlock ...string) *MsgBlockSenders
func (*MsgBlockSenders) Descriptor ¶
func (*MsgBlockSenders) Descriptor() ([]byte, []int)
func (*MsgBlockSenders) GetCreator ¶
func (m *MsgBlockSenders) GetCreator() string
func (*MsgBlockSenders) GetSignBytes ¶
func (msg *MsgBlockSenders) GetSignBytes() []byte
func (*MsgBlockSenders) GetSigners ¶
func (msg *MsgBlockSenders) GetSigners() []sdk.AccAddress
func (*MsgBlockSenders) GetToBlock ¶
func (m *MsgBlockSenders) GetToBlock() []string
func (*MsgBlockSenders) Marshal ¶
func (m *MsgBlockSenders) Marshal() (dAtA []byte, err 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 { CreateNotification(ctx context.Context, in *MsgCreateNotification, opts ...grpc.CallOption) (*MsgCreateNotificationResponse, error) DeleteNotification(ctx context.Context, in *MsgDeleteNotification, opts ...grpc.CallOption) (*MsgDeleteNotificationResponse, 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 MsgCreateNotification ¶
type MsgCreateNotification struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` Contents string `protobuf:"bytes,3,opt,name=contents,proto3" json:"contents,omitempty"` PrivateContents []byte `protobuf:"bytes,4,opt,name=private_contents,json=privateContents,proto3" json:"private_contents,omitempty"` }
func NewMsgCreateNotification ¶
func NewMsgCreateNotification( from string, to string, contents string, privateData []byte, ) *MsgCreateNotification
func (*MsgCreateNotification) Descriptor ¶
func (*MsgCreateNotification) Descriptor() ([]byte, []int)
func (*MsgCreateNotification) GetContents ¶
func (m *MsgCreateNotification) GetContents() string
func (*MsgCreateNotification) GetCreator ¶
func (m *MsgCreateNotification) GetCreator() string
func (*MsgCreateNotification) GetPrivateContents ¶
func (m *MsgCreateNotification) GetPrivateContents() []byte
func (*MsgCreateNotification) GetSignBytes ¶
func (msg *MsgCreateNotification) GetSignBytes() []byte
func (*MsgCreateNotification) GetSigners ¶
func (msg *MsgCreateNotification) GetSigners() []sdk.AccAddress
func (*MsgCreateNotification) GetTo ¶
func (m *MsgCreateNotification) GetTo() string
func (*MsgCreateNotification) Marshal ¶
func (m *MsgCreateNotification) Marshal() (dAtA []byte, err error)
func (*MsgCreateNotification) MarshalTo ¶
func (m *MsgCreateNotification) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateNotification) MarshalToSizedBuffer ¶
func (m *MsgCreateNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateNotification) ProtoMessage ¶
func (*MsgCreateNotification) ProtoMessage()
func (*MsgCreateNotification) Reset ¶
func (m *MsgCreateNotification) Reset()
func (*MsgCreateNotification) Route ¶
func (msg *MsgCreateNotification) Route() string
func (*MsgCreateNotification) Size ¶
func (m *MsgCreateNotification) Size() (n int)
func (*MsgCreateNotification) String ¶
func (m *MsgCreateNotification) String() string
func (*MsgCreateNotification) Type ¶
func (msg *MsgCreateNotification) Type() string
func (*MsgCreateNotification) Unmarshal ¶
func (m *MsgCreateNotification) Unmarshal(dAtA []byte) error
func (*MsgCreateNotification) ValidateBasic ¶
func (msg *MsgCreateNotification) ValidateBasic() error
func (*MsgCreateNotification) XXX_DiscardUnknown ¶
func (m *MsgCreateNotification) XXX_DiscardUnknown()
func (*MsgCreateNotification) XXX_Marshal ¶
func (m *MsgCreateNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateNotification) XXX_Merge ¶
func (m *MsgCreateNotification) XXX_Merge(src proto.Message)
func (*MsgCreateNotification) XXX_Size ¶
func (m *MsgCreateNotification) XXX_Size() int
func (*MsgCreateNotification) XXX_Unmarshal ¶
func (m *MsgCreateNotification) XXX_Unmarshal(b []byte) error
type MsgCreateNotificationResponse ¶
type MsgCreateNotificationResponse struct { }
func (*MsgCreateNotificationResponse) Descriptor ¶
func (*MsgCreateNotificationResponse) Descriptor() ([]byte, []int)
func (*MsgCreateNotificationResponse) Marshal ¶
func (m *MsgCreateNotificationResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateNotificationResponse) MarshalTo ¶
func (m *MsgCreateNotificationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateNotificationResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateNotificationResponse) ProtoMessage ¶
func (*MsgCreateNotificationResponse) ProtoMessage()
func (*MsgCreateNotificationResponse) Reset ¶
func (m *MsgCreateNotificationResponse) Reset()
func (*MsgCreateNotificationResponse) Size ¶
func (m *MsgCreateNotificationResponse) Size() (n int)
func (*MsgCreateNotificationResponse) String ¶
func (m *MsgCreateNotificationResponse) String() string
func (*MsgCreateNotificationResponse) Unmarshal ¶
func (m *MsgCreateNotificationResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateNotificationResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateNotificationResponse) XXX_DiscardUnknown()
func (*MsgCreateNotificationResponse) XXX_Marshal ¶
func (m *MsgCreateNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateNotificationResponse) XXX_Merge ¶
func (m *MsgCreateNotificationResponse) XXX_Merge(src proto.Message)
func (*MsgCreateNotificationResponse) XXX_Size ¶
func (m *MsgCreateNotificationResponse) XXX_Size() int
func (*MsgCreateNotificationResponse) XXX_Unmarshal ¶
func (m *MsgCreateNotificationResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteNotification ¶
type MsgDeleteNotification struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` }
func NewMsgDeleteNotification ¶
func NewMsgDeleteNotification( to string, from string, timeStamp int64, ) *MsgDeleteNotification
func (*MsgDeleteNotification) Descriptor ¶
func (*MsgDeleteNotification) Descriptor() ([]byte, []int)
func (*MsgDeleteNotification) GetCreator ¶
func (m *MsgDeleteNotification) GetCreator() string
func (*MsgDeleteNotification) GetFrom ¶
func (m *MsgDeleteNotification) GetFrom() string
func (*MsgDeleteNotification) GetSignBytes ¶
func (msg *MsgDeleteNotification) GetSignBytes() []byte
func (*MsgDeleteNotification) GetSigners ¶
func (msg *MsgDeleteNotification) GetSigners() []sdk.AccAddress
func (*MsgDeleteNotification) GetTime ¶
func (m *MsgDeleteNotification) GetTime() int64
func (*MsgDeleteNotification) Marshal ¶
func (m *MsgDeleteNotification) Marshal() (dAtA []byte, err error)
func (*MsgDeleteNotification) MarshalTo ¶
func (m *MsgDeleteNotification) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteNotification) MarshalToSizedBuffer ¶
func (m *MsgDeleteNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteNotification) ProtoMessage ¶
func (*MsgDeleteNotification) ProtoMessage()
func (*MsgDeleteNotification) Reset ¶
func (m *MsgDeleteNotification) Reset()
func (*MsgDeleteNotification) Route ¶
func (msg *MsgDeleteNotification) Route() string
func (*MsgDeleteNotification) Size ¶
func (m *MsgDeleteNotification) Size() (n int)
func (*MsgDeleteNotification) String ¶
func (m *MsgDeleteNotification) String() string
func (*MsgDeleteNotification) Type ¶
func (msg *MsgDeleteNotification) Type() string
func (*MsgDeleteNotification) Unmarshal ¶
func (m *MsgDeleteNotification) Unmarshal(dAtA []byte) error
func (*MsgDeleteNotification) ValidateBasic ¶
func (msg *MsgDeleteNotification) ValidateBasic() error
func (*MsgDeleteNotification) XXX_DiscardUnknown ¶
func (m *MsgDeleteNotification) XXX_DiscardUnknown()
func (*MsgDeleteNotification) XXX_Marshal ¶
func (m *MsgDeleteNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteNotification) XXX_Merge ¶
func (m *MsgDeleteNotification) XXX_Merge(src proto.Message)
func (*MsgDeleteNotification) XXX_Size ¶
func (m *MsgDeleteNotification) XXX_Size() int
func (*MsgDeleteNotification) XXX_Unmarshal ¶
func (m *MsgDeleteNotification) XXX_Unmarshal(b []byte) error
type MsgDeleteNotificationResponse ¶
type MsgDeleteNotificationResponse struct { }
func (*MsgDeleteNotificationResponse) Descriptor ¶
func (*MsgDeleteNotificationResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteNotificationResponse) Marshal ¶
func (m *MsgDeleteNotificationResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteNotificationResponse) MarshalTo ¶
func (m *MsgDeleteNotificationResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteNotificationResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteNotificationResponse) ProtoMessage ¶
func (*MsgDeleteNotificationResponse) ProtoMessage()
func (*MsgDeleteNotificationResponse) Reset ¶
func (m *MsgDeleteNotificationResponse) Reset()
func (*MsgDeleteNotificationResponse) Size ¶
func (m *MsgDeleteNotificationResponse) Size() (n int)
func (*MsgDeleteNotificationResponse) String ¶
func (m *MsgDeleteNotificationResponse) String() string
func (*MsgDeleteNotificationResponse) Unmarshal ¶
func (m *MsgDeleteNotificationResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteNotificationResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteNotificationResponse) XXX_DiscardUnknown()
func (*MsgDeleteNotificationResponse) XXX_Marshal ¶
func (m *MsgDeleteNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteNotificationResponse) XXX_Merge ¶
func (m *MsgDeleteNotificationResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteNotificationResponse) XXX_Size ¶
func (m *MsgDeleteNotificationResponse) XXX_Size() int
func (*MsgDeleteNotificationResponse) XXX_Unmarshal ¶
func (m *MsgDeleteNotificationResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateNotification(context.Context, *MsgCreateNotification) (*MsgCreateNotificationResponse, error) DeleteNotification(context.Context, *MsgDeleteNotification) (*MsgDeleteNotificationResponse, error) BlockSenders(context.Context, *MsgBlockSenders) (*MsgBlockSendersResponse, error) }
MsgServer is the server API for Msg service.
type Notification ¶
type Notification struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` Contents string `protobuf:"bytes,4,opt,name=contents,proto3" json:"contents,omitempty"` PrivateContents []byte `protobuf:"bytes,5,opt,name=private_contents,json=privateContents,proto3" json:"private_contents,omitempty"` }
func (*Notification) Descriptor ¶
func (*Notification) Descriptor() ([]byte, []int)
func (*Notification) GetContents ¶
func (m *Notification) GetContents() string
func (*Notification) GetFrom ¶
func (m *Notification) GetFrom() string
func (*Notification) GetPrivateContents ¶
func (m *Notification) GetPrivateContents() []byte
func (*Notification) GetTime ¶
func (m *Notification) GetTime() int64
func (*Notification) GetTo ¶
func (m *Notification) GetTo() string
func (*Notification) Marshal ¶
func (m *Notification) Marshal() (dAtA []byte, err error)
func (*Notification) MarshalToSizedBuffer ¶
func (m *Notification) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Notification) ProtoMessage ¶
func (*Notification) ProtoMessage()
func (*Notification) Reset ¶
func (m *Notification) Reset()
func (*Notification) Size ¶
func (m *Notification) Size() (n int)
func (*Notification) String ¶
func (m *Notification) String() string
func (*Notification) Unmarshal ¶
func (m *Notification) Unmarshal(dAtA []byte) error
func (*Notification) XXX_DiscardUnknown ¶
func (m *Notification) XXX_DiscardUnknown()
func (*Notification) XXX_Marshal ¶
func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Notification) XXX_Merge ¶
func (m *Notification) XXX_Merge(src proto.Message)
func (*Notification) XXX_Size ¶
func (m *Notification) XXX_Size() int
func (*Notification) XXX_Unmarshal ¶
func (m *Notification) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { }
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllNotifications ¶
type QueryAllNotifications struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllNotifications) Descriptor ¶
func (*QueryAllNotifications) Descriptor() ([]byte, []int)
func (*QueryAllNotifications) GetPagination ¶
func (m *QueryAllNotifications) GetPagination() *query.PageRequest
func (*QueryAllNotifications) Marshal ¶
func (m *QueryAllNotifications) Marshal() (dAtA []byte, err error)
func (*QueryAllNotifications) MarshalTo ¶
func (m *QueryAllNotifications) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllNotifications) MarshalToSizedBuffer ¶
func (m *QueryAllNotifications) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllNotifications) ProtoMessage ¶
func (*QueryAllNotifications) ProtoMessage()
func (*QueryAllNotifications) Reset ¶
func (m *QueryAllNotifications) Reset()
func (*QueryAllNotifications) Size ¶
func (m *QueryAllNotifications) Size() (n int)
func (*QueryAllNotifications) String ¶
func (m *QueryAllNotifications) String() string
func (*QueryAllNotifications) Unmarshal ¶
func (m *QueryAllNotifications) Unmarshal(dAtA []byte) error
func (*QueryAllNotifications) XXX_DiscardUnknown ¶
func (m *QueryAllNotifications) XXX_DiscardUnknown()
func (*QueryAllNotifications) XXX_Marshal ¶
func (m *QueryAllNotifications) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllNotifications) XXX_Merge ¶
func (m *QueryAllNotifications) XXX_Merge(src proto.Message)
func (*QueryAllNotifications) XXX_Size ¶
func (m *QueryAllNotifications) XXX_Size() int
func (*QueryAllNotifications) XXX_Unmarshal ¶
func (m *QueryAllNotifications) XXX_Unmarshal(b []byte) error
type QueryAllNotificationsByAddress ¶
type QueryAllNotificationsByAddress struct { Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` To string `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"` }
func (*QueryAllNotificationsByAddress) Descriptor ¶
func (*QueryAllNotificationsByAddress) Descriptor() ([]byte, []int)
func (*QueryAllNotificationsByAddress) GetPagination ¶
func (m *QueryAllNotificationsByAddress) GetPagination() *query.PageRequest
func (*QueryAllNotificationsByAddress) GetTo ¶
func (m *QueryAllNotificationsByAddress) GetTo() string
func (*QueryAllNotificationsByAddress) Marshal ¶
func (m *QueryAllNotificationsByAddress) Marshal() (dAtA []byte, err error)
func (*QueryAllNotificationsByAddress) MarshalTo ¶
func (m *QueryAllNotificationsByAddress) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllNotificationsByAddress) MarshalToSizedBuffer ¶
func (m *QueryAllNotificationsByAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllNotificationsByAddress) ProtoMessage ¶
func (*QueryAllNotificationsByAddress) ProtoMessage()
func (*QueryAllNotificationsByAddress) Reset ¶
func (m *QueryAllNotificationsByAddress) Reset()
func (*QueryAllNotificationsByAddress) Size ¶
func (m *QueryAllNotificationsByAddress) Size() (n int)
func (*QueryAllNotificationsByAddress) String ¶
func (m *QueryAllNotificationsByAddress) String() string
func (*QueryAllNotificationsByAddress) Unmarshal ¶
func (m *QueryAllNotificationsByAddress) Unmarshal(dAtA []byte) error
func (*QueryAllNotificationsByAddress) XXX_DiscardUnknown ¶
func (m *QueryAllNotificationsByAddress) XXX_DiscardUnknown()
func (*QueryAllNotificationsByAddress) XXX_Marshal ¶
func (m *QueryAllNotificationsByAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllNotificationsByAddress) XXX_Merge ¶
func (m *QueryAllNotificationsByAddress) XXX_Merge(src proto.Message)
func (*QueryAllNotificationsByAddress) XXX_Size ¶
func (m *QueryAllNotificationsByAddress) XXX_Size() int
func (*QueryAllNotificationsByAddress) XXX_Unmarshal ¶
func (m *QueryAllNotificationsByAddress) XXX_Unmarshal(b []byte) error
type QueryAllNotificationsByAddressResponse ¶
type QueryAllNotificationsByAddressResponse struct { Notifications []Notification `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() []Notification
func (*QueryAllNotificationsByAddressResponse) GetPagination ¶
func (m *QueryAllNotificationsByAddressResponse) GetPagination() *query.PageResponse
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) ProtoMessage()
func (*QueryAllNotificationsByAddressResponse) Reset ¶
func (m *QueryAllNotificationsByAddressResponse) Reset()
func (*QueryAllNotificationsByAddressResponse) Size ¶
func (m *QueryAllNotificationsByAddressResponse) Size() (n int)
func (*QueryAllNotificationsByAddressResponse) String ¶
func (m *QueryAllNotificationsByAddressResponse) String() 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 (m *QueryAllNotificationsByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryAllNotificationsByAddressResponse) XXX_Size ¶
func (m *QueryAllNotificationsByAddressResponse) XXX_Size() int
func (*QueryAllNotificationsByAddressResponse) XXX_Unmarshal ¶
func (m *QueryAllNotificationsByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryAllNotificationsResponse ¶
type QueryAllNotificationsResponse struct { Notifications []Notification `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() []Notification
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 (m *QueryAllNotificationsResponse) String() 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 { Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a Notification object Notification(ctx context.Context, in *QueryNotification, opts ...grpc.CallOption) (*QueryNotificationResponse, error) // Queries a list of Notification items. AllNotifications(ctx context.Context, in *QueryAllNotifications, opts ...grpc.CallOption) (*QueryAllNotificationsResponse, error) // Queries a list of Notification items by address. AllNotificationsByAddress(ctx context.Context, in *QueryAllNotificationsByAddress, opts ...grpc.CallOption) (*QueryAllNotificationsByAddressResponse, 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 QueryNotification ¶
type QueryNotification struct { To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` }
func (*QueryNotification) Descriptor ¶
func (*QueryNotification) Descriptor() ([]byte, []int)
func (*QueryNotification) GetFrom ¶
func (m *QueryNotification) GetFrom() string
func (*QueryNotification) GetTime ¶
func (m *QueryNotification) GetTime() int64
func (*QueryNotification) GetTo ¶
func (m *QueryNotification) GetTo() string
func (*QueryNotification) Marshal ¶
func (m *QueryNotification) Marshal() (dAtA []byte, err error)
func (*QueryNotification) MarshalTo ¶
func (m *QueryNotification) MarshalTo(dAtA []byte) (int, error)
func (*QueryNotification) MarshalToSizedBuffer ¶
func (m *QueryNotification) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNotification) ProtoMessage ¶
func (*QueryNotification) ProtoMessage()
func (*QueryNotification) Reset ¶
func (m *QueryNotification) Reset()
func (*QueryNotification) Size ¶
func (m *QueryNotification) Size() (n int)
func (*QueryNotification) String ¶
func (m *QueryNotification) String() string
func (*QueryNotification) Unmarshal ¶
func (m *QueryNotification) Unmarshal(dAtA []byte) error
func (*QueryNotification) XXX_DiscardUnknown ¶
func (m *QueryNotification) XXX_DiscardUnknown()
func (*QueryNotification) XXX_Marshal ¶
func (m *QueryNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNotification) XXX_Merge ¶
func (m *QueryNotification) XXX_Merge(src proto.Message)
func (*QueryNotification) XXX_Size ¶
func (m *QueryNotification) XXX_Size() int
func (*QueryNotification) XXX_Unmarshal ¶
func (m *QueryNotification) XXX_Unmarshal(b []byte) error
type QueryNotificationResponse ¶
type QueryNotificationResponse struct {
Notification Notification `protobuf:"bytes,1,opt,name=notification,proto3" json:"notification"`
}
func (*QueryNotificationResponse) Descriptor ¶
func (*QueryNotificationResponse) Descriptor() ([]byte, []int)
func (*QueryNotificationResponse) GetNotification ¶
func (m *QueryNotificationResponse) GetNotification() Notification
func (*QueryNotificationResponse) Marshal ¶
func (m *QueryNotificationResponse) Marshal() (dAtA []byte, err error)
func (*QueryNotificationResponse) MarshalTo ¶
func (m *QueryNotificationResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNotificationResponse) MarshalToSizedBuffer ¶
func (m *QueryNotificationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNotificationResponse) ProtoMessage ¶
func (*QueryNotificationResponse) ProtoMessage()
func (*QueryNotificationResponse) Reset ¶
func (m *QueryNotificationResponse) Reset()
func (*QueryNotificationResponse) Size ¶
func (m *QueryNotificationResponse) Size() (n int)
func (*QueryNotificationResponse) String ¶
func (m *QueryNotificationResponse) String() string
func (*QueryNotificationResponse) Unmarshal ¶
func (m *QueryNotificationResponse) Unmarshal(dAtA []byte) error
func (*QueryNotificationResponse) XXX_DiscardUnknown ¶
func (m *QueryNotificationResponse) XXX_DiscardUnknown()
func (*QueryNotificationResponse) XXX_Marshal ¶
func (m *QueryNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNotificationResponse) XXX_Merge ¶
func (m *QueryNotificationResponse) XXX_Merge(src proto.Message)
func (*QueryNotificationResponse) XXX_Size ¶
func (m *QueryNotificationResponse) XXX_Size() int
func (*QueryNotificationResponse) XXX_Unmarshal ¶
func (m *QueryNotificationResponse) XXX_Unmarshal(b []byte) error
type QueryParams ¶
type QueryParams struct { }
func (*QueryParams) Descriptor ¶
func (*QueryParams) Descriptor() ([]byte, []int)
func (*QueryParams) Marshal ¶
func (m *QueryParams) Marshal() (dAtA []byte, err error)
func (*QueryParams) MarshalToSizedBuffer ¶
func (m *QueryParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParams) ProtoMessage ¶
func (*QueryParams) ProtoMessage()
func (*QueryParams) Reset ¶
func (m *QueryParams) Reset()
func (*QueryParams) Size ¶
func (m *QueryParams) Size() (n int)
func (*QueryParams) String ¶
func (m *QueryParams) String() string
func (*QueryParams) Unmarshal ¶
func (m *QueryParams) Unmarshal(dAtA []byte) error
func (*QueryParams) XXX_DiscardUnknown ¶
func (m *QueryParams) XXX_DiscardUnknown()
func (*QueryParams) XXX_Marshal ¶
func (m *QueryParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParams) XXX_Merge ¶
func (m *QueryParams) XXX_Merge(src proto.Message)
func (*QueryParams) XXX_Size ¶
func (m *QueryParams) XXX_Size() int
func (*QueryParams) XXX_Unmarshal ¶
func (m *QueryParams) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
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 { Params(context.Context, *QueryParams) (*QueryParamsResponse, error) // Queries a Notification object Notification(context.Context, *QueryNotification) (*QueryNotificationResponse, error) // Queries a list of Notification items. AllNotifications(context.Context, *QueryAllNotifications) (*QueryAllNotificationsResponse, error) // Queries a list of Notification items by address. AllNotificationsByAddress(context.Context, *QueryAllNotificationsByAddress) (*QueryAllNotificationsByAddressResponse, 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) BlockSenders(ctx context.Context, req *MsgBlockSenders) (*MsgBlockSendersResponse, error)
func (*UnimplementedMsgServer) CreateNotification ¶
func (*UnimplementedMsgServer) CreateNotification(ctx context.Context, req *MsgCreateNotification) (*MsgCreateNotificationResponse, error)
func (*UnimplementedMsgServer) DeleteNotification ¶
func (*UnimplementedMsgServer) DeleteNotification(ctx context.Context, req *MsgDeleteNotification) (*MsgDeleteNotificationResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllNotifications ¶
func (*UnimplementedQueryServer) AllNotifications(ctx context.Context, req *QueryAllNotifications) (*QueryAllNotificationsResponse, error)
func (*UnimplementedQueryServer) AllNotificationsByAddress ¶
func (*UnimplementedQueryServer) AllNotificationsByAddress(ctx context.Context, req *QueryAllNotificationsByAddress) (*QueryAllNotificationsByAddressResponse, error)
func (*UnimplementedQueryServer) Notification ¶
func (*UnimplementedQueryServer) Notification(ctx context.Context, req *QueryNotification) (*QueryNotificationResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParams) (*QueryParamsResponse, error)