keeper

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustMarshalAllowedAddress added in v0.4.1

func MustMarshalAllowedAddress(cdc codec.BinaryCodec, addr *types.AdminAddr) []byte

func MustMarshalExchangeRate added in v0.4.1

func MustMarshalExchangeRate(cdc codec.BinaryCodec, r *types.ExchangeRate) []byte

func MustUnmarshalAllowedAddress added in v0.4.1

func MustUnmarshalAllowedAddress(cdc codec.BinaryCodec, value []byte) types.AdminAddr

func MustUnmarshalExchangeRate added in v0.4.1

func MustUnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) types.ExchangeRate

func NewMsgServerImpl added in v0.4.1

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func NewQuerier

func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier

func UnmarshalAllowedAddress added in v0.4.1

func UnmarshalAllowedAddress(cdc codec.BinaryCodec, value []byte) (addr types.AdminAddr, err error)

func UnmarshalExchangeRate added in v0.4.1

func UnmarshalExchangeRate(cdc codec.BinaryCodec, value []byte) (r types.ExchangeRate, err error)

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Codec,
	storeKey,
	memKey sdk.StoreKey,

	paramSpace paramtypes.Subspace,

) *Keeper

func (Keeper) AdminAddrAll added in v0.4.1

func (Keeper) AllExchangeRates added in v0.4.1

func (Keeper) DeleteAllowedAddresses

func (k Keeper) DeleteAllowedAddresses(ctx sdk.Context, sender sdk.AccAddress, addrs []types.AdminAddr) error

func (Keeper) DeleteExchangeRate

func (k Keeper) DeleteExchangeRate(ctx sdk.Context, sender sdk.AccAddress, pair string) error

func (Keeper) DeleteExchangeRates added in v0.4.1

func (k Keeper) DeleteExchangeRates(ctx sdk.Context, sender sdk.AccAddress, pairs []string) error

func (Keeper) GetAllExchangeRates added in v0.4.1

func (k Keeper) GetAllExchangeRates(ctx sdk.Context) (rates []types.ExchangeRate)

func (Keeper) GetAllowedAddress added in v0.4.1

func (k Keeper) GetAllowedAddress(ctx sdk.Context, addr sdk.AccAddress) (types.AdminAddr, bool)

func (Keeper) GetAllowedAddresses

func (k Keeper) GetAllowedAddresses(ctx sdk.Context) (allowedAddresses []types.AdminAddr)

func (Keeper) GetExchangeRate

func (k Keeper) GetExchangeRate(ctx sdk.Context, pair string) (exchangeRate types.ExchangeRate, found bool)

func (Keeper) IsAllowedAddress added in v0.4.1

func (k Keeper) IsAllowedAddress(ctx sdk.Context, addr sdk.AccAddress) bool

func (Keeper) Logger

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

func (Keeper) SetAdminAddr

func (k Keeper) SetAdminAddr(ctx sdk.Context, sender sdk.AccAddress, add []types.AdminAddr, del []types.AdminAddr) error

func (Keeper) SetAllowedAddresses

func (k Keeper) SetAllowedAddresses(ctx sdk.Context, sender sdk.AccAddress, addrs []types.AdminAddr) error

func (Keeper) SetAllowedAddressesInternal added in v0.4.1

func (k Keeper) SetAllowedAddressesInternal(ctx sdk.Context, addrs []*types.AdminAddr) error

func (Keeper) SetExchangeRate

func (k Keeper) SetExchangeRate(ctx sdk.Context, sender sdk.AccAddress, rate *types.ExchangeRate) error

func (Keeper) SetExchangeRates added in v0.4.1

func (k Keeper) SetExchangeRates(ctx sdk.Context, sender sdk.AccAddress, rates []*types.ExchangeRate) error

func (Keeper) SetTestAllowedAddresses

func (k Keeper) SetTestAllowedAddresses(ctx sdk.Context, addrs []types.AdminAddr) error

Jump to

Keyboard shortcuts

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