subspaces

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	SaveSubspace(subspace types.Subspace) error
	DeleteSubspace(height int64, id uint64) error
	DeleteAllSubspaces(height int64) error
	SaveSection(section types.Section) error
	DeleteSection(height int64, subspaceID uint64, sectionID uint32) error
	SaveUserGroup(group types.UserGroup) error
	DeleteUserGroup(height int64, subspaceID uint64, groupID uint32) error
	AddUserToGroup(member types.UserGroupMember) error
	RemoveUserFromGroup(member types.UserGroupMember) error
	SaveUserPermission(permission types.UserPermission) error
	DeleteUserPermission(permission types.UserPermission) error
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents the x/fees module handler

func NewModule

func NewModule(node node.Node, grpcConnection *grpc.ClientConn, cdc codec.Codec, db Database) *Module

NewModule allows to build a new Module instance

func (*Module) HandleGenesis

func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error

HandleGenesis implements modules.GenesisModule

func (*Module) HandleMsg

func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error

HandleMsg implements modules.MessageModule

func (*Module) HandleMsgExec

func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error

HandleMsgExec implements modules.AuthzMessageModule

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) QueryAllSubspaces

func (m *Module) QueryAllSubspaces(height int64) ([]types.Subspace, error)

QueryAllSubspaces queries all the subspaces present on the node at the given height

func (*Module) QuerySubspace

func (m *Module) QuerySubspace(height int64, subspaceID uint64) (types.Subspace, error)

QuerySubspace queries all the subspace data present on the node at the given height

func (*Module) RefreshSubspaceData

func (m *Module) RefreshSubspaceData(height int64, subspaceID uint64) error

RefreshSubspaceData refreshes all the data related to the subspace with the given id

func (*Module) RefreshSubspacesData

func (m *Module) RefreshSubspacesData(height int64) error

RefreshSubspacesData refreshes all the subspaces user data

Jump to

Keyboard shortcuts

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