Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func Pow10(decimal uint64) (value sdk.Dec)
- type Hooks
- type Keeper
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, epochIdentifier string, epochNumber int64) error
- func (k Keeper) AssetInfo(c context.Context, req *types.QueryGetAssetInfoRequest) (*types.QueryGetAssetInfoResponse, error)
- func (k Keeper) AssetInfoAll(c context.Context, req *types.QueryAllAssetInfoRequest) (*types.QueryAllAssetInfoResponse, error)
- func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) BandPriceResult(c context.Context, req *types.QueryBandPriceRequest) (*types.QueryBandPriceResponse, error)
- func (k Keeper) BeforeEpochStart(ctx sdk.Context, epochIdentifier string, epochNumber int64) error
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) EndBlock(ctx sdk.Context)
- func (k Keeper) GetAllAssetInfo(ctx sdk.Context) (list []types.AssetInfo)
- func (k Keeper) GetAllLegacyPriceFeeder(ctx sdk.Context) (list []types.PriceFeeder)
- func (k Keeper) GetAllPrice(ctx sdk.Context) (list []types.Price)
- func (k Keeper) GetAllPriceFeeder(ctx sdk.Context) (list []types.PriceFeeder)
- func (k Keeper) GetAssetInfo(ctx sdk.Context, denom string) (val types.AssetInfo, found bool)
- func (k Keeper) GetAssetPrice(ctx sdk.Context, asset string) (types.Price, bool)
- func (k Keeper) GetAssetPriceFromDenom(ctx sdk.Context, denom string) sdk.Dec
- func (k Keeper) GetBandPriceResult(ctx sdk.Context, id types.OracleRequestID) (types.BandPriceResult, error)
- func (k Keeper) GetBandRequest(ctx sdk.Context, id types.OracleRequestID) (types.BandPriceCallData, error)
- func (k Keeper) GetLastBandRequestId(ctx sdk.Context) int64
- func (k Keeper) GetLatestPriceFromAnySource(ctx sdk.Context, asset string) (val types.Price, found bool)
- func (k Keeper) GetLatestPriceFromAssetAndSource(ctx sdk.Context, asset, source string) (val types.Price, found bool)
- func (k Keeper) GetLegacyParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64) (val types.Price, found bool)
- func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val types.PriceFeeder, found bool)
- func (k Keeper) Hooks() Hooks
- func (k Keeper) IsBound(ctx sdk.Context, portID string) bool
- func (k Keeper) LastBandRequestId(c context.Context, req *types.QueryLastBandRequestIdRequest) (*types.QueryLastBandRequestIdResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MigrateAllLegacyPrices(ctx sdk.Context)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Price(c context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error)
- func (k Keeper) PriceAll(c context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error)
- func (k Keeper) PriceFeeder(c context.Context, req *types.QueryGetPriceFeederRequest) (*types.QueryGetPriceFeederResponse, error)
- func (k Keeper) PriceFeederAll(c context.Context, req *types.QueryAllPriceFeederRequest) (*types.QueryAllPriceFeederResponse, error)
- func (k Keeper) RemoveAssetInfo(ctx sdk.Context, denom string)
- func (k Keeper) RemoveLegacyPriceFeeder(ctx sdk.Context, feeder string)
- func (k Keeper) RemovePrice(ctx sdk.Context, asset, source string, timestamp uint64)
- func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder sdk.AccAddress)
- func (k Keeper) SetAssetInfo(ctx sdk.Context, assetInfo types.AssetInfo)
- func (k Keeper) SetBandPriceResult(ctx sdk.Context, requestID types.OracleRequestID, result types.BandPriceResult)
- func (k Keeper) SetBandRequest(ctx sdk.Context, requestID types.OracleRequestID, ...)
- func (k Keeper) SetLastBandRequestId(ctx sdk.Context, id types.OracleRequestID)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetPrice(ctx sdk.Context, price types.Price)
- func (k Keeper) SetPriceFeeder(ctx sdk.Context, priceFeeder types.PriceFeeder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Hooks wrapper struct
func (Hooks) AfterEpochEnd ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, authority string, ps paramtypes.Subspace, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, scopedKeeper exported.ScopedKeeper, ) *Keeper
func (Keeper) AfterEpochEnd ¶
func (Keeper) AssetInfo ¶
func (k Keeper) AssetInfo(c context.Context, req *types.QueryGetAssetInfoRequest) (*types.QueryGetAssetInfoResponse, error)
func (Keeper) AssetInfoAll ¶
func (k Keeper) AssetInfoAll(c context.Context, req *types.QueryAllAssetInfoRequest) (*types.QueryAllAssetInfoResponse, error)
func (Keeper) AuthenticateCapability ¶
func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
func (Keeper) BandPriceResult ¶
func (k Keeper) BandPriceResult(c context.Context, req *types.QueryBandPriceRequest) (*types.QueryBandPriceResponse, error)
BandPriceResult returns the BandPrice result by RequestId
func (Keeper) BeforeEpochStart ¶
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the port Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function.
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the IBC app module to claim a capability that core IBC passes to it
func (Keeper) GetAllAssetInfo ¶
GetAllAssetInfo returns all assetInfo
func (Keeper) GetAllLegacyPriceFeeder ¶ added in v0.45.0
func (k Keeper) GetAllLegacyPriceFeeder(ctx sdk.Context) (list []types.PriceFeeder)
func (Keeper) GetAllPrice ¶
GetAllPrice returns all price
func (Keeper) GetAllPriceFeeder ¶
func (k Keeper) GetAllPriceFeeder(ctx sdk.Context) (list []types.PriceFeeder)
GetAllPriceFeeder returns all priceFeeder
func (Keeper) GetAssetInfo ¶
GetAssetInfo returns a assetInfo from its index
func (Keeper) GetAssetPrice ¶
func (Keeper) GetAssetPriceFromDenom ¶
func (Keeper) GetBandPriceResult ¶
func (k Keeper) GetBandPriceResult(ctx sdk.Context, id types.OracleRequestID) (types.BandPriceResult, error)
GetBandPriceResult returns the BandPrice by requestId
func (Keeper) GetBandRequest ¶
func (k Keeper) GetBandRequest(ctx sdk.Context, id types.OracleRequestID) (types.BandPriceCallData, error)
SetBandRequest returns band request waiting for responses
func (Keeper) GetLastBandRequestId ¶
GetLastBandRequestId return the id from the last BandPrice request
func (Keeper) GetLatestPriceFromAnySource ¶
func (Keeper) GetLatestPriceFromAssetAndSource ¶
func (Keeper) GetLegacyParams ¶ added in v0.45.0
func (Keeper) GetPrice ¶
func (k Keeper) GetPrice(ctx sdk.Context, asset, source string, timestamp uint64) (val types.Price, found bool)
GetPrice returns a price from its index
func (Keeper) GetPriceFeeder ¶
func (k Keeper) GetPriceFeeder(ctx sdk.Context, feeder sdk.AccAddress) (val types.PriceFeeder, found bool)
GetPriceFeeder returns a priceFeeder from its index
func (Keeper) LastBandRequestId ¶
func (k Keeper) LastBandRequestId(c context.Context, req *types.QueryLastBandRequestIdRequest) (*types.QueryLastBandRequestIdResponse, error)
LastBandRequestId returns the last BandPrice request Id
func (Keeper) MigrateAllLegacyPrices ¶ added in v0.29.19
MigrateAllLegacyPrices migrates all legacy prices
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Price ¶
func (k Keeper) Price(c context.Context, req *types.QueryGetPriceRequest) (*types.QueryGetPriceResponse, error)
func (Keeper) PriceAll ¶
func (k Keeper) PriceAll(c context.Context, req *types.QueryAllPriceRequest) (*types.QueryAllPriceResponse, error)
func (Keeper) PriceFeeder ¶
func (k Keeper) PriceFeeder(c context.Context, req *types.QueryGetPriceFeederRequest) (*types.QueryGetPriceFeederResponse, error)
func (Keeper) PriceFeederAll ¶
func (k Keeper) PriceFeederAll(c context.Context, req *types.QueryAllPriceFeederRequest) (*types.QueryAllPriceFeederResponse, error)
func (Keeper) RemoveAssetInfo ¶
RemoveAssetInfo removes a assetInfo from the store
func (Keeper) RemoveLegacyPriceFeeder ¶ added in v0.45.0
func (Keeper) RemovePrice ¶
RemovePrice removes a price from the store
func (Keeper) RemovePriceFeeder ¶
func (k Keeper) RemovePriceFeeder(ctx sdk.Context, feeder sdk.AccAddress)
RemovePriceFeeder removes a priceFeeder from the store
func (Keeper) SetAssetInfo ¶
SetAssetInfo set a specific assetInfo in the store from its index
func (Keeper) SetBandPriceResult ¶
func (k Keeper) SetBandPriceResult(ctx sdk.Context, requestID types.OracleRequestID, result types.BandPriceResult)
SetBandPriceResult saves the BandPrice result
func (Keeper) SetBandRequest ¶
func (k Keeper) SetBandRequest(ctx sdk.Context, requestID types.OracleRequestID, result types.BandPriceCallData)
SetBandRequest saves band request waiting for responses
func (Keeper) SetLastBandRequestId ¶
func (k Keeper) SetLastBandRequestId(ctx sdk.Context, id types.OracleRequestID)
SetLastBandRequestId saves the id from the last BandPrice request
func (Keeper) SetPriceFeeder ¶
func (k Keeper) SetPriceFeeder(ctx sdk.Context, priceFeeder types.PriceFeeder)
SetPriceFeeder set a specific priceFeeder in the store from its index
Source Files ¶
- abci.go
- asset_info.go
- band_request.go
- grpc_query.go
- grpc_query_asset_info.go
- grpc_query_band_price.go
- grpc_query_params.go
- grpc_query_price.go
- grpc_query_price_feeder.go
- hooks.go
- keeper.go
- msg_server.go
- msg_server_create_asset_info.go
- msg_server_feed_multiple_prices.go
- msg_server_price.go
- msg_server_price_feeder.go
- msg_server_proposals.go
- params.go
- price.go
- price_feeder.go