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
- Variables
- func DefaultGenesisState() types.GenesisState
- func ExportGenesis(ctx sdk.Context, keeper Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, genesisState types.GenesisState)
- func NewAppModule(k Keeper) module.AppModule
- func NewPortHandler(k Keeper) vm.PortHandler
- func ValidateGenesis(genesisState types.GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(sdk.Context, abci.RequestBeginBlock)
- func (am AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate
- func (am AppModule) LegacyQuerierHandler(*codec.LegacyAmino) sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(module.Configurator)
- func (am AppModule) Route() sdk.Route
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(_ client.Context, _ *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(_ codectypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, config client.TxEncodingConfig, data json.RawMessage) error
- type Keeper
Constants ¶
const ( LIEN_GET_ACCOUNT_STATE = "LIEN_GET_ACCOUNT_STATE" LIEN_GET_STAKING = "LIEN_GET_STAKING" LIEN_CHANGE_LIENED = "LIEN_CHANGE_LIENED" )
Variables ¶
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 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 (AppModule) EndBlock ¶
func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
func (AppModule) ExportGenesis ¶
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 (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(module.Configurator)
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