Documentation ¶
Index ¶
- type Database
- type Module
- func (m *Module) HandleGenesis(doc *tmtypes.GenesisDoc, appState map[string]json.RawMessage) error
- func (m *Module) HandleMsg(index int, msg sdk.Msg, tx *juno.Tx) error
- func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
- func (m *Module) Name() string
- func (m *Module) QueryAllSubspaces(height int64) ([]types.Subspace, error)
- func (m *Module) QuerySubspace(height int64, subspaceID uint64) (types.Subspace, error)
- func (m *Module) RefreshSubspaceData(height int64, subspaceID uint64) error
- func (m *Module) RefreshSubspacesData(height int64) error
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) HandleMsgExec ¶
func (m *Module) HandleMsgExec(index int, _ *authz.MsgExec, _ int, executedMsg sdk.Msg, tx *juno.Tx) error
HandleMsgExec implements modules.AuthzMessageModule
func (*Module) QueryAllSubspaces ¶
QueryAllSubspaces queries all the subspaces present on the node at the given height
func (*Module) QuerySubspace ¶
QuerySubspace queries all the subspace data present on the node at the given height
func (*Module) RefreshSubspaceData ¶
RefreshSubspaceData refreshes all the data related to the subspace with the given id
func (*Module) RefreshSubspacesData ¶
RefreshSubspacesData refreshes all the subspaces user data
Click to show internal directories.
Click to hide internal directories.