Documentation ¶
Index ¶
- func AllInvariants(k Keeper) sdk.Invariant
- func MismatchUsedAllocationsInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) AllocationPrice(ctx sdk.Context) (res types.AllocationPrice)
- func (k Keeper) AuctionUsedAllocations(c context.Context, req *types.QueryGetAuctionUsedAllocationsRequest) (*types.QueryGetAuctionUsedAllocationsResponse, error)
- func (k Keeper) AuctionUsedAllocationsAll(c context.Context, req *types.QueryAllAuctionUsedAllocationsRequest) (*types.QueryAllAuctionUsedAllocationsResponse, error)
- func (k Keeper) AvailableAllocations(goCtx context.Context, req *types.QueryGetAvailableAllocationsRequest) (*types.QueryGetAvailableAllocationsResponse, error)
- func (k Keeper) GetAllAuctionUsedAllocations(ctx sdk.Context) (list []types.AuctionUsedAllocations)
- func (k Keeper) GetAllAuctionUsedAllocationsByAddress(ctx sdk.Context, address string) (list []types.AuctionUsedAllocations)
- func (k Keeper) GetAllUsedAllocations(ctx sdk.Context) (list []types.UsedAllocations)
- func (k Keeper) GetAuctionUsedAllocations(ctx sdk.Context, address string, auctionID uint64) (val types.AuctionUsedAllocations, found bool)
- func (k Keeper) GetAvailableAllocations(ctx sdk.Context, address string) (sdkmath.Int, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetTotalAllocations(ctx sdk.Context, address string) (sdkmath.Int, error)
- func (k Keeper) GetUsedAllocations(ctx sdk.Context, address string) (val types.UsedAllocations, found bool)
- func (k Keeper) IsRegistrationEnabled(ctx sdk.Context, auctionStartTime time.Time) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ParticipationTierList(ctx sdk.Context) (res []types.Tier)
- func (k Keeper) RegistrationPeriod(ctx sdk.Context) (res time.Duration)
- func (k Keeper) SetAuctionUsedAllocations(ctx sdk.Context, auctionUsedAllocations types.AuctionUsedAllocations)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetUsedAllocations(ctx sdk.Context, usedAllocations types.UsedAllocations)
- func (k Keeper) TotalAllocations(goCtx context.Context, req *types.QueryGetTotalAllocationsRequest) (*types.QueryGetTotalAllocationsResponse, error)
- func (k Keeper) UsedAllocations(c context.Context, req *types.QueryGetUsedAllocationsRequest) (*types.QueryGetUsedAllocationsResponse, error)
- func (k Keeper) UsedAllocationsAll(c context.Context, req *types.QueryAllUsedAllocationsRequest) (*types.QueryAllUsedAllocationsResponse, error)
- func (k Keeper) WithdrawalDelay(ctx sdk.Context) (res time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllInvariants ¶
AllInvariants runs all invariants of the module.
func MismatchUsedAllocationsInvariant ¶
MismatchUsedAllocationsInvariant invariant that checks if the number of used allocations in `UsedAllocations` is different from the sum of per-auction used allocations in `AuctionUsedAllocations`
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func RegisterInvariants ¶
func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
RegisterInvariants registers all module invariants
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, ps paramtypes.Subspace, fundraisingKeeper types.FundraisingKeeper, stakingKeeper types.StakingKeeper, ) *Keeper
func (Keeper) AllocationPrice ¶
func (k Keeper) AllocationPrice(ctx sdk.Context) (res types.AllocationPrice)
AllocationPrice returns the AllocationPrice param
func (Keeper) AuctionUsedAllocations ¶
func (k Keeper) AuctionUsedAllocations(c context.Context, req *types.QueryGetAuctionUsedAllocationsRequest) (*types.QueryGetAuctionUsedAllocationsResponse, error)
func (Keeper) AuctionUsedAllocationsAll ¶
func (k Keeper) AuctionUsedAllocationsAll(c context.Context, req *types.QueryAllAuctionUsedAllocationsRequest) (*types.QueryAllAuctionUsedAllocationsResponse, error)
func (Keeper) AvailableAllocations ¶
func (k Keeper) AvailableAllocations(goCtx context.Context, req *types.QueryGetAvailableAllocationsRequest, ) (*types.QueryGetAvailableAllocationsResponse, error)
func (Keeper) GetAllAuctionUsedAllocations ¶
func (k Keeper) GetAllAuctionUsedAllocations(ctx sdk.Context) (list []types.AuctionUsedAllocations)
GetAllAuctionUsedAllocations returns all auctionUsedAllocations
func (Keeper) GetAllAuctionUsedAllocationsByAddress ¶
func (Keeper) GetAllUsedAllocations ¶
func (k Keeper) GetAllUsedAllocations(ctx sdk.Context) (list []types.UsedAllocations)
GetAllUsedAllocations returns all usedAllocations
func (Keeper) GetAuctionUsedAllocations ¶
func (k Keeper) GetAuctionUsedAllocations(ctx sdk.Context, address string, auctionID uint64) (val types.AuctionUsedAllocations, found bool)
GetAuctionUsedAllocations returns a auctionUsedAllocations from its index
func (Keeper) GetAvailableAllocations ¶
GetAvailableAllocations returns the number of allocations that are unused
func (Keeper) GetTotalAllocations ¶
GetTotalAllocations returns the number of available allocations based on delegations
func (Keeper) GetUsedAllocations ¶
func (k Keeper) GetUsedAllocations(ctx sdk.Context, address string) (val types.UsedAllocations, found bool)
GetUsedAllocations returns a usedAllocations from its index
func (Keeper) IsRegistrationEnabled ¶ added in v0.3.0
IsRegistrationEnabled returns true if the current block time is within the allowed registration period
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ParticipationTierList ¶
ParticipationTierList returns the ParticipationTierList param
func (Keeper) RegistrationPeriod ¶
RegistrationPeriod returns the RegistrationPeriod param
func (Keeper) SetAuctionUsedAllocations ¶
func (k Keeper) SetAuctionUsedAllocations(ctx sdk.Context, auctionUsedAllocations types.AuctionUsedAllocations)
SetAuctionUsedAllocations set a specific auctionUsedAllocations in the store from its index
func (Keeper) SetUsedAllocations ¶
func (k Keeper) SetUsedAllocations(ctx sdk.Context, usedAllocations types.UsedAllocations)
SetUsedAllocations set a specific usedAllocations in the store from its index
func (Keeper) TotalAllocations ¶
func (k Keeper) TotalAllocations(goCtx context.Context, req *types.QueryGetTotalAllocationsRequest) (*types.QueryGetTotalAllocationsResponse, error)
func (Keeper) UsedAllocations ¶
func (k Keeper) UsedAllocations(c context.Context, req *types.QueryGetUsedAllocationsRequest) (*types.QueryGetUsedAllocationsResponse, error)
func (Keeper) UsedAllocationsAll ¶
func (k Keeper) UsedAllocationsAll(c context.Context, req *types.QueryAllUsedAllocationsRequest) (*types.QueryAllUsedAllocationsResponse, error)
Source Files ¶
- auction_used_allocations.go
- available_allocations.go
- grpc.go
- grpc_auction_used_allocations.go
- grpc_available_allocations.go
- grpc_params.go
- grpc_total_allocations.go
- grpc_used_allocations.go
- invariants.go
- keeper.go
- msg.go
- msg_participate.go
- msg_withdraw_allocations.go
- params.go
- registration_period.go
- total_allocations.go
- used_allocations.go