Documentation ¶
Index ¶
- func BeginBlocker(_ sdk.Context, _ abci.RequestBeginBlock, _ keeper.Keeper)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k *Keeper) AddAdmin(ctx sdk.Context, admin types.Admin) error
- func (k *Keeper) AddDistributor(ctx sdk.Context, info types.DistributorInfo) error
- func (k Keeper) Admin(goCtx context.Context, req *types.QueryAdminRequest) (*types.QueryAdminResponse, error)
- func (k Keeper) Admins(goCtx context.Context, req *types.QueryAdminsRequest) (*types.QueryAdminsResponse, error)
- func (k Keeper) Distributor(goCtx context.Context, req *types.QueryDistributorRequest) (*types.QueryDistributorResponse, error)
- func (k Keeper) Distributors(goCtx context.Context, req *types.QueryDistributorsRequest) (*types.QueryDistributorsResponse, error)
- func (k *Keeper) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
- func (k *Keeper) GetAdmin(ctx sdk.Context, address string) (types.Admin, error)
- func (k Keeper) GetAdmins(ctx sdk.Context) ([]types.Admin, error)
- func (k *Keeper) GetDistributor(ctx sdk.Context, address string) (types.DistributorInfo, error)
- func (k *Keeper) GetDistributors(ctx sdk.Context) ([]types.DistributorInfo, error)
- func (k *Keeper) HandleAddDistributorProposal(ctx sdk.Context, p *types.AddDistributorProposal) error
- func (k Keeper) IsTestingMode() bool
- func (k Keeper) IterateAdmins(ctx sdk.Context, handler func(address string, editOption bool) bool)
- func (k Keeper) IterateDistributors(ctx sdk.Context, handler func(address string, end_date uint64) bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k *Keeper) RemoveAdmin(ctx sdk.Context, address string) error
- func (k *Keeper) RemoveDistributor(ctx sdk.Context, address string) error
- func (k *Keeper) SetTestingMode(testingMode bool)
- func (k Keeper) ValidateAdmin(ctx sdk.Context, address string) error
- func (k Keeper) ValidateDistributor(ctx sdk.Context, address string) error
- func (k Keeper) ValidateTransaction(ctx sdk.Context, address string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginBlocker ¶
BeginBlocker
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct { AuthKeeper types.AccountKeeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, at types.AccountKeeper, testingMode bool, ) *Keeper
func (*Keeper) AddDistributor ¶
func (Keeper) Admin ¶
func (k Keeper) Admin( goCtx context.Context, req *types.QueryAdminRequest, ) (*types.QueryAdminResponse, error)
Admin queries admin with address.
func (Keeper) Admins ¶
func (k Keeper) Admins( goCtx context.Context, req *types.QueryAdminsRequest, ) (*types.QueryAdminsResponse, error)
Admins queries request of all admins.
func (Keeper) Distributor ¶
func (k Keeper) Distributor( goCtx context.Context, req *types.QueryDistributorRequest, ) (*types.QueryDistributorResponse, error)
Distributor queries distributor with address.
func (Keeper) Distributors ¶
func (k Keeper) Distributors( goCtx context.Context, req *types.QueryDistributorsRequest, ) (*types.QueryDistributorsResponse, error)
Distributors queries request of all distributors.
func (*Keeper) EndBlock ¶
func (k *Keeper) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate
func (*Keeper) GetDistributor ¶
func (*Keeper) GetDistributors ¶
func (*Keeper) HandleAddDistributorProposal ¶
func (Keeper) IsTestingMode ¶
func (Keeper) IterateAdmins ¶
func (Keeper) IterateDistributors ¶
func (*Keeper) RemoveDistributor ¶
func (*Keeper) SetTestingMode ¶
func (Keeper) ValidateAdmin ¶
ValidateAdmin returns error if the given adress is not allowed admin.
func (Keeper) ValidateDistributor ¶
ValidateDistributor returns error if the given adress is not allowed distributor.
Click to show internal directories.
Click to hide internal directories.