types

package
v7.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreatedReport           = "created_report"
	EventTypeReportedPost            = "reported_post"
	EventTypeReportedUser            = "reported_user"
	EventTypeDeletedReport           = "deleted_report"
	EventTypeSupportedStandardReason = "supported_standard_reason"
	EventTypeAddedReportingReason    = "added_reporting_reason"
	EventTypeRemovedReportingReason  = "removed_reporting_reason"

	AttributeKeyReportID         = "report_id"
	AttributeKeyReporter         = "reporter"
	AttributeKeyCreationTime     = "creation_time"
	AttributeKeyStandardReasonID = "standard_reason_id"
	AttributeKeyReasonID         = "reason_id"
	AttributeKeyUser             = "user"
)
View Source
const (
	ModuleName   = "reports"
	RouterKey    = ModuleName
	StoreKey     = ModuleName
	QuerierRoute = ModuleName

	ActionCreateReport          = "create_report"
	ActionDeleteReport          = "delete_report"
	ActionSupportStandardReason = "support_standard_reason"
	ActionAddReason             = "add_reason"
	ActionRemoveReason          = "remove_reason"
	ActionUpdateParams          = "update_params"
)
View Source
const (
	// DefaultParamsSpace represents the default paramspace for the Params keeper
	DefaultParamsSpace = ModuleName
)

Variables

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 (
	NextReportIDPrefix = []byte{0x01}
	ReportPrefix       = []byte{0x02}
	PostsReportsPrefix = []byte{0x03}
	UsersReportsPrefix = []byte{0x04}

	NextReasonIDPrefix = []byte{0x10}
	ReasonPrefix       = []byte{0x11}

	ParamsKey = []byte{0x20}
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgs        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgs          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// PermissionReportContent allows users to report contents
	PermissionReportContent = subspacestypes.RegisterPermission("report content")

	// PermissionDeleteOwnReports allows users to delete existing reports made by their own
	PermissionDeleteOwnReports = subspacestypes.RegisterPermission("delete own reports")

	// PermissionManageReports allows users to manage other users reports
	PermissionManageReports = subspacestypes.RegisterPermission("manage reports")

	// PermissionManageReasons allows users to manage a subspace reasons for reporting
	PermissionManageReasons = subspacestypes.RegisterPermission("manage reasons")
)
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 (

	// AminoCdc references the global x/reports module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/reports and
	// defined at the application level.
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	// DefaultReasons represents the default set of reasons that can be adopted by subspaces
	DefaultReasons []StandardReason
)
View Source
var (
	ErrInvalidGenesis = errors.Register(ModuleName, 1, "invalid genesis state")
)
View Source
var (
	// ReasonsKey represents the params key used to store available default reasons
	ReasonsKey = []byte("StandardReasons")
)

Functions

func ContainsReason

func ContainsReason(reasons []uint32, reasonID uint32) bool

ContainsReason returns true iff the given reasons contain the provided reasonID

func GetReasonIDBytes

func GetReasonIDBytes(reasonID uint32) (reasonIDBz []byte)

GetReasonIDBytes returns the byte representation of the reasonID

func GetReasonIDFromBytes

func GetReasonIDFromBytes(bz []byte) (reasonID uint32)

GetReasonIDFromBytes returns reasonID in uint32 format from a byte array

func GetReportIDBytes

func GetReportIDBytes(reportID uint64) (reportIDBz []byte)

GetReportIDBytes returns the byte representation of the reportID

func GetReportIDFromBytes

func GetReportIDFromBytes(bz []byte) (reportID uint64)

GetReportIDFromBytes returns reportID in uint64 format from a byte array

func GetUserAddressBytes

func GetUserAddressBytes(address string) []byte

GetUserAddressBytes returns the byte representation of the given user address

func NextReasonIDStoreKey

func NextReasonIDStoreKey(subspaceID uint64) []byte

NextReasonIDStoreKey returns the key used to store the next reason id for the given subspace

func NextReportIDStoreKey

func NextReportIDStoreKey(subspaceID uint64) []byte

NextReportIDStoreKey returns the key used to store the next report id for the given subspace

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable returns the key declaration for the parameters

func ParseReasonID

func ParseReasonID(value string) (uint32, error)

ParseReasonID parses the given value as a reason id, returning an error if it's invalid

func ParseReasonsIDs

func ParseReasonsIDs(value string) ([]uint32, error)

ParseReasonsIDs parses the given comma-separated values as a list of reasons ids.

func ParseReportID

func ParseReportID(value string) (uint64, error)

ParseReportID parses the given value as a report id, returning an error if it's invalid

func PostReportStoreKey

func PostReportStoreKey(subspaceID uint64, postID uint64, reporter string) []byte

PostReportStoreKey returns the key used to store the reference to a report for the post from the given reporter

func PostReportsPrefix

func PostReportsPrefix(subspaceID uint64, postID uint64) []byte

PostReportsPrefix returns the prefix used to store the references of the reports for the given post

func ReasonStoreKey

func ReasonStoreKey(subspaceID uint64, reasonID uint32) []byte

ReasonStoreKey returns the key used to store the reason with the given subspace id and reason id

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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)

func ReportStoreKey

func ReportStoreKey(subspaceID uint64, reportID uint64) []byte

ReportStoreKey returns the key used to store the report with the given subspace id and report id

func SubspaceReasonsPrefix

func SubspaceReasonsPrefix(subspaceID uint64) []byte

SubspaceReasonsPrefix returns the store prefix used to store all the reports for the given subspace

func SubspaceReportsPrefix

func SubspaceReportsPrefix(subspaceID uint64) []byte

SubspaceReportsPrefix returns the store prefix used to store all the reports related to the given subspace

func UserReportStoreKey

func UserReportStoreKey(subspaceID uint64, user string, reporter string) []byte

UserReportStoreKey returns the key used to store the report for the given user having the given id

func UserReportsPrefix

func UserReportsPrefix(subspaceID uint64, user string) []byte

UserReportsPrefix returns the prefix used to store the reports from the given reporter

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the given genesis state and returns an error if something is invalid

func ValidateStandardReasonsParam

func ValidateStandardReasonsParam(i interface{}) error

ValidateStandardReasonsParam validates the reasons params value

Types

type GenesisState

type GenesisState struct {
	SubspacesData []SubspaceDataEntry `protobuf:"bytes,1,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"`
	Reasons       []Reason            `protobuf:"bytes,2,rep,name=reasons,proto3" json:"reasons"`
	Reports       []Report            `protobuf:"bytes,3,rep,name=reports,proto3" json:"reports"`
	Params        Params              `protobuf:"bytes,4,opt,name=params,proto3" json:"params"`
}

GenesisState defines the reports module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a DefaultGenesisState

func NewGenesisState

func NewGenesisState(subspaces []SubspaceDataEntry, reasons []Reason, reports []Report, params Params) *GenesisState

NewGenesisState returns a new genesis state instance

func (*GenesisState) Descriptor

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

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

func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

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 MsgAddReason

type MsgAddReason struct {
	// Id of the subspace for which to add the reason
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Title of the reason
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	// (optional) Extended description of the reason and the cases it applies to
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Address of the user adding the supported reason
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgAddReason represents the message to be used when adding a new supported reason

func NewMsgAddReason

func NewMsgAddReason(subspaceID uint64, title string, description string, signer string) *MsgAddReason

NewMsgAddReason returns a new MsgAddReason instance

func (*MsgAddReason) Descriptor

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

func (*MsgAddReason) GetDescription

func (m *MsgAddReason) GetDescription() string

func (*MsgAddReason) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgAddReason) GetSigner

func (m *MsgAddReason) GetSigner() string

func (*MsgAddReason) GetSigners

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

GetSigners defines whose signature is required

