auth

package
v0.0.0-...-4955b9a Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package auth nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/pokt-network/pocket-core/x/auth/types

Index

Constants

View Source
const (
	ModuleName        = types.ModuleName
	StoreKey          = types.StoreKey
	FeeCollectorName  = types.FeeCollectorName
	QuerierRoute      = types.QuerierRoute
	DefaultParamspace = types.DefaultCodespace
	QueryAccount      = types.QueryAccount
	Burner            = types.Burner
	Staking           = types.Staking
	Minter            = types.Minter
)

Const Constants

Variables

View Source
var (
	NewKeeper                 = keeper.NewKeeper
	NewModuleAddress          = types.NewModuleAddress
	NewBaseAccountWithAddress = types.NewBaseAccountWithAddress
	RegisterCodec             = types.RegisterCodec
	CountSubKeys              = types.CountSubKeys
	StdSignBytes              = types.StdSignBytes
	DefaultTxDecoder          = types.DefaultTxDecoder
	DefaultTxEncoder          = types.DefaultTxEncoder
	NewTxBuilder              = types.NewTxBuilder
	ModuleCdc                 = types.ModuleCdc
)

Functions

func DeductFees

func DeductFees(keeper keeper.Keeper, ctx sdk.Ctx, tx types.StdTx) sdk.Error

DeductFees deducts fees from the given account.

func ExportGenesis

func ExportGenesis(ctx sdk.Ctx, k keeper.Keeper) types.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper

func GetSignBytes

func GetSignBytes(chainID string, stdTx types.StdTx) ([]byte, error)

GetSignBytes returns a slice of bytes to sign over for a given transaction and an account.

func InitGenesis

func InitGenesis(ctx sdk.Ctx, k keeper.Keeper, data types.GenesisState)

InitGenesis sets supply information for genesis.

CONTRACT: all types of accounts must have been already initialized/created

func NewAnteHandler

func NewAnteHandler(ak keeper.Keeper) sdk.AnteHandler

NewAnteHandler returns an AnteHandler that checks signatures and deducts fees from the first signer.

func NewQuerier

func NewQuerier(keeper keeper.Keeper) sdk.Querier

NewQuerier creates a querier for auth REST endpoints

func ValidateMemo

func ValidateMemo(stdTx types.StdTx, params Params) sdk.Error

ValidateMemo validates the memo size.

func ValidateSignatureDepth

func ValidateSignatureDepth(limit uint64, publicKey posCrypto.PublicKeyMultiSig) (ok bool)

func ValidateTransaction

func ValidateTransaction(ctx sdk.Ctx, k Keeper, stdTx types.StdTx, params Params, txIndexer txindex.TxIndexer, txBz []byte, simulate bool) sdk.Error

Types

type Account

type Account = exported.Account

Type exported types

func GetSignerAcc

func GetSignerAcc(ctx sdk.Ctx, ak keeper.Keeper, addr sdk.Address) (Account, sdk.Error)

GetSignerAcc returns an account for a given address that is expected to sign a transaction.

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule app module object ___________________________

func NewAppModule

func NewAppModule(accountKeeper keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Ctx, _ abci.RequestBeginBlock)

BeginBlock module begin-block

func (AppModule) EndBlock

EndBlock module end-block

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Ctx) json.RawMessage

ExportGenesis module export genesis

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Ctx, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis module init-genesis

func (AppModule) Name

func (AppModule) Name() string

Name module name

func (AppModule) NewHandler

func (AppModule) NewHandler() sdk.Handler

NewHandler module handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler module querier

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute module querier route name

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants register invariants

func (AppModule) Route

func (AppModule) Route() string

Route module message route name

func (AppModule) UpgradeCodec

func (am AppModule) UpgradeCodec(ctx sdk.Ctx)

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis default genesis state

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name module name

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec register module codec

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis module validate genesis

type BaseAccount

type BaseAccount = types.BaseAccount

Type exported types

type GenesisState

type GenesisState = types.GenesisState

Type exported types

type Keeper

type Keeper = keeper.Keeper

Type exported types

type Params

type Params = types.Params

Type exported types

type ProtoStdTx

type ProtoStdTx = types.ProtoStdTx

Type exported types

type QueryAccountParams

type QueryAccountParams = types.QueryAccountParams

Type exported types

type StdSignDoc

type StdSignDoc = types.StdSignDoc

Type exported types

type StdSignature

type StdSignature = types.ProtoStdSignature

Type exported types

type StdTx

type StdTx = types.StdTx

Type exported types

type TxBuilder

type TxBuilder = types.TxBuilder

Type exported types

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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