keeper

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServiceServer

func NewMsgServiceServer(keeper Keeper) types.MsgServiceServer

func NewQueryServiceServer

func NewQueryServiceServer(k Keeper) types.QueryServiceServer

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key sdk.StoreKey, params paramstypes.Subspace, channel expected.ChannelKeeper,
	port expected.PortKeeper, scoped expected.ScopedKeeper, assetKeeper assetkeeper.Keeper) *Keeper

func (*Keeper) AuthenticateCapability

func (k *Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool

func (*Keeper) BindPort

func (k *Keeper) BindPort(ctx sdk.Context, id string) error

func (*Keeper) ChanCloseInit

func (k *Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error

func (*Keeper) ClaimCapability

func (k *Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error

func (*Keeper) DeleteCalldata

func (k *Keeper) DeleteCalldata(ctx sdk.Context, id uint64)

func (*Keeper) DeleteMarketForAsset

func (k *Keeper) DeleteMarketForAsset(ctx sdk.Context, id uint64)

func (*Keeper) GetCalldata

func (k *Keeper) GetCalldata(ctx sdk.Context, id uint64) (calldata types.Calldata, found bool)

func (*Keeper) GetCalldataID

func (k *Keeper) GetCalldataID(ctx sdk.Context) uint64

func (*Keeper) GetMarket

func (k *Keeper) GetMarket(ctx sdk.Context, symbol string) (market types.Market, found bool)

func (*Keeper) GetMarketForAsset

func (k *Keeper) GetMarketForAsset(ctx sdk.Context, id uint64) (market types.Market, found bool)

func (*Keeper) GetMarkets

func (k *Keeper) GetMarkets(ctx sdk.Context) (markets []types.Market)

func (*Keeper) GetParams

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

func (*Keeper) GetPriceForAsset

func (k *Keeper) GetPriceForAsset(ctx sdk.Context, id uint64) (uint64, bool)

func (*Keeper) GetPriceForMarket

func (k *Keeper) GetPriceForMarket(ctx sdk.Context, symbol string) (uint64, bool)

func (*Keeper) HandleUpdateAdminProposal

func (k *Keeper) HandleUpdateAdminProposal(ctx sdk.Context, prop *types.UpdateAdminProposal) error

func (*Keeper) HasAsset

func (k *Keeper) HasAsset(ctx sdk.Context, id uint64) bool

func (*Keeper) HasMarket

func (k *Keeper) HasMarket(ctx sdk.Context, symbol string) bool

func (*Keeper) HasMarketForAsset

func (k *Keeper) HasMarketForAsset(ctx sdk.Context, id uint64) bool

func (*Keeper) IBCPort

func (k *Keeper) IBCPort(ctx sdk.Context) (s string)

func (*Keeper) IBCVersion

func (k *Keeper) IBCVersion(ctx sdk.Context) (s string)

func (Keeper) IsBound

func (k Keeper) IsBound(ctx sdk.Context, id string) bool

func (*Keeper) OnRecvPacket

func (k *Keeper) OnRecvPacket(ctx sdk.Context, res bandpacket.OracleResponsePacketData) error

func (*Keeper) OracleAskCount

func (k *Keeper) OracleAskCount(ctx sdk.Context) (i uint64)

func (*Keeper) OracleMinCount

func (k *Keeper) OracleMinCount(ctx sdk.Context) (i uint64)

func (*Keeper) OracleMultiplier

func (k *Keeper) OracleMultiplier(ctx sdk.Context) (i uint64)

func (*Keeper) SetCalldata

func (k *Keeper) SetCalldata(ctx sdk.Context, id uint64, calldata types.Calldata)

func (*Keeper) SetCalldataID

func (k *Keeper) SetCalldataID(ctx sdk.Context, id uint64)

func (*Keeper) SetMarket

func (k *Keeper) SetMarket(ctx sdk.Context, market types.Market)

func (*Keeper) SetMarketForAsset

func (k *Keeper) SetMarketForAsset(ctx sdk.Context, id uint64, symbol string)

func (*Keeper) SetParams

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

func (*Keeper) SetPriceForMarket

func (k *Keeper) SetPriceForMarket(ctx sdk.Context, symbol string, price uint64)

func (*Keeper) Store

func (k *Keeper) Store(ctx sdk.Context) sdk.KVStore

Jump to

Keyboard shortcuts

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