types

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateSubspace          = "create_subspace"
	EventTypeEditSubspace            = "edit_subspace"
	EventTypeDeleteSubspace          = "delete_subspace"
	EventTypeCreateUserGroup         = "create_user_group"
	EventTypeEditUserGroup           = "edit_user_group"
	EventTypeSetUserGroupPermissions = "set_user_group_permissions"
	EventTypeDeleteUserGroup         = "delete_user_group"
	EventTypeAddUserToGroup          = "add_group_member"
	EventTypeRemoveUserFromGroup     = "remove_group_member"
	EventTypeSetUserPermissions      = "set_user_permissions"

	AttributeValueCategory      = ModuleName
	AttributeKeySubspaceID      = "subspace_id"
	AttributeKeySubspaceName    = "subspace_name"
	AttributeKeySubspaceCreator = "subspace_creator"
	AttributeKeyCreationTime    = "creation_date"
	AttributeKeyUserGroupID     = "user_group_id"
	AttributeKeyUser            = "user"
)

Subspaces module event types

View Source
const (
	ModuleName = "subspaces"
	RouterKey  = ModuleName
	StoreKey   = ModuleName

	ActionCreateSubspace          = "create_subspace"
	ActionEditSubspace            = "edit_subspace"
	ActionDeleteSubspace          = "delete_subspace"
	ActionCreateUserGroup         = "create_user_group"
	ActionEditUserGroup           = "edit_user_group"
	ActionSetUserGroupPermissions = "set_user_group_permissions"
	ActionDeleteUserGroup         = "delete_user_group"
	ActionAddUserToUserGroup      = "add_user_to_user_group"
	ActionRemoveUserFromUserGroup = "remove_user_from_user_group"
	ActionSetUserPermissions      = "set_user_permissions"

	QuerierRoute = ModuleName

	DoNotModify = "[do-not-modify]"
)
View Source
const (
	// PermissionNothing represents the permission to do nothing
	PermissionNothing = Permission(0b000000)

	// PermissionWrite identifies users that can create content inside the subspace
	PermissionWrite = Permission(0b000001)

	// PermissionModerateContent allows users to moderate contents of other users (e.g. deleting it)
	PermissionModerateContent = Permission(0b000010)

	// PermissionChangeInfo allows to change the information of the subspace
	PermissionChangeInfo = Permission(0b000100)

	// PermissionManageGroups allows users to manage user groups and members
	PermissionManageGroups = Permission(0b001000)

	// PermissionSetPermissions allows users to set other users' permissions (except PermissionSetPermissions).
	// This includes managing user groups and the associated permissions
	PermissionSetPermissions = Permission(0b010000)

	// PermissionDeleteSubspace allows users to delete the subspace.
	PermissionDeleteSubspace = Permission(0b100000)

	// PermissionEverything allows to do everything.
	// This should usually be reserved only to the owner (which has it by default)
	PermissionEverything = Permission(0b111111)
)

Variables

View Source
var (
	// ErrPermissionDenied is returned if a user cannot perform a specific action inside a subspace
	ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permission denied for user")
	ErrInvalidGenesis   = sdkerrors.Register(ModuleName, 2, "invalid genesis state")
)
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 (
	SubspaceIDKey              = []byte{0x00}
	SubspacePrefix             = []byte{0x01}
	GroupIDPrefix              = []byte{0x02}
	GroupsPrefix               = []byte{0x03}
	GroupMembersStorePrefix    = []byte{0x04}
	UserPermissionsStorePrefix = []byte{0x05}
)
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 (
	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 (

	// AminoCodec references the global x/subspaces 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/subspaces and
	// defined at the application level.
	AminoCodec = codec.NewAminoCodec(amino)
)

Functions

func CheckPermission

func CheckPermission(permissions Permission, permission Permission) bool

CheckPermission checks whether the given permissions contain the specified permission

func GetAddressBytes

func GetAddressBytes(user sdk.AccAddress) []byte

func GetAddressFromBytes

func GetAddressFromBytes(bz []byte) sdk.AccAddress

func GetGroupIDBytes

func GetGroupIDBytes(groupID uint32) (groupIDBz []byte)

GetGroupIDBytes returns the byte representation of the groupID

func GetGroupIDFromBytes

func GetGroupIDFromBytes(bz []byte) (subspaceID uint32)

GetGroupIDFromBytes returns groupID in uint32 format from a byte array

func GetSubspaceIDBytes

func GetSubspaceIDBytes(subspaceID uint64) (subspaceIDBz []byte)

GetSubspaceIDBytes returns the byte representation of the subspaceID

func GetSubspaceIDFromBytes

func GetSubspaceIDFromBytes(bz []byte) (subspaceID uint64)

GetSubspaceIDFromBytes returns subspaceID in uint64 format from a byte array

func GroupIDStoreKey

func GroupIDStoreKey(subspaceID uint64) []byte

GroupIDStoreKey returns the store key that is used to store the group id to be used next for the given subspace

func GroupMemberStoreKey

func GroupMemberStoreKey(subspaceID uint64, groupID uint32, user sdk.AccAddress) []byte

GroupMemberStoreKey returns the key used to store the membership of the given user to the specified group inside the provided subspace

func GroupMembersStoreKey

func GroupMembersStoreKey(subspaceID uint64, groupID uint32) []byte

GroupMembersStoreKey returns the key used to store all the members of the given group inside the given subspace

func GroupStoreKey

func GroupStoreKey(subspaceID uint64, groupID uint32) []byte

GroupStoreKey returns the key used to store a group for a subspace

func GroupsStoreKey

func GroupsStoreKey(subspaceID uint64) []byte

GroupsStoreKey returns the key used to store all the groups of a given subspace

func MarshalPermission

func MarshalPermission(permission Permission) (permissionBytes []byte)

MarshalPermission marshals the given permission to a byte array

func ParseGroupID

func ParseGroupID(value string) (uint32, error)

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

func ParseSubspaceID

func ParseSubspaceID(value string) (uint64, error)

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

func PermissionsStoreKey

func PermissionsStoreKey(subspaceID uint64) []byte

PermissionsStoreKey returns the key used to store the entire ACL for a given subspace

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SerializePermission

func SerializePermission(permission Permission) string

SerializePermission serializes the given permission to a string value

func SubspaceKey

func SubspaceKey(subspaceID uint64) []byte

SubspaceKey returns the key for a specific subspace

func UserPermissionStoreKey

func UserPermissionStoreKey(subspaceID uint64, user sdk.AccAddress) []byte

UserPermissionStoreKey returns the key used to store the permission for the given user inside the given subspace

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

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

Types

type ACLEntry

type ACLEntry struct {
	SubspaceID  uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	User        string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
}

ACLEntry represents a single Access Control List entry

func NewACLEntry

func NewACLEntry(subspaceID uint64, user string, permissions Permission) ACLEntry

NewACLEntry returns a new ACLEntry instance

func (*ACLEntry) Descriptor

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

func (*ACLEntry) Equal

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

func (*ACLEntry) GetPermissions

func (m *ACLEntry) GetPermissions() uint32

func (*ACLEntry) GetSubspaceID

func (m *ACLEntry) GetSubspaceID() uint64

func (*ACLEntry) GetUser

func (m *ACLEntry) GetUser() string

func (*ACLEntry) Marshal

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

func (*ACLEntry) MarshalTo

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

func (*ACLEntry) MarshalToSizedBuffer

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

func (*ACLEntry) ProtoMessage

func (*ACLEntry) ProtoMessage()

func (*ACLEntry) Reset

func (m *ACLEntry) Reset()

func (*ACLEntry) Size

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

func (*ACLEntry) String

func (m *ACLEntry) String() string

func (*ACLEntry) Unmarshal

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

func (ACLEntry) Validate

func (entry ACLEntry) Validate() error

Validate returns an error if something is wrong within the entry data

func (*ACLEntry) XXX_DiscardUnknown

func (m *ACLEntry) XXX_DiscardUnknown()

func (*ACLEntry) XXX_Marshal

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

func (*ACLEntry) XXX_Merge

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

func (*ACLEntry) XXX_Size

func (m *ACLEntry) XXX_Size() int

func (*ACLEntry) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	InitialSubspaceID uint64                  `protobuf:"varint,1,opt,name=initial_subspace_id,json=initialSubspaceId,proto3" json:"initial_subspace_id,omitempty"`
	Subspaces         []GenesisSubspace       `protobuf:"bytes,2,rep,name=subspaces,proto3" json:"subspaces"`
	ACL               []ACLEntry              `protobuf:"bytes,3,rep,name=acl,proto3" json:"acl"`
	UserGroups        []UserGroup             `protobuf:"bytes,4,rep,name=user_groups,json=userGroups,proto3" json:"user_groups"`
	UserGroupsMembers []UserGroupMembersEntry `protobuf:"bytes,5,rep,name=user_groups_members,json=userGroupsMembers,proto3" json:"user_groups_members"`
}

GenesisState contains the data of the genesis state for the subspaces module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	initialSubspaceID uint64, subspaces []GenesisSubspace, acl []ACLEntry,
	userGroups []UserGroup, userGroupMembers []UserGroupMembersEntry,
) *GenesisState

NewGenesisState creates a new genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) Equal

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

func (*GenesisState) GetACL

func (m *GenesisState) GetACL() []ACLEntry

func (*GenesisState) GetInitialSubspaceID

func (m *GenesisState) GetInitialSubspaceID() uint64

func (*GenesisState) GetSubspaces

func (m *GenesisState) GetSubspaces() []GenesisSubspace

func (*GenesisState) GetUserGroups

func (m *GenesisState) GetUserGroups() []UserGroup

func (*GenesisState) GetUserGroupsMembers

func (m *GenesisState) GetUserGroupsMembers() []UserGroupMembersEntry

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

type GenesisSubspace struct {
	Subspace       Subspace `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace"`
	InitialGroupID uint32   `protobuf:"varint,2,opt,name=initial_group_id,json=initialGroupId,proto3" json:"initial_group_id,omitempty"`
}

GenesisSubspace contains the genesis data for a single subspace

func NewGenesisSubspace

func NewGenesisSubspace(subspace Subspace, initialGroupID uint32) GenesisSubspace

NewGenesisSubspace returns a new GenesisSubspace instance

func (*GenesisSubspace) Descriptor

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

func (*GenesisSubspace) Equal

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

func (*GenesisSubspace) GetInitialGroupID

func (m *GenesisSubspace) GetInitialGroupID() uint32

func (*GenesisSubspace) GetSubspace

func (m *GenesisSubspace) GetSubspace() Subspace

func (*GenesisSubspace) Marshal

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

func (*GenesisSubspace) MarshalTo

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

func (*GenesisSubspace) MarshalToSizedBuffer

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

func (*GenesisSubspace) ProtoMessage

func (*GenesisSubspace) ProtoMessage()

func (*GenesisSubspace) Reset

func (m *GenesisSubspace) Reset()

func (*GenesisSubspace) Size

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

func (*GenesisSubspace) String

func (m *GenesisSubspace) String() string

func (*GenesisSubspace) Unmarshal

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

func (GenesisSubspace) Validate

func (subspace GenesisSubspace) Validate() error

Validate returns an error if something is wrong within the subspace data

func (*GenesisSubspace) XXX_DiscardUnknown

func (m *GenesisSubspace) XXX_DiscardUnknown()

func (*GenesisSubspace) XXX_Marshal

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

