authz

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: 15 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 {
	SaveAuthzGrant(grant types.AuthzGrant) error
	DeleteAuthzGrant(granter string, grantee string, msgTypeURL string, height int64) error
	DeleteExpiredGrants(time time.Time) error
}

type Module

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

func NewModule

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

NewModule returns a new Module instance

func (*Module) HandleMsg

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

HandleMsg implements modules.MessageModule

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) RefreshAuthorizations

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

RefreshAuthorizations refreshes all the authorizations data

func (*Module) RegisterPeriodicOperations

func (m *Module) RegisterPeriodicOperations(scheduler *gocron.Scheduler) error

RegisterPeriodicOperations implements modules.PeriodicOperationsModule

Jump to

Keyboard shortcuts

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