Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ArePermissionsValid(permissions Permissions) bool
- func CheckPermission(permissions Permissions, permission Permission) bool
- func CheckPermissions(permissions Permissions, toCheck Permissions) bool
- func GetAddressBytes(user string) []byte
- func GetAddressFromBytes(bz []byte) string
- func GetGroupIDBytes(groupID uint32) (groupIDBz []byte)
- func GetGroupIDFromBytes(bz []byte) (subspaceID uint32)
- func GetSectionIDBytes(sectionID uint32) (sectionIDBz []byte)
- func GetSectionIDFromBytes(bz []byte) (sectionID uint32)
- func GetSubspaceIDBytes(subspaceID uint64) (subspaceIDBz []byte)
- func GetSubspaceIDFromBytes(bz []byte) (subspaceID uint64)
- func GroupMemberStoreKey(subspaceID uint64, groupID uint32, user string) []byte
- func GroupMembersPrefix(subspaceID uint64, groupID uint32) []byte
- func GroupStoreKey(subspaceID uint64, sectionID uint32, groupID uint32) []byte
- func NextGroupIDStoreKey(subspaceID uint64) []byte
- func NextSectionIDStoreKey(subspaceID uint64) []byte
- func ParseGroupID(value string) (uint32, error)
- func ParseSectionID(value string) (uint32, error)
- func ParseSubspaceID(value string) (uint64, error)
- func ParseSubspacesIDs(value string) (ids []uint64, err error)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SectionGroupsPrefix(subspaceID uint64, sectionID uint32) []byte
- func SectionPermissionsPrefix(subspaceID uint64, sectionID uint32) []byte
- func SectionStoreKey(subspaceID uint64, sectionID uint32) []byte
- func SerializePermission(permission Permission) string
- func SplitGroupMemberStoreKey(key []byte) (subspaceID uint64, groupID uint32, user string)
- func SplitUserAddressPermissionKey(key []byte) (subspaceID uint64, sectionID uint32, user string)
- func SubspaceGroupsMembersPrefix(subspaceID uint64) []byte
- func SubspaceGroupsPrefix(subspaceID uint64) []byte
- func SubspacePermissionsPrefix(subspaceID uint64) []byte
- func SubspaceSectionsPrefix(subspaceID uint64) []byte
- func SubspaceStoreKey(subspaceID uint64) []byte
- func UserPermissionStoreKey(subspaceID uint64, sectionID uint32, user string) []byte
- func ValidateGenesis(data *GenesisState) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetInitialSubspaceID() uint64
- func (m *GenesisState) GetSections() []Section
- func (m *GenesisState) GetSubspaces() []Subspace
- func (m *GenesisState) GetSubspacesData() []SubspaceData
- func (m *GenesisState) GetUserGroups() []UserGroup
- func (m *GenesisState) GetUserGroupsMembers() []UserGroupMemberEntry
- func (m *GenesisState) GetUserPermissions() []UserPermission
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type GroupUpdate
- type MsgAddUserToUserGroup
- func (*MsgAddUserToUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgAddUserToUserGroup) GetGroupID() uint32
- func (msg MsgAddUserToUserGroup) GetSignBytes() []byte
- func (m *MsgAddUserToUserGroup) GetSigner() string
- func (msg MsgAddUserToUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgAddUserToUserGroup) GetSubspaceID() uint64
- func (m *MsgAddUserToUserGroup) GetUser() string
- func (m *MsgAddUserToUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgAddUserToUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddUserToUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddUserToUserGroup) ProtoMessage()
- func (m *MsgAddUserToUserGroup) Reset()
- func (msg MsgAddUserToUserGroup) Route() string
- func (m *MsgAddUserToUserGroup) Size() (n int)
- func (m *MsgAddUserToUserGroup) String() string
- func (msg MsgAddUserToUserGroup) Type() string
- func (m *MsgAddUserToUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgAddUserToUserGroup) ValidateBasic() error
- func (m *MsgAddUserToUserGroup) XXX_DiscardUnknown()
- func (m *MsgAddUserToUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddUserToUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgAddUserToUserGroup) XXX_Size() int
- func (m *MsgAddUserToUserGroup) XXX_Unmarshal(b []byte) error
- type MsgAddUserToUserGroupResponse
- func (*MsgAddUserToUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddUserToUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddUserToUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddUserToUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddUserToUserGroupResponse) ProtoMessage()
- func (m *MsgAddUserToUserGroupResponse) Reset()
- func (m *MsgAddUserToUserGroupResponse) Size() (n int)
- func (m *MsgAddUserToUserGroupResponse) String() string
- func (m *MsgAddUserToUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddUserToUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgAddUserToUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddUserToUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddUserToUserGroupResponse) XXX_Size() int
- func (m *MsgAddUserToUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateSection
- func (*MsgCreateSection) Descriptor() ([]byte, []int)
- func (m *MsgCreateSection) GetCreator() string
- func (m *MsgCreateSection) GetDescription() string
- func (m *MsgCreateSection) GetName() string
- func (m *MsgCreateSection) GetParentID() uint32
- func (msg MsgCreateSection) GetSignBytes() []byte
- func (msg MsgCreateSection) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSection) GetSubspaceID() uint64
- func (m *MsgCreateSection) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSection) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSection) ProtoMessage()
- func (m *MsgCreateSection) Reset()
- func (msg MsgCreateSection) Route() string
- func (m *MsgCreateSection) Size() (n int)
- func (m *MsgCreateSection) String() string
- func (msg MsgCreateSection) Type() string
- func (m *MsgCreateSection) Unmarshal(dAtA []byte) error
- func (msg MsgCreateSection) ValidateBasic() error
- func (m *MsgCreateSection) XXX_DiscardUnknown()
- func (m *MsgCreateSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSection) XXX_Merge(src proto.Message)
- func (m *MsgCreateSection) XXX_Size() int
- func (m *MsgCreateSection) XXX_Unmarshal(b []byte) error
- type MsgCreateSectionResponse
- func (*MsgCreateSectionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSectionResponse) GetSectionID() uint32
- func (m *MsgCreateSectionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSectionResponse) ProtoMessage()
- func (m *MsgCreateSectionResponse) Reset()
- func (m *MsgCreateSectionResponse) Size() (n int)
- func (m *MsgCreateSectionResponse) String() string
- func (m *MsgCreateSectionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSectionResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSectionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSectionResponse) XXX_Size() int
- func (m *MsgCreateSectionResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateSubspace
- func (*MsgCreateSubspace) Descriptor() ([]byte, []int)
- func (m *MsgCreateSubspace) GetCreator() string
- func (m *MsgCreateSubspace) GetDescription() string
- func (m *MsgCreateSubspace) GetName() string
- func (m *MsgCreateSubspace) GetOwner() string
- func (msg MsgCreateSubspace) GetSignBytes() []byte
- func (msg MsgCreateSubspace) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSubspace) GetTreasury() string
- func (m *MsgCreateSubspace) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSubspace) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSubspace) ProtoMessage()
- func (m *MsgCreateSubspace) Reset()
- func (msg MsgCreateSubspace) Route() string
- func (m *MsgCreateSubspace) Size() (n int)
- func (m *MsgCreateSubspace) String() string
- func (msg MsgCreateSubspace) Type() string
- func (m *MsgCreateSubspace) Unmarshal(dAtA []byte) error
- func (msg MsgCreateSubspace) ValidateBasic() error
- func (m *MsgCreateSubspace) XXX_DiscardUnknown()
- func (m *MsgCreateSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSubspace) XXX_Merge(src proto.Message)
- func (m *MsgCreateSubspace) XXX_Size() int
- func (m *MsgCreateSubspace) XXX_Unmarshal(b []byte) error
- type MsgCreateSubspaceResponse
- func (*MsgCreateSubspaceResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSubspaceResponse) GetSubspaceID() uint64
- func (m *MsgCreateSubspaceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSubspaceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSubspaceResponse) ProtoMessage()
- func (m *MsgCreateSubspaceResponse) Reset()
- func (m *MsgCreateSubspaceResponse) Size() (n int)
- func (m *MsgCreateSubspaceResponse) String() string
- func (m *MsgCreateSubspaceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSubspaceResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSubspaceResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSubspaceResponse) XXX_Size() int
- func (m *MsgCreateSubspaceResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateUserGroup
- func (*MsgCreateUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgCreateUserGroup) GetCreator() string
- func (m *MsgCreateUserGroup) GetDefaultPermissions() []string
- func (m *MsgCreateUserGroup) GetDescription() string
- func (m *MsgCreateUserGroup) GetInitialMembers() []string
- func (m *MsgCreateUserGroup) GetName() string
- func (m *MsgCreateUserGroup) GetSectionID() uint32
- func (msg MsgCreateUserGroup) GetSignBytes() []byte
- func (msg MsgCreateUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgCreateUserGroup) GetSubspaceID() uint64
- func (m *MsgCreateUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateUserGroup) ProtoMessage()
- func (m *MsgCreateUserGroup) Reset()
- func (msg MsgCreateUserGroup) Route() string
- func (m *MsgCreateUserGroup) Size() (n int)
- func (m *MsgCreateUserGroup) String() string
- func (msg MsgCreateUserGroup) Type() string
- func (m *MsgCreateUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgCreateUserGroup) ValidateBasic() error
- func (m *MsgCreateUserGroup) XXX_DiscardUnknown()
- func (m *MsgCreateUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgCreateUserGroup) XXX_Size() int
- func (m *MsgCreateUserGroup) XXX_Unmarshal(b []byte) error
- type MsgCreateUserGroupResponse
- func (*MsgCreateUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateUserGroupResponse) GetGroupID() uint32
- func (m *MsgCreateUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateUserGroupResponse) ProtoMessage()
- func (m *MsgCreateUserGroupResponse) Reset()
- func (m *MsgCreateUserGroupResponse) Size() (n int)
- func (m *MsgCreateUserGroupResponse) String() string
- func (m *MsgCreateUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgCreateUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateUserGroupResponse) XXX_Size() int
- func (m *MsgCreateUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteSection
- func (*MsgDeleteSection) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSection) GetSectionID() uint32
- func (msg MsgDeleteSection) GetSignBytes() []byte
- func (m *MsgDeleteSection) GetSigner() string
- func (msg MsgDeleteSection) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteSection) GetSubspaceID() uint64
- func (m *MsgDeleteSection) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSection) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSection) ProtoMessage()
- func (m *MsgDeleteSection) Reset()
- func (msg MsgDeleteSection) Route() string
- func (m *MsgDeleteSection) Size() (n int)
- func (m *MsgDeleteSection) String() string
- func (msg MsgDeleteSection) Type() string
- func (m *MsgDeleteSection) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteSection) ValidateBasic() error
- func (m *MsgDeleteSection) XXX_DiscardUnknown()
- func (m *MsgDeleteSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSection) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSection) XXX_Size() int
- func (m *MsgDeleteSection) XXX_Unmarshal(b []byte) error
- type MsgDeleteSectionResponse
- func (*MsgDeleteSectionResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSectionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSectionResponse) ProtoMessage()
- func (m *MsgDeleteSectionResponse) Reset()
- func (m *MsgDeleteSectionResponse) Size() (n int)
- func (m *MsgDeleteSectionResponse) String() string
- func (m *MsgDeleteSectionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteSectionResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSectionResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSectionResponse) XXX_Size() int
- func (m *MsgDeleteSectionResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteSubspace
- func (*MsgDeleteSubspace) Descriptor() ([]byte, []int)
- func (msg MsgDeleteSubspace) GetSignBytes() []byte
- func (m *MsgDeleteSubspace) GetSigner() string
- func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteSubspace) GetSubspaceID() uint64
- func (m *MsgDeleteSubspace) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSubspace) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSubspace) ProtoMessage()
- func (m *MsgDeleteSubspace) Reset()
- func (msg MsgDeleteSubspace) Route() string
- func (m *MsgDeleteSubspace) Size() (n int)
- func (m *MsgDeleteSubspace) String() string
- func (msg MsgDeleteSubspace) Type() string
- func (m *MsgDeleteSubspace) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteSubspace) ValidateBasic() error
- func (m *MsgDeleteSubspace) XXX_DiscardUnknown()
- func (m *MsgDeleteSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSubspace) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSubspace) XXX_Size() int
- func (m *MsgDeleteSubspace) XXX_Unmarshal(b []byte) error
- type MsgDeleteSubspaceResponse
- func (*MsgDeleteSubspaceResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteSubspaceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteSubspaceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteSubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteSubspaceResponse) ProtoMessage()
- func (m *MsgDeleteSubspaceResponse) Reset()
- func (m *MsgDeleteSubspaceResponse) Size() (n int)
- func (m *MsgDeleteSubspaceResponse) String() string
- func (m *MsgDeleteSubspaceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteSubspaceResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteSubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteSubspaceResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteSubspaceResponse) XXX_Size() int
- func (m *MsgDeleteSubspaceResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteUserGroup
- func (*MsgDeleteUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgDeleteUserGroup) GetGroupID() uint32
- func (msg MsgDeleteUserGroup) GetSignBytes() []byte
- func (m *MsgDeleteUserGroup) GetSigner() string
- func (msg MsgDeleteUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteUserGroup) GetSubspaceID() uint64
- func (m *MsgDeleteUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteUserGroup) ProtoMessage()
- func (m *MsgDeleteUserGroup) Reset()
- func (msg MsgDeleteUserGroup) Route() string
- func (m *MsgDeleteUserGroup) Size() (n int)
- func (m *MsgDeleteUserGroup) String() string
- func (msg MsgDeleteUserGroup) Type() string
- func (m *MsgDeleteUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteUserGroup) ValidateBasic() error
- func (m *MsgDeleteUserGroup) XXX_DiscardUnknown()
- func (m *MsgDeleteUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgDeleteUserGroup) XXX_Size() int
- func (m *MsgDeleteUserGroup) XXX_Unmarshal(b []byte) error
- type MsgDeleteUserGroupResponse
- func (*MsgDeleteUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteUserGroupResponse) ProtoMessage()
- func (m *MsgDeleteUserGroupResponse) Reset()
- func (m *MsgDeleteUserGroupResponse) Size() (n int)
- func (m *MsgDeleteUserGroupResponse) String() string
- func (m *MsgDeleteUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteUserGroupResponse) XXX_Size() int
- func (m *MsgDeleteUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgEditSection
- func (*MsgEditSection) Descriptor() ([]byte, []int)
- func (m *MsgEditSection) GetDescription() string
- func (m *MsgEditSection) GetEditor() string
- func (m *MsgEditSection) GetName() string
- func (m *MsgEditSection) GetSectionID() uint32
- func (msg MsgEditSection) GetSignBytes() []byte
- func (msg MsgEditSection) GetSigners() []sdk.AccAddress
- func (m *MsgEditSection) GetSubspaceID() uint64
- func (m *MsgEditSection) Marshal() (dAtA []byte, err error)
- func (m *MsgEditSection) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditSection) ProtoMessage()
- func (m *MsgEditSection) Reset()
- func (msg MsgEditSection) Route() string
- func (m *MsgEditSection) Size() (n int)
- func (m *MsgEditSection) String() string
- func (msg MsgEditSection) Type() string
- func (m *MsgEditSection) Unmarshal(dAtA []byte) error
- func (msg MsgEditSection) ValidateBasic() error
- func (m *MsgEditSection) XXX_DiscardUnknown()
- func (m *MsgEditSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditSection) XXX_Merge(src proto.Message)
- func (m *MsgEditSection) XXX_Size() int
- func (m *MsgEditSection) XXX_Unmarshal(b []byte) error
- type MsgEditSectionResponse
- func (*MsgEditSectionResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditSectionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditSectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditSectionResponse) ProtoMessage()
- func (m *MsgEditSectionResponse) Reset()
- func (m *MsgEditSectionResponse) Size() (n int)
- func (m *MsgEditSectionResponse) String() string
- func (m *MsgEditSectionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditSectionResponse) XXX_DiscardUnknown()
- func (m *MsgEditSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditSectionResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditSectionResponse) XXX_Size() int
- func (m *MsgEditSectionResponse) XXX_Unmarshal(b []byte) error
- type MsgEditSubspace
- func (*MsgEditSubspace) Descriptor() ([]byte, []int)
- func (m *MsgEditSubspace) GetDescription() string
- func (m *MsgEditSubspace) GetName() string
- func (m *MsgEditSubspace) GetOwner() string
- func (msg MsgEditSubspace) GetSignBytes() []byte
- func (m *MsgEditSubspace) GetSigner() string
- func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress
- func (m *MsgEditSubspace) GetSubspaceID() uint64
- func (m *MsgEditSubspace) GetTreasury() string
- func (m *MsgEditSubspace) Marshal() (dAtA []byte, err error)
- func (m *MsgEditSubspace) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditSubspace) ProtoMessage()
- func (m *MsgEditSubspace) Reset()
- func (msg MsgEditSubspace) Route() string
- func (m *MsgEditSubspace) Size() (n int)
- func (m *MsgEditSubspace) String() string
- func (msg MsgEditSubspace) Type() string
- func (m *MsgEditSubspace) Unmarshal(dAtA []byte) error
- func (msg MsgEditSubspace) ValidateBasic() error
- func (m *MsgEditSubspace) XXX_DiscardUnknown()
- func (m *MsgEditSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditSubspace) XXX_Merge(src proto.Message)
- func (m *MsgEditSubspace) XXX_Size() int
- func (m *MsgEditSubspace) XXX_Unmarshal(b []byte) error
- type MsgEditSubspaceResponse
- func (*MsgEditSubspaceResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditSubspaceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditSubspaceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditSubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditSubspaceResponse) ProtoMessage()
- func (m *MsgEditSubspaceResponse) Reset()
- func (m *MsgEditSubspaceResponse) Size() (n int)
- func (m *MsgEditSubspaceResponse) String() string
- func (m *MsgEditSubspaceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditSubspaceResponse) XXX_DiscardUnknown()
- func (m *MsgEditSubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditSubspaceResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditSubspaceResponse) XXX_Size() int
- func (m *MsgEditSubspaceResponse) XXX_Unmarshal(b []byte) error
- type MsgEditUserGroup
- func (*MsgEditUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgEditUserGroup) GetDescription() string
- func (m *MsgEditUserGroup) GetGroupID() uint32
- func (m *MsgEditUserGroup) GetName() string
- func (msg MsgEditUserGroup) GetSignBytes() []byte
- func (m *MsgEditUserGroup) GetSigner() string
- func (msg MsgEditUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgEditUserGroup) GetSubspaceID() uint64
- func (m *MsgEditUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgEditUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditUserGroup) ProtoMessage()
- func (m *MsgEditUserGroup) Reset()
- func (msg MsgEditUserGroup) Route() string
- func (m *MsgEditUserGroup) Size() (n int)
- func (m *MsgEditUserGroup) String() string
- func (msg MsgEditUserGroup) Type() string
- func (m *MsgEditUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgEditUserGroup) ValidateBasic() error
- func (m *MsgEditUserGroup) XXX_DiscardUnknown()
- func (m *MsgEditUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgEditUserGroup) XXX_Size() int
- func (m *MsgEditUserGroup) XXX_Unmarshal(b []byte) error
- type MsgEditUserGroupResponse
- func (*MsgEditUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditUserGroupResponse) ProtoMessage()
- func (m *MsgEditUserGroupResponse) Reset()
- func (m *MsgEditUserGroupResponse) Size() (n int)
- func (m *MsgEditUserGroupResponse) String() string
- func (m *MsgEditUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgEditUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditUserGroupResponse) XXX_Size() int
- func (m *MsgEditUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgMoveSection
- func (*MsgMoveSection) Descriptor() ([]byte, []int)
- func (m *MsgMoveSection) GetNewParentID() uint32
- func (m *MsgMoveSection) GetSectionID() uint32
- func (msg MsgMoveSection) GetSignBytes() []byte
- func (m *MsgMoveSection) GetSigner() string
- func (msg MsgMoveSection) GetSigners() []sdk.AccAddress
- func (m *MsgMoveSection) GetSubspaceID() uint64
- func (m *MsgMoveSection) Marshal() (dAtA []byte, err error)
- func (m *MsgMoveSection) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMoveSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMoveSection) ProtoMessage()
- func (m *MsgMoveSection) Reset()
- func (msg MsgMoveSection) Route() string
- func (m *MsgMoveSection) Size() (n int)
- func (m *MsgMoveSection) String() string
- func (msg MsgMoveSection) Type() string
- func (m *MsgMoveSection) Unmarshal(dAtA []byte) error
- func (msg MsgMoveSection) ValidateBasic() error
- func (m *MsgMoveSection) XXX_DiscardUnknown()
- func (m *MsgMoveSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMoveSection) XXX_Merge(src proto.Message)
- func (m *MsgMoveSection) XXX_Size() int
- func (m *MsgMoveSection) XXX_Unmarshal(b []byte) error
- type MsgMoveSectionResponse
- func (*MsgMoveSectionResponse) Descriptor() ([]byte, []int)
- func (m *MsgMoveSectionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMoveSectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMoveSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMoveSectionResponse) ProtoMessage()
- func (m *MsgMoveSectionResponse) Reset()
- func (m *MsgMoveSectionResponse) Size() (n int)
- func (m *MsgMoveSectionResponse) String() string
- func (m *MsgMoveSectionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMoveSectionResponse) XXX_DiscardUnknown()
- func (m *MsgMoveSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMoveSectionResponse) XXX_Merge(src proto.Message)
- func (m *MsgMoveSectionResponse) XXX_Size() int
- func (m *MsgMoveSectionResponse) XXX_Unmarshal(b []byte) error
- type MsgMoveUserGroup
- func (*MsgMoveUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgMoveUserGroup) GetGroupID() uint32
- func (m *MsgMoveUserGroup) GetNewSectionID() uint32
- func (msg MsgMoveUserGroup) GetSignBytes() []byte
- func (m *MsgMoveUserGroup) GetSigner() string
- func (msg MsgMoveUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgMoveUserGroup) GetSubspaceID() uint64
- func (m *MsgMoveUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgMoveUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMoveUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMoveUserGroup) ProtoMessage()
- func (m *MsgMoveUserGroup) Reset()
- func (msg MsgMoveUserGroup) Route() string
- func (m *MsgMoveUserGroup) Size() (n int)
- func (m *MsgMoveUserGroup) String() string
- func (msg MsgMoveUserGroup) Type() string
- func (m *MsgMoveUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgMoveUserGroup) ValidateBasic() error
- func (m *MsgMoveUserGroup) XXX_DiscardUnknown()
- func (m *MsgMoveUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMoveUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgMoveUserGroup) XXX_Size() int
- func (m *MsgMoveUserGroup) XXX_Unmarshal(b []byte) error
- type MsgMoveUserGroupResponse
- func (*MsgMoveUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgMoveUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMoveUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMoveUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMoveUserGroupResponse) ProtoMessage()
- func (m *MsgMoveUserGroupResponse) Reset()
- func (m *MsgMoveUserGroupResponse) Size() (n int)
- func (m *MsgMoveUserGroupResponse) String() string
- func (m *MsgMoveUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMoveUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgMoveUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMoveUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgMoveUserGroupResponse) XXX_Size() int
- func (m *MsgMoveUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveUserFromUserGroup
- func (*MsgRemoveUserFromUserGroup) Descriptor() ([]byte, []int)
- func (m *MsgRemoveUserFromUserGroup) GetGroupID() uint32
- func (msg MsgRemoveUserFromUserGroup) GetSignBytes() []byte
- func (m *MsgRemoveUserFromUserGroup) GetSigner() string
- func (msg MsgRemoveUserFromUserGroup) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveUserFromUserGroup) GetSubspaceID() uint64
- func (m *MsgRemoveUserFromUserGroup) GetUser() string
- func (m *MsgRemoveUserFromUserGroup) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveUserFromUserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveUserFromUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveUserFromUserGroup) ProtoMessage()
- func (m *MsgRemoveUserFromUserGroup) Reset()
- func (msg MsgRemoveUserFromUserGroup) Route() string
- func (m *MsgRemoveUserFromUserGroup) Size() (n int)
- func (m *MsgRemoveUserFromUserGroup) String() string
- func (msg MsgRemoveUserFromUserGroup) Type() string
- func (m *MsgRemoveUserFromUserGroup) Unmarshal(dAtA []byte) error
- func (msg MsgRemoveUserFromUserGroup) ValidateBasic() error
- func (m *MsgRemoveUserFromUserGroup) XXX_DiscardUnknown()
- func (m *MsgRemoveUserFromUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveUserFromUserGroup) XXX_Merge(src proto.Message)
- func (m *MsgRemoveUserFromUserGroup) XXX_Size() int
- func (m *MsgRemoveUserFromUserGroup) XXX_Unmarshal(b []byte) error
- type MsgRemoveUserFromUserGroupResponse
- func (*MsgRemoveUserFromUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveUserFromUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveUserFromUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveUserFromUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveUserFromUserGroupResponse) ProtoMessage()
- func (m *MsgRemoveUserFromUserGroupResponse) Reset()
- func (m *MsgRemoveUserFromUserGroupResponse) Size() (n int)
- func (m *MsgRemoveUserFromUserGroupResponse) String() string
- func (m *MsgRemoveUserFromUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveUserFromUserGroupResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveUserFromUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveUserFromUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveUserFromUserGroupResponse) XXX_Size() int
- func (m *MsgRemoveUserFromUserGroupResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetUserGroupPermissions
- func (*MsgSetUserGroupPermissions) Descriptor() ([]byte, []int)
- func (m *MsgSetUserGroupPermissions) GetGroupID() uint32
- func (m *MsgSetUserGroupPermissions) GetPermissions() []string
- func (msg MsgSetUserGroupPermissions) GetSignBytes() []byte
- func (m *MsgSetUserGroupPermissions) GetSigner() string
- func (msg MsgSetUserGroupPermissions) GetSigners() []sdk.AccAddress
- func (m *MsgSetUserGroupPermissions) GetSubspaceID() uint64
- func (m *MsgSetUserGroupPermissions) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUserGroupPermissions) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUserGroupPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUserGroupPermissions) ProtoMessage()
- func (m *MsgSetUserGroupPermissions) Reset()
- func (msg MsgSetUserGroupPermissions) Route() string
- func (m *MsgSetUserGroupPermissions) Size() (n int)
- func (m *MsgSetUserGroupPermissions) String() string
- func (msg MsgSetUserGroupPermissions) Type() string
- func (m *MsgSetUserGroupPermissions) Unmarshal(dAtA []byte) error
- func (msg MsgSetUserGroupPermissions) ValidateBasic() error
- func (m *MsgSetUserGroupPermissions) XXX_DiscardUnknown()
- func (m *MsgSetUserGroupPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUserGroupPermissions) XXX_Merge(src proto.Message)
- func (m *MsgSetUserGroupPermissions) XXX_Size() int
- func (m *MsgSetUserGroupPermissions) XXX_Unmarshal(b []byte) error
- type MsgSetUserGroupPermissionsResponse
- func (*MsgSetUserGroupPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetUserGroupPermissionsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUserGroupPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUserGroupPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUserGroupPermissionsResponse) ProtoMessage()
- func (m *MsgSetUserGroupPermissionsResponse) Reset()
- func (m *MsgSetUserGroupPermissionsResponse) Size() (n int)
- func (m *MsgSetUserGroupPermissionsResponse) String() string
- func (m *MsgSetUserGroupPermissionsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetUserGroupPermissionsResponse) XXX_DiscardUnknown()
- func (m *MsgSetUserGroupPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUserGroupPermissionsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetUserGroupPermissionsResponse) XXX_Size() int
- func (m *MsgSetUserGroupPermissionsResponse) XXX_Unmarshal(b []byte) error
- type MsgSetUserPermissions
- func (*MsgSetUserPermissions) Descriptor() ([]byte, []int)
- func (m *MsgSetUserPermissions) GetPermissions() []string
- func (m *MsgSetUserPermissions) GetSectionID() uint32
- func (msg MsgSetUserPermissions) GetSignBytes() []byte
- func (m *MsgSetUserPermissions) GetSigner() string
- func (msg MsgSetUserPermissions) GetSigners() []sdk.AccAddress
- func (m *MsgSetUserPermissions) GetSubspaceID() uint64
- func (m *MsgSetUserPermissions) GetUser() string
- func (m *MsgSetUserPermissions) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUserPermissions) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUserPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUserPermissions) ProtoMessage()
- func (m *MsgSetUserPermissions) Reset()
- func (msg MsgSetUserPermissions) Route() string
- func (m *MsgSetUserPermissions) Size() (n int)
- func (m *MsgSetUserPermissions) String() string
- func (msg MsgSetUserPermissions) Type() string
- func (m *MsgSetUserPermissions) Unmarshal(dAtA []byte) error
- func (msg MsgSetUserPermissions) ValidateBasic() error
- func (m *MsgSetUserPermissions) XXX_DiscardUnknown()
- func (m *MsgSetUserPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUserPermissions) XXX_Merge(src proto.Message)
- func (m *MsgSetUserPermissions) XXX_Size() int
- func (m *MsgSetUserPermissions) XXX_Unmarshal(b []byte) error
- type MsgSetUserPermissionsResponse
- func (*MsgSetUserPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetUserPermissionsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUserPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUserPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUserPermissionsResponse) ProtoMessage()
- func (m *MsgSetUserPermissionsResponse) Reset()
- func (m *MsgSetUserPermissionsResponse) Size() (n int)
- func (m *MsgSetUserPermissionsResponse) String() string
- func (m *MsgSetUserPermissionsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetUserPermissionsResponse) XXX_DiscardUnknown()
- func (m *MsgSetUserPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUserPermissionsResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetUserPermissionsResponse) XXX_Size() int
- func (m *MsgSetUserPermissionsResponse) XXX_Unmarshal(b []byte) error
- type MultiSubspacesHooks
- func (h MultiSubspacesHooks) AfterSubspaceDeleted(ctx sdk.Context, subspaceID uint64)
- func (h MultiSubspacesHooks) AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32)
- func (h MultiSubspacesHooks) AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)
- func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)
- func (h MultiSubspacesHooks) AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)
- func (h MultiSubspacesHooks) AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)
- func (h MultiSubspacesHooks) AfterSubspaceSectionDeleted(ctx sdk.Context, subspaceID uint64, sectionID uint32)
- func (h MultiSubspacesHooks) AfterSubspaceSectionSaved(ctx sdk.Context, subspaceID uint64, sectionID uint32)
- func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string)
- func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, ...)
- type Permission
- type PermissionDetail
- func (*PermissionDetail) Descriptor() ([]byte, []int)
- func (this *PermissionDetail) Equal(that interface{}) bool
- func (m *PermissionDetail) GetGroup() *PermissionDetail_Group
- func (m *PermissionDetail) GetSum() isPermissionDetail_Sum
- func (m *PermissionDetail) GetUser() *PermissionDetail_User
- func (m *PermissionDetail) Marshal() (dAtA []byte, err error)
- func (m *PermissionDetail) MarshalTo(dAtA []byte) (int, error)
- func (m *PermissionDetail) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PermissionDetail) ProtoMessage()
- func (m *PermissionDetail) Reset()
- func (m *PermissionDetail) Size() (n int)
- func (m *PermissionDetail) String() string
- func (m *PermissionDetail) Unmarshal(dAtA []byte) error
- func (m *PermissionDetail) XXX_DiscardUnknown()
- func (m *PermissionDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionDetail) XXX_Merge(src proto.Message)
- func (*PermissionDetail) XXX_OneofWrappers() []interface{}
- func (m *PermissionDetail) XXX_Size() int
- func (m *PermissionDetail) XXX_Unmarshal(b []byte) error
- type PermissionDetail_Group
- func (*PermissionDetail_Group) Descriptor() ([]byte, []int)
- func (this *PermissionDetail_Group) Equal(that interface{}) bool
- func (m *PermissionDetail_Group) Marshal() (dAtA []byte, err error)
- func (m *PermissionDetail_Group) MarshalTo(dAtA []byte) (int, error)
- func (m *PermissionDetail_Group) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PermissionDetail_Group) ProtoMessage()
- func (m *PermissionDetail_Group) Reset()
- func (m *PermissionDetail_Group) Size() (n int)
- func (m *PermissionDetail_Group) String() string
- func (m *PermissionDetail_Group) Unmarshal(dAtA []byte) error
- func (m *PermissionDetail_Group) XXX_DiscardUnknown()
- func (m *PermissionDetail_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionDetail_Group) XXX_Merge(src proto.Message)
- func (m *PermissionDetail_Group) XXX_Size() int
- func (m *PermissionDetail_Group) XXX_Unmarshal(b []byte) error
- type PermissionDetail_Group_
- type PermissionDetail_User
- func (*PermissionDetail_User) Descriptor() ([]byte, []int)
- func (this *PermissionDetail_User) Equal(that interface{}) bool
- func (m *PermissionDetail_User) Marshal() (dAtA []byte, err error)
- func (m *PermissionDetail_User) MarshalTo(dAtA []byte) (int, error)
- func (m *PermissionDetail_User) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PermissionDetail_User) ProtoMessage()
- func (m *PermissionDetail_User) Reset()
- func (m *PermissionDetail_User) Size() (n int)
- func (m *PermissionDetail_User) String() string
- func (m *PermissionDetail_User) Unmarshal(dAtA []byte) error
- func (m *PermissionDetail_User) XXX_DiscardUnknown()
- func (m *PermissionDetail_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermissionDetail_User) XXX_Merge(src proto.Message)
- func (m *PermissionDetail_User) XXX_Size() int
- func (m *PermissionDetail_User) XXX_Unmarshal(b []byte) error
- type PermissionDetail_User_
- type Permissions
- type QueryClient
- type QuerySectionRequest
- func (*QuerySectionRequest) Descriptor() ([]byte, []int)
- func (m *QuerySectionRequest) GetSectionId() uint32
- func (m *QuerySectionRequest) GetSubspaceId() uint64
- func (m *QuerySectionRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionRequest) ProtoMessage()
- func (m *QuerySectionRequest) Reset()
- func (m *QuerySectionRequest) Size() (n int)
- func (m *QuerySectionRequest) String() string
- func (m *QuerySectionRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySectionRequest) XXX_DiscardUnknown()
- func (m *QuerySectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionRequest) XXX_Merge(src proto.Message)
- func (m *QuerySectionRequest) XXX_Size() int
- func (m *QuerySectionRequest) XXX_Unmarshal(b []byte) error
- type QuerySectionResponse
- func (*QuerySectionResponse) Descriptor() ([]byte, []int)
- func (m *QuerySectionResponse) GetSection() Section
- func (m *QuerySectionResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionResponse) ProtoMessage()
- func (m *QuerySectionResponse) Reset()
- func (m *QuerySectionResponse) Size() (n int)
- func (m *QuerySectionResponse) String() string
- func (m *QuerySectionResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySectionResponse) XXX_DiscardUnknown()
- func (m *QuerySectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionResponse) XXX_Merge(src proto.Message)
- func (m *QuerySectionResponse) XXX_Size() int
- func (m *QuerySectionResponse) XXX_Unmarshal(b []byte) error
- type QuerySectionsRequest
- func (*QuerySectionsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySectionsRequest) GetPagination() *query.PageRequest
- func (m *QuerySectionsRequest) GetSubspaceId() uint64
- func (m *QuerySectionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionsRequest) ProtoMessage()
- func (m *QuerySectionsRequest) Reset()
- func (m *QuerySectionsRequest) Size() (n int)
- func (m *QuerySectionsRequest) String() string
- func (m *QuerySectionsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySectionsRequest) XXX_DiscardUnknown()
- func (m *QuerySectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySectionsRequest) XXX_Size() int
- func (m *QuerySectionsRequest) XXX_Unmarshal(b []byte) error
- type QuerySectionsResponse
- func (*QuerySectionsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySectionsResponse) GetPagination() *query.PageResponse
- func (m *QuerySectionsResponse) GetSections() []Section
- func (m *QuerySectionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySectionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySectionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySectionsResponse) ProtoMessage()
- func (m *QuerySectionsResponse) Reset()
- func (m *QuerySectionsResponse) Size() (n int)
- func (m *QuerySectionsResponse) String() string
- func (m *QuerySectionsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySectionsResponse) XXX_DiscardUnknown()
- func (m *QuerySectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySectionsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySectionsResponse) XXX_Size() int
- func (m *QuerySectionsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySubspaceRequest
- func (*QuerySubspaceRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubspaceRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspaceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspaceRequest) ProtoMessage()
- func (m *QuerySubspaceRequest) Reset()
- func (m *QuerySubspaceRequest) Size() (n int)
- func (m *QuerySubspaceRequest) String() string
- func (m *QuerySubspaceRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubspaceRequest) XXX_DiscardUnknown()
- func (m *QuerySubspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspaceRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubspaceRequest) XXX_Size() int
- func (m *QuerySubspaceRequest) XXX_Unmarshal(b []byte) error
- type QuerySubspaceResponse
- func (*QuerySubspaceResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubspaceResponse) GetSubspace() Subspace
- func (m *QuerySubspaceResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspaceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspaceResponse) ProtoMessage()
- func (m *QuerySubspaceResponse) Reset()
- func (m *QuerySubspaceResponse) Size() (n int)
- func (m *QuerySubspaceResponse) String() string
- func (m *QuerySubspaceResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubspaceResponse) XXX_DiscardUnknown()
- func (m *QuerySubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspaceResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubspaceResponse) XXX_Size() int
- func (m *QuerySubspaceResponse) XXX_Unmarshal(b []byte) error
- type QuerySubspacesRequest
- func (*QuerySubspacesRequest) Descriptor() ([]byte, []int)
- func (m *QuerySubspacesRequest) GetPagination() *query.PageRequest
- func (m *QuerySubspacesRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspacesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspacesRequest) ProtoMessage()
- func (m *QuerySubspacesRequest) Reset()
- func (m *QuerySubspacesRequest) Size() (n int)
- func (m *QuerySubspacesRequest) String() string
- func (m *QuerySubspacesRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySubspacesRequest) XXX_DiscardUnknown()
- func (m *QuerySubspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspacesRequest) XXX_Merge(src proto.Message)
- func (m *QuerySubspacesRequest) XXX_Size() int
- func (m *QuerySubspacesRequest) XXX_Unmarshal(b []byte) error
- type QuerySubspacesResponse
- func (*QuerySubspacesResponse) Descriptor() ([]byte, []int)
- func (m *QuerySubspacesResponse) GetPagination() *query.PageResponse
- func (m *QuerySubspacesResponse) GetSubspaces() []Subspace
- func (m *QuerySubspacesResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySubspacesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySubspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySubspacesResponse) ProtoMessage()
- func (m *QuerySubspacesResponse) Reset()
- func (m *QuerySubspacesResponse) Size() (n int)
- func (m *QuerySubspacesResponse) String() string
- func (m *QuerySubspacesResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySubspacesResponse) XXX_DiscardUnknown()
- func (m *QuerySubspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySubspacesResponse) XXX_Merge(src proto.Message)
- func (m *QuerySubspacesResponse) XXX_Size() int
- func (m *QuerySubspacesResponse) XXX_Unmarshal(b []byte) error
- type QueryUserGroupMembersRequest
- func (*QueryUserGroupMembersRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupMembersRequest) GetGroupId() uint32
- func (m *QueryUserGroupMembersRequest) GetPagination() *query.PageRequest
- func (m *QueryUserGroupMembersRequest) GetSubspaceId() uint64
- func (m *QueryUserGroupMembersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupMembersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupMembersRequest) ProtoMessage()
- func (m *QueryUserGroupMembersRequest) Reset()
- func (m *QueryUserGroupMembersRequest) Size() (n int)
- func (m *QueryUserGroupMembersRequest) String() string
- func (m *QueryUserGroupMembersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupMembersRequest) XXX_DiscardUnknown()
- func (m *QueryUserGroupMembersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupMembersRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupMembersRequest) XXX_Size() int
- func (m *QueryUserGroupMembersRequest) XXX_Unmarshal(b []byte) error
- type QueryUserGroupMembersResponse
- func (*QueryUserGroupMembersResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupMembersResponse) GetMembers() []string
- func (m *QueryUserGroupMembersResponse) GetPagination() *query.PageResponse
- func (m *QueryUserGroupMembersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupMembersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupMembersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupMembersResponse) ProtoMessage()
- func (m *QueryUserGroupMembersResponse) Reset()
- func (m *QueryUserGroupMembersResponse) Size() (n int)
- func (m *QueryUserGroupMembersResponse) String() string
- func (m *QueryUserGroupMembersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupMembersResponse) XXX_DiscardUnknown()
- func (m *QueryUserGroupMembersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupMembersResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupMembersResponse) XXX_Size() int
- func (m *QueryUserGroupMembersResponse) XXX_Unmarshal(b []byte) error
- type QueryUserGroupRequest
- func (*QueryUserGroupRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupRequest) GetGroupId() uint32
- func (m *QueryUserGroupRequest) GetSubspaceId() uint64
- func (m *QueryUserGroupRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupRequest) ProtoMessage()
- func (m *QueryUserGroupRequest) Reset()
- func (m *QueryUserGroupRequest) Size() (n int)
- func (m *QueryUserGroupRequest) String() string
- func (m *QueryUserGroupRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupRequest) XXX_DiscardUnknown()
- func (m *QueryUserGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupRequest) XXX_Size() int
- func (m *QueryUserGroupRequest) XXX_Unmarshal(b []byte) error
- type QueryUserGroupResponse
- func (*QueryUserGroupResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupResponse) GetGroup() UserGroup
- func (m *QueryUserGroupResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupResponse) ProtoMessage()
- func (m *QueryUserGroupResponse) Reset()
- func (m *QueryUserGroupResponse) Size() (n int)
- func (m *QueryUserGroupResponse) String() string
- func (m *QueryUserGroupResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupResponse) XXX_DiscardUnknown()
- func (m *QueryUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupResponse) XXX_Size() int
- func (m *QueryUserGroupResponse) XXX_Unmarshal(b []byte) error
- type QueryUserGroupsRequest
- func (*QueryUserGroupsRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupsRequest) GetPagination() *query.PageRequest
- func (m *QueryUserGroupsRequest) GetSectionId() uint32
- func (m *QueryUserGroupsRequest) GetSubspaceId() uint64
- func (m *QueryUserGroupsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupsRequest) ProtoMessage()
- func (m *QueryUserGroupsRequest) Reset()
- func (m *QueryUserGroupsRequest) Size() (n int)
- func (m *QueryUserGroupsRequest) String() string
- func (m *QueryUserGroupsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupsRequest) XXX_DiscardUnknown()
- func (m *QueryUserGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupsRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupsRequest) XXX_Size() int
- func (m *QueryUserGroupsRequest) XXX_Unmarshal(b []byte) error
- type QueryUserGroupsResponse
- func (*QueryUserGroupsResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserGroupsResponse) GetGroups() []UserGroup
- func (m *QueryUserGroupsResponse) GetPagination() *query.PageResponse
- func (m *QueryUserGroupsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserGroupsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserGroupsResponse) ProtoMessage()
- func (m *QueryUserGroupsResponse) Reset()
- func (m *QueryUserGroupsResponse) Size() (n int)
- func (m *QueryUserGroupsResponse) String() string
- func (m *QueryUserGroupsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserGroupsResponse) XXX_DiscardUnknown()
- func (m *QueryUserGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserGroupsResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserGroupsResponse) XXX_Size() int
- func (m *QueryUserGroupsResponse) XXX_Unmarshal(b []byte) error
- type QueryUserPermissionsRequest
- func (*QueryUserPermissionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryUserPermissionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryUserPermissionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserPermissionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserPermissionsRequest) ProtoMessage()
- func (m *QueryUserPermissionsRequest) Reset()
- func (m *QueryUserPermissionsRequest) Size() (n int)
- func (m *QueryUserPermissionsRequest) String() string
- func (m *QueryUserPermissionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryUserPermissionsRequest) XXX_DiscardUnknown()
- func (m *QueryUserPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserPermissionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryUserPermissionsRequest) XXX_Size() int
- func (m *QueryUserPermissionsRequest) XXX_Unmarshal(b []byte) error
- type QueryUserPermissionsResponse
- func (*QueryUserPermissionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryUserPermissionsResponse) GetDetails() []PermissionDetail
- func (m *QueryUserPermissionsResponse) GetPermissions() []string
- func (m *QueryUserPermissionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryUserPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryUserPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryUserPermissionsResponse) ProtoMessage()
- func (m *QueryUserPermissionsResponse) Reset()
- func (m *QueryUserPermissionsResponse) Size() (n int)
- func (m *QueryUserPermissionsResponse) String() string
- func (m *QueryUserPermissionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryUserPermissionsResponse) XXX_DiscardUnknown()
- func (m *QueryUserPermissionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryUserPermissionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryUserPermissionsResponse) XXX_Size() int
- func (m *QueryUserPermissionsResponse) XXX_Unmarshal(b []byte) error
- type Section
- func (*Section) Descriptor() ([]byte, []int)
- func (this *Section) Equal(that interface{}) bool
- func (m *Section) GetDescription() string
- func (m *Section) GetID() uint32
- func (m *Section) GetName() string
- func (m *Section) GetParentID() uint32
- func (m *Section) GetSubspaceID() uint64
- func (m *Section) Marshal() (dAtA []byte, err error)
- func (m *Section) MarshalTo(dAtA []byte) (int, error)
- func (m *Section) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Section) ProtoMessage()
- func (m *Section) Reset()
- func (m *Section) Size() (n int)
- func (m *Section) String() string
- func (m *Section) Unmarshal(dAtA []byte) error
- func (s Section) Update(update SectionUpdate) Section
- func (s Section) Validate() error
- func (m *Section) XXX_DiscardUnknown()
- func (m *Section) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Section) XXX_Merge(src proto.Message)
- func (m *Section) XXX_Size() int
- func (m *Section) XXX_Unmarshal(b []byte) error
- type SectionUpdate
- type Subspace
- func (*Subspace) Descriptor() ([]byte, []int)
- func (this *Subspace) Equal(that interface{}) bool
- func (m *Subspace) GetCreationTime() time.Time
- func (m *Subspace) GetCreator() string
- func (m *Subspace) GetDescription() string
- func (m *Subspace) GetID() uint64
- func (m *Subspace) GetName() string
- func (m *Subspace) GetOwner() string
- func (m *Subspace) GetTreasury() string
- func (m *Subspace) Marshal() (dAtA []byte, err error)
- func (m *Subspace) MarshalTo(dAtA []byte) (int, error)
- func (m *Subspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Subspace) ProtoMessage()
- func (m *Subspace) Reset()
- func (m *Subspace) Size() (n int)
- func (m *Subspace) String() string
- func (m *Subspace) Unmarshal(dAtA []byte) error
- func (sub Subspace) Update(update SubspaceUpdate) Subspace
- func (sub Subspace) Validate() error
- func (m *Subspace) XXX_DiscardUnknown()
- func (m *Subspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Subspace) XXX_Merge(src proto.Message)
- func (m *Subspace) XXX_Size() int
- func (m *Subspace) XXX_Unmarshal(b []byte) error
- type SubspaceData
- func (*SubspaceData) Descriptor() ([]byte, []int)
- func (this *SubspaceData) Equal(that interface{}) bool
- func (m *SubspaceData) GetNextGroupID() uint32
- func (m *SubspaceData) GetNextSectionID() uint32
- func (m *SubspaceData) GetSubspaceID() uint64
- func (m *SubspaceData) Marshal() (dAtA []byte, err error)
- func (m *SubspaceData) MarshalTo(dAtA []byte) (int, error)
- func (m *SubspaceData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubspaceData) ProtoMessage()
- func (m *SubspaceData) Reset()
- func (m *SubspaceData) Size() (n int)
- func (m *SubspaceData) String() string
- func (m *SubspaceData) Unmarshal(dAtA []byte) error
- func (data SubspaceData) Validate() error
- func (m *SubspaceData) XXX_DiscardUnknown()
- func (m *SubspaceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubspaceData) XXX_Merge(src proto.Message)
- func (m *SubspaceData) XXX_Size() int
- func (m *SubspaceData) XXX_Unmarshal(b []byte) error
- type SubspaceMsg
- type SubspaceUpdate
- type SubspacesHooks
- type SubspacesMsg
- type SubspacesQuery
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddUserToUserGroup(ctx context.Context, req *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error)
- func (*UnimplementedMsgServer) CreateSection(ctx context.Context, req *MsgCreateSection) (*MsgCreateSectionResponse, error)
- func (*UnimplementedMsgServer) CreateSubspace(ctx context.Context, req *MsgCreateSubspace) (*MsgCreateSubspaceResponse, error)
- func (*UnimplementedMsgServer) CreateUserGroup(ctx context.Context, req *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error)
- func (*UnimplementedMsgServer) DeleteSection(ctx context.Context, req *MsgDeleteSection) (*MsgDeleteSectionResponse, error)
- func (*UnimplementedMsgServer) DeleteSubspace(ctx context.Context, req *MsgDeleteSubspace) (*MsgDeleteSubspaceResponse, error)
- func (*UnimplementedMsgServer) DeleteUserGroup(ctx context.Context, req *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error)
- func (*UnimplementedMsgServer) EditSection(ctx context.Context, req *MsgEditSection) (*MsgEditSectionResponse, error)
- func (*UnimplementedMsgServer) EditSubspace(ctx context.Context, req *MsgEditSubspace) (*MsgEditSubspaceResponse, error)
- func (*UnimplementedMsgServer) EditUserGroup(ctx context.Context, req *MsgEditUserGroup) (*MsgEditUserGroupResponse, error)
- func (*UnimplementedMsgServer) MoveSection(ctx context.Context, req *MsgMoveSection) (*MsgMoveSectionResponse, error)
- func (*UnimplementedMsgServer) MoveUserGroup(ctx context.Context, req *MsgMoveUserGroup) (*MsgMoveUserGroupResponse, error)
- func (*UnimplementedMsgServer) RemoveUserFromUserGroup(ctx context.Context, req *MsgRemoveUserFromUserGroup) (*MsgRemoveUserFromUserGroupResponse, error)
- func (*UnimplementedMsgServer) SetUserGroupPermissions(ctx context.Context, req *MsgSetUserGroupPermissions) (*MsgSetUserGroupPermissionsResponse, error)
- func (*UnimplementedMsgServer) SetUserPermissions(ctx context.Context, req *MsgSetUserPermissions) (*MsgSetUserPermissionsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Section(ctx context.Context, req *QuerySectionRequest) (*QuerySectionResponse, error)
- func (*UnimplementedQueryServer) Sections(ctx context.Context, req *QuerySectionsRequest) (*QuerySectionsResponse, error)
- func (*UnimplementedQueryServer) Subspace(ctx context.Context, req *QuerySubspaceRequest) (*QuerySubspaceResponse, error)
- func (*UnimplementedQueryServer) Subspaces(ctx context.Context, req *QuerySubspacesRequest) (*QuerySubspacesResponse, error)
- func (*UnimplementedQueryServer) UserGroup(ctx context.Context, req *QueryUserGroupRequest) (*QueryUserGroupResponse, error)
- func (*UnimplementedQueryServer) UserGroupMembers(ctx context.Context, req *QueryUserGroupMembersRequest) (*QueryUserGroupMembersResponse, error)
- func (*UnimplementedQueryServer) UserGroups(ctx context.Context, req *QueryUserGroupsRequest) (*QueryUserGroupsResponse, error)
- func (*UnimplementedQueryServer) UserPermissions(ctx context.Context, req *QueryUserPermissionsRequest) (*QueryUserPermissionsResponse, error)
- type UserGroup
- func (*UserGroup) Descriptor() ([]byte, []int)
- func (this *UserGroup) Equal(that interface{}) bool
- func (m *UserGroup) GetDescription() string
- func (m *UserGroup) GetID() uint32
- func (m *UserGroup) GetName() string
- func (m *UserGroup) GetPermissions() Permissions
- func (m *UserGroup) GetSectionID() uint32
- func (m *UserGroup) GetSubspaceID() uint64
- func (m *UserGroup) Marshal() (dAtA []byte, err error)
- func (m *UserGroup) MarshalTo(dAtA []byte) (int, error)
- func (m *UserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserGroup) ProtoMessage()
- func (m *UserGroup) Reset()
- func (m *UserGroup) Size() (n int)
- func (m *UserGroup) String() string
- func (m *UserGroup) Unmarshal(dAtA []byte) error
- func (group UserGroup) Update(update GroupUpdate) UserGroup
- func (group UserGroup) Validate() error
- func (m *UserGroup) XXX_DiscardUnknown()
- func (m *UserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserGroup) XXX_Merge(src proto.Message)
- func (m *UserGroup) XXX_Size() int
- func (m *UserGroup) XXX_Unmarshal(b []byte) error
- type UserGroupMemberEntry
- func (*UserGroupMemberEntry) Descriptor() ([]byte, []int)
- func (this *UserGroupMemberEntry) Equal(that interface{}) bool
- func (m *UserGroupMemberEntry) GetGroupID() uint32
- func (m *UserGroupMemberEntry) GetSubspaceID() uint64
- func (m *UserGroupMemberEntry) GetUser() string
- func (m *UserGroupMemberEntry) Marshal() (dAtA []byte, err error)
- func (m *UserGroupMemberEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UserGroupMemberEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserGroupMemberEntry) ProtoMessage()
- func (m *UserGroupMemberEntry) Reset()
- func (m *UserGroupMemberEntry) Size() (n int)
- func (m *UserGroupMemberEntry) String() string
- func (m *UserGroupMemberEntry) Unmarshal(dAtA []byte) error
- func (entry UserGroupMemberEntry) Validate() error
- func (m *UserGroupMemberEntry) XXX_DiscardUnknown()
- func (m *UserGroupMemberEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserGroupMemberEntry) XXX_Merge(src proto.Message)
- func (m *UserGroupMemberEntry) XXX_Size() int
- func (m *UserGroupMemberEntry) XXX_Unmarshal(b []byte) error
- type UserPermission
- func (*UserPermission) Descriptor() ([]byte, []int)
- func (this *UserPermission) Equal(that interface{}) bool
- func (m *UserPermission) GetPermissions() Permissions
- func (m *UserPermission) GetSectionID() uint32
- func (m *UserPermission) GetSubspaceID() uint64
- func (m *UserPermission) GetUser() string
- func (m *UserPermission) Marshal() (dAtA []byte, err error)
- func (m *UserPermission) MarshalTo(dAtA []byte) (int, error)
- func (m *UserPermission) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserPermission) ProtoMessage()
- func (m *UserPermission) Reset()
- func (m *UserPermission) Size() (n int)
- func (m *UserPermission) String() string
- func (m *UserPermission) Unmarshal(dAtA []byte) error
- func (p UserPermission) Validate() error
- func (m *UserPermission) XXX_DiscardUnknown()
- func (m *UserPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserPermission) XXX_Merge(src proto.Message)
- func (m *UserPermission) XXX_Size() int
- func (m *UserPermission) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeCreateSubspace = "create_subspace" EventTypeEditSubspace = "edit_subspace" EventTypeDeleteSubspace = "delete_subspace" EventTypeCreateSection = "create_section" EventTypeEditSection = "edit_section" EventTypeMoveSection = "move_section" EventTypeDeleteSection = "delete_section" EventTypeCreateUserGroup = "create_user_group" EventTypeEditUserGroup = "edit_user_group" EvenTypeMoveUserGroup = "move_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" AttributeKeySectionID = "section_id" AttributeKeyUserGroupID = "user_group_id" AttributeKeyUser = "user" )
Subspaces module event types
const ( ModuleName = "subspaces" RouterKey = ModuleName StoreKey = ModuleName QuerierRoute = ModuleName ActionCreateSubspace = "create_subspace" ActionEditSubspace = "edit_subspace" ActionDeleteSubspace = "delete_subspace" ActionCreateSection = "create_section" ActionEditSection = "edit_section" ActionMoveSection = "move_section" ActionDeleteSection = "delete_section" ActionCreateUserGroup = "create_user_group" ActionEditUserGroup = "edit_user_group" ActionMoveUserGroup = "move_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" DoNotModify = "[do-not-modify]" )
const (
// RootSectionID represents the id of the root section of each subspace
RootSectionID = 0
)
Variables ¶
var ( // ErrPermissionDenied is returned if a user cannot perform a specific action inside a subspace ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permissions denied for user") ErrInvalidGenesis = sdkerrors.Register(ModuleName, 2, "invalid genesis state") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( SubspaceIDKey = []byte{0x00} SubspacePrefix = []byte{0x01} GroupIDPrefix = []byte{0x02} GroupsPrefix = []byte{0x03} GroupsMembersPrefix = []byte{0x04} UserPermissionsStorePrefix = []byte{0x05} SectionIDPrefix = []byte{0x06} SectionsPrefix = []byte{0x07} )
var ( ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group") )
var ( // PermissionEditSubspace allows to change the information of the subspace PermissionEditSubspace = RegisterPermission("edit subspace") // PermissionDeleteSubspace allows users to delete the subspace. PermissionDeleteSubspace = RegisterPermission("delete subspace") // PermissionManageSections allows users to manage a subspace sections PermissionManageSections = RegisterPermission("manage sections") // PermissionManageGroups allows users to manage user groups and members PermissionManageGroups = RegisterPermission("manage groups") // PermissionSetPermissions allows users to set other users' permissions (except PermissionSetPermissions). // This includes managing user groups and the associated permissions PermissionSetPermissions = RegisterPermission("set permissions") // PermissionEverything allows to do everything. // This should usually be reserved only to the owner (which has it by default) PermissionEverything = RegisterPermission("everything") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
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 ArePermissionsValid ¶
func ArePermissionsValid(permissions Permissions) bool
ArePermissionsValid checks whether the given value represents a valid permissions or not
func CheckPermission ¶
func CheckPermission(permissions Permissions, permission Permission) bool
CheckPermission checks whether the given permissions contain the specified permissions
func CheckPermissions ¶
func CheckPermissions(permissions Permissions, toCheck Permissions) bool
func GetAddressBytes ¶
GetAddressBytes returns the given user address as a byte array
func GetAddressFromBytes ¶
GetAddressFromBytes returns the sdk.AccAddress representation of the given user address
func GetGroupIDBytes ¶
GetGroupIDBytes returns the byte representation of the groupID
func GetGroupIDFromBytes ¶
GetGroupIDFromBytes returns groupID in uint32 format from a byte array
func GetSectionIDBytes ¶
GetSectionIDBytes returns the byte representation of the sectionID
func GetSectionIDFromBytes ¶
GetSectionIDFromBytes returns sectionID in uint32 format from a byte array
func GetSubspaceIDBytes ¶
GetSubspaceIDBytes returns the byte representation of the subspaceID
func GetSubspaceIDFromBytes ¶
GetSubspaceIDFromBytes returns subspaceID in uint64 format from a byte array
func GroupMemberStoreKey ¶
GroupMemberStoreKey returns the key used to store the membership of the given user to the specified group inside the provided subspace
func GroupMembersPrefix ¶
GroupMembersPrefix returns the key used to store all the members of the given group inside the given subspace
func GroupStoreKey ¶
GroupStoreKey returns the key used to store the group having the given id inside the specified section
func NextGroupIDStoreKey ¶
NextGroupIDStoreKey returns the store key that is used to store the group id to be used next for the given subspace
func NextSectionIDStoreKey ¶
NextSectionIDStoreKey returns the key used to store the next section id for the given subspace
func ParseGroupID ¶
ParseGroupID parses the given value as a group id, returning an error if it's invalid
func ParseSectionID ¶
ParseSectionID parses the given value as a section id, returning an error if it's invalid
func ParseSubspaceID ¶
ParseSubspaceID parses the given value as a subspace id, returning an error if it's invalid
func ParseSubspacesIDs ¶
ParseSubspacesIDs parses the given value as a list of subspace ids separated by a comma
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SectionGroupsPrefix ¶
SectionGroupsPrefix returns the prefix used to store all the groups for the given section
func SectionPermissionsPrefix ¶
SectionPermissionsPrefix returns the prefix used to store the permissions for the given section
func SectionStoreKey ¶
SectionStoreKey returns the key used to store the given section
func SerializePermission ¶
func SerializePermission(permission Permission) string
SerializePermission serializes the given permissions to a string value
func SplitGroupMemberStoreKey ¶
SplitGroupMemberStoreKey splits the given group member store key into the associated subspace id, group id and user address
func SplitUserAddressPermissionKey ¶
SplitUserAddressPermissionKey splits a UserPermissionStoreKey into the subspace id, section id and user address
func SubspaceGroupsMembersPrefix ¶
SubspaceGroupsMembersPrefix returns the prefix used to store groups members for the subspace having the given id
func SubspaceGroupsPrefix ¶
SubspaceGroupsPrefix returns the store prefix used to store all the groups of a given subspace
func SubspacePermissionsPrefix ¶
SubspacePermissionsPrefix returns the prefix used to store user permissions for the given subspace
func SubspaceSectionsPrefix ¶
SubspaceSectionsPrefix returns the prefix used to store all the sections for the given subspace
func SubspaceStoreKey ¶
SubspaceStoreKey returns the key for a specific subspace
func UserPermissionStoreKey ¶
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 GenesisState ¶
type GenesisState struct { InitialSubspaceID uint64 `protobuf:"varint,1,opt,name=initial_subspace_id,json=initialSubspaceId,proto3" json:"initial_subspace_id,omitempty"` SubspacesData []SubspaceData `protobuf:"bytes,2,rep,name=subspaces_data,json=subspacesData,proto3" json:"subspaces_data"` Subspaces []Subspace `protobuf:"bytes,3,rep,name=subspaces,proto3" json:"subspaces"` Sections []Section `protobuf:"bytes,4,rep,name=sections,proto3" json:"sections"` UserPermissions []UserPermission `protobuf:"bytes,5,rep,name=user_permissions,json=userPermissions,proto3" json:"user_permissions"` UserGroups []UserGroup `protobuf:"bytes,6,rep,name=user_groups,json=userGroups,proto3" json:"user_groups"` UserGroupsMembers []UserGroupMemberEntry `protobuf:"bytes,7,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, subspacesData []SubspaceData, subspaces []Subspace, sections []Section, userPermissions []UserPermission, userGroups []UserGroup, userGroupMembers []UserGroupMemberEntry, ) *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) GetInitialSubspaceID ¶
func (m *GenesisState) GetInitialSubspaceID() uint64
func (*GenesisState) GetSections ¶
func (m *GenesisState) GetSections() []Section
func (*GenesisState) GetSubspaces ¶
func (m *GenesisState) GetSubspaces() []Subspace
func (*GenesisState) GetSubspacesData ¶
func (m *GenesisState) GetSubspacesData() []SubspaceData
func (*GenesisState) GetUserGroups ¶
func (m *GenesisState) GetUserGroups() []UserGroup
func (*GenesisState) GetUserGroupsMembers ¶
func (m *GenesisState) GetUserGroupsMembers() []UserGroupMemberEntry
func (*GenesisState) GetUserPermissions ¶
func (m *GenesisState) GetUserPermissions() []UserPermission
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) 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 GroupUpdate ¶
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 { // Id of the subspace inside which the group is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group to which to add the user GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // User to be added to the group User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` // User signing the message 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 (m *MsgAddUserToUserGroupResponse) String() 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) // CreateSection allows to create a new subspace section CreateSection(ctx context.Context, in *MsgCreateSection, opts ...grpc.CallOption) (*MsgCreateSectionResponse, error) // EditSection allows to edit an existing section EditSection(ctx context.Context, in *MsgEditSection, opts ...grpc.CallOption) (*MsgEditSectionResponse, error) // MoveSection allows to move an existing section to another parent MoveSection(ctx context.Context, in *MsgMoveSection, opts ...grpc.CallOption) (*MsgMoveSectionResponse, error) // DeleteSection allows to delete an existing section DeleteSection(ctx context.Context, in *MsgDeleteSection, opts ...grpc.CallOption) (*MsgDeleteSectionResponse, 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) // MoveUserGroup allows to move a user group from a section to another MoveUserGroup(ctx context.Context, in *MsgMoveUserGroup, opts ...grpc.CallOption) (*MsgMoveUserGroupResponse, 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 MsgCreateSection ¶
type MsgCreateSection struct { // Id of the subspace inside which the section will be placed SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Name of the section to be created Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) Description of the section Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // (optional) Id of the parent section ParentID uint32 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" yaml:"parent_id"` // User creating the section Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` }
MsgCreateSection represents the message to be used when creating a subspace section
func NewMsgCreateSection ¶
func NewMsgCreateSection( subspaceID uint64, name string, description string, parentID uint32, creator string, ) *MsgCreateSection
NewMsgCreateSection returns a new MsgCreateSection instance
func (*MsgCreateSection) Descriptor ¶
func (*MsgCreateSection) Descriptor() ([]byte, []int)
func (*MsgCreateSection) GetCreator ¶
func (m *MsgCreateSection) GetCreator() string
func (*MsgCreateSection) GetDescription ¶
func (m *MsgCreateSection) GetDescription() string
func (*MsgCreateSection) GetName ¶
func (m *MsgCreateSection) GetName() string
func (*MsgCreateSection) GetParentID ¶
func (m *MsgCreateSection) GetParentID() uint32
func (MsgCreateSection) GetSignBytes ¶
func (msg MsgCreateSection) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgCreateSection) GetSigners ¶
func (msg MsgCreateSection) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateSection) GetSubspaceID ¶
func (m *MsgCreateSection) GetSubspaceID() uint64
func (*MsgCreateSection) Marshal ¶
func (m *MsgCreateSection) Marshal() (dAtA []byte, err error)
func (*MsgCreateSection) MarshalToSizedBuffer ¶
func (m *MsgCreateSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSection) ProtoMessage ¶
func (*MsgCreateSection) ProtoMessage()
func (*MsgCreateSection) Reset ¶
func (m *MsgCreateSection) Reset()
func (*MsgCreateSection) Size ¶
func (m *MsgCreateSection) Size() (n int)
func (*MsgCreateSection) String ¶
func (m *MsgCreateSection) String() string
func (*MsgCreateSection) Unmarshal ¶
func (m *MsgCreateSection) Unmarshal(dAtA []byte) error
func (MsgCreateSection) ValidateBasic ¶
func (msg MsgCreateSection) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCreateSection) XXX_DiscardUnknown ¶
func (m *MsgCreateSection) XXX_DiscardUnknown()
func (*MsgCreateSection) XXX_Marshal ¶
func (m *MsgCreateSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSection) XXX_Merge ¶
func (m *MsgCreateSection) XXX_Merge(src proto.Message)
func (*MsgCreateSection) XXX_Size ¶
func (m *MsgCreateSection) XXX_Size() int
func (*MsgCreateSection) XXX_Unmarshal ¶
func (m *MsgCreateSection) XXX_Unmarshal(b []byte) error
type MsgCreateSectionResponse ¶
type MsgCreateSectionResponse struct { // Id of the newly created section SectionID uint32 `protobuf:"varint,1,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` }
MsgCreateSectionResponse represents the Msg/CreateSection response type
func (*MsgCreateSectionResponse) Descriptor ¶
func (*MsgCreateSectionResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSectionResponse) GetSectionID ¶
func (m *MsgCreateSectionResponse) GetSectionID() uint32
func (*MsgCreateSectionResponse) Marshal ¶
func (m *MsgCreateSectionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSectionResponse) MarshalTo ¶
func (m *MsgCreateSectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSectionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSectionResponse) ProtoMessage ¶
func (*MsgCreateSectionResponse) ProtoMessage()
func (*MsgCreateSectionResponse) Reset ¶
func (m *MsgCreateSectionResponse) Reset()
func (*MsgCreateSectionResponse) Size ¶
func (m *MsgCreateSectionResponse) Size() (n int)
func (*MsgCreateSectionResponse) String ¶
func (m *MsgCreateSectionResponse) String() string
func (*MsgCreateSectionResponse) Unmarshal ¶
func (m *MsgCreateSectionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSectionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateSectionResponse) XXX_DiscardUnknown()
func (*MsgCreateSectionResponse) XXX_Marshal ¶
func (m *MsgCreateSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSectionResponse) XXX_Merge ¶
func (m *MsgCreateSectionResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSectionResponse) XXX_Size ¶
func (m *MsgCreateSectionResponse) XXX_Size() int
func (*MsgCreateSectionResponse) XXX_Unmarshal ¶
func (m *MsgCreateSectionResponse) XXX_Unmarshal(b []byte) error
type MsgCreateSubspace ¶
type MsgCreateSubspace struct { // Name of the subspace Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) Description of the subspace Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // (optional) Treasury address associated to this subspace Treasury string `protobuf:"bytes,3,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"` // (optional) Owner of this subspace. If not specified, the creator will be // the default owner. Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // Address creating the subspace 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 string, description string, treasury string, owner string, creator string, ) *MsgCreateSubspace
NewMsgCreateSubspace creates a new MsgCreateSubspace instance
func (*MsgCreateSubspace) Descriptor ¶
func (*MsgCreateSubspace) Descriptor() ([]byte, []int)
func (*MsgCreateSubspace) GetCreator ¶ added in v4.4.0
func (m *MsgCreateSubspace) GetCreator() string
func (*MsgCreateSubspace) GetDescription ¶ added in v4.4.0
func (m *MsgCreateSubspace) GetDescription() string
func (*MsgCreateSubspace) GetName ¶ added in v4.4.0
func (m *MsgCreateSubspace) GetName() string
func (*MsgCreateSubspace) GetOwner ¶ added in v4.4.0
func (m *MsgCreateSubspace) GetOwner() string
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) GetTreasury ¶ added in v4.4.0
func (m *MsgCreateSubspace) GetTreasury() string
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) 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 { // Id of the newly created subspace id 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 { // Id of the subspace inside which the group will be created SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // (optional) Id of the section inside which the group will be created SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // Name of the group Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) Description of the group Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Default permissions to be applied to the group DefaultPermissions []string `` /* 142-byte string literal not displayed */ // Initial members to be put inside the group InitialMembers []string `` /* 126-byte string literal not displayed */ // Creator of the group Creator string `protobuf:"bytes,7,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, sectionID uint32, name string, description string, permissions Permissions, initialMembers []string, 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() []string
func (*MsgCreateUserGroup) GetDescription ¶
func (m *MsgCreateUserGroup) GetDescription() string
func (*MsgCreateUserGroup) GetInitialMembers ¶ added in v4.2.0
func (m *MsgCreateUserGroup) GetInitialMembers() []string
func (*MsgCreateUserGroup) GetName ¶
func (m *MsgCreateUserGroup) GetName() string
func (*MsgCreateUserGroup) GetSectionID ¶
func (m *MsgCreateUserGroup) GetSectionID() uint32
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 MsgDeleteSection ¶
type MsgDeleteSection struct { // Id of the subspace inside which the section to be deleted is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section to delete SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // User deleting the section Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgDeleteSection represents the message to be used when deleting a section
func NewMsgDeleteSection ¶
func NewMsgDeleteSection(subspaceID uint64, sectionID uint32, signer string) *MsgDeleteSection
NewMsgDeleteSection returns a new MsgDeleteSection instance
func (*MsgDeleteSection) Descriptor ¶
func (*MsgDeleteSection) Descriptor() ([]byte, []int)
func (*MsgDeleteSection) GetSectionID ¶
func (m *MsgDeleteSection) GetSectionID() uint32
func (MsgDeleteSection) GetSignBytes ¶
func (msg MsgDeleteSection) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeleteSection) GetSigner ¶
func (m *MsgDeleteSection) GetSigner() string
func (MsgDeleteSection) GetSigners ¶
func (msg MsgDeleteSection) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteSection) GetSubspaceID ¶
func (m *MsgDeleteSection) GetSubspaceID() uint64
func (*MsgDeleteSection) Marshal ¶
func (m *MsgDeleteSection) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSection) MarshalToSizedBuffer ¶
func (m *MsgDeleteSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSection) ProtoMessage ¶
func (*MsgDeleteSection) ProtoMessage()
func (*MsgDeleteSection) Reset ¶
func (m *MsgDeleteSection) Reset()
func (*MsgDeleteSection) Size ¶
func (m *MsgDeleteSection) Size() (n int)
func (*MsgDeleteSection) String ¶
func (m *MsgDeleteSection) String() string
func (*MsgDeleteSection) Unmarshal ¶
func (m *MsgDeleteSection) Unmarshal(dAtA []byte) error
func (MsgDeleteSection) ValidateBasic ¶
func (msg MsgDeleteSection) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDeleteSection) XXX_DiscardUnknown ¶
func (m *MsgDeleteSection) XXX_DiscardUnknown()
func (*MsgDeleteSection) XXX_Marshal ¶
func (m *MsgDeleteSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSection) XXX_Merge ¶
func (m *MsgDeleteSection) XXX_Merge(src proto.Message)
func (*MsgDeleteSection) XXX_Size ¶
func (m *MsgDeleteSection) XXX_Size() int
func (*MsgDeleteSection) XXX_Unmarshal ¶
func (m *MsgDeleteSection) XXX_Unmarshal(b []byte) error
type MsgDeleteSectionResponse ¶
type MsgDeleteSectionResponse struct { }
MsgDeleteSectionResponse represents the Msg/DeleteSection response type
func (*MsgDeleteSectionResponse) Descriptor ¶
func (*MsgDeleteSectionResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteSectionResponse) Marshal ¶
func (m *MsgDeleteSectionResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSectionResponse) MarshalTo ¶
func (m *MsgDeleteSectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSectionResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSectionResponse) ProtoMessage ¶
func (*MsgDeleteSectionResponse) ProtoMessage()
func (*MsgDeleteSectionResponse) Reset ¶
func (m *MsgDeleteSectionResponse) Reset()
func (*MsgDeleteSectionResponse) Size ¶
func (m *MsgDeleteSectionResponse) Size() (n int)
func (*MsgDeleteSectionResponse) String ¶
func (m *MsgDeleteSectionResponse) String() string
func (*MsgDeleteSectionResponse) Unmarshal ¶
func (m *MsgDeleteSectionResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteSectionResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteSectionResponse) XXX_DiscardUnknown()
func (*MsgDeleteSectionResponse) XXX_Marshal ¶
func (m *MsgDeleteSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSectionResponse) XXX_Merge ¶
func (m *MsgDeleteSectionResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteSectionResponse) XXX_Size ¶
func (m *MsgDeleteSectionResponse) XXX_Size() int
func (*MsgDeleteSectionResponse) XXX_Unmarshal ¶
func (m *MsgDeleteSectionResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteSubspace ¶
type MsgDeleteSubspace struct { // Id of the subspace to delete SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Address of the user deleting the subspace 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) GetSigner ¶ added in v4.4.0
func (m *MsgDeleteSubspace) GetSigner() string
func (MsgDeleteSubspace) GetSigners ¶
func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteSubspace) GetSubspaceID ¶ added in v4.4.0
func (m *MsgDeleteSubspace) GetSubspaceID() uint64
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) 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 { // Id of the subspace inside which the group to delete is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group to be deleted GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // User deleting the group 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 MsgEditSection ¶
type MsgEditSection struct { // Id of the subspace inside which the section to be edited is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section to be edited SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // (optional) New name of the section Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) New description of the section Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // User editing the section Editor string `protobuf:"bytes,5,opt,name=editor,proto3" json:"editor,omitempty" yaml:"editor"` }
MsgEditSection represents the message to be used when editing a subspace section
func NewMsgEditSection ¶
func NewMsgEditSection( subspaceID uint64, sectionID uint32, name string, description string, editor string, ) *MsgEditSection
NewMsgEditSection returns a new MsgEditSection instance
func (*MsgEditSection) Descriptor ¶
func (*MsgEditSection) Descriptor() ([]byte, []int)
func (*MsgEditSection) GetDescription ¶
func (m *MsgEditSection) GetDescription() string
func (*MsgEditSection) GetEditor ¶
func (m *MsgEditSection) GetEditor() string
func (*MsgEditSection) GetName ¶
func (m *MsgEditSection) GetName() string
func (*MsgEditSection) GetSectionID ¶
func (m *MsgEditSection) GetSectionID() uint32
func (MsgEditSection) GetSignBytes ¶
func (msg MsgEditSection) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgEditSection) GetSigners ¶
func (msg MsgEditSection) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgEditSection) GetSubspaceID ¶
func (m *MsgEditSection) GetSubspaceID() uint64
func (*MsgEditSection) Marshal ¶
func (m *MsgEditSection) Marshal() (dAtA []byte, err error)
func (*MsgEditSection) MarshalToSizedBuffer ¶
func (m *MsgEditSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditSection) ProtoMessage ¶
func (*MsgEditSection) ProtoMessage()
func (*MsgEditSection) Reset ¶
func (m *MsgEditSection) Reset()
func (*MsgEditSection) Size ¶
func (m *MsgEditSection) Size() (n int)
func (*MsgEditSection) String ¶
func (m *MsgEditSection) String() string
func (*MsgEditSection) Unmarshal ¶
func (m *MsgEditSection) Unmarshal(dAtA []byte) error
func (MsgEditSection) ValidateBasic ¶
func (msg MsgEditSection) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgEditSection) XXX_DiscardUnknown ¶
func (m *MsgEditSection) XXX_DiscardUnknown()
func (*MsgEditSection) XXX_Marshal ¶
func (m *MsgEditSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditSection) XXX_Merge ¶
func (m *MsgEditSection) XXX_Merge(src proto.Message)
func (*MsgEditSection) XXX_Size ¶
func (m *MsgEditSection) XXX_Size() int
func (*MsgEditSection) XXX_Unmarshal ¶
func (m *MsgEditSection) XXX_Unmarshal(b []byte) error
type MsgEditSectionResponse ¶
type MsgEditSectionResponse struct { }
MsgEditSectionResponse represents the Msg/EditSection response type
func (*MsgEditSectionResponse) Descriptor ¶
func (*MsgEditSectionResponse) Descriptor() ([]byte, []int)
func (*MsgEditSectionResponse) Marshal ¶
func (m *MsgEditSectionResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditSectionResponse) MarshalTo ¶
func (m *MsgEditSectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditSectionResponse) MarshalToSizedBuffer ¶
func (m *MsgEditSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditSectionResponse) ProtoMessage ¶
func (*MsgEditSectionResponse) ProtoMessage()
func (*MsgEditSectionResponse) Reset ¶
func (m *MsgEditSectionResponse) Reset()
func (*MsgEditSectionResponse) Size ¶
func (m *MsgEditSectionResponse) Size() (n int)
func (*MsgEditSectionResponse) String ¶
func (m *MsgEditSectionResponse) String() string
func (*MsgEditSectionResponse) Unmarshal ¶
func (m *MsgEditSectionResponse) Unmarshal(dAtA []byte) error
func (*MsgEditSectionResponse) XXX_DiscardUnknown ¶
func (m *MsgEditSectionResponse) XXX_DiscardUnknown()
func (*MsgEditSectionResponse) XXX_Marshal ¶
func (m *MsgEditSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditSectionResponse) XXX_Merge ¶
func (m *MsgEditSectionResponse) XXX_Merge(src proto.Message)
func (*MsgEditSectionResponse) XXX_Size ¶
func (m *MsgEditSectionResponse) XXX_Size() int
func (*MsgEditSectionResponse) XXX_Unmarshal ¶
func (m *MsgEditSectionResponse) XXX_Unmarshal(b []byte) error
type MsgEditSubspace ¶
type MsgEditSubspace struct { // Id of the subspace to edit SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // New name of the subspace. If it shouldn't be changed, use [do-not-modify] // instead. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // New description of the subspace. If it shouldn't be changed, use // [do-not-modify] instead. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // New treasury address of the subspace. If it shouldn't be changed, use // [do-not-modify] instead. Treasury string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"` // New owner of the subspace. If it shouldn't be changed, use [do-not-modify] // instead. Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` // Address of the user editing the subspace 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 string, description, treasury string, owner string, signer string, ) *MsgEditSubspace
NewMsgEditSubspace creates a new MsgEditSubspace instance
func (*MsgEditSubspace) Descriptor ¶
func (*MsgEditSubspace) Descriptor() ([]byte, []int)
func (*MsgEditSubspace) GetDescription ¶ added in v4.4.0
func (m *MsgEditSubspace) GetDescription() string
func (*MsgEditSubspace) GetName ¶ added in v4.4.0
func (m *MsgEditSubspace) GetName() string
func (*MsgEditSubspace) GetOwner ¶ added in v4.4.0
func (m *MsgEditSubspace) GetOwner() string
func (MsgEditSubspace) GetSignBytes ¶
func (msg MsgEditSubspace) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgEditSubspace) GetSigner ¶ added in v4.4.0
func (m *MsgEditSubspace) GetSigner() string
func (MsgEditSubspace) GetSigners ¶
func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgEditSubspace) GetSubspaceID ¶ added in v4.4.0
func (m *MsgEditSubspace) GetSubspaceID() uint64
func (*MsgEditSubspace) GetTreasury ¶ added in v4.4.0
func (m *MsgEditSubspace) GetTreasury() string
func (*MsgEditSubspace) Marshal ¶
func (m *MsgEditSubspace) Marshal() (dAtA []byte, err 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) Size ¶
func (m *MsgEditSubspace) Size() (n int)
func (*MsgEditSubspace) String ¶
func (m *MsgEditSubspace) String() string
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 { // Id of the subspace inside which the group to be edited is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group to be edited GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // (optional) New name of the group Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) New description of the group Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // User editing the group 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 string, 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) MarshalToSizedBuffer ¶
func (m *MsgEditUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditUserGroup) ProtoMessage ¶
func (*MsgEditUserGroup) ProtoMessage()
func (*MsgEditUserGroup) Reset ¶
func (m *MsgEditUserGroup) Reset()
func (*MsgEditUserGroup) Size ¶
func (m *MsgEditUserGroup) Size() (n int)
func (*MsgEditUserGroup) String ¶
func (m *MsgEditUserGroup) String() string
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 MsgMoveSection ¶
type MsgMoveSection struct { // Id of the subspace inside which the section lies SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section to be moved SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // Id of the new parent NewParentID uint32 `protobuf:"varint,3,opt,name=new_parent_id,json=newParentId,proto3" json:"new_parent_id,omitempty" yaml:"new_parent_id"` // Signer of the message Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgMoveSection represents the message to be used when moving a section to another parent
func NewMsgMoveSection ¶
func NewMsgMoveSection( subspaceID uint64, sectionID uint32, newParentID uint32, signer string, ) *MsgMoveSection
NewMsgMoveSection returns a new MsgMoveSection instance
func (*MsgMoveSection) Descriptor ¶
func (*MsgMoveSection) Descriptor() ([]byte, []int)
func (*MsgMoveSection) GetNewParentID ¶
func (m *MsgMoveSection) GetNewParentID() uint32
func (*MsgMoveSection) GetSectionID ¶
func (m *MsgMoveSection) GetSectionID() uint32
func (MsgMoveSection) GetSignBytes ¶
func (msg MsgMoveSection) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgMoveSection) GetSigner ¶
func (m *MsgMoveSection) GetSigner() string
func (MsgMoveSection) GetSigners ¶
func (msg MsgMoveSection) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMoveSection) GetSubspaceID ¶
func (m *MsgMoveSection) GetSubspaceID() uint64
func (*MsgMoveSection) Marshal ¶
func (m *MsgMoveSection) Marshal() (dAtA []byte, err error)
func (*MsgMoveSection) MarshalToSizedBuffer ¶
func (m *MsgMoveSection) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMoveSection) ProtoMessage ¶
func (*MsgMoveSection) ProtoMessage()
func (*MsgMoveSection) Reset ¶
func (m *MsgMoveSection) Reset()
func (*MsgMoveSection) Size ¶
func (m *MsgMoveSection) Size() (n int)
func (*MsgMoveSection) String ¶
func (m *MsgMoveSection) String() string
func (*MsgMoveSection) Unmarshal ¶
func (m *MsgMoveSection) Unmarshal(dAtA []byte) error
func (MsgMoveSection) ValidateBasic ¶
func (msg MsgMoveSection) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgMoveSection) XXX_DiscardUnknown ¶
func (m *MsgMoveSection) XXX_DiscardUnknown()
func (*MsgMoveSection) XXX_Marshal ¶
func (m *MsgMoveSection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMoveSection) XXX_Merge ¶
func (m *MsgMoveSection) XXX_Merge(src proto.Message)
func (*MsgMoveSection) XXX_Size ¶
func (m *MsgMoveSection) XXX_Size() int
func (*MsgMoveSection) XXX_Unmarshal ¶
func (m *MsgMoveSection) XXX_Unmarshal(b []byte) error
type MsgMoveSectionResponse ¶
type MsgMoveSectionResponse struct { }
MsgMoveSectionResponse
func (*MsgMoveSectionResponse) Descriptor ¶
func (*MsgMoveSectionResponse) Descriptor() ([]byte, []int)
func (*MsgMoveSectionResponse) Marshal ¶
func (m *MsgMoveSectionResponse) Marshal() (dAtA []byte, err error)
func (*MsgMoveSectionResponse) MarshalTo ¶
func (m *MsgMoveSectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMoveSectionResponse) MarshalToSizedBuffer ¶
func (m *MsgMoveSectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMoveSectionResponse) ProtoMessage ¶
func (*MsgMoveSectionResponse) ProtoMessage()
func (*MsgMoveSectionResponse) Reset ¶
func (m *MsgMoveSectionResponse) Reset()
func (*MsgMoveSectionResponse) Size ¶
func (m *MsgMoveSectionResponse) Size() (n int)
func (*MsgMoveSectionResponse) String ¶
func (m *MsgMoveSectionResponse) String() string
func (*MsgMoveSectionResponse) Unmarshal ¶
func (m *MsgMoveSectionResponse) Unmarshal(dAtA []byte) error
func (*MsgMoveSectionResponse) XXX_DiscardUnknown ¶
func (m *MsgMoveSectionResponse) XXX_DiscardUnknown()
func (*MsgMoveSectionResponse) XXX_Marshal ¶
func (m *MsgMoveSectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMoveSectionResponse) XXX_Merge ¶
func (m *MsgMoveSectionResponse) XXX_Merge(src proto.Message)
func (*MsgMoveSectionResponse) XXX_Size ¶
func (m *MsgMoveSectionResponse) XXX_Size() int
func (*MsgMoveSectionResponse) XXX_Unmarshal ¶
func (m *MsgMoveSectionResponse) XXX_Unmarshal(b []byte) error
type MsgMoveUserGroup ¶
type MsgMoveUserGroup struct { // Id of the subspace inside which the group to move is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group to be moved GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // Id of the new section where to move the group NewSectionID uint32 `protobuf:"varint,3,opt,name=new_section_id,json=newSectionId,proto3" json:"new_section_id,omitempty" yaml:"new_section_id"` // User signing the message Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgMoveUserGroup represents the message used to move one user group from a section to anoter
func NewMsgMoveUserGroup ¶
func NewMsgMoveUserGroup( subspaceID uint64, groupID uint32, newSectionID uint32, signer string, ) *MsgMoveUserGroup
NewMsgMoveUserGroup returns a new NewMsgMoveUserGroup instance
func (*MsgMoveUserGroup) Descriptor ¶
func (*MsgMoveUserGroup) Descriptor() ([]byte, []int)
func (*MsgMoveUserGroup) GetGroupID ¶
func (m *MsgMoveUserGroup) GetGroupID() uint32
func (*MsgMoveUserGroup) GetNewSectionID ¶
func (m *MsgMoveUserGroup) GetNewSectionID() uint32
func (MsgMoveUserGroup) GetSignBytes ¶
func (msg MsgMoveUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgMoveUserGroup) GetSigner ¶
func (m *MsgMoveUserGroup) GetSigner() string
func (MsgMoveUserGroup) GetSigners ¶
func (msg MsgMoveUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgMoveUserGroup) GetSubspaceID ¶
func (m *MsgMoveUserGroup) GetSubspaceID() uint64
func (*MsgMoveUserGroup) Marshal ¶
func (m *MsgMoveUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgMoveUserGroup) MarshalToSizedBuffer ¶
func (m *MsgMoveUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMoveUserGroup) ProtoMessage ¶
func (*MsgMoveUserGroup) ProtoMessage()
func (*MsgMoveUserGroup) Reset ¶
func (m *MsgMoveUserGroup) Reset()
func (*MsgMoveUserGroup) Size ¶
func (m *MsgMoveUserGroup) Size() (n int)
func (*MsgMoveUserGroup) String ¶
func (m *MsgMoveUserGroup) String() string
func (*MsgMoveUserGroup) Unmarshal ¶
func (m *MsgMoveUserGroup) Unmarshal(dAtA []byte) error
func (MsgMoveUserGroup) ValidateBasic ¶
func (msg MsgMoveUserGroup) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgMoveUserGroup) XXX_DiscardUnknown ¶
func (m *MsgMoveUserGroup) XXX_DiscardUnknown()
func (*MsgMoveUserGroup) XXX_Marshal ¶
func (m *MsgMoveUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMoveUserGroup) XXX_Merge ¶
func (m *MsgMoveUserGroup) XXX_Merge(src proto.Message)
func (*MsgMoveUserGroup) XXX_Size ¶
func (m *MsgMoveUserGroup) XXX_Size() int
func (*MsgMoveUserGroup) XXX_Unmarshal ¶
func (m *MsgMoveUserGroup) XXX_Unmarshal(b []byte) error
type MsgMoveUserGroupResponse ¶
type MsgMoveUserGroupResponse struct { }
MsgMoveUserGroupResponse defines the Msg/MoveUserGroup response type
func (*MsgMoveUserGroupResponse) Descriptor ¶
func (*MsgMoveUserGroupResponse) Descriptor() ([]byte, []int)
func (*MsgMoveUserGroupResponse) Marshal ¶
func (m *MsgMoveUserGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgMoveUserGroupResponse) MarshalTo ¶
func (m *MsgMoveUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMoveUserGroupResponse) MarshalToSizedBuffer ¶
func (m *MsgMoveUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMoveUserGroupResponse) ProtoMessage ¶
func (*MsgMoveUserGroupResponse) ProtoMessage()
func (*MsgMoveUserGroupResponse) Reset ¶
func (m *MsgMoveUserGroupResponse) Reset()
func (*MsgMoveUserGroupResponse) Size ¶
func (m *MsgMoveUserGroupResponse) Size() (n int)
func (*MsgMoveUserGroupResponse) String ¶
func (m *MsgMoveUserGroupResponse) String() string
func (*MsgMoveUserGroupResponse) Unmarshal ¶
func (m *MsgMoveUserGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgMoveUserGroupResponse) XXX_DiscardUnknown ¶
func (m *MsgMoveUserGroupResponse) XXX_DiscardUnknown()
func (*MsgMoveUserGroupResponse) XXX_Marshal ¶
func (m *MsgMoveUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMoveUserGroupResponse) XXX_Merge ¶
func (m *MsgMoveUserGroupResponse) XXX_Merge(src proto.Message)
func (*MsgMoveUserGroupResponse) XXX_Size ¶
func (m *MsgMoveUserGroupResponse) XXX_Size() int
func (*MsgMoveUserGroupResponse) XXX_Unmarshal ¶
func (m *MsgMoveUserGroupResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveUserFromUserGroup ¶
type MsgRemoveUserFromUserGroup struct { // Id of the subspace inside which the group to remove the user from is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group from which to remove the user GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // User to be removed from the group User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` // User signing the message 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 ¶
func (msg MsgRemoveUserFromUserGroup) Type() string
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 (m *MsgRemoveUserFromUserGroupResponse) Reset()
func (*MsgRemoveUserFromUserGroupResponse) Size ¶
func (m *MsgRemoveUserFromUserGroupResponse) Size() (n int)
func (*MsgRemoveUserFromUserGroupResponse) String ¶
func (m *MsgRemoveUserFromUserGroupResponse) String() 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 (m *MsgRemoveUserFromUserGroupResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveUserFromUserGroupResponse) XXX_Size ¶
func (m *MsgRemoveUserFromUserGroupResponse) XXX_Size() int
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) // CreateSection allows to create a new subspace section CreateSection(context.Context, *MsgCreateSection) (*MsgCreateSectionResponse, error) // EditSection allows to edit an existing section EditSection(context.Context, *MsgEditSection) (*MsgEditSectionResponse, error) // MoveSection allows to move an existing section to another parent MoveSection(context.Context, *MsgMoveSection) (*MsgMoveSectionResponse, error) // DeleteSection allows to delete an existing section DeleteSection(context.Context, *MsgDeleteSection) (*MsgDeleteSectionResponse, 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) // MoveUserGroup allows to move a user group from a section to another MoveUserGroup(context.Context, *MsgMoveUserGroup) (*MsgMoveUserGroupResponse, 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 { // Id of the subspace inside which the group is SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group for which to set the new permissions GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // New permissions to be set to the group Permissions []string `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` // User setting the new 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 Permissions, 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() []string
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 ¶
func (msg MsgSetUserGroupPermissions) Type() string
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 (m *MsgSetUserGroupPermissionsResponse) Reset()
func (*MsgSetUserGroupPermissionsResponse) Size ¶
func (m *MsgSetUserGroupPermissionsResponse) Size() (n int)
func (*MsgSetUserGroupPermissionsResponse) String ¶
func (m *MsgSetUserGroupPermissionsResponse) String() 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 (m *MsgSetUserGroupPermissionsResponse) XXX_Merge(src proto.Message)
func (*MsgSetUserGroupPermissionsResponse) XXX_Size ¶
func (m *MsgSetUserGroupPermissionsResponse) XXX_Size() int
func (*MsgSetUserGroupPermissionsResponse) XXX_Unmarshal ¶
func (m *MsgSetUserGroupPermissionsResponse) XXX_Unmarshal(b []byte) error
type MsgSetUserPermissions ¶
type MsgSetUserPermissions struct { // Id of the subspace inside which to set the permissions SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section for which to set the permissions SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // User for which to set the permissions User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` // Permissions to be set to the user Permissions []string `protobuf:"bytes,4,rep,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` // User signing the message Signer string `protobuf:"bytes,5,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, sectionID uint32, user string, permissions Permissions, signer string, ) *MsgSetUserPermissions
NewMsgSetUserPermissions creates a new MsgSetUserPermissions instance
func (*MsgSetUserPermissions) Descriptor ¶
func (*MsgSetUserPermissions) Descriptor() ([]byte, []int)
func (*MsgSetUserPermissions) GetPermissions ¶
func (m *MsgSetUserPermissions) GetPermissions() []string
func (*MsgSetUserPermissions) GetSectionID ¶
func (m *MsgSetUserPermissions) GetSectionID() 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 (m *MsgSetUserPermissionsResponse) String() 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 string)
AfterSubspaceGroupMemberAdded implements SubspacesHook
func (MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved ¶
func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user string)
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) AfterSubspaceSectionDeleted ¶
func (h MultiSubspacesHooks) AfterSubspaceSectionDeleted(ctx sdk.Context, subspaceID uint64, sectionID uint32)
AfterSubspaceSectionDeleted implements SubspacesHooks
func (MultiSubspacesHooks) AfterSubspaceSectionSaved ¶
func (h MultiSubspacesHooks) AfterSubspaceSectionSaved(ctx sdk.Context, subspaceID uint64, sectionID uint32)
AfterSubspaceSectionSaved implements SubspacesHooks
func (MultiSubspacesHooks) AfterUserPermissionRemoved ¶
func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string)
AfterUserPermissionRemoved implements SubspacesHook
func (MultiSubspacesHooks) AfterUserPermissionSet ¶
func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string, permissions Permissions)
AfterUserPermissionSet implements SubspacesHook
type Permission ¶
type Permission = string
Permission represents a permission that can be set to a user or user group
func RegisterPermission ¶
func RegisterPermission(permissionName string) Permission
RegisterPermission registers the permissions with the given name and returns its value
type PermissionDetail ¶
type PermissionDetail struct { // Id of the subspace for which this permission is valid SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the section for which this permission is valid SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` // 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(subspaceID uint64, sectionID uint32, groupID uint32, permissions Permissions) PermissionDetail
NewPermissionDetailGroup returns a new PermissionDetail for the user with the given id and permission value
func NewPermissionDetailUser ¶
func NewPermissionDetailUser(subspaceID uint64, sectionID uint32, user string, permissions Permissions) 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 (m *PermissionDetail) GetGroup() *PermissionDetail_Group
func (*PermissionDetail) GetSum ¶
func (m *PermissionDetail) GetSum() isPermissionDetail_Sum
func (*PermissionDetail) GetUser ¶
func (m *PermissionDetail) GetUser() *PermissionDetail_User
func (*PermissionDetail) Marshal ¶
func (m *PermissionDetail) Marshal() (dAtA []byte, err 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 { // Unique id of the group GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // Permissions set to the group Permission []string `protobuf:"bytes,2,rep,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,4,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"` // Permissions set to the user Permission []string `protobuf:"bytes,2,rep,name=permission,proto3" json:"permission,omitempty" yaml:"permission"` }
User 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,3,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 Permissions ¶
type Permissions []Permission
func CombinePermissions ¶
func CombinePermissions(permissions ...Permission) Permissions
CombinePermissions combines all the given permissions into a single Permission object using the OR operator
func NewPermissions ¶
func NewPermissions(permissions ...Permission) Permissions
NewPermissions allows to build a new Permissions instance
func SanitizePermissions ¶
func SanitizePermissions(permissions Permissions) (sanitized Permissions)
SanitizePermissions sanitizes the given permissions to remove any duplicate
func (Permissions) Equals ¶
func (p Permissions) Equals(other Permissions) bool
Equals returns true iff the given permissions slice is equals to this one
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) // Sections allows to query for the sections of a specific subspace Sections(ctx context.Context, in *QuerySectionsRequest, opts ...grpc.CallOption) (*QuerySectionsResponse, error) // Section queries all the information about the section with the given id Section(ctx context.Context, in *QuerySectionRequest, opts ...grpc.CallOption) (*QuerySectionResponse, 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 QuerySectionRequest ¶
type QuerySectionRequest struct { // Id of the subspace inside which to search for SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // Id of the searched section SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` }
QuerySectionRequest is the request type for Query/Section RPC method
func NewQuerySectionRequest ¶
func NewQuerySectionRequest(subspaceID uint64, sectionID uint32) *QuerySectionRequest
NewQuerySectionRequest returns a new QuerySectionRequest instance
func (*QuerySectionRequest) Descriptor ¶
func (*QuerySectionRequest) Descriptor() ([]byte, []int)
func (*QuerySectionRequest) GetSectionId ¶
func (m *QuerySectionRequest) GetSectionId() uint32
func (*QuerySectionRequest) GetSubspaceId ¶
func (m *QuerySectionRequest) GetSubspaceId() uint64
func (*QuerySectionRequest) Marshal ¶
func (m *QuerySectionRequest) Marshal() (dAtA []byte, err error)
func (*QuerySectionRequest) MarshalTo ¶
func (m *QuerySectionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionRequest) MarshalToSizedBuffer ¶
func (m *QuerySectionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionRequest) ProtoMessage ¶
func (*QuerySectionRequest) ProtoMessage()
func (*QuerySectionRequest) Reset ¶
func (m *QuerySectionRequest) Reset()
func (*QuerySectionRequest) Size ¶
func (m *QuerySectionRequest) Size() (n int)
func (*QuerySectionRequest) String ¶
func (m *QuerySectionRequest) String() string
func (*QuerySectionRequest) Unmarshal ¶
func (m *QuerySectionRequest) Unmarshal(dAtA []byte) error
func (*QuerySectionRequest) XXX_DiscardUnknown ¶
func (m *QuerySectionRequest) XXX_DiscardUnknown()
func (*QuerySectionRequest) XXX_Marshal ¶
func (m *QuerySectionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionRequest) XXX_Merge ¶
func (m *QuerySectionRequest) XXX_Merge(src proto.Message)
func (*QuerySectionRequest) XXX_Size ¶
func (m *QuerySectionRequest) XXX_Size() int
func (*QuerySectionRequest) XXX_Unmarshal ¶
func (m *QuerySectionRequest) XXX_Unmarshal(b []byte) error
type QuerySectionResponse ¶
type QuerySectionResponse struct {
Section Section `protobuf:"bytes,1,opt,name=section,proto3" json:"section"`
}
QuerySectionResponse is the response type for Query/Section RPC method
func (*QuerySectionResponse) Descriptor ¶
func (*QuerySectionResponse) Descriptor() ([]byte, []int)
func (*QuerySectionResponse) GetSection ¶
func (m *QuerySectionResponse) GetSection() Section
func (*QuerySectionResponse) Marshal ¶
func (m *QuerySectionResponse) Marshal() (dAtA []byte, err error)
func (*QuerySectionResponse) MarshalTo ¶
func (m *QuerySectionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionResponse) MarshalToSizedBuffer ¶
func (m *QuerySectionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionResponse) ProtoMessage ¶
func (*QuerySectionResponse) ProtoMessage()
func (*QuerySectionResponse) Reset ¶
func (m *QuerySectionResponse) Reset()
func (*QuerySectionResponse) Size ¶
func (m *QuerySectionResponse) Size() (n int)
func (*QuerySectionResponse) String ¶
func (m *QuerySectionResponse) String() string
func (*QuerySectionResponse) Unmarshal ¶
func (m *QuerySectionResponse) Unmarshal(dAtA []byte) error
func (*QuerySectionResponse) XXX_DiscardUnknown ¶
func (m *QuerySectionResponse) XXX_DiscardUnknown()
func (*QuerySectionResponse) XXX_Marshal ¶
func (m *QuerySectionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionResponse) XXX_Merge ¶
func (m *QuerySectionResponse) XXX_Merge(src proto.Message)
func (*QuerySectionResponse) XXX_Size ¶
func (m *QuerySectionResponse) XXX_Size() int
func (*QuerySectionResponse) XXX_Unmarshal ¶
func (m *QuerySectionResponse) XXX_Unmarshal(b []byte) error
type QuerySectionsRequest ¶
type QuerySectionsRequest struct { // Id of the subspace to query the sections for SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySectionsRequest is the request type for Query/Sections RPC method
func NewQuerySectionsRequest ¶
func NewQuerySectionsRequest(subspaceID uint64, pagination *query.PageRequest) *QuerySectionsRequest
NewQuerySectionsRequest returns a new QuerySectionsRequest instance
func (*QuerySectionsRequest) Descriptor ¶
func (*QuerySectionsRequest) Descriptor() ([]byte, []int)
func (*QuerySectionsRequest) GetPagination ¶
func (m *QuerySectionsRequest) GetPagination() *query.PageRequest
func (*QuerySectionsRequest) GetSubspaceId ¶
func (m *QuerySectionsRequest) GetSubspaceId() uint64
func (*QuerySectionsRequest) Marshal ¶
func (m *QuerySectionsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySectionsRequest) MarshalTo ¶
func (m *QuerySectionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionsRequest) MarshalToSizedBuffer ¶
func (m *QuerySectionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionsRequest) ProtoMessage ¶
func (*QuerySectionsRequest) ProtoMessage()
func (*QuerySectionsRequest) Reset ¶
func (m *QuerySectionsRequest) Reset()
func (*QuerySectionsRequest) Size ¶
func (m *QuerySectionsRequest) Size() (n int)
func (*QuerySectionsRequest) String ¶
func (m *QuerySectionsRequest) String() string
func (*QuerySectionsRequest) Unmarshal ¶
func (m *QuerySectionsRequest) Unmarshal(dAtA []byte) error
func (*QuerySectionsRequest) XXX_DiscardUnknown ¶
func (m *QuerySectionsRequest) XXX_DiscardUnknown()
func (*QuerySectionsRequest) XXX_Marshal ¶
func (m *QuerySectionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionsRequest) XXX_Merge ¶
func (m *QuerySectionsRequest) XXX_Merge(src proto.Message)
func (*QuerySectionsRequest) XXX_Size ¶
func (m *QuerySectionsRequest) XXX_Size() int
func (*QuerySectionsRequest) XXX_Unmarshal ¶
func (m *QuerySectionsRequest) XXX_Unmarshal(b []byte) error
type QuerySectionsResponse ¶
type QuerySectionsResponse struct { Sections []Section `protobuf:"bytes,1,rep,name=sections,proto3" json:"sections"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySectionsResponse is the response type for Query/Sections RPC method
func (*QuerySectionsResponse) Descriptor ¶
func (*QuerySectionsResponse) Descriptor() ([]byte, []int)
func (*QuerySectionsResponse) GetPagination ¶
func (m *QuerySectionsResponse) GetPagination() *query.PageResponse
func (*QuerySectionsResponse) GetSections ¶
func (m *QuerySectionsResponse) GetSections() []Section
func (*QuerySectionsResponse) Marshal ¶
func (m *QuerySectionsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySectionsResponse) MarshalTo ¶
func (m *QuerySectionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySectionsResponse) MarshalToSizedBuffer ¶
func (m *QuerySectionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySectionsResponse) ProtoMessage ¶
func (*QuerySectionsResponse) ProtoMessage()
func (*QuerySectionsResponse) Reset ¶
func (m *QuerySectionsResponse) Reset()
func (*QuerySectionsResponse) Size ¶
func (m *QuerySectionsResponse) Size() (n int)
func (*QuerySectionsResponse) String ¶
func (m *QuerySectionsResponse) String() string
func (*QuerySectionsResponse) Unmarshal ¶
func (m *QuerySectionsResponse) Unmarshal(dAtA []byte) error
func (*QuerySectionsResponse) XXX_DiscardUnknown ¶
func (m *QuerySectionsResponse) XXX_DiscardUnknown()
func (*QuerySectionsResponse) XXX_Marshal ¶
func (m *QuerySectionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySectionsResponse) XXX_Merge ¶
func (m *QuerySectionsResponse) XXX_Merge(src proto.Message)
func (*QuerySectionsResponse) XXX_Size ¶
func (m *QuerySectionsResponse) XXX_Size() int
func (*QuerySectionsResponse) XXX_Unmarshal ¶
func (m *QuerySectionsResponse) XXX_Unmarshal(b []byte) error
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) // Sections allows to query for the sections of a specific subspace Sections(context.Context, *QuerySectionsRequest) (*QuerySectionsResponse, error) // Section queries all the information about the section with the given id Section(context.Context, *QuerySectionRequest) (*QuerySectionResponse, 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 { // Id of the subspace to query 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 { // Id of the subspace that contains the group SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the user group to query the members for 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 (m *QueryUserGroupMembersRequest) String() 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 (m *QueryUserGroupMembersResponse) String() 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 { // Id of the subspace that contains the group SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the group to query 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 { // Id of the subspace to query the groups for SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // (optional) Section id to query the groups for SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUserGroupsRequest is the request type for the Query/UserGroups RPC method
func NewQueryUserGroupsRequest ¶
func NewQueryUserGroupsRequest(subspaceID uint64, sectionID uint32, 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) GetSectionId ¶
func (m *QueryUserGroupsRequest) GetSectionId() uint32
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 { // Id of the subspace to query the permissions for SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Id of the section to query the permissions for SectionId uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // Address of the user to query the permissions for User string `protobuf:"bytes,3,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, sectionID uint32, 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 []string `protobuf:"bytes,1,rep,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 (m *QueryUserPermissionsResponse) GetDetails() []PermissionDetail
func (*QueryUserPermissionsResponse) GetPermissions ¶
func (m *QueryUserPermissionsResponse) GetPermissions() []string
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 (m *QueryUserPermissionsResponse) String() 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 Section ¶
type Section struct { // Id of the subspace inside which the section exists SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Unique id of the section within the subspace ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` // (optional) Id of the parent section ParentID uint32 `protobuf:"varint,3,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty" yaml:"parent_id"` // Name of the section within the subspace Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // (optional) Description of the section Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` }
Section contains the data of a single subspace section
func DefaultSection ¶
DefaultSection returns the default section for the given subspace
func NewSection ¶
func NewSection(subspaceID uint64, id uint32, parentID uint32, name string, description string) Section
NewSection returns a new Section instance
func (*Section) Descriptor ¶
func (*Section) GetDescription ¶
func (*Section) GetParentID ¶
func (*Section) GetSubspaceID ¶
func (*Section) MarshalToSizedBuffer ¶
func (*Section) ProtoMessage ¶
func (*Section) ProtoMessage()
func (Section) Update ¶
func (s Section) Update(update SectionUpdate) Section
Update updates the fields of a given section without validating it. Before storing the updated section, a validation with Validate() should be performed.
func (*Section) XXX_DiscardUnknown ¶
func (m *Section) XXX_DiscardUnknown()
func (*Section) XXX_Marshal ¶
func (*Section) XXX_Unmarshal ¶
type SectionUpdate ¶
SectionUpdate contains all the data that can be updated about a section. When performing an update, if a field should not be edited then it must be set to types.DoNotModify
func NewSectionUpdate ¶
func NewSectionUpdate(name string, description string) SectionUpdate
NewSectionUpdate returns a new SectionUpdate instance
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) GetCreationTime ¶
func (*Subspace) GetCreator ¶
func (*Subspace) GetDescription ¶
func (*Subspace) GetTreasury ¶
func (*Subspace) MarshalToSizedBuffer ¶
func (*Subspace) ProtoMessage ¶
func (*Subspace) ProtoMessage()
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) XXX_DiscardUnknown ¶
func (m *Subspace) XXX_DiscardUnknown()
func (*Subspace) XXX_Marshal ¶
func (*Subspace) XXX_Unmarshal ¶
type SubspaceData ¶
type SubspaceData struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` NextGroupID uint32 `protobuf:"varint,2,opt,name=next_group_id,json=nextGroupId,proto3" json:"next_group_id,omitempty"` NextSectionID uint32 `protobuf:"varint,3,opt,name=next_section_id,json=nextSectionId,proto3" json:"next_section_id,omitempty"` }
SubspaceData contains the genesis data for a single subspace
func NewSubspaceData ¶
func NewSubspaceData(subspaceID uint64, nextSectionID uint32, nextGroupID uint32) SubspaceData
NewSubspaceData returns a new SubspaceData instance
func (*SubspaceData) Descriptor ¶
func (*SubspaceData) Descriptor() ([]byte, []int)
func (*SubspaceData) Equal ¶
func (this *SubspaceData) Equal(that interface{}) bool
func (*SubspaceData) GetNextGroupID ¶
func (m *SubspaceData) GetNextGroupID() uint32
func (*SubspaceData) GetNextSectionID ¶
func (m *SubspaceData) GetNextSectionID() uint32
func (*SubspaceData) GetSubspaceID ¶
func (m *SubspaceData) GetSubspaceID() uint64
func (*SubspaceData) Marshal ¶
func (m *SubspaceData) Marshal() (dAtA []byte, err error)
func (*SubspaceData) MarshalToSizedBuffer ¶
func (m *SubspaceData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubspaceData) ProtoMessage ¶
func (*SubspaceData) ProtoMessage()
func (*SubspaceData) Reset ¶
func (m *SubspaceData) Reset()
func (*SubspaceData) Size ¶
func (m *SubspaceData) Size() (n int)
func (*SubspaceData) String ¶
func (m *SubspaceData) String() string
func (*SubspaceData) Unmarshal ¶
func (m *SubspaceData) Unmarshal(dAtA []byte) error
func (SubspaceData) Validate ¶
func (data SubspaceData) Validate() error
Validate implements fmt.Validator
func (*SubspaceData) XXX_DiscardUnknown ¶
func (m *SubspaceData) XXX_DiscardUnknown()
func (*SubspaceData) XXX_Marshal ¶
func (m *SubspaceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubspaceData) XXX_Merge ¶
func (m *SubspaceData) XXX_Merge(src proto.Message)
func (*SubspaceData) XXX_Size ¶
func (m *SubspaceData) XXX_Size() int
func (*SubspaceData) XXX_Unmarshal ¶
func (m *SubspaceData) XXX_Unmarshal(b []byte) error
type SubspaceMsg ¶
type SubspaceMsg interface { sdk.Msg // GetSubspaceID returns the subspace id associated to this message GetSubspaceID() uint64 }
SubspaceMsg represents a generic message that is related to a subspace
type SubspaceUpdate ¶
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 AfterSubspaceSectionSaved(ctx sdk.Context, subspaceID uint64, sectionID uint32) // Must be called when a subspace section is saved AfterSubspaceSectionDeleted(ctx sdk.Context, subspaceID uint64, sectionID uint32) // Must be called when a subspace section 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 string) // Must be called when a user is added to a group AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user string) // 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, sectionID uint32, user string, permissions Permissions) // Must be called when a permission is set for a user AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, sectionID uint32, user string) // Must be called when a permission is removed for a user }
SubspacesHooks event hooks for subspaces objects (noalias)
type SubspacesMsg ¶
type SubspacesMsg struct { CreateSubspace *json.RawMessage `json:"create_subspace"` EditSubspace *json.RawMessage `json:"edit_subspace"` DeleteSubspace *json.RawMessage `json:"delete_subspace"` CreateUserGroup *json.RawMessage `json:"create_user_group"` EditUserGroup *json.RawMessage `json:"edit_user_group"` SetUserGroupPermissions *json.RawMessage `json:"set_user_group_permissions"` DeleteUserGroup *json.RawMessage `json:"delete_user_group"` AddUserToUserGroup *json.RawMessage `json:"add_user_to_user_group"` RemoveUserFromUserGroup *json.RawMessage `json:"remove_user_from_user_group"` SetUserPermissions *json.RawMessage `json:"set_user_permissions"` }
type SubspacesQuery ¶
type SubspacesQuery struct { Subspaces *json.RawMessage `json:"subspaces"` Subspace *json.RawMessage `json:"subspace"` UserGroups *json.RawMessage `json:"user_groups"` UserGroup *json.RawMessage `json:"user_group"` UserGroupMembers *json.RawMessage `json:"user_group_members"` UserPermissions *json.RawMessage `json:"user_permissions"` }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddUserToUserGroup ¶
func (*UnimplementedMsgServer) AddUserToUserGroup(ctx context.Context, req *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error)
func (*UnimplementedMsgServer) CreateSection ¶
func (*UnimplementedMsgServer) CreateSection(ctx context.Context, req *MsgCreateSection) (*MsgCreateSectionResponse, error)
func (*UnimplementedMsgServer) CreateSubspace ¶
func (*UnimplementedMsgServer) CreateSubspace(ctx context.Context, req *MsgCreateSubspace) (*MsgCreateSubspaceResponse, error)
func (*UnimplementedMsgServer) CreateUserGroup ¶
func (*UnimplementedMsgServer) CreateUserGroup(ctx context.Context, req *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error)
func (*UnimplementedMsgServer) DeleteSection ¶
func (*UnimplementedMsgServer) DeleteSection(ctx context.Context, req *MsgDeleteSection) (*MsgDeleteSectionResponse, error)
func (*UnimplementedMsgServer) DeleteSubspace ¶
func (*UnimplementedMsgServer) DeleteSubspace(ctx context.Context, req *MsgDeleteSubspace) (*MsgDeleteSubspaceResponse, error)
func (*UnimplementedMsgServer) DeleteUserGroup ¶
func (*UnimplementedMsgServer) DeleteUserGroup(ctx context.Context, req *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error)
func (*UnimplementedMsgServer) EditSection ¶
func (*UnimplementedMsgServer) EditSection(ctx context.Context, req *MsgEditSection) (*MsgEditSectionResponse, error)
func (*UnimplementedMsgServer) EditSubspace ¶
func (*UnimplementedMsgServer) EditSubspace(ctx context.Context, req *MsgEditSubspace) (*MsgEditSubspaceResponse, error)
func (*UnimplementedMsgServer) EditUserGroup ¶
func (*UnimplementedMsgServer) EditUserGroup(ctx context.Context, req *MsgEditUserGroup) (*MsgEditUserGroupResponse, error)
func (*UnimplementedMsgServer) MoveSection ¶
func (*UnimplementedMsgServer) MoveSection(ctx context.Context, req *MsgMoveSection) (*MsgMoveSectionResponse, error)
func (*UnimplementedMsgServer) MoveUserGroup ¶
func (*UnimplementedMsgServer) MoveUserGroup(ctx context.Context, req *MsgMoveUserGroup) (*MsgMoveUserGroupResponse, error)
func (*UnimplementedMsgServer) RemoveUserFromUserGroup ¶
func (*UnimplementedMsgServer) RemoveUserFromUserGroup(ctx context.Context, req *MsgRemoveUserFromUserGroup) (*MsgRemoveUserFromUserGroupResponse, error)
func (*UnimplementedMsgServer) SetUserGroupPermissions ¶
func (*UnimplementedMsgServer) SetUserGroupPermissions(ctx context.Context, req *MsgSetUserGroupPermissions) (*MsgSetUserGroupPermissionsResponse, error)
func (*UnimplementedMsgServer) SetUserPermissions ¶
func (*UnimplementedMsgServer) SetUserPermissions(ctx context.Context, req *MsgSetUserPermissions) (*MsgSetUserPermissionsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Section ¶
func (*UnimplementedQueryServer) Section(ctx context.Context, req *QuerySectionRequest) (*QuerySectionResponse, error)
func (*UnimplementedQueryServer) Sections ¶
func (*UnimplementedQueryServer) Sections(ctx context.Context, req *QuerySectionsRequest) (*QuerySectionsResponse, error)
func (*UnimplementedQueryServer) Subspace ¶
func (*UnimplementedQueryServer) Subspace(ctx context.Context, req *QuerySubspaceRequest) (*QuerySubspaceResponse, error)
func (*UnimplementedQueryServer) Subspaces ¶
func (*UnimplementedQueryServer) Subspaces(ctx context.Context, req *QuerySubspacesRequest) (*QuerySubspacesResponse, error)
func (*UnimplementedQueryServer) UserGroup ¶
func (*UnimplementedQueryServer) UserGroup(ctx context.Context, req *QueryUserGroupRequest) (*QueryUserGroupResponse, error)
func (*UnimplementedQueryServer) UserGroupMembers ¶
func (*UnimplementedQueryServer) UserGroupMembers(ctx context.Context, req *QueryUserGroupMembersRequest) (*QueryUserGroupMembersResponse, error)
func (*UnimplementedQueryServer) UserGroups ¶
func (*UnimplementedQueryServer) UserGroups(ctx context.Context, req *QueryUserGroupsRequest) (*QueryUserGroupsResponse, error)
func (*UnimplementedQueryServer) UserPermissions ¶
func (*UnimplementedQueryServer) UserPermissions(ctx context.Context, req *QueryUserPermissionsRequest) (*QueryUserPermissionsResponse, error)
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"` // (optional) Id of the section inside which this group is valid SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty" yaml:"section_id"` // Unique id that identifies the group ID uint32 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` // Human-readable name of the user group Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // Optional description of this group Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Permissions that will be granted to all the users part of this group Permissions Permissions `protobuf:"bytes,6,rep,name=permissions,proto3,castrepeated=Permissions" json:"permissions,omitempty" yaml:"permissions"` }
UserGroup represents a group of users
func DefaultUserGroup ¶
DefaultUserGroup returns the default user group for the given subspace
func NewUserGroup ¶
func NewUserGroup(subspaceID uint64, sectionID uint32, id uint32, name, description string, permissions Permissions) UserGroup
NewUserGroup returns a new UserGroup instance
func (*UserGroup) Descriptor ¶
func (*UserGroup) GetDescription ¶
func (*UserGroup) GetPermissions ¶
func (m *UserGroup) GetPermissions() Permissions
func (*UserGroup) GetSectionID ¶
func (*UserGroup) GetSubspaceID ¶
func (*UserGroup) MarshalToSizedBuffer ¶
func (*UserGroup) ProtoMessage ¶
func (*UserGroup) ProtoMessage()
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) XXX_DiscardUnknown ¶
func (m *UserGroup) XXX_DiscardUnknown()
func (*UserGroup) XXX_Marshal ¶
func (*UserGroup) XXX_Unmarshal ¶
type UserGroupMemberEntry ¶
type UserGroupMemberEntry 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"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` }
UserGroupMemberEntry contains the details of a user group member
func NewUserGroupMemberEntry ¶
func NewUserGroupMemberEntry(subspaceID uint64, groupID uint32, user string) UserGroupMemberEntry
NewUserGroupMemberEntry returns a new UserGroupMemberEntry instance
func (*UserGroupMemberEntry) Descriptor ¶
func (*UserGroupMemberEntry) Descriptor() ([]byte, []int)
func (*UserGroupMemberEntry) Equal ¶
func (this *UserGroupMemberEntry) Equal(that interface{}) bool
func (*UserGroupMemberEntry) GetGroupID ¶
func (m *UserGroupMemberEntry) GetGroupID() uint32
func (*UserGroupMemberEntry) GetSubspaceID ¶
func (m *UserGroupMemberEntry) GetSubspaceID() uint64
func (*UserGroupMemberEntry) GetUser ¶
func (m *UserGroupMemberEntry) GetUser() string
func (*UserGroupMemberEntry) Marshal ¶
func (m *UserGroupMemberEntry) Marshal() (dAtA []byte, err error)
func (*UserGroupMemberEntry) MarshalTo ¶
func (m *UserGroupMemberEntry) MarshalTo(dAtA []byte) (int, error)
func (*UserGroupMemberEntry) MarshalToSizedBuffer ¶
func (m *UserGroupMemberEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserGroupMemberEntry) ProtoMessage ¶
func (*UserGroupMemberEntry) ProtoMessage()
func (*UserGroupMemberEntry) Reset ¶
func (m *UserGroupMemberEntry) Reset()
func (*UserGroupMemberEntry) Size ¶
func (m *UserGroupMemberEntry) Size() (n int)
func (*UserGroupMemberEntry) String ¶
func (m *UserGroupMemberEntry) String() string
func (*UserGroupMemberEntry) Unmarshal ¶
func (m *UserGroupMemberEntry) Unmarshal(dAtA []byte) error
func (UserGroupMemberEntry) Validate ¶
func (entry UserGroupMemberEntry) Validate() error
Validate implements fmt.Validator
func (*UserGroupMemberEntry) XXX_DiscardUnknown ¶
func (m *UserGroupMemberEntry) XXX_DiscardUnknown()
func (*UserGroupMemberEntry) XXX_Marshal ¶
func (m *UserGroupMemberEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserGroupMemberEntry) XXX_Merge ¶
func (m *UserGroupMemberEntry) XXX_Merge(src proto.Message)
func (*UserGroupMemberEntry) XXX_Size ¶
func (m *UserGroupMemberEntry) XXX_Size() int
func (*UserGroupMemberEntry) XXX_Unmarshal ¶
func (m *UserGroupMemberEntry) XXX_Unmarshal(b []byte) error
type UserPermission ¶
type UserPermission struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` SectionID uint32 `protobuf:"varint,2,opt,name=section_id,json=sectionId,proto3" json:"section_id,omitempty"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Permissions Permissions `protobuf:"bytes,4,rep,name=permissions,proto3,castrepeated=Permissions" json:"permissions,omitempty"` }
UserPermission represents a single Access Control List entry
func NewUserPermission ¶
func NewUserPermission(subspaceID uint64, sectionID uint32, user string, permissions Permissions) UserPermission
NewUserPermission returns a new UserPermission instance
func (*UserPermission) Descriptor ¶
func (*UserPermission) Descriptor() ([]byte, []int)
func (*UserPermission) Equal ¶
func (this *UserPermission) Equal(that interface{}) bool
func (*UserPermission) GetPermissions ¶
func (m *UserPermission) GetPermissions() Permissions
func (*UserPermission) GetSectionID ¶
func (m *UserPermission) GetSectionID() uint32
func (*UserPermission) GetSubspaceID ¶
func (m *UserPermission) GetSubspaceID() uint64
func (*UserPermission) GetUser ¶
func (m *UserPermission) GetUser() string
func (*UserPermission) Marshal ¶
func (m *UserPermission) Marshal() (dAtA []byte, err error)
func (*UserPermission) MarshalToSizedBuffer ¶
func (m *UserPermission) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserPermission) ProtoMessage ¶
func (*UserPermission) ProtoMessage()
func (*UserPermission) Reset ¶
func (m *UserPermission) Reset()
func (*UserPermission) Size ¶
func (m *UserPermission) Size() (n int)
func (*UserPermission) String ¶
func (m *UserPermission) String() string
func (*UserPermission) Unmarshal ¶
func (m *UserPermission) Unmarshal(dAtA []byte) error
func (UserPermission) Validate ¶
func (p UserPermission) Validate() error
Validate implements fmt.Validator
func (*UserPermission) XXX_DiscardUnknown ¶
func (m *UserPermission) XXX_DiscardUnknown()
func (*UserPermission) XXX_Marshal ¶
func (m *UserPermission) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserPermission) XXX_Merge ¶
func (m *UserPermission) XXX_Merge(src proto.Message)
func (*UserPermission) XXX_Size ¶
func (m *UserPermission) XXX_Size() int
func (*UserPermission) XXX_Unmarshal ¶
func (m *UserPermission) XXX_Unmarshal(b []byte) error