Documentation
¶
Index ¶
- func ExportGenesis(ctx sdk.Context, keeper Keeper) *auctiontypes.GenesisState
- func InitGenesis(ctx sdk.Context, keeper Keeper, data *auctiontypes.GenesisState)
- func NewMsgServerImpl(keeper Keeper) auctiontypes.MsgServer
- type Keeper
- func (k Keeper) FinishAuction(ctx sdk.Context) error
- func (k Keeper) GetAccumulatedPaymentsForData(ctx sdk.Context) sdk.Coins
- func (k Keeper) GetAuctionStartThreshold(ctx sdk.Context) (res sdk.Coins)
- func (k Keeper) GetAuctionStatus(ctx sdk.Context) (payments auctiontypes.AuctionStatus)
- func (k Keeper) GetExchangeRates(ctx sdk.Context) (res []coinswaptypes.Exchange)
- func (k Keeper) GetParams(ctx sdk.Context) (params auctiontypes.Params)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetAuctionStatus(ctx sdk.Context, status auctiontypes.AuctionStatus)
- func (k Keeper) SetParams(ctx sdk.Context, value auctiontypes.Params)
- func (k Keeper) StartAuction(ctx sdk.Context) error
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, keeper Keeper) *auctiontypes.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper.
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data *auctiontypes.GenesisState)
InitGenesis new mint genesis
func NewMsgServerImpl ¶
func NewMsgServerImpl(keeper Keeper) auctiontypes.MsgServer
NewMsgServerImpl returns an implementation of the auction MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, key storetypes.StoreKey, subspace paramstypes.Subspace, ok auctiontypes.OracleKeeper, ck auctiontypes.CoinswapKeeper, ) Keeper
func (Keeper) FinishAuction ¶
FinishAuction prohibits selling minigeo
func (Keeper) GetAccumulatedPaymentsForData ¶
GetAccumulatedPaymentsForData returns accumulated payments for data
func (Keeper) GetAuctionStartThreshold ¶
GetAuctionStartThreshold returns auction threshold parameter
func (Keeper) GetAuctionStatus ¶
func (k Keeper) GetAuctionStatus(ctx sdk.Context) (payments auctiontypes.AuctionStatus)
func (Keeper) GetExchangeRates ¶
func (k Keeper) GetExchangeRates(ctx sdk.Context) (res []coinswaptypes.Exchange)
GetExchangeRates returns auction exchange parameter
func (Keeper) GetParams ¶
func (k Keeper) GetParams(ctx sdk.Context) (params auctiontypes.Params)
GetParams returns all current parameters as a types.Params instance.
func (Keeper) SetAuctionStatus ¶
func (k Keeper) SetAuctionStatus(ctx sdk.Context, status auctiontypes.AuctionStatus)
type Querier ¶
type Querier struct {
Keeper
}
func (Querier) AuctionStatus ¶
func (q Querier) AuctionStatus(c context.Context, _ *auctiontypes.QueryAuctionStatusRequest) (*auctiontypes.QueryAuctionStatusResponse, error)
func (Querier) Params ¶
func (q Querier) Params(c context.Context, _ *auctiontypes.QueryParamsRequest) (*auctiontypes.QueryParamsResponse, error)
Click to show internal directories.
Click to hide internal directories.