func (*MsgAddReason) GetSubspaceID

func (m *MsgAddReason) GetSubspaceID() uint64

func (*MsgAddReason) GetTitle

func (m *MsgAddReason) GetTitle() string

func (*MsgAddReason) IsManageSubspaceMsg

func (msg *MsgAddReason) IsManageSubspaceMsg()

IsManageSubspaceMsg implements subspacestypes.ManageSubspaceMsg

func (*MsgAddReason) Marshal

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

func (*MsgAddReason) MarshalTo

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

func (*MsgAddReason) MarshalToSizedBuffer

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

func (*MsgAddReason) ProtoMessage

func (*MsgAddReason) ProtoMessage()

func (*MsgAddReason) Reset

func (m *MsgAddReason) Reset()

func (*MsgAddReason) Route

func (msg *MsgAddReason) Route() string

Route should return the name of the module

func (*MsgAddReason) Size

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

func (*MsgAddReason) String

func (m *MsgAddReason) String() string

func (*MsgAddReason) Type

func (msg *MsgAddReason) Type() string

Type should return the action

func (*MsgAddReason) Unmarshal

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

func (*MsgAddReason) ValidateBasic

func (msg *MsgAddReason) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgAddReason) XXX_DiscardUnknown

func (m *MsgAddReason) XXX_DiscardUnknown()

func (*MsgAddReason) XXX_Marshal

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

func (*MsgAddReason) XXX_Merge

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

func (*MsgAddReason) XXX_Size

func (m *MsgAddReason) XXX_Size() int

func (*MsgAddReason) XXX_Unmarshal

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

type MsgAddReasonResponse

type MsgAddReasonResponse struct {
	// Id of the newly supported reason
	ReasonID uint32 `protobuf:"varint,1,opt,name=reason_id,json=reasonId,proto3" json:"reason_id,omitempty" yaml:"reason_id"`
}

MsgAddReasonResponse represents the Msg/AddReason response type

func (*MsgAddReasonResponse) Descriptor

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

func (*MsgAddReasonResponse) GetReasonID

func (m *MsgAddReasonResponse) GetReasonID() uint32

func (*MsgAddReasonResponse) Marshal

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

func (*MsgAddReasonResponse) MarshalTo

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

func (*MsgAddReasonResponse) MarshalToSizedBuffer

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

func (*MsgAddReasonResponse) ProtoMessage

func (*MsgAddReasonResponse) ProtoMessage()

func (*MsgAddReasonResponse) Reset

func (m *MsgAddReasonResponse) Reset()

func (*MsgAddReasonResponse) Size

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

func (*MsgAddReasonResponse) String

func (m *MsgAddReasonResponse) String() string

func (*MsgAddReasonResponse) Unmarshal

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

func (*MsgAddReasonResponse) XXX_DiscardUnknown

func (m *MsgAddReasonResponse) XXX_DiscardUnknown()

func (*MsgAddReasonResponse) XXX_Marshal

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

func (*MsgAddReasonResponse) XXX_Merge

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

func (*MsgAddReasonResponse) XXX_Size

func (m *MsgAddReasonResponse) XXX_Size() int

func (*MsgAddReasonResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateReport allows to create a new report
	CreateReport(ctx context.Context, in *MsgCreateReport, opts ...grpc.CallOption) (*MsgCreateReportResponse, error)
	// DeleteReport allows to delete an existing report
	DeleteReport(ctx context.Context, in *MsgDeleteReport, opts ...grpc.CallOption) (*MsgDeleteReportResponse, error)
	// SupportStandardReason allows to support one of the reasons present inside
	// the module params
	SupportStandardReason(ctx context.Context, in *MsgSupportStandardReason, opts ...grpc.CallOption) (*MsgSupportStandardReasonResponse, error)
	// AddReason allows to add a new supported reporting reason
	AddReason(ctx context.Context, in *MsgAddReason, opts ...grpc.CallOption) (*MsgAddReasonResponse, error)
	// RemoveReason allows to remove a supported reporting reason
	RemoveReason(ctx context.Context, in *MsgRemoveReason, opts ...grpc.CallOption) (*MsgRemoveReasonResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	//
	// Since: Desmos 5.0.0
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgCreateReport

type MsgCreateReport struct {
	// Id of the subspace for which the report should be stored
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the reason this report has been created for
	ReasonsIDs []uint32 `protobuf:"varint,2,rep,packed,name=reasons_ids,json=reasonsIds,proto3" json:"reasons_ids,omitempty" yaml:"reasons_ids"`
	// (optional) Message attached to this report
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty" yaml:"message"`
	// Address of the reporter
	Reporter string `protobuf:"bytes,4,opt,name=reporter,proto3" json:"reporter,omitempty" yaml:"reporter"`
	// Target of the report
	Target *types.Any `protobuf:"bytes,5,opt,name=target,proto3" json:"target,omitempty" yaml:"target"`
}

MsgCreateReport represents the message to be used to create a report

func NewMsgCreateReport

func NewMsgCreateReport(
	subspaceID uint64,
	reasonsIDs []uint32,
	message string,
	target ReportTarget,
	reporter string,
) *MsgCreateReport

NewMsgCreateReport returns a new MsgCreateReport instance

func (*MsgCreateReport) Descriptor

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

func (*MsgCreateReport) GetMessage

func (m *MsgCreateReport) GetMessage() string

func (*MsgCreateReport) GetReasonsIDs

func (m *MsgCreateReport) GetReasonsIDs() []uint32

func (*MsgCreateReport) GetReporter

func (m *MsgCreateReport) GetReporter() string

func (*MsgCreateReport) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgCreateReport) GetSigners

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

GetSigners defines whose signature is required

func (*MsgCreateReport) GetSubspaceID

func (m *MsgCreateReport) GetSubspaceID() uint64

func (*MsgCreateReport) GetTarget

func (m *MsgCreateReport) GetTarget() *types.Any

func (*MsgCreateReport) Marshal

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

func (*MsgCreateReport) MarshalTo

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

func (*MsgCreateReport) MarshalToSizedBuffer

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

func (*MsgCreateReport) ProtoMessage

func (*MsgCreateReport) ProtoMessage()

func (*MsgCreateReport) Reset

func (m *MsgCreateReport) Reset()

func (*MsgCreateReport) Route

func (msg *MsgCreateReport) Route() string

Route should return the name of the module

func (*MsgCreateReport) Size

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

func (*MsgCreateReport) String

func (m *MsgCreateReport) String() string

func (*MsgCreateReport) Type

func (msg *MsgCreateReport) Type() string

Type should return the action

func (*MsgCreateReport) Unmarshal

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

func (*MsgCreateReport) UnpackInterfaces

func (msg *MsgCreateReport) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*MsgCreateReport) ValidateBasic

func (msg *MsgCreateReport) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgCreateReport) XXX_DiscardUnknown

func (m *MsgCreateReport) XXX_DiscardUnknown()

func (*MsgCreateReport) XXX_Marshal

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

func (*MsgCreateReport) XXX_Merge

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

func (*MsgCreateReport) XXX_Size

func (m *MsgCreateReport) XXX_Size() int

func (*MsgCreateReport) XXX_Unmarshal

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

type MsgCreateReportResponse

type MsgCreateReportResponse struct {
	// Id of the newly created report
	ReportID uint64 `protobuf:"varint,1,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty" yaml:"report_id"`
	// Time in which the report was created
	CreationDate time.Time `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
}

MsgCreateReportResponse represents the Msg/CreateReport response type

func (*MsgCreateReportResponse) Descriptor

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

func (*MsgCreateReportResponse) GetCreationDate

func (m *MsgCreateReportResponse) GetCreationDate() time.Time

func (*MsgCreateReportResponse) GetReportID

func (m *MsgCreateReportResponse) GetReportID() uint64

func (*MsgCreateReportResponse) Marshal

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

func (*MsgCreateReportResponse) MarshalTo

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

func (*MsgCreateReportResponse) MarshalToSizedBuffer

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

func (*MsgCreateReportResponse) ProtoMessage

func (*MsgCreateReportResponse) ProtoMessage()

func (*MsgCreateReportResponse) Reset

func (m *MsgCreateReportResponse) Reset()

func (*MsgCreateReportResponse) Size

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

func (*MsgCreateReportResponse) String

func (m *MsgCreateReportResponse) String() string

func (*MsgCreateReportResponse) Unmarshal

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

func (*MsgCreateReportResponse) XXX_DiscardUnknown

func (m *MsgCreateReportResponse) XXX_DiscardUnknown()

func (*MsgCreateReportResponse) XXX_Marshal

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

func (*MsgCreateReportResponse) XXX_Merge

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

func (*MsgCreateReportResponse) XXX_Size

func (m *MsgCreateReportResponse) XXX_Size() int

func (*MsgCreateReportResponse) XXX_Unmarshal

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

type MsgDeleteReport

type MsgDeleteReport struct {
	// Id of the subspace that contains the report to be deleted
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the report to be deleted
	ReportID uint64 `protobuf:"varint,2,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty" yaml:"report_id"`
	// Address of the user deleting the report
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteReport represents the message to be used when deleting a report

func NewMsgDeleteReport

func NewMsgDeleteReport(subspaceID uint64, reportID uint64, signer string) *MsgDeleteReport

NewMsgDeleteReport returns a new MsgDeleteReport instance

func (*MsgDeleteReport) Descriptor

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

func (*MsgDeleteReport) GetReportID

func (m *MsgDeleteReport) GetReportID() uint64

func (*MsgDeleteReport) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgDeleteReport) GetSigner

func (m *MsgDeleteReport) GetSigner() string

func (*MsgDeleteReport) GetSigners

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

GetSigners defines whose signature is required

func (*MsgDeleteReport) GetSubspaceID

func (m *MsgDeleteReport) GetSubspaceID() uint64

func (*MsgDeleteReport) Marshal

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

func (*MsgDeleteReport) MarshalTo

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

func (*MsgDeleteReport) MarshalToSizedBuffer

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

func (*MsgDeleteReport) ProtoMessage

func (*MsgDeleteReport) ProtoMessage()

func (*MsgDeleteReport) Reset

func (m *MsgDeleteReport) Reset()

func (*MsgDeleteReport) Route

func (msg *MsgDeleteReport) Route() string

Route should return the name of the module

func (*MsgDeleteReport) Size

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

func (*MsgDeleteReport) String

func (m *MsgDeleteReport) String() string

func (*MsgDeleteReport) Type

func (msg *MsgDeleteReport) Type() string

Type should return the action

func (*MsgDeleteReport) Unmarshal

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

func (*MsgDeleteReport) ValidateBasic

func (msg *MsgDeleteReport) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgDeleteReport) XXX_DiscardUnknown

func (m *MsgDeleteReport) XXX_DiscardUnknown()

func (*MsgDeleteReport) XXX_Marshal

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

func (*MsgDeleteReport) XXX_Merge

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

func (*MsgDeleteReport) XXX_Size

func (m *MsgDeleteReport) XXX_Size() int

func (*MsgDeleteReport) XXX_Unmarshal

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

type MsgDeleteReportResponse

type MsgDeleteReportResponse struct {
}

MsgDeleteReportResponse represents the Msg/DeleteReport response type

func (*MsgDeleteReportResponse) Descriptor

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

func (*MsgDeleteReportResponse) Marshal

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

func (*MsgDeleteReportResponse) MarshalTo

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

func (*MsgDeleteReportResponse) MarshalToSizedBuffer

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

func (*MsgDeleteReportResponse) ProtoMessage

func (*MsgDeleteReportResponse) ProtoMessage()

func (*MsgDeleteReportResponse) Reset

func (m *MsgDeleteReportResponse) Reset()

func (*MsgDeleteReportResponse) Size

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

func (*MsgDeleteReportResponse) String

func (m *MsgDeleteReportResponse) String() string

func (*MsgDeleteReportResponse) Unmarshal

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

func (*MsgDeleteReportResponse) XXX_DiscardUnknown

func (m *MsgDeleteReportResponse) XXX_DiscardUnknown()

func (*MsgDeleteReportResponse) XXX_Marshal

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

func (*MsgDeleteReportResponse) XXX_Merge

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

func (*MsgDeleteReportResponse) XXX_Size

func (m *MsgDeleteReportResponse) XXX_Size() int

func (*MsgDeleteReportResponse) XXX_Unmarshal

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

type MsgRemoveReason

type MsgRemoveReason struct {
	// Id of the subspace from which to remove the reason
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the reason to be deleted
	ReasonID uint32 `protobuf:"varint,2,opt,name=reason_id,json=reasonId,proto3" json:"reason_id,omitempty" yaml:"reason_id"`
	// Address of the user adding the supported reason
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgRemoveReason represents the message to be used when removing an exiting reporting reason

func NewMsgRemoveReason

func NewMsgRemoveReason(subspaceID uint64, reasonID uint32, signer string) *MsgRemoveReason

NewMsgRemoveReason returns a new MsgRemoveReason instance

func (*MsgRemoveReason) Descriptor

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

func (*MsgRemoveReason) GetReasonID

func (m *MsgRemoveReason) GetReasonID() uint32

func (*MsgRemoveReason) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgRemoveReason) GetSigner

func (m *MsgRemoveReason) GetSigner() string

func (*MsgRemoveReason) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRemoveReason) GetSubspaceID

func (m *MsgRemoveReason) GetSubspaceID() uint64

func (*MsgRemoveReason) IsManageSubspaceMsg

func (msg *MsgRemoveReason) IsManageSubspaceMsg()

IsManageSubspaceMsg implements subspacestypes.ManageSubspaceMsg

func (*MsgRemoveReason) Marshal

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

func (*MsgRemoveReason) MarshalTo

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

func (*MsgRemoveReason) MarshalToSizedBuffer

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

func (*MsgRemoveReason) ProtoMessage

func (*MsgRemoveReason) ProtoMessage()

func (*MsgRemoveReason) Reset

func (m *MsgRemoveReason) Reset()

func (*MsgRemoveReason) Route

func (msg *MsgRemoveReason) Route() string

Route should return the name of the module

func (*MsgRemoveReason) Size

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

func (*MsgRemoveReason) String

func (m *MsgRemoveReason) String() string

func (*MsgRemoveReason) Type

func (msg *MsgRemoveReason) Type() string

Type should return the action

func (*MsgRemoveReason) Unmarshal

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

func (*MsgRemoveReason) ValidateBasic

func (msg *MsgRemoveReason) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgRemoveReason) XXX_DiscardUnknown

func (m *MsgRemoveReason) XXX_DiscardUnknown()

func (*MsgRemoveReason) XXX_Marshal

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

func (*MsgRemoveReason) XXX_Merge

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

func (*MsgRemoveReason) XXX_Size

func (m *MsgRemoveReason) XXX_Size() int

func (*MsgRemoveReason) XXX_Unmarshal

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

type MsgRemoveReasonResponse

type MsgRemoveReasonResponse struct {
}

MsgRemoveReasonResponse represents the Msg/RemoveReason response type

func (*MsgRemoveReasonResponse) Descriptor

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

func (*MsgRemoveReasonResponse) Marshal

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

func (*MsgRemoveReasonResponse) MarshalTo

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

func (*MsgRemoveReasonResponse) MarshalToSizedBuffer

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

func (*MsgRemoveReasonResponse) ProtoMessage

func (*MsgRemoveReasonResponse) ProtoMessage()

func (*MsgRemoveReasonResponse) Reset

func (m *MsgRemoveReasonResponse) Reset()

func (*MsgRemoveReasonResponse) Size

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

func (*MsgRemoveReasonResponse) String

func (m *MsgRemoveReasonResponse) String() string

func (*MsgRemoveReasonResponse) Unmarshal

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

func (*MsgRemoveReasonResponse) XXX_DiscardUnknown

func (m *MsgRemoveReasonResponse) XXX_DiscardUnknown()

func (*MsgRemoveReasonResponse) XXX_Marshal

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

func (*MsgRemoveReasonResponse) XXX_Merge

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

func (*MsgRemoveReasonResponse) XXX_Size

func (m *MsgRemoveReasonResponse) XXX_Size() int

func (*MsgRemoveReasonResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateReport allows to create a new report
	CreateReport(context.Context, *MsgCreateReport) (*MsgCreateReportResponse, error)
	// DeleteReport allows to delete an existing report
	DeleteReport(context.Context, *MsgDeleteReport) (*MsgDeleteReportResponse, error)
	// SupportStandardReason allows to support one of the reasons present inside
	// the module params
	SupportStandardReason(context.Context, *MsgSupportStandardReason) (*MsgSupportStandardReasonResponse, error)
	// AddReason allows to add a new supported reporting reason
	AddReason(context.Context, *MsgAddReason) (*MsgAddReasonResponse, error)
	// RemoveReason allows to remove a supported reporting reason
	RemoveReason(context.Context, *MsgRemoveReason) (*MsgRemoveReasonResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	//
	// Since: Desmos 5.0.0
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSupportStandardReason

type MsgSupportStandardReason struct {
	// Id of the subspace for which to support the reason
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the reason that should be supported
	StandardReasonID uint32 `` /* 138-byte string literal not displayed */
	// Address of the user signing the message
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgSupportStandardReason represents the message to be used when wanting to support one reason from the module params

func NewMsgSupportStandardReason

func NewMsgSupportStandardReason(subspaceID uint64, standardReasonID uint32, signer string) *MsgSupportStandardReason

NewMsgSupportStandardReason returns a new MsgSupportStandardReason instance

func (*MsgSupportStandardReason) Descriptor

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

func (*MsgSupportStandardReason) GetSignBytes

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

GetSignBytes encodes the message for signing

func (*MsgSupportStandardReason) GetSigner

func (m *MsgSupportStandardReason) GetSigner() string

func (*MsgSupportStandardReason) GetSigners

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

GetSigners defines whose signature is required

func (*MsgSupportStandardReason) GetStandardReasonID

func (m *MsgSupportStandardReason) GetStandardReasonID() uint32

func (*MsgSupportStandardReason) GetSubspaceID

func (m *MsgSupportStandardReason) GetSubspaceID() uint64

func (*MsgSupportStandardReason) IsManageSubspaceMsg

func (msg *MsgSupportStandardReason) IsManageSubspaceMsg()

IsManageSubspaceMsg implements subspacestypes.ManageSubspaceMsg

func (*MsgSupportStandardReason) Marshal

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

func (*MsgSupportStandardReason) MarshalTo

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

func (*MsgSupportStandardReason) MarshalToSizedBuffer

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

func (*MsgSupportStandardReason) ProtoMessage

func (*MsgSupportStandardReason) ProtoMessage()

func (*MsgSupportStandardReason) Reset

func (m *MsgSupportStandardReason) Reset()

func (*MsgSupportStandardReason) Route

func (msg *MsgSupportStandardReason) Route() string

Route should return the name of the module

func (*MsgSupportStandardReason) Size

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

func (*MsgSupportStandardReason) String

func (m *MsgSupportStandardReason) String() string

func (*MsgSupportStandardReason) Type

func (msg *MsgSupportStandardReason) Type() string

Type should return the action

func (*MsgSupportStandardReason) Unmarshal

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

func (*MsgSupportStandardReason) ValidateBasic

func (msg *MsgSupportStandardReason) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgSupportStandardReason) XXX_DiscardUnknown

func (m *MsgSupportStandardReason) XXX_DiscardUnknown()

func (*MsgSupportStandardReason) XXX_Marshal

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

func (*MsgSupportStandardReason) XXX_Merge

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

func (*MsgSupportStandardReason) XXX_Size

func (m *MsgSupportStandardReason) XXX_Size() int

func (*MsgSupportStandardReason) XXX_Unmarshal

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

type MsgSupportStandardReasonResponse

type MsgSupportStandardReasonResponse struct {
	// Id of the newly added reason
	ReasonsID uint32 `protobuf:"varint,1,opt,name=reasons_ids,json=reasonsIds,proto3" json:"reasons_ids,omitempty" yaml:"reasons_ids"`
}

MsgSupportStandardReasonResponse represents the Msg/SupportStandardReason response type

func (*MsgSupportStandardReasonResponse) Descriptor

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

func (*MsgSupportStandardReasonResponse) GetReasonsID

func (m *MsgSupportStandardReasonResponse) GetReasonsID() uint32

func (*MsgSupportStandardReasonResponse) Marshal

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

func (*MsgSupportStandardReasonResponse) MarshalTo

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

func (*MsgSupportStandardReasonResponse) MarshalToSizedBuffer

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

func (*MsgSupportStandardReasonResponse) ProtoMessage

func (*MsgSupportStandardReasonResponse) ProtoMessage()

func (*MsgSupportStandardReasonResponse) Reset

func (*MsgSupportStandardReasonResponse) Size

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

func (*MsgSupportStandardReasonResponse) String

func (*MsgSupportStandardReasonResponse) Unmarshal

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

func (*MsgSupportStandardReasonResponse) XXX_DiscardUnknown

func (m *MsgSupportStandardReasonResponse) XXX_DiscardUnknown()

func (*MsgSupportStandardReasonResponse) XXX_Marshal

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

func (*MsgSupportStandardReasonResponse) XXX_Merge

func (*MsgSupportStandardReasonResponse) XXX_Size

func (m *MsgSupportStandardReasonResponse) XXX_Size() int

func (*MsgSupportStandardReasonResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: Desmos 5.0.0

func NewMsgUpdateParams

func NewMsgUpdateParams(params Params, authority string) *MsgUpdateParams

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes

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

GetSigners implements legacytx.LegacyMsg

func (*MsgUpdateParams) GetSigners

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

GetSignBytes implements sdk.Msg

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route

func (msg *MsgUpdateParams) Route() string

Route implements legacytx.LegacyMsg

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (msg *MsgUpdateParams) Type() string

Type implements legacytx.LegacyMsg

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: Desmos 5.0.0

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MultiReportsHooks

type MultiReportsHooks []ReportsHooks

MultiReportsHooks combines multiple subspaces hooks, all hook functions are run in array sequence

func NewMultiReportsHooks

func NewMultiReportsHooks(hooks ...ReportsHooks) MultiReportsHooks

func (MultiReportsHooks) AfterReasonDeleted

func (h MultiReportsHooks) AfterReasonDeleted(ctx sdk.Context, subspaceID uint64, reasonID uint32)

AfterReasonDeleted implements ReportsHooks

func (MultiReportsHooks) AfterReasonSaved

func (h MultiReportsHooks) AfterReasonSaved(ctx sdk.Context, subspaceID uint64, reasonID uint32)

AfterReasonSaved implements ReportsHooks

func (MultiReportsHooks) AfterReportDeleted

func (h MultiReportsHooks) AfterReportDeleted(ctx sdk.Context, subspaceID uint64, reportID uint64)

AfterReportDeleted implements ReportsHooks

func (MultiReportsHooks) AfterReportSaved

func (h MultiReportsHooks) AfterReportSaved(ctx sdk.Context, subspaceID uint64, reportID uint64)

AfterReportSaved implements ReportsHooks

type Params

type Params struct {
	// List of available reasons from which new subspaces can pick their default
	// ones
	StandardReasons []StandardReason `protobuf:"bytes,1,rep,name=standard_reasons,json=standardReasons,proto3" json:"standard_reasons" yaml:"standard_reasons"`
}

Params contains the module parameters

func DefaultParams

func DefaultParams() Params

DefaultParams returns the default params

func NewParams

func NewParams(reasons []StandardReason) Params

NewParams returns a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetStandardReasons

func (m *Params) GetStandardReasons() []StandardReason

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 (params *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns the key/value pairs of reports module's parameters.

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

func (*Params) Unmarshal

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

func (Params) Validate

func (params Params) Validate() error

Validate perform basic checks on all parameters to ensure they are correct

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 ParamsSubspace

type ParamsSubspace interface {
	GetParamSet(ctx sdk.Context, ps paramstypes.ParamSet)
	SetParamSet(ctx sdk.Context, ps paramstypes.ParamSet)
}

ParamsSubspace defines an interface that implements the legacy x/params ParamsSubspace type.

NOTE: This is used solely for migration of x/params managed parameters.

type PostTarget

type PostTarget struct {
	// Id of the reported post
	PostID uint64 `protobuf:"varint,1,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty" yaml:"post_id"`
}

PostTarget contains the data of a report about a post

func NewPostTarget

func NewPostTarget(postID uint64) *PostTarget

NewPostTarget returns a new PostTarget instance

func (*PostTarget) Descriptor

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

func (*PostTarget) Equal

func (this *PostTarget) Equal(that interface{}) bool

func (*PostTarget) GetPostID

func (m *PostTarget) GetPostID() uint64

func (*PostTarget) Marshal

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

func (*PostTarget) MarshalTo

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

func (*PostTarget) MarshalToSizedBuffer

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

func (*PostTarget) ProtoMessage

func (*PostTarget) ProtoMessage()

func (*PostTarget) Reset

func (m *PostTarget) Reset()

func (*PostTarget) Size

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

func (*PostTarget) String

func (m *PostTarget) String() string

func (*PostTarget) Unmarshal

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

func (*PostTarget) Validate

func (t *PostTarget) Validate() error

Validate implements ReportTarget

func (*PostTarget) XXX_DiscardUnknown

func (m *PostTarget) XXX_DiscardUnknown()

func (*PostTarget) XXX_Marshal

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

func (*PostTarget) XXX_Merge

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

func (*PostTarget) XXX_Size

func (m *PostTarget) XXX_Size() int

func (*PostTarget) XXX_Unmarshal

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

type PostsKeeper

type PostsKeeper interface {
	// HasPost tells whether the given post exists or not
	HasPost(ctx sdk.Context, subspaceID uint64, postID uint64) bool

	// GetPost returns the post associated with the given id.
	GetPost(ctx sdk.Context, subspaceID uint64, postID uint64) (poststypes.Post, bool)

	// GetSubspacePosts returns all the posts for the given subspace
	GetSubspacePosts(ctx sdk.Context, subspaceID uint64) []poststypes.Post
}

PostsKeeper represents a keeper that deals with posts

type ProfilesKeeper

type ProfilesKeeper interface {
	// HasProfile returns true iff the given user has a profile
	HasProfile(ctx sdk.Context, user string) bool
}

ProfilesKeeper represents a keeper that deals with profiles

type QueryClient

type QueryClient interface {
	// Reports allows to query the reports for a specific target
	Reports(ctx context.Context, in *QueryReportsRequest, opts ...grpc.CallOption) (*QueryReportsResponse, error)
	// Report allows to query the report having the given id
	Report(ctx context.Context, in *QueryReportRequest, opts ...grpc.CallOption) (*QueryReportResponse, error)
	// Reasons allows to query the supported reporting reasons for a subspace
	Reasons(ctx context.Context, in *QueryReasonsRequest, opts ...grpc.CallOption) (*QueryReasonsResponse, error)
	// Reason allows to query the reason having the given id
	Reason(ctx context.Context, in *QueryReasonRequest, opts ...grpc.CallOption) (*QueryReasonResponse, error)
	// Params allows to query the module parameters
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for Query/Params RPC method

func NewQueryParamsRequest

func NewQueryParamsRequest() *QueryParamsRequest

NewQueryParamsRequest returns a new QueryParamsRequest instance

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

QueryParamsResponse is the response type for Query/Params RPC method

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryReasonRequest

type QueryReasonRequest struct {
	// Id of the subspace that holds the reason to query for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the reason to query for
	ReasonId uint32 `protobuf:"varint,2,opt,name=reason_id,json=reasonId,proto3" json:"reason_id,omitempty" yaml:"reason_id"`
}

QueryReasonRequest is the request type for Query/Reason RPC method

func NewQueryReasonRequest

func NewQueryReasonRequest(subspaceID uint64, reasonID uint32) *QueryReasonRequest

NewQueryReasonRequest returns a new QueryReasonRequest instance

func (*QueryReasonRequest) Descriptor

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

func (*QueryReasonRequest) GetReasonId

func (m *QueryReasonRequest) GetReasonId() uint32

func (*QueryReasonRequest) GetSubspaceId

func (m *QueryReasonRequest) GetSubspaceId() uint64

func (*QueryReasonRequest) Marshal

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

func (*QueryReasonRequest) MarshalTo

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

func (*QueryReasonRequest) MarshalToSizedBuffer

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

func (*QueryReasonRequest) ProtoMessage

func (*QueryReasonRequest) ProtoMessage()

func (*QueryReasonRequest) Reset

func (m *QueryReasonRequest) Reset()

func (*QueryReasonRequest) Size

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

func (*QueryReasonRequest) String

func (m *QueryReasonRequest) String() string

func (*QueryReasonRequest) Unmarshal

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

func (*QueryReasonRequest) XXX_DiscardUnknown

func (m *QueryReasonRequest) XXX_DiscardUnknown()

func (*QueryReasonRequest) XXX_Marshal

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

func (*QueryReasonRequest) XXX_Merge

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

func (*QueryReasonRequest) XXX_Size

func (m *QueryReasonRequest) XXX_Size() int

func (*QueryReasonRequest) XXX_Unmarshal

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

type QueryReasonResponse

type QueryReasonResponse struct {
	Reason Reason `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason" yaml:"reason"`
}

