Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/terra-project/core/x/market/internal/types/ ALIASGEN: github.com/terra-project/core/x/market/internal/keeper/
nolint:deadcode unused DONTCOVER
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, k Keeper)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AppModule
- func (am AppModule) BeginBlock(ctx sdk.Context, req 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 (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type GenesisState
- type Keeper
- type MsgSwap
- type OracleKeeper
- type Params
- type QuerySwapParams
- type SupplyKeeper
Constants ¶
const ( DefaultCodespace = types.DefaultCodespace CodeInsufficientSwap = types.CodeInvalidOfferCoin CodeNoEffectivePrice = types.CodeNoEffectivePrice CodeRecursiveSwap = types.CodeRecursiveSwap ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = types.DefaultParamspace QuerySwap = types.QuerySwap QueryTerraPoolDelta = types.QueryTerraPoolDelta QueryParameters = types.QueryParameters )
Variables ¶
var ( // functions aliases RegisterCodec = types.RegisterCodec ErrNoEffectivePrice = types.ErrNoEffectivePrice ErrInvalidOfferCoin = types.ErrInvalidOfferCoin ErrRecursiveSwap = types.ErrRecursiveSwap NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ValidateGenesis = types.ValidateGenesis NewMsgSwap = types.NewMsgSwap DefaultParams = types.DefaultParams NewQuerySwapParams = types.NewQuerySwapParams NewKeeper = keeper.NewKeeper ParamKeyTable = keeper.ParamKeyTable NewQuerier = keeper.NewQuerier // variable aliases ModuleCdc = types.ModuleCdc TerraPoolDeltaKey = types.TerraPoolDeltaKey ParamStoreKeyBasePool = types.ParamStoreKeyBasePool ParamStoreKeyPoolRecoveryPeriod = types.ParamStoreKeyPoolRecoveryPeriod ParamStoreKeyMinSpread = types.ParamStoreKeyMinSpread ParmaStoreKeyTobinTax = types.ParmaStoreKeyTobinTax ParmaStoreKeyIlliquidTobinTaxList = types.ParmaStoreKeyIlliquidTobinTaxList DefaultBasePool = types.DefaultBasePool DefaultPoolRecoveryPeriod = types.DefaultPoolRecoveryPeriod DefaultMinSpread = types.DefaultMinSpread DefaultTobinTax = types.DefaultTobinTax )
Functions ¶
func EndBlocker ¶ added in v0.3.0
EndBlocker is called at the end of every block
func InitGenesis ¶ added in v0.1.1
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis initialize default parameters and the keeper's address to pubkey map
func NewHandler ¶
NewHandler creates a new handler for all market type messages.
Types ¶
type AppModule ¶ added in v0.3.0
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the market module.
func NewAppModule ¶ added in v0.3.0
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶ added in v0.3.0
func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the market module.
func (AppModule) EndBlock ¶ added in v0.3.0
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the market module.
func (AppModule) ExportGenesis ¶ added in v0.3.0
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the market module.
func (AppModule) InitGenesis ¶ added in v0.3.0
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the market module.
func (AppModule) NewHandler ¶ added in v0.3.0
NewHandler returns an sdk.Handler for the market module.
func (AppModule) NewQuerierHandler ¶ added in v0.3.0
NewQuerierHandler returns the market module sdk.Querier.
func (AppModule) QuerierRoute ¶ added in v0.3.0
QuerierRoute returns the market module's querier route name.
func (AppModule) RegisterInvariants ¶ added in v0.3.0
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants performs a no-op.
type AppModuleBasic ¶ added in v0.3.0
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the market module.
func (AppModuleBasic) DefaultGenesis ¶ added in v0.3.0
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the market module.
func (AppModuleBasic) GetQueryCmd ¶ added in v0.3.0
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the market module.
func (AppModuleBasic) GetTxCmd ¶ added in v0.3.0
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns the root tx command for the market module.
func (AppModuleBasic) Name ¶ added in v0.3.0
func (AppModuleBasic) Name() string
Name returns the market module's name
func (AppModuleBasic) RegisterCodec ¶ added in v0.3.0
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the market module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶ added in v0.3.0
func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
RegisterRESTRoutes registers the REST routes for the market module.
func (AppModuleBasic) ValidateGenesis ¶ added in v0.3.0
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the market module.
type GenesisState ¶ added in v0.1.1
type GenesisState = types.GenesisState
func ExportGenesis ¶ added in v0.1.1
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 OracleKeeper ¶ added in v0.2.0
type OracleKeeper = types.OracleKeeper
type QuerySwapParams ¶ added in v0.2.0
type QuerySwapParams = types.QuerySwapParams
type SupplyKeeper ¶ added in v0.3.0
type SupplyKeeper = types.SupplyKeeper