Documentation ¶
Index ¶
- func NewHandler(keeper Keeper) sdk.Handler
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) Add(ctx sdk.Context, track *types.Track) (string, error)
- func (k Keeper) AddShare(ctx sdk.Context, trackID string, entityAddr sdk.AccAddress, ...) error
- func (k Keeper) GetCreatorTracks(ctx sdk.Context, creator sdk.AccAddress) (tracks []types.Track)
- func (k Keeper) GetShare(ctx sdk.Context, trackID string, entityAddr sdk.AccAddress) (share types.Share, found bool)
- func (k Keeper) GetShares(ctx sdk.Context, trackID string) (shares []types.Share)
- func (k Keeper) GetTrack(ctx sdk.Context, trackID string) (track types.Track, ok bool)
- func (k Keeper) GetTracks(ctx sdk.Context) []types.Track
- func (k Keeper) GetTracksPaginated(ctx sdk.Context, params types.QueryTracksParams) []types.Track
- func (k Keeper) IterateShares(ctx sdk.Context, trackID string, cb func(share types.Share) (stop bool))
- func (k Keeper) IterateTracks(ctx sdk.Context, fn func(track types.Track) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintAndSend(ctx sdk.Context, amount sdk.Coin, recipient sdk.AccAddress) error
- func (k Keeper) RemoveShare(ctx sdk.Context, trackID string, entityAddr sdk.AccAddress, ...) error
- func (k Keeper) SetCreatorTrack(ctx sdk.Context, track *types.Track)
- func (k Keeper) SetShare(ctx sdk.Context, share types.Share)
- func (k Keeper) SetTrack(ctx sdk.Context, track *types.Track)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper of the track store
func (Keeper) GetCreatorTracks ¶ added in v0.4.0
func (Keeper) GetShare ¶
func (k Keeper) GetShare(ctx sdk.Context, trackID string, entityAddr sdk.AccAddress) (share types.Share, found bool)
GetShare gets the share of a specific entity on a specific track
func (Keeper) GetTracksPaginated ¶ added in v0.4.0
func (Keeper) IterateShares ¶ added in v0.5.0
func (k Keeper) IterateShares(ctx sdk.Context, trackID string, cb func(share types.Share) (stop bool))
IterateShares iterates over the all the tracks shares and performs a callback function
func (Keeper) IterateTracks ¶ added in v0.4.0
func (Keeper) MintAndSend ¶ added in v0.5.0
func (Keeper) RemoveShare ¶ added in v0.5.0
func (Keeper) SetCreatorTrack ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.