QueryReasonResponse is the response type for Query/Reason RPC method

func (*QueryReasonResponse) Descriptor

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

func (*QueryReasonResponse) GetReason

func (m *QueryReasonResponse) GetReason() Reason

func (*QueryReasonResponse) Marshal

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

func (*QueryReasonResponse) MarshalTo

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

func (*QueryReasonResponse) MarshalToSizedBuffer

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

func (*QueryReasonResponse) ProtoMessage

func (*QueryReasonResponse) ProtoMessage()

func (*QueryReasonResponse) Reset

func (m *QueryReasonResponse) Reset()

func (*QueryReasonResponse) Size

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

func (*QueryReasonResponse) String

func (m *QueryReasonResponse) String() string

func (*QueryReasonResponse) Unmarshal

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

func (*QueryReasonResponse) XXX_DiscardUnknown

func (m *QueryReasonResponse) XXX_DiscardUnknown()

func (*QueryReasonResponse) XXX_Marshal

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

func (*QueryReasonResponse) XXX_Merge

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

func (*QueryReasonResponse) XXX_Size

func (m *QueryReasonResponse) XXX_Size() int

func (*QueryReasonResponse) XXX_Unmarshal

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

type QueryReasonsRequest

type QueryReasonsRequest struct {
	// Id of the subspace to query the supported reporting reasons for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"`
}

