Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type BadgeData
- type Keeper
- func (k Keeper) AddEpochPayment(ctx sdk.Context, chainID string, epoch uint64, projectID string, ...) (uint64, error)
- func (k Keeper) AddProviderPaymentInEpoch(ctx sdk.Context, chainID string, epoch uint64, projectID string, ...) (userPayment *types.ProviderPaymentStorage, usedCUConsumerTotal uint64, ...)
- func (k Keeper) AddUniquePaymentStorageClientProvider(ctx sdk.Context, chainID string, block uint64, projectID string, ...) (isUnique bool, entryAddr *types.UniquePaymentStorageClientProvider)
- func (k Keeper) BadgeUsedCuExpiry(ctx sdk.Context, badge types.Badge) uint64
- func (k Keeper) BailEntry(ctx sdk.Context, account sdk.AccAddress, chainID string, bail sdk.Coin) error
- func (k Keeper) BeginBlock(ctx sdk.Context)
- func (k Keeper) CalculateEffectiveAllowedCuPerEpochFromPolicies(policies []*planstypes.Policy, cuUsedInProject, cuLeftInSubscription uint64) (allowedCUThisEpoch, allowedCUTotal uint64)
- func (k Keeper) CalculateEffectiveGeolocationFromPolicies(policies []*planstypes.Policy) (int32, error)
- func (k Keeper) CalculateEffectiveProvidersToPairFromPolicies(policies []*planstypes.Policy) (uint64, error)
- func (k Keeper) CalculateEffectiveSelectedProviders(policies []*planstypes.Policy) (planstypes.SELECTED_PROVIDERS_MODE, []string)
- func (k Keeper) CheckUnstakingForCommit(ctx sdk.Context)
- func (k Keeper) CreditStakeEntry(ctx sdk.Context, chainID string, lookUpAddress sdk.AccAddress, ...) (bool, error)
- func (k Keeper) DataReliabilityReward(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) EffectivePolicy(goCtx context.Context, req *types.QueryEffectivePolicyRequest) (*types.QueryEffectivePolicyResponse, error)
- func (k Keeper) EncodeUniquePaymentKey(ctx sdk.Context, projectID string, providerAddress sdk.AccAddress, ...) string
- func (k Keeper) EnforceClientCUsUsageInEpoch(ctx sdk.Context, allowedCU, totalCUInEpochForUserProvider uint64, ...) error
- func (k Keeper) EpochBlocksOverlap(ctx sdk.Context) (res uint64)
- func (k Keeper) EpochPayments(c context.Context, req *types.QueryGetEpochPaymentsRequest) (*types.QueryGetEpochPaymentsResponse, error)
- func (k Keeper) EpochPaymentsAll(c context.Context, req *types.QueryAllEpochPaymentsRequest) (*types.QueryAllEpochPaymentsResponse, error)
- func (k Keeper) ExportBadgesTimers(ctx sdk.Context) []commontypes.RawMessage
- func (k Keeper) ExportProviderQoS(ctx sdk.Context) commontypes.GenesisState
- func (k Keeper) FraudSlashingAmount(ctx sdk.Context) (res uint64)
- func (k Keeper) FraudStakeSlashingFactor(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) FreezeProvider(ctx sdk.Context, provider string, chainIDs []string, reason string) error
- func (k Keeper) GetAllBadgeUsedCu(ctx sdk.Context) (list []types.BadgeUsedCu)
- func (k Keeper) GetAllChainIDs(ctx sdk.Context) []string
- func (k Keeper) GetAllEpochPayments(ctx sdk.Context) (list []types.EpochPayments)
- func (k Keeper) GetAllProviderPaymentStorage(ctx sdk.Context) (list []types.ProviderPaymentStorage)
- func (k Keeper) GetAllUniquePaymentStorageClientProvider(ctx sdk.Context) (list []types.UniquePaymentStorageClientProvider)
- func (k Keeper) GetBadgeUsedCu(ctx sdk.Context, badgeUsedCuKey []byte) (val types.BadgeUsedCu, found bool)
- func (k Keeper) GetConsumerFromUniquePayment(uniquePaymentStorageClientProvider *types.UniquePaymentStorageClientProvider) string
- func (k Keeper) GetEpochPayments(ctx sdk.Context, index string) (val types.EpochPayments, found bool)
- func (k Keeper) GetEpochPaymentsFromBlock(ctx sdk.Context, epoch uint64) (epochPayment types.EpochPayments, found bool, key string)
- func (k Keeper) GetPairing(goCtx context.Context, req *types.QueryGetPairingRequest) (*types.QueryGetPairingResponse, error)
- func (k Keeper) GetPairingForClient(ctx sdk.Context, chainID string, clientAddress sdk.AccAddress) (providers []epochstoragetypes.StakeEntry, errorRet error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetProjectData(ctx sdk.Context, developerKey sdk.AccAddress, chainID string, ...) (proj projectstypes.Project, errRet error)
- func (k Keeper) GetProjectStrictestPolicy(ctx sdk.Context, project projectstypes.Project, chainID string) (*planstypes.Policy, string, error)
- func (k Keeper) GetProviderPaymentStorage(ctx sdk.Context, index string) (val types.ProviderPaymentStorage, found bool)
- func (k Keeper) GetProviderPaymentStorageKey(ctx sdk.Context, chainID string, epoch uint64, providerAddress sdk.AccAddress) string
- func (k Keeper) GetQos(ctx sdk.Context, chainID string, cluster string, provider string) (pairingtypes.QualityOfServiceReport, error)
- func (k Keeper) GetStakeEntry(ctx sdk.Context, chainID string, provider string) (epochstoragetypes.StakeEntry, error)
- func (k Keeper) GetTotalUsedCUForConsumerPerEpoch(ctx sdk.Context, projectID string, uniquePaymentStorageKeys []string, ...) (uint64, error)
- func (k Keeper) GetUniquePaymentStorageClientProvider(ctx sdk.Context, index string) (val types.UniquePaymentStorageClientProvider, found bool)
- func (k Keeper) InitBadgeTimers(ctx sdk.Context, data []commontypes.RawMessage)
- func (k Keeper) InitProviderQoS(ctx sdk.Context, gs commontypes.GenesisState)
- func (k Keeper) JailEntry(ctx sdk.Context, account sdk.AccAddress, chainID string, ...) error
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoinsPerCU(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) ProviderPaymentStorage(c context.Context, req *types.QueryGetProviderPaymentStorageRequest) (*types.QueryGetProviderPaymentStorageResponse, error)
- func (k Keeper) ProviderPaymentStorageAll(c context.Context, req *types.QueryAllProviderPaymentStorageRequest) (*types.QueryAllProviderPaymentStorageResponse, error)
- func (k Keeper) Providers(goCtx context.Context, req *types.QueryProvidersRequest) (*types.QueryProvidersResponse, error)
- func (k Keeper) QoSWeight(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) RecommendedEpochNumToCollectPayment(ctx sdk.Context) (res uint64)
- func (k Keeper) RemoveAllEpochPaymentsForBlock(ctx sdk.Context, blockForDelete uint64)
- func (k Keeper) RemoveBadgeUsedCu(ctx sdk.Context, badgeUsedCuKey []byte)
- func (k Keeper) RemoveEpochPayments(ctx sdk.Context, index string)
- func (k Keeper) RemoveOldEpochPayment(ctx sdk.Context)
- func (k Keeper) RemoveProviderPaymentStorage(ctx sdk.Context, index string)
- func (k Keeper) RemoveUniquePaymentStorageClientProvider(ctx sdk.Context, index string)
- func (k Keeper) SdkPairing(goCtx context.Context, req *types.QueryGetPairingRequest) (*types.QuerySdkPairingResponse, error)
- func (k Keeper) SetBadgeUsedCu(ctx sdk.Context, badgeUsedCu types.BadgeUsedCu)
- func (k Keeper) SetEpochPayments(ctx sdk.Context, epochPayments types.EpochPayments)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProviderPaymentStorage(ctx sdk.Context, providerPaymentStorage types.ProviderPaymentStorage)
- func (k Keeper) SetRecommendedEpochNumToCollectPayment(ctx sdk.Context, val uint64)
- func (k Keeper) SetUniquePaymentStorageClientProvider(ctx sdk.Context, ...)
- func (k Keeper) SlashEntry(ctx sdk.Context, account sdk.AccAddress, chainID string, percentage sdk.Dec) (sdk.Coin, error)
- func (k Keeper) SlashLimit(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) StakeNewEntry(ctx sdk.Context, creator, chainID string, amount sdk.Coin, ...) error
- func (k Keeper) StaticProvidersList(goCtx context.Context, req *types.QueryStaticProvidersListRequest) (*types.QueryStaticProvidersListResponse, error)
- func (k Keeper) UniquePaymentStorageClientProvider(c context.Context, ...) (*types.QueryGetUniquePaymentStorageClientProviderResponse, error)
- func (k Keeper) UniquePaymentStorageClientProviderAll(c context.Context, ...) (*types.QueryAllUniquePaymentStorageClientProviderResponse, error)
- func (k Keeper) UnpayLimit(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) UnstakeEntry(ctx sdk.Context, chainID, creator, unstakeDescription string) error
- func (k Keeper) UnstakeUnresponsiveProviders(ctx sdk.Context, ...)
- func (k Keeper) UpdateProviderQos(epochPayments pairingtypes.EpochPayments)
- func (k Keeper) UserEntry(goCtx context.Context, req *types.QueryUserEntryRequest) (*types.QueryUserEntryResponse, error)
- func (k Keeper) ValidatePairingForClient(ctx sdk.Context, chainID string, clientAddress, providerAddress sdk.AccAddress, ...) (isValidPairing bool, allowedCU, pairedProviders uint64, projectID string, ...)
- func (k Keeper) VerifyClientStake(ctx sdk.Context, chainID string, clientAddress sdk.Address, ...) (clientStakeEntryRet *epochstoragetypes.StakeEntry, errorRet error)
- func (k Keeper) VerifyPairing(goCtx context.Context, req *types.QueryVerifyPairingRequest) (*types.QueryVerifyPairingResponse, error)
- func (k Keeper) VerifyPairingData(ctx sdk.Context, chainID string, clientAddress sdk.AccAddress, block uint64) (epoch uint64, providersType spectypes.Spec_ProvidersTypes, errorRet error)
Constants ¶
const ( EPOCH_BLOCK_DIVIDER uint64 = 5 // determines how many blocks from the previous epoch will be included in the average block time calculation MIN_SAMPLE_STEP uint64 = 1 // the minimal sample step when calculating the average block time )
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, memKey storetypes.StoreKey, ps paramtypes.Subspace, bankKeeper types.BankKeeper, accountKeeper types.AccountKeeper, specKeeper types.SpecKeeper, epochStorageKeeper types.EpochstorageKeeper, projectsKeeper types.ProjectsKeeper, subscriptionKeeper types.SubscriptionKeeper, planKeeper types.PlanKeeper, downtimeKeeper types.DowntimeKeeper, dualStakingKeeper types.DualStakingKeeper, ) *Keeper
func (Keeper) AddEpochPayment ¶ added in v0.4.3
func (k Keeper) AddEpochPayment(ctx sdk.Context, chainID string, epoch uint64, projectID string, providerAddress sdk.AccAddress, usedCU uint64, uniqueIdentifier string) (uint64, error)
Function to add an epoch payment to the epochPayments object
func (Keeper) AddProviderPaymentInEpoch ¶ added in v0.4.3
func (k Keeper) AddProviderPaymentInEpoch(ctx sdk.Context, chainID string, epoch uint64, projectID string, providerAddress sdk.AccAddress, usedCU uint64, uniqueIdentifier string) (userPayment *types.ProviderPaymentStorage, usedCUConsumerTotal uint64, err error)
Function to add a payment (which is represented by a uniquePaymentStorageClientProvider object) to a providerPaymentStorage object
func (Keeper) AddUniquePaymentStorageClientProvider ¶ added in v0.4.3
func (Keeper) BadgeUsedCuExpiry ¶
func (Keeper) BeginBlock ¶
func (Keeper) CalculateEffectiveAllowedCuPerEpochFromPolicies ¶
func (k Keeper) CalculateEffectiveAllowedCuPerEpochFromPolicies(policies []*planstypes.Policy, cuUsedInProject, cuLeftInSubscription uint64) (allowedCUThisEpoch, allowedCUTotal uint64)
func (Keeper) CalculateEffectiveGeolocationFromPolicies ¶
func (k Keeper) CalculateEffectiveGeolocationFromPolicies(policies []*planstypes.Policy) (int32, error)
func (Keeper) CalculateEffectiveProvidersToPairFromPolicies ¶
func (k Keeper) CalculateEffectiveProvidersToPairFromPolicies(policies []*planstypes.Policy) (uint64, error)
func (Keeper) CalculateEffectiveSelectedProviders ¶
func (k Keeper) CalculateEffectiveSelectedProviders(policies []*planstypes.Policy) (planstypes.SELECTED_PROVIDERS_MODE, []string)
func (Keeper) CheckUnstakingForCommit ¶
func (Keeper) CreditStakeEntry ¶
func (Keeper) DataReliabilityReward ¶ added in v0.4.3
func (Keeper) EffectivePolicy ¶
func (k Keeper) EffectivePolicy(goCtx context.Context, req *types.QueryEffectivePolicyRequest) (*types.QueryEffectivePolicyResponse, error)
func (Keeper) EncodeUniquePaymentKey ¶
func (Keeper) EnforceClientCUsUsageInEpoch ¶
func (Keeper) EpochPayments ¶
func (k Keeper) EpochPayments(c context.Context, req *types.QueryGetEpochPaymentsRequest) (*types.QueryGetEpochPaymentsResponse, error)
func (Keeper) EpochPaymentsAll ¶
func (k Keeper) EpochPaymentsAll(c context.Context, req *types.QueryAllEpochPaymentsRequest) (*types.QueryAllEpochPaymentsResponse, error)
func (Keeper) ExportBadgesTimers ¶
func (k Keeper) ExportBadgesTimers(ctx sdk.Context) []commontypes.RawMessage
ExportBadgesTimers exports badges timers data (for genesis)
func (Keeper) ExportProviderQoS ¶
func (k Keeper) ExportProviderQoS(ctx sdk.Context) commontypes.GenesisState
func (Keeper) FraudSlashingAmount ¶ added in v0.4.3
FraudSlashingAmount returns the FraudSlashingAmount param
func (Keeper) FraudStakeSlashingFactor ¶ added in v0.4.3
FraudStakeSlashingFactor returns the FraudStakeSlashingFactor param
func (Keeper) FreezeProvider ¶
func (Keeper) GetAllBadgeUsedCu ¶
func (k Keeper) GetAllBadgeUsedCu(ctx sdk.Context) (list []types.BadgeUsedCu)
GetAllBadgeUsedCu returns all badgeUsedCu
func (Keeper) GetAllEpochPayments ¶
func (k Keeper) GetAllEpochPayments(ctx sdk.Context) (list []types.EpochPayments)
GetAllEpochPayments returns all epochPayments
func (Keeper) GetAllProviderPaymentStorage ¶
func (k Keeper) GetAllProviderPaymentStorage(ctx sdk.Context) (list []types.ProviderPaymentStorage)
GetAllProviderPaymentStorage returns all providerPaymentStorage
func (Keeper) GetAllUniquePaymentStorageClientProvider ¶
func (k Keeper) GetAllUniquePaymentStorageClientProvider(ctx sdk.Context) (list []types.UniquePaymentStorageClientProvider)
GetAllUniquePaymentStorageClientProvider returns all uniquePaymentStorageClientProvider
func (Keeper) GetBadgeUsedCu ¶
func (k Keeper) GetBadgeUsedCu( ctx sdk.Context, badgeUsedCuKey []byte, ) (val types.BadgeUsedCu, found bool)
GetBadgeUsedCu returns a badgeUsedCu from its index
func (Keeper) GetConsumerFromUniquePayment ¶
func (k Keeper) GetConsumerFromUniquePayment(uniquePaymentStorageClientProvider *types.UniquePaymentStorageClientProvider) string
func (Keeper) GetEpochPayments ¶
func (k Keeper) GetEpochPayments( ctx sdk.Context, index string, ) (val types.EpochPayments, found bool)
GetEpochPayments returns a epochPayments from its index
func (Keeper) GetEpochPaymentsFromBlock ¶
func (k Keeper) GetEpochPaymentsFromBlock(ctx sdk.Context, epoch uint64) (epochPayment types.EpochPayments, found bool, key string)
Function to get the epochPayments object from a specific epoch. Note that it also returns the epochPayments object's key which is the epoch in hex representation (base 16)
func (Keeper) GetPairing ¶
func (k Keeper) GetPairing(goCtx context.Context, req *types.QueryGetPairingRequest) (*types.QueryGetPairingResponse, error)
Gets a client's provider list in a specific chain. Also returns the start block of the current epoch, time (in seconds) until there's a new pairing, the block that the chain in the request's spec was changed
func (Keeper) GetPairingForClient ¶
func (k Keeper) GetPairingForClient(ctx sdk.Context, chainID string, clientAddress sdk.AccAddress) (providers []epochstoragetypes.StakeEntry, errorRet error)
func (Keeper) GetProjectData ¶
func (k Keeper) GetProjectData(ctx sdk.Context, developerKey sdk.AccAddress, chainID string, blockHeight uint64) (proj projectstypes.Project, errRet error)
func (Keeper) GetProjectStrictestPolicy ¶
func (k Keeper) GetProjectStrictestPolicy(ctx sdk.Context, project projectstypes.Project, chainID string) (*planstypes.Policy, string, error)
func (Keeper) GetProviderPaymentStorage ¶
func (k Keeper) GetProviderPaymentStorage( ctx sdk.Context, index string, ) (val types.ProviderPaymentStorage, found bool)
GetProviderPaymentStorage returns a providerPaymentStorage from its index
func (Keeper) GetProviderPaymentStorageKey ¶
func (k Keeper) GetProviderPaymentStorageKey(ctx sdk.Context, chainID string, epoch uint64, providerAddress sdk.AccAddress) string
Function to get a providerPaymentStorage object's key (key is chainID_epoch_providerAddress, epoch in hex representation)
func (Keeper) GetQos ¶
func (k Keeper) GetQos(ctx sdk.Context, chainID string, cluster string, provider string) (pairingtypes.QualityOfServiceReport, error)
GetQos gets a provider's QoS excellence report from the providerQosFS
func (Keeper) GetStakeEntry ¶
func (k Keeper) GetStakeEntry(ctx sdk.Context, chainID string, provider string) (epochstoragetypes.StakeEntry, error)
func (Keeper) GetTotalUsedCUForConsumerPerEpoch ¶ added in v0.4.3
func (k Keeper) GetTotalUsedCUForConsumerPerEpoch(ctx sdk.Context, projectID string, uniquePaymentStorageKeys []string, providerAddress string) (uint64, error)
Function to get the total serviced CU by a provider in this epoch for a specific consumer
func (Keeper) GetUniquePaymentStorageClientProvider ¶
func (k Keeper) GetUniquePaymentStorageClientProvider( ctx sdk.Context, index string, ) (val types.UniquePaymentStorageClientProvider, found bool)
GetUniquePaymentStorageClientProvider returns a uniquePaymentStorageClientProvider from its index
func (Keeper) InitBadgeTimers ¶
func (k Keeper) InitBadgeTimers(ctx sdk.Context, data []commontypes.RawMessage)
InitBadgeTimers imports badges timers data (from genesis)
func (Keeper) InitProviderQoS ¶
func (k Keeper) InitProviderQoS(ctx sdk.Context, gs commontypes.GenesisState)
func (Keeper) MintCoinsPerCU ¶ added in v0.4.3
MintCoinsPerCU returns the MintCoinsPerCU param
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ProviderPaymentStorage ¶
func (k Keeper) ProviderPaymentStorage(c context.Context, req *types.QueryGetProviderPaymentStorageRequest) (*types.QueryGetProviderPaymentStorageResponse, error)
func (Keeper) ProviderPaymentStorageAll ¶
func (k Keeper) ProviderPaymentStorageAll(c context.Context, req *types.QueryAllProviderPaymentStorageRequest) (*types.QueryAllProviderPaymentStorageResponse, error)
func (Keeper) Providers ¶
func (k Keeper) Providers(goCtx context.Context, req *types.QueryProvidersRequest) (*types.QueryProvidersResponse, error)
func (Keeper) RecommendedEpochNumToCollectPayment ¶
RecommendedEpochNumToCollectPayment returns the RecommendedEpochNumToCollectPayment param
func (Keeper) RemoveAllEpochPaymentsForBlock ¶ added in v0.4.3
Function to remove all epochPayments objects from a specific epoch
func (Keeper) RemoveBadgeUsedCu ¶
RemoveBadgeUsedCu removes a badgeUsedCu from the store
func (Keeper) RemoveEpochPayments ¶
RemoveEpochPayments removes a epochPayments from the store
func (Keeper) RemoveOldEpochPayment ¶
Function to remove epochPayments objects from deleted epochs (older than the chain's memory)
func (Keeper) RemoveProviderPaymentStorage ¶
RemoveProviderPaymentStorage removes a providerPaymentStorage from the store
func (Keeper) RemoveUniquePaymentStorageClientProvider ¶
RemoveUniquePaymentStorageClientProvider removes a uniquePaymentStorageClientProvider from the store
func (Keeper) SdkPairing ¶
func (k Keeper) SdkPairing(goCtx context.Context, req *types.QueryGetPairingRequest) (*types.QuerySdkPairingResponse, error)
func (Keeper) SetBadgeUsedCu ¶
func (k Keeper) SetBadgeUsedCu(ctx sdk.Context, badgeUsedCu types.BadgeUsedCu)
SetBadgeUsedCu set a specific badgeUsedCu in the store from its index
func (Keeper) SetEpochPayments ¶
func (k Keeper) SetEpochPayments(ctx sdk.Context, epochPayments types.EpochPayments)
SetEpochPayments set a specific epochPayments in the store from its index
func (Keeper) SetProviderPaymentStorage ¶
func (k Keeper) SetProviderPaymentStorage(ctx sdk.Context, providerPaymentStorage types.ProviderPaymentStorage)
SetProviderPaymentStorage set a specific providerPaymentStorage in the store from its index
func (Keeper) SetRecommendedEpochNumToCollectPayment ¶
func (Keeper) SetUniquePaymentStorageClientProvider ¶
func (k Keeper) SetUniquePaymentStorageClientProvider(ctx sdk.Context, uniquePaymentStorageClientProvider types.UniquePaymentStorageClientProvider)
SetUniquePaymentStorageClientProvider set a specific uniquePaymentStorageClientProvider in the store from its index
func (Keeper) SlashEntry ¶
func (Keeper) SlashLimit ¶ added in v0.4.3
func (Keeper) StakeNewEntry ¶
func (Keeper) StaticProvidersList ¶
func (k Keeper) StaticProvidersList(goCtx context.Context, req *types.QueryStaticProvidersListRequest) (*types.QueryStaticProvidersListResponse, error)
func (Keeper) UniquePaymentStorageClientProvider ¶
func (k Keeper) UniquePaymentStorageClientProvider(c context.Context, req *types.QueryGetUniquePaymentStorageClientProviderRequest) (*types.QueryGetUniquePaymentStorageClientProviderResponse, error)
func (Keeper) UniquePaymentStorageClientProviderAll ¶
func (k Keeper) UniquePaymentStorageClientProviderAll(c context.Context, req *types.QueryAllUniquePaymentStorageClientProviderRequest) (*types.QueryAllUniquePaymentStorageClientProviderResponse, error)
func (Keeper) UnpayLimit ¶ added in v0.4.3
func (Keeper) UnstakeEntry ¶
func (Keeper) UnstakeUnresponsiveProviders ¶
func (k Keeper) UnstakeUnresponsiveProviders(ctx sdk.Context, epochsNumToCheckCUForUnresponsiveProvider, epochsNumToCheckCUForComplainers uint64)
Function that returns a map that links between a provider that should be punished and its providerCuCounterForUnreponsiveness
func (Keeper) UpdateProviderQos ¶
func (k Keeper) UpdateProviderQos(epochPayments pairingtypes.EpochPayments)
func (Keeper) UserEntry ¶
func (k Keeper) UserEntry(goCtx context.Context, req *types.QueryUserEntryRequest) (*types.QueryUserEntryResponse, error)
func (Keeper) ValidatePairingForClient ¶
func (Keeper) VerifyClientStake ¶ added in v0.8.1
func (k Keeper) VerifyClientStake(ctx sdk.Context, chainID string, clientAddress sdk.Address, block, epoch uint64) (clientStakeEntryRet *epochstoragetypes.StakeEntry, errorRet error)
func (Keeper) VerifyPairing ¶
func (k Keeper) VerifyPairing(goCtx context.Context, req *types.QueryVerifyPairingRequest) (*types.QueryVerifyPairingResponse, error)
func (Keeper) VerifyPairingData ¶
Source Files ¶
- badge_used_cu.go
- discipline.go
- epoch_payments.go
- grpc_query.go
- grpc_query_effective_policy.go
- grpc_query_epoch_payments.go
- grpc_query_get_pairing.go
- grpc_query_params.go
- grpc_query_provider_payment_storage.go
- grpc_query_providers.go
- grpc_query_static_providers_list.go
- grpc_query_unique_payment_storage_client_provider.go
- grpc_query_user_entry.go
- grpc_query_verify_pairing.go
- keeper.go
- limitConsumer.go
- msg_server.go
- msg_server_freeze.go
- msg_server_relay_payment.go
- msg_server_stake_provider.go
- msg_server_unfreeze.go
- msg_server_unstake_provider.go
- pairing.go
- pairing_next_epoch_time_block.go
- params.go
- provider_payment_storage.go
- qos_excellence.go
- query_sdk_pairing.go
- stakeModify.go
- staking.go
- unique_payment_storage_client_provider.go
- unresponsive_provider.go
- unstaking.go