Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddReferral(ctx sdk.Context, fromAddr sdk.AccAddress, code string) (referral types.Referral, err error)
- func (k Keeper) AddRevenue(ctx sdk.Context, referral types.Referral, coins sdk.Coins) (revenue types.Revenue, err error)
- func (k Keeper) CreateRevenue(ctx sdk.Context, referral types.Referral) (revenue types.Revenue, err error)
- func (k Keeper) DeleteReferral(ctx sdk.Context, referral types.Referral)
- func (k Keeper) DeleteReferralByAddrIndex(ctx sdk.Context, addr sdk.AccAddress)
- func (k Keeper) DeleteReferralByCodeIndex(ctx sdk.Context, code string)
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllReferrals(ctx sdk.Context) (referrals []types.Referral)
- func (k Keeper) GetAllRevenues(ctx sdk.Context) (revenues []types.Revenue)
- func (k Keeper) GetLastReferralID(ctx sdk.Context) uint64
- func (k Keeper) GetMaxParentDepth(ctx sdk.Context) (maxParentDepth sdk.Int)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetReferral(ctx sdk.Context, referralID uint64) (referral types.Referral, found bool)
- func (k Keeper) GetReferralByAddr(ctx sdk.Context, addr sdk.AccAddress) (referral types.Referral, found bool)
- func (k Keeper) GetReferralByCode(ctx sdk.Context, code string) (referral types.Referral, found bool)
- func (k Keeper) GetRevenue(ctx sdk.Context, revenueID uint64) (revenue types.Revenue, found bool)
- func (k Keeper) GetSwapFeeReferralRate(ctx sdk.Context) (swapFeeReferralRate sdk.Dec)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
- func (k Keeper) InputOutputCoinsByReferral(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error
- func (k Keeper) IterateAllReferrals(ctx sdk.Context, cb func(referral types.Referral) (stop bool))
- func (k Keeper) IterateAllRevenues(ctx sdk.Context, cb func(revenue types.Revenue) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetLastReferralID(ctx sdk.Context, lastReferralID uint64)
- func (k Keeper) SetMaxParentDepth(ctx sdk.Context, i sdk.Int)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetParent(ctx sdk.Context, fromAddr sdk.AccAddress, parent string) (referral types.Referral, err error)
- func (k Keeper) SetReferral(ctx sdk.Context, referral types.Referral)
- func (k Keeper) SetReferralByAddrIndex(ctx sdk.Context, addr sdk.AccAddress, referralID uint64)
- func (k Keeper) SetReferralByCodeIndex(ctx sdk.Context, code string, referralID uint64)
- func (k Keeper) SetRevenue(ctx sdk.Context, revenue types.Revenue)
- type Querier
- func (k Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Querier) Referral(c context.Context, req *types.QueryReferralRequest) (*types.QueryReferralResponse, error)
- func (k Querier) ReferralByAddr(c context.Context, req *types.QueryReferralByAddrRequest) (*types.QueryReferralResponse, error)
- func (k Querier) ReferralByCode(c context.Context, req *types.QueryReferralByCodeRequest) (*types.QueryReferralResponse, error)
- func (k Querier) Referrals(c context.Context, req *types.QueryReferralsRequest) (*types.QueryReferralsResponse, error)
- func (k Querier) Revenues(c context.Context, req *types.QueryRevenuesRequest) (*types.QueryRevenuesResponse, 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, paramSpace paramstypes.Subspace, bankKeeper types.BankKeeper, ) Keeper
func (Keeper) AddReferral ¶ added in v0.0.4
func (Keeper) AddRevenue ¶ added in v0.0.4
func (Keeper) CreateRevenue ¶ added in v0.0.4
func (Keeper) DeleteReferral ¶ added in v0.0.4
func (Keeper) DeleteReferralByAddrIndex ¶ added in v0.0.4
func (k Keeper) DeleteReferralByAddrIndex(ctx sdk.Context, addr sdk.AccAddress)
func (Keeper) DeleteReferralByCodeIndex ¶ added in v0.0.4
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the module's exported genesis
func (Keeper) GetAllReferrals ¶ added in v0.0.4
func (Keeper) GetAllRevenues ¶ added in v0.0.4
func (Keeper) GetLastReferralID ¶ added in v0.0.4
func (Keeper) GetMaxParentDepth ¶ added in v0.0.4
GetMaxParentDepth returns the maximum parent depth for bonus distribution parameter.
func (Keeper) GetReferral ¶ added in v0.0.4
func (Keeper) GetReferralByAddr ¶ added in v0.0.4
func (Keeper) GetReferralByCode ¶ added in v0.0.4
func (Keeper) GetRevenue ¶ added in v0.0.4
func (Keeper) GetSwapFeeReferralRate ¶ added in v0.0.4
GetMaxParentDepth returns the maximum parent depth for bonus distribution parameter.
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState)
InitGenesis initializes the module's state from a provided genesis state.
func (Keeper) InputOutputCoinsByReferral ¶ added in v0.0.4
func (Keeper) IterateAllReferrals ¶ added in v0.0.4
func (Keeper) IterateAllRevenues ¶ added in v0.0.4
func (Keeper) SetLastReferralID ¶ added in v0.0.4
func (Keeper) SetMaxParentDepth ¶ added in v0.0.4
SetMaxParentDepth sets the maximum parent depth for bonus distribution.
func (Keeper) SetReferral ¶ added in v0.0.4
func (Keeper) SetReferralByAddrIndex ¶ added in v0.0.4
func (Keeper) SetReferralByCodeIndex ¶ added in v0.0.4
type Querier ¶
type Querier struct {
Keeper
}
func NewQuerier ¶
func (Querier) Params ¶
func (k Querier) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Querier) Referral ¶ added in v0.0.4
func (k Querier) Referral(c context.Context, req *types.QueryReferralRequest) (*types.QueryReferralResponse, error)
func (Querier) ReferralByAddr ¶ added in v0.0.4
func (k Querier) ReferralByAddr(c context.Context, req *types.QueryReferralByAddrRequest) (*types.QueryReferralResponse, error)
func (Querier) ReferralByCode ¶ added in v0.0.4
func (k Querier) ReferralByCode(c context.Context, req *types.QueryReferralByCodeRequest) (*types.QueryReferralResponse, error)
func (Querier) Referrals ¶ added in v0.0.4
func (k Querier) Referrals(c context.Context, req *types.QueryReferralsRequest) (*types.QueryReferralsResponse, error)
func (Querier) Revenues ¶ added in v0.0.4
func (k Querier) Revenues(c context.Context, req *types.QueryRevenuesRequest) (*types.QueryRevenuesResponse, error)
Click to show internal directories.
Click to hide internal directories.