QueryReasonsRequest is the request type for Query/Reasons RPC method

func NewQueryReasonsRequest

func NewQueryReasonsRequest(subspaceID uint64, pagination *query.PageRequest) *QueryReasonsRequest

NewQueryReasonsRequest returns a new QueryReasonsRequest instance

func (*QueryReasonsRequest) Descriptor

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

func (*QueryReasonsRequest) GetPagination

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

func (*QueryReasonsRequest) GetSubspaceId

func (m *QueryReasonsRequest) GetSubspaceId() uint64

func (*QueryReasonsRequest) Marshal

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

func (*QueryReasonsRequest) MarshalTo

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

func (*QueryReasonsRequest) MarshalToSizedBuffer

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

func (*QueryReasonsRequest) ProtoMessage

func (*QueryReasonsRequest) ProtoMessage()

func (*QueryReasonsRequest) Reset

func (m *QueryReasonsRequest) Reset()

func (*QueryReasonsRequest) Size

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

func (*QueryReasonsRequest) String

func (m *QueryReasonsRequest) String() string

func (*QueryReasonsRequest) Unmarshal

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

func (*QueryReasonsRequest) XXX_DiscardUnknown

func (m *QueryReasonsRequest) XXX_DiscardUnknown()

func (*QueryReasonsRequest) XXX_Marshal

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

