Documentation ¶
Index ¶
- Constants
- Variables
- func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, supplyKeeper supply.Keeper, data GenesisState)
- func NewHandler(keeper Keeper) sdk.Handler
- func ValidateGenesis(data types.GenesisState) error
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type GenesisState
- type Keeper
- type MsgChainActivate
- type MsgChainDeactivate
- type MsgHTLT
- type MsgRedeem
- type MsgRedeemV2
- type MsgRefund
- type MsgSwapInitialize
Constants ¶
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = keeper.DefaultParamspace MsgHTLTConst = types.TypeMsgHTLT MsgRedeemConst = types.TypeMsgRedeem MsgRefundConst = types.TypeMsgRefund PoolName = types.PoolName )
Variables ¶
var ( ModuleCdc = types.ModuleCdc RegisterCodec = types.RegisterCodec DefaultGenesisState = types.DefaultGenesisState ServiceAccAddress = types.ServiceAccAddress ServiceAddress = types.ServiceAddress NewKeeper = keeper.NewKeeper NewMsgRedeem = types.NewMsgRedeem NewMsgHTLT = types.NewMsgHTLT NewMsgRefund = types.NewMsgRefund NewMsgSwapInitialize = types.NewMsgSwapInitialize NewMsgRedeemV2 = types.NewMsgRedeemV2 NewMsgChainDeactivate = types.NewMsgChainDeactivate NewMsgChainActivate = types.NewMsgChainActivate )
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) types.GenesisState
func InitGenesis ¶
func NewHandler ¶
NewHandler creates an sdk.Handler for all the validator type messages
func ValidateGenesis ¶
func ValidateGenesis(data types.GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic GenesisState GenesisState // contains filtered or unexported fields }
AppModule implements an application module for the gov module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock performs a no-op.
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the gov module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the gov module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the gov module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the gov module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns no sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the gov module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
RegisterInvariants registers module invariants
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the gov module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the gov module.
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the gov module.
func (AppModuleBasic) GetTxCmd ¶
func (a AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the gov module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the gov module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the gov module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (a AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the gov module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the gov module.
type MsgChainActivate ¶
type MsgChainActivate = types.MsgChainActivate
type MsgChainDeactivate ¶
type MsgChainDeactivate = types.MsgChainDeactivate
type MsgRedeemV2 ¶
type MsgRedeemV2 = types.MsgRedeemV2
type MsgSwapInitialize ¶
type MsgSwapInitialize = types.MsgSwapInitialize