Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type BaseKeeper
- func (k BaseKeeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k BaseKeeper) GetRef(ctx sdk.Context, symbol string) types.Ref
- func (k BaseKeeper) GetReferenceData(ctx sdk.Context, base string, quote string) *types.ReferenceData
- func (k BaseKeeper) GetReferenceDataBulk(ctx sdk.Context, bases []string, quotes []string) []*types.ReferenceData
- func (k BaseKeeper) GetStore(ctx sdk.Context) sdk.KVStore
- func (k BaseKeeper) IsRelayer(ctx sdk.Context, relayer sdk.AccAddress) bool
- func (k BaseKeeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k BaseKeeper) SetParams(ctx sdk.Context, params types.Params)
- func (k BaseKeeper) SetRef(ctx sdk.Context, symbol string, refData types.Ref)
- type Keeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the oracle MsgServer interface for the provided BaseKeeper.
Types ¶
type BaseKeeper ¶
type BaseKeeper struct {
// contains filtered or unexported fields
}
BaseKeeper of this module maintains collections of oracle.
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryMarshaler, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace, ak authkeeper.AccountKeeper, bk types.BankKeeper, ) BaseKeeper
NewKeeper creates new instances of the oracle BaseKeeper
func (BaseKeeper) GetParams ¶
func (k BaseKeeper) GetParams(ctx sdk.Context) (params types.Params)
GetParams returns the total set of oracle parameters.
func (BaseKeeper) GetReferenceData ¶
func (k BaseKeeper) GetReferenceData(ctx sdk.Context, base string, quote string) *types.ReferenceData
func (BaseKeeper) GetReferenceDataBulk ¶
func (k BaseKeeper) GetReferenceDataBulk(ctx sdk.Context, bases []string, quotes []string) []*types.ReferenceData
func (BaseKeeper) IsRelayer ¶
func (k BaseKeeper) IsRelayer(ctx sdk.Context, relayer sdk.AccAddress) bool
func (BaseKeeper) Params ¶
func (k BaseKeeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
type Keeper ¶
type Keeper interface { // read the stored GetRef(ctx sdk.Context, symbol string) types.Ref // can only be called by Relay function SetRef(ctx sdk.Context, symbol string, refData types.Ref) // derive a ReferenceData from base Ref and quote Ref GetReferenceData(ctx sdk.Context, base string, quote string) *types.ReferenceData GetReferenceDataBulk(ctx sdk.Context, bases []string, quotes []string) []*types.ReferenceData GetParams(ctx sdk.Context) types.Params // can only be set by a proposal SetParams(ctx sdk.Context, params types.Params) // check that the relayer has been authorized IsRelayer(ctx sdk.Context, relayer sdk.AccAddress) bool types.QueryServer }
Keeper defines a module interface that facilitates the getting and setting of oracle reference data
Click to show internal directories.
Click to hide internal directories.