Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckPermission(permissions Permission, permission Permission) bool
- func GetAddressBytes(user sdk.AccAddress) []byte
- func GetAddressFromBytes(bz []byte) sdk.AccAddress
- func GetGroupIDBytes(groupID uint32) (groupIDBz []byte)
- func GetGroupIDFromBytes(bz []byte) (subspaceID uint32)
- func GetSubspaceIDBytes(subspaceID uint64) (subspaceIDBz []byte)
- func GetSubspaceIDFromBytes(bz []byte) (subspaceID uint64)
- func GroupIDStoreKey(subspaceID uint64) []byte
- func GroupMemberStoreKey(subspaceID uint64, groupID uint32, user sdk.AccAddress) []byte
- func GroupMembersStoreKey(subspaceID uint64, groupID uint32) []byte
- func GroupStoreKey(subspaceID uint64, groupID uint32) []byte
- func GroupsStoreKey(subspaceID uint64) []byte
- func MarshalPermission(permission Permission) (permissionBytes []byte)
- func ParseGroupID(value string) (uint32, error)
- func ParseSubspaceID(value string) (uint64, error)
- func PermissionsStoreKey(subspaceID uint64) []byte
- 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 SerializePermission(permission Permission) string
- func SubspaceKey(subspaceID uint64) []byte
- func UserPermissionStoreKey(subspaceID uint64, user sdk.AccAddress) []byte
- func ValidateGenesis(data *GenesisState) error
- type ACLEntry
- func (*ACLEntry) Descriptor() ([]byte, []int)
- func (this *ACLEntry) Equal(that interface{}) bool
- func (m *ACLEntry) GetPermissions() uint32
- func (m *ACLEntry) GetSubspaceID() uint64
- func (m *ACLEntry) GetUser() string
- func (m *ACLEntry) Marshal() (dAtA []byte, err error)
- func (m *ACLEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *ACLEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ACLEntry) ProtoMessage()
- func (m *ACLEntry) Reset()
- func (m *ACLEntry) Size() (n int)
- func (m *ACLEntry) String() string
- func (m *ACLEntry) Unmarshal(dAtA []byte) error
- func (entry ACLEntry) Validate() error
- func (m *ACLEntry) XXX_DiscardUnknown()
- func (m *ACLEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ACLEntry) XXX_Merge(src proto.Message)
- func (m *ACLEntry) XXX_Size() int
- func (m *ACLEntry) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetACL() []ACLEntry
- func (m *GenesisState) GetInitialSubspaceID() uint64
- func (m *GenesisState) GetSubspaces() []GenesisSubspace
- func (m *GenesisState) GetUserGroups() []UserGroup
- func (m *GenesisState) GetUserGroupsMembers() []UserGroupMembersEntry
- 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 GenesisSubspace
- func (*GenesisSubspace) Descriptor() ([]byte, []int)
- func (this *GenesisSubspace) Equal(that interface{}) bool
- func (m *GenesisSubspace) GetInitialGroupID() uint32
- func (m *GenesisSubspace) GetSubspace() Subspace
- func (m *GenesisSubspace) Marshal() (dAtA []byte, err error)
- func (m *GenesisSubspace) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisSubspace) ProtoMessage()
- func (m *GenesisSubspace) Reset()
- func (m *GenesisSubspace) Size() (n int)
- func (m *GenesisSubspace) String() string
- func (m *GenesisSubspace) Unmarshal(dAtA []byte) error
- func (subspace GenesisSubspace) Validate() error
- func (m *GenesisSubspace) XXX_DiscardUnknown()
- func (m *GenesisSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisSubspace) XXX_Merge(src proto.Message)
- func (m *GenesisSubspace) XXX_Size() int
- func (m *GenesisSubspace) 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 MsgCreateSubspace
- func (*MsgCreateSubspace) Descriptor() ([]byte, []int)
- func (msg MsgCreateSubspace) GetSignBytes() []byte
- func (msg MsgCreateSubspace) GetSigners() []sdk.AccAddress
- 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() uint32
- func (m *MsgCreateUserGroup) GetDescription() string
- func (m *MsgCreateUserGroup) GetName() string
- 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 MsgDeleteSubspace
- func (*MsgDeleteSubspace) Descriptor() ([]byte, []int)
- func (msg MsgDeleteSubspace) GetSignBytes() []byte
- func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress
- 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 MsgEditSubspace
- func (*MsgEditSubspace) Descriptor() ([]byte, []int)
- func (msg MsgEditSubspace) GetSignBytes() []byte
- func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress
- 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 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() uint32
- 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() 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 sdk.AccAddress)
- func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress)
- func (h MultiSubspacesHooks) AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)
- func (h MultiSubspacesHooks) AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)
- func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress)
- func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress, ...)
- 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 QueryClient
- 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) 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() uint32
- 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 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 SubspaceUpdate
- type SubspacesHooks
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddUserToUserGroup(ctx context.Context, req *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error)
- func (*UnimplementedMsgServer) CreateSubspace(ctx context.Context, req *MsgCreateSubspace) (*MsgCreateSubspaceResponse, error)
- func (*UnimplementedMsgServer) CreateUserGroup(ctx context.Context, req *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error)
- func (*UnimplementedMsgServer) DeleteSubspace(ctx context.Context, req *MsgDeleteSubspace) (*MsgDeleteSubspaceResponse, error)
- func (*UnimplementedMsgServer) DeleteUserGroup(ctx context.Context, req *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error)
- func (*UnimplementedMsgServer) EditSubspace(ctx context.Context, req *MsgEditSubspace) (*MsgEditSubspaceResponse, error)
- func (*UnimplementedMsgServer) EditUserGroup(ctx context.Context, req *MsgEditUserGroup) (*MsgEditUserGroupResponse, 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) 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() 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 UserGroupMembersEntry
- func (*UserGroupMembersEntry) Descriptor() ([]byte, []int)
- func (this *UserGroupMembersEntry) Equal(that interface{}) bool
- func (m *UserGroupMembersEntry) GetGroupID() uint32
- func (m *UserGroupMembersEntry) GetMembers() []string
- func (m *UserGroupMembersEntry) GetSubspaceID() uint64
- func (m *UserGroupMembersEntry) Marshal() (dAtA []byte, err error)
- func (m *UserGroupMembersEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *UserGroupMembersEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserGroupMembersEntry) ProtoMessage()
- func (m *UserGroupMembersEntry) Reset()
- func (m *UserGroupMembersEntry) Size() (n int)
- func (m *UserGroupMembersEntry) String() string
- func (m *UserGroupMembersEntry) Unmarshal(dAtA []byte) error
- func (entry UserGroupMembersEntry) Validate() error
- func (m *UserGroupMembersEntry) XXX_DiscardUnknown()
- func (m *UserGroupMembersEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserGroupMembersEntry) XXX_Merge(src proto.Message)
- func (m *UserGroupMembersEntry) XXX_Size() int
- func (m *UserGroupMembersEntry) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeCreateSubspace = "create_subspace" EventTypeEditSubspace = "edit_subspace" EventTypeDeleteSubspace = "delete_subspace" EventTypeCreateUserGroup = "create_user_group" EventTypeEditUserGroup = "edit_user_group" EventTypeSetUserGroupPermissions = "set_user_group_permissions" EventTypeDeleteUserGroup = "delete_user_group" EventTypeAddUserToGroup = "add_group_member" EventTypeRemoveUserFromGroup = "remove_group_member" EventTypeSetUserPermissions = "set_user_permissions" AttributeValueCategory = ModuleName AttributeKeySubspaceID = "subspace_id" AttributeKeySubspaceName = "subspace_name" AttributeKeySubspaceCreator = "subspace_creator" AttributeKeyCreationTime = "creation_date" AttributeKeyUserGroupID = "user_group_id" AttributeKeyUser = "user" )
Subspaces module event types
const ( ModuleName = "subspaces" RouterKey = ModuleName StoreKey = ModuleName ActionCreateSubspace = "create_subspace" ActionEditSubspace = "edit_subspace" ActionDeleteSubspace = "delete_subspace" ActionCreateUserGroup = "create_user_group" ActionEditUserGroup = "edit_user_group" ActionSetUserGroupPermissions = "set_user_group_permissions" ActionDeleteUserGroup = "delete_user_group" ActionAddUserToUserGroup = "add_user_to_user_group" ActionRemoveUserFromUserGroup = "remove_user_from_user_group" ActionSetUserPermissions = "set_user_permissions" QuerierRoute = ModuleName DoNotModify = "[do-not-modify]" )
const ( // PermissionNothing represents the permission to do nothing PermissionNothing = Permission(0b000000) // PermissionWrite identifies users that can create content inside the subspace PermissionWrite = Permission(0b000001) // PermissionModerateContent allows users to moderate contents of other users (e.g. deleting it) PermissionModerateContent = Permission(0b000010) // PermissionChangeInfo allows to change the information of the subspace PermissionChangeInfo = Permission(0b000100) // PermissionManageGroups allows users to manage user groups and members PermissionManageGroups = Permission(0b001000) // PermissionSetPermissions allows users to set other users' permissions (except PermissionSetPermissions). // This includes managing user groups and the associated permissions PermissionSetPermissions = Permission(0b010000) // PermissionDeleteSubspace allows users to delete the subspace. PermissionDeleteSubspace = Permission(0b100000) // PermissionEverything allows to do everything. // This should usually be reserved only to the owner (which has it by default) PermissionEverything = Permission(0b111111) )
Variables ¶
var ( // ErrPermissionDenied is returned if a user cannot perform a specific action inside a subspace ErrPermissionDenied = sdkerrors.Register(ModuleName, 1, "permission denied for user") ErrInvalidGenesis = sdkerrors.Register(ModuleName, 2, "invalid genesis state") )
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} GroupMembersStorePrefix = []byte{0x04} UserPermissionsStorePrefix = []byte{0x05} )
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 ( 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 CheckPermission ¶
func CheckPermission(permissions Permission, permission Permission) bool
CheckPermission checks whether the given permissions contain the specified permission
func GetAddressBytes ¶
func GetAddressBytes(user sdk.AccAddress) []byte
func GetAddressFromBytes ¶
func GetAddressFromBytes(bz []byte) sdk.AccAddress
func GetGroupIDBytes ¶
GetGroupIDBytes returns the byte representation of the groupID
func GetGroupIDFromBytes ¶
GetGroupIDFromBytes returns groupID 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 GroupIDStoreKey ¶
GroupIDStoreKey returns the store key that is used to store the group id to be used next for the given subspace
func GroupMemberStoreKey ¶
func GroupMemberStoreKey(subspaceID uint64, groupID uint32, user sdk.AccAddress) []byte
GroupMemberStoreKey returns the key used to store the membership of the given user to the specified group inside the provided subspace
func GroupMembersStoreKey ¶
GroupMembersStoreKey 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 a group for a subspace
func GroupsStoreKey ¶
GroupsStoreKey returns the key used to store all the groups of a given subspace
func MarshalPermission ¶
func MarshalPermission(permission Permission) (permissionBytes []byte)
MarshalPermission marshals the given permission to a byte array
func ParseGroupID ¶
ParseGroupID parses the given value as a group 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 PermissionsStoreKey ¶
PermissionsStoreKey returns the key used to store the entire ACL for a given subspace
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func 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 SerializePermission ¶
func SerializePermission(permission Permission) string
SerializePermission serializes the given permission to a string value
func SubspaceKey ¶
SubspaceKey returns the key for a specific subspace
func UserPermissionStoreKey ¶
func UserPermissionStoreKey(subspaceID uint64, user sdk.AccAddress) []byte
UserPermissionStoreKey returns the key used to store the permission for the given user inside the given subspace
func ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
ValidateGenesis validates the given genesis state and returns an error if something is invalid
Types ¶
type ACLEntry ¶
type ACLEntry struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"` }
ACLEntry represents a single Access Control List entry
func NewACLEntry ¶
func NewACLEntry(subspaceID uint64, user string, permissions Permission) ACLEntry
NewACLEntry returns a new ACLEntry instance
func (*ACLEntry) Descriptor ¶
func (*ACLEntry) GetPermissions ¶
func (*ACLEntry) GetSubspaceID ¶
func (*ACLEntry) MarshalToSizedBuffer ¶
func (*ACLEntry) ProtoMessage ¶
func (*ACLEntry) ProtoMessage()
func (*ACLEntry) XXX_DiscardUnknown ¶
func (m *ACLEntry) XXX_DiscardUnknown()
func (*ACLEntry) XXX_Marshal ¶
func (*ACLEntry) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { InitialSubspaceID uint64 `protobuf:"varint,1,opt,name=initial_subspace_id,json=initialSubspaceId,proto3" json:"initial_subspace_id,omitempty"` Subspaces []GenesisSubspace `protobuf:"bytes,2,rep,name=subspaces,proto3" json:"subspaces"` ACL []ACLEntry `protobuf:"bytes,3,rep,name=acl,proto3" json:"acl"` UserGroups []UserGroup `protobuf:"bytes,4,rep,name=user_groups,json=userGroups,proto3" json:"user_groups"` UserGroupsMembers []UserGroupMembersEntry `protobuf:"bytes,5,rep,name=user_groups_members,json=userGroupsMembers,proto3" json:"user_groups_members"` }
GenesisState contains the data of the genesis state for the subspaces module
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default GenesisState
func NewGenesisState ¶
func NewGenesisState( initialSubspaceID uint64, subspaces []GenesisSubspace, acl []ACLEntry, userGroups []UserGroup, userGroupMembers []UserGroupMembersEntry, ) *GenesisState
NewGenesisState creates a new genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Equal ¶
func (this *GenesisState) Equal(that interface{}) bool
func (*GenesisState) GetACL ¶
func (m *GenesisState) GetACL() []ACLEntry
func (*GenesisState) GetInitialSubspaceID ¶
func (m *GenesisState) GetInitialSubspaceID() uint64
func (*GenesisState) GetSubspaces ¶
func (m *GenesisState) GetSubspaces() []GenesisSubspace
func (*GenesisState) GetUserGroups ¶
func (m *GenesisState) GetUserGroups() []UserGroup
func (*GenesisState) GetUserGroupsMembers ¶
func (m *GenesisState) GetUserGroupsMembers() []UserGroupMembersEntry
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type GenesisSubspace ¶
type GenesisSubspace struct { Subspace Subspace `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace"` InitialGroupID uint32 `protobuf:"varint,2,opt,name=initial_group_id,json=initialGroupId,proto3" json:"initial_group_id,omitempty"` }
GenesisSubspace contains the genesis data for a single subspace
func NewGenesisSubspace ¶
func NewGenesisSubspace(subspace Subspace, initialGroupID uint32) GenesisSubspace
NewGenesisSubspace returns a new GenesisSubspace instance
func (*GenesisSubspace) Descriptor ¶
func (*GenesisSubspace) Descriptor() ([]byte, []int)
func (*GenesisSubspace) Equal ¶
func (this *GenesisSubspace) Equal(that interface{}) bool
func (*GenesisSubspace) GetInitialGroupID ¶
func (m *GenesisSubspace) GetInitialGroupID() uint32
func (*GenesisSubspace) GetSubspace ¶
func (m *GenesisSubspace) GetSubspace() Subspace
func (*GenesisSubspace) Marshal ¶
func (m *GenesisSubspace) Marshal() (dAtA []byte, err error)
func (*GenesisSubspace) MarshalToSizedBuffer ¶
func (m *GenesisSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisSubspace) ProtoMessage ¶
func (*GenesisSubspace) ProtoMessage()
func (*GenesisSubspace) Reset ¶
func (m *GenesisSubspace) Reset()
func (*GenesisSubspace) Size ¶
func (m *GenesisSubspace) Size() (n int)
func (*GenesisSubspace) String ¶
func (m *GenesisSubspace) String() string
func (*GenesisSubspace) Unmarshal ¶
func (m *GenesisSubspace) Unmarshal(dAtA []byte) error
func (GenesisSubspace) Validate ¶
func (subspace GenesisSubspace) Validate() error
Validate returns an error if something is wrong within the subspace data
func (*GenesisSubspace) XXX_DiscardUnknown ¶
func (m *GenesisSubspace) XXX_DiscardUnknown()
func (*GenesisSubspace) XXX_Marshal ¶
func (m *GenesisSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisSubspace) XXX_Merge ¶
func (m *GenesisSubspace) XXX_Merge(src proto.Message)
func (*GenesisSubspace) XXX_Size ¶
func (m *GenesisSubspace) XXX_Size() int
func (*GenesisSubspace) XXX_Unmarshal ¶
func (m *GenesisSubspace) XXX_Unmarshal(b []byte) error
type GroupUpdate ¶
GroupUpdate contains all the data that can be updated about a group. When performing an update, if a field should not be edited then it must be set to types.DoNotModify
func NewGroupUpdate ¶
func NewGroupUpdate(name, description string) *GroupUpdate
NewGroupUpdate builds a new SubspaceUpdate instance containing the given data
type MsgAddUserToUserGroup ¶
type MsgAddUserToUserGroup struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgAddUserToUserGroup represents the message used to add a user to a user group
func NewMsgAddUserToUserGroup ¶
func NewMsgAddUserToUserGroup(subspaceID uint64, groupID uint32, user string, signer string) *MsgAddUserToUserGroup
NewMsgAddUserToUserGroup creates a new MsgAddUserToUserGroup instance
func (*MsgAddUserToUserGroup) Descriptor ¶
func (*MsgAddUserToUserGroup) Descriptor() ([]byte, []int)
func (*MsgAddUserToUserGroup) GetGroupID ¶
func (m *MsgAddUserToUserGroup) GetGroupID() uint32
func (MsgAddUserToUserGroup) GetSignBytes ¶
func (msg MsgAddUserToUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgAddUserToUserGroup) GetSigner ¶
func (m *MsgAddUserToUserGroup) GetSigner() string
func (MsgAddUserToUserGroup) GetSigners ¶
func (msg MsgAddUserToUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgAddUserToUserGroup) GetSubspaceID ¶
func (m *MsgAddUserToUserGroup) GetSubspaceID() uint64
func (*MsgAddUserToUserGroup) GetUser ¶
func (m *MsgAddUserToUserGroup) GetUser() string
func (*MsgAddUserToUserGroup) Marshal ¶
func (m *MsgAddUserToUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgAddUserToUserGroup) MarshalTo ¶
func (m *MsgAddUserToUserGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddUserToUserGroup) MarshalToSizedBuffer ¶
func (m *MsgAddUserToUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddUserToUserGroup) ProtoMessage ¶
func (*MsgAddUserToUserGroup) ProtoMessage()
func (*MsgAddUserToUserGroup) Reset ¶
func (m *MsgAddUserToUserGroup) Reset()
func (MsgAddUserToUserGroup) Route ¶
func (msg MsgAddUserToUserGroup) Route() string
Route implements sdk.Msg
func (*MsgAddUserToUserGroup) Size ¶
func (m *MsgAddUserToUserGroup) Size() (n int)
func (*MsgAddUserToUserGroup) String ¶
func (m *MsgAddUserToUserGroup) String() string
func (MsgAddUserToUserGroup) Type ¶
func (msg MsgAddUserToUserGroup) Type() string
Type implements sdk.Msg
func (*MsgAddUserToUserGroup) Unmarshal ¶
func (m *MsgAddUserToUserGroup) Unmarshal(dAtA []byte) error
func (MsgAddUserToUserGroup) ValidateBasic ¶
func (msg MsgAddUserToUserGroup) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgAddUserToUserGroup) XXX_DiscardUnknown ¶
func (m *MsgAddUserToUserGroup) XXX_DiscardUnknown()
func (*MsgAddUserToUserGroup) XXX_Marshal ¶
func (m *MsgAddUserToUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddUserToUserGroup) XXX_Merge ¶
func (m *MsgAddUserToUserGroup) XXX_Merge(src proto.Message)
func (*MsgAddUserToUserGroup) XXX_Size ¶
func (m *MsgAddUserToUserGroup) XXX_Size() int
func (*MsgAddUserToUserGroup) XXX_Unmarshal ¶
func (m *MsgAddUserToUserGroup) XXX_Unmarshal(b []byte) error
type MsgAddUserToUserGroupResponse ¶
type MsgAddUserToUserGroupResponse struct { }
MsgAddUserToUserGroupResponse defines the Msg/AddUserToUserGroupResponse response type
func (*MsgAddUserToUserGroupResponse) Descriptor ¶
func (*MsgAddUserToUserGroupResponse) Descriptor() ([]byte, []int)
func (*MsgAddUserToUserGroupResponse) Marshal ¶
func (m *MsgAddUserToUserGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddUserToUserGroupResponse) MarshalTo ¶
func (m *MsgAddUserToUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddUserToUserGroupResponse) MarshalToSizedBuffer ¶
func (m *MsgAddUserToUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddUserToUserGroupResponse) ProtoMessage ¶
func (*MsgAddUserToUserGroupResponse) ProtoMessage()
func (*MsgAddUserToUserGroupResponse) Reset ¶
func (m *MsgAddUserToUserGroupResponse) Reset()
func (*MsgAddUserToUserGroupResponse) Size ¶
func (m *MsgAddUserToUserGroupResponse) Size() (n int)
func (*MsgAddUserToUserGroupResponse) String ¶
func (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) // CreateUserGroup allows to create a user group CreateUserGroup(ctx context.Context, in *MsgCreateUserGroup, opts ...grpc.CallOption) (*MsgCreateUserGroupResponse, error) // EditUserGroup allows to edit a user group EditUserGroup(ctx context.Context, in *MsgEditUserGroup, opts ...grpc.CallOption) (*MsgEditUserGroupResponse, error) // SetUserGroupPermissions allows to set the permissions for a specific group SetUserGroupPermissions(ctx context.Context, in *MsgSetUserGroupPermissions, opts ...grpc.CallOption) (*MsgSetUserGroupPermissionsResponse, error) // DeleteUserGroup allows to delete an existing user group DeleteUserGroup(ctx context.Context, in *MsgDeleteUserGroup, opts ...grpc.CallOption) (*MsgDeleteUserGroupResponse, error) // AddUserToUserGroup allows to add a specific user to a specific user group AddUserToUserGroup(ctx context.Context, in *MsgAddUserToUserGroup, opts ...grpc.CallOption) (*MsgAddUserToUserGroupResponse, error) // RemoveUserFromUserGroup allows to remove a specific user from a specific // user group RemoveUserFromUserGroup(ctx context.Context, in *MsgRemoveUserFromUserGroup, opts ...grpc.CallOption) (*MsgRemoveUserFromUserGroupResponse, error) // SetUserPermissions allows to set the permissions for a specific user SetUserPermissions(ctx context.Context, in *MsgSetUserPermissions, opts ...grpc.CallOption) (*MsgSetUserPermissionsResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateSubspace ¶
type MsgCreateSubspace struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Treasury string `protobuf:"bytes,3,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` }
MsgCreateSubspace represents the message used to create a subspace
func NewMsgCreateSubspace ¶
func NewMsgCreateSubspace(name, description, treasury, owner, creator string) *MsgCreateSubspace
NewMsgCreateSubspace creates a new MsgCreateSubspace instance
func (*MsgCreateSubspace) Descriptor ¶
func (*MsgCreateSubspace) Descriptor() ([]byte, []int)
func (MsgCreateSubspace) GetSignBytes ¶
func (msg MsgCreateSubspace) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgCreateSubspace) GetSigners ¶
func (msg MsgCreateSubspace) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateSubspace) Marshal ¶
func (m *MsgCreateSubspace) Marshal() (dAtA []byte, err error)
func (*MsgCreateSubspace) MarshalTo ¶
func (m *MsgCreateSubspace) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSubspace) MarshalToSizedBuffer ¶
func (m *MsgCreateSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSubspace) ProtoMessage ¶
func (*MsgCreateSubspace) ProtoMessage()
func (*MsgCreateSubspace) Reset ¶
func (m *MsgCreateSubspace) Reset()
func (MsgCreateSubspace) Route ¶
func (msg MsgCreateSubspace) Route() string
Route implements sdk.Msg
func (*MsgCreateSubspace) Size ¶
func (m *MsgCreateSubspace) Size() (n int)
func (*MsgCreateSubspace) String ¶
func (m *MsgCreateSubspace) String() string
func (*MsgCreateSubspace) Unmarshal ¶
func (m *MsgCreateSubspace) Unmarshal(dAtA []byte) error
func (MsgCreateSubspace) ValidateBasic ¶
func (msg MsgCreateSubspace) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCreateSubspace) XXX_DiscardUnknown ¶
func (m *MsgCreateSubspace) XXX_DiscardUnknown()
func (*MsgCreateSubspace) XXX_Marshal ¶
func (m *MsgCreateSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSubspace) XXX_Merge ¶
func (m *MsgCreateSubspace) XXX_Merge(src proto.Message)
func (*MsgCreateSubspace) XXX_Size ¶
func (m *MsgCreateSubspace) XXX_Size() int
func (*MsgCreateSubspace) XXX_Unmarshal ¶
func (m *MsgCreateSubspace) XXX_Unmarshal(b []byte) error
type MsgCreateSubspaceResponse ¶
type MsgCreateSubspaceResponse struct {
SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}
MsgCreateSubspaceResponse defines the Msg/CreateSubspace response type
func (*MsgCreateSubspaceResponse) Descriptor ¶
func (*MsgCreateSubspaceResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSubspaceResponse) GetSubspaceID ¶
func (m *MsgCreateSubspaceResponse) GetSubspaceID() uint64
func (*MsgCreateSubspaceResponse) Marshal ¶
func (m *MsgCreateSubspaceResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSubspaceResponse) MarshalTo ¶
func (m *MsgCreateSubspaceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSubspaceResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateSubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSubspaceResponse) ProtoMessage ¶
func (*MsgCreateSubspaceResponse) ProtoMessage()
func (*MsgCreateSubspaceResponse) Reset ¶
func (m *MsgCreateSubspaceResponse) Reset()
func (*MsgCreateSubspaceResponse) Size ¶
func (m *MsgCreateSubspaceResponse) Size() (n int)
func (*MsgCreateSubspaceResponse) String ¶
func (m *MsgCreateSubspaceResponse) String() string
func (*MsgCreateSubspaceResponse) Unmarshal ¶
func (m *MsgCreateSubspaceResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSubspaceResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateSubspaceResponse) XXX_DiscardUnknown()
func (*MsgCreateSubspaceResponse) XXX_Marshal ¶
func (m *MsgCreateSubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSubspaceResponse) XXX_Merge ¶
func (m *MsgCreateSubspaceResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSubspaceResponse) XXX_Size ¶
func (m *MsgCreateSubspaceResponse) XXX_Size() int
func (*MsgCreateSubspaceResponse) XXX_Unmarshal ¶
func (m *MsgCreateSubspaceResponse) XXX_Unmarshal(b []byte) error
type MsgCreateUserGroup ¶
type MsgCreateUserGroup struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // Name of the group Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // Optional description of the group Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Default permissions to be applied to the group DefaultPermissions uint32 `` /* 143-byte string literal not displayed */ // Creator of the group Creator string `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` }
MsgCreateUserGroup represents the message used to create a user group
func NewMsgCreateUserGroup ¶
func NewMsgCreateUserGroup(subspaceID uint64, name, description string, permissions uint32, creator string) *MsgCreateUserGroup
NewMsgCreateUserGroup creates a new MsgCreateUserGroup instance
func (*MsgCreateUserGroup) Descriptor ¶
func (*MsgCreateUserGroup) Descriptor() ([]byte, []int)
func (*MsgCreateUserGroup) GetCreator ¶
func (m *MsgCreateUserGroup) GetCreator() string
func (*MsgCreateUserGroup) GetDefaultPermissions ¶
func (m *MsgCreateUserGroup) GetDefaultPermissions() uint32
func (*MsgCreateUserGroup) GetDescription ¶
func (m *MsgCreateUserGroup) GetDescription() string
func (*MsgCreateUserGroup) GetName ¶
func (m *MsgCreateUserGroup) GetName() string
func (MsgCreateUserGroup) GetSignBytes ¶
func (msg MsgCreateUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgCreateUserGroup) GetSigners ¶
func (msg MsgCreateUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateUserGroup) GetSubspaceID ¶
func (m *MsgCreateUserGroup) GetSubspaceID() uint64
func (*MsgCreateUserGroup) Marshal ¶
func (m *MsgCreateUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgCreateUserGroup) MarshalTo ¶
func (m *MsgCreateUserGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateUserGroup) MarshalToSizedBuffer ¶
func (m *MsgCreateUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateUserGroup) ProtoMessage ¶
func (*MsgCreateUserGroup) ProtoMessage()
func (*MsgCreateUserGroup) Reset ¶
func (m *MsgCreateUserGroup) Reset()
func (MsgCreateUserGroup) Route ¶
func (msg MsgCreateUserGroup) Route() string
Route implements sdk.Msg
func (*MsgCreateUserGroup) Size ¶
func (m *MsgCreateUserGroup) Size() (n int)
func (*MsgCreateUserGroup) String ¶
func (m *MsgCreateUserGroup) String() string
func (MsgCreateUserGroup) Type ¶
func (msg MsgCreateUserGroup) Type() string
Type implements sdk.Msg
func (*MsgCreateUserGroup) Unmarshal ¶
func (m *MsgCreateUserGroup) Unmarshal(dAtA []byte) error
func (MsgCreateUserGroup) ValidateBasic ¶
func (msg MsgCreateUserGroup) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgCreateUserGroup) XXX_DiscardUnknown ¶
func (m *MsgCreateUserGroup) XXX_DiscardUnknown()
func (*MsgCreateUserGroup) XXX_Marshal ¶
func (m *MsgCreateUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateUserGroup) XXX_Merge ¶
func (m *MsgCreateUserGroup) XXX_Merge(src proto.Message)
func (*MsgCreateUserGroup) XXX_Size ¶
func (m *MsgCreateUserGroup) XXX_Size() int
func (*MsgCreateUserGroup) XXX_Unmarshal ¶
func (m *MsgCreateUserGroup) XXX_Unmarshal(b []byte) error
type MsgCreateUserGroupResponse ¶
type MsgCreateUserGroupResponse struct {
GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"`
}
MsgCreateUserGroupResponse defines the Msg/CreateUserGroup response type
func (*MsgCreateUserGroupResponse) Descriptor ¶
func (*MsgCreateUserGroupResponse) Descriptor() ([]byte, []int)
func (*MsgCreateUserGroupResponse) GetGroupID ¶
func (m *MsgCreateUserGroupResponse) GetGroupID() uint32
func (*MsgCreateUserGroupResponse) Marshal ¶
func (m *MsgCreateUserGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateUserGroupResponse) MarshalTo ¶
func (m *MsgCreateUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateUserGroupResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateUserGroupResponse) ProtoMessage ¶
func (*MsgCreateUserGroupResponse) ProtoMessage()
func (*MsgCreateUserGroupResponse) Reset ¶
func (m *MsgCreateUserGroupResponse) Reset()
func (*MsgCreateUserGroupResponse) Size ¶
func (m *MsgCreateUserGroupResponse) Size() (n int)
func (*MsgCreateUserGroupResponse) String ¶
func (m *MsgCreateUserGroupResponse) String() string
func (*MsgCreateUserGroupResponse) Unmarshal ¶
func (m *MsgCreateUserGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateUserGroupResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateUserGroupResponse) XXX_DiscardUnknown()
func (*MsgCreateUserGroupResponse) XXX_Marshal ¶
func (m *MsgCreateUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateUserGroupResponse) XXX_Merge ¶
func (m *MsgCreateUserGroupResponse) XXX_Merge(src proto.Message)
func (*MsgCreateUserGroupResponse) XXX_Size ¶
func (m *MsgCreateUserGroupResponse) XXX_Size() int
func (*MsgCreateUserGroupResponse) XXX_Unmarshal ¶
func (m *MsgCreateUserGroupResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteSubspace ¶
type MsgDeleteSubspace struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgDeleteSubspace represents the message used to delete a subspace
func NewMsgDeleteSubspace ¶
func NewMsgDeleteSubspace(subspaceID uint64, signer string) *MsgDeleteSubspace
NewMsgDeleteSubspace returns a new MsgDeleteSubspace instance
func (*MsgDeleteSubspace) Descriptor ¶
func (*MsgDeleteSubspace) Descriptor() ([]byte, []int)
func (MsgDeleteSubspace) GetSignBytes ¶
func (msg MsgDeleteSubspace) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgDeleteSubspace) GetSigners ¶
func (msg MsgDeleteSubspace) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteSubspace) Marshal ¶
func (m *MsgDeleteSubspace) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSubspace) MarshalTo ¶
func (m *MsgDeleteSubspace) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSubspace) MarshalToSizedBuffer ¶
func (m *MsgDeleteSubspace) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSubspace) ProtoMessage ¶
func (*MsgDeleteSubspace) ProtoMessage()
func (*MsgDeleteSubspace) Reset ¶
func (m *MsgDeleteSubspace) Reset()
func (MsgDeleteSubspace) Route ¶
func (msg MsgDeleteSubspace) Route() string
Route implements sdk.Msg
func (*MsgDeleteSubspace) Size ¶
func (m *MsgDeleteSubspace) Size() (n int)
func (*MsgDeleteSubspace) String ¶
func (m *MsgDeleteSubspace) String() string
func (*MsgDeleteSubspace) Unmarshal ¶
func (m *MsgDeleteSubspace) Unmarshal(dAtA []byte) error
func (MsgDeleteSubspace) ValidateBasic ¶
func (msg MsgDeleteSubspace) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDeleteSubspace) XXX_DiscardUnknown ¶
func (m *MsgDeleteSubspace) XXX_DiscardUnknown()
func (*MsgDeleteSubspace) XXX_Marshal ¶
func (m *MsgDeleteSubspace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSubspace) XXX_Merge ¶
func (m *MsgDeleteSubspace) XXX_Merge(src proto.Message)
func (*MsgDeleteSubspace) XXX_Size ¶
func (m *MsgDeleteSubspace) XXX_Size() int
func (*MsgDeleteSubspace) XXX_Unmarshal ¶
func (m *MsgDeleteSubspace) XXX_Unmarshal(b []byte) error
type MsgDeleteSubspaceResponse ¶
type MsgDeleteSubspaceResponse struct { }
MsgDeleteSubspaceResponse defines the Msg/DeleteSubspace response type
func (*MsgDeleteSubspaceResponse) Descriptor ¶
func (*MsgDeleteSubspaceResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteSubspaceResponse) Marshal ¶
func (m *MsgDeleteSubspaceResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteSubspaceResponse) MarshalTo ¶
func (m *MsgDeleteSubspaceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteSubspaceResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteSubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteSubspaceResponse) ProtoMessage ¶
func (*MsgDeleteSubspaceResponse) ProtoMessage()
func (*MsgDeleteSubspaceResponse) Reset ¶
func (m *MsgDeleteSubspaceResponse) Reset()
func (*MsgDeleteSubspaceResponse) Size ¶
func (m *MsgDeleteSubspaceResponse) Size() (n int)
func (*MsgDeleteSubspaceResponse) String ¶
func (m *MsgDeleteSubspaceResponse) String() string
func (*MsgDeleteSubspaceResponse) Unmarshal ¶
func (m *MsgDeleteSubspaceResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteSubspaceResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteSubspaceResponse) XXX_DiscardUnknown()
func (*MsgDeleteSubspaceResponse) XXX_Marshal ¶
func (m *MsgDeleteSubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteSubspaceResponse) XXX_Merge ¶
func (m *MsgDeleteSubspaceResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteSubspaceResponse) XXX_Size ¶
func (m *MsgDeleteSubspaceResponse) XXX_Size() int
func (*MsgDeleteSubspaceResponse) XXX_Unmarshal ¶
func (m *MsgDeleteSubspaceResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteUserGroup ¶
type MsgDeleteUserGroup struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgDeleteUserGroup represents the message used to delete a user group
func NewMsgDeleteUserGroup ¶
func NewMsgDeleteUserGroup(subspaceID uint64, groupID uint32, signer string) *MsgDeleteUserGroup
NewMsgDeleteUserGroup creates a new MsgDeleteUserGroup instance
func (*MsgDeleteUserGroup) Descriptor ¶
func (*MsgDeleteUserGroup) Descriptor() ([]byte, []int)
func (*MsgDeleteUserGroup) GetGroupID ¶
func (m *MsgDeleteUserGroup) GetGroupID() uint32
func (MsgDeleteUserGroup) GetSignBytes ¶
func (msg MsgDeleteUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgDeleteUserGroup) GetSigner ¶
func (m *MsgDeleteUserGroup) GetSigner() string
func (MsgDeleteUserGroup) GetSigners ¶
func (msg MsgDeleteUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgDeleteUserGroup) GetSubspaceID ¶
func (m *MsgDeleteUserGroup) GetSubspaceID() uint64
func (*MsgDeleteUserGroup) Marshal ¶
func (m *MsgDeleteUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgDeleteUserGroup) MarshalTo ¶
func (m *MsgDeleteUserGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteUserGroup) MarshalToSizedBuffer ¶
func (m *MsgDeleteUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteUserGroup) ProtoMessage ¶
func (*MsgDeleteUserGroup) ProtoMessage()
func (*MsgDeleteUserGroup) Reset ¶
func (m *MsgDeleteUserGroup) Reset()
func (MsgDeleteUserGroup) Route ¶
func (msg MsgDeleteUserGroup) Route() string
Route implements sdk.Msg
func (*MsgDeleteUserGroup) Size ¶
func (m *MsgDeleteUserGroup) Size() (n int)
func (*MsgDeleteUserGroup) String ¶
func (m *MsgDeleteUserGroup) String() string
func (MsgDeleteUserGroup) Type ¶
func (msg MsgDeleteUserGroup) Type() string
Type implements sdk.Msg
func (*MsgDeleteUserGroup) Unmarshal ¶
func (m *MsgDeleteUserGroup) Unmarshal(dAtA []byte) error
func (MsgDeleteUserGroup) ValidateBasic ¶
func (msg MsgDeleteUserGroup) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgDeleteUserGroup) XXX_DiscardUnknown ¶
func (m *MsgDeleteUserGroup) XXX_DiscardUnknown()
func (*MsgDeleteUserGroup) XXX_Marshal ¶
func (m *MsgDeleteUserGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteUserGroup) XXX_Merge ¶
func (m *MsgDeleteUserGroup) XXX_Merge(src proto.Message)
func (*MsgDeleteUserGroup) XXX_Size ¶
func (m *MsgDeleteUserGroup) XXX_Size() int
func (*MsgDeleteUserGroup) XXX_Unmarshal ¶
func (m *MsgDeleteUserGroup) XXX_Unmarshal(b []byte) error
type MsgDeleteUserGroupResponse ¶
type MsgDeleteUserGroupResponse struct { }
MsgDeleteUserGroupResponse defines the Msg/DeleteUserGroup response type
func (*MsgDeleteUserGroupResponse) Descriptor ¶
func (*MsgDeleteUserGroupResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteUserGroupResponse) Marshal ¶
func (m *MsgDeleteUserGroupResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteUserGroupResponse) MarshalTo ¶
func (m *MsgDeleteUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteUserGroupResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteUserGroupResponse) ProtoMessage ¶
func (*MsgDeleteUserGroupResponse) ProtoMessage()
func (*MsgDeleteUserGroupResponse) Reset ¶
func (m *MsgDeleteUserGroupResponse) Reset()
func (*MsgDeleteUserGroupResponse) Size ¶
func (m *MsgDeleteUserGroupResponse) Size() (n int)
func (*MsgDeleteUserGroupResponse) String ¶
func (m *MsgDeleteUserGroupResponse) String() string
func (*MsgDeleteUserGroupResponse) Unmarshal ¶
func (m *MsgDeleteUserGroupResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteUserGroupResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteUserGroupResponse) XXX_DiscardUnknown()
func (*MsgDeleteUserGroupResponse) XXX_Marshal ¶
func (m *MsgDeleteUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteUserGroupResponse) XXX_Merge ¶
func (m *MsgDeleteUserGroupResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteUserGroupResponse) XXX_Size ¶
func (m *MsgDeleteUserGroupResponse) XXX_Size() int
func (*MsgDeleteUserGroupResponse) XXX_Unmarshal ¶
func (m *MsgDeleteUserGroupResponse) XXX_Unmarshal(b []byte) error
type MsgEditSubspace ¶
type MsgEditSubspace struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Treasury string `protobuf:"bytes,4,opt,name=treasury,proto3" json:"treasury,omitempty" yaml:"treasury"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"` Signer string `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgEditSubspace represents the message used to edit a subspace fields
func NewMsgEditSubspace ¶
func NewMsgEditSubspace(subspaceID uint64, name, description, treasury, owner, signer string) *MsgEditSubspace
NewMsgEditSubspace creates a new MsgEditSubspace instance
func (*MsgEditSubspace) Descriptor ¶
func (*MsgEditSubspace) Descriptor() ([]byte, []int)
func (MsgEditSubspace) GetSignBytes ¶
func (msg MsgEditSubspace) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgEditSubspace) GetSigners ¶
func (msg MsgEditSubspace) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgEditSubspace) Marshal ¶
func (m *MsgEditSubspace) Marshal() (dAtA []byte, err error)
func (*MsgEditSubspace) 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 { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` Signer string `protobuf:"bytes,5,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgEditUserGroup represents the message used to edit a user group
func NewMsgEditUserGroup ¶
func NewMsgEditUserGroup(subspaceID uint64, groupID uint32, name, description string, signer string) *MsgEditUserGroup
NewMsgEditUserGroup returns a new NewMsgEditUserGroup instance
func (*MsgEditUserGroup) Descriptor ¶
func (*MsgEditUserGroup) Descriptor() ([]byte, []int)
func (*MsgEditUserGroup) GetDescription ¶
func (m *MsgEditUserGroup) GetDescription() string
func (*MsgEditUserGroup) GetGroupID ¶
func (m *MsgEditUserGroup) GetGroupID() uint32
func (*MsgEditUserGroup) GetName ¶
func (m *MsgEditUserGroup) GetName() string
func (MsgEditUserGroup) GetSignBytes ¶
func (msg MsgEditUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgEditUserGroup) GetSigner ¶
func (m *MsgEditUserGroup) GetSigner() string
func (MsgEditUserGroup) GetSigners ¶
func (msg MsgEditUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgEditUserGroup) GetSubspaceID ¶
func (m *MsgEditUserGroup) GetSubspaceID() uint64
func (*MsgEditUserGroup) Marshal ¶
func (m *MsgEditUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgEditUserGroup) 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 MsgRemoveUserFromUserGroup ¶
type MsgRemoveUserFromUserGroup struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` User string `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgRemoveUserFromUserGroup represents the message used to remove a user from a user group
func NewMsgRemoveUserFromUserGroup ¶
func NewMsgRemoveUserFromUserGroup(subspaceID uint64, groupID uint32, user string, signer string) *MsgRemoveUserFromUserGroup
NewMsgRemoveUserFromUserGroup creates a new MsgRemoveUserFromUserGroup instance
func (*MsgRemoveUserFromUserGroup) Descriptor ¶
func (*MsgRemoveUserFromUserGroup) Descriptor() ([]byte, []int)
func (*MsgRemoveUserFromUserGroup) GetGroupID ¶
func (m *MsgRemoveUserFromUserGroup) GetGroupID() uint32
func (MsgRemoveUserFromUserGroup) GetSignBytes ¶
func (msg MsgRemoveUserFromUserGroup) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgRemoveUserFromUserGroup) GetSigner ¶
func (m *MsgRemoveUserFromUserGroup) GetSigner() string
func (MsgRemoveUserFromUserGroup) GetSigners ¶
func (msg MsgRemoveUserFromUserGroup) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgRemoveUserFromUserGroup) GetSubspaceID ¶
func (m *MsgRemoveUserFromUserGroup) GetSubspaceID() uint64
func (*MsgRemoveUserFromUserGroup) GetUser ¶
func (m *MsgRemoveUserFromUserGroup) GetUser() string
func (*MsgRemoveUserFromUserGroup) Marshal ¶
func (m *MsgRemoveUserFromUserGroup) Marshal() (dAtA []byte, err error)
func (*MsgRemoveUserFromUserGroup) MarshalTo ¶
func (m *MsgRemoveUserFromUserGroup) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveUserFromUserGroup) MarshalToSizedBuffer ¶
func (m *MsgRemoveUserFromUserGroup) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveUserFromUserGroup) ProtoMessage ¶
func (*MsgRemoveUserFromUserGroup) ProtoMessage()
func (*MsgRemoveUserFromUserGroup) Reset ¶
func (m *MsgRemoveUserFromUserGroup) Reset()
func (MsgRemoveUserFromUserGroup) Route ¶
func (msg MsgRemoveUserFromUserGroup) Route() string
Route implements sdk.Msg
func (*MsgRemoveUserFromUserGroup) Size ¶
func (m *MsgRemoveUserFromUserGroup) Size() (n int)
func (*MsgRemoveUserFromUserGroup) String ¶
func (m *MsgRemoveUserFromUserGroup) String() string
func (MsgRemoveUserFromUserGroup) Type ¶
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) // CreateUserGroup allows to create a user group CreateUserGroup(context.Context, *MsgCreateUserGroup) (*MsgCreateUserGroupResponse, error) // EditUserGroup allows to edit a user group EditUserGroup(context.Context, *MsgEditUserGroup) (*MsgEditUserGroupResponse, error) // SetUserGroupPermissions allows to set the permissions for a specific group SetUserGroupPermissions(context.Context, *MsgSetUserGroupPermissions) (*MsgSetUserGroupPermissionsResponse, error) // DeleteUserGroup allows to delete an existing user group DeleteUserGroup(context.Context, *MsgDeleteUserGroup) (*MsgDeleteUserGroupResponse, error) // AddUserToUserGroup allows to add a specific user to a specific user group AddUserToUserGroup(context.Context, *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, error) // RemoveUserFromUserGroup allows to remove a specific user from a specific // user group RemoveUserFromUserGroup(context.Context, *MsgRemoveUserFromUserGroup) (*MsgRemoveUserFromUserGroupResponse, error) // SetUserPermissions allows to set the permissions for a specific user SetUserPermissions(context.Context, *MsgSetUserPermissions) (*MsgSetUserPermissionsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetUserGroupPermissions ¶
type MsgSetUserGroupPermissions struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgSetUserGroupPermissions represents the message used to set the permissions of a user group
func NewMsgSetUserGroupPermissions ¶
func NewMsgSetUserGroupPermissions(subspaceID uint64, groupID uint32, permissions Permission, signer string) *MsgSetUserGroupPermissions
NewMsgSetUserGroupPermissions returns a new MsgSetUserGroupPermissions instance
func (*MsgSetUserGroupPermissions) Descriptor ¶
func (*MsgSetUserGroupPermissions) Descriptor() ([]byte, []int)
func (*MsgSetUserGroupPermissions) GetGroupID ¶
func (m *MsgSetUserGroupPermissions) GetGroupID() uint32
func (*MsgSetUserGroupPermissions) GetPermissions ¶
func (m *MsgSetUserGroupPermissions) GetPermissions() uint32
func (MsgSetUserGroupPermissions) GetSignBytes ¶
func (msg MsgSetUserGroupPermissions) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgSetUserGroupPermissions) GetSigner ¶
func (m *MsgSetUserGroupPermissions) GetSigner() string
func (MsgSetUserGroupPermissions) GetSigners ¶
func (msg MsgSetUserGroupPermissions) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSetUserGroupPermissions) GetSubspaceID ¶
func (m *MsgSetUserGroupPermissions) GetSubspaceID() uint64
func (*MsgSetUserGroupPermissions) Marshal ¶
func (m *MsgSetUserGroupPermissions) Marshal() (dAtA []byte, err error)
func (*MsgSetUserGroupPermissions) MarshalTo ¶
func (m *MsgSetUserGroupPermissions) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetUserGroupPermissions) MarshalToSizedBuffer ¶
func (m *MsgSetUserGroupPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetUserGroupPermissions) ProtoMessage ¶
func (*MsgSetUserGroupPermissions) ProtoMessage()
func (*MsgSetUserGroupPermissions) Reset ¶
func (m *MsgSetUserGroupPermissions) Reset()
func (MsgSetUserGroupPermissions) Route ¶
func (msg MsgSetUserGroupPermissions) Route() string
Route implements sdk.Msg
func (*MsgSetUserGroupPermissions) Size ¶
func (m *MsgSetUserGroupPermissions) Size() (n int)
func (*MsgSetUserGroupPermissions) String ¶
func (m *MsgSetUserGroupPermissions) String() string
func (MsgSetUserGroupPermissions) Type ¶
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 { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` Permissions uint32 `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` }
MsgSetUserPermissions represents the message used to set the permissions of a specific user
func NewMsgSetUserPermissions ¶
func NewMsgSetUserPermissions(subspaceID uint64, user string, permissions uint32, signer string) *MsgSetUserPermissions
NewMsgSetUserPermissions creates a new MsgSetUserPermissions instance
func (*MsgSetUserPermissions) Descriptor ¶
func (*MsgSetUserPermissions) Descriptor() ([]byte, []int)
func (*MsgSetUserPermissions) GetPermissions ¶
func (m *MsgSetUserPermissions) GetPermissions() uint32
func (MsgSetUserPermissions) GetSignBytes ¶
func (msg MsgSetUserPermissions) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (*MsgSetUserPermissions) GetSigner ¶
func (m *MsgSetUserPermissions) GetSigner() string
func (MsgSetUserPermissions) GetSigners ¶
func (msg MsgSetUserPermissions) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgSetUserPermissions) GetSubspaceID ¶
func (m *MsgSetUserPermissions) GetSubspaceID() uint64
func (*MsgSetUserPermissions) GetUser ¶
func (m *MsgSetUserPermissions) GetUser() string
func (*MsgSetUserPermissions) Marshal ¶
func (m *MsgSetUserPermissions) Marshal() (dAtA []byte, err error)
func (*MsgSetUserPermissions) MarshalTo ¶
func (m *MsgSetUserPermissions) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetUserPermissions) MarshalToSizedBuffer ¶
func (m *MsgSetUserPermissions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetUserPermissions) ProtoMessage ¶
func (*MsgSetUserPermissions) ProtoMessage()
func (*MsgSetUserPermissions) Reset ¶
func (m *MsgSetUserPermissions) Reset()
func (MsgSetUserPermissions) Route ¶
func (msg MsgSetUserPermissions) Route() string
Route implements sdk.Msg
func (*MsgSetUserPermissions) Size ¶
func (m *MsgSetUserPermissions) Size() (n int)
func (*MsgSetUserPermissions) String ¶
func (m *MsgSetUserPermissions) String() string
func (MsgSetUserPermissions) Type ¶
func (msg MsgSetUserPermissions) Type() string
Type implements sdk.Msg
func (*MsgSetUserPermissions) Unmarshal ¶
func (m *MsgSetUserPermissions) Unmarshal(dAtA []byte) error
func (MsgSetUserPermissions) ValidateBasic ¶
func (msg MsgSetUserPermissions) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgSetUserPermissions) XXX_DiscardUnknown ¶
func (m *MsgSetUserPermissions) XXX_DiscardUnknown()
func (*MsgSetUserPermissions) XXX_Marshal ¶
func (m *MsgSetUserPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetUserPermissions) XXX_Merge ¶
func (m *MsgSetUserPermissions) XXX_Merge(src proto.Message)
func (*MsgSetUserPermissions) XXX_Size ¶
func (m *MsgSetUserPermissions) XXX_Size() int
func (*MsgSetUserPermissions) XXX_Unmarshal ¶
func (m *MsgSetUserPermissions) XXX_Unmarshal(b []byte) error
type MsgSetUserPermissionsResponse ¶
type MsgSetUserPermissionsResponse struct { }
MsgSetUserPermissionsResponse defines the Msg/SetPermissionsResponse response type
func (*MsgSetUserPermissionsResponse) Descriptor ¶
func (*MsgSetUserPermissionsResponse) Descriptor() ([]byte, []int)
func (*MsgSetUserPermissionsResponse) Marshal ¶
func (m *MsgSetUserPermissionsResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetUserPermissionsResponse) MarshalTo ¶
func (m *MsgSetUserPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetUserPermissionsResponse) MarshalToSizedBuffer ¶
func (m *MsgSetUserPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetUserPermissionsResponse) ProtoMessage ¶
func (*MsgSetUserPermissionsResponse) ProtoMessage()
func (*MsgSetUserPermissionsResponse) Reset ¶
func (m *MsgSetUserPermissionsResponse) Reset()
func (*MsgSetUserPermissionsResponse) Size ¶
func (m *MsgSetUserPermissionsResponse) Size() (n int)
func (*MsgSetUserPermissionsResponse) String ¶
func (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 sdk.AccAddress)
AfterSubspaceGroupMemberAdded implements SubspacesHook
func (MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved ¶
func (h MultiSubspacesHooks) AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress)
AfterSubspaceGroupMemberRemoved implements SubspacesHook
func (MultiSubspacesHooks) AfterSubspaceGroupSaved ¶
func (h MultiSubspacesHooks) AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32)
AfterSubspaceGroupSaved implements SubspacesHook
func (MultiSubspacesHooks) AfterSubspaceSaved ¶
func (h MultiSubspacesHooks) AfterSubspaceSaved(ctx sdk.Context, subspaceID uint64)
AfterSubspaceSaved implements SubspacesHook
func (MultiSubspacesHooks) AfterUserPermissionRemoved ¶
func (h MultiSubspacesHooks) AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress)
AfterUserPermissionRemoved implements SubspacesHook
func (MultiSubspacesHooks) AfterUserPermissionSet ¶
func (h MultiSubspacesHooks) AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress, permissions Permission)
AfterUserPermissionSet implements SubspacesHook
type Permission ¶
type Permission = uint32
Permission represents a permission that can be set to a user or user group
func CombinePermissions ¶
func CombinePermissions(permissions ...Permission) Permission
CombinePermissions combines all the given permissions into a single Permission object using the OR operator
func ParsePermission ¶
func ParsePermission(permission string) (Permission, error)
ParsePermission parses the given permission string as a single Permissions instance
func UnmarshalPermission ¶
func UnmarshalPermission(bz []byte) (permission Permission)
UnmarshalPermission reads the given byte array as a Permission object
type PermissionDetail ¶
type PermissionDetail struct { // sum is the oneof that specifies whether this represents a user or // group permission detail // // Types that are valid to be assigned to Sum: // *PermissionDetail_User_ // *PermissionDetail_Group_ Sum isPermissionDetail_Sum `protobuf_oneof:"sum"` }
PermissionDetail contains the details data of a permission
func NewPermissionDetailGroup ¶
func NewPermissionDetailGroup(groupID uint32, permission Permission) PermissionDetail
NewPermissionDetailGroup returns a new PermissionDetail for the user with the given id and permission value
func NewPermissionDetailUser ¶
func NewPermissionDetailUser(user string, permission Permission) PermissionDetail
NewPermissionDetailUser returns a new PermissionDetail for the user with the given address and permission value
func (*PermissionDetail) Descriptor ¶
func (*PermissionDetail) Descriptor() ([]byte, []int)
func (*PermissionDetail) Equal ¶
func (this *PermissionDetail) Equal(that interface{}) bool
func (*PermissionDetail) GetGroup ¶
func (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 { // Error that is associated with the failure GroupID uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"error"` // Permission set to the group Permission uint32 `protobuf:"varint,2,opt,name=permission,proto3" json:"permission,omitempty"` }
Group is a permission that has been set to a user group
func (*PermissionDetail_Group) Descriptor ¶
func (*PermissionDetail_Group) Descriptor() ([]byte, []int)
func (*PermissionDetail_Group) Equal ¶
func (this *PermissionDetail_Group) Equal(that interface{}) bool
func (*PermissionDetail_Group) Marshal ¶
func (m *PermissionDetail_Group) Marshal() (dAtA []byte, err error)
func (*PermissionDetail_Group) MarshalTo ¶
func (m *PermissionDetail_Group) MarshalTo(dAtA []byte) (int, error)
func (*PermissionDetail_Group) MarshalToSizedBuffer ¶
func (m *PermissionDetail_Group) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermissionDetail_Group) ProtoMessage ¶
func (*PermissionDetail_Group) ProtoMessage()
func (*PermissionDetail_Group) Reset ¶
func (m *PermissionDetail_Group) Reset()
func (*PermissionDetail_Group) Size ¶
func (m *PermissionDetail_Group) Size() (n int)
func (*PermissionDetail_Group) String ¶
func (m *PermissionDetail_Group) String() string
func (*PermissionDetail_Group) Unmarshal ¶
func (m *PermissionDetail_Group) Unmarshal(dAtA []byte) error
func (*PermissionDetail_Group) XXX_DiscardUnknown ¶
func (m *PermissionDetail_Group) XXX_DiscardUnknown()
func (*PermissionDetail_Group) XXX_Marshal ¶
func (m *PermissionDetail_Group) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermissionDetail_Group) XXX_Merge ¶
func (m *PermissionDetail_Group) XXX_Merge(src proto.Message)
func (*PermissionDetail_Group) XXX_Size ¶
func (m *PermissionDetail_Group) XXX_Size() int
func (*PermissionDetail_Group) XXX_Unmarshal ¶
func (m *PermissionDetail_Group) XXX_Unmarshal(b []byte) error
type PermissionDetail_Group_ ¶
type PermissionDetail_Group_ struct {
Group *PermissionDetail_Group `protobuf:"bytes,2,opt,name=group,proto3,oneof" json:"group,omitempty"`
}
func (*PermissionDetail_Group_) Equal ¶
func (this *PermissionDetail_Group_) Equal(that interface{}) bool
func (*PermissionDetail_Group_) MarshalTo ¶
func (m *PermissionDetail_Group_) MarshalTo(dAtA []byte) (int, error)
func (*PermissionDetail_Group_) MarshalToSizedBuffer ¶
func (m *PermissionDetail_Group_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermissionDetail_Group_) Size ¶
func (m *PermissionDetail_Group_) Size() (n int)
type PermissionDetail_User ¶
type PermissionDetail_User struct { // User for which the permission was set User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` // Permission set to the user Permission uint32 `protobuf:"varint,2,opt,name=permission,proto3" json:"permission,omitempty" yaml:"permission"` }
Success is a permission that has been set to a specific user
func (*PermissionDetail_User) Descriptor ¶
func (*PermissionDetail_User) Descriptor() ([]byte, []int)
func (*PermissionDetail_User) Equal ¶
func (this *PermissionDetail_User) Equal(that interface{}) bool
func (*PermissionDetail_User) Marshal ¶
func (m *PermissionDetail_User) Marshal() (dAtA []byte, err error)
func (*PermissionDetail_User) MarshalTo ¶
func (m *PermissionDetail_User) MarshalTo(dAtA []byte) (int, error)
func (*PermissionDetail_User) MarshalToSizedBuffer ¶
func (m *PermissionDetail_User) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermissionDetail_User) ProtoMessage ¶
func (*PermissionDetail_User) ProtoMessage()
func (*PermissionDetail_User) Reset ¶
func (m *PermissionDetail_User) Reset()
func (*PermissionDetail_User) Size ¶
func (m *PermissionDetail_User) Size() (n int)
func (*PermissionDetail_User) String ¶
func (m *PermissionDetail_User) String() string
func (*PermissionDetail_User) Unmarshal ¶
func (m *PermissionDetail_User) Unmarshal(dAtA []byte) error
func (*PermissionDetail_User) XXX_DiscardUnknown ¶
func (m *PermissionDetail_User) XXX_DiscardUnknown()
func (*PermissionDetail_User) XXX_Marshal ¶
func (m *PermissionDetail_User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermissionDetail_User) XXX_Merge ¶
func (m *PermissionDetail_User) XXX_Merge(src proto.Message)
func (*PermissionDetail_User) XXX_Size ¶
func (m *PermissionDetail_User) XXX_Size() int
func (*PermissionDetail_User) XXX_Unmarshal ¶
func (m *PermissionDetail_User) XXX_Unmarshal(b []byte) error
type PermissionDetail_User_ ¶
type PermissionDetail_User_ struct {
User *PermissionDetail_User `protobuf:"bytes,1,opt,name=user,proto3,oneof" json:"user,omitempty"`
}
func (*PermissionDetail_User_) Equal ¶
func (this *PermissionDetail_User_) Equal(that interface{}) bool
func (*PermissionDetail_User_) MarshalTo ¶
func (m *PermissionDetail_User_) MarshalTo(dAtA []byte) (int, error)
func (*PermissionDetail_User_) MarshalToSizedBuffer ¶
func (m *PermissionDetail_User_) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermissionDetail_User_) Size ¶
func (m *PermissionDetail_User_) Size() (n int)
type QueryClient ¶
type QueryClient interface { // Subspaces queries all the subspaces inside Desmos Subspaces(ctx context.Context, in *QuerySubspacesRequest, opts ...grpc.CallOption) (*QuerySubspacesResponse, error) // Subspace queries all the information about the subspace with the given id Subspace(ctx context.Context, in *QuerySubspaceRequest, opts ...grpc.CallOption) (*QuerySubspaceResponse, error) // UserGroups queries all the groups that are present inside the subspace with // the given id UserGroups(ctx context.Context, in *QueryUserGroupsRequest, opts ...grpc.CallOption) (*QueryUserGroupsResponse, error) // UserGroup queries the user group having the given id inside the specific // subspace UserGroup(ctx context.Context, in *QueryUserGroupRequest, opts ...grpc.CallOption) (*QueryUserGroupResponse, error) // UserGroupMembers queries all the members of a given user group UserGroupMembers(ctx context.Context, in *QueryUserGroupMembersRequest, opts ...grpc.CallOption) (*QueryUserGroupMembersResponse, error) // UserPermissions queries the permissions for the given user UserPermissions(ctx context.Context, in *QueryUserPermissionsRequest, opts ...grpc.CallOption) (*QueryUserPermissionsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { // Subspaces queries all the subspaces inside Desmos Subspaces(context.Context, *QuerySubspacesRequest) (*QuerySubspacesResponse, error) // Subspace queries all the information about the subspace with the given id Subspace(context.Context, *QuerySubspaceRequest) (*QuerySubspaceResponse, error) // UserGroups queries all the groups that are present inside the subspace with // the given id UserGroups(context.Context, *QueryUserGroupsRequest) (*QueryUserGroupsResponse, error) // UserGroup queries the user group having the given id inside the specific // subspace UserGroup(context.Context, *QueryUserGroupRequest) (*QueryUserGroupResponse, error) // UserGroupMembers queries all the members of a given user group UserGroupMembers(context.Context, *QueryUserGroupMembersRequest) (*QueryUserGroupMembersResponse, error) // UserPermissions queries the permissions for the given user UserPermissions(context.Context, *QueryUserPermissionsRequest) (*QueryUserPermissionsResponse, error) }
QueryServer is the server API for Query service.
type QuerySubspaceRequest ¶
type QuerySubspaceRequest struct {
SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"`
}
QuerySubspace is the request type for the Query/Subspace RPC method
func NewQuerySubspaceRequest ¶
func NewQuerySubspaceRequest(subspaceID uint64) *QuerySubspaceRequest
NewQuerySubspaceRequest returns a new QuerySubspaceRequest instance
func (*QuerySubspaceRequest) Descriptor ¶
func (*QuerySubspaceRequest) Descriptor() ([]byte, []int)
func (*QuerySubspaceRequest) Marshal ¶
func (m *QuerySubspaceRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubspaceRequest) MarshalTo ¶
func (m *QuerySubspaceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspaceRequest) MarshalToSizedBuffer ¶
func (m *QuerySubspaceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspaceRequest) ProtoMessage ¶
func (*QuerySubspaceRequest) ProtoMessage()
func (*QuerySubspaceRequest) Reset ¶
func (m *QuerySubspaceRequest) Reset()
func (*QuerySubspaceRequest) Size ¶
func (m *QuerySubspaceRequest) Size() (n int)
func (*QuerySubspaceRequest) String ¶
func (m *QuerySubspaceRequest) String() string
func (*QuerySubspaceRequest) Unmarshal ¶
func (m *QuerySubspaceRequest) Unmarshal(dAtA []byte) error
func (*QuerySubspaceRequest) XXX_DiscardUnknown ¶
func (m *QuerySubspaceRequest) XXX_DiscardUnknown()
func (*QuerySubspaceRequest) XXX_Marshal ¶
func (m *QuerySubspaceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspaceRequest) XXX_Merge ¶
func (m *QuerySubspaceRequest) XXX_Merge(src proto.Message)
func (*QuerySubspaceRequest) XXX_Size ¶
func (m *QuerySubspaceRequest) XXX_Size() int
func (*QuerySubspaceRequest) XXX_Unmarshal ¶
func (m *QuerySubspaceRequest) XXX_Unmarshal(b []byte) error
type QuerySubspaceResponse ¶
type QuerySubspaceResponse struct {
Subspace Subspace `protobuf:"bytes,1,opt,name=subspace,proto3" json:"subspace"`
}
QuerySubspaceResponse is the response type for the Query/Subspace method
func (*QuerySubspaceResponse) Descriptor ¶
func (*QuerySubspaceResponse) Descriptor() ([]byte, []int)
func (*QuerySubspaceResponse) GetSubspace ¶
func (m *QuerySubspaceResponse) GetSubspace() Subspace
func (*QuerySubspaceResponse) Marshal ¶
func (m *QuerySubspaceResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubspaceResponse) MarshalTo ¶
func (m *QuerySubspaceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspaceResponse) MarshalToSizedBuffer ¶
func (m *QuerySubspaceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspaceResponse) ProtoMessage ¶
func (*QuerySubspaceResponse) ProtoMessage()
func (*QuerySubspaceResponse) Reset ¶
func (m *QuerySubspaceResponse) Reset()
func (*QuerySubspaceResponse) Size ¶
func (m *QuerySubspaceResponse) Size() (n int)
func (*QuerySubspaceResponse) String ¶
func (m *QuerySubspaceResponse) String() string
func (*QuerySubspaceResponse) Unmarshal ¶
func (m *QuerySubspaceResponse) Unmarshal(dAtA []byte) error
func (*QuerySubspaceResponse) XXX_DiscardUnknown ¶
func (m *QuerySubspaceResponse) XXX_DiscardUnknown()
func (*QuerySubspaceResponse) XXX_Marshal ¶
func (m *QuerySubspaceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspaceResponse) XXX_Merge ¶
func (m *QuerySubspaceResponse) XXX_Merge(src proto.Message)
func (*QuerySubspaceResponse) XXX_Size ¶
func (m *QuerySubspaceResponse) XXX_Size() int
func (*QuerySubspaceResponse) XXX_Unmarshal ¶
func (m *QuerySubspaceResponse) XXX_Unmarshal(b []byte) error
type QuerySubspacesRequest ¶
type QuerySubspacesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySubspacesRequest is the request type for the Query/Subspaces RPC method
func NewQuerySubspacesRequest ¶
func NewQuerySubspacesRequest(pagination *query.PageRequest) *QuerySubspacesRequest
NewQuerySubspacesRequest returns a new QuerySubspacesRequest instance
func (*QuerySubspacesRequest) Descriptor ¶
func (*QuerySubspacesRequest) Descriptor() ([]byte, []int)
func (*QuerySubspacesRequest) GetPagination ¶
func (m *QuerySubspacesRequest) GetPagination() *query.PageRequest
func (*QuerySubspacesRequest) Marshal ¶
func (m *QuerySubspacesRequest) Marshal() (dAtA []byte, err error)
func (*QuerySubspacesRequest) MarshalTo ¶
func (m *QuerySubspacesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspacesRequest) MarshalToSizedBuffer ¶
func (m *QuerySubspacesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspacesRequest) ProtoMessage ¶
func (*QuerySubspacesRequest) ProtoMessage()
func (*QuerySubspacesRequest) Reset ¶
func (m *QuerySubspacesRequest) Reset()
func (*QuerySubspacesRequest) Size ¶
func (m *QuerySubspacesRequest) Size() (n int)
func (*QuerySubspacesRequest) String ¶
func (m *QuerySubspacesRequest) String() string
func (*QuerySubspacesRequest) Unmarshal ¶
func (m *QuerySubspacesRequest) Unmarshal(dAtA []byte) error
func (*QuerySubspacesRequest) XXX_DiscardUnknown ¶
func (m *QuerySubspacesRequest) XXX_DiscardUnknown()
func (*QuerySubspacesRequest) XXX_Marshal ¶
func (m *QuerySubspacesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspacesRequest) XXX_Merge ¶
func (m *QuerySubspacesRequest) XXX_Merge(src proto.Message)
func (*QuerySubspacesRequest) XXX_Size ¶
func (m *QuerySubspacesRequest) XXX_Size() int
func (*QuerySubspacesRequest) XXX_Unmarshal ¶
func (m *QuerySubspacesRequest) XXX_Unmarshal(b []byte) error
type QuerySubspacesResponse ¶
type QuerySubspacesResponse struct { Subspaces []Subspace `protobuf:"bytes,1,rep,name=subspaces,proto3" json:"subspaces"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySubspacesResponse is the response type for the Query/Subspaces RPC method
func (*QuerySubspacesResponse) Descriptor ¶
func (*QuerySubspacesResponse) Descriptor() ([]byte, []int)
func (*QuerySubspacesResponse) GetPagination ¶
func (m *QuerySubspacesResponse) GetPagination() *query.PageResponse
func (*QuerySubspacesResponse) GetSubspaces ¶
func (m *QuerySubspacesResponse) GetSubspaces() []Subspace
func (*QuerySubspacesResponse) Marshal ¶
func (m *QuerySubspacesResponse) Marshal() (dAtA []byte, err error)
func (*QuerySubspacesResponse) MarshalTo ¶
func (m *QuerySubspacesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySubspacesResponse) MarshalToSizedBuffer ¶
func (m *QuerySubspacesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySubspacesResponse) ProtoMessage ¶
func (*QuerySubspacesResponse) ProtoMessage()
func (*QuerySubspacesResponse) Reset ¶
func (m *QuerySubspacesResponse) Reset()
func (*QuerySubspacesResponse) Size ¶
func (m *QuerySubspacesResponse) Size() (n int)
func (*QuerySubspacesResponse) String ¶
func (m *QuerySubspacesResponse) String() string
func (*QuerySubspacesResponse) Unmarshal ¶
func (m *QuerySubspacesResponse) Unmarshal(dAtA []byte) error
func (*QuerySubspacesResponse) XXX_DiscardUnknown ¶
func (m *QuerySubspacesResponse) XXX_DiscardUnknown()
func (*QuerySubspacesResponse) XXX_Marshal ¶
func (m *QuerySubspacesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySubspacesResponse) XXX_Merge ¶
func (m *QuerySubspacesResponse) XXX_Merge(src proto.Message)
func (*QuerySubspacesResponse) XXX_Size ¶
func (m *QuerySubspacesResponse) XXX_Size() int
func (*QuerySubspacesResponse) XXX_Unmarshal ¶
func (m *QuerySubspacesResponse) XXX_Unmarshal(b []byte) error
type QueryUserGroupMembersRequest ¶
type QueryUserGroupMembersRequest struct { SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUserGroupMembersRequest is the request type for the Query/UserGroupMembers RPC method
func NewQueryUserGroupMembersRequest ¶
func NewQueryUserGroupMembersRequest( subspaceID uint64, groupID uint32, pagination *query.PageRequest, ) *QueryUserGroupMembersRequest
NewQueryUserGroupMembersRequest returns a new QueryUserGroupMembersRequest instance
func (*QueryUserGroupMembersRequest) Descriptor ¶
func (*QueryUserGroupMembersRequest) Descriptor() ([]byte, []int)
func (*QueryUserGroupMembersRequest) GetGroupId ¶
func (m *QueryUserGroupMembersRequest) GetGroupId() uint32
func (*QueryUserGroupMembersRequest) GetPagination ¶
func (m *QueryUserGroupMembersRequest) GetPagination() *query.PageRequest
func (*QueryUserGroupMembersRequest) GetSubspaceId ¶
func (m *QueryUserGroupMembersRequest) GetSubspaceId() uint64
func (*QueryUserGroupMembersRequest) Marshal ¶
func (m *QueryUserGroupMembersRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserGroupMembersRequest) MarshalTo ¶
func (m *QueryUserGroupMembersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserGroupMembersRequest) MarshalToSizedBuffer ¶
func (m *QueryUserGroupMembersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserGroupMembersRequest) ProtoMessage ¶
func (*QueryUserGroupMembersRequest) ProtoMessage()
func (*QueryUserGroupMembersRequest) Reset ¶
func (m *QueryUserGroupMembersRequest) Reset()
func (*QueryUserGroupMembersRequest) Size ¶
func (m *QueryUserGroupMembersRequest) Size() (n int)
func (*QueryUserGroupMembersRequest) String ¶
func (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 { SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty" yaml:"group_id"` }
QueryUserGroupRequest is the request type for the Query/UserGroup RPC method
func NewQueryUserGroupRequest ¶
func NewQueryUserGroupRequest(subspaceID uint64, groupID uint32) *QueryUserGroupRequest
NewQueryUserGroupRequest returns a new QueryUserGroupRequest instance
func (*QueryUserGroupRequest) Descriptor ¶
func (*QueryUserGroupRequest) Descriptor() ([]byte, []int)
func (*QueryUserGroupRequest) GetGroupId ¶
func (m *QueryUserGroupRequest) GetGroupId() uint32
func (*QueryUserGroupRequest) GetSubspaceId ¶
func (m *QueryUserGroupRequest) GetSubspaceId() uint64
func (*QueryUserGroupRequest) Marshal ¶
func (m *QueryUserGroupRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserGroupRequest) MarshalTo ¶
func (m *QueryUserGroupRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserGroupRequest) MarshalToSizedBuffer ¶
func (m *QueryUserGroupRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserGroupRequest) ProtoMessage ¶
func (*QueryUserGroupRequest) ProtoMessage()
func (*QueryUserGroupRequest) Reset ¶
func (m *QueryUserGroupRequest) Reset()
func (*QueryUserGroupRequest) Size ¶
func (m *QueryUserGroupRequest) Size() (n int)
func (*QueryUserGroupRequest) String ¶
func (m *QueryUserGroupRequest) String() string
func (*QueryUserGroupRequest) Unmarshal ¶
func (m *QueryUserGroupRequest) Unmarshal(dAtA []byte) error
func (*QueryUserGroupRequest) XXX_DiscardUnknown ¶
func (m *QueryUserGroupRequest) XXX_DiscardUnknown()
func (*QueryUserGroupRequest) XXX_Marshal ¶
func (m *QueryUserGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserGroupRequest) XXX_Merge ¶
func (m *QueryUserGroupRequest) XXX_Merge(src proto.Message)
func (*QueryUserGroupRequest) XXX_Size ¶
func (m *QueryUserGroupRequest) XXX_Size() int
func (*QueryUserGroupRequest) XXX_Unmarshal ¶
func (m *QueryUserGroupRequest) XXX_Unmarshal(b []byte) error
type QueryUserGroupResponse ¶
type QueryUserGroupResponse struct {
Group UserGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group"`
}
QueryUserGroupResponse is the response type for the Query/UserGroup RPC method
func (*QueryUserGroupResponse) Descriptor ¶
func (*QueryUserGroupResponse) Descriptor() ([]byte, []int)
func (*QueryUserGroupResponse) GetGroup ¶
func (m *QueryUserGroupResponse) GetGroup() UserGroup
func (*QueryUserGroupResponse) Marshal ¶
func (m *QueryUserGroupResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserGroupResponse) MarshalTo ¶
func (m *QueryUserGroupResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserGroupResponse) MarshalToSizedBuffer ¶
func (m *QueryUserGroupResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserGroupResponse) ProtoMessage ¶
func (*QueryUserGroupResponse) ProtoMessage()
func (*QueryUserGroupResponse) Reset ¶
func (m *QueryUserGroupResponse) Reset()
func (*QueryUserGroupResponse) Size ¶
func (m *QueryUserGroupResponse) Size() (n int)
func (*QueryUserGroupResponse) String ¶
func (m *QueryUserGroupResponse) String() string
func (*QueryUserGroupResponse) Unmarshal ¶
func (m *QueryUserGroupResponse) Unmarshal(dAtA []byte) error
func (*QueryUserGroupResponse) XXX_DiscardUnknown ¶
func (m *QueryUserGroupResponse) XXX_DiscardUnknown()
func (*QueryUserGroupResponse) XXX_Marshal ¶
func (m *QueryUserGroupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserGroupResponse) XXX_Merge ¶
func (m *QueryUserGroupResponse) XXX_Merge(src proto.Message)
func (*QueryUserGroupResponse) XXX_Size ¶
func (m *QueryUserGroupResponse) XXX_Size() int
func (*QueryUserGroupResponse) XXX_Unmarshal ¶
func (m *QueryUserGroupResponse) XXX_Unmarshal(b []byte) error
type QueryUserGroupsRequest ¶
type QueryUserGroupsRequest struct { SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUserGroupsRequest is the request type for the Query/UserGroups RPC method
func NewQueryUserGroupsRequest ¶
func NewQueryUserGroupsRequest(subspaceID uint64, pagination *query.PageRequest) *QueryUserGroupsRequest
NewQueryUserGroupsRequest returns a new QueryUserGroupsRequest instance
func (*QueryUserGroupsRequest) Descriptor ¶
func (*QueryUserGroupsRequest) Descriptor() ([]byte, []int)
func (*QueryUserGroupsRequest) GetPagination ¶
func (m *QueryUserGroupsRequest) GetPagination() *query.PageRequest
func (*QueryUserGroupsRequest) GetSubspaceId ¶
func (m *QueryUserGroupsRequest) GetSubspaceId() uint64
func (*QueryUserGroupsRequest) Marshal ¶
func (m *QueryUserGroupsRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserGroupsRequest) MarshalTo ¶
func (m *QueryUserGroupsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserGroupsRequest) MarshalToSizedBuffer ¶
func (m *QueryUserGroupsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserGroupsRequest) ProtoMessage ¶
func (*QueryUserGroupsRequest) ProtoMessage()
func (*QueryUserGroupsRequest) Reset ¶
func (m *QueryUserGroupsRequest) Reset()
func (*QueryUserGroupsRequest) Size ¶
func (m *QueryUserGroupsRequest) Size() (n int)
func (*QueryUserGroupsRequest) String ¶
func (m *QueryUserGroupsRequest) String() string
func (*QueryUserGroupsRequest) Unmarshal ¶
func (m *QueryUserGroupsRequest) Unmarshal(dAtA []byte) error
func (*QueryUserGroupsRequest) XXX_DiscardUnknown ¶
func (m *QueryUserGroupsRequest) XXX_DiscardUnknown()
func (*QueryUserGroupsRequest) XXX_Marshal ¶
func (m *QueryUserGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserGroupsRequest) XXX_Merge ¶
func (m *QueryUserGroupsRequest) XXX_Merge(src proto.Message)
func (*QueryUserGroupsRequest) XXX_Size ¶
func (m *QueryUserGroupsRequest) XXX_Size() int
func (*QueryUserGroupsRequest) XXX_Unmarshal ¶
func (m *QueryUserGroupsRequest) XXX_Unmarshal(b []byte) error
type QueryUserGroupsResponse ¶
type QueryUserGroupsResponse struct { Groups []UserGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryUserGroupsResponse is the response type for the Query/UserGroups RPC method
func (*QueryUserGroupsResponse) Descriptor ¶
func (*QueryUserGroupsResponse) Descriptor() ([]byte, []int)
func (*QueryUserGroupsResponse) GetGroups ¶
func (m *QueryUserGroupsResponse) GetGroups() []UserGroup
func (*QueryUserGroupsResponse) GetPagination ¶
func (m *QueryUserGroupsResponse) GetPagination() *query.PageResponse
func (*QueryUserGroupsResponse) Marshal ¶
func (m *QueryUserGroupsResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserGroupsResponse) MarshalTo ¶
func (m *QueryUserGroupsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserGroupsResponse) MarshalToSizedBuffer ¶
func (m *QueryUserGroupsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserGroupsResponse) ProtoMessage ¶
func (*QueryUserGroupsResponse) ProtoMessage()
func (*QueryUserGroupsResponse) Reset ¶
func (m *QueryUserGroupsResponse) Reset()
func (*QueryUserGroupsResponse) Size ¶
func (m *QueryUserGroupsResponse) Size() (n int)
func (*QueryUserGroupsResponse) String ¶
func (m *QueryUserGroupsResponse) String() string
func (*QueryUserGroupsResponse) Unmarshal ¶
func (m *QueryUserGroupsResponse) Unmarshal(dAtA []byte) error
func (*QueryUserGroupsResponse) XXX_DiscardUnknown ¶
func (m *QueryUserGroupsResponse) XXX_DiscardUnknown()
func (*QueryUserGroupsResponse) XXX_Marshal ¶
func (m *QueryUserGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserGroupsResponse) XXX_Merge ¶
func (m *QueryUserGroupsResponse) XXX_Merge(src proto.Message)
func (*QueryUserGroupsResponse) XXX_Size ¶
func (m *QueryUserGroupsResponse) XXX_Size() int
func (*QueryUserGroupsResponse) XXX_Unmarshal ¶
func (m *QueryUserGroupsResponse) XXX_Unmarshal(b []byte) error
type QueryUserPermissionsRequest ¶
type QueryUserPermissionsRequest struct { SubspaceId uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace_id"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` }
QueryUserPermissionsRequest is the request type for the Query/UserPermissions RPC method
func NewQueryUserPermissionsRequest ¶
func NewQueryUserPermissionsRequest(subspaceID uint64, user string) *QueryUserPermissionsRequest
NewQueryUserPermissionsRequest returns a new QueryPermissionsRequest instance
func (*QueryUserPermissionsRequest) Descriptor ¶
func (*QueryUserPermissionsRequest) Descriptor() ([]byte, []int)
func (*QueryUserPermissionsRequest) Marshal ¶
func (m *QueryUserPermissionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryUserPermissionsRequest) MarshalTo ¶
func (m *QueryUserPermissionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserPermissionsRequest) MarshalToSizedBuffer ¶
func (m *QueryUserPermissionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserPermissionsRequest) ProtoMessage ¶
func (*QueryUserPermissionsRequest) ProtoMessage()
func (*QueryUserPermissionsRequest) Reset ¶
func (m *QueryUserPermissionsRequest) Reset()
func (*QueryUserPermissionsRequest) Size ¶
func (m *QueryUserPermissionsRequest) Size() (n int)
func (*QueryUserPermissionsRequest) String ¶
func (m *QueryUserPermissionsRequest) String() string
func (*QueryUserPermissionsRequest) Unmarshal ¶
func (m *QueryUserPermissionsRequest) Unmarshal(dAtA []byte) error
func (*QueryUserPermissionsRequest) XXX_DiscardUnknown ¶
func (m *QueryUserPermissionsRequest) XXX_DiscardUnknown()
func (*QueryUserPermissionsRequest) XXX_Marshal ¶
func (m *QueryUserPermissionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryUserPermissionsRequest) XXX_Merge ¶
func (m *QueryUserPermissionsRequest) XXX_Merge(src proto.Message)
func (*QueryUserPermissionsRequest) XXX_Size ¶
func (m *QueryUserPermissionsRequest) XXX_Size() int
func (*QueryUserPermissionsRequest) XXX_Unmarshal ¶
func (m *QueryUserPermissionsRequest) XXX_Unmarshal(b []byte) error
type QueryUserPermissionsResponse ¶
type QueryUserPermissionsResponse struct { Permissions uint32 `protobuf:"varint,1,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` Details []PermissionDetail `protobuf:"bytes,2,rep,name=details,proto3" json:"details" yaml:"details"` }
QueryUserPermissionsRequest is the response type for the Query/UserPermissions method
func (*QueryUserPermissionsResponse) Descriptor ¶
func (*QueryUserPermissionsResponse) Descriptor() ([]byte, []int)
func (*QueryUserPermissionsResponse) GetDetails ¶
func (m *QueryUserPermissionsResponse) GetDetails() []PermissionDetail
func (*QueryUserPermissionsResponse) GetPermissions ¶
func (m *QueryUserPermissionsResponse) GetPermissions() uint32
func (*QueryUserPermissionsResponse) Marshal ¶
func (m *QueryUserPermissionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryUserPermissionsResponse) MarshalTo ¶
func (m *QueryUserPermissionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryUserPermissionsResponse) MarshalToSizedBuffer ¶
func (m *QueryUserPermissionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryUserPermissionsResponse) ProtoMessage ¶
func (*QueryUserPermissionsResponse) ProtoMessage()
func (*QueryUserPermissionsResponse) Reset ¶
func (m *QueryUserPermissionsResponse) Reset()
func (*QueryUserPermissionsResponse) Size ¶
func (m *QueryUserPermissionsResponse) Size() (n int)
func (*QueryUserPermissionsResponse) String ¶
func (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 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 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 AfterSubspaceGroupSaved(ctx sdk.Context, subspaceID uint64, groupID uint32) // Must be called when a subspace group is created AfterSubspaceGroupMemberAdded(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress) // Must be called when a user is added to a group AfterSubspaceGroupMemberRemoved(ctx sdk.Context, subspaceID uint64, groupID uint32, user sdk.AccAddress) // Must be called when a user is removed from a group AfterSubspaceGroupDeleted(ctx sdk.Context, subspaceID uint64, groupID uint32) // Must be called when a subspace group is deleted AfterUserPermissionSet(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress, permissions Permission) // Must be called when a permission is set for a user AfterUserPermissionRemoved(ctx sdk.Context, subspaceID uint64, user sdk.AccAddress) // Must be called when a permission is removed for a user }
SubspacesHooks event hooks for subspaces objects (noalias)
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddUserToUserGroup ¶
func (*UnimplementedMsgServer) AddUserToUserGroup(ctx context.Context, req *MsgAddUserToUserGroup) (*MsgAddUserToUserGroupResponse, 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) 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) 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) 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) 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"` // Unique id that identifies the group ID uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty" yaml:"id"` // Human-readable name of the user group Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty" yaml:"name"` // Optional description of this group Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" yaml:"description"` // Permissions that will be granted to all the users part of this group Permissions uint32 `protobuf:"varint,5,opt,name=permissions,proto3" json:"permissions,omitempty" yaml:"permissions"` }
UserGroup represents a group of users
func DefaultUserGroup ¶
DefaultUserGroup returns the default user group for the given subspace
func NewUserGroup ¶
func NewUserGroup(subspaceID uint64, id uint32, name, description string, permissions Permission) UserGroup
NewUserGroup returns a new UserGroup instance
func (*UserGroup) Descriptor ¶
func (*UserGroup) GetDescription ¶
func (*UserGroup) GetPermissions ¶
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 UserGroupMembersEntry ¶
type UserGroupMembersEntry struct { SubspaceID uint64 `protobuf:"varint,1,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty"` GroupID uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"` }
UserGroupMembersEntry contains all the members of a specific user group
func NewUserGroupMembersEntry ¶
func NewUserGroupMembersEntry(subspaceID uint64, groupID uint32, members []string) UserGroupMembersEntry
NewUserGroupMembersEntry returns a new UserGroupMembersEntry instance
func (*UserGroupMembersEntry) Descriptor ¶
func (*UserGroupMembersEntry) Descriptor() ([]byte, []int)
func (*UserGroupMembersEntry) Equal ¶
func (this *UserGroupMembersEntry) Equal(that interface{}) bool
func (*UserGroupMembersEntry) GetGroupID ¶
func (m *UserGroupMembersEntry) GetGroupID() uint32
func (*UserGroupMembersEntry) GetMembers ¶
func (m *UserGroupMembersEntry) GetMembers() []string
func (*UserGroupMembersEntry) GetSubspaceID ¶
func (m *UserGroupMembersEntry) GetSubspaceID() uint64
func (*UserGroupMembersEntry) Marshal ¶
func (m *UserGroupMembersEntry) Marshal() (dAtA []byte, err error)
func (*UserGroupMembersEntry) MarshalTo ¶
func (m *UserGroupMembersEntry) MarshalTo(dAtA []byte) (int, error)
func (*UserGroupMembersEntry) MarshalToSizedBuffer ¶
func (m *UserGroupMembersEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserGroupMembersEntry) ProtoMessage ¶
func (*UserGroupMembersEntry) ProtoMessage()
func (*UserGroupMembersEntry) Reset ¶
func (m *UserGroupMembersEntry) Reset()
func (*UserGroupMembersEntry) Size ¶
func (m *UserGroupMembersEntry) Size() (n int)
func (*UserGroupMembersEntry) String ¶
func (m *UserGroupMembersEntry) String() string
func (*UserGroupMembersEntry) Unmarshal ¶
func (m *UserGroupMembersEntry) Unmarshal(dAtA []byte) error
func (UserGroupMembersEntry) Validate ¶
func (entry UserGroupMembersEntry) Validate() error
Validate returns an error if something is wrong within the entry data
func (*UserGroupMembersEntry) XXX_DiscardUnknown ¶
func (m *UserGroupMembersEntry) XXX_DiscardUnknown()
func (*UserGroupMembersEntry) XXX_Marshal ¶
func (m *UserGroupMembersEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserGroupMembersEntry) XXX_Merge ¶
func (m *UserGroupMembersEntry) XXX_Merge(src proto.Message)
func (*UserGroupMembersEntry) XXX_Size ¶
func (m *UserGroupMembersEntry) XXX_Size() int
func (*UserGroupMembersEntry) XXX_Unmarshal ¶
func (m *UserGroupMembersEntry) XXX_Unmarshal(b []byte) error