func (*QueryReasonsRequest) XXX_Merge

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

func (*QueryReasonsRequest) XXX_Size

func (m *QueryReasonsRequest) XXX_Size() int

func (*QueryReasonsRequest) XXX_Unmarshal

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

type QueryReasonsResponse

type QueryReasonsResponse struct {
	Reasons    []Reason            `protobuf:"bytes,1,rep,name=reasons,proto3" json:"reasons" yaml:"reasons"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"`
}

QueryReasonsResponse is the response type for Query/Reasons RPC method

func (*QueryReasonsResponse) Descriptor

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

func (*QueryReasonsResponse) GetPagination

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

func (*QueryReasonsResponse) GetReasons

func (m *QueryReasonsResponse) GetReasons() []Reason

func (*QueryReasonsResponse) Marshal

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

func (*QueryReasonsResponse) MarshalTo

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

func (*QueryReasonsResponse) MarshalToSizedBuffer

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

func (*QueryReasonsResponse) ProtoMessage

func (*QueryReasonsResponse) ProtoMessage()

func (*QueryReasonsResponse) Reset

func (m *QueryReasonsResponse) Reset()

func (*QueryReasonsResponse) Size

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

func (*QueryReasonsResponse) String

func (m *QueryReasonsResponse) String() string

func (*QueryReasonsResponse) Unmarshal

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

func (*QueryReasonsResponse) XXX_DiscardUnknown

func (m *QueryReasonsResponse) XXX_DiscardUnknown()

func (*QueryReasonsResponse) XXX_Marshal

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

func (*QueryReasonsResponse) XXX_Merge

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

func (*QueryReasonsResponse) XXX_Size

func (m *QueryReasonsResponse) XXX_Size() int

func (*QueryReasonsResponse) XXX_Unmarshal

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

type QueryReportRequest

type QueryReportRequest struct {
	// Id of the subspace that holds the report to query for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the report to query for
	ReportId uint64 `protobuf:"varint,2,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty" yaml:"report_id"`
}

QueryReportRequest is the request type for Query/Report RPC method

func NewQueryReportRequest

func NewQueryReportRequest(subspaceID uint64, reportID uint64) *QueryReportRequest

NewQueryReportRequest returns a new QueryReportRequest instance

func (*QueryReportRequest) Descriptor

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

func (*QueryReportRequest) GetReportId

func (m *QueryReportRequest) GetReportId() uint64

func (*QueryReportRequest) GetSubspaceId

func (m *QueryReportRequest) GetSubspaceId() uint64

func (*QueryReportRequest) Marshal

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

func (*QueryReportRequest) MarshalTo

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

func (*QueryReportRequest) MarshalToSizedBuffer

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

func (*QueryReportRequest) ProtoMessage

func (*QueryReportRequest) ProtoMessage()

func (*QueryReportRequest) Reset

func (m *QueryReportRequest) Reset()

func (*QueryReportRequest) Size

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

func (*QueryReportRequest) String

func (m *QueryReportRequest) String() string

func (*QueryReportRequest) Unmarshal

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

func (*QueryReportRequest) XXX_DiscardUnknown

func (m *QueryReportRequest) XXX_DiscardUnknown()

func (*QueryReportRequest) XXX_Marshal

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

func (*QueryReportRequest) XXX_Merge

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

func (*QueryReportRequest) XXX_Size

func (m *QueryReportRequest) XXX_Size() int

func (*QueryReportRequest) XXX_Unmarshal

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

type QueryReportResponse

type QueryReportResponse struct {
	Report Report `protobuf:"bytes,1,opt,name=report,proto3" json:"report" yaml:"report"`
}

QueryReportResponse is the response type for Query/Report RPC method

func (*QueryReportResponse) Descriptor

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

func (*QueryReportResponse) GetReport

func (m *QueryReportResponse) GetReport() Report

func (*QueryReportResponse) Marshal

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

func (*QueryReportResponse) MarshalTo

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

func (*QueryReportResponse) MarshalToSizedBuffer

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

func (*QueryReportResponse) ProtoMessage

func (*QueryReportResponse) ProtoMessage()

func (*QueryReportResponse) Reset

func (m *QueryReportResponse) Reset()

func (*QueryReportResponse) Size

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

func (*QueryReportResponse) String

func (m *QueryReportResponse) String() string

func (*QueryReportResponse) Unmarshal

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

func (*QueryReportResponse) UnpackInterfaces

func (r *QueryReportResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryReportResponse) XXX_DiscardUnknown

func (m *QueryReportResponse) XXX_DiscardUnknown()

func (*QueryReportResponse) XXX_Marshal

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

func (*QueryReportResponse) XXX_Merge

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

func (*QueryReportResponse) XXX_Size

func (m *QueryReportResponse) XXX_Size() int

func (*QueryReportResponse) XXX_Unmarshal

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

type QueryReportsRequest

type QueryReportsRequest struct {
	// Id of the subspace to query the reports for
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// (optional) Target to query the reports for
	Target *types.Any `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty" yaml:"target"`
	// (optional) User that reported the target.
	// This is going to be used only if the target is also specified
	Reporter string `protobuf:"bytes,3,opt,name=reporter,proto3" json:"reporter,omitempty" yaml:"reporter"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"`
}

QueryReportsResponse is the request type for Query/Reports RPC method

func NewQueryReportsRequest

func NewQueryReportsRequest(subspaceID uint64, target ReportTarget, reporter string, pagination *query.PageRequest) *QueryReportsRequest

NewQueryReportsRequest returns a new QueryReportsRequest instance

func (*QueryReportsRequest) Descriptor

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

func (*QueryReportsRequest) GetPagination

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

func (*QueryReportsRequest) GetReporter

func (m *QueryReportsRequest) GetReporter() string

func (*QueryReportsRequest) GetSubspaceId

func (m *QueryReportsRequest) GetSubspaceId() uint64

func (*QueryReportsRequest) GetTarget

func (m *QueryReportsRequest) GetTarget() *types.Any

func (*QueryReportsRequest) Marshal

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

func (*QueryReportsRequest) MarshalTo

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

func (*QueryReportsRequest) MarshalToSizedBuffer

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

func (*QueryReportsRequest) ProtoMessage

func (*QueryReportsRequest) ProtoMessage()

func (*QueryReportsRequest) Reset

