msgauth

package
v0.4.3-docker Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/msgauth/internal/keeper ALIASGEN: github.com/terra-project/core/x/msgauth/internal/types

Index

Constants

View Source
const (
	EventGrantAuthorization    = types.EventGrantAuthorization
	EventRevokeAuthorization   = types.EventRevokeAuthorization
	EventExecuteAuthorization  = types.EventExecuteAuthorization
	AttributeKeyGrantType      = types.AttributeKeyGrantType
	AttributeKeyGranteeAddress = types.AttributeKeyGranteeAddress
	AttributeKeyGranterAddress = types.AttributeKeyGranterAddress
	AttributeValueCategory     = types.AttributeValueCategory
	ModuleName                 = types.ModuleName
	StoreKey                   = types.StoreKey
	RouterKey                  = types.RouterKey
	QuerierRoute               = types.QuerierRoute
	QueryGrant                 = types.QueryGrant
	QueryGrants                = types.QueryGrants
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                    = keeper.NewKeeper
	NewQuerier                   = keeper.NewQuerier
	SetupTestInput               = keeper.SetupTestInput
	NewAuthorizationGrant        = types.NewAuthorizationGrant
	RegisterCodec                = types.RegisterCodec
	NewGenericAuthorization      = types.NewGenericAuthorization
	NewGenesisState              = types.NewGenesisState
	DefaultGenesisState          = types.DefaultGenesisState
	ValidateGenesis              = types.ValidateGenesis
	GetGrantKey                  = types.GetGrantKey
	GetGrantTimeKey              = types.GetGrantTimeKey
	ExtractAddressesFromGrantKey = types.ExtractAddressesFromGrantKey
	NewMsgGrantAuthorization     = types.NewMsgGrantAuthorization
	NewMsgRevokeAuthorization    = types.NewMsgRevokeAuthorization
	NewMsgExecAuthorized         = types.NewMsgExecAuthorized
	NewQueryGrantParams          = types.NewQueryGrantParams
	NewQueryGrantsParams         = types.NewQueryGrantsParams
	NewSendAuthorization         = types.NewSendAuthorization

	// variable aliases
	ModuleCdc        = types.ModuleCdc
	ErrInvalidPeriod = types.ErrInvalidPeriod
	GrantKey         = types.GrantKey
	GrantQueueKey    = types.GrantQueueKey
)

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, k Keeper)

EndBlocker is called at the end of every block

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)

InitGenesis register all exported authorization entries

func NewHandler

func NewHandler(k Keeper) sdk.Handler

Types

type AppModule

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

AppModule implements the sdk.AppModule interface

func NewAppModule

func NewAppModule(keeper Keeper, accountKeeper auth.AccountKeeper, bankKeeper bank.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)

func (AppModule) EndBlock

EndBlock does nothing

func (AppModule) ExportGenesis

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

ExportGenesis is always empty, as InitGenesis does nothing either

func (AppModule) GenerateGenesisState

func (AppModule) GenerateGenesisState(simState *module.SimulationState)

GenerateGenesisState creates a randomized GenState of the distribution module.

func (AppModule) InitGenesis

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

InitGenesis is ignored, no sense in serializing future upgrades

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

/ NewQuerierHandler registers a query handler to respond to the module-specific queries

func (AppModule) ProposalContents

func (am AppModule) ProposalContents(_ module.SimulationState) []sim.WeightedProposalContent

ProposalContents returns all the distribution content functions used to simulate governance proposals.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the route we respond to for abci queries

func (AppModule) RandomizedParams

func (AppModule) RandomizedParams(r *rand.Rand) []sim.ParamChange

RandomizedParams creates randomized distribution param changes for the simulator.

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants does nothing, there are no invariants to enforce

func (AppModule) RegisterStoreDecoder

func (AppModule) RegisterStoreDecoder(sdr sdk.StoreDecoderRegistry)

RegisterStoreDecoder registers a decoder for distribution module's types

func (AppModule) Route

func (AppModule) Route() string

Route is empty, as we do not handle Messages (just proposals)

func (AppModule) WeightedOperations

func (am AppModule) WeightedOperations(simState module.SimulationState) []sim.WeightedOperation

WeightedOperations returns the all the gov module operations with their respective weights.

type AppModuleBasic

type AppModuleBasic struct{}

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis is an empty object

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the ModuleName

func (AppModuleBasic) RegisterCodec

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

RegisterCodec registers the msgauth types on the amino codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, r *mux.Router)

RegisterRESTRoutes registers all REST query handlers

func (AppModuleBasic) ValidateGenesis

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

ValidateGenesis is always successful, as we ignore the value

type Authorization

type Authorization = types.Authorization

type AuthorizationEntry

type AuthorizationEntry = types.AuthorizationEntry

type AuthorizationGrant

type AuthorizationGrant = types.AuthorizationGrant

type GGMPair

type GGMPair = types.GGMPair

type GenericAuthorization

type GenericAuthorization = types.GenericAuthorization

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, keeper Keeper) (data GenesisState)

ExportGenesis writes the current store values to a genesis file, which can be imported again with InitGenesis

type Keeper

type Keeper = keeper.Keeper

type MsgExecAuthorized

type MsgExecAuthorized = types.MsgExecAuthorized

type MsgGrantAuthorization

type MsgGrantAuthorization = types.MsgGrantAuthorization

type MsgRevokeAuthorization

type MsgRevokeAuthorization = types.MsgRevokeAuthorization

type QueryGrantParams

type QueryGrantParams = types.QueryGrantParams

type QueryGrantsParams

type QueryGrantsParams = types.QueryGrantsParams

type SendAuthorization

type SendAuthorization = types.SendAuthorization

Directories

Path Synopsis
client
cli
nolint
nolint
internal
keeper
nolint:deadcode unused DONTCOVER
nolint:deadcode unused DONTCOVER

Jump to

Keyboard shortcuts

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