func (*GenesisSubspace) XXX_Merge

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

func (*GenesisSubspace) XXX_Size

func (m *GenesisSubspace) XXX_Size() int

func (*GenesisSubspace) XXX_Unmarshal

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

type GroupUpdate

type GroupUpdate struct {
	Name        string
	Description string
}

GroupUpdate contains all the data that can be updated about a group. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewGroupUpdate

func NewGroupUpdate(name, description string) *GroupUpdate

NewGroupUpdate builds a new SubspaceUpdate instance containing the given data

type MsgAddUserToUserGroup

type MsgAddUserToUserGroup struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupID    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	User       string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	Signer     string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgAddUserToUserGroup represents the message used to add a user to a user group

func NewMsgAddUserToUserGroup

func NewMsgAddUserToUserGroup(subspaceID uint64, groupID uint32, user string, signer string) *MsgAddUserToUserGroup

NewMsgAddUserToUserGroup creates a new MsgAddUserToUserGroup instance

func (*MsgAddUserToUserGroup) Descriptor

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

func (*MsgAddUserToUserGroup) GetGroupID

func (m *MsgAddUserToUserGroup) GetGroupID() uint32

func (MsgAddUserToUserGroup) GetSignBytes

func (msg MsgAddUserToUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgAddUserToUserGroup) GetSigner

func (m *MsgAddUserToUserGroup) GetSigner() string

func (MsgAddUserToUserGroup) GetSigners

func (msg MsgAddUserToUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAddUserToUserGroup) GetSubspaceID

func (m *MsgAddUserToUserGroup) GetSubspaceID() uint64

func (*MsgAddUserToUserGroup) GetUser

func (m *MsgAddUserToUserGroup) GetUser() string

func (*MsgAddUserToUserGroup) Marshal

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

func (*MsgAddUserToUserGroup) MarshalTo

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

func (*MsgAddUserToUserGroup) MarshalToSizedBuffer

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

func (*MsgAddUserToUserGroup) ProtoMessage

func (*MsgAddUserToUserGroup) ProtoMessage()

func (*MsgAddUserToUserGroup) Reset

func (m *MsgAddUserToUserGroup) Reset()

func (MsgAddUserToUserGroup) Route

func (msg MsgAddUserToUserGroup) Route() string

Route implements sdk.Msg

func (*MsgAddUserToUserGroup) Size

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

func (*MsgAddUserToUserGroup) String

func (m *MsgAddUserToUserGroup) String() string

func (MsgAddUserToUserGroup) Type

func (msg MsgAddUserToUserGroup) Type() string

Type implements sdk.Msg

func (*MsgAddUserToUserGroup) Unmarshal

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

func (MsgAddUserToUserGroup) ValidateBasic

func (msg MsgAddUserToUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddUserToUserGroup) XXX_DiscardUnknown

func (m *MsgAddUserToUserGroup) XXX_DiscardUnknown()

func (*MsgAddUserToUserGroup) XXX_Marshal

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

func (*MsgAddUserToUserGroup) XXX_Merge

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

func (*MsgAddUserToUserGroup) XXX_Size

func (m *MsgAddUserToUserGroup) XXX_Size() int

func (*MsgAddUserToUserGroup) XXX_Unmarshal

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

type MsgAddUserToUserGroupResponse

type MsgAddUserToUserGroupResponse struct {
}

MsgAddUserToUserGroupResponse defines the Msg/AddUserToUserGroupResponse response type

func (*MsgAddUserToUserGroupResponse) Descriptor

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

func (*MsgAddUserToUserGroupResponse) Marshal

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

func (*MsgAddUserToUserGroupResponse) MarshalTo

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

func (*MsgAddUserToUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgAddUserToUserGroupResponse) ProtoMessage

func (*MsgAddUserToUserGroupResponse) ProtoMessage()

func (*MsgAddUserToUserGroupResponse) Reset

func (m *MsgAddUserToUserGroupResponse) Reset()

func (*MsgAddUserToUserGroupResponse) Size

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

func (*MsgAddUserToUserGroupResponse) String

func (*MsgAddUserToUserGroupResponse) Unmarshal

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

func (*MsgAddUserToUserGroupResponse) XXX_DiscardUnknown

func (m *MsgAddUserToUserGroupResponse) XXX_DiscardUnknown()

func (*MsgAddUserToUserGroupResponse) XXX_Marshal

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

func (*MsgAddUserToUserGroupResponse) XXX_Merge

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

func (*MsgAddUserToUserGroupResponse) XXX_Size

func (m *MsgAddUserToUserGroupResponse) XXX_Size() int

func (*MsgAddUserToUserGroupResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateSubspace allows to create a subspace
	CreateSubspace(ctx context.Context, in *MsgCreateSubspace, opts ...grpc.CallOption) (*MsgCreateSubspaceResponse, error)
	// EditSubspace allows to edit a subspace
	EditSubspace(ctx context.Context, in *MsgEditSubspace, opts ...grpc.CallOption) (*MsgEditSubspaceResponse, error)
	// DeleteSubspace allows to delete a subspace
	DeleteSubspace(ctx context.Context, in *MsgDeleteSubspace, opts ...grpc.CallOption) (*MsgDeleteSubspaceResponse, error)
	// CreateUserGroup allows to create a user group
	CreateUserGroup(ctx context.Context, in *MsgCreateUserGroup, opts ...grpc.CallOption) (*MsgCreateUserGroupResponse, error)
	// EditUserGroup allows to edit a user group
	EditUserGroup(ctx context.Context, in *MsgEditUserGroup, opts ...grpc.CallOption) (*MsgEditUserGroupResponse, error)
	// SetUserGroupPermissions allows to set the permissions for a specific group
	SetUserGroupPermissions(ctx context.Context, in *MsgSetUserGroupPermissions, opts ...grpc.CallOption) (*MsgSetUserGroupPermissionsResponse, error)
	// DeleteUserGroup allows to delete an existing user group
	DeleteUserGroup(ctx context.Context, in *MsgDeleteUserGroup, opts ...grpc.CallOption) (*MsgDeleteUserGroupResponse, error)
	// AddUserToUserGroup allows to add a specific user to a specific user group
	AddUserToUserGroup(ctx context.Context, in *MsgAddUserToUserGroup, opts ...grpc.CallOption) (*MsgAddUserToUserGroupResponse, error)
	// RemoveUserFromUserGroup allows to remove a specific user from a specific
	// user group
	RemoveUserFromUserGroup(ctx context.Context, in *MsgRemoveUserFromUserGroup, opts ...grpc.CallOption) (*MsgRemoveUserFromUserGroupResponse, error)
	// SetUserPermissions allows to set the permissions for a specific user
	SetUserPermissions(ctx context.Context, in *MsgSetUserPermissions, opts ...grpc.CallOption) (*MsgSetUserPermissionsResponse, 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 MsgCreateSubspace

type MsgCreateSubspace struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Treasury    string `protobuf:"bytes,3,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	Owner       string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Creator     string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgCreateSubspace represents the message used to create a subspace

func NewMsgCreateSubspace

func NewMsgCreateSubspace(name, description, treasury, owner, creator string) *MsgCreateSubspace

NewMsgCreateSubspace creates a new MsgCreateSubspace instance

func (*MsgCreateSubspace) Descriptor

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

func (MsgCreateSubspace) GetSignBytes

func (msg MsgCreateSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreateSubspace) GetSigners

func (msg MsgCreateSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateSubspace) Marshal

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

func (*MsgCreateSubspace) MarshalTo

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

func (*MsgCreateSubspace) MarshalToSizedBuffer

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

func (*MsgCreateSubspace) ProtoMessage

func (*MsgCreateSubspace) ProtoMessage()

func (*MsgCreateSubspace) Reset

func (m *MsgCreateSubspace) Reset()

func (MsgCreateSubspace) Route

func (msg MsgCreateSubspace) Route() string

Route implements sdk.Msg

func (*MsgCreateSubspace) Size

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

func (*MsgCreateSubspace) String

func (m *MsgCreateSubspace) String() string

func (MsgCreateSubspace) Type

func (msg MsgCreateSubspace) Type() string

Type implements sdk.Msg

func (*MsgCreateSubspace) Unmarshal

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

func (MsgCreateSubspace) ValidateBasic

func (msg MsgCreateSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateSubspace) XXX_DiscardUnknown

func (m *MsgCreateSubspace) XXX_DiscardUnknown()

func (*MsgCreateSubspace) XXX_Marshal

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

func (*MsgCreateSubspace) XXX_Merge

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

func (*MsgCreateSubspace) XXX_Size

func (m *MsgCreateSubspace) XXX_Size() int

func (*MsgCreateSubspace) XXX_Unmarshal

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

type MsgCreateSubspaceResponse

type MsgCreateSubspaceResponse struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}

MsgCreateSubspaceResponse defines the Msg/CreateSubspace response type

func (*MsgCreateSubspaceResponse) Descriptor

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

func (*MsgCreateSubspaceResponse) GetSubspaceID

func (m *MsgCreateSubspaceResponse) GetSubspaceID() uint64

func (*MsgCreateSubspaceResponse) Marshal

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

func (*MsgCreateSubspaceResponse) MarshalTo

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

func (*MsgCreateSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgCreateSubspaceResponse) ProtoMessage

func (*MsgCreateSubspaceResponse) ProtoMessage()

func (*MsgCreateSubspaceResponse) Reset

func (m *MsgCreateSubspaceResponse) Reset()

func (*MsgCreateSubspaceResponse) Size

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

func (*MsgCreateSubspaceResponse) String

func (m *MsgCreateSubspaceResponse) String() string

func (*MsgCreateSubspaceResponse) Unmarshal

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

func (*MsgCreateSubspaceResponse) XXX_DiscardUnknown

func (m *MsgCreateSubspaceResponse) XXX_DiscardUnknown()

func (*MsgCreateSubspaceResponse) XXX_Marshal

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

func (*MsgCreateSubspaceResponse) XXX_Merge

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

func (*MsgCreateSubspaceResponse) XXX_Size

func (m *MsgCreateSubspaceResponse) XXX_Size() int

func (*MsgCreateSubspaceResponse) XXX_Unmarshal

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

type MsgCreateUserGroup

type MsgCreateUserGroup struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Name of the group
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// Optional description of the group
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Default permissions to be applied to the group
	DefaultPermissions uint32 `` /* 143-byte string literal not displayed */
	// Creator of the group
	Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgCreateUserGroup represents the message used to create a user group

func NewMsgCreateUserGroup

func NewMsgCreateUserGroup(subspaceID uint64, name, description string, permissions uint32, creator string) *MsgCreateUserGroup

NewMsgCreateUserGroup creates a new MsgCreateUserGroup instance

func (*MsgCreateUserGroup) Descriptor

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

func (*MsgCreateUserGroup) GetCreator

func (m *MsgCreateUserGroup) GetCreator() string

func (*MsgCreateUserGroup) GetDefaultPermissions

func (m *MsgCreateUserGroup) GetDefaultPermissions() uint32

func (*MsgCreateUserGroup) GetDescription

func (m *MsgCreateUserGroup) GetDescription() string

func (*MsgCreateUserGroup) GetName

func (m *MsgCreateUserGroup) GetName() string

func (MsgCreateUserGroup) GetSignBytes

func (msg MsgCreateUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgCreateUserGroup) GetSigners

func (msg MsgCreateUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgCreateUserGroup) GetSubspaceID

func (m *MsgCreateUserGroup) GetSubspaceID() uint64

func (*MsgCreateUserGroup) Marshal

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

func (*MsgCreateUserGroup) MarshalTo

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

func (*MsgCreateUserGroup) MarshalToSizedBuffer

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

func (*MsgCreateUserGroup) ProtoMessage

func (*MsgCreateUserGroup) ProtoMessage()

func (*MsgCreateUserGroup) Reset

func (m *MsgCreateUserGroup) Reset()

func (MsgCreateUserGroup) Route

func (msg MsgCreateUserGroup) Route() string

Route implements sdk.Msg

func (*MsgCreateUserGroup) Size

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

func (*MsgCreateUserGroup) String

func (m *MsgCreateUserGroup) String() string

func (MsgCreateUserGroup) Type

func (msg MsgCreateUserGroup) Type() string

Type implements sdk.Msg

func (*MsgCreateUserGroup) Unmarshal

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

func (MsgCreateUserGroup) ValidateBasic

func (msg MsgCreateUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCreateUserGroup) XXX_DiscardUnknown

func (m *MsgCreateUserGroup) XXX_DiscardUnknown()

func (*MsgCreateUserGroup) XXX_Marshal

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

func (*MsgCreateUserGroup) XXX_Merge

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

func (*MsgCreateUserGroup) XXX_Size

func (m *MsgCreateUserGroup) XXX_Size() int

func (*MsgCreateUserGroup) XXX_Unmarshal

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

type MsgCreateUserGroupResponse

type MsgCreateUserGroupResponse struct {
	GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
}

MsgCreateUserGroupResponse defines the Msg/CreateUserGroup response type

func (*MsgCreateUserGroupResponse) Descriptor

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

func (*MsgCreateUserGroupResponse) GetGroupID

func (m *MsgCreateUserGroupResponse) GetGroupID() uint32

func (*MsgCreateUserGroupResponse) Marshal

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

func (*MsgCreateUserGroupResponse) MarshalTo

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

func (*MsgCreateUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgCreateUserGroupResponse) ProtoMessage

func (*MsgCreateUserGroupResponse) ProtoMessage()

func (*MsgCreateUserGroupResponse) Reset

func (m *MsgCreateUserGroupResponse) Reset()

func (*MsgCreateUserGroupResponse) Size

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

func (*MsgCreateUserGroupResponse) String

func (m *MsgCreateUserGroupResponse) String() string

func (*MsgCreateUserGroupResponse) Unmarshal

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

func (*MsgCreateUserGroupResponse) XXX_DiscardUnknown

func (m *MsgCreateUserGroupResponse) XXX_DiscardUnknown()

func (*MsgCreateUserGroupResponse) XXX_Marshal

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

func (*MsgCreateUserGroupResponse) XXX_Merge

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

func (*MsgCreateUserGroupResponse) XXX_Size

func (m *MsgCreateUserGroupResponse) XXX_Size() int

func (*MsgCreateUserGroupResponse) XXX_Unmarshal

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

type MsgDeleteSubspace

type MsgDeleteSubspace struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	Signer     string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteSubspace represents the message used to delete a subspace

func NewMsgDeleteSubspace

func NewMsgDeleteSubspace(subspaceID uint64, signer string) *MsgDeleteSubspace

NewMsgDeleteSubspace returns a new MsgDeleteSubspace instance

func (*MsgDeleteSubspace) Descriptor

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

func (MsgDeleteSubspace) GetSignBytes

func (msg MsgDeleteSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgDeleteSubspace) GetSigners

func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeleteSubspace) Marshal

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

func (*MsgDeleteSubspace) MarshalTo

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

func (*MsgDeleteSubspace) MarshalToSizedBuffer

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

func (*MsgDeleteSubspace) ProtoMessage

func (*MsgDeleteSubspace) ProtoMessage()

func (*MsgDeleteSubspace) Reset

func (m *MsgDeleteSubspace) Reset()

func (MsgDeleteSubspace) Route

func (msg MsgDeleteSubspace) Route() string

Route implements sdk.Msg

func (*MsgDeleteSubspace) Size

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

func (*MsgDeleteSubspace) String

func (m *MsgDeleteSubspace) String() string

func (MsgDeleteSubspace) Type

func (msg MsgDeleteSubspace) Type() string

Type implements sdk.Msg

func (*MsgDeleteSubspace) Unmarshal

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

func (MsgDeleteSubspace) ValidateBasic

func (msg MsgDeleteSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeleteSubspace) XXX_DiscardUnknown

func (m *MsgDeleteSubspace) XXX_DiscardUnknown()

func (*MsgDeleteSubspace) XXX_Marshal

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

func (*MsgDeleteSubspace) XXX_Merge

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

func (*MsgDeleteSubspace) XXX_Size

func (m *MsgDeleteSubspace) XXX_Size() int

func (*MsgDeleteSubspace) XXX_Unmarshal

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

type MsgDeleteSubspaceResponse

type MsgDeleteSubspaceResponse struct {
}

MsgDeleteSubspaceResponse defines the Msg/DeleteSubspace response type

func (*MsgDeleteSubspaceResponse) Descriptor

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

func (*MsgDeleteSubspaceResponse) Marshal

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

func (*MsgDeleteSubspaceResponse) MarshalTo

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

func (*MsgDeleteSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgDeleteSubspaceResponse) ProtoMessage

func (*MsgDeleteSubspaceResponse) ProtoMessage()

func (*MsgDeleteSubspaceResponse) Reset

func (m *MsgDeleteSubspaceResponse) Reset()

func (*MsgDeleteSubspaceResponse) Size

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

func (*MsgDeleteSubspaceResponse) String

func (m *MsgDeleteSubspaceResponse) String() string

func (*MsgDeleteSubspaceResponse) Unmarshal

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

func (*MsgDeleteSubspaceResponse) XXX_DiscardUnknown

func (m *MsgDeleteSubspaceResponse) XXX_DiscardUnknown()

func (*MsgDeleteSubspaceResponse) XXX_Marshal

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

func (*MsgDeleteSubspaceResponse) XXX_Merge

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

func (*MsgDeleteSubspaceResponse) XXX_Size

func (m *MsgDeleteSubspaceResponse) XXX_Size() int

func (*MsgDeleteSubspaceResponse) XXX_Unmarshal

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

type MsgDeleteUserGroup

type MsgDeleteUserGroup struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupID    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	Signer     string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgDeleteUserGroup represents the message used to delete a user group

func NewMsgDeleteUserGroup

func NewMsgDeleteUserGroup(subspaceID uint64, groupID uint32, signer string) *MsgDeleteUserGroup

NewMsgDeleteUserGroup creates a new MsgDeleteUserGroup instance

func (*MsgDeleteUserGroup) Descriptor

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

func (*MsgDeleteUserGroup) GetGroupID

func (m *MsgDeleteUserGroup) GetGroupID() uint32

func (MsgDeleteUserGroup) GetSignBytes

func (msg MsgDeleteUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDeleteUserGroup) GetSigner

func (m *MsgDeleteUserGroup) GetSigner() string

func (MsgDeleteUserGroup) GetSigners

func (msg MsgDeleteUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDeleteUserGroup) GetSubspaceID

func (m *MsgDeleteUserGroup) GetSubspaceID() uint64

func (*MsgDeleteUserGroup) Marshal

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

func (*MsgDeleteUserGroup) MarshalTo

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

func (*MsgDeleteUserGroup) MarshalToSizedBuffer

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

func (*MsgDeleteUserGroup) ProtoMessage

func (*MsgDeleteUserGroup) ProtoMessage()

func (*MsgDeleteUserGroup) Reset

func (m *MsgDeleteUserGroup) Reset()

func (MsgDeleteUserGroup) Route

func (msg MsgDeleteUserGroup) Route() string

Route implements sdk.Msg

func (*MsgDeleteUserGroup) Size

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

func (*MsgDeleteUserGroup) String

func (m *MsgDeleteUserGroup) String() string

func (MsgDeleteUserGroup) Type

func (msg MsgDeleteUserGroup) Type() string

Type implements sdk.Msg

func (*MsgDeleteUserGroup) Unmarshal

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

func (MsgDeleteUserGroup) ValidateBasic

func (msg MsgDeleteUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDeleteUserGroup) XXX_DiscardUnknown

func (m *MsgDeleteUserGroup) XXX_DiscardUnknown()

func (*MsgDeleteUserGroup) XXX_Marshal

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

func (*MsgDeleteUserGroup) XXX_Merge

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

func (*MsgDeleteUserGroup) XXX_Size

func (m *MsgDeleteUserGroup) XXX_Size() int

func (*MsgDeleteUserGroup) XXX_Unmarshal

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

type MsgDeleteUserGroupResponse

type MsgDeleteUserGroupResponse struct {
}

MsgDeleteUserGroupResponse defines the Msg/DeleteUserGroup response type

func (*MsgDeleteUserGroupResponse) Descriptor

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

func (*MsgDeleteUserGroupResponse) Marshal

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

func (*MsgDeleteUserGroupResponse) MarshalTo

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

func (*MsgDeleteUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgDeleteUserGroupResponse) ProtoMessage

func (*MsgDeleteUserGroupResponse) ProtoMessage()

func (*MsgDeleteUserGroupResponse) Reset

func (m *MsgDeleteUserGroupResponse) Reset()

func (*MsgDeleteUserGroupResponse) Size

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

func (*MsgDeleteUserGroupResponse) String

func (m *MsgDeleteUserGroupResponse) String() string

func (*MsgDeleteUserGroupResponse) Unmarshal

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

func (*MsgDeleteUserGroupResponse) XXX_DiscardUnknown

func (m *MsgDeleteUserGroupResponse) XXX_DiscardUnknown()

func (*MsgDeleteUserGroupResponse) XXX_Marshal

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

func (*MsgDeleteUserGroupResponse) XXX_Merge

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

func (*MsgDeleteUserGroupResponse) XXX_Size

func (m *MsgDeleteUserGroupResponse) XXX_Size() int

func (*MsgDeleteUserGroupResponse) XXX_Unmarshal

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

type MsgEditSubspace

type MsgEditSubspace struct {
	SubspaceID  uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Treasury    string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	Owner       string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	Signer      string `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgEditSubspace represents the message used to edit a subspace fields

func NewMsgEditSubspace

func NewMsgEditSubspace(subspaceID uint64, name, description, treasury, owner, signer string) *MsgEditSubspace

NewMsgEditSubspace creates a new MsgEditSubspace instance

func (*MsgEditSubspace) Descriptor

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

func (MsgEditSubspace) GetSignBytes

func (msg MsgEditSubspace) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgEditSubspace) GetSigners

func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditSubspace) Marshal

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

func (*MsgEditSubspace) MarshalTo

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

func (*MsgEditSubspace) MarshalToSizedBuffer

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

func (*MsgEditSubspace) ProtoMessage

func (*MsgEditSubspace) ProtoMessage()

func (*MsgEditSubspace) Reset

func (m *MsgEditSubspace) Reset()

func (MsgEditSubspace) Route

func (msg MsgEditSubspace) Route() string

Route implements sdk.Msg

func (*MsgEditSubspace) Size

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

func (*MsgEditSubspace) String

func (m *MsgEditSubspace) String() string

func (MsgEditSubspace) Type

func (msg MsgEditSubspace) Type() string