func (m *QueryReportsRequest) Reset()

func (*QueryReportsRequest) Size

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

func (*QueryReportsRequest) String

func (m *QueryReportsRequest) String() string

func (*QueryReportsRequest) Unmarshal

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

func (*QueryReportsRequest) UnpackInterfaces

func (r *QueryReportsRequest) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryReportsRequest) XXX_DiscardUnknown

func (m *QueryReportsRequest) XXX_DiscardUnknown()

func (*QueryReportsRequest) XXX_Marshal

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

func (*QueryReportsRequest) XXX_Merge

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

func (*QueryReportsRequest) XXX_Size

func (m *QueryReportsRequest) XXX_Size() int

func (*QueryReportsRequest) XXX_Unmarshal

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

type QueryReportsResponse

type QueryReportsResponse struct {
	Reports    []Report            `protobuf:"bytes,1,rep,name=reports,proto3" json:"reports" yaml:"reports"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty" yaml:"pagination"`
}

QueryReportsResponse is the response type for Query/Reports RPC method

func (*QueryReportsResponse) Descriptor

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

func (*QueryReportsResponse) GetPagination

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

func (*QueryReportsResponse) GetReports

func (m *QueryReportsResponse) GetReports() []Report

func (*QueryReportsResponse) Marshal

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

func (*QueryReportsResponse) MarshalTo

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

func (*QueryReportsResponse) MarshalToSizedBuffer

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

func (*QueryReportsResponse) ProtoMessage

func (*QueryReportsResponse) ProtoMessage()

func (*QueryReportsResponse) Reset

func (m *QueryReportsResponse) Reset()

func (*QueryReportsResponse) Size

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

func (*QueryReportsResponse) String

func (m *QueryReportsResponse) String() string

func (*QueryReportsResponse) Unmarshal

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

func (*QueryReportsResponse) UnpackInterfaces

func (r *QueryReportsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryReportsResponse) XXX_DiscardUnknown

func (m *QueryReportsResponse) XXX_DiscardUnknown()

func (*QueryReportsResponse) XXX_Marshal

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

func (*QueryReportsResponse) XXX_Merge

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

func (*QueryReportsResponse) XXX_Size

func (m *QueryReportsResponse) XXX_Size() int

func (*QueryReportsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Reports allows to query the reports for a specific target
	Reports(context.Context, *QueryReportsRequest) (*QueryReportsResponse, error)
	// Report allows to query the report having the given id
	Report(context.Context, *QueryReportRequest) (*QueryReportResponse, error)
	// Reasons allows to query the supported reporting reasons for a subspace
	Reasons(context.Context, *QueryReasonsRequest) (*QueryReasonsResponse, error)
	// Reason allows to query the reason having the given id
	Reason(context.Context, *QueryReasonRequest) (*QueryReasonResponse, error)
	// Params allows to query the module parameters
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type Reason

type Reason struct {
	// Id of the subspace for which this reason is valid
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the reason inside the subspace
	ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Title of the reason
	Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	// (optional) Extended description of the reason and the cases it applies to
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
}

Reason contains the data about a reporting reason

func NewReason

func NewReason(subspaceID uint64, id uint32, title string, description string) Reason

NewReason returns a new Reason instance

func (*Reason) Descriptor

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

func (*Reason) Equal

func (this *Reason) Equal(that interface{}) bool

func (*Reason) GetDescription

func (m *Reason) GetDescription() string

func (*Reason) GetID

func (m *Reason) GetID() uint32

func (*Reason) GetSubspaceID

func (m *Reason) GetSubspaceID() uint64

func (*Reason) GetTitle

func (m *Reason) GetTitle() string

func (*Reason) Marshal

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

func (*Reason) MarshalTo

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

func (*Reason) MarshalToSizedBuffer

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

func (*Reason) ProtoMessage

func (*Reason) ProtoMessage()

func (*Reason) Reset

func (m *Reason) Reset()

func (*Reason) Size

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

func (*Reason) String

func (m *Reason) String() string

func (*Reason) Unmarshal

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

func (Reason) Validate

func (r Reason) Validate() error

Validate implements fmt.Validator

func (*Reason) XXX_DiscardUnknown

func (m *Reason) XXX_DiscardUnknown()

func (*Reason) XXX_Marshal

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

func (*Reason) XXX_Merge

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

func (*Reason) XXX_Size

func (m *Reason) XXX_Size() int

func (*Reason) XXX_Unmarshal

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

type RelationshipsKeeper

type RelationshipsKeeper interface {
	// HasUserBlocked tells whether the given blocker has blocked the user inside the provided subspace
	HasUserBlocked(ctx sdk.Context, blocker, user string, subspaceID uint64) bool
}

RelationshipsKeeper represents a keeper that deals with relationships

type Report

type Report struct {
	// Id of the subspace for which the report has been created
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Id of the report
	ID uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Id of the reason this report has been created for
	ReasonsIDs []uint32 `protobuf:"varint,3,rep,packed,name=reasons_ids,json=reasonsIds,proto3" json:"reasons_ids,omitempty" yaml:"reasons_ids"`
	// (optional) Message attached to this report
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty" yaml:"message"`
	// Address of the reporter
	Reporter string `protobuf:"bytes,5,opt,name=reporter,proto3" json:"reporter,omitempty" yaml:"reporter"`
	// Target of the report
	Target *types.Any `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty" yaml:"target"`
	// Time in which the report was created
	CreationDate time.Time `protobuf:"bytes,7,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"`
}

Report contains the data of a generic report

func NewReport

func NewReport(
	subspaceID uint64,
	id uint64,
	reasonsIDs []uint32,
	message string,
	target ReportTarget,
	reporter string,
	creationDate time.Time,
) Report

NewReport returns a new Report instance

func (*Report) Descriptor

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

func (*Report) Equal

func (this *Report) Equal(that interface{}) bool

func (*Report) GetCreationDate

func (m *Report) GetCreationDate() time.Time

func (*Report) GetID

func (m *Report) GetID() uint64

func (*Report) GetMessage

func (m *Report) GetMessage() string

func (*Report) GetReasonsIDs

func (m *Report) GetReasonsIDs() []uint32

func (*Report) GetReporter

func (m *Report) GetReporter() string

func (*Report) GetSubspaceID

func (m *Report) GetSubspaceID() uint64

func (*Report) GetTarget

func (m *Report) GetTarget() *types.Any

func (*Report) Marshal

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

func (*Report) MarshalTo

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

func (*Report) MarshalToSizedBuffer

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

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) Reset

func (m *Report) Reset()

func (*Report) Size

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

func (*Report) String

func (m *Report) String() string

func (*Report) Unmarshal

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

func (*Report) UnpackInterfaces

func (r *Report) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (Report) Validate

func (r Report) Validate() error

Validate implements fmt.Validator

func (*Report) XXX_DiscardUnknown

func (m *Report) XXX_DiscardUnknown()

func (*Report) XXX_Marshal

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

func (*Report) XXX_Merge

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

func (*Report) XXX_Size

func (m *Report) XXX_Size() int

func (*Report) XXX_Unmarshal

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

type ReportTarget

type ReportTarget interface {
	proto.Message

	Validate() error
	// contains filtered or unexported methods
}

ReportTarget represents a generic report target

type ReportsHooks

type ReportsHooks interface {
	AfterReportSaved(ctx sdk.Context, subspaceID uint64, reportID uint64)   // Must be called when a report is saved
	AfterReportDeleted(ctx sdk.Context, subspaceID uint64, reportID uint64) // Must be called when a report is deleted

	AfterReasonSaved(ctx sdk.Context, subspaceID uint64, reasonID uint32)   // Must be called when a reason is saved
	AfterReasonDeleted(ctx sdk.Context, subspaceID uint64, reasonID uint32) // Must be called when a reason is deleted
}

