Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)deprecated
- 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 AggregatedPrice
- func (*AggregatedPrice) Descriptor() ([]byte, []int)
- func (m *AggregatedPrice) GetDenom() string
- func (m *AggregatedPrice) GetDeviationBps() uint64
- func (m *AggregatedPrice) GetNumSources() uint32
- func (m *AggregatedPrice) GetTimestamp() time.Time
- func (m *AggregatedPrice) Marshal() (dAtA []byte, err error)
- func (m *AggregatedPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *AggregatedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AggregatedPrice) ProtoMessage()
- func (m *AggregatedPrice) Reset()
- func (m *AggregatedPrice) Size() (n int)
- func (m *AggregatedPrice) String() string
- func (m *AggregatedPrice) Unmarshal(dAtA []byte) error
- func (m *AggregatedPrice) XXX_DiscardUnknown()
- func (m *AggregatedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AggregatedPrice) XXX_Merge(src proto.Message)
- func (m *AggregatedPrice) XXX_Size() int
- func (m *AggregatedPrice) XXX_Unmarshal(b []byte) error
- type DataID
- func (*DataID) Descriptor() ([]byte, []int)
- func (m *DataID) GetBaseDenom() string
- func (m *DataID) GetDenom() string
- func (m *DataID) Marshal() (dAtA []byte, err error)
- func (m *DataID) MarshalTo(dAtA []byte) (int, error)
- func (m *DataID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataID) ProtoMessage()
- func (m *DataID) Reset()
- func (m *DataID) Size() (n int)
- func (m *DataID) String() string
- func (m *DataID) Unmarshal(dAtA []byte) error
- func (m *DataID) XXX_DiscardUnknown()
- func (m *DataID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataID) XXX_Merge(src proto.Message)
- func (m *DataID) XXX_Size() int
- func (m *DataID) XXX_Unmarshal(b []byte) error
- type EventPriceData
- func (*EventPriceData) Descriptor() ([]byte, []int)
- func (m *EventPriceData) GetData() PriceDataState
- func (m *EventPriceData) GetId() DataID
- func (m *EventPriceData) GetSource() string
- func (m *EventPriceData) Marshal() (dAtA []byte, err error)
- func (m *EventPriceData) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPriceData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPriceData) ProtoMessage()
- func (m *EventPriceData) Reset()
- func (m *EventPriceData) Size() (n int)
- func (m *EventPriceData) String() string
- func (m *EventPriceData) Unmarshal(dAtA []byte) error
- func (m *EventPriceData) XXX_DiscardUnknown()
- func (m *EventPriceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPriceData) XXX_Merge(src proto.Message)
- func (m *EventPriceData) XXX_Size() int
- func (m *EventPriceData) XXX_Unmarshal(b []byte) error
- type EventPriceRecovered
- func (*EventPriceRecovered) Descriptor() ([]byte, []int)
- func (m *EventPriceRecovered) GetHeight() int64
- func (m *EventPriceRecovered) GetId() DataID
- func (m *EventPriceRecovered) GetSource() string
- func (m *EventPriceRecovered) Marshal() (dAtA []byte, err error)
- func (m *EventPriceRecovered) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPriceRecovered) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPriceRecovered) ProtoMessage()
- func (m *EventPriceRecovered) Reset()
- func (m *EventPriceRecovered) Size() (n int)
- func (m *EventPriceRecovered) String() string
- func (m *EventPriceRecovered) Unmarshal(dAtA []byte) error
- func (m *EventPriceRecovered) XXX_DiscardUnknown()
- func (m *EventPriceRecovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPriceRecovered) XXX_Merge(src proto.Message)
- func (m *EventPriceRecovered) XXX_Size() int
- func (m *EventPriceRecovered) XXX_Unmarshal(b []byte) error
- type EventPriceStaleWarning
- func (*EventPriceStaleWarning) Descriptor() ([]byte, []int)
- func (m *EventPriceStaleWarning) GetBlocksToStall() int64
- func (m *EventPriceStaleWarning) GetId() DataID
- func (m *EventPriceStaleWarning) GetLastHeight() int64
- func (m *EventPriceStaleWarning) GetSource() string
- func (m *EventPriceStaleWarning) Marshal() (dAtA []byte, err error)
- func (m *EventPriceStaleWarning) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPriceStaleWarning) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPriceStaleWarning) ProtoMessage()
- func (m *EventPriceStaleWarning) Reset()
- func (m *EventPriceStaleWarning) Size() (n int)
- func (m *EventPriceStaleWarning) String() string
- func (m *EventPriceStaleWarning) Unmarshal(dAtA []byte) error
- func (m *EventPriceStaleWarning) XXX_DiscardUnknown()
- func (m *EventPriceStaleWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPriceStaleWarning) XXX_Merge(src proto.Message)
- func (m *EventPriceStaleWarning) XXX_Size() int
- func (m *EventPriceStaleWarning) XXX_Unmarshal(b []byte) error
- type EventPriceStaled
- func (*EventPriceStaled) Descriptor() ([]byte, []int)
- func (m *EventPriceStaled) GetId() DataID
- func (m *EventPriceStaled) GetLastHeight() int64
- func (m *EventPriceStaled) GetSource() string
- func (m *EventPriceStaled) Marshal() (dAtA []byte, err error)
- func (m *EventPriceStaled) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPriceStaled) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPriceStaled) ProtoMessage()
- func (m *EventPriceStaled) Reset()
- func (m *EventPriceStaled) Size() (n int)
- func (m *EventPriceStaled) String() string
- func (m *EventPriceStaled) Unmarshal(dAtA []byte) error
- func (m *EventPriceStaled) XXX_DiscardUnknown()
- func (m *EventPriceStaled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPriceStaled) XXX_Merge(src proto.Message)
- func (m *EventPriceStaled) XXX_Size() int
- func (m *EventPriceStaled) XXX_Unmarshal(b []byte) error
- type FeedContractConfig
- type FeedContractParams
- func (*FeedContractParams) Descriptor() ([]byte, []int)
- func (this *FeedContractParams) Equal(that interface{}) bool
- func (m *FeedContractParams) GetConfig() *any.Any
- func (p *FeedContractParams) GetFeedContractConfig() (FeedContractConfig, error)
- func (m *FeedContractParams) GetName() string
- func (m *FeedContractParams) Marshal() (dAtA []byte, err error)
- func (m *FeedContractParams) MarshalTo(dAtA []byte) (int, error)
- func (m *FeedContractParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeedContractParams) ProtoMessage()
- func (m *FeedContractParams) Reset()
- func (m *FeedContractParams) Size() (n int)
- func (m *FeedContractParams) String() string
- func (m *FeedContractParams) Unmarshal(dAtA []byte) error
- func (p *FeedContractParams) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (p *FeedContractParams) Validate() error
- func (m *FeedContractParams) XXX_DiscardUnknown()
- func (m *FeedContractParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeedContractParams) XXX_Merge(src proto.Message)
- func (m *FeedContractParams) XXX_Size() int
- func (m *FeedContractParams) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLatestHeight() []PriceDataID
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPrices() []PriceData
- 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 (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 MsgAddPriceEntry
- func (*MsgAddPriceEntry) Descriptor() ([]byte, []int)
- func (m *MsgAddPriceEntry) GetID() DataID
- func (m *MsgAddPriceEntry) GetPrice() PriceDataState
- func (m *MsgAddPriceEntry) GetSignBytes() []bytedeprecated
- func (m *MsgAddPriceEntry) GetSigner() string
- func (m *MsgAddPriceEntry) GetSigners() []sdk.AccAddress
- func (m *MsgAddPriceEntry) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPriceEntry) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPriceEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPriceEntry) ProtoMessage()
- func (m *MsgAddPriceEntry) Reset()
- func (m *MsgAddPriceEntry) Route() stringdeprecated
- func (m *MsgAddPriceEntry) Size() (n int)
- func (m *MsgAddPriceEntry) String() string
- func (m *MsgAddPriceEntry) Type() string
- func (m *MsgAddPriceEntry) Unmarshal(dAtA []byte) error
- func (m *MsgAddPriceEntry) ValidateBasic() error
- func (m *MsgAddPriceEntry) XXX_DiscardUnknown()
- func (m *MsgAddPriceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPriceEntry) XXX_Merge(src proto.Message)
- func (m *MsgAddPriceEntry) XXX_Size() int
- func (m *MsgAddPriceEntry) XXX_Unmarshal(b []byte) error
- type MsgAddPriceEntryResponse
- func (*MsgAddPriceEntryResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddPriceEntryResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPriceEntryResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPriceEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPriceEntryResponse) ProtoMessage()
- func (m *MsgAddPriceEntryResponse) Reset()
- func (m *MsgAddPriceEntryResponse) Size() (n int)
- func (m *MsgAddPriceEntryResponse) String() string
- func (m *MsgAddPriceEntryResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddPriceEntryResponse) XXX_DiscardUnknown()
- func (m *MsgAddPriceEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPriceEntryResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddPriceEntryResponse) XXX_Size() int
- func (m *MsgAddPriceEntryResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) GetSignBytes() []bytedeprecated
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Route() stringdeprecated
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Type() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetFeedContractParams() *FeedContractParams
- func (m *Params) GetMaxPriceDeviationBps() uint64
- func (m *Params) GetMaxPriceStalenessBlocks() int64
- func (m *Params) GetMinPriceSources() uint32
- func (m *Params) GetSources() []string
- func (m *Params) GetTwapWindow() int64
- 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) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
- func (p Params) Validate() 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 PriceData
- func (*PriceData) Descriptor() ([]byte, []int)
- func (m *PriceData) GetID() PriceDataRecordID
- func (m *PriceData) GetState() PriceDataState
- func (m *PriceData) Marshal() (dAtA []byte, err error)
- func (m *PriceData) MarshalTo(dAtA []byte) (int, error)
- func (m *PriceData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PriceData) ProtoMessage()
- func (m *PriceData) Reset()
- func (m *PriceData) Size() (n int)
- func (m *PriceData) String() string
- func (m *PriceData) Unmarshal(dAtA []byte) error
- func (m *PriceData) XXX_DiscardUnknown()
- func (m *PriceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PriceData) XXX_Merge(src proto.Message)
- func (m *PriceData) XXX_Size() int
- func (m *PriceData) XXX_Unmarshal(b []byte) error
- type PriceDataID
- func (*PriceDataID) Descriptor() ([]byte, []int)
- func (m *PriceDataID) GetBaseDenom() string
- func (m *PriceDataID) GetDenom() string
- func (m *PriceDataID) GetSource() uint32
- func (m *PriceDataID) Marshal() (dAtA []byte, err error)
- func (m *PriceDataID) MarshalTo(dAtA []byte) (int, error)
- func (m *PriceDataID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PriceDataID) ProtoMessage()
- func (m *PriceDataID) Reset()
- func (m *PriceDataID) Size() (n int)
- func (m *PriceDataID) String() string
- func (m *PriceDataID) Unmarshal(dAtA []byte) error
- func (m *PriceDataID) XXX_DiscardUnknown()
- func (m *PriceDataID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PriceDataID) XXX_Merge(src proto.Message)
- func (m *PriceDataID) XXX_Size() int
- func (m *PriceDataID) XXX_Unmarshal(b []byte) error
- type PriceDataRecordID
- func (*PriceDataRecordID) Descriptor() ([]byte, []int)
- func (m *PriceDataRecordID) GetBaseDenom() string
- func (m *PriceDataRecordID) GetDenom() string
- func (m *PriceDataRecordID) GetHeight() int64
- func (m *PriceDataRecordID) GetSource() uint32
- func (m *PriceDataRecordID) Marshal() (dAtA []byte, err error)
- func (m *PriceDataRecordID) MarshalTo(dAtA []byte) (int, error)
- func (m *PriceDataRecordID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PriceDataRecordID) ProtoMessage()
- func (m *PriceDataRecordID) Reset()
- func (m *PriceDataRecordID) Size() (n int)
- func (m *PriceDataRecordID) String() string
- func (m *PriceDataRecordID) Unmarshal(dAtA []byte) error
- func (m *PriceDataRecordID) XXX_DiscardUnknown()
- func (m *PriceDataRecordID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PriceDataRecordID) XXX_Merge(src proto.Message)
- func (m *PriceDataRecordID) XXX_Size() int
- func (m *PriceDataRecordID) XXX_Unmarshal(b []byte) error
- type PriceDataState
- func (*PriceDataState) Descriptor() ([]byte, []int)
- func (m *PriceDataState) GetTimestamp() time.Time
- func (m *PriceDataState) Marshal() (dAtA []byte, err error)
- func (m *PriceDataState) MarshalTo(dAtA []byte) (int, error)
- func (m *PriceDataState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PriceDataState) ProtoMessage()
- func (m *PriceDataState) Reset()
- func (m *PriceDataState) Size() (n int)
- func (m *PriceDataState) String() string
- func (m *PriceDataState) Unmarshal(dAtA []byte) error
- func (m *PriceDataState) XXX_DiscardUnknown()
- func (m *PriceDataState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PriceDataState) XXX_Merge(src proto.Message)
- func (m *PriceDataState) XXX_Size() int
- func (m *PriceDataState) XXX_Unmarshal(b []byte) error
- type PriceHealth
- func (*PriceHealth) Descriptor() ([]byte, []int)
- func (m *PriceHealth) GetAllSourcesFresh() bool
- func (m *PriceHealth) GetDenom() string
- func (m *PriceHealth) GetDeviationOk() bool
- func (m *PriceHealth) GetFailureReason() []string
- func (m *PriceHealth) GetHasMinSources() bool
- func (m *PriceHealth) GetIsHealthy() bool
- func (m *PriceHealth) Marshal() (dAtA []byte, err error)
- func (m *PriceHealth) MarshalTo(dAtA []byte) (int, error)
- func (m *PriceHealth) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PriceHealth) ProtoMessage()
- func (m *PriceHealth) Reset()
- func (m *PriceHealth) Size() (n int)
- func (m *PriceHealth) String() string
- func (m *PriceHealth) Unmarshal(dAtA []byte) error
- func (m *PriceHealth) XXX_DiscardUnknown()
- func (m *PriceHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PriceHealth) XXX_Merge(src proto.Message)
- func (m *PriceHealth) XXX_Size() int
- func (m *PriceHealth) XXX_Unmarshal(b []byte) error
- type PricesFilter
- func (*PricesFilter) Descriptor() ([]byte, []int)
- func (m *PricesFilter) GetAssetDenom() string
- func (m *PricesFilter) GetBaseDenom() string
- func (m *PricesFilter) GetHeight() int64
- func (m *PricesFilter) Marshal() (dAtA []byte, err error)
- func (m *PricesFilter) MarshalTo(dAtA []byte) (int, error)
- func (m *PricesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PricesFilter) ProtoMessage()
- func (m *PricesFilter) Reset()
- func (m *PricesFilter) Size() (n int)
- func (m *PricesFilter) String() string
- func (m *PricesFilter) Unmarshal(dAtA []byte) error
- func (m *PricesFilter) XXX_DiscardUnknown()
- func (m *PricesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PricesFilter) XXX_Merge(src proto.Message)
- func (m *PricesFilter) XXX_Size() int
- func (m *PricesFilter) XXX_Unmarshal(b []byte) error
- type PythContractParams
- func (*PythContractParams) Descriptor() ([]byte, []int)
- func (this *PythContractParams) Equal(that interface{}) bool
- func (m *PythContractParams) GetAktPriceFeedId() string
- func (m *PythContractParams) Marshal() (dAtA []byte, err error)
- func (m *PythContractParams) MarshalTo(dAtA []byte) (int, error)
- func (m *PythContractParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PythContractParams) ProtoMessage()
- func (m *PythContractParams) Reset()
- func (m *PythContractParams) Size() (n int)
- func (m *PythContractParams) String() string
- func (m *PythContractParams) Unmarshal(dAtA []byte) error
- func (p *PythContractParams) ValidateBasic() error
- func (m *PythContractParams) XXX_DiscardUnknown()
- func (m *PythContractParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PythContractParams) XXX_Merge(src proto.Message)
- func (m *PythContractParams) XXX_Size() int
- func (m *PythContractParams) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- 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 (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 (m *QueryParamsResponse) GetParams() Params
- 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 (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 QueryPriceFeedConfigRequest
- func (*QueryPriceFeedConfigRequest) Descriptor() ([]byte, []int)
- func (m *QueryPriceFeedConfigRequest) GetDenom() string
- func (m *QueryPriceFeedConfigRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPriceFeedConfigRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPriceFeedConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPriceFeedConfigRequest) ProtoMessage()
- func (m *QueryPriceFeedConfigRequest) Reset()
- func (m *QueryPriceFeedConfigRequest) Size() (n int)
- func (m *QueryPriceFeedConfigRequest) String() string
- func (m *QueryPriceFeedConfigRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPriceFeedConfigRequest) XXX_DiscardUnknown()
- func (m *QueryPriceFeedConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPriceFeedConfigRequest) XXX_Merge(src proto.Message)
- func (m *QueryPriceFeedConfigRequest) XXX_Size() int
- func (m *QueryPriceFeedConfigRequest) XXX_Unmarshal(b []byte) error
- type QueryPriceFeedConfigResponse
- func (*QueryPriceFeedConfigResponse) Descriptor() ([]byte, []int)
- func (m *QueryPriceFeedConfigResponse) GetEnabled() bool
- func (m *QueryPriceFeedConfigResponse) GetPriceFeedId() string
- func (m *QueryPriceFeedConfigResponse) GetPythContractAddress() string
- func (m *QueryPriceFeedConfigResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPriceFeedConfigResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPriceFeedConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPriceFeedConfigResponse) ProtoMessage()
- func (m *QueryPriceFeedConfigResponse) Reset()
- func (m *QueryPriceFeedConfigResponse) Size() (n int)
- func (m *QueryPriceFeedConfigResponse) String() string
- func (m *QueryPriceFeedConfigResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPriceFeedConfigResponse) XXX_DiscardUnknown()
- func (m *QueryPriceFeedConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPriceFeedConfigResponse) XXX_Merge(src proto.Message)
- func (m *QueryPriceFeedConfigResponse) XXX_Size() int
- func (m *QueryPriceFeedConfigResponse) XXX_Unmarshal(b []byte) error
- type QueryPricesRequest
- func (*QueryPricesRequest) Descriptor() ([]byte, []int)
- func (m *QueryPricesRequest) GetFilters() PricesFilter
- func (m *QueryPricesRequest) GetPagination() *query.PageRequest
- 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 (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 (m *QueryPricesResponse) GetPagination() *query.PageResponse
- func (m *QueryPricesResponse) GetPrices() []PriceData
- 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 (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 QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PriceFeedConfig(ctx context.Context, req *QueryPriceFeedConfigRequest) (*QueryPriceFeedConfigResponse, error)
- func (*UnimplementedQueryServer) Prices(ctx context.Context, req *QueryPricesRequest) (*QueryPricesResponse, error)
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "oracle" // StoreKey is the store key string for deployment StoreKey = ModuleName // RouterKey is the message route for deployment RouterKey = ModuleName )
const (
// FeedContractNamePyth is the name identifier for Pyth price feed contracts
FeedContractNamePyth = "pyth"
)
Variables ¶
var ( // ErrPriceEntryExists is the error when price entry already exists ErrPriceEntryExists = cerrors.Register(ModuleName, errPriceEntryExists, "price entry exist") // ErrInvalidTimestamp is the error indicating invalid timestamp ErrInvalidTimestamp = cerrors.Register(ModuleName, errInvalidTimestamp, "invalid timestamp") ErrUnauthorizedWriterAddress = cerrors.Register(ModuleName, errUnauthorizedWriterAddress, "unauthorized writer address") // ErrPriceStalled is the error when price data is stale ErrPriceStalled = cerrors.Register(ModuleName, errPriceStalled, "price stalled") // ErrInvalidFeedContractParams is the error when feed contract params are invalid ErrInvalidFeedContractParams = cerrors.Register(ModuleName, errInvalidFeedContractParams, "invalid feed contract params") // ErrInvalidFeedContractConfig is the error when feed contract config is invalid ErrInvalidFeedContractConfig = cerrors.Register(ModuleName, errInvalidFeedContractConfig, "invalid feed contract config") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthMsgs = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsgs = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsgs = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPrices = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPrices = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPrices = fmt.Errorf("proto: unexpected end of group") )
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 ( // ModuleCdc references the global x/oracle module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/oracle and // defined at the application level. // // Deprecated: ModuleCdc use is deprecated ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable for oracle module Deprecated: now params can be accessed on key `0x01` on the oracle store.
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/oracle interfaces types with the interface registry
func RegisterLegacyAminoCodec
deprecated
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec register concrete types on codec
Deprecated: RegisterLegacyAminoCodec is deprecated
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
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 ¶
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 ¶
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 ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AggregatedPrice ¶
type AggregatedPrice struct {
// denom is the asset denomination
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom" yaml:"denom"`
// twap is the time-weighted average price over the configured window
TWAP cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=twap,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"twap" yaml:"twap"`
// median_price is the median of all source prices
MedianPrice cosmossdk_io_math.LegacyDec `` /* 143-byte string literal not displayed */
// min_price is the minimum price from all sources
MinPrice cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
// max_price is the maximum price from all sources
MaxPrice cosmossdk_io_math.LegacyDec `` /* 131-byte string literal not displayed */
// timestamp is when the aggregated price was computed
Timestamp time.Time `protobuf:"bytes,6,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
// num_sources is the number of price sources contributing to this aggregation
NumSources uint32 `protobuf:"varint,7,opt,name=num_sources,json=numSources,proto3" json:"num_sources" yaml:"num_sources"`
// deviation_bps is the price deviation in basis points between min and max prices
DeviationBps uint64 `protobuf:"varint,8,opt,name=deviation_bps,json=deviationBps,proto3" json:"deviation_bps" yaml:"deviation_bps"`
}
AggregatedPrice represents the final aggregated price from all sources
func (*AggregatedPrice) Descriptor ¶
func (*AggregatedPrice) Descriptor() ([]byte, []int)
func (*AggregatedPrice) GetDenom ¶
func (m *AggregatedPrice) GetDenom() string
func (*AggregatedPrice) GetDeviationBps ¶
func (m *AggregatedPrice) GetDeviationBps() uint64
func (*AggregatedPrice) GetNumSources ¶
func (m *AggregatedPrice) GetNumSources() uint32
func (*AggregatedPrice) GetTimestamp ¶
func (m *AggregatedPrice) GetTimestamp() time.Time
func (*AggregatedPrice) Marshal ¶
func (m *AggregatedPrice) Marshal() (dAtA []byte, err error)
func (*AggregatedPrice) MarshalToSizedBuffer ¶
func (m *AggregatedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AggregatedPrice) ProtoMessage ¶
func (*AggregatedPrice) ProtoMessage()
func (*AggregatedPrice) Reset ¶
func (m *AggregatedPrice) Reset()
func (*AggregatedPrice) Size ¶
func (m *AggregatedPrice) Size() (n int)
func (*AggregatedPrice) String ¶
func (m *AggregatedPrice) String() string
func (*AggregatedPrice) Unmarshal ¶
func (m *AggregatedPrice) Unmarshal(dAtA []byte) error
func (*AggregatedPrice) XXX_DiscardUnknown ¶
func (m *AggregatedPrice) XXX_DiscardUnknown()
func (*AggregatedPrice) XXX_Marshal ¶
func (m *AggregatedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AggregatedPrice) XXX_Merge ¶
func (m *AggregatedPrice) XXX_Merge(src proto.Message)
func (*AggregatedPrice) XXX_Size ¶
func (m *AggregatedPrice) XXX_Size() int
func (*AggregatedPrice) XXX_Unmarshal ¶
func (m *AggregatedPrice) XXX_Unmarshal(b []byte) error
type DataID ¶
type DataID struct {
// denom is the asset denomination (e.g., "uakt")
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom" yaml:"denom"`
// base_denom is the base denomination for the price pair (e.g., "usd")
BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom" yaml:"base_denom"`
}
DataID uniquely identifies a price pair by asset and base denomination
func (*DataID) Descriptor ¶
func (*DataID) GetBaseDenom ¶
func (*DataID) MarshalToSizedBuffer ¶
func (*DataID) ProtoMessage ¶
func (*DataID) ProtoMessage()
func (*DataID) XXX_DiscardUnknown ¶
func (m *DataID) XXX_DiscardUnknown()
func (*DataID) XXX_Marshal ¶
func (*DataID) XXX_Unmarshal ¶
type EventPriceData ¶
type EventPriceData struct {
// source is the address of the price source (oracle provider)
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source" yaml:"source"`
// id identifies the price pair (denom and base_denom)
Id DataID `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
// data contains the price value and timestamp
Data PriceDataState `protobuf:"bytes,3,opt,name=data,proto3" json:"data" yaml:"data"`
}
EventPriceData is emitted when new price data is added to the oracle
func (*EventPriceData) Descriptor ¶
func (*EventPriceData) Descriptor() ([]byte, []int)
func (*EventPriceData) GetData ¶
func (m *EventPriceData) GetData() PriceDataState
func (*EventPriceData) GetId ¶
func (m *EventPriceData) GetId() DataID
func (*EventPriceData) GetSource ¶
func (m *EventPriceData) GetSource() string
func (*EventPriceData) Marshal ¶
func (m *EventPriceData) Marshal() (dAtA []byte, err error)
func (*EventPriceData) MarshalToSizedBuffer ¶
func (m *EventPriceData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPriceData) ProtoMessage ¶
func (*EventPriceData) ProtoMessage()
func (*EventPriceData) Reset ¶
func (m *EventPriceData) Reset()
func (*EventPriceData) Size ¶
func (m *EventPriceData) Size() (n int)
func (*EventPriceData) String ¶
func (m *EventPriceData) String() string
func (*EventPriceData) Unmarshal ¶
func (m *EventPriceData) Unmarshal(dAtA []byte) error
func (*EventPriceData) XXX_DiscardUnknown ¶
func (m *EventPriceData) XXX_DiscardUnknown()
func (*EventPriceData) XXX_Marshal ¶
func (m *EventPriceData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPriceData) XXX_Merge ¶
func (m *EventPriceData) XXX_Merge(src proto.Message)
func (*EventPriceData) XXX_Size ¶
func (m *EventPriceData) XXX_Size() int
func (*EventPriceData) XXX_Unmarshal ¶
func (m *EventPriceData) XXX_Unmarshal(b []byte) error
type EventPriceRecovered ¶
type EventPriceRecovered struct {
// source is the address of the price source
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source" yaml:"source"`
// id identifies the price pair
Id DataID `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
// height is the block height when the price recovery was detected
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height" yaml:"height"`
}
EventPriceRecovered is emitted when a stale price has started receiving updates again
func (*EventPriceRecovered) Descriptor ¶
func (*EventPriceRecovered) Descriptor() ([]byte, []int)
func (*EventPriceRecovered) GetHeight ¶
func (m *EventPriceRecovered) GetHeight() int64
func (*EventPriceRecovered) GetId ¶
func (m *EventPriceRecovered) GetId() DataID
func (*EventPriceRecovered) GetSource ¶
func (m *EventPriceRecovered) GetSource() string
func (*EventPriceRecovered) Marshal ¶
func (m *EventPriceRecovered) Marshal() (dAtA []byte, err error)
func (*EventPriceRecovered) MarshalTo ¶
func (m *EventPriceRecovered) MarshalTo(dAtA []byte) (int, error)
func (*EventPriceRecovered) MarshalToSizedBuffer ¶
func (m *EventPriceRecovered) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPriceRecovered) ProtoMessage ¶
func (*EventPriceRecovered) ProtoMessage()
func (*EventPriceRecovered) Reset ¶
func (m *EventPriceRecovered) Reset()
func (*EventPriceRecovered) Size ¶
func (m *EventPriceRecovered) Size() (n int)
func (*EventPriceRecovered) String ¶
func (m *EventPriceRecovered) String() string
func (*EventPriceRecovered) Unmarshal ¶
func (m *EventPriceRecovered) Unmarshal(dAtA []byte) error
func (*EventPriceRecovered) XXX_DiscardUnknown ¶
func (m *EventPriceRecovered) XXX_DiscardUnknown()
func (*EventPriceRecovered) XXX_Marshal ¶
func (m *EventPriceRecovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPriceRecovered) XXX_Merge ¶
func (m *EventPriceRecovered) XXX_Merge(src proto.Message)
func (*EventPriceRecovered) XXX_Size ¶
func (m *EventPriceRecovered) XXX_Size() int
func (*EventPriceRecovered) XXX_Unmarshal ¶
func (m *EventPriceRecovered) XXX_Unmarshal(b []byte) error
type EventPriceStaleWarning ¶
type EventPriceStaleWarning struct {
// source is the address of the price source
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source" yaml:"source"`
// id identifies the price pair
Id DataID `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
// last_height is the block height when the price was last updated
LastHeight int64 `protobuf:"varint,3,opt,name=last_height,json=lastHeight,proto3" json:"last_height" yaml:"last_height"`
// blocks_to_stall is the number of blocks until the price becomes stale
BlocksToStall int64 `protobuf:"varint,4,opt,name=blocks_to_stall,json=blocksToStall,proto3" json:"blocks_to_stall" yaml:"blocks_to_stall"`
}
EventPriceStaleWarning is emitted when price has not been updated and is about to become stale
func (*EventPriceStaleWarning) Descriptor ¶
func (*EventPriceStaleWarning) Descriptor() ([]byte, []int)
func (*EventPriceStaleWarning) GetBlocksToStall ¶
func (m *EventPriceStaleWarning) GetBlocksToStall() int64
func (*EventPriceStaleWarning) GetId ¶
func (m *EventPriceStaleWarning) GetId() DataID
func (*EventPriceStaleWarning) GetLastHeight ¶
func (m *EventPriceStaleWarning) GetLastHeight() int64
func (*EventPriceStaleWarning) GetSource ¶
func (m *EventPriceStaleWarning) GetSource() string
func (*EventPriceStaleWarning) Marshal ¶
func (m *EventPriceStaleWarning) Marshal() (dAtA []byte, err error)
func (*EventPriceStaleWarning) MarshalTo ¶
func (m *EventPriceStaleWarning) MarshalTo(dAtA []byte) (int, error)
func (*EventPriceStaleWarning) MarshalToSizedBuffer ¶
func (m *EventPriceStaleWarning) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPriceStaleWarning) ProtoMessage ¶
func (*EventPriceStaleWarning) ProtoMessage()
func (*EventPriceStaleWarning) Reset ¶
func (m *EventPriceStaleWarning) Reset()
func (*EventPriceStaleWarning) Size ¶
func (m *EventPriceStaleWarning) Size() (n int)
func (*EventPriceStaleWarning) String ¶
func (m *EventPriceStaleWarning) String() string
func (*EventPriceStaleWarning) Unmarshal ¶
func (m *EventPriceStaleWarning) Unmarshal(dAtA []byte) error
func (*EventPriceStaleWarning) XXX_DiscardUnknown ¶
func (m *EventPriceStaleWarning) XXX_DiscardUnknown()
func (*EventPriceStaleWarning) XXX_Marshal ¶
func (m *EventPriceStaleWarning) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPriceStaleWarning) XXX_Merge ¶
func (m *EventPriceStaleWarning) XXX_Merge(src proto.Message)
func (*EventPriceStaleWarning) XXX_Size ¶
func (m *EventPriceStaleWarning) XXX_Size() int
func (*EventPriceStaleWarning) XXX_Unmarshal ¶
func (m *EventPriceStaleWarning) XXX_Unmarshal(b []byte) error
type EventPriceStaled ¶
type EventPriceStaled struct {
// source is the address of the price source
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source" yaml:"source"`
// id identifies the price pair
Id DataID `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
// last_height is the block height when the price was last updated before becoming stale
LastHeight int64 `protobuf:"varint,3,opt,name=last_height,json=lastHeight,proto3" json:"last_height" yaml:"last_height"`
}
EventPriceStaled is emitted when a price has become stale
func (*EventPriceStaled) Descriptor ¶
func (*EventPriceStaled) Descriptor() ([]byte, []int)
func (*EventPriceStaled) GetId ¶
func (m *EventPriceStaled) GetId() DataID
func (*EventPriceStaled) GetLastHeight ¶
func (m *EventPriceStaled) GetLastHeight() int64
func (*EventPriceStaled) GetSource ¶
func (m *EventPriceStaled) GetSource() string
func (*EventPriceStaled) Marshal ¶
func (m *EventPriceStaled) Marshal() (dAtA []byte, err error)
func (*EventPriceStaled) MarshalToSizedBuffer ¶
func (m *EventPriceStaled) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventPriceStaled) ProtoMessage ¶
func (*EventPriceStaled) ProtoMessage()
func (*EventPriceStaled) Reset ¶
func (m *EventPriceStaled) Reset()
func (*EventPriceStaled) Size ¶
func (m *EventPriceStaled) Size() (n int)
func (*EventPriceStaled) String ¶
func (m *EventPriceStaled) String() string
func (*EventPriceStaled) Unmarshal ¶
func (m *EventPriceStaled) Unmarshal(dAtA []byte) error
func (*EventPriceStaled) XXX_DiscardUnknown ¶
func (m *EventPriceStaled) XXX_DiscardUnknown()
func (*EventPriceStaled) XXX_Marshal ¶
func (m *EventPriceStaled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventPriceStaled) XXX_Merge ¶
func (m *EventPriceStaled) XXX_Merge(src proto.Message)
func (*EventPriceStaled) XXX_Size ¶
func (m *EventPriceStaled) XXX_Size() int
func (*EventPriceStaled) XXX_Unmarshal ¶
func (m *EventPriceStaled) XXX_Unmarshal(b []byte) error
type FeedContractConfig ¶
FeedContractConfig is the interface that all feed contract configurations must implement
type FeedContractParams ¶
type FeedContractParams struct {
// name is the identifier for the price feed contract type (e.g., "pyth", "chainlink")
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// config contains the specific configuration for this feed contract type
Config *any.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
}
FeedContractConfig is the interface that all feed contract configurations must implement This allows for different price feed implementations (e.g., Pyth, Chainlink, etc.)
func DefaultFeedContractParams ¶
func DefaultFeedContractParams() *FeedContractParams
DefaultFeedContractParams returns default feed contract params using Pyth
func NewFeedContractParams ¶
func NewFeedContractParams(name string, config FeedContractConfig) (*FeedContractParams, error)
NewFeedContractParams creates a new FeedContractParams with the given name and config
func (*FeedContractParams) Descriptor ¶
func (*FeedContractParams) Descriptor() ([]byte, []int)
func (*FeedContractParams) Equal ¶
func (this *FeedContractParams) Equal(that interface{}) bool
func (*FeedContractParams) GetConfig ¶
func (m *FeedContractParams) GetConfig() *any.Any
func (*FeedContractParams) GetFeedContractConfig ¶
func (p *FeedContractParams) GetFeedContractConfig() (FeedContractConfig, error)
GetFeedContractConfig returns the feed contract config from the Any field
func (*FeedContractParams) GetName ¶
func (m *FeedContractParams) GetName() string
func (*FeedContractParams) Marshal ¶
func (m *FeedContractParams) Marshal() (dAtA []byte, err error)
func (*FeedContractParams) MarshalTo ¶
func (m *FeedContractParams) MarshalTo(dAtA []byte) (int, error)
func (*FeedContractParams) MarshalToSizedBuffer ¶
func (m *FeedContractParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FeedContractParams) ProtoMessage ¶
func (*FeedContractParams) ProtoMessage()
func (*FeedContractParams) Reset ¶
func (m *FeedContractParams) Reset()
func (*FeedContractParams) Size ¶
func (m *FeedContractParams) Size() (n int)
func (*FeedContractParams) String ¶
func (m *FeedContractParams) String() string
func (*FeedContractParams) Unmarshal ¶
func (m *FeedContractParams) Unmarshal(dAtA []byte) error
func (*FeedContractParams) UnpackInterfaces ¶
func (p *FeedContractParams) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage for FeedContractParams
func (*FeedContractParams) Validate ¶
func (p *FeedContractParams) Validate() error
Validate validates FeedContractParams
func (*FeedContractParams) XXX_DiscardUnknown ¶
func (m *FeedContractParams) XXX_DiscardUnknown()
func (*FeedContractParams) XXX_Marshal ¶
func (m *FeedContractParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FeedContractParams) XXX_Merge ¶
func (m *FeedContractParams) XXX_Merge(src proto.Message)
func (*FeedContractParams) XXX_Size ¶
func (m *FeedContractParams) XXX_Size() int
func (*FeedContractParams) XXX_Unmarshal ¶
func (m *FeedContractParams) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
// params holds the oracle module parameters
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
// prices is the list of all historical price data entries
Prices []PriceData `protobuf:"bytes,2,rep,name=prices,proto3" json:"prices" yaml:"prices"`
// latest_height tracks the most recent block height for each price feed source
LatestHeight []PriceDataID `protobuf:"bytes,3,rep,name=latest_height,json=latestHeight,proto3" json:"latest_height" yaml:"latest_height"`
}
GenesisState defines the oracle module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetLatestHeight ¶
func (m *GenesisState) GetLatestHeight() []PriceDataID
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPrices ¶
func (m *GenesisState) GetPrices() []PriceData
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (gs *GenesisState) Validate() error
Validate validates the genesis state.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAddPriceEntry ¶
type MsgAddPriceEntry struct {
// Signer is the bech32 address of the account of the provider.
// It is a string representing a valid account address.
//
// Example:
// "akash1..."
Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer" yaml:"signer"`
// id uniquely identifies the price data by denomination and base denomination
ID DataID `protobuf:"bytes,2,opt,name=id,proto3" json:"id" yaml:"id"`
// price contains the price value and timestamp for this entry
Price PriceDataState `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"`
}
MsgAddPriceEntry defines an SDK message to add oracle price entry.
func (*MsgAddPriceEntry) Descriptor ¶
func (*MsgAddPriceEntry) Descriptor() ([]byte, []int)
func (*MsgAddPriceEntry) GetID ¶
func (m *MsgAddPriceEntry) GetID() DataID
func (*MsgAddPriceEntry) GetPrice ¶
func (m *MsgAddPriceEntry) GetPrice() PriceDataState
func (*MsgAddPriceEntry) GetSignBytes
deprecated
func (m *MsgAddPriceEntry) GetSignBytes() []byte
GetSignBytes encodes the message for signing
Deprecated: GetSignBytes is deprecated
func (*MsgAddPriceEntry) GetSigner ¶
func (m *MsgAddPriceEntry) GetSigner() string
func (*MsgAddPriceEntry) GetSigners ¶
func (m *MsgAddPriceEntry) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgAddPriceEntry message.
func (*MsgAddPriceEntry) Marshal ¶
func (m *MsgAddPriceEntry) Marshal() (dAtA []byte, err error)
func (*MsgAddPriceEntry) MarshalToSizedBuffer ¶
func (m *MsgAddPriceEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddPriceEntry) ProtoMessage ¶
func (*MsgAddPriceEntry) ProtoMessage()
func (*MsgAddPriceEntry) Reset ¶
func (m *MsgAddPriceEntry) Reset()
func (*MsgAddPriceEntry) Route
deprecated
func (m *MsgAddPriceEntry) Route() string
Route implements the sdk.Msg interface
Deprecated: Route is deprecated
func (*MsgAddPriceEntry) Size ¶
func (m *MsgAddPriceEntry) Size() (n int)
func (*MsgAddPriceEntry) String ¶
func (m *MsgAddPriceEntry) String() string
func (*MsgAddPriceEntry) Type ¶
func (m *MsgAddPriceEntry) Type() string
Type implements the sdk.Msg interface
func (*MsgAddPriceEntry) Unmarshal ¶
func (m *MsgAddPriceEntry) Unmarshal(dAtA []byte) error
func (*MsgAddPriceEntry) ValidateBasic ¶
func (m *MsgAddPriceEntry) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgAddPriceEntry) XXX_DiscardUnknown ¶
func (m *MsgAddPriceEntry) XXX_DiscardUnknown()
func (*MsgAddPriceEntry) XXX_Marshal ¶
func (m *MsgAddPriceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddPriceEntry) XXX_Merge ¶
func (m *MsgAddPriceEntry) XXX_Merge(src proto.Message)
func (*MsgAddPriceEntry) XXX_Size ¶
func (m *MsgAddPriceEntry) XXX_Size() int
func (*MsgAddPriceEntry) XXX_Unmarshal ¶
func (m *MsgAddPriceEntry) XXX_Unmarshal(b []byte) error
type MsgAddPriceEntryResponse ¶
type MsgAddPriceEntryResponse struct {
}
MsgAddPriceEntryResponse defines the Msg/MsgAddDPriceEntry response type.
func (*MsgAddPriceEntryResponse) Descriptor ¶
func (*MsgAddPriceEntryResponse) Descriptor() ([]byte, []int)
func (*MsgAddPriceEntryResponse) Marshal ¶
func (m *MsgAddPriceEntryResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddPriceEntryResponse) MarshalTo ¶
func (m *MsgAddPriceEntryResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddPriceEntryResponse) MarshalToSizedBuffer ¶
func (m *MsgAddPriceEntryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddPriceEntryResponse) ProtoMessage ¶
func (*MsgAddPriceEntryResponse) ProtoMessage()
func (*MsgAddPriceEntryResponse) Reset ¶
func (m *MsgAddPriceEntryResponse) Reset()
func (*MsgAddPriceEntryResponse) Size ¶
func (m *MsgAddPriceEntryResponse) Size() (n int)
func (*MsgAddPriceEntryResponse) String ¶
func (m *MsgAddPriceEntryResponse) String() string
func (*MsgAddPriceEntryResponse) Unmarshal ¶
func (m *MsgAddPriceEntryResponse) Unmarshal(dAtA []byte) error
func (*MsgAddPriceEntryResponse) XXX_DiscardUnknown ¶
func (m *MsgAddPriceEntryResponse) XXX_DiscardUnknown()
func (*MsgAddPriceEntryResponse) XXX_Marshal ¶
func (m *MsgAddPriceEntryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddPriceEntryResponse) XXX_Merge ¶
func (m *MsgAddPriceEntryResponse) XXX_Merge(src proto.Message)
func (*MsgAddPriceEntryResponse) XXX_Size ¶
func (m *MsgAddPriceEntryResponse) XXX_Size() int
func (*MsgAddPriceEntryResponse) XXX_Unmarshal ¶
func (m *MsgAddPriceEntryResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// AddPriceEntry adds a new price entry for a denomination from an authorized source
AddPriceEntry(ctx context.Context, in *MsgAddPriceEntry, opts ...grpc.CallOption) (*MsgAddPriceEntryResponse, error)
// UpdateParams defines a governance operation for updating the x/wasm module
// parameters. The authority is hard-coded to the x/gov module account.
//
// Since: akash v2.0.0
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface {
// AddPriceEntry adds a new price entry for a denomination from an authorized source
AddPriceEntry(context.Context, *MsgAddPriceEntry) (*MsgAddPriceEntryResponse, error)
// UpdateParams defines a governance operation for updating the x/wasm module
// parameters. The authority is hard-coded to the x/gov module account.
//
// Since: akash v2.0.0
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address of the governance account.
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params defines the x/oracle parameters to update.
//
// NOTE: All parameters must be supplied.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams is the Msg/UpdateParams request type.
Since: akash v2.0.0
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) GetSignBytes
deprecated
func (m *MsgUpdateParams) GetSignBytes() []byte
GetSignBytes encodes the message for signing
Deprecated: GetSignBytes is deprecated
func (*MsgUpdateParams) GetSigners ¶
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message.
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Route
deprecated
func (m *MsgUpdateParams) Route() string
Route implements the sdk.Msg interface
Deprecated: Route is deprecated
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Type ¶
func (m *MsgUpdateParams) Type() string
Type implements the sdk.Msg interface
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: akash v2.0.0
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
// sources addresses allowed to write prices into oracle module
// those are to be smartcontract addresses
Sources []string `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources" yaml:"sources"`
// Minimum number of price sources required (default: 2)
MinPriceSources uint32 `protobuf:"varint,2,opt,name=min_price_sources,json=minPriceSources,proto3" json:"min_price_sources,omitempty"`
// Maximum price staleness in blocks (default: 50 = ~ 5 minutes)
MaxPriceStalenessBlocks int64 `` /* 135-byte string literal not displayed */
// TWAP window in blocks (default: 50 = ~ 5 minutes)
TwapWindow int64 `protobuf:"varint,4,opt,name=twap_window,json=twapWindow,proto3" json:"twap_window,omitempty"`
// Maximum price deviation in basis points (default: 150 = 1.5%)
MaxPriceDeviationBps uint64 `` /* 126-byte string literal not displayed */
// feed_contract_params contains the configuration for the price feed contract
FeedContractParams *FeedContractParams `protobuf:"bytes,6,opt,name=feed_contract_params,json=feedContractParams,proto3" json:"feed_contract_params,omitempty"`
}
Params defines the parameters for the oracle module
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) GetFeedContractParams ¶
func (m *Params) GetFeedContractParams() *FeedContractParams
func (*Params) GetMaxPriceDeviationBps ¶
func (*Params) GetMaxPriceStalenessBlocks ¶
func (*Params) GetMinPriceSources ¶
func (*Params) GetSources ¶
func (*Params) GetTwapWindow ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) UnpackInterfaces ¶
func (p *Params) UnpackInterfaces(unpacker cdctypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PriceData ¶
type PriceData struct {
// id uniquely identifies this price record
ID PriceDataRecordID `protobuf:"bytes,1,opt,name=id,proto3" json:"id" yaml:"id"`
// state contains the price value and timestamp
State PriceDataState `protobuf:"bytes,2,opt,name=state,proto3" json:"state" yaml:"state"`
}
PriceData combines a price record identifier with its state
func (*PriceData) Descriptor ¶
func (*PriceData) GetID ¶
func (m *PriceData) GetID() PriceDataRecordID
func (*PriceData) GetState ¶
func (m *PriceData) GetState() PriceDataState
func (*PriceData) MarshalToSizedBuffer ¶
func (*PriceData) ProtoMessage ¶
func (*PriceData) ProtoMessage()
func (*PriceData) XXX_DiscardUnknown ¶
func (m *PriceData) XXX_DiscardUnknown()
func (*PriceData) XXX_Marshal ¶
func (*PriceData) XXX_Unmarshal ¶
type PriceDataID ¶
type PriceDataID struct {
// source is the index of the price source (oracle provider)
Source uint32 `protobuf:"varint,1,opt,name=source,proto3" json:"source" yaml:"source"`
// denom is the asset denomination
Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom" yaml:"denom"`
// base_denom is the base denomination for the price pair
BaseDenom string `protobuf:"bytes,3,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom" yaml:"base_denom"`
}
PriceDataID identifies price data from a specific source for a specific pair
func (*PriceDataID) Descriptor ¶
func (*PriceDataID) Descriptor() ([]byte, []int)
func (*PriceDataID) GetBaseDenom ¶
func (m *PriceDataID) GetBaseDenom() string
func (*PriceDataID) GetDenom ¶
func (m *PriceDataID) GetDenom() string
func (*PriceDataID) GetSource ¶
func (m *PriceDataID) GetSource() uint32
func (*PriceDataID) Marshal ¶
func (m *PriceDataID) Marshal() (dAtA []byte, err error)
func (*PriceDataID) MarshalToSizedBuffer ¶
func (m *PriceDataID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PriceDataID) ProtoMessage ¶
func (*PriceDataID) ProtoMessage()
func (*PriceDataID) Reset ¶
func (m *PriceDataID) Reset()
func (*PriceDataID) Size ¶
func (m *PriceDataID) Size() (n int)
func (*PriceDataID) String ¶
func (m *PriceDataID) String() string
func (*PriceDataID) Unmarshal ¶
func (m *PriceDataID) Unmarshal(dAtA []byte) error
func (*PriceDataID) XXX_DiscardUnknown ¶
func (m *PriceDataID) XXX_DiscardUnknown()
func (*PriceDataID) XXX_Marshal ¶
func (m *PriceDataID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PriceDataID) XXX_Merge ¶
func (m *PriceDataID) XXX_Merge(src proto.Message)
func (*PriceDataID) XXX_Size ¶
func (m *PriceDataID) XXX_Size() int
func (*PriceDataID) XXX_Unmarshal ¶
func (m *PriceDataID) XXX_Unmarshal(b []byte) error
type PriceDataRecordID ¶
type PriceDataRecordID struct {
// source is the index of the price source (oracle provider)
Source uint32 `protobuf:"varint,1,opt,name=source,proto3" json:"source" yaml:"source"`
// denom is the asset denomination
Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom" yaml:"denom"`
// base_denom is the base denomination for the price pair
BaseDenom string `protobuf:"bytes,3,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom" yaml:"base_denom"`
// height is the block height when this price was recorded
Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height" yaml:"height"`
}
PriceDataRecordID represents a price from a specific source at a specific time. It also represents a single data point in TWAP history
func (*PriceDataRecordID) Descriptor ¶
func (*PriceDataRecordID) Descriptor() ([]byte, []int)
func (*PriceDataRecordID) GetBaseDenom ¶
func (m *PriceDataRecordID) GetBaseDenom() string
func (*PriceDataRecordID) GetDenom ¶
func (m *PriceDataRecordID) GetDenom() string
func (*PriceDataRecordID) GetHeight ¶
func (m *PriceDataRecordID) GetHeight() int64
func (*PriceDataRecordID) GetSource ¶
func (m *PriceDataRecordID) GetSource() uint32
func (*PriceDataRecordID) Marshal ¶
func (m *PriceDataRecordID) Marshal() (dAtA []byte, err error)
func (*PriceDataRecordID) MarshalTo ¶
func (m *PriceDataRecordID) MarshalTo(dAtA []byte) (int, error)
func (*PriceDataRecordID) MarshalToSizedBuffer ¶
func (m *PriceDataRecordID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PriceDataRecordID) ProtoMessage ¶
func (*PriceDataRecordID) ProtoMessage()
func (*PriceDataRecordID) Reset ¶
func (m *PriceDataRecordID) Reset()
func (*PriceDataRecordID) Size ¶
func (m *PriceDataRecordID) Size() (n int)
func (*PriceDataRecordID) String ¶
func (m *PriceDataRecordID) String() string
func (*PriceDataRecordID) Unmarshal ¶
func (m *PriceDataRecordID) Unmarshal(dAtA []byte) error
func (*PriceDataRecordID) XXX_DiscardUnknown ¶
func (m *PriceDataRecordID) XXX_DiscardUnknown()
func (*PriceDataRecordID) XXX_Marshal ¶
func (m *PriceDataRecordID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PriceDataRecordID) XXX_Merge ¶
func (m *PriceDataRecordID) XXX_Merge(src proto.Message)
func (*PriceDataRecordID) XXX_Size ¶
func (m *PriceDataRecordID) XXX_Size() int
func (*PriceDataRecordID) XXX_Unmarshal ¶
func (m *PriceDataRecordID) XXX_Unmarshal(b []byte) error
type PriceDataState ¶
type PriceDataState struct {
// price is the decimal price value
Price cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=price,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"price" yaml:"price"`
// timestamp is when the price was recorded
Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}
PriceDataState represents the price value and timestamp for a price entry
func (*PriceDataState) Descriptor ¶
func (*PriceDataState) Descriptor() ([]byte, []int)
func (*PriceDataState) GetTimestamp ¶
func (m *PriceDataState) GetTimestamp() time.Time
func (*PriceDataState) Marshal ¶
func (m *PriceDataState) Marshal() (dAtA []byte, err error)
func (*PriceDataState) MarshalToSizedBuffer ¶
func (m *PriceDataState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PriceDataState) ProtoMessage ¶
func (*PriceDataState) ProtoMessage()
func (*PriceDataState) Reset ¶
func (m *PriceDataState) Reset()
func (*PriceDataState) Size ¶
func (m *PriceDataState) Size() (n int)
func (*PriceDataState) String ¶
func (m *PriceDataState) String() string
func (*PriceDataState) Unmarshal ¶
func (m *PriceDataState) Unmarshal(dAtA []byte) error
func (*PriceDataState) XXX_DiscardUnknown ¶
func (m *PriceDataState) XXX_DiscardUnknown()
func (*PriceDataState) XXX_Marshal ¶
func (m *PriceDataState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PriceDataState) XXX_Merge ¶
func (m *PriceDataState) XXX_Merge(src proto.Message)
func (*PriceDataState) XXX_Size ¶
func (m *PriceDataState) XXX_Size() int
func (*PriceDataState) XXX_Unmarshal ¶
func (m *PriceDataState) XXX_Unmarshal(b []byte) error
type PriceHealth ¶
type PriceHealth struct {
// denom is the asset denomination
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom" yaml:"denom"`
// is_healthy indicates if the price feed meets all health requirements
IsHealthy bool `protobuf:"varint,3,opt,name=is_healthy,json=isHealthy,proto3" json:"is_healthy,omitempty"`
// has_min_sources indicates if minimum number of sources are reporting
HasMinSources bool `protobuf:"varint,4,opt,name=has_min_sources,json=hasMinSources,proto3" json:"has_min_sources,omitempty"`
// deviation_ok indicates if price deviation is within acceptable limits
DeviationOk bool `protobuf:"varint,5,opt,name=deviation_ok,json=deviationOk,proto3" json:"deviation_ok,omitempty"`
// all_sources_fresh indicates if all source prices are not stale
AllSourcesFresh bool `protobuf:"varint,6,opt,name=all_sources_fresh,json=allSourcesFresh,proto3" json:"all_sources_fresh,omitempty"`
// failure_reason lists reasons for unhealthy status, if any
FailureReason []string `protobuf:"bytes,7,rep,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
}
PriceHealth represents the health status of a price feed
func (*PriceHealth) Descriptor ¶
func (*PriceHealth) Descriptor() ([]byte, []int)
func (*PriceHealth) GetAllSourcesFresh ¶
func (m *PriceHealth) GetAllSourcesFresh() bool
func (*PriceHealth) GetDenom ¶
func (m *PriceHealth) GetDenom() string
func (*PriceHealth) GetDeviationOk ¶
func (m *PriceHealth) GetDeviationOk() bool
func (*PriceHealth) GetFailureReason ¶
func (m *PriceHealth) GetFailureReason() []string
func (*PriceHealth) GetHasMinSources ¶
func (m *PriceHealth) GetHasMinSources() bool
func (*PriceHealth) GetIsHealthy ¶
func (m *PriceHealth) GetIsHealthy() bool
func (*PriceHealth) Marshal ¶
func (m *PriceHealth) Marshal() (dAtA []byte, err error)
func (*PriceHealth) MarshalToSizedBuffer ¶
func (m *PriceHealth) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PriceHealth) ProtoMessage ¶
func (*PriceHealth) ProtoMessage()
func (*PriceHealth) Reset ¶
func (m *PriceHealth) Reset()
func (*PriceHealth) Size ¶
func (m *PriceHealth) Size() (n int)
func (*PriceHealth) String ¶
func (m *PriceHealth) String() string
func (*PriceHealth) Unmarshal ¶
func (m *PriceHealth) Unmarshal(dAtA []byte) error
func (*PriceHealth) XXX_DiscardUnknown ¶
func (m *PriceHealth) XXX_DiscardUnknown()
func (*PriceHealth) XXX_Marshal ¶
func (m *PriceHealth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PriceHealth) XXX_Merge ¶
func (m *PriceHealth) XXX_Merge(src proto.Message)
func (*PriceHealth) XXX_Size ¶
func (m *PriceHealth) XXX_Size() int
func (*PriceHealth) XXX_Unmarshal ¶
func (m *PriceHealth) XXX_Unmarshal(b []byte) error
type PricesFilter ¶
type PricesFilter struct {
// asset_denom is the asset denomination to filter by
AssetDenom string `protobuf:"bytes,1,opt,name=asset_denom,json=assetDenom,proto3" json:"asset_denom" yaml:"asset_denom"`
// base_denom is the base denomination to filter by
BaseDenom string `protobuf:"bytes,2,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom" yaml:"base_denom"`
// height is the block height to filter by
Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height" yaml:"height"`
}
PricesFilter defines filters used to query price data
func (*PricesFilter) Descriptor ¶
func (*PricesFilter) Descriptor() ([]byte, []int)
func (*PricesFilter) GetAssetDenom ¶
func (m *PricesFilter) GetAssetDenom() string
func (*PricesFilter) GetBaseDenom ¶
func (m *PricesFilter) GetBaseDenom() string
func (*PricesFilter) GetHeight ¶
func (m *PricesFilter) GetHeight() int64
func (*PricesFilter) Marshal ¶
func (m *PricesFilter) Marshal() (dAtA []byte, err error)
func (*PricesFilter) MarshalToSizedBuffer ¶
func (m *PricesFilter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PricesFilter) ProtoMessage ¶
func (*PricesFilter) ProtoMessage()
func (*PricesFilter) Reset ¶
func (m *PricesFilter) Reset()
func (*PricesFilter) Size ¶
func (m *PricesFilter) Size() (n int)
func (*PricesFilter) String ¶
func (m *PricesFilter) String() string
func (*PricesFilter) Unmarshal ¶
func (m *PricesFilter) Unmarshal(dAtA []byte) error
func (*PricesFilter) XXX_DiscardUnknown ¶
func (m *PricesFilter) XXX_DiscardUnknown()
func (*PricesFilter) XXX_Marshal ¶
func (m *PricesFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PricesFilter) XXX_Merge ¶
func (m *PricesFilter) XXX_Merge(src proto.Message)
func (*PricesFilter) XXX_Size ¶
func (m *PricesFilter) XXX_Size() int
func (*PricesFilter) XXX_Unmarshal ¶
func (m *PricesFilter) XXX_Unmarshal(b []byte) error
type PythContractParams ¶
type PythContractParams struct {
// akt_price_feed_id is the Pyth price feed identifier for AKT/USD
AktPriceFeedId string `protobuf:"bytes,1,opt,name=akt_price_feed_id,json=aktPriceFeedId,proto3" json:"akt_price_feed_id,omitempty"`
}
PythContractParams contains configuration for Pyth price feeds
func DefaultPythContractParams ¶
func DefaultPythContractParams() *PythContractParams
DefaultPythContractParams returns default Pyth contract params
func (*PythContractParams) Descriptor ¶
func (*PythContractParams) Descriptor() ([]byte, []int)
func (*PythContractParams) Equal ¶
func (this *PythContractParams) Equal(that interface{}) bool
func (*PythContractParams) GetAktPriceFeedId ¶
func (m *PythContractParams) GetAktPriceFeedId() string
func (*PythContractParams) Marshal ¶
func (m *PythContractParams) Marshal() (dAtA []byte, err error)
func (*PythContractParams) MarshalTo ¶
func (m *PythContractParams) MarshalTo(dAtA []byte) (int, error)
func (*PythContractParams) MarshalToSizedBuffer ¶
func (m *PythContractParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PythContractParams) ProtoMessage ¶
func (*PythContractParams) ProtoMessage()
func (*PythContractParams) Reset ¶
func (m *PythContractParams) Reset()
func (*PythContractParams) Size ¶
func (m *PythContractParams) Size() (n int)
func (*PythContractParams) String ¶
func (m *PythContractParams) String() string
func (*PythContractParams) Unmarshal ¶
func (m *PythContractParams) Unmarshal(dAtA []byte) error
func (*PythContractParams) ValidateBasic ¶
func (p *PythContractParams) ValidateBasic() error
ValidateBasic validates PythContractParams
func (*PythContractParams) XXX_DiscardUnknown ¶
func (m *PythContractParams) XXX_DiscardUnknown()
func (*PythContractParams) XXX_Marshal ¶
func (m *PythContractParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PythContractParams) XXX_Merge ¶
func (m *PythContractParams) XXX_Merge(src proto.Message)
func (*PythContractParams) XXX_Size ¶
func (m *PythContractParams) XXX_Size() int
func (*PythContractParams) XXX_Unmarshal ¶
func (m *PythContractParams) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// Prices query prices for specific denom
Prices(ctx context.Context, in *QueryPricesRequest, opts ...grpc.CallOption) (*QueryPricesResponse, error)
// Params returns the total set of minting parameters.
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// PriceFeedConfig queries the price feed configuration for a given denom.
PriceFeedConfig(ctx context.Context, in *QueryPriceFeedConfigRequest, opts ...grpc.CallOption) (*QueryPriceFeedConfigResponse, 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 ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
// params defines the parameters of the module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPriceFeedConfigRequest ¶
type QueryPriceFeedConfigRequest struct {
// denom is the denomination to query the price feed configuration for
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryPriceFeedConfigRequest is the request type for price feed config.
func (*QueryPriceFeedConfigRequest) Descriptor ¶
func (*QueryPriceFeedConfigRequest) Descriptor() ([]byte, []int)
func (*QueryPriceFeedConfigRequest) GetDenom ¶
func (m *QueryPriceFeedConfigRequest) GetDenom() string
func (*QueryPriceFeedConfigRequest) Marshal ¶
func (m *QueryPriceFeedConfigRequest) Marshal() (dAtA []byte, err error)
func (*QueryPriceFeedConfigRequest) MarshalTo ¶
func (m *QueryPriceFeedConfigRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPriceFeedConfigRequest) MarshalToSizedBuffer ¶
func (m *QueryPriceFeedConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPriceFeedConfigRequest) ProtoMessage ¶
func (*QueryPriceFeedConfigRequest) ProtoMessage()
func (*QueryPriceFeedConfigRequest) Reset ¶
func (m *QueryPriceFeedConfigRequest) Reset()
func (*QueryPriceFeedConfigRequest) Size ¶
func (m *QueryPriceFeedConfigRequest) Size() (n int)
func (*QueryPriceFeedConfigRequest) String ¶
func (m *QueryPriceFeedConfigRequest) String() string
func (*QueryPriceFeedConfigRequest) Unmarshal ¶
func (m *QueryPriceFeedConfigRequest) Unmarshal(dAtA []byte) error
func (*QueryPriceFeedConfigRequest) XXX_DiscardUnknown ¶
func (m *QueryPriceFeedConfigRequest) XXX_DiscardUnknown()
func (*QueryPriceFeedConfigRequest) XXX_Marshal ¶
func (m *QueryPriceFeedConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPriceFeedConfigRequest) XXX_Merge ¶
func (m *QueryPriceFeedConfigRequest) XXX_Merge(src proto.Message)
func (*QueryPriceFeedConfigRequest) XXX_Size ¶
func (m *QueryPriceFeedConfigRequest) XXX_Size() int
func (*QueryPriceFeedConfigRequest) XXX_Unmarshal ¶
func (m *QueryPriceFeedConfigRequest) XXX_Unmarshal(b []byte) error
type QueryPriceFeedConfigResponse ¶
type QueryPriceFeedConfigResponse struct {
// price_feed_id is the Pyth price feed identifier for this denomination
PriceFeedId string `protobuf:"bytes,1,opt,name=price_feed_id,json=priceFeedId,proto3" json:"price_feed_id,omitempty"`
// pyth_contract_address is the address of the Pyth smart contract
PythContractAddress string `protobuf:"bytes,2,opt,name=pyth_contract_address,json=pythContractAddress,proto3" json:"pyth_contract_address,omitempty"`
// enabled indicates if the price feed is enabled for this denomination
Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
}
QueryPriceFeedConfigResponse is the response type for price feed config.
func (*QueryPriceFeedConfigResponse) Descriptor ¶
func (*QueryPriceFeedConfigResponse) Descriptor() ([]byte, []int)
func (*QueryPriceFeedConfigResponse) GetEnabled ¶
func (m *QueryPriceFeedConfigResponse) GetEnabled() bool
func (*QueryPriceFeedConfigResponse) GetPriceFeedId ¶
func (m *QueryPriceFeedConfigResponse) GetPriceFeedId() string
func (*QueryPriceFeedConfigResponse) GetPythContractAddress ¶
func (m *QueryPriceFeedConfigResponse) GetPythContractAddress() string
func (*QueryPriceFeedConfigResponse) Marshal ¶
func (m *QueryPriceFeedConfigResponse) Marshal() (dAtA []byte, err error)
func (*QueryPriceFeedConfigResponse) MarshalTo ¶
func (m *QueryPriceFeedConfigResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPriceFeedConfigResponse) MarshalToSizedBuffer ¶
func (m *QueryPriceFeedConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPriceFeedConfigResponse) ProtoMessage ¶
func (*QueryPriceFeedConfigResponse) ProtoMessage()
func (*QueryPriceFeedConfigResponse) Reset ¶
func (m *QueryPriceFeedConfigResponse) Reset()
func (*QueryPriceFeedConfigResponse) Size ¶
func (m *QueryPriceFeedConfigResponse) Size() (n int)
func (*QueryPriceFeedConfigResponse) String ¶
func (m *QueryPriceFeedConfigResponse) String() string
func (*QueryPriceFeedConfigResponse) Unmarshal ¶
func (m *QueryPriceFeedConfigResponse) Unmarshal(dAtA []byte) error
func (*QueryPriceFeedConfigResponse) XXX_DiscardUnknown ¶
func (m *QueryPriceFeedConfigResponse) XXX_DiscardUnknown()
func (*QueryPriceFeedConfigResponse) XXX_Marshal ¶
func (m *QueryPriceFeedConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPriceFeedConfigResponse) XXX_Merge ¶
func (m *QueryPriceFeedConfigResponse) XXX_Merge(src proto.Message)
func (*QueryPriceFeedConfigResponse) XXX_Size ¶
func (m *QueryPriceFeedConfigResponse) XXX_Size() int
func (*QueryPriceFeedConfigResponse) XXX_Unmarshal ¶
func (m *QueryPriceFeedConfigResponse) XXX_Unmarshal(b []byte) error
type QueryPricesRequest ¶
type QueryPricesRequest struct {
// filters holds the price fields to filter the request
Filters PricesFilter `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"`
// pagination is used to paginate the request
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryPricesRequest is the request type for querying price history
func (*QueryPricesRequest) Descriptor ¶
func (*QueryPricesRequest) Descriptor() ([]byte, []int)
func (*QueryPricesRequest) GetFilters ¶
func (m *QueryPricesRequest) GetFilters() PricesFilter
func (*QueryPricesRequest) GetPagination ¶
func (m *QueryPricesRequest) GetPagination() *query.PageRequest
func (*QueryPricesRequest) Marshal ¶
func (m *QueryPricesRequest) Marshal() (dAtA []byte, err error)
func (*QueryPricesRequest) MarshalTo ¶
func (m *QueryPricesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPricesRequest) MarshalToSizedBuffer ¶
func (m *QueryPricesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPricesRequest) ProtoMessage ¶
func (*QueryPricesRequest) ProtoMessage()
func (*QueryPricesRequest) Reset ¶
func (m *QueryPricesRequest) Reset()
func (*QueryPricesRequest) Size ¶
func (m *QueryPricesRequest) Size() (n int)
func (*QueryPricesRequest) String ¶
func (m *QueryPricesRequest) String() string
func (*QueryPricesRequest) Unmarshal ¶
func (m *QueryPricesRequest) Unmarshal(dAtA []byte) error
func (*QueryPricesRequest) XXX_DiscardUnknown ¶
func (m *QueryPricesRequest) XXX_DiscardUnknown()
func (*QueryPricesRequest) XXX_Marshal ¶
func (m *QueryPricesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPricesRequest) XXX_Merge ¶
func (m *QueryPricesRequest) XXX_Merge(src proto.Message)
func (*QueryPricesRequest) XXX_Size ¶
func (m *QueryPricesRequest) XXX_Size() int
func (*QueryPricesRequest) XXX_Unmarshal ¶
func (m *QueryPricesRequest) XXX_Unmarshal(b []byte) error
type QueryPricesResponse ¶
type QueryPricesResponse struct {
// prices is the list of historical price data matching the filters
Prices []PriceData `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices" yaml:"prices"`
// pagination contains the information about response pagination
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryPricesResponse is the response type for querying price history
func (*QueryPricesResponse) Descriptor ¶
func (*QueryPricesResponse) Descriptor() ([]byte, []int)
func (*QueryPricesResponse) GetPagination ¶
func (m *QueryPricesResponse) GetPagination() *query.PageResponse
func (*QueryPricesResponse) GetPrices ¶
func (m *QueryPricesResponse) GetPrices() []PriceData
func (*QueryPricesResponse) Marshal ¶
func (m *QueryPricesResponse) Marshal() (dAtA []byte, err error)
func (*QueryPricesResponse) MarshalTo ¶
func (m *QueryPricesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPricesResponse) MarshalToSizedBuffer ¶
func (m *QueryPricesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPricesResponse) ProtoMessage ¶
func (*QueryPricesResponse) ProtoMessage()
func (*QueryPricesResponse) Reset ¶
func (m *QueryPricesResponse) Reset()
func (*QueryPricesResponse) Size ¶
func (m *QueryPricesResponse) Size() (n int)
func (*QueryPricesResponse) String ¶
func (m *QueryPricesResponse) String() string
func (*QueryPricesResponse) Unmarshal ¶
func (m *QueryPricesResponse) Unmarshal(dAtA []byte) error
func (*QueryPricesResponse) XXX_DiscardUnknown ¶
func (m *QueryPricesResponse) XXX_DiscardUnknown()
func (*QueryPricesResponse) XXX_Marshal ¶
func (m *QueryPricesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPricesResponse) XXX_Merge ¶
func (m *QueryPricesResponse) XXX_Merge(src proto.Message)
func (*QueryPricesResponse) XXX_Size ¶
func (m *QueryPricesResponse) XXX_Size() int
func (*QueryPricesResponse) XXX_Unmarshal ¶
func (m *QueryPricesResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// Prices query prices for specific denom
Prices(context.Context, *QueryPricesRequest) (*QueryPricesResponse, error)
// Params returns the total set of minting parameters.
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// PriceFeedConfig queries the price feed configuration for a given denom.
PriceFeedConfig(context.Context, *QueryPriceFeedConfigRequest) (*QueryPriceFeedConfigResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddPriceEntry ¶
func (*UnimplementedMsgServer) AddPriceEntry(ctx context.Context, req *MsgAddPriceEntry) (*MsgAddPriceEntryResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PriceFeedConfig ¶
func (*UnimplementedQueryServer) PriceFeedConfig(ctx context.Context, req *QueryPriceFeedConfigRequest) (*QueryPriceFeedConfigResponse, error)
func (*UnimplementedQueryServer) Prices ¶
func (*UnimplementedQueryServer) Prices(ctx context.Context, req *QueryPricesRequest) (*QueryPricesResponse, error)