Type implements sdk.Msg

func (*MsgEditSubspace) Unmarshal

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

func (MsgEditSubspace) ValidateBasic

func (msg MsgEditSubspace) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditSubspace) XXX_DiscardUnknown

func (m *MsgEditSubspace) XXX_DiscardUnknown()

func (*MsgEditSubspace) XXX_Marshal

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

func (*MsgEditSubspace) XXX_Merge

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

func (*MsgEditSubspace) XXX_Size

func (m *MsgEditSubspace) XXX_Size() int

func (*MsgEditSubspace) XXX_Unmarshal

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

type MsgEditSubspaceResponse

type MsgEditSubspaceResponse struct {
}

MsgEditSubspaceResponse defines the Msg/EditSubspace response type

func (*MsgEditSubspaceResponse) Descriptor

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

func (*MsgEditSubspaceResponse) Marshal

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

func (*MsgEditSubspaceResponse) MarshalTo

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

func (*MsgEditSubspaceResponse) MarshalToSizedBuffer

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

func (*MsgEditSubspaceResponse) ProtoMessage

func (*MsgEditSubspaceResponse) ProtoMessage()

func (*MsgEditSubspaceResponse) Reset

func (m *MsgEditSubspaceResponse) Reset()

func (*MsgEditSubspaceResponse) Size

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

func (*MsgEditSubspaceResponse) String

func (m *MsgEditSubspaceResponse) String() string

func (*MsgEditSubspaceResponse) Unmarshal

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

func (*MsgEditSubspaceResponse) XXX_DiscardUnknown

func (m *MsgEditSubspaceResponse) XXX_DiscardUnknown()

func (*MsgEditSubspaceResponse) XXX_Marshal

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

func (*MsgEditSubspaceResponse) XXX_Merge

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

func (*MsgEditSubspaceResponse) XXX_Size

func (m *MsgEditSubspaceResponse) XXX_Size() int

func (*MsgEditSubspaceResponse) XXX_Unmarshal

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

type MsgEditUserGroup

type MsgEditUserGroup struct {
	SubspaceID  uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupID     uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	Name        string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	Signer      string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgEditUserGroup represents the message used to edit a user group

func NewMsgEditUserGroup

func NewMsgEditUserGroup(subspaceID uint64, groupID uint32, name, description string, signer string) *MsgEditUserGroup

NewMsgEditUserGroup returns a new NewMsgEditUserGroup instance

func (*MsgEditUserGroup) Descriptor

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

func (*MsgEditUserGroup) GetDescription

func (m *MsgEditUserGroup) GetDescription() string

func (*MsgEditUserGroup) GetGroupID

func (m *MsgEditUserGroup) GetGroupID() uint32

func (*MsgEditUserGroup) GetName

func (m *MsgEditUserGroup) GetName() string

func (MsgEditUserGroup) GetSignBytes

func (msg MsgEditUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgEditUserGroup) GetSigner

func (m *MsgEditUserGroup) GetSigner() string

func (MsgEditUserGroup) GetSigners

func (msg MsgEditUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgEditUserGroup) GetSubspaceID

func (m *MsgEditUserGroup) GetSubspaceID() uint64

func (*MsgEditUserGroup) Marshal

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

func (*MsgEditUserGroup) MarshalTo

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

func (*MsgEditUserGroup) MarshalToSizedBuffer

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

func (*MsgEditUserGroup) ProtoMessage

func (*MsgEditUserGroup) ProtoMessage()

func (*MsgEditUserGroup) Reset

func (m *MsgEditUserGroup) Reset()

func (MsgEditUserGroup) Route

func (msg MsgEditUserGroup) Route() string

Route implements sdk.Msg

func (*MsgEditUserGroup) Size

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

func (*MsgEditUserGroup) String

func (m *MsgEditUserGroup) String() string

func (MsgEditUserGroup) Type

func (msg MsgEditUserGroup) Type() string

Type implements sdk.Msg

func (*MsgEditUserGroup) Unmarshal

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

func (MsgEditUserGroup) ValidateBasic

func (msg MsgEditUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgEditUserGroup) XXX_DiscardUnknown

func (m *MsgEditUserGroup) XXX_DiscardUnknown()

func (*MsgEditUserGroup) XXX_Marshal

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

func (*MsgEditUserGroup) XXX_Merge

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

func (*MsgEditUserGroup) XXX_Size

func (m *MsgEditUserGroup) XXX_Size() int

func (*MsgEditUserGroup) XXX_Unmarshal

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

type MsgEditUserGroupResponse

type MsgEditUserGroupResponse struct {
}

MsgEditUserGroupResponse defines the Msg/EditUserGroup response type

func (*MsgEditUserGroupResponse) Descriptor

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

func (*MsgEditUserGroupResponse) Marshal

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

func (*MsgEditUserGroupResponse) MarshalTo

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

func (*MsgEditUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgEditUserGroupResponse) ProtoMessage

func (*MsgEditUserGroupResponse) ProtoMessage()

func (*MsgEditUserGroupResponse) Reset

func (m *MsgEditUserGroupResponse) Reset()

func (*MsgEditUserGroupResponse) Size

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

func (*MsgEditUserGroupResponse) String

func (m *MsgEditUserGroupResponse) String() string

func (*MsgEditUserGroupResponse) Unmarshal

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

func (*MsgEditUserGroupResponse) XXX_DiscardUnknown

func (m *MsgEditUserGroupResponse) XXX_DiscardUnknown()

func (*MsgEditUserGroupResponse) XXX_Marshal

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

func (*MsgEditUserGroupResponse) XXX_Merge

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

func (*MsgEditUserGroupResponse) XXX_Size

func (m *MsgEditUserGroupResponse) XXX_Size() int

func (*MsgEditUserGroupResponse) XXX_Unmarshal

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

type MsgRemoveUserFromUserGroup

type MsgRemoveUserFromUserGroup struct {
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupID    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	User       string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	Signer     string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgRemoveUserFromUserGroup represents the message used to remove a user from a user group

func NewMsgRemoveUserFromUserGroup

func NewMsgRemoveUserFromUserGroup(subspaceID uint64, groupID uint32, user string, signer string) *MsgRemoveUserFromUserGroup

NewMsgRemoveUserFromUserGroup creates a new MsgRemoveUserFromUserGroup instance

func (*MsgRemoveUserFromUserGroup) Descriptor

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

func (*MsgRemoveUserFromUserGroup) GetGroupID

func (m *MsgRemoveUserFromUserGroup) GetGroupID() uint32

func (MsgRemoveUserFromUserGroup) GetSignBytes

func (msg MsgRemoveUserFromUserGroup) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) GetSigner

func (m *MsgRemoveUserFromUserGroup) GetSigner() string

func (MsgRemoveUserFromUserGroup) GetSigners

func (msg MsgRemoveUserFromUserGroup) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) GetSubspaceID

func (m *MsgRemoveUserFromUserGroup) GetSubspaceID() uint64

func (*MsgRemoveUserFromUserGroup) GetUser

func (m *MsgRemoveUserFromUserGroup) GetUser() string

func (*MsgRemoveUserFromUserGroup) Marshal

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

func (*MsgRemoveUserFromUserGroup) MarshalTo

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

func (*MsgRemoveUserFromUserGroup) MarshalToSizedBuffer

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

func (*MsgRemoveUserFromUserGroup) ProtoMessage

func (*MsgRemoveUserFromUserGroup) ProtoMessage()

func (*MsgRemoveUserFromUserGroup) Reset

func (m *MsgRemoveUserFromUserGroup) Reset()

func (MsgRemoveUserFromUserGroup) Route

func (msg MsgRemoveUserFromUserGroup) Route() string

Route implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) Size

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

func (*MsgRemoveUserFromUserGroup) String

func (m *MsgRemoveUserFromUserGroup) String() string

func (MsgRemoveUserFromUserGroup) Type

Type implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) Unmarshal

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

func (MsgRemoveUserFromUserGroup) ValidateBasic

func (msg MsgRemoveUserFromUserGroup) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveUserFromUserGroup) XXX_DiscardUnknown

func (m *MsgRemoveUserFromUserGroup) XXX_DiscardUnknown()

func (*MsgRemoveUserFromUserGroup) XXX_Marshal

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

func (*MsgRemoveUserFromUserGroup) XXX_Merge

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

func (*MsgRemoveUserFromUserGroup) XXX_Size

func (m *MsgRemoveUserFromUserGroup) XXX_Size() int

func (*MsgRemoveUserFromUserGroup) XXX_Unmarshal

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

type MsgRemoveUserFromUserGroupResponse

type MsgRemoveUserFromUserGroupResponse struct {
}

MsgRemoveUserFromUserGroupResponse defines the Msg/RemoveUserFromUserGroupResponse response type

func (*MsgRemoveUserFromUserGroupResponse) Descriptor

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

func (*MsgRemoveUserFromUserGroupResponse) Marshal

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

func (*MsgRemoveUserFromUserGroupResponse) MarshalTo

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

func (*MsgRemoveUserFromUserGroupResponse) MarshalToSizedBuffer

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

func (*MsgRemoveUserFromUserGroupResponse) ProtoMessage

func (*MsgRemoveUserFromUserGroupResponse) ProtoMessage()

func (*MsgRemoveUserFromUserGroupResponse) Reset

func (*MsgRemoveUserFromUserGroupResponse) Size

func (*MsgRemoveUserFromUserGroupResponse) String

func (*MsgRemoveUserFromUserGroupResponse) Unmarshal

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

func (*MsgRemoveUserFromUserGroupResponse) XXX_DiscardUnknown

func (m *MsgRemoveUserFromUserGroupResponse) XXX_DiscardUnknown()

func (*MsgRemoveUserFromUserGroupResponse) XXX_Marshal

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

func (*MsgRemoveUserFromUserGroupResponse) XXX_Merge

func (*MsgRemoveUserFromUserGroupResponse) XXX_Size

func (*MsgRemoveUserFromUserGroupResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateSubspace allows to create a subspace
	CreateSubspace(context.Context, *MsgCreateSubspace) (*MsgCreateSubspaceResponse, error)
	// EditSubspace allows to edit a subspace
	EditSubspace(context.Context, *MsgEditSubspace) (*MsgEditSubspaceResponse, error)
	// DeleteSubspace allows to delete a subspace
	DeleteSubspace(context.Context, *MsgDeleteSubspace) (*MsgDeleteSubspaceResponse, error)
	// CreateUserGroup allows to create a user group
	CreateUserGroup(context.Context, *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error)
	// EditUserGroup allows to edit a user group
	EditUserGroup(context.Context, *MsgEditUserGroup) (*MsgEditUserGroupResponse, error)
	// SetUserGroupPermissions allows to set the permissions for a specific group
	SetUserGroupPermissions(context.Context, *MsgSetUserGroupPermissions) (*MsgSetUserGroupPermissionsResponse, error)
	// DeleteUserGroup allows to delete an existing user group
	DeleteUserGroup(context.Context, *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error)
	// AddUserToUserGroup allows to add a specific user to a specific user group
	AddUserToUserGroup(context.Context, *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error)
	// RemoveUserFromUserGroup allows to remove a specific user from a specific
	// user group
	RemoveUserFromUserGroup(context.Context, *MsgRemoveUserFromUserGroup) (*MsgRemoveUserFromUserGroupResponse, error)
	// SetUserPermissions allows to set the permissions for a specific user
	SetUserPermissions(context.Context, *MsgSetUserPermissions) (*MsgSetUserPermissionsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetUserGroupPermissions

type MsgSetUserGroupPermissions struct {
	SubspaceID  uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupID     uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	Signer      string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgSetUserGroupPermissions represents the message used to set the permissions of a user group

func NewMsgSetUserGroupPermissions

func NewMsgSetUserGroupPermissions(subspaceID uint64, groupID uint32, permissions Permission, signer string) *MsgSetUserGroupPermissions

NewMsgSetUserGroupPermissions returns a new MsgSetUserGroupPermissions instance

func (*MsgSetUserGroupPermissions) Descriptor

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

func (*MsgSetUserGroupPermissions) GetGroupID

func (m *MsgSetUserGroupPermissions) GetGroupID() uint32

func (*MsgSetUserGroupPermissions) GetPermissions

func (m *MsgSetUserGroupPermissions) GetPermissions() uint32

func (MsgSetUserGroupPermissions) GetSignBytes

func (msg MsgSetUserGroupPermissions) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSetUserGroupPermissions) GetSigner

func (m *MsgSetUserGroupPermissions) GetSigner() string

func (MsgSetUserGroupPermissions) GetSigners

func (msg MsgSetUserGroupPermissions) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSetUserGroupPermissions) GetSubspaceID

func (m *MsgSetUserGroupPermissions) GetSubspaceID() uint64

func (*MsgSetUserGroupPermissions) Marshal

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

func (*MsgSetUserGroupPermissions) MarshalTo

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

func (*MsgSetUserGroupPermissions) MarshalToSizedBuffer

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

func (*MsgSetUserGroupPermissions) ProtoMessage

func (*MsgSetUserGroupPermissions) ProtoMessage()

func (*MsgSetUserGroupPermissions) Reset

func (m *MsgSetUserGroupPermissions) Reset()

func (MsgSetUserGroupPermissions) Route

func (msg MsgSetUserGroupPermissions) Route() string

Route implements sdk.Msg

func (*MsgSetUserGroupPermissions) Size

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

func (*MsgSetUserGroupPermissions) String

func (m *MsgSetUserGroupPermissions) String() string

func (MsgSetUserGroupPermissions) Type

Type implements sdk.Msg

func (*MsgSetUserGroupPermissions) Unmarshal

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

func (MsgSetUserGroupPermissions) ValidateBasic

func (msg MsgSetUserGroupPermissions) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetUserGroupPermissions) XXX_DiscardUnknown

func (m *MsgSetUserGroupPermissions) XXX_DiscardUnknown()

func (*MsgSetUserGroupPermissions) XXX_Marshal

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

func (*MsgSetUserGroupPermissions) XXX_Merge

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

func (*MsgSetUserGroupPermissions) XXX_Size

func (m *MsgSetUserGroupPermissions) XXX_Size() int

func (*MsgSetUserGroupPermissions) XXX_Unmarshal

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

type MsgSetUserGroupPermissionsResponse

type MsgSetUserGroupPermissionsResponse struct {
}

MsgSetUserGroupPermissionsResponse defines the Msg/SetUserGroupPermissionsResponse response type

func (*MsgSetUserGroupPermissionsResponse) Descriptor

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

func (*MsgSetUserGroupPermissionsResponse) Marshal

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

func (*MsgSetUserGroupPermissionsResponse) MarshalTo

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

func (*MsgSetUserGroupPermissionsResponse) MarshalToSizedBuffer

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

func (*MsgSetUserGroupPermissionsResponse) ProtoMessage

func (*MsgSetUserGroupPermissionsResponse) ProtoMessage()

func (*MsgSetUserGroupPermissionsResponse) Reset

func (*MsgSetUserGroupPermissionsResponse) Size

func (*MsgSetUserGroupPermissionsResponse) String

func (*MsgSetUserGroupPermissionsResponse) Unmarshal

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

func (*MsgSetUserGroupPermissionsResponse) XXX_DiscardUnknown

func (m *MsgSetUserGroupPermissionsResponse) XXX_DiscardUnknown()

func (*MsgSetUserGroupPermissionsResponse) XXX_Marshal

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

func (*MsgSetUserGroupPermissionsResponse) XXX_Merge

func (*MsgSetUserGroupPermissionsResponse) XXX_Size

func (*MsgSetUserGroupPermissionsResponse) XXX_Unmarshal

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

type MsgSetUserPermissions

type MsgSetUserPermissions struct {
	SubspaceID  uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	User        string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	Signer      string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgSetUserPermissions represents the message used to set the permissions of a specific user

func NewMsgSetUserPermissions

func NewMsgSetUserPermissions(subspaceID uint64, user string, permissions uint32, signer string) *MsgSetUserPermissions

NewMsgSetUserPermissions creates a new MsgSetUserPermissions instance

func (*MsgSetUserPermissions) Descriptor

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

func (*MsgSetUserPermissions) GetPermissions

func (m *MsgSetUserPermissions) GetPermissions() uint32

func (MsgSetUserPermissions) GetSignBytes

func (msg MsgSetUserPermissions) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgSetUserPermissions) GetSigner

func (m *MsgSetUserPermissions) GetSigner() string

func (MsgSetUserPermissions) GetSigners

func (msg MsgSetUserPermissions) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgSetUserPermissions) GetSubspaceID

func (m *MsgSetUserPermissions) GetSubspaceID() uint64

func (*MsgSetUserPermissions) GetUser

func (m *MsgSetUserPermissions) GetUser() string

func (*MsgSetUserPermissions) Marshal

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

func (*MsgSetUserPermissions) MarshalTo

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

func (*MsgSetUserPermissions) MarshalToSizedBuffer

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

func (*MsgSetUserPermissions) ProtoMessage

func (*MsgSetUserPermissions) ProtoMessage()

func (*MsgSetUserPermissions) Reset

func (m *MsgSetUserPermissions) Reset()

func (MsgSetUserPermissions) Route

func (msg MsgSetUserPermissions) Route() string

Route implements sdk.Msg

func (*MsgSetUserPermissions) Size

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

func (*MsgSetUserPermissions) String

func (m *MsgSetUserPermissions) String() string

func (MsgSetUserPermissions) Type

func (msg MsgSetUserPermissions) Type() string

Type implements sdk.Msg

func (*MsgSetUserPermissions) Unmarshal

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

func (MsgSetUserPermissions) ValidateBasic

func (msg MsgSetUserPermissions) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgSetUserPermissions) XXX_DiscardUnknown

func (m *MsgSetUserPermissions) XXX_DiscardUnknown()

func (*MsgSetUserPermissions) XXX_Marshal

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

func (*MsgSetUserPermissions) XXX_Merge

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

func (*MsgSetUserPermissions) XXX_Size

func (m *MsgSetUserPermissions) XXX_Size() int

func (*MsgSetUserPermissions) XXX_Unmarshal

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

type MsgSetUserPermissionsResponse

type MsgSetUserPermissionsResponse struct {
}

MsgSetUserPermissionsResponse defines the Msg/SetPermissionsResponse response type

func (*MsgSetUserPermissionsResponse) Descriptor

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

func (*MsgSetUserPermissionsResponse) Marshal

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

func (*MsgSetUserPermissionsResponse) MarshalTo

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

func (*MsgSetUserPermissionsResponse) MarshalToSizedBuffer

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

func (*MsgSetUserPermissionsResponse) ProtoMessage

func (*MsgSetUserPermissionsResponse) ProtoMessage()

func (*MsgSetUserPermissionsResponse) Reset

func (m *MsgSetUserPermissionsResponse) Reset()

func (*MsgSetUserPermissionsResponse) Size

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

func (*MsgSetUserPermissionsResponse) String

func (*MsgSetUserPermissionsResponse) Unmarshal

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

func (*MsgSetUserPermissionsResponse) XXX_DiscardUnknown

func (m *MsgSetUserPermissionsResponse) XXX_DiscardUnknown()

func (*MsgSetUserPermissionsResponse) XXX_Marshal

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

func (*MsgSetUserPermissionsResponse) XXX_Merge

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

func (*MsgSetUserPermissionsResponse) XXX_Size

func (m *MsgSetUserPermissionsResponse) XXX_Size() int

func (*MsgSetUserPermissionsResponse) XXX_Unmarshal

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

type MultiSubspacesHooks

type MultiSubspacesHooks []SubspacesHooks

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

func NewMultiSubspacesHooks

func NewMultiSubspacesHooks(hooks ...SubspacesHooks) MultiSubspacesHooks

func (MultiSubspacesHooks) AfterSubspaceDeleted

func (h MultiSubspacesHooks) AfterSubspaceDeleted(ctx sdk.Context, subspaceID uint64)

AfterSubspaceDeleted implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupDeleted

func (h MultiSubspacesHooks) AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32)

AfterSubspaceGroupDeleted implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupMemberAdded

func (h MultiSubspacesHooks) AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress)

AfterSubspaceGroupMemberAdded implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved

func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress)

AfterSubspaceGroupMemberRemoved implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceGroupSaved

func (h MultiSubspacesHooks) AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)

AfterSubspaceGroupSaved implements SubspacesHook

func (MultiSubspacesHooks) AfterSubspaceSaved

func (h MultiSubspacesHooks) AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)

AfterSubspaceSaved implements SubspacesHook

func (MultiSubspacesHooks) AfterUserPermissionRemoved

func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress)

AfterUserPermissionRemoved implements SubspacesHook

func (MultiSubspacesHooks) AfterUserPermissionSet

func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress, permissions Permission)

AfterUserPermissionSet implements SubspacesHook

type Permission

type Permission = uint32

Permission represents a permission that can be set to a user or user group

func CombinePermissions

func CombinePermissions(permissions ...Permission) Permission

CombinePermissions combines all the given permissions into a single Permission object using the OR operator

func ParsePermission

func ParsePermission(permission string) (Permission, error)

ParsePermission parses the given permission string as a single Permissions instance

func UnmarshalPermission

func UnmarshalPermission(bz []byte) (permission Permission)

UnmarshalPermission reads the given byte array as a Permission object

type PermissionDetail

type PermissionDetail struct {
	// sum is the oneof that specifies whether this represents a user or
	// group permission detail
	//
	// Types that are valid to be assigned to Sum:
	//	*PermissionDetail_User_
	//	*PermissionDetail_Group_
	Sum isPermissionDetail_Sum `protobuf_oneof:"sum"`
}

PermissionDetail contains the details data of a permission

func NewPermissionDetailGroup

func NewPermissionDetailGroup(groupID uint32, permission Permission) PermissionDetail

NewPermissionDetailGroup returns a new PermissionDetail for the user with the given id and permission value

func NewPermissionDetailUser

func NewPermissionDetailUser(user string, permission Permission) PermissionDetail

NewPermissionDetailUser returns a new PermissionDetail for the user with the given address and permission value

func (*PermissionDetail) Descriptor

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

func (*PermissionDetail) Equal

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

func (*PermissionDetail) GetGroup

func (*PermissionDetail) GetSum

func (m *PermissionDetail) GetSum() isPermissionDetail_Sum

func (*PermissionDetail) GetUser

func (*PermissionDetail) Marshal

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

func (*PermissionDetail) MarshalTo

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

func (*PermissionDetail) MarshalToSizedBuffer

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

func (*PermissionDetail) ProtoMessage

func (*PermissionDetail) ProtoMessage()

