keeper

package
v0.0.0-...-e3796e8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 11

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,
	logger log.Logger,
	storeService store.KVStoreService,

	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 context.Context,
	controller string,
)

RemoveMinterController removes a minterController from the store

func (Keeper) DeletePendingOwner

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

DeletePendingOwner deletes the pending owner in the store

func (Keeper) GetAllBlacklisted

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

GetAllBlacklisted returns all blacklisted

func (Keeper) GetAllMinterControllers

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

GetAllMinterController returns all minterController

func (Keeper) GetAllMinters

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

GetAllMinters returns all minters

func (Keeper) GetBlacklisted

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

GetBlacklisted returns a blacklisted from its index

func (Keeper) GetBlacklister

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

GetBlacklister returns blacklister

func (Keeper) GetMasterMinter

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

GetMasterMinter returns masterMinter

func (Keeper) GetMinterController

func (k Keeper) GetMinterController(
	ctx context.Context,
	controller string,
) (val types.MinterController, found bool)

GetMinterController returns a minterController from its index

func (Keeper) GetMinters

func (k Keeper) GetMinters(
	ctx context.Context,
	address string,
) (val types.Minters, found bool)

GetMinters returns a minters from its index

func (*Keeper) GetMintingDenom

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

GetMintingDenom returns mintingDenom

func (Keeper) GetOwner

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

GetOwner returns owner

func (Keeper) GetPaused

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

GetPaused returns paused

func (Keeper) GetPauser

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

GetPauser returns pauser

func (Keeper) GetPendingOwner

func (k Keeper) GetPendingOwner(ctx context.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 context.Context) bool

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

func (Keeper) RemoveBlacklisted

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

RemoveBlacklisted removes a blacklisted from the store

func (Keeper) RemoveMinters

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

RemoveMinters removes a minters from the store

func (Keeper) SendRestrictionFn

func (k Keeper) SendRestrictionFn(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) (newToAddr sdk.AccAddress, err error)

SendRestrictionFn checks every $USDC transfer executed on the Noble chain against the blocklist and paused state

func (Keeper) SetBlacklisted

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

SetBlacklisted set a specific blacklisted in the store from its index

func (Keeper) SetBlacklister

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

SetBlacklister set blacklister in the store

func (Keeper) SetMasterMinter

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

SetMasterMinter set masterMinter in the store

func (Keeper) SetMinterController

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

SetMinterController set a specific minterController in the store from its index

func (Keeper) SetMinters

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

SetMinters set a specific minters in the store from its index

func (*Keeper) SetMintingDenom

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

SetMintingDenom set mintingDenom in the store

func (Keeper) SetOwner

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

SetOwner set owner in the store

func (Keeper) SetPaused

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

SetPaused set paused in the store

func (Keeper) SetPauser

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

SetPauser set pauser in the store

func (Keeper) SetPendingOwner

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

SetPendingOwner set pending owner in the store

func (Keeper) ValidatePrivileges

func (k Keeper) ValidatePrivileges(ctx context.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