mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
5bdffd5c1c
* first pass * fix bid amount calculation * untested refactor of sim ops and genesis * refactor operations and fix auction bug * add param changes and genesis * address minor TODO * add first draft of invariants * improve param generation * complete invariants * fix genesis tests * log no-op better * small fixes * add missed comma Co-authored-by: John Maheswaran <john@kava.io>
124 lines
6.4 KiB
Go
124 lines
6.4 KiB
Go
// nolint
|
|
// autogenerated code using github.com/rigelrozanski/multitool
|
|
// aliases generated for the following subdirectories:
|
|
// ALIASGEN: github.com/kava-labs/kava/x/auction/keeper
|
|
// ALIASGEN: github.com/kava-labs/kava/x/auction/types
|
|
package auction
|
|
|
|
import (
|
|
"github.com/kava-labs/kava/x/auction/keeper"
|
|
"github.com/kava-labs/kava/x/auction/types"
|
|
)
|
|
|
|
const (
|
|
DefaultCodespace = types.DefaultCodespace
|
|
CodeInvalidInitialAuctionID = types.CodeInvalidInitialAuctionID
|
|
CodeInvalidModulePermissions = types.CodeInvalidModulePermissions
|
|
CodeUnrecognizedAuctionType = types.CodeUnrecognizedAuctionType
|
|
CodeAuctionNotFound = types.CodeAuctionNotFound
|
|
CodeAuctionHasNotExpired = types.CodeAuctionHasNotExpired
|
|
CodeAuctionHasExpired = types.CodeAuctionHasExpired
|
|
CodeInvalidBidDenom = types.CodeInvalidBidDenom
|
|
CodeInvalidLotDenom = types.CodeInvalidLotDenom
|
|
CodeBidTooSmall = types.CodeBidTooSmall
|
|
CodeBidTooLarge = types.CodeBidTooLarge
|
|
CodeLotTooSmall = types.CodeLotTooSmall
|
|
CodeLotTooLarge = types.CodeLotTooLarge
|
|
CodeCollateralAuctionIsInReversePhase = types.CodeCollateralAuctionIsInReversePhase
|
|
CodeCollateralAuctionIsInForwardPhase = types.CodeCollateralAuctionIsInForwardPhase
|
|
EventTypeAuctionStart = types.EventTypeAuctionStart
|
|
EventTypeAuctionBid = types.EventTypeAuctionBid
|
|
EventTypeAuctionClose = types.EventTypeAuctionClose
|
|
AttributeValueCategory = types.AttributeValueCategory
|
|
AttributeKeyAuctionID = types.AttributeKeyAuctionID
|
|
AttributeKeyAuctionType = types.AttributeKeyAuctionType
|
|
AttributeKeyBidder = types.AttributeKeyBidder
|
|
AttributeKeyBidDenom = types.AttributeKeyBidDenom
|
|
AttributeKeyLotDenom = types.AttributeKeyLotDenom
|
|
AttributeKeyBidAmount = types.AttributeKeyBidAmount
|
|
AttributeKeyLotAmount = types.AttributeKeyLotAmount
|
|
AttributeKeyEndTime = types.AttributeKeyEndTime
|
|
DefaultNextAuctionID = types.DefaultNextAuctionID
|
|
ModuleName = types.ModuleName
|
|
StoreKey = types.StoreKey
|
|
RouterKey = types.RouterKey
|
|
DefaultParamspace = types.DefaultParamspace
|
|
QuerierRoute = types.QuerierRoute
|
|
DefaultMaxAuctionDuration = types.DefaultMaxAuctionDuration
|
|
DefaultBidDuration = types.DefaultBidDuration
|
|
QueryGetAuction = types.QueryGetAuction
|
|
QueryGetAuctions = types.QueryGetAuctions
|
|
QueryGetParams = types.QueryGetParams
|
|
)
|
|
|
|
var (
|
|
// functions aliases
|
|
NewKeeper = keeper.NewKeeper
|
|
NewQuerier = keeper.NewQuerier
|
|
RegisterInvariants = keeper.RegisterInvariants
|
|
NewSurplusAuction = types.NewSurplusAuction
|
|
NewDebtAuction = types.NewDebtAuction
|
|
NewCollateralAuction = types.NewCollateralAuction
|
|
NewWeightedAddresses = types.NewWeightedAddresses
|
|
RegisterCodec = types.RegisterCodec
|
|
ErrInvalidInitialAuctionID = types.ErrInvalidInitialAuctionID
|
|
ErrInvalidModulePermissions = types.ErrInvalidModulePermissions
|
|
ErrUnrecognizedAuctionType = types.ErrUnrecognizedAuctionType
|
|
ErrAuctionNotFound = types.ErrAuctionNotFound
|
|
ErrAuctionHasNotExpired = types.ErrAuctionHasNotExpired
|
|
ErrAuctionHasExpired = types.ErrAuctionHasExpired
|
|
ErrInvalidBidDenom = types.ErrInvalidBidDenom
|
|
ErrInvalidLotDenom = types.ErrInvalidLotDenom
|
|
ErrBidTooSmall = types.ErrBidTooSmall
|
|
ErrBidTooLarge = types.ErrBidTooLarge
|
|
ErrLotTooSmall = types.ErrLotTooSmall
|
|
ErrLotTooLarge = types.ErrLotTooLarge
|
|
ErrCollateralAuctionIsInReversePhase = types.ErrCollateralAuctionIsInReversePhase
|
|
ErrCollateralAuctionIsInForwardPhase = types.ErrCollateralAuctionIsInForwardPhase
|
|
NewGenesisState = types.NewGenesisState
|
|
DefaultGenesisState = types.DefaultGenesisState
|
|
GetAuctionKey = types.GetAuctionKey
|
|
GetAuctionByTimeKey = types.GetAuctionByTimeKey
|
|
Uint64ToBytes = types.Uint64ToBytes
|
|
Uint64FromBytes = types.Uint64FromBytes
|
|
NewMsgPlaceBid = types.NewMsgPlaceBid
|
|
NewParams = types.NewParams
|
|
DefaultParams = types.DefaultParams
|
|
ParamKeyTable = types.ParamKeyTable
|
|
NewQueryAllAuctionParams = types.NewQueryAllAuctionParams
|
|
NewAuctionWithPhase = types.NewAuctionWithPhase
|
|
|
|
// variable aliases
|
|
DistantFuture = types.DistantFuture
|
|
ModuleCdc = types.ModuleCdc
|
|
AuctionKeyPrefix = types.AuctionKeyPrefix
|
|
AuctionByTimeKeyPrefix = types.AuctionByTimeKeyPrefix
|
|
NextAuctionIDKey = types.NextAuctionIDKey
|
|
DefaultIncrement = types.DefaultIncrement
|
|
KeyBidDuration = types.KeyBidDuration
|
|
KeyMaxAuctionDuration = types.KeyMaxAuctionDuration
|
|
KeyIncrementSurplus = types.KeyIncrementSurplus
|
|
KeyIncrementDebt = types.KeyIncrementDebt
|
|
KeyIncrementCollateral = types.KeyIncrementCollateral
|
|
)
|
|
|
|
type (
|
|
Keeper = keeper.Keeper
|
|
Auction = types.Auction
|
|
Auctions = types.Auctions
|
|
BaseAuction = types.BaseAuction
|
|
SurplusAuction = types.SurplusAuction
|
|
DebtAuction = types.DebtAuction
|
|
CollateralAuction = types.CollateralAuction
|
|
WeightedAddresses = types.WeightedAddresses
|
|
SupplyKeeper = types.SupplyKeeper
|
|
GenesisAuction = types.GenesisAuction
|
|
GenesisAuctions = types.GenesisAuctions
|
|
GenesisState = types.GenesisState
|
|
MsgPlaceBid = types.MsgPlaceBid
|
|
Params = types.Params
|
|
QueryAuctionParams = types.QueryAuctionParams
|
|
QueryAllAuctionParams = types.QueryAllAuctionParams
|
|
AuctionWithPhase = types.AuctionWithPhase
|
|
)
|