func (*PermissionDetail) Reset

func (m *PermissionDetail) Reset()

func (*PermissionDetail) Size

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

func (*PermissionDetail) String

func (m *PermissionDetail) String() string

func (*PermissionDetail) Unmarshal

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

func (*PermissionDetail) XXX_DiscardUnknown

func (m *PermissionDetail) XXX_DiscardUnknown()

func (*PermissionDetail) XXX_Marshal

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

func (*PermissionDetail) XXX_Merge

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

func (*PermissionDetail) XXX_OneofWrappers

func (*PermissionDetail) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PermissionDetail) XXX_Size

func (m *PermissionDetail) XXX_Size() int

func (*PermissionDetail) XXX_Unmarshal

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

type PermissionDetail_Group

type PermissionDetail_Group struct {
	// Error that is associated with the failure
	GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"error"`
	// Permission set to the group
	Permission uint32 `protobuf:"varint,2,opt,name=permission,proto3" json:"permission,omitempty"`
}

Group is a permission that has been set to a user group

func (*PermissionDetail_Group) Descriptor

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

func (*PermissionDetail_Group) Equal

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

func (*PermissionDetail_Group) Marshal

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

func (*PermissionDetail_Group) MarshalTo

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

func (*PermissionDetail_Group) MarshalToSizedBuffer

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

func (*PermissionDetail_Group) ProtoMessage

func (*PermissionDetail_Group) ProtoMessage()

func (*PermissionDetail_Group) Reset

func (m *PermissionDetail_Group) Reset()

func (*PermissionDetail_Group) Size

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

func (*PermissionDetail_Group) String

func (m *PermissionDetail_Group) String() string

func (*PermissionDetail_Group) Unmarshal

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

func (*PermissionDetail_Group) XXX_DiscardUnknown

func (m *PermissionDetail_Group) XXX_DiscardUnknown()

func (*PermissionDetail_Group) XXX_Marshal

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

func (*PermissionDetail_Group) XXX_Merge

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

func (*PermissionDetail_Group) XXX_Size

func (m *PermissionDetail_Group) XXX_Size() int

func (*PermissionDetail_Group) XXX_Unmarshal

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

type PermissionDetail_Group_

type PermissionDetail_Group_ struct {
	Group *PermissionDetail_Group `protobuf:"bytes,2,opt,name=group,proto3,oneof" json:"group,omitempty"`
}

func (*PermissionDetail_Group_) Equal

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

func (*PermissionDetail_Group_) MarshalTo

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

func (*PermissionDetail_Group_) MarshalToSizedBuffer

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

func (*PermissionDetail_Group_) Size

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

type PermissionDetail_User

type PermissionDetail_User struct {
	// User for which the permission was set
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// Permission set to the user
	Permission uint32 `protobuf:"varint,2,opt,name=permission,proto3" json:"permission,omitempty" yaml:"permission"`
}

Success is a permission that has been set to a specific user

func (*PermissionDetail_User) Descriptor

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

func (*PermissionDetail_User) Equal

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

func (*PermissionDetail_User) Marshal

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

func (*PermissionDetail_User) MarshalTo

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

func (*PermissionDetail_User) MarshalToSizedBuffer

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

func (*PermissionDetail_User) ProtoMessage

func (*PermissionDetail_User) ProtoMessage()

func (*PermissionDetail_User) Reset

func (m *PermissionDetail_User) Reset()

func (*PermissionDetail_User) Size

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

func (*PermissionDetail_User) String

func (m *PermissionDetail_User) String() string

func (*PermissionDetail_User) Unmarshal

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

func (*PermissionDetail_User) XXX_DiscardUnknown

func (m *PermissionDetail_User) XXX_DiscardUnknown()

func (*PermissionDetail_User) XXX_Marshal

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

func (*PermissionDetail_User) XXX_Merge

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

func (*PermissionDetail_User) XXX_Size

func (m *PermissionDetail_User) XXX_Size() int

func (*PermissionDetail_User) XXX_Unmarshal

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

type PermissionDetail_User_

type PermissionDetail_User_ struct {
	User *PermissionDetail_User `protobuf:"bytes,1,opt,name=user,proto3,oneof" json:"user,omitempty"`
}

func (*PermissionDetail_User_) Equal

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

func (*PermissionDetail_User_) MarshalTo

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

func (*PermissionDetail_User_) MarshalToSizedBuffer

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

func (*PermissionDetail_User_) Size

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

type QueryClient

type QueryClient interface {
	// Subspaces queries all the subspaces inside Desmos
	Subspaces(ctx context.Context, in *QuerySubspacesRequest, opts ...grpc.CallOption) (*QuerySubspacesResponse, error)
	// Subspace queries all the information about the subspace with the given id
	Subspace(ctx context.Context, in *QuerySubspaceRequest, opts ...grpc.CallOption) (*QuerySubspaceResponse, error)
	// UserGroups queries all the groups that are present inside the subspace with
	// the given id
	UserGroups(ctx context.Context, in *QueryUserGroupsRequest, opts ...grpc.CallOption) (*QueryUserGroupsResponse, error)
	// UserGroup queries the user group having the given id inside the specific
	// subspace
	UserGroup(ctx context.Context, in *QueryUserGroupRequest, opts ...grpc.CallOption) (*QueryUserGroupResponse, error)
	// UserGroupMembers queries all the members of a given user group
	UserGroupMembers(ctx context.Context, in *QueryUserGroupMembersRequest, opts ...grpc.CallOption) (*QueryUserGroupMembersResponse, error)
	// UserPermissions queries the permissions for the given user
	UserPermissions(ctx context.Context, in *QueryUserPermissionsRequest, opts ...grpc.CallOption) (*QueryUserPermissionsResponse, 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 QueryServer

type QueryServer interface {
	// Subspaces queries all the subspaces inside Desmos
	Subspaces(context.Context, *QuerySubspacesRequest) (*QuerySubspacesResponse, error)
	// Subspace queries all the information about the subspace with the given id
	Subspace(context.Context, *QuerySubspaceRequest) (*QuerySubspaceResponse, error)
	// UserGroups queries all the groups that are present inside the subspace with
	// the given id
	UserGroups(context.Context, *QueryUserGroupsRequest) (*QueryUserGroupsResponse, error)
	// UserGroup queries the user group having the given id inside the specific
	// subspace
	UserGroup(context.Context, *QueryUserGroupRequest) (*QueryUserGroupResponse, error)
	// UserGroupMembers queries all the members of a given user group
	UserGroupMembers(context.Context, *QueryUserGroupMembersRequest) (*QueryUserGroupMembersResponse, error)
	// UserPermissions queries the permissions for the given user
	UserPermissions(context.Context, *QueryUserPermissionsRequest) (*QueryUserPermissionsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySubspaceRequest

type QuerySubspaceRequest struct {
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}

QuerySubspace is the request type for the Query/Subspace RPC method

func NewQuerySubspaceRequest

func NewQuerySubspaceRequest(subspaceID uint64) *QuerySubspaceRequest

NewQuerySubspaceRequest returns a new QuerySubspaceRequest instance

func (*QuerySubspaceRequest) Descriptor

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

func (*QuerySubspaceRequest) Marshal

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

func (*QuerySubspaceRequest) MarshalTo

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

func (*QuerySubspaceRequest) MarshalToSizedBuffer

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

func (*QuerySubspaceRequest) ProtoMessage

func (*QuerySubspaceRequest) ProtoMessage()

func (*QuerySubspaceRequest) Reset

func (m *QuerySubspaceRequest) Reset()

func (*QuerySubspaceRequest) Size

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

func (*QuerySubspaceRequest) String

func (m *QuerySubspaceRequest) String() string

func (*QuerySubspaceRequest) Unmarshal

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

func (*QuerySubspaceRequest) XXX_DiscardUnknown

func (m *QuerySubspaceRequest) XXX_DiscardUnknown()

func (*QuerySubspaceRequest) XXX_Marshal

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

func (*QuerySubspaceRequest) XXX_Merge

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

func (*QuerySubspaceRequest) XXX_Size

func (m *QuerySubspaceRequest) XXX_Size() int

func (*QuerySubspaceRequest) XXX_Unmarshal

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

type QuerySubspaceResponse

type QuerySubspaceResponse struct {
	Subspace Subspace `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace"`
}

QuerySubspaceResponse is the response type for the Query/Subspace method

func (*QuerySubspaceResponse) Descriptor

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

func (*QuerySubspaceResponse) GetSubspace

func (m *QuerySubspaceResponse) GetSubspace() Subspace

func (*QuerySubspaceResponse) Marshal

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

func (*QuerySubspaceResponse) MarshalTo

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

func (*QuerySubspaceResponse) MarshalToSizedBuffer

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

func (*QuerySubspaceResponse) ProtoMessage

func (*QuerySubspaceResponse) ProtoMessage()

func (*QuerySubspaceResponse) Reset

func (m *QuerySubspaceResponse) Reset()

func (*QuerySubspaceResponse) Size

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

func (*QuerySubspaceResponse) String

func (m *QuerySubspaceResponse) String() string

func (*QuerySubspaceResponse) Unmarshal

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

func (*QuerySubspaceResponse) XXX_DiscardUnknown

func (m *QuerySubspaceResponse) XXX_DiscardUnknown()

func (*QuerySubspaceResponse) XXX_Marshal

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

func (*QuerySubspaceResponse) XXX_Merge

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

func (*QuerySubspaceResponse) XXX_Size

func (m *QuerySubspaceResponse) XXX_Size() int

func (*QuerySubspaceResponse) XXX_Unmarshal

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

type QuerySubspacesRequest

type QuerySubspacesRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacesRequest is the request type for the Query/Subspaces RPC method

func NewQuerySubspacesRequest

func NewQuerySubspacesRequest(pagination *query.PageRequest) *QuerySubspacesRequest

NewQuerySubspacesRequest returns a new QuerySubspacesRequest instance

func (*QuerySubspacesRequest) Descriptor

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

func (*QuerySubspacesRequest) GetPagination

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

func (*QuerySubspacesRequest) Marshal

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

func (*QuerySubspacesRequest) MarshalTo

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

func (*QuerySubspacesRequest) MarshalToSizedBuffer

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

func (*QuerySubspacesRequest) ProtoMessage

func (*QuerySubspacesRequest) ProtoMessage()

func (*QuerySubspacesRequest) Reset

func (m *QuerySubspacesRequest) Reset()

func (*QuerySubspacesRequest) Size

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

func (*QuerySubspacesRequest) String

func (m *QuerySubspacesRequest) String() string

func (*QuerySubspacesRequest) Unmarshal

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

func (*QuerySubspacesRequest) XXX_DiscardUnknown

func (m *QuerySubspacesRequest) XXX_DiscardUnknown()

func (*QuerySubspacesRequest) XXX_Marshal

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

func (*QuerySubspacesRequest) XXX_Merge

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

func (*QuerySubspacesRequest) XXX_Size

func (m *QuerySubspacesRequest) XXX_Size() int

func (*QuerySubspacesRequest) XXX_Unmarshal

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

type QuerySubspacesResponse