ReportsHooks event hooks for posts objects (noalias)

type ReportsMsg

type ReportsMsg struct {
	CreateReport          *json.RawMessage `json:"create_report"`
	DeleteReport          *json.RawMessage `json:"delete_report"`
	SupportStandardReason *json.RawMessage `json:"support_standard_reason"`
	AddReason             *json.RawMessage `json:"add_reason"`
	RemoveReason          *json.RawMessage `json:"remove_reason"`
}

type ReportsQuery

type ReportsQuery struct {
	Reports *json.RawMessage `json:"reports"`
	Report  *json.RawMessage `json:"report"`
	Reasons *json.RawMessage `json:"reasons"`
	Reason  *json.RawMessage `json:"reason"`
}

type StandardReason

type StandardReason struct {
	// Id of the reason inside the subspace
	ID uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Title of the reason
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	// (optional) Extended description of the reason and the cases it applies to
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
}

StandardReason contains the data of a standard reason that can be picked and used from different subspaces

func NewStandardReason

func NewStandardReason(id uint32, title string, description string) StandardReason

NewStandardReason returns a new StandardReason instance

func (*StandardReason) Descriptor

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

func (*StandardReason) Equal

func (this *StandardReason) Equal(that interface{}) bool

func (*StandardReason) GetDescription

func (m *StandardReason) GetDescription() string

func (*StandardReason) GetID

func (m *StandardReason) GetID() uint32

func (*StandardReason) GetTitle

func (m *StandardReason) GetTitle() string

func (*StandardReason) Marshal

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

func (*StandardReason) MarshalTo

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

func (*StandardReason) MarshalToSizedBuffer

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

func (*StandardReason) ProtoMessage

func (*StandardReason) ProtoMessage()

func (*StandardReason) Reset

func (m *StandardReason) Reset()

func (*StandardReason) Size

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

func (*StandardReason) String

func (m *StandardReason) String() string

func (*StandardReason) Unmarshal

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

func (StandardReason) Validate

func (r StandardReason) Validate() error

Validate implements fmt.Validator

func (*StandardReason) XXX_DiscardUnknown

func (m *StandardReason) XXX_DiscardUnknown()

func (*StandardReason) XXX_Marshal

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

func (*StandardReason) XXX_Merge

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

func (*StandardReason) XXX_Size

func (m *StandardReason) XXX_Size() int

func (*StandardReason) XXX_Unmarshal

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

type StandardReasons

type StandardReasons []StandardReason

func NewStandardReasons

func NewStandardReasons(reasons ...StandardReason) StandardReasons

NewStandardReasons returns a new instance of StandardReasons contains the given reasons

func (StandardReasons) Validate

func (s StandardReasons) Validate() error

Validate implements fmt.Validator

type SubspaceDataEntry

type SubspaceDataEntry struct {
	// Id of the subspace to which the data relates
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	// Id of the next reason inside the subspace
	ReasonID uint32 `protobuf:"varint,2,opt,name=reason_id,json=reasonId,proto3" json:"reason_id,omitempty"`
	// Id of the next report inside the subspace
	ReportID uint64 `protobuf:"varint,3,opt,name=report_id,json=reportId,proto3" json:"report_id,omitempty"`
}

SubspaceDataEntry contains the data related to a single subspace

func NewSubspacesDataEntry

func NewSubspacesDataEntry(subspaceID uint64, reasonID uint32, reportID uint64) SubspaceDataEntry

NewSubspacesDataEntry returns a new SubspaceDataEntry instance

func (*SubspaceDataEntry) Descriptor

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

func (*SubspaceDataEntry) GetReasonID

func (m *SubspaceDataEntry) GetReasonID() uint32

func (*SubspaceDataEntry) GetReportID

func (m *SubspaceDataEntry) GetReportID() uint64

func (*SubspaceDataEntry) GetSubspaceID

func (m *SubspaceDataEntry) GetSubspaceID() uint64

func (*SubspaceDataEntry) Marshal

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

func (*SubspaceDataEntry) MarshalTo

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

func (*SubspaceDataEntry) MarshalToSizedBuffer

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

func (*SubspaceDataEntry) ProtoMessage

func (*SubspaceDataEntry) ProtoMessage()

func (*SubspaceDataEntry) Reset

func (m *SubspaceDataEntry) Reset()

func (*SubspaceDataEntry) Size

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

func (*SubspaceDataEntry) String

func (m *SubspaceDataEntry) String() string

func (*SubspaceDataEntry) Unmarshal

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

func (SubspaceDataEntry) Validate

func (data SubspaceDataEntry) Validate() error

Validate implements fmt.Validator

func (*SubspaceDataEntry) XXX_DiscardUnknown

func (m *SubspaceDataEntry) XXX_DiscardUnknown()

func (*SubspaceDataEntry) XXX_Marshal

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

func (*SubspaceDataEntry) XXX_Merge

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

func (*SubspaceDataEntry) XXX_Size

func (m *SubspaceDataEntry) XXX_Size() int

func (*SubspaceDataEntry) XXX_Unmarshal

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

type SubspacesKeeper

type SubspacesKeeper interface {
	// HasSubspace tells whether the subspace with the given id exists or not
	HasSubspace(ctx sdk.Context, subspaceID uint64) bool

	// HasPermission tells whether the given user has the provided permission inside the subspace with the specified id
	HasPermission(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permission subspacestypes.Permission) bool

	// IterateSubspaces iterates through the subspaces set and performs the given function
	IterateSubspaces(ctx sdk.Context, fn func(subspace subspacestypes.Subspace) (stop bool))

	// GetAllSubspaces returns a list of all the subspaces that have been store inside the given context
	GetAllSubspaces(ctx sdk.Context) []subspacestypes.Subspace

	// GetUsersWithRootPermissions returns all the users that have a given permission inside the specified subspace
	GetUsersWithRootPermissions(ctx sdk.Context, subspaceID uint64, permission subspacestypes.Permissions) []string
}

SubspacesKeeper represents a keeper that deals with subspaces

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddReason

func (*UnimplementedMsgServer) CreateReport

func (*UnimplementedMsgServer) DeleteReport

func (*UnimplementedMsgServer) RemoveReason

func (*UnimplementedMsgServer) SupportStandardReason

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Reason

func (*UnimplementedQueryServer) Reasons

func (*UnimplementedQueryServer) Report

func (*UnimplementedQueryServer) Reports

type UserTarget

type UserTarget struct {
	// Address of the reported user
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

UserTarget contains the data of a report about a user

func NewUserTarget

func NewUserTarget(user string) *UserTarget

NewUserTarget returns a new UserTarget instance

func (*UserTarget) Descriptor

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

func (*UserTarget) Equal

func (this *UserTarget) Equal(that interface{}) bool

func (*UserTarget) GetUser

func (m *UserTarget) GetUser() string

func (*UserTarget) Marshal

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

func (*UserTarget) MarshalTo

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

func (*UserTarget) MarshalToSizedBuffer

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

func (*UserTarget) ProtoMessage

func (*UserTarget) ProtoMessage()

func (*UserTarget) Reset

func (m *UserTarget) Reset()

func (*UserTarget) Size

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

func (*UserTarget) String

func (m *UserTarget) String() string

func (*UserTarget) Unmarshal

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

func (*UserTarget) Validate

func (t *UserTarget) Validate() error

Validate implements ReportTarget

func (*UserTarget) XXX_DiscardUnknown

func (m *UserTarget) XXX_DiscardUnknown()

func (*UserTarget) XXX_Marshal

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

func (*UserTarget) XXX_Merge

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

func (*UserTarget) XXX_Size

func (m *UserTarget) XXX_Size() int

func (*UserTarget) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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