Documentation
¶
Index ¶
- func AllInvariants(k Keeper) sdk.Invariant
- func MismatchUsedAllocationsInvariant(k Keeper) sdk.Invariant
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)
- type Keeper
- func (k Keeper) AddressCodec() address.Codec
- func (k Keeper) AllAuctionUsedAllocations(ctx context.Context, address string) ([]types.AuctionUsedAllocations, error)
- func (k Keeper) AllUsedAllocations(ctx context.Context) ([]types.UsedAllocations, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAvailableAllocations(ctx context.Context, address string) (sdkmath.Int, error)
- func (k Keeper) GetTotalAllocations(ctx context.Context, address string) (sdkmath.Int, error)
- func (k Keeper) IsRegistrationEnabled(ctx context.Context, auctionStartTime time.Time) (bool, error)
- func (k Keeper) Logger() log.Logger
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 NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) types.QueryServer
NewQueryServerImpl returns an implementation of the QueryServer 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 {
Schema collections.Schema
Params collections.Item[types.Params]
AuctionUsedAllocations collections.Map[collections.Pair[sdk.AccAddress, uint64], types.AuctionUsedAllocations]
UsedAllocations collections.Map[string, types.UsedAllocations]
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, addressCodec address.Codec, storeService store.KVStoreService, logger log.Logger, authority string, stakingKeeper types.StakingKeeper, fundraisingKeeper types.FundraisingKeeper, ) Keeper
func (Keeper) AddressCodec ¶
AddressCodec returns the address codec.
func (Keeper) AllAuctionUsedAllocations ¶
func (k Keeper) AllAuctionUsedAllocations(ctx context.Context, address string) ([]types.AuctionUsedAllocations, error)
AllAuctionUsedAllocations returns all AuctionUsedAllocations.
func (Keeper) AllUsedAllocations ¶
AllUsedAllocations returns all UsedAllocations.
func (Keeper) GetAuthority ¶
GetAuthority returns the module's authority.
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
Source Files
¶
- available_allocations.go
- invariants.go
- keeper.go
- msg_server.go
- msg_server_participate.go
- msg_server_withdraw_allocations.go
- msg_update_params.go
- query.go
- query_auction_used_allocations.go
- query_available_allocations.go
- query_params.go
- query_total_allocations.go
- query_used_allocations.go
- registration_period.go
- total_allocations.go
- used_allocations.go