Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AvailableGlobalVirtualGroupFamilies(goCtx context.Context, req *types.AvailableGlobalVirtualGroupFamiliesRequest) (*types.AvailableGlobalVirtualGroupFamiliesResponse, error)
- func (k Keeper) BatchSetGVGStatisticsWithinSP(ctx sdk.Context, gvgsStatisticsWithinSP []*types.GVGStatisticsWithinSP)
- func (k Keeper) CompleteSwapOut(ctx sdk.Context, gvgFamilyID uint32, gvgIDs []uint32, ...) error
- func (k Keeper) DeleteGVG(ctx sdk.Context, primarySp *sptypes.StorageProvider, gvgID uint32) error
- func (k Keeper) DeleteSwapOutInfo(ctx sdk.Context, gvgFamilyID uint32, gvgIDs []uint32, spID uint32) error
- func (k Keeper) DepositDenomForGVG(ctx sdk.Context) (res string)
- func (k Keeper) DeriveVirtualPaymentAccount(groupType string, id uint32) sdk.AccAddress
- func (k Keeper) GVGStakingPerBytes(ctx sdk.Context) (res math.Int)
- func (k Keeper) GenNextGVGFamilyID(ctx sdk.Context) uint32
- func (k Keeper) GenNextGVGID(ctx sdk.Context) uint32
- func (k Keeper) GetAndCheckGVGFamilyAvailableForNewBucket(ctx sdk.Context, familyID uint32) (*types.GlobalVirtualGroupFamily, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetAvailableStakingTokens(ctx sdk.Context, gvg *types.GlobalVirtualGroup) math.Int
- func (k Keeper) GetGVG(ctx sdk.Context, gvgID uint32) (*types.GlobalVirtualGroup, bool)
- func (k Keeper) GetGVGFamily(ctx sdk.Context, familyID uint32) (*types.GlobalVirtualGroupFamily, bool)
- func (k Keeper) GetGVGStatisticsWithinSP(ctx sdk.Context, spID uint32) (*types.GVGStatisticsWithinSP, bool)
- func (k Keeper) GetGlobalVirtualFamilyTotalStakingAndStoredSize(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily) (uint64, uint64, error)
- func (k Keeper) GetGlobalVirtualGroupIfAvailable(ctx sdk.Context, gvgID uint32, expectedStoreSize uint64) (*types.GlobalVirtualGroup, error)
- func (k Keeper) GetOrCreateEmptyGVGFamily(ctx sdk.Context, familyID uint32, primarySPID uint32) (*types.GlobalVirtualGroupFamily, error)
- func (k Keeper) GetOrCreateGVGStatisticsWithinSP(ctx sdk.Context, spID uint32) *types.GVGStatisticsWithinSP
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetStoreSizeOfFamily(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily) uint64
- func (k Keeper) GetTotalStakingStoreSize(ctx sdk.Context, gvg *types.GlobalVirtualGroup) uint64
- func (k Keeper) GlobalVirtualGroup(goCtx context.Context, req *types.QueryGlobalVirtualGroupRequest) (*types.QueryGlobalVirtualGroupResponse, error)
- func (k Keeper) GlobalVirtualGroupByFamilyID(goCtx context.Context, req *types.QueryGlobalVirtualGroupByFamilyIDRequest) (*types.QueryGlobalVirtualGroupByFamilyIDResponse, error)
- func (k Keeper) GlobalVirtualGroupFamilies(goCtx context.Context, req *types.QueryGlobalVirtualGroupFamiliesRequest) (*types.QueryGlobalVirtualGroupFamiliesResponse, error)
- func (k Keeper) GlobalVirtualGroupFamily(goCtx context.Context, req *types.QueryGlobalVirtualGroupFamilyRequest) (*types.QueryGlobalVirtualGroupFamilyResponse, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxGlobalVirtualGroupNumPerFamily(ctx sdk.Context) (res uint32)
- func (k Keeper) MaxStoreSizePerFamily(ctx sdk.Context) (res uint64)
- func (k Keeper) MustGetGVGStatisticsWithinSP(ctx sdk.Context, spID uint32) *types.GVGStatisticsWithinSP
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetGVG(ctx sdk.Context, gvg *types.GlobalVirtualGroup)
- func (k Keeper) SetGVGAndEmitUpdateEvent(ctx sdk.Context, gvg *types.GlobalVirtualGroup) error
- func (k Keeper) SetGVGFamily(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily)
- func (k Keeper) SetGVGFamilyAndEmitUpdateEvent(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily) error
- func (k Keeper) SetGVGStatisticsWithSP(ctx sdk.Context, gvgsStatisticsWithinSP *types.GVGStatisticsWithinSP)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) SetSwapOutInfo(ctx sdk.Context, gvgFamilyID uint32, gvgIDs []uint32, spID uint32, ...) error
- func (k Keeper) SettleAndDistributeGVG(ctx sdk.Context, gvg *types.GlobalVirtualGroup) error
- func (k Keeper) SettleAndDistributeGVGFamily(ctx sdk.Context, sp *sptypes.StorageProvider, ...) error
- func (k Keeper) StorageProviderExitable(ctx sdk.Context, spID uint32) error
- func (k Keeper) SwapOutAsPrimarySP(ctx sdk.Context, primarySP, successorSP *sptypes.StorageProvider, ...) error
- func (k Keeper) SwapOutAsSecondarySP(ctx sdk.Context, secondarySP, successorSP *sptypes.StorageProvider, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, tStoreKey storetypes.StoreKey, authority string, spKeeper types.SpKeeper, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, paymentKeeper types.PaymentKeeper, ) *Keeper
func (Keeper) AvailableGlobalVirtualGroupFamilies ¶
func (k Keeper) AvailableGlobalVirtualGroupFamilies(goCtx context.Context, req *types.AvailableGlobalVirtualGroupFamiliesRequest) (*types.AvailableGlobalVirtualGroupFamiliesResponse, error)
func (Keeper) BatchSetGVGStatisticsWithinSP ¶
func (k Keeper) BatchSetGVGStatisticsWithinSP(ctx sdk.Context, gvgsStatisticsWithinSP []*types.GVGStatisticsWithinSP)
func (Keeper) CompleteSwapOut ¶
func (Keeper) DeleteSwapOutInfo ¶
func (Keeper) DeriveVirtualPaymentAccount ¶
func (k Keeper) DeriveVirtualPaymentAccount(groupType string, id uint32) sdk.AccAddress
func (Keeper) GVGStakingPerBytes ¶
func (Keeper) GetAndCheckGVGFamilyAvailableForNewBucket ¶
func (Keeper) GetAuthority ¶
func (Keeper) GetAvailableStakingTokens ¶
func (Keeper) GetGVGFamily ¶
func (Keeper) GetGVGStatisticsWithinSP ¶
func (Keeper) GetGlobalVirtualFamilyTotalStakingAndStoredSize ¶
func (Keeper) GetGlobalVirtualGroupIfAvailable ¶
func (Keeper) GetOrCreateEmptyGVGFamily ¶
func (Keeper) GetOrCreateGVGStatisticsWithinSP ¶
func (Keeper) GetStoreSizeOfFamily ¶
func (k Keeper) GetStoreSizeOfFamily(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily) uint64
GetStoreSizeOfFamily Rather than calculating the stored size of a Global Virtual Group Family (GVGF) in real-time, it is preferable to calculate it once during the creation of a Global Virtual Group (GVG). This approach is favored because GVG creation is infrequent and occurs with low frequency.
func (Keeper) GetTotalStakingStoreSize ¶
func (Keeper) GlobalVirtualGroup ¶
func (k Keeper) GlobalVirtualGroup(goCtx context.Context, req *types.QueryGlobalVirtualGroupRequest) (*types.QueryGlobalVirtualGroupResponse, error)
func (Keeper) GlobalVirtualGroupByFamilyID ¶
func (k Keeper) GlobalVirtualGroupByFamilyID(goCtx context.Context, req *types.QueryGlobalVirtualGroupByFamilyIDRequest) (*types.QueryGlobalVirtualGroupByFamilyIDResponse, error)
func (Keeper) GlobalVirtualGroupFamilies ¶
func (k Keeper) GlobalVirtualGroupFamilies(goCtx context.Context, req *types.QueryGlobalVirtualGroupFamiliesRequest) (*types.QueryGlobalVirtualGroupFamiliesResponse, error)
func (Keeper) GlobalVirtualGroupFamily ¶
func (k Keeper) GlobalVirtualGroupFamily(goCtx context.Context, req *types.QueryGlobalVirtualGroupFamilyRequest) (*types.QueryGlobalVirtualGroupFamilyResponse, error)
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
func (Keeper) MaxGlobalVirtualGroupNumPerFamily ¶
func (Keeper) MaxStoreSizePerFamily ¶
func (Keeper) MustGetGVGStatisticsWithinSP ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetGVGAndEmitUpdateEvent ¶
func (Keeper) SetGVGFamily ¶
func (k Keeper) SetGVGFamily(ctx sdk.Context, gvgFamily *types.GlobalVirtualGroupFamily)
func (Keeper) SetGVGFamilyAndEmitUpdateEvent ¶
func (Keeper) SetGVGStatisticsWithSP ¶
func (k Keeper) SetGVGStatisticsWithSP(ctx sdk.Context, gvgsStatisticsWithinSP *types.GVGStatisticsWithinSP)
func (Keeper) SetSwapOutInfo ¶
func (Keeper) SettleAndDistributeGVG ¶
func (Keeper) SettleAndDistributeGVGFamily ¶
func (k Keeper) SettleAndDistributeGVGFamily(ctx sdk.Context, sp *sptypes.StorageProvider, family *types.GlobalVirtualGroupFamily) error
func (Keeper) StorageProviderExitable ¶
func (Keeper) SwapOutAsPrimarySP ¶
func (Keeper) SwapOutAsSecondarySP ¶
Click to show internal directories.
Click to hide internal directories.