Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Campaign(goCtx context.Context, req *types.QueryCampaignRequest) (*types.QueryCampaignResponse, error)
- func (k Keeper) Campaigns(goCtx context.Context, req *types.QueryCampaignsRequest) (*types.QueryCampaignsResponse, error)
- func (k Keeper) CancelCampaign(ctx sdk.Context, campaignId uint64, creator sdk.AccAddress) error
- func (k Keeper) Claim(ctx sdk.Context, campaign types.Campaign, claimer sdk.AccAddress, ...) error
- func (k Keeper) Claims(goCtx context.Context, req *types.QueryClaimsRequest) (*types.QueryClaimsResponse, error)
- func (k Keeper) CreateCampaign(ctx sdk.Context, creator sdk.AccAddress, campaign types.Campaign) error
- func (k Keeper) DepositCampaign(ctx sdk.Context, campaignId uint64, depositor sdk.AccAddress, amount sdk.Coin) error
- func (k Keeper) FinalizeAndEndCampaigns(ctx sdk.Context) error
- func (k Keeper) GetAllCampaigns(ctx sdk.Context) (list []types.Campaign)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetCampaign(ctx sdk.Context, id uint64) (val types.Campaign, found bool)
- func (k Keeper) GetCampaignCreationFee(ctx sdk.Context) (creationFee sdk.Coin)
- func (k Keeper) GetCampaignsByCreator(ctx sdk.Context, creator sdk.AccAddress) (campaigns []types.Campaign)
- func (k Keeper) GetClaims(ctx sdk.Context, campaignId uint64) (claims []types.Claim)
- func (k Keeper) GetMaxCampaignDuration(ctx sdk.Context) (duration time.Duration)
- func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
- func (k Keeper) GetNextCampaignNumber(ctx sdk.Context) uint64
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) HasCampaign(ctx sdk.Context, id uint64) bool
- func (k Keeper) HasClaim(ctx sdk.Context, id uint64, nftId string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveCampaign(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveClaims(ctx sdk.Context, campaignId uint64)
- func (k Keeper) SetCampaign(ctx sdk.Context, campaign types.Campaign)
- func (k Keeper) SetCampaignWithCreator(ctx sdk.Context, creator sdk.AccAddress, id uint64)
- func (k Keeper) SetClaim(ctx sdk.Context, claim types.Claim)
- func (k Keeper) SetNextCampaignNumber(ctx sdk.Context, number uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) UnsetCampaignWithCreator(ctx sdk.Context, creator sdk.AccAddress, id uint64)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the token MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Codec, storeKey storetypes.StoreKey, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, nftKeeper types.NftKeeper, streampayKeeper types.StreamPayKeeper, distributionKeeper types.DistributionKeeper, authority string, ) Keeper
func (Keeper) Campaign ¶
func (k Keeper) Campaign(goCtx context.Context, req *types.QueryCampaignRequest, ) (*types.QueryCampaignResponse, error)
Campaign returns details of the campaign
func (Keeper) Campaigns ¶
func (k Keeper) Campaigns(goCtx context.Context, req *types.QueryCampaignsRequest, ) (*types.QueryCampaignsResponse, error)
func (Keeper) CancelCampaign ¶
CancelCampaign ...
func (Keeper) Claim ¶
func (k Keeper) Claim(ctx sdk.Context, campaign types.Campaign, claimer sdk.AccAddress, claim types.Claim) error
Claim ...
func (Keeper) Claims ¶
func (k Keeper) Claims(goCtx context.Context, req *types.QueryClaimsRequest, ) (*types.QueryClaimsResponse, error)
func (Keeper) CreateCampaign ¶
func (k Keeper) CreateCampaign( ctx sdk.Context, creator sdk.AccAddress, campaign types.Campaign, ) error
CreateCampaign ...
func (Keeper) DepositCampaign ¶
func (Keeper) FinalizeAndEndCampaigns ¶
FinalizeAndEndCampaigns finalizes and ends and all campaigns that are reached end time
func (Keeper) GetAllCampaigns ¶
GetAllCampaigns returns all campaigns
func (Keeper) GetAuthority ¶
GetAuthority returns the x/itc module's authority.
func (Keeper) GetCampaign ¶
GetCampaign returns a campaign by its id
func (Keeper) GetCampaignCreationFee ¶
GetCampaignCreationFee returns the creation fee required to create a campaign.
func (Keeper) GetCampaignsByCreator ¶
func (k Keeper) GetCampaignsByCreator(ctx sdk.Context, creator sdk.AccAddress) (campaigns []types.Campaign)
GetCampaignsByCreator returns all campaigns created by specific address
func (Keeper) GetMaxCampaignDuration ¶
GetMaxCampaignDuration returns the maximum duration allowed to create a campaign.
func (Keeper) GetModuleAccountAddress ¶
func (k Keeper) GetModuleAccountAddress(ctx sdk.Context) sdk.AccAddress
func (Keeper) GetNextCampaignNumber ¶
GetNextCampaignNumber get the next campaign number
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns params of the itc module.
func (Keeper) RemoveCampaign ¶
RemoveCampaign removes a campaign from the store
func (Keeper) SetCampaign ¶
SetCampaign set a specific campaign in the store
func (Keeper) SetCampaignWithCreator ¶
func (Keeper) SetNextCampaignNumber ¶
SetNextCampaignNumber set the next campaign number
func (Keeper) UnsetCampaignWithCreator ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place state migrations.
func (Migrator) Migrate1to2 ¶
Migrate1to2 migrates the x/itc module state from the consensus version 1 to version 2. Specifically, it takes the parameters that are currently stored and managed by the x/params modules and stores them directly into the x/itc module state.