keeper

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	storeKey storetypes.StoreKey,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
) *Keeper

func (*Keeper) DeleteAdmin

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

func (*Keeper) DeleteAdversary

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

func (*Keeper) DeleteBlacklistAdmin

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

func (*Keeper) DeleteBlacklistPendingOwner

func (k *Keeper) DeleteBlacklistPendingOwner(ctx sdk.Context)

func (*Keeper) DeletePendingOwner

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

func (*Keeper) DeleteSystem

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

func (*Keeper) GetAdmins

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

func (*Keeper) GetAdminsByDenom

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

func (*Keeper) GetAdversaries

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

func (*Keeper) GetAllowedDenoms

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

func (*Keeper) GetAuthority

func (k *Keeper) GetAuthority(ctx sdk.Context) string

func (*Keeper) GetBlacklistAdmins

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

func (*Keeper) GetBlacklistOwner

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

func (*Keeper) GetBlacklistPendingOwner

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

func (*Keeper) GetMaxMintAllowance

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

func (*Keeper) GetMaxMintAllowances

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

func (*Keeper) GetMintAllowance

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

func (*Keeper) GetMintAllowances

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

func (*Keeper) GetMintAllowancesByDenom

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

func (*Keeper) GetOwner

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

func (*Keeper) GetOwners

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

func (*Keeper) GetPendingOwner

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

func (*Keeper) GetPendingOwners

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

func (*Keeper) GetSystems

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

func (*Keeper) GetSystemsByDenom

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

func (*Keeper) IsAdmin

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

func (*Keeper) IsAdversary

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

func (*Keeper) IsAllowedDenom

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

func (*Keeper) IsBlacklistAdmin

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

func (*Keeper) IsSystem

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

func (*Keeper) SendRestrictionFn

func (k *Keeper) SendRestrictionFn(ctx sdk.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 sdk.Context, denom string, admin string)

func (*Keeper) SetAdversary

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

func (*Keeper) SetAllowedDenom

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

func (*Keeper) SetAuthority

func (k *Keeper) SetAuthority(ctx sdk.Context, authority string)

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 sdk.Context, admin string)

func (*Keeper) SetBlacklistOwner

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

func (*Keeper) SetBlacklistPendingOwner

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

func (*Keeper) SetMaxMintAllowance

func (k *Keeper) SetMaxMintAllowance(ctx sdk.Context, denom string, maxAllowance sdk.Int)

func (*Keeper) SetMintAllowance

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

func (*Keeper) SetOwner

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

func (*Keeper) SetPendingOwner

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

func (*Keeper) SetSystem

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

Jump to

Keyboard shortcuts

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