types

package
v4.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 32 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 = "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"
)
View Source
const (
	TypeMsgCreateNotification = "create_notification"
	TypeMsgDeleteNotification = "delete_notification"
)
View Source
const (
	// NotificationsKeyPrefix is the prefix to retrieve all Notifications
	NotificationsKeyPrefix = "Notification/"
)
View Source
const TypeMsgBlockSenders = "block_senders"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
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

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 (
	ErrInvalidLengthNotification        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowNotification          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupNotification = 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 BlockKey

func BlockKey(
	owner string,
	address string,
) []byte

BlockKey returns the store key to retrieve a block object from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func NotificationsKey

func NotificationsKey(
	to string,
	from string,
	time int64,
) []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 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) Descriptor() ([]byte, []int)

func (*Block) GetAddress

func (m *Block) GetAddress() string

func (*Block) GetBlockedAddress

func (m *Block) GetBlockedAddress() string

func (*Block) Marshal

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

func (*Block) MarshalTo

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

func (*Block) MarshalToSizedBuffer

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

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) Size

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

func (*Block) String

func (m *Block) String() string

func (*Block) Unmarshal

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

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

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

func (*Block) XXX_Merge

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

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

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

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) 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"`
	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) 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 {
	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 (*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 (*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

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) MarshalTo

func (m *Notification) MarshalTo(dAtA []byte) (int, 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 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 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 (*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 (*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 (*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 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 (*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) MarshalTo

func (m *QueryParams) MarshalTo(dAtA []byte) (int, 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 RnsKeeper

type RnsKeeper interface {
	Resolve(ctx sdk.Context, name string) (sdk.AccAddress, error)
}

RnsKeeper defines the expected interface needed to resolve RNS names.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BlockSenders

func (*UnimplementedMsgServer) CreateNotification

func (*UnimplementedMsgServer) DeleteNotification

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllNotifications

func (*UnimplementedQueryServer) Notification

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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