auth

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 17 Imported by: 2

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