lien

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package lien is a cosmos-sdk module that implements liens. Liens are an encumbrance that prevents the transfer of tokens out of an account, much like the unvested tokens in a vesting account. See spec/ for full details.

Index

Constants

View Source
const (
	LIEN_GET_ACCOUNT_STATE = "LIEN_GET_ACCOUNT_STATE"
	LIEN_GET_STAKING       = "LIEN_GET_STAKING"
	LIEN_CHANGE_LIENED     = "LIEN_CHANGE_LIENED"
)

Variables

View Source
var (
	ModuleName              = types.ModuleName
	NewKeeper               = keeper.NewKeeper
	NewWrappedAccountKeeper = types.NewWrappedAccountKeeper
	StoreKey                = types.StoreKey
)

Functions

func DefaultGenesisState

func DefaultGenesisState() types.GenesisState

DefaultGenesisState returns an empty GenesisState.

func ExportGenesis

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

ExportGenesis reads the store and returns an equivalent GenesisState.

func InitGenesis

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

InitGenesis uses the genesisState to initialize the store.

func NewAppModule

func NewAppModule(k Keeper) module.AppModule

func NewPortHandler

func NewPortHandler(k Keeper) vm.PortHandler

NewPortHandler returns a port handler for the Keeper.

func ValidateGenesis

func ValidateGenesis(genesisState types.GenesisState) error

ValidateGenesis returns whether genesisState is well-formed. Since liens can apply to otherwise empty accounts and the source of truth is stored at the Swingset level, we can only validate the addresses.

Types

type AppModule

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

func (AppModule) BeginBlock

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

func (AppModule) ConsensusVersion

func (am AppModule) ConsensusVersion() uint64

func (AppModule) EndBlock

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage

func (AppModule) InitGenesis

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

func (AppModule) LegacyQuerierHandler

func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) RegisterServices

func (am AppModule) RegisterServices(module.Configurator)

func (AppModule) Route

func (am AppModule) Route() sdk.Route

type AppModuleBasic

type AppModuleBasic struct {
}

AppModuleBasic is the concrete type implementing module.AppModuleBasic.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd() *cobra.Command

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd() *cobra.Command

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name implements the module.AppModuleBasic interface.

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces

func (AppModuleBasic) RegisterInterfaces(_ codectypes.InterfaceRegistry)

func (AppModuleBasic) RegisterLegacyAminoCodec

func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, data json.RawMessage) error

type Keeper

type Keeper = keeper.Keeper

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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