Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AffiliateInfo(c context.Context, req *types.AffiliateInfoRequest) (*types.AffiliateInfoResponse, error)
- func (k Keeper) AffiliateOverrides(c context.Context, req *types.AffiliateOverridesRequest) (*types.AffiliateOverridesResponse, error)
- func (k Keeper) AffiliateParameters(c context.Context, req *types.AffiliateParametersRequest) (*types.AffiliateParametersResponse, error)
- func (k Keeper) AffiliateWhitelist(c context.Context, req *types.AffiliateWhitelistRequest) (*types.AffiliateWhitelistResponse, error)
- func (k Keeper) AllAffiliateTiers(c context.Context, req *types.AllAffiliateTiersRequest) (*types.AllAffiliateTiersResponse, error)
- func (k Keeper) GetAffiliateOverrides(ctx sdk.Context) (types.AffiliateOverrides, error)
- func (k Keeper) GetAffiliateOverridesMap(ctx sdk.Context) (map[string]bool, error)
- func (k Keeper) GetAffiliateParameters(ctx sdk.Context) (types.AffiliateParameters, error)
- func (k Keeper) GetAffiliateWhitelist(ctx sdk.Context) (types.AffiliateWhitelist, error)
- func (k Keeper) GetAffiliateWhitelistMap(ctx sdk.Context) (map[string]uint32, error)deprecated
- func (k Keeper) GetAllAffiliateTiers(ctx sdk.Context) (types.AffiliateTiers, error)
- func (k Keeper) GetAllAffilliateOverrides(ctx sdk.Context) (types.AffiliateOverrides, error)
- func (k Keeper) GetIndexerEventManager() indexer_manager.IndexerEventManager
- func (k Keeper) GetReferredBy(ctx sdk.Context, referee string) (string, bool)
- func (k Keeper) GetTakerFeeShare(ctx sdk.Context, address string, affiliateOverrides map[string]bool) (affiliateAddress string, feeSharePpm uint32, exists bool, err error)
- func (k Keeper) GetTierForAffiliate(ctx sdk.Context, affiliateAddr string, affiliateOverrides map[string]bool) (tierLevel uint32, feeSharePpm uint32, err error)
- func (k Keeper) HasAuthority(authority string) bool
- func (k Keeper) InitializeForGenesis(ctx sdk.Context)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ReferredBy(ctx context.Context, req *types.ReferredByRequest) (*types.ReferredByResponse, error)
- func (k Keeper) RegisterAffiliate(ctx sdk.Context, referee string, affiliateAddr string) error
- func (k Keeper) SetAffiliateOverrides(ctx sdk.Context, overrides types.AffiliateOverrides) error
- func (k Keeper) SetAffiliateWhitelist(ctx sdk.Context, whitelist types.AffiliateWhitelist) errordeprecated
- func (k *Keeper) SetFeetiersKeeper(feetiersKeeper types.FeetiersKeeper)
- func (k Keeper) UpdateAffiliateParameters(ctx sdk.Context, msg *types.MsgUpdateAffiliateParameters) error
- func (k Keeper) UpdateAffiliateTiers(ctx sdk.Context, affiliateTiers types.AffiliateTiers) 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, authorities []string, statsKeeper types.StatsKeeper, indexerEventManager indexer_manager.IndexerEventManager, ) *Keeper
func (Keeper) AffiliateInfo ¶
func (k Keeper) AffiliateInfo(c context.Context, req *types.AffiliateInfoRequest) (*types.AffiliateInfoResponse, error)
func (Keeper) AffiliateOverrides ¶
func (k Keeper) AffiliateOverrides(c context.Context, req *types.AffiliateOverridesRequest) (*types.AffiliateOverridesResponse, error)
func (Keeper) AffiliateParameters ¶
func (k Keeper) AffiliateParameters(c context.Context, req *types.AffiliateParametersRequest) (*types.AffiliateParametersResponse, error)
func (Keeper) AffiliateWhitelist ¶
func (k Keeper) AffiliateWhitelist(c context.Context, req *types.AffiliateWhitelistRequest) (*types.AffiliateWhitelistResponse, error)
func (Keeper) AllAffiliateTiers ¶
func (k Keeper) AllAffiliateTiers(c context.Context, req *types.AllAffiliateTiersRequest) (*types.AllAffiliateTiersResponse, error)
func (Keeper) GetAffiliateOverrides ¶
func (Keeper) GetAffiliateOverridesMap ¶
func (Keeper) GetAffiliateParameters ¶
func (Keeper) GetAffiliateWhitelist ¶
DO NOT USE: This will be deprecated soon.
func (Keeper) GetAllAffiliateTiers ¶
GetAllAffiliateTiers returns all affiliate tiers.
func (Keeper) GetAllAffilliateOverrides ¶
func (Keeper) GetIndexerEventManager ¶
func (k Keeper) GetIndexerEventManager() indexer_manager.IndexerEventManager
func (Keeper) GetReferredBy ¶
GetReferredBy returns the affiliate address for a referee address.
func (Keeper) GetTakerFeeShare ¶
func (k Keeper) GetTakerFeeShare( ctx sdk.Context, address string, affiliateOverrides map[string]bool, ) ( affiliateAddress string, feeSharePpm uint32, exists bool, err error, )
GetTakerFeeShare returns the taker fee share for an address based on the affiliate tiers. If the address is in the whitelist, the fee share ppm is overridden.
func (Keeper) GetTierForAffiliate ¶
func (k Keeper) GetTierForAffiliate( ctx sdk.Context, affiliateAddr string, affiliateOverrides map[string]bool, ) ( tierLevel uint32, feeSharePpm uint32, err error)
GetTierForAffiliate returns the tier an affiliate address is qualified for. Assumes that the affiliate tiers are sorted by level in ascending order.
func (Keeper) HasAuthority ¶
func (Keeper) InitializeForGenesis ¶
func (Keeper) ReferredBy ¶
func (k Keeper) ReferredBy(ctx context.Context, req *types.ReferredByRequest) (*types.ReferredByResponse, error)
func (Keeper) RegisterAffiliate ¶
RegisterAffiliate registers an affiliate address for a referee address.
func (Keeper) SetAffiliateOverrides ¶
func (Keeper) SetAffiliateWhitelist
deprecated
func (*Keeper) SetFeetiersKeeper ¶
func (k *Keeper) SetFeetiersKeeper(feetiersKeeper types.FeetiersKeeper)
func (Keeper) UpdateAffiliateParameters ¶
func (Keeper) UpdateAffiliateTiers ¶
UpdateAffiliateTiers updates the affiliate tiers. Used primarily through governance.