auth

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccounts

func GetAccounts(height int64, addresses []string) []types.Account

GetAccounts returns the account data for the given addresses

func GetGenesisAccounts

func GetGenesisAccounts(appState map[string]json.RawMessage, cdc codec.Codec) ([]types.Account, error)

GetGenesisAccounts parses the given appState and returns the genesis accounts

func GetGenesisVestingAccounts

func GetGenesisVestingAccounts(appState map[string]json.RawMessage, cdc codec.Codec) ([]exported.VestingAccount, error)

GetGenesisVestingAccounts parses the given appState and returns the genesis vesting accounts

Types

type Module

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

Module represents the x/auth module

func NewModule

func NewModule(messagesParser messages.MessageAddressesParser, cdc codec.Codec, db *database.Db) *Module

NewModule builds a new Module instance

func (*Module) HandleGenesis

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

HandleGenesis implements modules.GenesisModule

func (*Module) HandleMsg

func (m *Module) HandleMsg(_ 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) RefreshAccounts

func (m *Module) RefreshAccounts(height int64, addresses []string) error

RefreshAccounts takes the given addresses and for each one queries the chain retrieving the account data and stores it inside the database.

Jump to

Keyboard shortcuts

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