keeper

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBlacklistMsgServer

func NewBlacklistMsgServer(keeper *Keeper) blacklist.MsgServer

func NewBlacklistQueryServer

func NewBlacklistQueryServer(keeper *Keeper) blacklist.QueryServer

func NewMsgServer

func NewMsgServer(keeper *Keeper) types.MsgServer

func NewQueryServer

func NewQueryServer(keeper *Keeper) types.QueryServer

Types

type Keeper

type Keeper struct {
	AllowedDenoms    collections.KeySet[string]
	Owner            collections.Map[string, string]
	PendingOwner     collections.Map[string, string]
	Systems          collections.KeySet[[]byte]
	Admins           collections.KeySet[[]byte]
	MintAllowance    collections.Map[[]byte, []byte]
	MaxMintAllowance collections.Map[string, []byte]

	BlacklistOwner        collections.Item[string]
	BlacklistPendingOwner collections.Item[string]
	BlacklistAdmins       collections.KeySet[string]
	Adversaries           collections.KeySet[string]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	authority string,
	storeService store.KVStoreService,
	eventService event.Service,
	cdc codec.Codec,
	addressCodec address.Codec,
	bankKeeper types.BankKeeper,
) *Keeper

func (*Keeper) DeleteAdmin

func (k *Keeper) DeleteAdmin(ctx context.Context, denom string, admin string) error

func (*Keeper) DeleteAdversary

func (k *Keeper) DeleteAdversary(ctx context.Context, address string) error

func (*Keeper) DeleteBlacklistAdmin

func (k *Keeper) DeleteBlacklistAdmin(ctx context.Context, admin string) error

func (*Keeper) DeleteBlacklistPendingOwner

func (k *Keeper) DeleteBlacklistPendingOwner(ctx context.Context) error

func (*Keeper) DeletePendingOwner

func (k *Keeper) DeletePendingOwner(ctx context.Context, denom string) error

func (*Keeper) DeleteSystem

func (k *Keeper) DeleteSystem(ctx context.Context, denom string, address string) error

func (*Keeper) GetAdmins

func (k *Keeper) GetAdmins(ctx context.Context) (admins []types.Account)

func (*Keeper) GetAdminsByDenom

func (k *Keeper) GetAdminsByDenom(ctx context.Context, denom string) (admins []string)

func (*Keeper) GetAdversaries

func (k *Keeper) GetAdversaries(ctx context.Context) (adversaries []string)

func (*Keeper) GetAllowedDenoms

func (k *Keeper) GetAllowedDenoms(ctx context.Context) (allowedDenoms []string)

func (*Keeper) GetBlacklistAdmins

func (k *Keeper) GetBlacklistAdmins(ctx context.Context) (admins []string)

func (*Keeper) GetBlacklistOwner

func (k *Keeper) GetBlacklistOwner(ctx context.Context) string

func (*Keeper) GetBlacklistPendingOwner

func (k *Keeper) GetBlacklistPendingOwner(ctx context.Context) string

func (*Keeper) GetMaxMintAllowance

func (k *Keeper) GetMaxMintAllowance(ctx context.Context, denom string) (maxAllowance math.Int)

func (*Keeper) GetMaxMintAllowances

func (k *Keeper) GetMaxMintAllowances(ctx context.Context) (maxAllowances map[string]string)

func (*Keeper) GetMintAllowance

func (k *Keeper) GetMintAllowance(ctx context.Context, denom string, address string) (allowance math.Int)

func (*Keeper) GetMintAllowances

func (k *Keeper) GetMintAllowances(ctx context.Context) (allowances []types.Allowance)

func (*Keeper) GetMintAllowancesByDenom

func (k *Keeper) GetMintAllowancesByDenom(ctx context.Context, denom string) (allowances []types.Allowance)

func (*Keeper) GetOwner

func (k *Keeper) GetOwner(ctx context.Context, denom string) string

func (*Keeper) GetOwners

func (k *Keeper) GetOwners(ctx context.Context) map[string]string

func (*Keeper) GetPendingOwner

func (k *Keeper) GetPendingOwner(ctx context.Context, denom string) string

func (*Keeper) GetPendingOwners

func (k *Keeper) GetPendingOwners(ctx context.Context) map[string]string

func (*Keeper) GetSystems

func (k *Keeper) GetSystems(ctx context.Context) (systems []types.Account)

func (*Keeper) GetSystemsByDenom

func (k *Keeper) GetSystemsByDenom(ctx context.Context, denom string) (systems []string)

func (*Keeper) IsAdmin

func (k *Keeper) IsAdmin(ctx context.Context, denom string, admin string) bool

func (*Keeper) IsAdversary

func (k *Keeper) IsAdversary(ctx context.Context, address string) bool

func (*Keeper) IsAllowedDenom

func (k *Keeper) IsAllowedDenom(ctx context.Context, denom string) bool

func (*Keeper) IsBlacklistAdmin

func (k *Keeper) IsBlacklistAdmin(ctx context.Context, admin string) bool

func (*Keeper) IsSystem

func (k *Keeper) IsSystem(ctx context.Context, denom string, address string) bool

func (*Keeper) SendRestrictionFn

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

SendRestrictionFn executes necessary checks against all EURe, GBPe, ISKe, USDe transfers.

func (*Keeper) SetAdmin

func (k *Keeper) SetAdmin(ctx context.Context, denom string, admin string) error

func (*Keeper) SetAdversary

func (k *Keeper) SetAdversary(ctx context.Context, address string) error

func (*Keeper) SetAllowedDenom

func (k *Keeper) SetAllowedDenom(ctx context.Context, denom string) error

func (*Keeper) SetBankKeeper

func (k *Keeper) SetBankKeeper(bankKeeper types.BankKeeper)

SetBankKeeper overwrites the bank keeper used in this module.

func (*Keeper) SetBlacklistAdmin

func (k *Keeper) SetBlacklistAdmin(ctx context.Context, admin string) error

func (*Keeper) SetBlacklistOwner

func (k *Keeper) SetBlacklistOwner(ctx context.Context, owner string) error

func (*Keeper) SetBlacklistPendingOwner

func (k *Keeper) SetBlacklistPendingOwner(ctx context.Context, pendingOwner string) error

func (*Keeper) SetMaxMintAllowance

func (k *Keeper) SetMaxMintAllowance(ctx context.Context, denom string, maxAllowance math.Int) error

func (*Keeper) SetMintAllowance

func (k *Keeper) SetMintAllowance(ctx context.Context, denom string, address string, allowance math.Int) error

func (*Keeper) SetOwner

func (k *Keeper) SetOwner(ctx context.Context, denom string, owner string) error

func (*Keeper) SetPendingOwner

func (k *Keeper) SetPendingOwner(ctx context.Context, denom string, pendingOwner string) error

func (*Keeper) SetSystem

func (k *Keeper) SetSystem(ctx context.Context, denom string, address string) error

Jump to

Keyboard shortcuts

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