Back to

Package market

Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module:


nolint autogenerated code using aliases generated for the following subdirectories: ALIASGEN: ALIASGEN:

nolint:deadcode unused DONTCOVER



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


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

func EndBlocker

func EndBlocker(ctx sdk.Context, k Keeper)

EndBlocker is called at the end of every block

func InitGenesis

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

InitGenesis initialize default parameters and the keeper's address to pubkey map

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler creates a new handler for all market type messages.

type AppModule

type AppModule struct {
	// contains filtered or unexported fields

AppModule implements an application module for the market module.

func NewAppModule

func NewAppModule(keeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

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

BeginBlock returns the begin blocker for the market module.

func (AppModule) EndBlock

func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the market module.

func (AppModule) ExportGenesis

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

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

InitGenesis performs genesis initialization for the market module.

func (AppModule) Name

func (AppModule) Name() string

Name returns the market module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the market module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the market module sdk.Querier.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the market module's querier route name.

func (AppModule) RegisterInvariants

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the market module.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the market module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the market module.

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the market module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns the root tx command for the market module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the market module's name

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the market module's types for the given codec.

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

RegisterRESTRoutes registers the REST routes for the market module.

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the market module.

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

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 Keeper

type Keeper = keeper.Keeper

type MsgSwap

type MsgSwap = types.MsgSwap

type OracleKeeper

type OracleKeeper = types.OracleKeeper

type Params

type Params = types.Params

type QuerySwapParams

type QuerySwapParams = types.QuerySwapParams

type SupplyKeeper

type SupplyKeeper = types.SupplyKeeper

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier