Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CurrentPriceKey(marketID string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RawPriceIteratorKey(marketID string) []byte
- func RawPriceKey(marketID string, oracleAddr sdk.AccAddress) []byte
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type CurrentPrice
- func (*CurrentPrice) Descriptor() ([]byte, []int)
- func (this *CurrentPrice) Equal(that interface{}) bool
- func (m *CurrentPrice) GetMarketID() string
- func (m *CurrentPrice) Marshal() (dAtA []byte, err error)
- func (m *CurrentPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *CurrentPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CurrentPrice) ProtoMessage()
- func (m *CurrentPrice) Reset()
- func (m *CurrentPrice) Size() (n int)
- func (m *CurrentPrice) String() string
- func (m *CurrentPrice) Unmarshal(dAtA []byte) error
- func (this *CurrentPrice) VerboseEqual(that interface{}) error
- func (m *CurrentPrice) XXX_DiscardUnknown()
- func (m *CurrentPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrentPrice) XXX_Merge(src proto.Message)
- func (m *CurrentPrice) XXX_Size() int
- func (m *CurrentPrice) XXX_Unmarshal(b []byte) error
- type CurrentPriceResponse
- func (*CurrentPriceResponse) Descriptor() ([]byte, []int)
- func (this *CurrentPriceResponse) Equal(that interface{}) bool
- func (m *CurrentPriceResponse) GetMarketID() string
- func (m *CurrentPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *CurrentPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *CurrentPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CurrentPriceResponse) ProtoMessage()
- func (m *CurrentPriceResponse) Reset()
- func (m *CurrentPriceResponse) Size() (n int)
- func (m *CurrentPriceResponse) String() string
- func (m *CurrentPriceResponse) Unmarshal(dAtA []byte) error
- func (this *CurrentPriceResponse) VerboseEqual(that interface{}) error
- func (m *CurrentPriceResponse) XXX_DiscardUnknown()
- func (m *CurrentPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CurrentPriceResponse) XXX_Merge(src proto.Message)
- func (m *CurrentPriceResponse) XXX_Size() int
- func (m *CurrentPriceResponse) XXX_Unmarshal(b []byte) error
- type CurrentPriceResponses
- type CurrentPrices
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (this *GenesisState) Equal(that interface{}) bool
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPostedPrices() PostedPrices
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (this *GenesisState) VerboseEqual(that interface{}) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Market
- func (*Market) Descriptor() ([]byte, []int)
- func (this *Market) Equal(that interface{}) bool
- func (m *Market) GetActive() bool
- func (m *Market) GetBaseAsset() string
- func (m *Market) GetMarketID() string
- func (m *Market) GetOracles() []github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *Market) GetQuoteAsset() string
- func (m *Market) Marshal() (dAtA []byte, err error)
- func (m *Market) MarshalTo(dAtA []byte) (int, error)
- func (m *Market) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Market) ProtoMessage()
- func (m *Market) Reset()
- func (m *Market) Size() (n int)
- func (m *Market) String() string
- func (m Market) ToMarketResponse() MarketResponse
- func (m *Market) Unmarshal(dAtA []byte) error
- func (m Market) Validate() error
- func (this *Market) VerboseEqual(that interface{}) error
- func (m *Market) XXX_DiscardUnknown()
- func (m *Market) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Market) XXX_Merge(src proto.Message)
- func (m *Market) XXX_Size() int
- func (m *Market) XXX_Unmarshal(b []byte) error
- type MarketResponse
- func (*MarketResponse) Descriptor() ([]byte, []int)
- func (this *MarketResponse) Equal(that interface{}) bool
- func (m *MarketResponse) GetActive() bool
- func (m *MarketResponse) GetBaseAsset() string
- func (m *MarketResponse) GetMarketID() string
- func (m *MarketResponse) GetOracles() []string
- func (m *MarketResponse) GetQuoteAsset() string
- func (m *MarketResponse) Marshal() (dAtA []byte, err error)
- func (m *MarketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MarketResponse) ProtoMessage()
- func (m *MarketResponse) Reset()
- func (m *MarketResponse) Size() (n int)
- func (m *MarketResponse) String() string
- func (m *MarketResponse) Unmarshal(dAtA []byte) error
- func (this *MarketResponse) VerboseEqual(that interface{}) error
- func (m *MarketResponse) XXX_DiscardUnknown()
- func (m *MarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MarketResponse) XXX_Merge(src proto.Message)
- func (m *MarketResponse) XXX_Size() int
- func (m *MarketResponse) XXX_Unmarshal(b []byte) error
- type MarketResponses
- type Markets
- type MsgClient
- type MsgPostPrice
- func (*MsgPostPrice) Descriptor() ([]byte, []int)
- func (this *MsgPostPrice) Equal(that interface{}) bool
- func (msg MsgPostPrice) GetSignBytes() []byte
- func (msg MsgPostPrice) GetSigners() []sdk.AccAddress
- func (m *MsgPostPrice) Marshal() (dAtA []byte, err error)
- func (m *MsgPostPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPostPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPostPrice) ProtoMessage()
- func (m *MsgPostPrice) Reset()
- func (msg MsgPostPrice) Route() string
- func (m *MsgPostPrice) Size() (n int)
- func (m *MsgPostPrice) String() string
- func (msg MsgPostPrice) Type() string
- func (m *MsgPostPrice) Unmarshal(dAtA []byte) error
- func (msg MsgPostPrice) ValidateBasic() error
- func (this *MsgPostPrice) VerboseEqual(that interface{}) error
- func (m *MsgPostPrice) XXX_DiscardUnknown()
- func (m *MsgPostPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPostPrice) XXX_Merge(src proto.Message)
- func (m *MsgPostPrice) XXX_Size() int
- func (m *MsgPostPrice) XXX_Unmarshal(b []byte) error
- type MsgPostPriceResponse
- func (*MsgPostPriceResponse) Descriptor() ([]byte, []int)
- func (this *MsgPostPriceResponse) Equal(that interface{}) bool
- func (m *MsgPostPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPostPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPostPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPostPriceResponse) ProtoMessage()
- func (m *MsgPostPriceResponse) Reset()
- func (m *MsgPostPriceResponse) Size() (n int)
- func (m *MsgPostPriceResponse) String() string
- func (m *MsgPostPriceResponse) Unmarshal(dAtA []byte) error
- func (this *MsgPostPriceResponse) VerboseEqual(that interface{}) error
- func (m *MsgPostPriceResponse) XXX_DiscardUnknown()
- func (m *MsgPostPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPostPriceResponse) XXX_Merge(src proto.Message)
- func (m *MsgPostPriceResponse) XXX_Size() int
- func (m *MsgPostPriceResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMarkets() Markets
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (this *Params) VerboseEqual(that interface{}) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PostedPrice
- func (*PostedPrice) Descriptor() ([]byte, []int)
- func (this *PostedPrice) Equal(that interface{}) bool
- func (m *PostedPrice) GetExpiry() time.Time
- func (m *PostedPrice) GetMarketID() string
- func (m *PostedPrice) GetOracleAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
- func (m *PostedPrice) Marshal() (dAtA []byte, err error)
- func (m *PostedPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *PostedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PostedPrice) ProtoMessage()
- func (m *PostedPrice) Reset()
- func (m *PostedPrice) Size() (n int)
- func (m *PostedPrice) String() string
- func (m *PostedPrice) Unmarshal(dAtA []byte) error
- func (pp PostedPrice) Validate() error
- func (this *PostedPrice) VerboseEqual(that interface{}) error
- func (m *PostedPrice) XXX_DiscardUnknown()
- func (m *PostedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostedPrice) XXX_Merge(src proto.Message)
- func (m *PostedPrice) XXX_Size() int
- func (m *PostedPrice) XXX_Unmarshal(b []byte) error
- type PostedPriceResponse
- func (*PostedPriceResponse) Descriptor() ([]byte, []int)
- func (this *PostedPriceResponse) Equal(that interface{}) bool
- func (m *PostedPriceResponse) GetExpiry() time.Time
- func (m *PostedPriceResponse) GetMarketID() string
- func (m *PostedPriceResponse) GetOracleAddress() string
- func (m *PostedPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *PostedPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *PostedPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PostedPriceResponse) ProtoMessage()
- func (m *PostedPriceResponse) Reset()
- func (m *PostedPriceResponse) Size() (n int)
- func (m *PostedPriceResponse) String() string
- func (m *PostedPriceResponse) Unmarshal(dAtA []byte) error
- func (this *PostedPriceResponse) VerboseEqual(that interface{}) error
- func (m *PostedPriceResponse) XXX_DiscardUnknown()
- func (m *PostedPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PostedPriceResponse) XXX_Merge(src proto.Message)
- func (m *PostedPriceResponse) XXX_Size() int
- func (m *PostedPriceResponse) XXX_Unmarshal(b []byte) error
- type PostedPriceResponses
- type PostedPrices
- type QueryClient
- type QueryMarketsRequest
- func (*QueryMarketsRequest) Descriptor() ([]byte, []int)
- func (this *QueryMarketsRequest) Equal(that interface{}) bool
- func (m *QueryMarketsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketsRequest) ProtoMessage()
- func (m *QueryMarketsRequest) Reset()
- func (m *QueryMarketsRequest) Size() (n int)
- func (m *QueryMarketsRequest) String() string
- func (m *QueryMarketsRequest) Unmarshal(dAtA []byte) error
- func (this *QueryMarketsRequest) VerboseEqual(that interface{}) error
- func (m *QueryMarketsRequest) XXX_DiscardUnknown()
- func (m *QueryMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketsRequest) XXX_Merge(src proto.Message)
- func (m *QueryMarketsRequest) XXX_Size() int
- func (m *QueryMarketsRequest) XXX_Unmarshal(b []byte) error
- type QueryMarketsResponse
- func (*QueryMarketsResponse) Descriptor() ([]byte, []int)
- func (this *QueryMarketsResponse) Equal(that interface{}) bool
- func (m *QueryMarketsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMarketsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMarketsResponse) ProtoMessage()
- func (m *QueryMarketsResponse) Reset()
- func (m *QueryMarketsResponse) Size() (n int)
- func (m *QueryMarketsResponse) String() string
- func (m *QueryMarketsResponse) Unmarshal(dAtA []byte) error
- func (this *QueryMarketsResponse) VerboseEqual(that interface{}) error
- func (m *QueryMarketsResponse) XXX_DiscardUnknown()
- func (m *QueryMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMarketsResponse) XXX_Merge(src proto.Message)
- func (m *QueryMarketsResponse) XXX_Size() int
- func (m *QueryMarketsResponse) XXX_Unmarshal(b []byte) error
- type QueryOraclesRequest
- func (*QueryOraclesRequest) Descriptor() ([]byte, []int)
- func (this *QueryOraclesRequest) Equal(that interface{}) bool
- func (m *QueryOraclesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOraclesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOraclesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOraclesRequest) ProtoMessage()
- func (m *QueryOraclesRequest) Reset()
- func (m *QueryOraclesRequest) Size() (n int)
- func (m *QueryOraclesRequest) String() string
- func (m *QueryOraclesRequest) Unmarshal(dAtA []byte) error
- func (this *QueryOraclesRequest) VerboseEqual(that interface{}) error
- func (m *QueryOraclesRequest) XXX_DiscardUnknown()
- func (m *QueryOraclesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOraclesRequest) XXX_Merge(src proto.Message)
- func (m *QueryOraclesRequest) XXX_Size() int
- func (m *QueryOraclesRequest) XXX_Unmarshal(b []byte) error
- type QueryOraclesResponse
- func (*QueryOraclesResponse) Descriptor() ([]byte, []int)
- func (this *QueryOraclesResponse) Equal(that interface{}) bool
- func (m *QueryOraclesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOraclesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOraclesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOraclesResponse) ProtoMessage()
- func (m *QueryOraclesResponse) Reset()
- func (m *QueryOraclesResponse) Size() (n int)
- func (m *QueryOraclesResponse) String() string
- func (m *QueryOraclesResponse) Unmarshal(dAtA []byte) error
- func (this *QueryOraclesResponse) VerboseEqual(that interface{}) error
- func (m *QueryOraclesResponse) XXX_DiscardUnknown()
- func (m *QueryOraclesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOraclesResponse) XXX_Merge(src proto.Message)
- func (m *QueryOraclesResponse) XXX_Size() int
- func (m *QueryOraclesResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (this *QueryParamsRequest) Equal(that interface{}) bool
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (this *QueryParamsRequest) VerboseEqual(that interface{}) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (this *QueryParamsResponse) Equal(that interface{}) bool
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (this *QueryParamsResponse) VerboseEqual(that interface{}) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPriceRequest
- func (*QueryPriceRequest) Descriptor() ([]byte, []int)
- func (this *QueryPriceRequest) Equal(that interface{}) bool
- func (m *QueryPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPriceRequest) ProtoMessage()
- func (m *QueryPriceRequest) Reset()
- func (m *QueryPriceRequest) Size() (n int)
- func (m *QueryPriceRequest) String() string
- func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error
- func (this *QueryPriceRequest) VerboseEqual(that interface{}) error
- func (m *QueryPriceRequest) XXX_DiscardUnknown()
- func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPriceRequest) XXX_Merge(src proto.Message)
- func (m *QueryPriceRequest) XXX_Size() int
- func (m *QueryPriceRequest) XXX_Unmarshal(b []byte) error
- type QueryPriceResponse
- func (*QueryPriceResponse) Descriptor() ([]byte, []int)
- func (this *QueryPriceResponse) Equal(that interface{}) bool
- func (m *QueryPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPriceResponse) ProtoMessage()
- func (m *QueryPriceResponse) Reset()
- func (m *QueryPriceResponse) Size() (n int)
- func (m *QueryPriceResponse) String() string
- func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error
- func (this *QueryPriceResponse) VerboseEqual(that interface{}) error
- func (m *QueryPriceResponse) XXX_DiscardUnknown()
- func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPriceResponse) XXX_Merge(src proto.Message)
- func (m *QueryPriceResponse) XXX_Size() int
- func (m *QueryPriceResponse) XXX_Unmarshal(b []byte) error
- type QueryPricesRequest
- func (*QueryPricesRequest) Descriptor() ([]byte, []int)
- func (this *QueryPricesRequest) Equal(that interface{}) bool
- func (m *QueryPricesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPricesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPricesRequest) ProtoMessage()
- func (m *QueryPricesRequest) Reset()
- func (m *QueryPricesRequest) Size() (n int)
- func (m *QueryPricesRequest) String() string
- func (m *QueryPricesRequest) Unmarshal(dAtA []byte) error
- func (this *QueryPricesRequest) VerboseEqual(that interface{}) error
- func (m *QueryPricesRequest) XXX_DiscardUnknown()
- func (m *QueryPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPricesRequest) XXX_Merge(src proto.Message)
- func (m *QueryPricesRequest) XXX_Size() int
- func (m *QueryPricesRequest) XXX_Unmarshal(b []byte) error
- type QueryPricesResponse
- func (*QueryPricesResponse) Descriptor() ([]byte, []int)
- func (this *QueryPricesResponse) Equal(that interface{}) bool
- func (m *QueryPricesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPricesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPricesResponse) ProtoMessage()
- func (m *QueryPricesResponse) Reset()
- func (m *QueryPricesResponse) Size() (n int)
- func (m *QueryPricesResponse) String() string
- func (m *QueryPricesResponse) Unmarshal(dAtA []byte) error
- func (this *QueryPricesResponse) VerboseEqual(that interface{}) error
- func (m *QueryPricesResponse) XXX_DiscardUnknown()
- func (m *QueryPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPricesResponse) XXX_Merge(src proto.Message)
- func (m *QueryPricesResponse) XXX_Size() int
- func (m *QueryPricesResponse) XXX_Unmarshal(b []byte) error
- type QueryRawPricesRequest
- func (*QueryRawPricesRequest) Descriptor() ([]byte, []int)
- func (this *QueryRawPricesRequest) Equal(that interface{}) bool
- func (m *QueryRawPricesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRawPricesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRawPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRawPricesRequest) ProtoMessage()
- func (m *QueryRawPricesRequest) Reset()
- func (m *QueryRawPricesRequest) Size() (n int)
- func (m *QueryRawPricesRequest) String() string
- func (m *QueryRawPricesRequest) Unmarshal(dAtA []byte) error
- func (this *QueryRawPricesRequest) VerboseEqual(that interface{}) error
- func (m *QueryRawPricesRequest) XXX_DiscardUnknown()
- func (m *QueryRawPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRawPricesRequest) XXX_Merge(src proto.Message)
- func (m *QueryRawPricesRequest) XXX_Size() int
- func (m *QueryRawPricesRequest) XXX_Unmarshal(b []byte) error
- type QueryRawPricesResponse
- func (*QueryRawPricesResponse) Descriptor() ([]byte, []int)
- func (this *QueryRawPricesResponse) Equal(that interface{}) bool
- func (m *QueryRawPricesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRawPricesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRawPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRawPricesResponse) ProtoMessage()
- func (m *QueryRawPricesResponse) Reset()
- func (m *QueryRawPricesResponse) Size() (n int)
- func (m *QueryRawPricesResponse) String() string
- func (m *QueryRawPricesResponse) Unmarshal(dAtA []byte) error
- func (this *QueryRawPricesResponse) VerboseEqual(that interface{}) error
- func (m *QueryRawPricesResponse) XXX_DiscardUnknown()
- func (m *QueryRawPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRawPricesResponse) XXX_Merge(src proto.Message)
- func (m *QueryRawPricesResponse) XXX_Size() int
- func (m *QueryRawPricesResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SortDecs
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Markets(ctx context.Context, req *QueryMarketsRequest) (*QueryMarketsResponse, error)
- func (*UnimplementedQueryServer) Oracles(ctx context.Context, req *QueryOraclesRequest) (*QueryOraclesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceRequest) (*QueryPriceResponse, error)
- func (*UnimplementedQueryServer) Prices(ctx context.Context, req *QueryPricesRequest) (*QueryPricesResponse, error)
- func (*UnimplementedQueryServer) RawPrices(ctx context.Context, req *QueryRawPricesRequest) (*QueryRawPricesResponse, error)
Constants ¶
const ( EventTypeMarketPriceUpdated = "market_price_updated" EventTypeOracleUpdatedPrice = "oracle_updated_price" EventTypeNoValidPrices = "no_valid_prices" AttributeValueCategory = ModuleName AttributeMarketID = "market_id" AttributeMarketPrice = "market_price" AttributeOracle = "oracle" AttributeExpiry = "expiry" )
Pricefeed module event types
const ( // ModuleName The name that will be used throughout the module ModuleName = "pricefeed" // StoreKey Top level store key where all module items will be stored StoreKey = ModuleName // RouterKey Top level router key RouterKey = ModuleName // DefaultParamspace default namestore DefaultParamspace = ModuleName )
const ( // TypeMsgPostPrice type of PostPrice msg TypeMsgPostPrice = "post_price" // MaxExpiry defines the max expiry time defined as UNIX time (9999-12-31 23:59:59 +0000 UTC) MaxExpiry = 253402300799 )
Variables ¶
var ( // ErrEmptyInput error for empty input ErrEmptyInput = errorsmod.Register(ModuleName, 2, "input must not be empty") // ErrExpired error for posted price messages with expired price ErrExpired = errorsmod.Register(ModuleName, 3, "price is expired") // ErrNoValidPrice error for posted price messages with expired price ErrNoValidPrice = errorsmod.Register(ModuleName, 4, "all input prices are expired") // ErrInvalidMarket error for posted price messages for invalid markets ErrInvalidMarket = errorsmod.Register(ModuleName, 5, "market does not exist") // ErrInvalidOracle error for posted price messages for invalid oracles ErrInvalidOracle = errorsmod.Register(ModuleName, 6, "oracle does not exist or not authorized") // ErrAssetNotFound error for not found asset ErrAssetNotFound = errorsmod.Register(ModuleName, 7, "asset not found") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // CurrentPricePrefix prefix for the current price of an asset CurrentPricePrefix = []byte{0x00} // RawPriceFeedPrefix prefix for the raw pricefeed of an asset RawPriceFeedPrefix = []byte{0x01} )
var ( KeyMarkets = []byte("Markets") DefaultMarkets = []Market{} )
Parameter keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStore = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStore = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStore = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func CurrentPriceKey ¶ added in v0.8.0
CurrentPriceKey returns the prefix for the current price
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable Key declaration for parameters
func RawPriceIteratorKey ¶ added in v0.16.0
RawPriceIteratorKey returns the prefix for the raw price for a single market
func RawPriceKey ¶ added in v0.8.0
func RawPriceKey(marketID string, oracleAddr sdk.AccAddress) []byte
RawPriceKey returns the prefix for the raw price
func RegisterInterfaces ¶ added in v0.16.0
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶ added in v0.16.0
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the governance module.
func RegisterMsgServer ¶ added in v0.16.0
func RegisterQueryHandler ¶ added in v0.16.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.16.0
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.16.0
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.16.0
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.16.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type CurrentPrice ¶
type CurrentPrice struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` }
CurrentPrice defines a current price for a particular market in the pricefeed module.
func NewCurrentPrice ¶ added in v0.8.0
func NewCurrentPrice(marketID string, price sdk.Dec) CurrentPrice
NewCurrentPrice returns an instance of CurrentPrice
func (*CurrentPrice) Descriptor ¶ added in v0.16.0
func (*CurrentPrice) Descriptor() ([]byte, []int)
func (*CurrentPrice) Equal ¶ added in v0.16.0
func (this *CurrentPrice) Equal(that interface{}) bool
func (*CurrentPrice) GetMarketID ¶ added in v0.16.0
func (m *CurrentPrice) GetMarketID() string
func (*CurrentPrice) Marshal ¶ added in v0.16.0
func (m *CurrentPrice) Marshal() (dAtA []byte, err error)
func (*CurrentPrice) MarshalTo ¶ added in v0.16.0
func (m *CurrentPrice) MarshalTo(dAtA []byte) (int, error)
func (*CurrentPrice) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *CurrentPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrentPrice) ProtoMessage ¶ added in v0.16.0
func (*CurrentPrice) ProtoMessage()
func (*CurrentPrice) Reset ¶ added in v0.16.0
func (m *CurrentPrice) Reset()
func (*CurrentPrice) Size ¶ added in v0.16.0
func (m *CurrentPrice) Size() (n int)
func (*CurrentPrice) String ¶
func (m *CurrentPrice) String() string
func (*CurrentPrice) Unmarshal ¶ added in v0.16.0
func (m *CurrentPrice) Unmarshal(dAtA []byte) error
func (*CurrentPrice) VerboseEqual ¶ added in v0.16.0
func (this *CurrentPrice) VerboseEqual(that interface{}) error
func (*CurrentPrice) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *CurrentPrice) XXX_DiscardUnknown()
func (*CurrentPrice) XXX_Marshal ¶ added in v0.16.0
func (m *CurrentPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentPrice) XXX_Merge ¶ added in v0.16.0
func (m *CurrentPrice) XXX_Merge(src proto.Message)
func (*CurrentPrice) XXX_Size ¶ added in v0.16.0
func (m *CurrentPrice) XXX_Size() int
func (*CurrentPrice) XXX_Unmarshal ¶ added in v0.16.0
func (m *CurrentPrice) XXX_Unmarshal(b []byte) error
type CurrentPriceResponse ¶ added in v0.16.0
type CurrentPriceResponse struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` }
CurrentPriceResponse defines a current price for a particular market in the pricefeed module.
func NewCurrentPriceResponse ¶ added in v0.16.0
func NewCurrentPriceResponse(marketID string, price sdk.Dec) CurrentPriceResponse
NewCurrentPriceResponse returns an instance of CurrentPriceResponse
func (*CurrentPriceResponse) Descriptor ¶ added in v0.16.0
func (*CurrentPriceResponse) Descriptor() ([]byte, []int)
func (*CurrentPriceResponse) Equal ¶ added in v0.16.0
func (this *CurrentPriceResponse) Equal(that interface{}) bool
func (*CurrentPriceResponse) GetMarketID ¶ added in v0.16.0
func (m *CurrentPriceResponse) GetMarketID() string
func (*CurrentPriceResponse) Marshal ¶ added in v0.16.0
func (m *CurrentPriceResponse) Marshal() (dAtA []byte, err error)
func (*CurrentPriceResponse) MarshalTo ¶ added in v0.16.0
func (m *CurrentPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*CurrentPriceResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *CurrentPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrentPriceResponse) ProtoMessage ¶ added in v0.16.0
func (*CurrentPriceResponse) ProtoMessage()
func (*CurrentPriceResponse) Reset ¶ added in v0.16.0
func (m *CurrentPriceResponse) Reset()
func (*CurrentPriceResponse) Size ¶ added in v0.16.0
func (m *CurrentPriceResponse) Size() (n int)
func (*CurrentPriceResponse) String ¶ added in v0.16.0
func (m *CurrentPriceResponse) String() string
func (*CurrentPriceResponse) Unmarshal ¶ added in v0.16.0
func (m *CurrentPriceResponse) Unmarshal(dAtA []byte) error
func (*CurrentPriceResponse) VerboseEqual ¶ added in v0.16.0
func (this *CurrentPriceResponse) VerboseEqual(that interface{}) error
func (*CurrentPriceResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *CurrentPriceResponse) XXX_DiscardUnknown()
func (*CurrentPriceResponse) XXX_Marshal ¶ added in v0.16.0
func (m *CurrentPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentPriceResponse) XXX_Merge ¶ added in v0.16.0
func (m *CurrentPriceResponse) XXX_Merge(src proto.Message)
func (*CurrentPriceResponse) XXX_Size ¶ added in v0.16.0
func (m *CurrentPriceResponse) XXX_Size() int
func (*CurrentPriceResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *CurrentPriceResponse) XXX_Unmarshal(b []byte) error
type CurrentPriceResponses ¶ added in v0.16.0
type CurrentPriceResponses []CurrentPriceResponse
CurrentPriceResponses is a slice of CurrentPriceResponse
type CurrentPrices ¶ added in v0.8.0
type CurrentPrices []CurrentPrice
CurrentPrices is a slice of CurrentPrice
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` PostedPrices PostedPrices `protobuf:"bytes,2,rep,name=posted_prices,json=postedPrices,proto3,castrepeated=PostedPrices" json:"posted_prices"` }
GenesisState defines the pricefeed module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() GenesisState
DefaultGenesisState defines default GenesisState for pricefeed
func NewGenesisState ¶
func NewGenesisState(p Params, pp []PostedPrice) GenesisState
NewGenesisState creates a new genesis state for the pricefeed module
func (*GenesisState) Descriptor ¶ added in v0.16.0
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Equal ¶
func (this *GenesisState) Equal(that interface{}) bool
func (*GenesisState) GetParams ¶ added in v0.16.0
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPostedPrices ¶ added in v0.16.0
func (m *GenesisState) GetPostedPrices() PostedPrices
func (*GenesisState) Marshal ¶ added in v0.16.0
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.16.0
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.16.0
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.16.0
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.16.0
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.16.0
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.16.0
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic validation of genesis data returning an error for any failed validation criteria.
func (*GenesisState) VerboseEqual ¶ added in v0.16.0
func (this *GenesisState) VerboseEqual(that interface{}) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.16.0
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.16.0
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.16.0
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Market ¶
type Market struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` BaseAsset string `protobuf:"bytes,2,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` QuoteAsset string `protobuf:"bytes,3,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` Oracles []github_com_cosmos_cosmos_sdk_types.AccAddress `protobuf:"bytes,4,rep,name=oracles,proto3,casttype=github.com/cosmos/cosmos-sdk/types.AccAddress" json:"oracles,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` }
Market defines an asset in the pricefeed.
func NewMarket ¶ added in v0.11.0
func NewMarket(id, base, quote string, oracles []sdk.AccAddress, active bool) Market
NewMarket returns a new Market
func (*Market) Descriptor ¶ added in v0.16.0
func (*Market) GetBaseAsset ¶ added in v0.16.0
func (*Market) GetMarketID ¶ added in v0.16.0
func (*Market) GetOracles ¶ added in v0.16.0
func (m *Market) GetOracles() []github_com_cosmos_cosmos_sdk_types.AccAddress
func (*Market) GetQuoteAsset ¶ added in v0.16.0
func (*Market) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Market) ProtoMessage ¶ added in v0.16.0
func (*Market) ProtoMessage()
func (Market) ToMarketResponse ¶ added in v0.16.0
func (m Market) ToMarketResponse() MarketResponse
ToMarketResponse returns a new MarketResponse from a Market
func (*Market) VerboseEqual ¶ added in v0.16.0
func (*Market) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Market) XXX_DiscardUnknown()
func (*Market) XXX_Marshal ¶ added in v0.16.0
func (*Market) XXX_Unmarshal ¶ added in v0.16.0
type MarketResponse ¶ added in v0.16.0
type MarketResponse struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` BaseAsset string `protobuf:"bytes,2,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` QuoteAsset string `protobuf:"bytes,3,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` Oracles []string `protobuf:"bytes,4,rep,name=oracles,proto3" json:"oracles,omitempty"` Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty"` }
MarketResponse defines an asset in the pricefeed.
func NewMarketResponse ¶ added in v0.16.0
func NewMarketResponse(id, base, quote string, oracles []sdk.AccAddress, active bool) MarketResponse
NewMarketResponse returns a new MarketResponse
func (*MarketResponse) Descriptor ¶ added in v0.16.0
func (*MarketResponse) Descriptor() ([]byte, []int)
func (*MarketResponse) Equal ¶ added in v0.16.0
func (this *MarketResponse) Equal(that interface{}) bool
func (*MarketResponse) GetActive ¶ added in v0.16.0
func (m *MarketResponse) GetActive() bool
func (*MarketResponse) GetBaseAsset ¶ added in v0.16.0
func (m *MarketResponse) GetBaseAsset() string
func (*MarketResponse) GetMarketID ¶ added in v0.16.0
func (m *MarketResponse) GetMarketID() string
func (*MarketResponse) GetOracles ¶ added in v0.16.0
func (m *MarketResponse) GetOracles() []string
func (*MarketResponse) GetQuoteAsset ¶ added in v0.16.0
func (m *MarketResponse) GetQuoteAsset() string
func (*MarketResponse) Marshal ¶ added in v0.16.0
func (m *MarketResponse) Marshal() (dAtA []byte, err error)
func (*MarketResponse) MarshalTo ¶ added in v0.16.0
func (m *MarketResponse) MarshalTo(dAtA []byte) (int, error)
func (*MarketResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MarketResponse) ProtoMessage ¶ added in v0.16.0
func (*MarketResponse) ProtoMessage()
func (*MarketResponse) Reset ¶ added in v0.16.0
func (m *MarketResponse) Reset()
func (*MarketResponse) Size ¶ added in v0.16.0
func (m *MarketResponse) Size() (n int)
func (*MarketResponse) String ¶ added in v0.16.0
func (m *MarketResponse) String() string
func (*MarketResponse) Unmarshal ¶ added in v0.16.0
func (m *MarketResponse) Unmarshal(dAtA []byte) error
func (*MarketResponse) VerboseEqual ¶ added in v0.16.0
func (this *MarketResponse) VerboseEqual(that interface{}) error
func (*MarketResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MarketResponse) XXX_DiscardUnknown()
func (*MarketResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MarketResponse) XXX_Merge ¶ added in v0.16.0
func (m *MarketResponse) XXX_Merge(src proto.Message)
func (*MarketResponse) XXX_Size ¶ added in v0.16.0
func (m *MarketResponse) XXX_Size() int
func (*MarketResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MarketResponse) XXX_Unmarshal(b []byte) error
type MarketResponses ¶ added in v0.16.0
type MarketResponses []MarketResponse
MarketResponses is a slice of MarketResponse
type MsgClient ¶ added in v0.16.0
type MsgClient interface { // PostPrice defines a method for creating a new post price PostPrice(ctx context.Context, in *MsgPostPrice, opts ...grpc.CallOption) (*MsgPostPriceResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.16.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgPostPrice ¶
type MsgPostPrice struct { // address of client From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` MarketID string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Expiry time.Time `protobuf:"bytes,4,opt,name=expiry,proto3,stdtime" json:"expiry"` }
MsgPostPrice represents a method for creating a new post price
func NewMsgPostPrice ¶
NewMsgPostPrice returns a new MsgPostPrice
func (*MsgPostPrice) Descriptor ¶ added in v0.16.0
func (*MsgPostPrice) Descriptor() ([]byte, []int)
func (*MsgPostPrice) Equal ¶ added in v0.16.0
func (this *MsgPostPrice) Equal(that interface{}) bool
func (MsgPostPrice) GetSignBytes ¶
func (msg MsgPostPrice) GetSignBytes() []byte
GetSignBytes Implements Msg.
func (MsgPostPrice) GetSigners ¶
func (msg MsgPostPrice) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgPostPrice) Marshal ¶ added in v0.16.0
func (m *MsgPostPrice) Marshal() (dAtA []byte, err error)
func (*MsgPostPrice) MarshalTo ¶ added in v0.16.0
func (m *MsgPostPrice) MarshalTo(dAtA []byte) (int, error)
func (*MsgPostPrice) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgPostPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPostPrice) ProtoMessage ¶ added in v0.16.0
func (*MsgPostPrice) ProtoMessage()
func (*MsgPostPrice) Reset ¶ added in v0.16.0
func (m *MsgPostPrice) Reset()
func (*MsgPostPrice) Size ¶ added in v0.16.0
func (m *MsgPostPrice) Size() (n int)
func (*MsgPostPrice) String ¶ added in v0.16.0
func (m *MsgPostPrice) String() string
func (*MsgPostPrice) Unmarshal ¶ added in v0.16.0
func (m *MsgPostPrice) Unmarshal(dAtA []byte) error
func (MsgPostPrice) ValidateBasic ¶
func (msg MsgPostPrice) ValidateBasic() error
ValidateBasic does a simple validation check that doesn't require access to any other information.
func (*MsgPostPrice) VerboseEqual ¶ added in v0.16.0
func (this *MsgPostPrice) VerboseEqual(that interface{}) error
func (*MsgPostPrice) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgPostPrice) XXX_DiscardUnknown()
func (*MsgPostPrice) XXX_Marshal ¶ added in v0.16.0
func (m *MsgPostPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPostPrice) XXX_Merge ¶ added in v0.16.0
func (m *MsgPostPrice) XXX_Merge(src proto.Message)
func (*MsgPostPrice) XXX_Size ¶ added in v0.16.0
func (m *MsgPostPrice) XXX_Size() int
func (*MsgPostPrice) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgPostPrice) XXX_Unmarshal(b []byte) error
type MsgPostPriceResponse ¶ added in v0.16.0
type MsgPostPriceResponse struct { }
MsgPostPriceResponse defines the Msg/PostPrice response type.
func (*MsgPostPriceResponse) Descriptor ¶ added in v0.16.0
func (*MsgPostPriceResponse) Descriptor() ([]byte, []int)
func (*MsgPostPriceResponse) Equal ¶ added in v0.16.0
func (this *MsgPostPriceResponse) Equal(that interface{}) bool
func (*MsgPostPriceResponse) Marshal ¶ added in v0.16.0
func (m *MsgPostPriceResponse) Marshal() (dAtA []byte, err error)
func (*MsgPostPriceResponse) MarshalTo ¶ added in v0.16.0
func (m *MsgPostPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPostPriceResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *MsgPostPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPostPriceResponse) ProtoMessage ¶ added in v0.16.0
func (*MsgPostPriceResponse) ProtoMessage()
func (*MsgPostPriceResponse) Reset ¶ added in v0.16.0
func (m *MsgPostPriceResponse) Reset()
func (*MsgPostPriceResponse) Size ¶ added in v0.16.0
func (m *MsgPostPriceResponse) Size() (n int)
func (*MsgPostPriceResponse) String ¶ added in v0.16.0
func (m *MsgPostPriceResponse) String() string
func (*MsgPostPriceResponse) Unmarshal ¶ added in v0.16.0
func (m *MsgPostPriceResponse) Unmarshal(dAtA []byte) error
func (*MsgPostPriceResponse) VerboseEqual ¶ added in v0.16.0
func (this *MsgPostPriceResponse) VerboseEqual(that interface{}) error
func (*MsgPostPriceResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *MsgPostPriceResponse) XXX_DiscardUnknown()
func (*MsgPostPriceResponse) XXX_Marshal ¶ added in v0.16.0
func (m *MsgPostPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPostPriceResponse) XXX_Merge ¶ added in v0.16.0
func (m *MsgPostPriceResponse) XXX_Merge(src proto.Message)
func (*MsgPostPriceResponse) XXX_Size ¶ added in v0.16.0
func (m *MsgPostPriceResponse) XXX_Size() int
func (*MsgPostPriceResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *MsgPostPriceResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.16.0
type MsgServer interface { // PostPrice defines a method for creating a new post price PostPrice(context.Context, *MsgPostPrice) (*MsgPostPriceResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct {
Markets Markets `protobuf:"bytes,1,rep,name=markets,proto3,castrepeated=Markets" json:"markets"`
}
Params defines the parameters for the pricefeed module.
func (*Params) Descriptor ¶ added in v0.16.0
func (*Params) GetMarkets ¶ added in v0.16.0
func (*Params) MarshalToSizedBuffer ¶ added in v0.16.0
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of pricefeed module's parameters.
func (*Params) ProtoMessage ¶ added in v0.16.0
func (*Params) ProtoMessage()
func (*Params) VerboseEqual ¶ added in v0.16.0
func (*Params) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.16.0
func (*Params) XXX_Unmarshal ¶ added in v0.16.0
type PostedPrice ¶
type PostedPrice struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OracleAddress github_com_cosmos_cosmos_sdk_types.AccAddress `` /* 155-byte string literal not displayed */ Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Expiry time.Time `protobuf:"bytes,4,opt,name=expiry,proto3,stdtime" json:"expiry"` }
PostedPrice defines a price for market posted by a specific oracle.
func NewPostedPrice ¶ added in v0.8.0
func NewPostedPrice(marketID string, oracle sdk.AccAddress, price sdk.Dec, expiry time.Time) PostedPrice
NewPostedPrice returns a new PostedPrice
func (*PostedPrice) Descriptor ¶ added in v0.16.0
func (*PostedPrice) Descriptor() ([]byte, []int)
func (*PostedPrice) Equal ¶ added in v0.16.0
func (this *PostedPrice) Equal(that interface{}) bool
func (*PostedPrice) GetExpiry ¶ added in v0.16.0
func (m *PostedPrice) GetExpiry() time.Time
func (*PostedPrice) GetMarketID ¶ added in v0.16.0
func (m *PostedPrice) GetMarketID() string
func (*PostedPrice) GetOracleAddress ¶ added in v0.16.0
func (m *PostedPrice) GetOracleAddress() github_com_cosmos_cosmos_sdk_types.AccAddress
func (*PostedPrice) Marshal ¶ added in v0.16.0
func (m *PostedPrice) Marshal() (dAtA []byte, err error)
func (*PostedPrice) MarshalTo ¶ added in v0.16.0
func (m *PostedPrice) MarshalTo(dAtA []byte) (int, error)
func (*PostedPrice) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *PostedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PostedPrice) ProtoMessage ¶ added in v0.16.0
func (*PostedPrice) ProtoMessage()
func (*PostedPrice) Reset ¶ added in v0.16.0
func (m *PostedPrice) Reset()
func (*PostedPrice) Size ¶ added in v0.16.0
func (m *PostedPrice) Size() (n int)
func (*PostedPrice) String ¶
func (m *PostedPrice) String() string
func (*PostedPrice) Unmarshal ¶ added in v0.16.0
func (m *PostedPrice) Unmarshal(dAtA []byte) error
func (PostedPrice) Validate ¶ added in v0.8.0
func (pp PostedPrice) Validate() error
Validate performs a basic check of a PostedPrice params.
func (*PostedPrice) VerboseEqual ¶ added in v0.16.0
func (this *PostedPrice) VerboseEqual(that interface{}) error
func (*PostedPrice) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *PostedPrice) XXX_DiscardUnknown()
func (*PostedPrice) XXX_Marshal ¶ added in v0.16.0
func (m *PostedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostedPrice) XXX_Merge ¶ added in v0.16.0
func (m *PostedPrice) XXX_Merge(src proto.Message)
func (*PostedPrice) XXX_Size ¶ added in v0.16.0
func (m *PostedPrice) XXX_Size() int
func (*PostedPrice) XXX_Unmarshal ¶ added in v0.16.0
func (m *PostedPrice) XXX_Unmarshal(b []byte) error
type PostedPriceResponse ¶ added in v0.16.0
type PostedPriceResponse struct { MarketID string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` OracleAddress string `protobuf:"bytes,2,opt,name=oracle_address,json=oracleAddress,proto3" json:"oracle_address,omitempty"` Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` Expiry time.Time `protobuf:"bytes,4,opt,name=expiry,proto3,stdtime" json:"expiry"` }
PostedPriceResponse defines a price for market posted by a specific oracle.
func NewPostedPriceResponse ¶ added in v0.16.0
func NewPostedPriceResponse(marketID string, oracle sdk.AccAddress, price sdk.Dec, expiry time.Time) PostedPriceResponse
NewPostedPrice returns a new PostedPrice
func (*PostedPriceResponse) Descriptor ¶ added in v0.16.0
func (*PostedPriceResponse) Descriptor() ([]byte, []int)
func (*PostedPriceResponse) Equal ¶ added in v0.16.0
func (this *PostedPriceResponse) Equal(that interface{}) bool
func (*PostedPriceResponse) GetExpiry ¶ added in v0.16.0
func (m *PostedPriceResponse) GetExpiry() time.Time
func (*PostedPriceResponse) GetMarketID ¶ added in v0.16.0
func (m *PostedPriceResponse) GetMarketID() string
func (*PostedPriceResponse) GetOracleAddress ¶ added in v0.16.0
func (m *PostedPriceResponse) GetOracleAddress() string
func (*PostedPriceResponse) Marshal ¶ added in v0.16.0
func (m *PostedPriceResponse) Marshal() (dAtA []byte, err error)
func (*PostedPriceResponse) MarshalTo ¶ added in v0.16.0
func (m *PostedPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*PostedPriceResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *PostedPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PostedPriceResponse) ProtoMessage ¶ added in v0.16.0
func (*PostedPriceResponse) ProtoMessage()
func (*PostedPriceResponse) Reset ¶ added in v0.16.0
func (m *PostedPriceResponse) Reset()
func (*PostedPriceResponse) Size ¶ added in v0.16.0
func (m *PostedPriceResponse) Size() (n int)
func (*PostedPriceResponse) String ¶ added in v0.16.0
func (m *PostedPriceResponse) String() string
func (*PostedPriceResponse) Unmarshal ¶ added in v0.16.0
func (m *PostedPriceResponse) Unmarshal(dAtA []byte) error
func (*PostedPriceResponse) VerboseEqual ¶ added in v0.16.0
func (this *PostedPriceResponse) VerboseEqual(that interface{}) error
func (*PostedPriceResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *PostedPriceResponse) XXX_DiscardUnknown()
func (*PostedPriceResponse) XXX_Marshal ¶ added in v0.16.0
func (m *PostedPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostedPriceResponse) XXX_Merge ¶ added in v0.16.0
func (m *PostedPriceResponse) XXX_Merge(src proto.Message)
func (*PostedPriceResponse) XXX_Size ¶ added in v0.16.0
func (m *PostedPriceResponse) XXX_Size() int
func (*PostedPriceResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *PostedPriceResponse) XXX_Unmarshal(b []byte) error
type PostedPriceResponses ¶ added in v0.16.0
type PostedPriceResponses []PostedPriceResponse
PostedPriceResponses is a slice of PostedPriceResponse
type PostedPrices ¶ added in v0.8.0
type PostedPrices []PostedPrice
PostedPrices is a slice of PostedPrice
func (PostedPrices) Validate ¶ added in v0.8.0
func (pps PostedPrices) Validate() error
Validate checks if all the posted prices are valid and there are no duplicated entries.
type QueryClient ¶ added in v0.16.0
type QueryClient interface { // Params queries all parameters of the pricefeed module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Price queries price details based on a market Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error) // Prices queries all prices Prices(ctx context.Context, in *QueryPricesRequest, opts ...grpc.CallOption) (*QueryPricesResponse, error) // RawPrices queries all raw prices based on a market RawPrices(ctx context.Context, in *QueryRawPricesRequest, opts ...grpc.CallOption) (*QueryRawPricesResponse, error) // Oracles queries all oracles based on a market Oracles(ctx context.Context, in *QueryOraclesRequest, opts ...grpc.CallOption) (*QueryOraclesResponse, error) // Markets queries all markets Markets(ctx context.Context, in *QueryMarketsRequest, opts ...grpc.CallOption) (*QueryMarketsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.16.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryMarketsRequest ¶ added in v0.16.0
type QueryMarketsRequest struct { }
QueryMarketsRequest is the request type for the Query/Markets RPC method.
func (*QueryMarketsRequest) Descriptor ¶ added in v0.16.0
func (*QueryMarketsRequest) Descriptor() ([]byte, []int)
func (*QueryMarketsRequest) Equal ¶ added in v0.16.0
func (this *QueryMarketsRequest) Equal(that interface{}) bool
func (*QueryMarketsRequest) Marshal ¶ added in v0.16.0
func (m *QueryMarketsRequest) Marshal() (dAtA []byte, err error)
func (*QueryMarketsRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryMarketsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketsRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryMarketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketsRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryMarketsRequest) ProtoMessage()
func (*QueryMarketsRequest) Reset ¶ added in v0.16.0
func (m *QueryMarketsRequest) Reset()
func (*QueryMarketsRequest) Size ¶ added in v0.16.0
func (m *QueryMarketsRequest) Size() (n int)
func (*QueryMarketsRequest) String ¶ added in v0.16.0
func (m *QueryMarketsRequest) String() string
func (*QueryMarketsRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryMarketsRequest) Unmarshal(dAtA []byte) error
func (*QueryMarketsRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryMarketsRequest) VerboseEqual(that interface{}) error
func (*QueryMarketsRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryMarketsRequest) XXX_DiscardUnknown()
func (*QueryMarketsRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryMarketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketsRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryMarketsRequest) XXX_Merge(src proto.Message)
func (*QueryMarketsRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryMarketsRequest) XXX_Size() int
func (*QueryMarketsRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryMarketsRequest) XXX_Unmarshal(b []byte) error
type QueryMarketsResponse ¶ added in v0.16.0
type QueryMarketsResponse struct { // List of markets Markets MarketResponses `protobuf:"bytes,1,rep,name=markets,proto3,castrepeated=MarketResponses" json:"markets"` }
QueryMarketsResponse is the response type for the Query/Markets RPC method.
func (*QueryMarketsResponse) Descriptor ¶ added in v0.16.0
func (*QueryMarketsResponse) Descriptor() ([]byte, []int)
func (*QueryMarketsResponse) Equal ¶ added in v0.16.0
func (this *QueryMarketsResponse) Equal(that interface{}) bool
func (*QueryMarketsResponse) Marshal ¶ added in v0.16.0
func (m *QueryMarketsResponse) Marshal() (dAtA []byte, err error)
func (*QueryMarketsResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryMarketsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMarketsResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryMarketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMarketsResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryMarketsResponse) ProtoMessage()
func (*QueryMarketsResponse) Reset ¶ added in v0.16.0
func (m *QueryMarketsResponse) Reset()
func (*QueryMarketsResponse) Size ¶ added in v0.16.0
func (m *QueryMarketsResponse) Size() (n int)
func (*QueryMarketsResponse) String ¶ added in v0.16.0
func (m *QueryMarketsResponse) String() string
func (*QueryMarketsResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryMarketsResponse) Unmarshal(dAtA []byte) error
func (*QueryMarketsResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryMarketsResponse) VerboseEqual(that interface{}) error
func (*QueryMarketsResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryMarketsResponse) XXX_DiscardUnknown()
func (*QueryMarketsResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryMarketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMarketsResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryMarketsResponse) XXX_Merge(src proto.Message)
func (*QueryMarketsResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryMarketsResponse) XXX_Size() int
func (*QueryMarketsResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryMarketsResponse) XXX_Unmarshal(b []byte) error
type QueryOraclesRequest ¶ added in v0.16.0
type QueryOraclesRequest struct {
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
QueryOraclesRequest is the request type for the Query/Oracles RPC method.
func (*QueryOraclesRequest) Descriptor ¶ added in v0.16.0
func (*QueryOraclesRequest) Descriptor() ([]byte, []int)
func (*QueryOraclesRequest) Equal ¶ added in v0.16.0
func (this *QueryOraclesRequest) Equal(that interface{}) bool
func (*QueryOraclesRequest) Marshal ¶ added in v0.16.0
func (m *QueryOraclesRequest) Marshal() (dAtA []byte, err error)
func (*QueryOraclesRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryOraclesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOraclesRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryOraclesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOraclesRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryOraclesRequest) ProtoMessage()
func (*QueryOraclesRequest) Reset ¶ added in v0.16.0
func (m *QueryOraclesRequest) Reset()
func (*QueryOraclesRequest) Size ¶ added in v0.16.0
func (m *QueryOraclesRequest) Size() (n int)
func (*QueryOraclesRequest) String ¶ added in v0.16.0
func (m *QueryOraclesRequest) String() string
func (*QueryOraclesRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryOraclesRequest) Unmarshal(dAtA []byte) error
func (*QueryOraclesRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryOraclesRequest) VerboseEqual(that interface{}) error
func (*QueryOraclesRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryOraclesRequest) XXX_DiscardUnknown()
func (*QueryOraclesRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryOraclesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOraclesRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryOraclesRequest) XXX_Merge(src proto.Message)
func (*QueryOraclesRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryOraclesRequest) XXX_Size() int
func (*QueryOraclesRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryOraclesRequest) XXX_Unmarshal(b []byte) error
type QueryOraclesResponse ¶ added in v0.16.0
type QueryOraclesResponse struct { // List of oracle addresses Oracles []string `protobuf:"bytes,1,rep,name=oracles,proto3" json:"oracles,omitempty"` }
QueryOraclesResponse is the response type for the Query/Oracles RPC method.
func (*QueryOraclesResponse) Descriptor ¶ added in v0.16.0
func (*QueryOraclesResponse) Descriptor() ([]byte, []int)
func (*QueryOraclesResponse) Equal ¶ added in v0.16.0
func (this *QueryOraclesResponse) Equal(that interface{}) bool
func (*QueryOraclesResponse) Marshal ¶ added in v0.16.0
func (m *QueryOraclesResponse) Marshal() (dAtA []byte, err error)
func (*QueryOraclesResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryOraclesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOraclesResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryOraclesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOraclesResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryOraclesResponse) ProtoMessage()
func (*QueryOraclesResponse) Reset ¶ added in v0.16.0
func (m *QueryOraclesResponse) Reset()
func (*QueryOraclesResponse) Size ¶ added in v0.16.0
func (m *QueryOraclesResponse) Size() (n int)
func (*QueryOraclesResponse) String ¶ added in v0.16.0
func (m *QueryOraclesResponse) String() string
func (*QueryOraclesResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryOraclesResponse) Unmarshal(dAtA []byte) error
func (*QueryOraclesResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryOraclesResponse) VerboseEqual(that interface{}) error
func (*QueryOraclesResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryOraclesResponse) XXX_DiscardUnknown()
func (*QueryOraclesResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryOraclesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOraclesResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryOraclesResponse) XXX_Merge(src proto.Message)
func (*QueryOraclesResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryOraclesResponse) XXX_Size() int
func (*QueryOraclesResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryOraclesResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v0.16.0
type QueryParamsRequest struct { }
QueryParamsRequest defines the request type for querying x/pricefeed parameters.
func (*QueryParamsRequest) Descriptor ¶ added in v0.16.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Equal ¶ added in v0.16.0
func (this *QueryParamsRequest) Equal(that interface{}) bool
func (*QueryParamsRequest) Marshal ¶ added in v0.16.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v0.16.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v0.16.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v0.16.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryParamsRequest) VerboseEqual(that interface{}) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v0.16.0
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response type for querying x/pricefeed parameters.
func (*QueryParamsResponse) Descriptor ¶ added in v0.16.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) Equal ¶ added in v0.16.0
func (this *QueryParamsResponse) Equal(that interface{}) bool
func (*QueryParamsResponse) Marshal ¶ added in v0.16.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v0.16.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v0.16.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v0.16.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryParamsResponse) VerboseEqual(that interface{}) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPriceRequest ¶ added in v0.16.0
type QueryPriceRequest struct {
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
QueryPriceRequest is the request type for the Query/PriceRequest RPC method.
func (*QueryPriceRequest) Descriptor ¶ added in v0.16.0
func (*QueryPriceRequest) Descriptor() ([]byte, []int)
func (*QueryPriceRequest) Equal ¶ added in v0.16.0
func (this *QueryPriceRequest) Equal(that interface{}) bool
func (*QueryPriceRequest) Marshal ¶ added in v0.16.0
func (m *QueryPriceRequest) Marshal() (dAtA []byte, err error)
func (*QueryPriceRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPriceRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPriceRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryPriceRequest) ProtoMessage()
func (*QueryPriceRequest) Reset ¶ added in v0.16.0
func (m *QueryPriceRequest) Reset()
func (*QueryPriceRequest) Size ¶ added in v0.16.0
func (m *QueryPriceRequest) Size() (n int)
func (*QueryPriceRequest) String ¶ added in v0.16.0
func (m *QueryPriceRequest) String() string
func (*QueryPriceRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryPriceRequest) Unmarshal(dAtA []byte) error
func (*QueryPriceRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryPriceRequest) VerboseEqual(that interface{}) error
func (*QueryPriceRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryPriceRequest) XXX_DiscardUnknown()
func (*QueryPriceRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPriceRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryPriceRequest) XXX_Merge(src proto.Message)
func (*QueryPriceRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryPriceRequest) XXX_Size() int
func (*QueryPriceRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryPriceRequest) XXX_Unmarshal(b []byte) error
type QueryPriceResponse ¶ added in v0.16.0
type QueryPriceResponse struct {
Price CurrentPriceResponse `protobuf:"bytes,1,opt,name=price,proto3" json:"price"`
}
QueryPriceResponse is the response type for the Query/Prices RPC method.
func (*QueryPriceResponse) Descriptor ¶ added in v0.16.0
func (*QueryPriceResponse) Descriptor() ([]byte, []int)
func (*QueryPriceResponse) Equal ¶ added in v0.16.0
func (this *QueryPriceResponse) Equal(that interface{}) bool
func (*QueryPriceResponse) Marshal ¶ added in v0.16.0
func (m *QueryPriceResponse) Marshal() (dAtA []byte, err error)
func (*QueryPriceResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPriceResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPriceResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryPriceResponse) ProtoMessage()
func (*QueryPriceResponse) Reset ¶ added in v0.16.0
func (m *QueryPriceResponse) Reset()
func (*QueryPriceResponse) Size ¶ added in v0.16.0
func (m *QueryPriceResponse) Size() (n int)
func (*QueryPriceResponse) String ¶ added in v0.16.0
func (m *QueryPriceResponse) String() string
func (*QueryPriceResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryPriceResponse) Unmarshal(dAtA []byte) error
func (*QueryPriceResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryPriceResponse) VerboseEqual(that interface{}) error
func (*QueryPriceResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryPriceResponse) XXX_DiscardUnknown()
func (*QueryPriceResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPriceResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryPriceResponse) XXX_Merge(src proto.Message)
func (*QueryPriceResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryPriceResponse) XXX_Size() int
func (*QueryPriceResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryPriceResponse) XXX_Unmarshal(b []byte) error
type QueryPricesRequest ¶ added in v0.16.0
type QueryPricesRequest struct { }
QueryPricesRequest is the request type for the Query/Prices RPC method.
func (*QueryPricesRequest) Descriptor ¶ added in v0.16.0
func (*QueryPricesRequest) Descriptor() ([]byte, []int)
func (*QueryPricesRequest) Equal ¶ added in v0.16.0
func (this *QueryPricesRequest) Equal(that interface{}) bool
func (*QueryPricesRequest) Marshal ¶ added in v0.16.0
func (m *QueryPricesRequest) Marshal() (dAtA []byte, err error)
func (*QueryPricesRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryPricesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPricesRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPricesRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryPricesRequest) ProtoMessage()
func (*QueryPricesRequest) Reset ¶ added in v0.16.0
func (m *QueryPricesRequest) Reset()
func (*QueryPricesRequest) Size ¶ added in v0.16.0
func (m *QueryPricesRequest) Size() (n int)
func (*QueryPricesRequest) String ¶ added in v0.16.0
func (m *QueryPricesRequest) String() string
func (*QueryPricesRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryPricesRequest) Unmarshal(dAtA []byte) error
func (*QueryPricesRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryPricesRequest) VerboseEqual(that interface{}) error
func (*QueryPricesRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryPricesRequest) XXX_DiscardUnknown()
func (*QueryPricesRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPricesRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryPricesRequest) XXX_Merge(src proto.Message)
func (*QueryPricesRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryPricesRequest) XXX_Size() int
func (*QueryPricesRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryPricesRequest) XXX_Unmarshal(b []byte) error
type QueryPricesResponse ¶ added in v0.16.0
type QueryPricesResponse struct {
Prices CurrentPriceResponses `protobuf:"bytes,1,rep,name=prices,proto3,castrepeated=CurrentPriceResponses" json:"prices"`
}
QueryPricesResponse is the response type for the Query/Prices RPC method.
func (*QueryPricesResponse) Descriptor ¶ added in v0.16.0
func (*QueryPricesResponse) Descriptor() ([]byte, []int)
func (*QueryPricesResponse) Equal ¶ added in v0.16.0
func (this *QueryPricesResponse) Equal(that interface{}) bool
func (*QueryPricesResponse) Marshal ¶ added in v0.16.0
func (m *QueryPricesResponse) Marshal() (dAtA []byte, err error)
func (*QueryPricesResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryPricesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPricesResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPricesResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryPricesResponse) ProtoMessage()
func (*QueryPricesResponse) Reset ¶ added in v0.16.0
func (m *QueryPricesResponse) Reset()
func (*QueryPricesResponse) Size ¶ added in v0.16.0
func (m *QueryPricesResponse) Size() (n int)
func (*QueryPricesResponse) String ¶ added in v0.16.0
func (m *QueryPricesResponse) String() string
func (*QueryPricesResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryPricesResponse) Unmarshal(dAtA []byte) error
func (*QueryPricesResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryPricesResponse) VerboseEqual(that interface{}) error
func (*QueryPricesResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryPricesResponse) XXX_DiscardUnknown()
func (*QueryPricesResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPricesResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryPricesResponse) XXX_Merge(src proto.Message)
func (*QueryPricesResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryPricesResponse) XXX_Size() int
func (*QueryPricesResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryPricesResponse) XXX_Unmarshal(b []byte) error
type QueryRawPricesRequest ¶ added in v0.16.0
type QueryRawPricesRequest struct {
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
QueryRawPricesRequest is the request type for the Query/RawPrices RPC method.
func (*QueryRawPricesRequest) Descriptor ¶ added in v0.16.0
func (*QueryRawPricesRequest) Descriptor() ([]byte, []int)
func (*QueryRawPricesRequest) Equal ¶ added in v0.16.0
func (this *QueryRawPricesRequest) Equal(that interface{}) bool
func (*QueryRawPricesRequest) Marshal ¶ added in v0.16.0
func (m *QueryRawPricesRequest) Marshal() (dAtA []byte, err error)
func (*QueryRawPricesRequest) MarshalTo ¶ added in v0.16.0
func (m *QueryRawPricesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRawPricesRequest) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryRawPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRawPricesRequest) ProtoMessage ¶ added in v0.16.0
func (*QueryRawPricesRequest) ProtoMessage()
func (*QueryRawPricesRequest) Reset ¶ added in v0.16.0
func (m *QueryRawPricesRequest) Reset()
func (*QueryRawPricesRequest) Size ¶ added in v0.16.0
func (m *QueryRawPricesRequest) Size() (n int)
func (*QueryRawPricesRequest) String ¶ added in v0.16.0
func (m *QueryRawPricesRequest) String() string
func (*QueryRawPricesRequest) Unmarshal ¶ added in v0.16.0
func (m *QueryRawPricesRequest) Unmarshal(dAtA []byte) error
func (*QueryRawPricesRequest) VerboseEqual ¶ added in v0.16.0
func (this *QueryRawPricesRequest) VerboseEqual(that interface{}) error
func (*QueryRawPricesRequest) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryRawPricesRequest) XXX_DiscardUnknown()
func (*QueryRawPricesRequest) XXX_Marshal ¶ added in v0.16.0
func (m *QueryRawPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRawPricesRequest) XXX_Merge ¶ added in v0.16.0
func (m *QueryRawPricesRequest) XXX_Merge(src proto.Message)
func (*QueryRawPricesRequest) XXX_Size ¶ added in v0.16.0
func (m *QueryRawPricesRequest) XXX_Size() int
func (*QueryRawPricesRequest) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryRawPricesRequest) XXX_Unmarshal(b []byte) error
type QueryRawPricesResponse ¶ added in v0.16.0
type QueryRawPricesResponse struct {
RawPrices PostedPriceResponses `protobuf:"bytes,1,rep,name=raw_prices,json=rawPrices,proto3,castrepeated=PostedPriceResponses" json:"raw_prices"`
}
QueryRawPricesResponse is the response type for the Query/RawPrices RPC method.
func (*QueryRawPricesResponse) Descriptor ¶ added in v0.16.0
func (*QueryRawPricesResponse) Descriptor() ([]byte, []int)
func (*QueryRawPricesResponse) Equal ¶ added in v0.16.0
func (this *QueryRawPricesResponse) Equal(that interface{}) bool
func (*QueryRawPricesResponse) Marshal ¶ added in v0.16.0
func (m *QueryRawPricesResponse) Marshal() (dAtA []byte, err error)
func (*QueryRawPricesResponse) MarshalTo ¶ added in v0.16.0
func (m *QueryRawPricesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRawPricesResponse) MarshalToSizedBuffer ¶ added in v0.16.0
func (m *QueryRawPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRawPricesResponse) ProtoMessage ¶ added in v0.16.0
func (*QueryRawPricesResponse) ProtoMessage()
func (*QueryRawPricesResponse) Reset ¶ added in v0.16.0
func (m *QueryRawPricesResponse) Reset()
func (*QueryRawPricesResponse) Size ¶ added in v0.16.0
func (m *QueryRawPricesResponse) Size() (n int)
func (*QueryRawPricesResponse) String ¶ added in v0.16.0
func (m *QueryRawPricesResponse) String() string
func (*QueryRawPricesResponse) Unmarshal ¶ added in v0.16.0
func (m *QueryRawPricesResponse) Unmarshal(dAtA []byte) error
func (*QueryRawPricesResponse) VerboseEqual ¶ added in v0.16.0
func (this *QueryRawPricesResponse) VerboseEqual(that interface{}) error
func (*QueryRawPricesResponse) XXX_DiscardUnknown ¶ added in v0.16.0
func (m *QueryRawPricesResponse) XXX_DiscardUnknown()
func (*QueryRawPricesResponse) XXX_Marshal ¶ added in v0.16.0
func (m *QueryRawPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRawPricesResponse) XXX_Merge ¶ added in v0.16.0
func (m *QueryRawPricesResponse) XXX_Merge(src proto.Message)
func (*QueryRawPricesResponse) XXX_Size ¶ added in v0.16.0
func (m *QueryRawPricesResponse) XXX_Size() int
func (*QueryRawPricesResponse) XXX_Unmarshal ¶ added in v0.16.0
func (m *QueryRawPricesResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.16.0
type QueryServer interface { // Params queries all parameters of the pricefeed module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Price queries price details based on a market Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error) // Prices queries all prices Prices(context.Context, *QueryPricesRequest) (*QueryPricesResponse, error) // RawPrices queries all raw prices based on a market RawPrices(context.Context, *QueryRawPricesRequest) (*QueryRawPricesResponse, error) // Oracles queries all oracles based on a market Oracles(context.Context, *QueryOraclesRequest) (*QueryOraclesResponse, error) // Markets queries all markets Markets(context.Context, *QueryMarketsRequest) (*QueryMarketsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v0.16.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) PostPrice ¶ added in v0.16.0
func (*UnimplementedMsgServer) PostPrice(ctx context.Context, req *MsgPostPrice) (*MsgPostPriceResponse, error)
type UnimplementedQueryServer ¶ added in v0.16.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Markets ¶ added in v0.16.0
func (*UnimplementedQueryServer) Markets(ctx context.Context, req *QueryMarketsRequest) (*QueryMarketsResponse, error)
func (*UnimplementedQueryServer) Oracles ¶ added in v0.16.0
func (*UnimplementedQueryServer) Oracles(ctx context.Context, req *QueryOraclesRequest) (*QueryOraclesResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v0.16.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Price ¶ added in v0.16.0
func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryPriceRequest) (*QueryPriceResponse, error)
func (*UnimplementedQueryServer) Prices ¶ added in v0.16.0
func (*UnimplementedQueryServer) Prices(ctx context.Context, req *QueryPricesRequest) (*QueryPricesResponse, error)
func (*UnimplementedQueryServer) RawPrices ¶ added in v0.16.0
func (*UnimplementedQueryServer) RawPrices(ctx context.Context, req *QueryRawPricesRequest) (*QueryRawPricesResponse, error)