type QuerySubspacesResponse struct {
	Subspaces  []Subspace          `protobuf:"bytes,1,rep,name=subspaces,proto3" json:"subspaces"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySubspacesResponse is the response type for the Query/Subspaces RPC method

func (*QuerySubspacesResponse) Descriptor

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

func (*QuerySubspacesResponse) GetPagination

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

func (*QuerySubspacesResponse) GetSubspaces

func (m *QuerySubspacesResponse) GetSubspaces() []Subspace

func (*QuerySubspacesResponse) Marshal

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

func (*QuerySubspacesResponse) MarshalTo

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

func (*QuerySubspacesResponse) MarshalToSizedBuffer

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

func (*QuerySubspacesResponse) ProtoMessage

func (*QuerySubspacesResponse) ProtoMessage()

func (*QuerySubspacesResponse) Reset

func (m *QuerySubspacesResponse) Reset()

func (*QuerySubspacesResponse) Size

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

func (*QuerySubspacesResponse) String

func (m *QuerySubspacesResponse) String() string

func (*QuerySubspacesResponse) Unmarshal

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

func (*QuerySubspacesResponse) XXX_DiscardUnknown

func (m *QuerySubspacesResponse) XXX_DiscardUnknown()

func (*QuerySubspacesResponse) XXX_Marshal

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

func (*QuerySubspacesResponse) XXX_Merge

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

func (*QuerySubspacesResponse) XXX_Size

func (m *QuerySubspacesResponse) XXX_Size() int

func (*QuerySubspacesResponse) XXX_Unmarshal

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

type QueryUserGroupMembersRequest

type QueryUserGroupMembersRequest struct {
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupId    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupMembersRequest is the request type for the Query/UserGroupMembers RPC method

func NewQueryUserGroupMembersRequest

func NewQueryUserGroupMembersRequest(
	subspaceID uint64, groupID uint32, pagination *query.PageRequest,
) *QueryUserGroupMembersRequest

NewQueryUserGroupMembersRequest returns a new QueryUserGroupMembersRequest instance

func (*QueryUserGroupMembersRequest) Descriptor

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

func (*QueryUserGroupMembersRequest) GetGroupId

func (m *QueryUserGroupMembersRequest) GetGroupId() uint32

func (*QueryUserGroupMembersRequest) GetPagination

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

func (*QueryUserGroupMembersRequest) GetSubspaceId

func (m *QueryUserGroupMembersRequest) GetSubspaceId() uint64

func (*QueryUserGroupMembersRequest) Marshal

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

func (*QueryUserGroupMembersRequest) MarshalTo

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

func (*QueryUserGroupMembersRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupMembersRequest) ProtoMessage

func (*QueryUserGroupMembersRequest) ProtoMessage()

func (*QueryUserGroupMembersRequest) Reset

func (m *QueryUserGroupMembersRequest) Reset()

func (*QueryUserGroupMembersRequest) Size

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

func (*QueryUserGroupMembersRequest) String

func (*QueryUserGroupMembersRequest) Unmarshal

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

func (*QueryUserGroupMembersRequest) XXX_DiscardUnknown

func (m *QueryUserGroupMembersRequest) XXX_DiscardUnknown()

func (*QueryUserGroupMembersRequest) XXX_Marshal

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

func (*QueryUserGroupMembersRequest) XXX_Merge

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

func (*QueryUserGroupMembersRequest) XXX_Size

func (m *QueryUserGroupMembersRequest) XXX_Size() int

func (*QueryUserGroupMembersRequest) XXX_Unmarshal

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

type QueryUserGroupMembersResponse

type QueryUserGroupMembersResponse struct {
	Members    []string            `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupMembersResponse is the response type for the Query/UserGroupMembers RPC method

func (*QueryUserGroupMembersResponse) Descriptor

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

func (*QueryUserGroupMembersResponse) GetMembers

func (m *QueryUserGroupMembersResponse) GetMembers() []string

func (*QueryUserGroupMembersResponse) GetPagination

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

func (*QueryUserGroupMembersResponse) Marshal

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

func (*QueryUserGroupMembersResponse) MarshalTo

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

func (*QueryUserGroupMembersResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupMembersResponse) ProtoMessage

func (*QueryUserGroupMembersResponse) ProtoMessage()

func (*QueryUserGroupMembersResponse) Reset

func (m *QueryUserGroupMembersResponse) Reset()

func (*QueryUserGroupMembersResponse) Size

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

func (*QueryUserGroupMembersResponse) String

func (*QueryUserGroupMembersResponse) Unmarshal

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

func (*QueryUserGroupMembersResponse) XXX_DiscardUnknown

func (m *QueryUserGroupMembersResponse) XXX_DiscardUnknown()

func (*QueryUserGroupMembersResponse) XXX_Marshal

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

func (*QueryUserGroupMembersResponse) XXX_Merge

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

func (*QueryUserGroupMembersResponse) XXX_Size

func (m *QueryUserGroupMembersResponse) XXX_Size() int

func (*QueryUserGroupMembersResponse) XXX_Unmarshal

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

type QueryUserGroupRequest

type QueryUserGroupRequest struct {
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	GroupId    uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
}

QueryUserGroupRequest is the request type for the Query/UserGroup RPC method

func NewQueryUserGroupRequest

func NewQueryUserGroupRequest(subspaceID uint64, groupID uint32) *QueryUserGroupRequest

NewQueryUserGroupRequest returns a new QueryUserGroupRequest instance

func (*QueryUserGroupRequest) Descriptor

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

func (*QueryUserGroupRequest) GetGroupId

func (m *QueryUserGroupRequest) GetGroupId() uint32

func (*QueryUserGroupRequest) GetSubspaceId

func (m *QueryUserGroupRequest) GetSubspaceId() uint64

func (*QueryUserGroupRequest) Marshal

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

func (*QueryUserGroupRequest) MarshalTo

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

func (*QueryUserGroupRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupRequest) ProtoMessage

func (*QueryUserGroupRequest) ProtoMessage()

func (*QueryUserGroupRequest) Reset

func (m *QueryUserGroupRequest) Reset()

func (*QueryUserGroupRequest) Size

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

func (*QueryUserGroupRequest) String

func (m *QueryUserGroupRequest) String() string

func (*QueryUserGroupRequest) Unmarshal

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

func (*QueryUserGroupRequest) XXX_DiscardUnknown

func (m *QueryUserGroupRequest) XXX_DiscardUnknown()

func (*QueryUserGroupRequest) XXX_Marshal

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

func (*QueryUserGroupRequest) XXX_Merge

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

func (*QueryUserGroupRequest) XXX_Size

func (m *QueryUserGroupRequest) XXX_Size() int

func (*QueryUserGroupRequest) XXX_Unmarshal

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

type QueryUserGroupResponse

type QueryUserGroupResponse struct {
	Group UserGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
}

QueryUserGroupResponse is the response type for the Query/UserGroup RPC method

func (*QueryUserGroupResponse) Descriptor

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

func (*QueryUserGroupResponse) GetGroup

func (m *QueryUserGroupResponse) GetGroup() UserGroup

func (*QueryUserGroupResponse) Marshal

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

func (*QueryUserGroupResponse) MarshalTo

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

func (*QueryUserGroupResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupResponse) ProtoMessage

func (*QueryUserGroupResponse) ProtoMessage()

func (*QueryUserGroupResponse) Reset

func (m *QueryUserGroupResponse) Reset()

func (*QueryUserGroupResponse) Size

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

func (*QueryUserGroupResponse) String

func (m *QueryUserGroupResponse) String() string

func (*QueryUserGroupResponse) Unmarshal

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

func (*QueryUserGroupResponse) XXX_DiscardUnknown

func (m *QueryUserGroupResponse) XXX_DiscardUnknown()

func (*QueryUserGroupResponse) XXX_Marshal

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

func (*QueryUserGroupResponse) XXX_Merge

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

func (*QueryUserGroupResponse) XXX_Size

func (m *QueryUserGroupResponse) XXX_Size() int

func (*QueryUserGroupResponse) XXX_Unmarshal

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

type QueryUserGroupsRequest

type QueryUserGroupsRequest struct {
	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,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupsRequest is the request type for the Query/UserGroups RPC method

func NewQueryUserGroupsRequest

func NewQueryUserGroupsRequest(subspaceID uint64, pagination *query.PageRequest) *QueryUserGroupsRequest

NewQueryUserGroupsRequest returns a new QueryUserGroupsRequest instance

func (*QueryUserGroupsRequest) Descriptor

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

func (*QueryUserGroupsRequest) GetPagination

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

func (*QueryUserGroupsRequest) GetSubspaceId

func (m *QueryUserGroupsRequest) GetSubspaceId() uint64

func (*QueryUserGroupsRequest) Marshal

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

func (*QueryUserGroupsRequest) MarshalTo

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

func (*QueryUserGroupsRequest) MarshalToSizedBuffer

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

func (*QueryUserGroupsRequest) ProtoMessage

func (*QueryUserGroupsRequest) ProtoMessage()

func (*QueryUserGroupsRequest) Reset

func (m *QueryUserGroupsRequest) Reset()

func (*QueryUserGroupsRequest) Size

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

func (*QueryUserGroupsRequest) String

func (m *QueryUserGroupsRequest) String() string

func (*QueryUserGroupsRequest) Unmarshal

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

func (*QueryUserGroupsRequest) XXX_DiscardUnknown

func (m *QueryUserGroupsRequest) XXX_DiscardUnknown()

func (*QueryUserGroupsRequest) XXX_Marshal

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

func (*QueryUserGroupsRequest) XXX_Merge

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

func (*QueryUserGroupsRequest) XXX_Size

func (m *QueryUserGroupsRequest) XXX_Size() int

func (*QueryUserGroupsRequest) XXX_Unmarshal

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

type QueryUserGroupsResponse

type QueryUserGroupsResponse struct {
	Groups     []UserGroup         `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserGroupsResponse is the response type for the Query/UserGroups RPC method

func (*QueryUserGroupsResponse) Descriptor

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

func (*QueryUserGroupsResponse) GetGroups

func (m *QueryUserGroupsResponse) GetGroups() []UserGroup

func (*QueryUserGroupsResponse) GetPagination

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

func (*QueryUserGroupsResponse) Marshal

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

func (*QueryUserGroupsResponse) MarshalTo

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

func (*QueryUserGroupsResponse) MarshalToSizedBuffer

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

func (*QueryUserGroupsResponse) ProtoMessage

func (*QueryUserGroupsResponse) ProtoMessage()

func (*QueryUserGroupsResponse) Reset

func (m *QueryUserGroupsResponse) Reset()

func (*QueryUserGroupsResponse) Size

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

func (*QueryUserGroupsResponse) String

func (m *QueryUserGroupsResponse) String() string

func (*QueryUserGroupsResponse) Unmarshal

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

func (*QueryUserGroupsResponse) XXX_DiscardUnknown

func (m *QueryUserGroupsResponse) XXX_DiscardUnknown()

func (*QueryUserGroupsResponse) XXX_Marshal

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

func (*QueryUserGroupsResponse) XXX_Merge

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

func (*QueryUserGroupsResponse) XXX_Size

func (m *QueryUserGroupsResponse) XXX_Size() int

func (*QueryUserGroupsResponse) XXX_Unmarshal

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

type QueryUserPermissionsRequest

type QueryUserPermissionsRequest struct {
	SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	User       string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
}

QueryUserPermissionsRequest is the request type for the Query/UserPermissions RPC method

func NewQueryUserPermissionsRequest

func NewQueryUserPermissionsRequest(subspaceID uint64, user string) *QueryUserPermissionsRequest

NewQueryUserPermissionsRequest returns a new QueryPermissionsRequest instance

func (*QueryUserPermissionsRequest) Descriptor

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

func (*QueryUserPermissionsRequest) Marshal

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

func (*QueryUserPermissionsRequest) MarshalTo

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

func (*QueryUserPermissionsRequest) MarshalToSizedBuffer

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

func (*QueryUserPermissionsRequest) ProtoMessage

func (*QueryUserPermissionsRequest) ProtoMessage()

func (*QueryUserPermissionsRequest) Reset

func (m *QueryUserPermissionsRequest) Reset()

func (*QueryUserPermissionsRequest) Size

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

func (*QueryUserPermissionsRequest) String

func (m *QueryUserPermissionsRequest) String() string

func (*QueryUserPermissionsRequest) Unmarshal

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

func (*QueryUserPermissionsRequest) XXX_DiscardUnknown

func (m *QueryUserPermissionsRequest) XXX_DiscardUnknown()

func (*QueryUserPermissionsRequest) XXX_Marshal

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

func (*QueryUserPermissionsRequest) XXX_Merge

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

func (*QueryUserPermissionsRequest) XXX_Size

func (m *QueryUserPermissionsRequest) XXX_Size() int

func (*QueryUserPermissionsRequest) XXX_Unmarshal

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

type QueryUserPermissionsResponse

type QueryUserPermissionsResponse struct {
	Permissions uint32             `protobuf:"varint,1,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
	Details     []PermissionDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details" yaml:"details"`
}

QueryUserPermissionsRequest is the response type for the Query/UserPermissions method

func (*QueryUserPermissionsResponse) Descriptor

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

func (*QueryUserPermissionsResponse) GetDetails

func (*QueryUserPermissionsResponse) GetPermissions

func (m *QueryUserPermissionsResponse) GetPermissions() uint32

func (*QueryUserPermissionsResponse) Marshal

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

func (*QueryUserPermissionsResponse) MarshalTo

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

func (*QueryUserPermissionsResponse) MarshalToSizedBuffer

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

func (*QueryUserPermissionsResponse) ProtoMessage

func (*QueryUserPermissionsResponse) ProtoMessage()

func (*QueryUserPermissionsResponse) Reset

func (m *QueryUserPermissionsResponse) Reset()

func (*QueryUserPermissionsResponse) Size

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

func (*QueryUserPermissionsResponse) String

func (*QueryUserPermissionsResponse) Unmarshal

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

func (*QueryUserPermissionsResponse) XXX_DiscardUnknown

func (m *QueryUserPermissionsResponse) XXX_DiscardUnknown()

func (*QueryUserPermissionsResponse) XXX_Marshal

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

func (*QueryUserPermissionsResponse) XXX_Merge

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

func (*QueryUserPermissionsResponse) XXX_Size

func (m *QueryUserPermissionsResponse) XXX_Size() int

func (*QueryUserPermissionsResponse) XXX_Unmarshal

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

type Subspace

type Subspace struct {
	// Unique id that identifies the subspace
	ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Human-readable name of the subspace
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// Optional description of this subspace
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Represents the account that is associated with the subspace and
	// should be used to connect external applications to verify this subspace
	Treasury string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"`
	// Address of the user that owns the subspace
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// Address of the subspace creator
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
	// the creation time of the subspace
	CreationTime time.Time `protobuf:"bytes,7,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
}

Subspace contains all the data of a Desmos subspace

func NewSubspace

func NewSubspace(subspaceID uint64, name, description, treasury, owner, creator string, creationTime time.Time) Subspace

NewSubspace is a constructor for the Subspace type

func (*Subspace) Descriptor

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

func (*Subspace) Equal

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

func (*Subspace) GetCreationTime

func (m *Subspace) GetCreationTime() time.Time

func (*Subspace) GetCreator

func (m *Subspace) GetCreator() string

func (*Subspace) GetDescription

func (m *Subspace) GetDescription() string

func (*Subspace) GetID

func (m *Subspace) GetID() uint64

func (*Subspace) GetName

func (m *Subspace) GetName() string

func (*Subspace) GetOwner

func (m *Subspace) GetOwner() string

func (*Subspace) GetTreasury

func (m *Subspace) GetTreasury() string

func (*Subspace) Marshal

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

func (*Subspace) MarshalTo

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

func (*Subspace) MarshalToSizedBuffer

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

func (*Subspace) ProtoMessage

func (*Subspace) ProtoMessage()

func (*Subspace) Reset

func (m *Subspace) Reset()

func (*Subspace) Size

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

func (*Subspace) String

func (m *Subspace) String() string

func (*Subspace) Unmarshal

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

func (Subspace) Update

func (sub Subspace) Update(update *SubspaceUpdate) Subspace

Update updates the fields of a given subspace without validating it. Before storing the updated subspace, a validation with Validate() should be performed.

func (Subspace) Validate

func (sub Subspace) Validate() error

Validate will perform some checks to ensure the subspace validity

func (*Subspace) XXX_DiscardUnknown

func (m *Subspace) XXX_DiscardUnknown()

func (*Subspace) XXX_Marshal

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

func (*Subspace) XXX_Merge

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

func (*Subspace) XXX_Size

func (m *Subspace) XXX_Size() int

func (*Subspace) XXX_Unmarshal

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

type SubspaceUpdate

type SubspaceUpdate struct {
	Name        string
	Description string
	Treasury    string
	Owner       string
}

SubspaceUpdate contains all the data that can be updated about a subspace. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewSubspaceUpdate

func NewSubspaceUpdate(name, description, treasury, owner string) *SubspaceUpdate

NewSubspaceUpdate builds a new SubspaceUpdate instance containing the given data

type SubspacesHooks

type SubspacesHooks interface {
	AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)   // Must be called when a subspace is saved
	AfterSubspaceDeleted(ctx sdk.Context, subspaceID uint64) // Must be called when a subspace is deleted

	AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)                              // Must be called when a subspace group is created
	AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress)   // Must be called when a user is added to a group
	AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress) // Must be called when a user is removed from a group
	AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32)                            // Must be called when a subspace group is deleted

	AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress, permissions Permission) // Must be called when a permission is set for a user
	AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress)                     // Must be called when a permission is removed for a user
}

SubspacesHooks event hooks for subspaces objects (noalias)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddUserToUserGroup

func (*UnimplementedMsgServer) CreateSubspace

func (*UnimplementedMsgServer) CreateUserGroup

func (*UnimplementedMsgServer) DeleteSubspace

func (*UnimplementedMsgServer) DeleteUserGroup

func (*UnimplementedMsgServer) EditSubspace

func (*UnimplementedMsgServer) EditUserGroup

func (*UnimplementedMsgServer) RemoveUserFromUserGroup

func (*UnimplementedMsgServer) SetUserGroupPermissions

func (*UnimplementedMsgServer) SetUserPermissions

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Subspace

func (*UnimplementedQueryServer) Subspaces

func (*UnimplementedQueryServer) UserGroup

func (*UnimplementedQueryServer) UserGroupMembers

func (*UnimplementedQueryServer) UserGroups

func (*UnimplementedQueryServer) UserPermissions

type UserGroup

type UserGroup struct {
	// ID of the subspace inside which this group exists
	SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
	// Unique id that identifies the group
	ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// Human-readable name of the user group
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
	// Optional description of this group
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// Permissions that will be granted to all the users part of this group
	Permissions uint32 `protobuf:"varint,5,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"`
}

UserGroup represents a group of users

func DefaultUserGroup

func DefaultUserGroup(subspaceID uint64) UserGroup

DefaultUserGroup returns the default user group for the given subspace

func NewUserGroup

func NewUserGroup(subspaceID uint64, id uint32, name, description string, permissions Permission) UserGroup

NewUserGroup returns a new UserGroup instance

func (*UserGroup) Descriptor

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

func (*UserGroup) Equal

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

func (*UserGroup) GetDescription

func (m *UserGroup) GetDescription() string

func (*UserGroup) GetID

func (m *UserGroup) GetID() uint32

func (*UserGroup) GetName

func (m *UserGroup) GetName() string

func (*UserGroup) GetPermissions

func (m *UserGroup) GetPermissions() uint32

func (*UserGroup) GetSubspaceID

func (m *UserGroup) GetSubspaceID() uint64

func (*UserGroup) Marshal

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

func (*UserGroup) MarshalTo

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

func (*UserGroup) MarshalToSizedBuffer

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

func (*UserGroup) ProtoMessage

func (*UserGroup) ProtoMessage()

func (*UserGroup) Reset

func (m *UserGroup) Reset()

func (*UserGroup) Size

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

func (*UserGroup) String

func (m *UserGroup) String() string

func (*UserGroup) Unmarshal

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

func (UserGroup) Update

func (group UserGroup) Update(update *GroupUpdate) UserGroup

Update updates the fields of a given group without validating it. Before storing the updated group, a validation with Validate() should be performed.

func (UserGroup) Validate

func (group UserGroup) Validate() error

Validate returns an error if something is wrong within the group data

func (*UserGroup) XXX_DiscardUnknown

func (m *UserGroup) XXX_DiscardUnknown()

func (*UserGroup) XXX_Marshal

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

func (*UserGroup) XXX_Merge

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

func (*UserGroup) XXX_Size

func (m *UserGroup) XXX_Size() int

func (*UserGroup) XXX_Unmarshal

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

type UserGroupMembersEntry

type UserGroupMembersEntry struct {
	SubspaceID uint64   `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"`
	GroupID    uint32   `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
	Members    []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
}

UserGroupMembersEntry contains all the members of a specific user group

func NewUserGroupMembersEntry

func NewUserGroupMembersEntry(subspaceID uint64, groupID uint32, members []string) UserGroupMembersEntry

NewUserGroupMembersEntry returns a new UserGroupMembersEntry instance

func (*UserGroupMembersEntry) Descriptor

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

func (*UserGroupMembersEntry) Equal

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

func (*UserGroupMembersEntry) GetGroupID

func (m *UserGroupMembersEntry) GetGroupID() uint32

func (*UserGroupMembersEntry) GetMembers

func (m *UserGroupMembersEntry) GetMembers() []string

func (*UserGroupMembersEntry) GetSubspaceID

func (m *UserGroupMembersEntry) GetSubspaceID() uint64

func (*UserGroupMembersEntry) Marshal

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

func (*UserGroupMembersEntry) MarshalTo

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

func (*UserGroupMembersEntry) MarshalToSizedBuffer

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

func (*UserGroupMembersEntry) ProtoMessage

func (*UserGroupMembersEntry) ProtoMessage()

func (*UserGroupMembersEntry) Reset

func (m *UserGroupMembersEntry) Reset()

func (*UserGroupMembersEntry) Size

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

func (*UserGroupMembersEntry) String

func (m *UserGroupMembersEntry) String() string

func (*UserGroupMembersEntry) Unmarshal

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

func (UserGroupMembersEntry) Validate

func (entry UserGroupMembersEntry) Validate() error

Validate returns an error if something is wrong within the entry data

func (*UserGroupMembersEntry) XXX_DiscardUnknown

func (m *UserGroupMembersEntry) XXX_DiscardUnknown()

func (*UserGroupMembersEntry) XXX_Marshal

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

func (*UserGroupMembersEntry) XXX_Merge

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

func (*UserGroupMembersEntry) XXX_Size

func (m *UserGroupMembersEntry) XXX_Size() int

func (*UserGroupMembersEntry) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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