keeper

package
v6.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) types.MsgServer

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,
	ps paramtypes.Subspace,

	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) Burn

func (k Keeper) Burn(ctx sdk.Context, msg *types.MsgBurn) (*types.MsgBurnResponse, error)

func (Keeper) DeleteMinterController

func (k Keeper) DeleteMinterController(
	ctx sdk.Context,
	controller string,

)

RemoveMinterController removes a minterController from the store

func (Keeper) DeletePendingOwner

func (k Keeper) DeletePendingOwner(ctx sdk.Context)

DeletePendingOwner deletes the pending owner in the store

func (Keeper) GetAllBlacklisted

func (k Keeper) GetAllBlacklisted(ctx sdk.Context) (list []types.Blacklisted)

GetAllBlacklisted returns all blacklisted

func (Keeper) GetAllMinterControllers

func (k Keeper) GetAllMinterControllers(ctx sdk.Context) (list []types.MinterController)

GetAllMinterController returns all minterController

func (Keeper) GetAllMinters

func (k Keeper) GetAllMinters(ctx sdk.Context) (list []types.Minters)

GetAllMinters returns all minters

func (Keeper) GetBlacklisted

func (k Keeper) GetBlacklisted(ctx sdk.Context, addressBz []byte) (val types.Blacklisted, found bool)

GetBlacklisted returns a blacklisted from its index

func (Keeper) GetBlacklister

func (k Keeper) GetBlacklister(ctx sdk.Context) (val types.Blacklister, found bool)

GetBlacklister returns blacklister

func (Keeper) GetMasterMinter

func (k Keeper) GetMasterMinter(ctx sdk.Context) (val types.MasterMinter, found bool)

GetMasterMinter returns masterMinter

func (Keeper) GetMinterController

func (k Keeper) GetMinterController(
	ctx sdk.Context,
	controller string,

) (val types.MinterController, found bool)

GetMinterController returns a minterController from its index

func (Keeper) GetMinters

func (k Keeper) GetMinters(
	ctx sdk.Context,
	address string,

) (val types.Minters, found bool)

GetMinters returns a minters from its index

func (*Keeper) GetMintingDenom

func (k *Keeper) GetMintingDenom(ctx sdk.Context) (val types.MintingDenom)

GetMintingDenom returns mintingDenom

func (Keeper) GetOwner

func (k Keeper) GetOwner(ctx sdk.Context) (val types.Owner, found bool)

GetOwner returns owner

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetPaused

func (k Keeper) GetPaused(ctx sdk.Context) (val types.Paused)

GetPaused returns paused

func (Keeper) GetPauser

func (k Keeper) GetPauser(ctx sdk.Context) (val types.Pauser, found bool)

GetPauser returns pauser

func (Keeper) GetPendingOwner

func (k Keeper) GetPendingOwner(ctx sdk.Context) (val types.Owner, found bool)

GetPendingOwner returns pending owner

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Mint

func (k Keeper) Mint(ctx sdk.Context, msg *types.MsgMint) (*types.MsgMintResponse, error)

func (Keeper) MintingDenomSet

func (k Keeper) MintingDenomSet(ctx sdk.Context) bool

MintingDenomSet returns true if the MintingDenom is already set in the store, it returns false otherwise.

func (Keeper) Params

func (Keeper) RemoveBlacklisted

func (k Keeper) RemoveBlacklisted(ctx sdk.Context, addressBz []byte)

RemoveBlacklisted removes a blacklisted from the store

func (Keeper) RemoveMinters

func (k Keeper) RemoveMinters(
	ctx sdk.Context,
	address string,

)

RemoveMinters removes a minters from the store

func (Keeper) SetBlacklisted

func (k Keeper) SetBlacklisted(ctx sdk.Context, blacklisted types.Blacklisted)

SetBlacklisted set a specific blacklisted in the store from its index

func (Keeper) SetBlacklister

func (k Keeper) SetBlacklister(ctx sdk.Context, blacklister types.Blacklister)

SetBlacklister set blacklister in the store

func (Keeper) SetMasterMinter

func (k Keeper) SetMasterMinter(ctx sdk.Context, masterMinter types.MasterMinter)

SetMasterMinter set masterMinter in the store

func (Keeper) SetMinterController

func (k Keeper) SetMinterController(ctx sdk.Context, minterController types.MinterController)

SetMinterController set a specific minterController in the store from its index

func (Keeper) SetMinters

func (k Keeper) SetMinters(ctx sdk.Context, minters types.Minters)

SetMinters set a specific minters in the store from its index

func (*Keeper) SetMintingDenom

func (k *Keeper) SetMintingDenom(ctx sdk.Context, mintingDenom types.MintingDenom)

SetMintingDenom set mintingDenom in the store

func (Keeper) SetOwner

func (k Keeper) SetOwner(ctx sdk.Context, owner types.Owner)

SetOwner set owner in the store

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetPaused

func (k Keeper) SetPaused(ctx sdk.Context, paused types.Paused)

SetPaused set paused in the store

func (Keeper) SetPauser

func (k Keeper) SetPauser(ctx sdk.Context, pauser types.Pauser)

SetPauser set pauser in the store

func (Keeper) SetPendingOwner

func (k Keeper) SetPendingOwner(ctx sdk.Context, owner types.Owner)

SetPendingOwner set pending owner in the store

func (Keeper) ValidatePrivileges

func (k Keeper) ValidatePrivileges(ctx sdk.Context, address string) error

ValidatePrivileges checks if a specified address has already been assigned to a privileged role.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL