swap

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 24 Imported by: 1

Documentation

Index

Constants

View Source
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

View Source
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 BeginBlocker added in v1.2.12

func BeginBlocker(ctx sdk.Context, k Keeper)

func ExportGenesis

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

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, supplyKeeper supply.Keeper, data GenesisState)

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

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

func NewAppModule(keeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

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

BeginBlock performs a no-op.

func (AppModule) EndBlock

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) Name

func (AppModule) Name() string

Name returns the gov module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the gov module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns no sdk.Querier.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the gov module's querier route name.

func (AppModule) RegisterInvariants

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

RegisterInvariants registers module invariants

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the gov module.

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 GenesisState

type GenesisState = types.GenesisState
var InitialGenesisState GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgChainActivate

type MsgChainActivate = types.MsgChainActivate

type MsgChainDeactivate

type MsgChainDeactivate = types.MsgChainDeactivate

type MsgHTLT

type MsgHTLT = types.MsgHTLT

type MsgRedeem

type MsgRedeem = types.MsgRedeem

type MsgRedeemV2

type MsgRedeemV2 = types.MsgRedeemV2

type MsgRefund

type MsgRefund = types.MsgRefund

type MsgSwapInitialize

type MsgSwapInitialize = types.MsgSwapInitialize

Directories

Path Synopsis
client
cli
internal

Jump to

Keyboard shortcuts

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