package
7.0.1+incompatible
Repository: https://github.com/dydxprotocol/v4-chain.git
Documentation: pkg.go.dev

# Functions

DefaultGenesis returns the default Prices genesis state.
No description provided by the author
NewMarketToSmoothedPrices returns a new `MarketToSmoothedPrices` that tracks the previous `historyLength` prices per market.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RegisterQueryHandler registers the http handlers for service Query to "mux".
RegisterQueryHandlerClient registers the http handlers for service Query to "mux".
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterQueryHandlerServer registers the http handlers for service Query to "mux".
No description provided by the author

# Constants

CurrencyPairIDPrefix is the prefix to retrieve the market ID for a currency pair.
MarketParamKeyPrefix is the prefix to retrieve all MarketParams.
MarketPriceKeyPrefix is the prefix to retrieve all MarketPrices.
ModuleName defines the module name.
NextIDKey is the key for the next market ID.
No description provided by the author
No description provided by the author
SmoothedPriceTrackingBlockHistoryLength is the number of blocks we track smoothed prices for to determine if the next smoothed price should be used in the price update proposal.
StoreKey defines the primary module store key.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
100 - 199: Exchange related errors.
300 - 399: Price related errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
500 - 599: sdk.Msg related errors.
1 - 99: Default.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
400 - 499: Market price update related errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
200 - 299: Market related errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

GenesisState defines the prices module's genesis state.
MarketParam represents the x/prices configuration for markets, including representing price values, resolving markets on individual exchanges, and generating price updates.
MarketParamPrice is a struct that combines a MarketParam and a MarketPrice.
MarketPrice is used by the application to store/retrieve oracle price.
No description provided by the author
MsgCreateOracleMarket is a message used by x/gov for creating a new oracle market.
MsgCreateOracleMarketResponse defines the CreateOracleMarket response type.
MsgUpdateMarketParam is a message used by x/gov for updating the parameters of an oracle market.
MsgUpdateMarketParamResponse defines the UpdateMarketParam response type.
MsgUpdateMarketPrices is a request type for the UpdateMarketPrices method.
MarketPrice represents a price update for a single market.
MsgUpdateMarketPricesResponse defines the MsgUpdateMarketPrices response type.
QueryAllMarketParamsRequest is request type for the Query/Params `AllMarketParams` RPC method.
QueryAllMarketParamsResponse is response type for the Query/Params `AllMarketParams` RPC method.
QueryAllMarketPricesRequest is request type for the Query/Params `AllMarketPrices` RPC method.
QueryAllMarketPricesResponse is response type for the Query/Params `AllMarketPrices` RPC method.
QueryMarketParamsRequest is request type for the Query/Params `MarketParams` RPC method.
QueryMarketParamResponse is response type for the Query/Params `MarketParams` RPC method.
QueryMarketPriceRequest is request type for the Query/Params `MarketPrice` RPC method.
QueryMarketPriceResponse is response type for the Query/Params `MarketPrice` RPC method.
UnimplementedMsgServer can be embedded to have forward compatible implementations.
UnimplementedQueryServer can be embedded to have forward compatible implementations.

# Interfaces

AccountKeeper defines the expected account keeper used for simulations.
BankKeeper defines the expected bank keeper used for simulations.
MarketMapKeeper defines the expected marketmap keeper used for simulations.
MarketToSmoothedPrices tracks current and historical exponentially smoothed prices for each market.
MsgClient is the client API for Msg service.
MsgServer is the server API for Msg service.
No description provided by the author
QueryClient is the client API for Query service.
QueryServer is the server API for Query service.
RevShareKeeper defines the expected revshare keeper used for simulations.