Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CurrentPriceKeySuffix(marketID string) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramstype.KeyTable
- func RawPriceKeySuffix(marketID string) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 AccountKeeper
- type CurrentPrice
- func (*CurrentPrice) Descriptor() ([]byte, []int)
- 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 (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 CurrentPrices
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (gs GenesisState) Equal(gs2 GenesisState) bool
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPostedPrices() []PostedPrice
- func (gs GenesisState) IsEmpty() bool
- 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 Market
- func (*Market) Descriptor() ([]byte, []int)
- func (m *Market) GetActive() bool
- func (m *Market) GetBaseAsset() string
- func (m *Market) GetMarketId() string
- 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) Unmarshal(dAtA []byte) error
- func (m Market) Validate() 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 Markets
- type MsgClient
- type MsgPostPrice
- func (*MsgPostPrice) Descriptor() ([]byte, []int)
- func (m *MsgPostPrice) GetExpiry() time.Time
- func (m *MsgPostPrice) GetMarketId() string
- 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 (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 (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 (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 (m *Params) GetMarkets() []Market
- 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() paramstype.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 (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 (m *PostedPrice) GetExpiry() time.Time
- func (m *PostedPrice) GetMarketId() string
- 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 (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 PostedPrices
- type QueryAllMarketRequest
- func (*QueryAllMarketRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllMarketRequest) GetPagination() *query.PageRequest
- func (m *QueryAllMarketRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMarketRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMarketRequest) ProtoMessage()
- func (m *QueryAllMarketRequest) Reset()
- func (m *QueryAllMarketRequest) Size() (n int)
- func (m *QueryAllMarketRequest) String() string
- func (m *QueryAllMarketRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllMarketRequest) XXX_DiscardUnknown()
- func (m *QueryAllMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMarketRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllMarketRequest) XXX_Size() int
- func (m *QueryAllMarketRequest) XXX_Unmarshal(b []byte) error
- type QueryAllMarketResponse
- func (*QueryAllMarketResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllMarketResponse) GetMarkets() []Market
- func (m *QueryAllMarketResponse) GetPagination() *query.PageResponse
- func (m *QueryAllMarketResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllMarketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllMarketResponse) ProtoMessage()
- func (m *QueryAllMarketResponse) Reset()
- func (m *QueryAllMarketResponse) Size() (n int)
- func (m *QueryAllMarketResponse) String() string
- func (m *QueryAllMarketResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllMarketResponse) XXX_DiscardUnknown()
- func (m *QueryAllMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllMarketResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllMarketResponse) XXX_Size() int
- func (m *QueryAllMarketResponse) XXX_Unmarshal(b []byte) error
- type QueryAllOracleRequest
- func (*QueryAllOracleRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllOracleRequest) GetMarketId() string
- func (m *QueryAllOracleRequest) GetPagination() *query.PageRequest
- func (m *QueryAllOracleRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOracleRequest) ProtoMessage()
- func (m *QueryAllOracleRequest) Reset()
- func (m *QueryAllOracleRequest) Size() (n int)
- func (m *QueryAllOracleRequest) String() string
- func (m *QueryAllOracleRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllOracleRequest) XXX_DiscardUnknown()
- func (m *QueryAllOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOracleRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllOracleRequest) XXX_Size() int
- func (m *QueryAllOracleRequest) XXX_Unmarshal(b []byte) error
- type QueryAllOracleResponse
- func (*QueryAllOracleResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllOracleResponse) GetPagination() *query.PageResponse
- func (m *QueryAllOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOracleResponse) ProtoMessage()
- func (m *QueryAllOracleResponse) Reset()
- func (m *QueryAllOracleResponse) Size() (n int)
- func (m *QueryAllOracleResponse) String() string
- func (m *QueryAllOracleResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllOracleResponse) XXX_DiscardUnknown()
- func (m *QueryAllOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOracleResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllOracleResponse) XXX_Size() int
- func (m *QueryAllOracleResponse) XXX_Unmarshal(b []byte) error
- type QueryAllPriceRequest
- func (*QueryAllPriceRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllPriceRequest) GetPagination() *query.PageRequest
- func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPriceRequest) ProtoMessage()
- func (m *QueryAllPriceRequest) Reset()
- func (m *QueryAllPriceRequest) Size() (n int)
- func (m *QueryAllPriceRequest) String() string
- func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllPriceRequest) XXX_DiscardUnknown()
- func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPriceRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllPriceRequest) XXX_Size() int
- func (m *QueryAllPriceRequest) XXX_Unmarshal(b []byte) error
- type QueryAllPriceResponse
- func (*QueryAllPriceResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllPriceResponse) GetPagination() *query.PageResponse
- func (m *QueryAllPriceResponse) GetPrices() []CurrentPrice
- func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPriceResponse) ProtoMessage()
- func (m *QueryAllPriceResponse) Reset()
- func (m *QueryAllPriceResponse) Size() (n int)
- func (m *QueryAllPriceResponse) String() string
- func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllPriceResponse) XXX_DiscardUnknown()
- func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPriceResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllPriceResponse) XXX_Size() int
- func (m *QueryAllPriceResponse) XXX_Unmarshal(b []byte) error
- type QueryAllRawPriceRequest
- func (*QueryAllRawPriceRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllRawPriceRequest) GetMarketId() string
- func (m *QueryAllRawPriceRequest) GetPagination() *query.PageRequest
- func (m *QueryAllRawPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRawPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRawPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRawPriceRequest) ProtoMessage()
- func (m *QueryAllRawPriceRequest) Reset()
- func (m *QueryAllRawPriceRequest) Size() (n int)
- func (m *QueryAllRawPriceRequest) String() string
- func (m *QueryAllRawPriceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllRawPriceRequest) XXX_DiscardUnknown()
- func (m *QueryAllRawPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRawPriceRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllRawPriceRequest) XXX_Size() int
- func (m *QueryAllRawPriceRequest) XXX_Unmarshal(b []byte) error
- type QueryAllRawPriceResponse
- func (*QueryAllRawPriceResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllRawPriceResponse) GetPagination() *query.PageResponse
- func (m *QueryAllRawPriceResponse) GetPrices() []PostedPrice
- func (m *QueryAllRawPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllRawPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllRawPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllRawPriceResponse) ProtoMessage()
- func (m *QueryAllRawPriceResponse) Reset()
- func (m *QueryAllRawPriceResponse) Size() (n int)
- func (m *QueryAllRawPriceResponse) String() string
- func (m *QueryAllRawPriceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllRawPriceResponse) XXX_DiscardUnknown()
- func (m *QueryAllRawPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllRawPriceResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllRawPriceResponse) XXX_Size() int
- func (m *QueryAllRawPriceResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetPriceRequest
- func (*QueryGetPriceRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetPriceRequest) GetMarketId() string
- func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPriceRequest) ProtoMessage()
- func (m *QueryGetPriceRequest) Reset()
- func (m *QueryGetPriceRequest) Size() (n int)
- func (m *QueryGetPriceRequest) String() string
- func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetPriceRequest) XXX_DiscardUnknown()
- func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetPriceRequest) XXX_Size() int
- func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error
- type QueryGetPriceResponse
- func (*QueryGetPriceResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetPriceResponse) GetPrice() CurrentPrice
- func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPriceResponse) ProtoMessage()
- func (m *QueryGetPriceResponse) Reset()
- func (m *QueryGetPriceResponse) Size() (n int)
- func (m *QueryGetPriceResponse) String() string
- func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetPriceResponse) XXX_DiscardUnknown()
- func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetPriceResponse) XXX_Size() int
- func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error
- 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 QueryServer
- type SortDecs
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) MarketAll(ctx context.Context, req *QueryAllMarketRequest) (*QueryAllMarketResponse, error)
- func (*UnimplementedQueryServer) OracleAll(ctx context.Context, req *QueryAllOracleRequest) (*QueryAllOracleResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryGetPriceRequest) (*QueryGetPriceResponse, error)
- func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryAllPriceRequest) (*QueryAllPriceResponse, error)
- func (*UnimplementedQueryServer) RawPriceAll(ctx context.Context, req *QueryAllRawPriceRequest) (*QueryAllRawPriceResponse, 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 defines the module name ModuleName = "pricefeed" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" )
const ( ParamsKey = "Params-value-" MarketKey = "Market-value-" MarketCountKey = "Market-count-" OracleKey = "Oracle-value-" PriceKey = "Price-value-" PriceCountKey = "Price-count-" RawPriceKey = "RawPrice-value-" CurrentPriceKey = "CurrentPrice-value-" RawPriceFeedKey = "RawPriceFeed-value-" )
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 )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( // ErrEmptyInput error for empty input ErrEmptyInput = sdkerrors.Register(ModuleName, 2, "input must not be empty") // ErrExpired error for posted price messages with expired price ErrExpired = sdkerrors.Register(ModuleName, 3, "price is expired") // ErrNoValidPrice error for posted price messages with expired price ErrNoValidPrice = sdkerrors.Register(ModuleName, 4, "all input prices are expired") // ErrInvalidMarket error for posted price messages for invalid markets ErrInvalidMarket = sdkerrors.Register(ModuleName, 5, "market does not exist") // ErrInvalidOracle error for posted price messages for invalid oracles ErrInvalidOracle = sdkerrors.Register(ModuleName, 6, "oracle does not exist or not authorized") // ErrAssetNotFound error for not found asset ErrAssetNotFound = sdkerrors.Register(ModuleName, 7, "asset not found") )
x/pricefeed module sentinel errors
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 ( KeyMarkets = []byte("Markets") DefaultMarkets = Markets{} )
Parameter keys
var ( ErrInvalidLengthPricefeed = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPricefeed = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPricefeed = 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 ( 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)
)
Functions ¶
func CurrentPriceKeySuffix ¶
CurrentPriceKeySuffix returns the prefix for the current price
func ParamKeyTable ¶
func ParamKeyTable() paramstype.KeyTable
ParamKeyTable Key declaration for parameters
func RawPriceKeySuffix ¶
RawPriceKeySuffix returns the prefix for the raw price
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 AccountKeeper ¶
type AccountKeeper interface { // Return a new account with the next account number and the specified address. Does not save the new account to the store. NewAccountWithAddress(sdk.Context, sdk.AccAddress) authtypes.AccountI // Return a new account with the next account number. Does not save the new account to the store. NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI // Retrieve an account from the store. GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI // Set an account in the store. SetAccount(sdk.Context, authtypes.AccountI) // Remove an account from the store. RemoveAccount(sdk.Context, authtypes.AccountI) // Iterate over all accounts, calling the provided function. Stop iteraiton when it returns false. IterateAccounts(sdk.Context, func(authtypes.AccountI) bool) // Fetch the public key of an account at a specified address GetPubKey(sdk.Context, sdk.AccAddress) (cryptotypes.PubKey, error) // Fetch the sequence of an account at a specified address. GetSequence(sdk.Context, sdk.AccAddress) (uint64, error) // Fetch the next account number, and increment the internal counter. GetNextAccountNumber(sdk.Context) uint64 GetModuleAddress(moduleName string) sdk.AccAddress GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI }
type CurrentPrice ¶
type CurrentPrice struct { MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty" yaml:"market_id"` 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" yaml:"price"` }
func NewCurrentPrice ¶
func NewCurrentPrice(marketID string, price sdk.Dec) CurrentPrice
NewCurrentPrice returns an instance of CurrentPrice
func (*CurrentPrice) Descriptor ¶
func (*CurrentPrice) Descriptor() ([]byte, []int)
func (*CurrentPrice) GetMarketId ¶
func (m *CurrentPrice) GetMarketId() string
func (*CurrentPrice) Marshal ¶
func (m *CurrentPrice) Marshal() (dAtA []byte, err error)
func (*CurrentPrice) MarshalToSizedBuffer ¶
func (m *CurrentPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CurrentPrice) ProtoMessage ¶
func (*CurrentPrice) ProtoMessage()
func (*CurrentPrice) Reset ¶
func (m *CurrentPrice) Reset()
func (*CurrentPrice) Size ¶
func (m *CurrentPrice) Size() (n int)
func (*CurrentPrice) String ¶
func (m *CurrentPrice) String() string
func (*CurrentPrice) Unmarshal ¶
func (m *CurrentPrice) Unmarshal(dAtA []byte) error
func (*CurrentPrice) XXX_DiscardUnknown ¶
func (m *CurrentPrice) XXX_DiscardUnknown()
func (*CurrentPrice) XXX_Marshal ¶
func (m *CurrentPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CurrentPrice) XXX_Merge ¶
func (m *CurrentPrice) XXX_Merge(src proto.Message)
func (*CurrentPrice) XXX_Size ¶
func (m *CurrentPrice) XXX_Size() int
func (*CurrentPrice) XXX_Unmarshal ¶
func (m *CurrentPrice) XXX_Unmarshal(b []byte) error
type CurrentPrices ¶
type CurrentPrices []CurrentPrice
CurrentPrices type for an array of CurrentPrice
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"` PostedPrices []PostedPrice `protobuf:"bytes,2,rep,name=posted_prices,json=postedPrices,proto3" json:"posted_prices" yaml:"posted_prices"` }
GenesisState defines the pricefeed module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func NewGenesisState ¶
func NewGenesisState(p Params, pp []PostedPrice) GenesisState
NewGenesisState creates a new genesis state for the pricefeed module
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (GenesisState) Equal ¶
func (gs GenesisState) Equal(gs2 GenesisState) bool
Equal checks whether two gov GenesisState structs are equivalent
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPostedPrices ¶
func (m *GenesisState) GetPostedPrices() []PostedPrice
func (GenesisState) IsEmpty ¶
func (gs GenesisState) IsEmpty() bool
IsEmpty returns true if a GenesisState is empty
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 performs basic genesis state validation returning an error upon any failure.
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 Market ¶
type Market struct { MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty" yaml:"market_id"` BaseAsset string `protobuf:"bytes,2,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty" yaml:"base_asset"` QuoteAsset string `protobuf:"bytes,3,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty" yaml:"quote_asset"` Oracles []github_com_UnUniFi_chain_types.StringAccAddress `` /* 131-byte string literal not displayed */ Active bool `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty" yaml:"active"` }
func NewMarket ¶
func NewMarket(id, base, quote string, oracles []sdk.AccAddress, active bool) Market
NewMarket returns a new Market
func (*Market) Descriptor ¶
func (*Market) GetBaseAsset ¶
func (*Market) GetMarketId ¶
func (*Market) GetQuoteAsset ¶
func (*Market) MarshalToSizedBuffer ¶
func (*Market) ProtoMessage ¶
func (*Market) ProtoMessage()
func (*Market) XXX_DiscardUnknown ¶
func (m *Market) XXX_DiscardUnknown()
func (*Market) XXX_Marshal ¶
func (*Market) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface {
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 ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgPostPrice ¶
type MsgPostPrice struct { From github_com_UnUniFi_chain_types.StringAccAddress `protobuf:"bytes,1,opt,name=from,proto3,customtype=github.com/UnUniFi/chain/types.StringAccAddress" json:"from" yaml:"from"` MarketId string `protobuf:"bytes,2,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty" yaml:"market_id"` Price github_com_UnUniFi_chain_types.Dec `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/UnUniFi/chain/types.Dec" json:"price" yaml:"price"` Expiry time.Time `protobuf:"bytes,4,opt,name=expiry,proto3,stdtime" json:"expiry" yaml:"expiry"` }
func NewMsgPostPrice ¶
func NewMsgPostPrice( from sdk.AccAddress, assetCode string, price sdk.Dec, expiry time.Time) MsgPostPrice
NewMsgPostPrice creates a new post price msg
func (*MsgPostPrice) Descriptor ¶
func (*MsgPostPrice) Descriptor() ([]byte, []int)
func (*MsgPostPrice) GetExpiry ¶
func (m *MsgPostPrice) GetExpiry() time.Time
func (*MsgPostPrice) GetMarketId ¶
func (m *MsgPostPrice) GetMarketId() string
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 ¶
func (m *MsgPostPrice) Marshal() (dAtA []byte, err error)
func (*MsgPostPrice) MarshalToSizedBuffer ¶
func (m *MsgPostPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPostPrice) ProtoMessage ¶
func (*MsgPostPrice) ProtoMessage()
func (*MsgPostPrice) Reset ¶
func (m *MsgPostPrice) Reset()
func (*MsgPostPrice) Size ¶
func (m *MsgPostPrice) Size() (n int)
func (*MsgPostPrice) String ¶
func (m *MsgPostPrice) String() string
func (*MsgPostPrice) Unmarshal ¶
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) XXX_DiscardUnknown ¶
func (m *MsgPostPrice) XXX_DiscardUnknown()
func (*MsgPostPrice) XXX_Marshal ¶
func (m *MsgPostPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPostPrice) XXX_Merge ¶
func (m *MsgPostPrice) XXX_Merge(src proto.Message)
func (*MsgPostPrice) XXX_Size ¶
func (m *MsgPostPrice) XXX_Size() int
func (*MsgPostPrice) XXX_Unmarshal ¶
func (m *MsgPostPrice) XXX_Unmarshal(b []byte) error
type MsgPostPriceResponse ¶
type MsgPostPriceResponse struct { }
func (*MsgPostPriceResponse) Descriptor ¶
func (*MsgPostPriceResponse) Descriptor() ([]byte, []int)
func (*MsgPostPriceResponse) Marshal ¶
func (m *MsgPostPriceResponse) Marshal() (dAtA []byte, err error)
func (*MsgPostPriceResponse) MarshalTo ¶
func (m *MsgPostPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPostPriceResponse) MarshalToSizedBuffer ¶
func (m *MsgPostPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPostPriceResponse) ProtoMessage ¶
func (*MsgPostPriceResponse) ProtoMessage()
func (*MsgPostPriceResponse) Reset ¶
func (m *MsgPostPriceResponse) Reset()
func (*MsgPostPriceResponse) Size ¶
func (m *MsgPostPriceResponse) Size() (n int)
func (*MsgPostPriceResponse) String ¶
func (m *MsgPostPriceResponse) String() string
func (*MsgPostPriceResponse) Unmarshal ¶
func (m *MsgPostPriceResponse) Unmarshal(dAtA []byte) error
func (*MsgPostPriceResponse) XXX_DiscardUnknown ¶
func (m *MsgPostPriceResponse) XXX_DiscardUnknown()
func (*MsgPostPriceResponse) XXX_Marshal ¶
func (m *MsgPostPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPostPriceResponse) XXX_Merge ¶
func (m *MsgPostPriceResponse) XXX_Merge(src proto.Message)
func (*MsgPostPriceResponse) XXX_Size ¶
func (m *MsgPostPriceResponse) XXX_Size() int
func (*MsgPostPriceResponse) XXX_Unmarshal ¶
func (m *MsgPostPriceResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
PostPrice(context.Context, *MsgPostPrice) (*MsgPostPriceResponse, error)
}
MsgServer is the server API for Msg service.
type Params ¶
type Params struct {
Markets []Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets" yaml:"markets"`
}
func (*Params) Descriptor ¶
func (*Params) GetMarkets ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramstype.ParamSetPairs
ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of pricefeed module's parameters.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PostedPrice ¶
type PostedPrice struct { MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty" yaml:"market_id"` OracleAddress github_com_UnUniFi_chain_types.StringAccAddress `` /* 171-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" yaml:"price"` Expiry time.Time `protobuf:"bytes,4,opt,name=expiry,proto3,stdtime" json:"expiry" yaml:"expiry"` }
func NewPostedPrice ¶
func NewPostedPrice(marketID string, oracle sdk.AccAddress, price sdk.Dec, expiry time.Time) PostedPrice
NewPostedPrice returns a new PostedPrice
func (*PostedPrice) Descriptor ¶
func (*PostedPrice) Descriptor() ([]byte, []int)
func (*PostedPrice) GetExpiry ¶
func (m *PostedPrice) GetExpiry() time.Time
func (*PostedPrice) GetMarketId ¶
func (m *PostedPrice) GetMarketId() string
func (*PostedPrice) Marshal ¶
func (m *PostedPrice) Marshal() (dAtA []byte, err error)
func (*PostedPrice) MarshalToSizedBuffer ¶
func (m *PostedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PostedPrice) ProtoMessage ¶
func (*PostedPrice) ProtoMessage()
func (*PostedPrice) Reset ¶
func (m *PostedPrice) Reset()
func (*PostedPrice) Size ¶
func (m *PostedPrice) Size() (n int)
func (*PostedPrice) String ¶
func (m *PostedPrice) String() string
func (*PostedPrice) Unmarshal ¶
func (m *PostedPrice) Unmarshal(dAtA []byte) error
func (PostedPrice) Validate ¶
func (pp PostedPrice) Validate() error
Validate performs a basic check of a PostedPrice params.
func (*PostedPrice) XXX_DiscardUnknown ¶
func (m *PostedPrice) XXX_DiscardUnknown()
func (*PostedPrice) XXX_Marshal ¶
func (m *PostedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PostedPrice) XXX_Merge ¶
func (m *PostedPrice) XXX_Merge(src proto.Message)
func (*PostedPrice) XXX_Size ¶
func (m *PostedPrice) XXX_Size() int
func (*PostedPrice) XXX_Unmarshal ¶
func (m *PostedPrice) XXX_Unmarshal(b []byte) error
type PostedPrices ¶
type PostedPrices []PostedPrice
PostedPrices type for an array of PostedPrice
func (PostedPrices) Validate ¶
func (pps PostedPrices) Validate() error
Validate checks if all the posted prices are valid and there are no duplicated entries.
type QueryAllMarketRequest ¶
type QueryAllMarketRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
this line is used by starport scaffolding # 3
func (*QueryAllMarketRequest) Descriptor ¶
func (*QueryAllMarketRequest) Descriptor() ([]byte, []int)
func (*QueryAllMarketRequest) GetPagination ¶
func (m *QueryAllMarketRequest) GetPagination() *query.PageRequest
func (*QueryAllMarketRequest) Marshal ¶
func (m *QueryAllMarketRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllMarketRequest) MarshalTo ¶
func (m *QueryAllMarketRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMarketRequest) MarshalToSizedBuffer ¶
func (m *QueryAllMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMarketRequest) ProtoMessage ¶
func (*QueryAllMarketRequest) ProtoMessage()
func (*QueryAllMarketRequest) Reset ¶
func (m *QueryAllMarketRequest) Reset()
func (*QueryAllMarketRequest) Size ¶
func (m *QueryAllMarketRequest) Size() (n int)
func (*QueryAllMarketRequest) String ¶
func (m *QueryAllMarketRequest) String() string
func (*QueryAllMarketRequest) Unmarshal ¶
func (m *QueryAllMarketRequest) Unmarshal(dAtA []byte) error
func (*QueryAllMarketRequest) XXX_DiscardUnknown ¶
func (m *QueryAllMarketRequest) XXX_DiscardUnknown()
func (*QueryAllMarketRequest) XXX_Marshal ¶
func (m *QueryAllMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMarketRequest) XXX_Merge ¶
func (m *QueryAllMarketRequest) XXX_Merge(src proto.Message)
func (*QueryAllMarketRequest) XXX_Size ¶
func (m *QueryAllMarketRequest) XXX_Size() int
func (*QueryAllMarketRequest) XXX_Unmarshal ¶
func (m *QueryAllMarketRequest) XXX_Unmarshal(b []byte) error
type QueryAllMarketResponse ¶
type QueryAllMarketResponse struct { Markets []Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllMarketResponse) Descriptor ¶
func (*QueryAllMarketResponse) Descriptor() ([]byte, []int)
func (*QueryAllMarketResponse) GetMarkets ¶
func (m *QueryAllMarketResponse) GetMarkets() []Market
func (*QueryAllMarketResponse) GetPagination ¶
func (m *QueryAllMarketResponse) GetPagination() *query.PageResponse
func (*QueryAllMarketResponse) Marshal ¶
func (m *QueryAllMarketResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllMarketResponse) MarshalTo ¶
func (m *QueryAllMarketResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllMarketResponse) MarshalToSizedBuffer ¶
func (m *QueryAllMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllMarketResponse) ProtoMessage ¶
func (*QueryAllMarketResponse) ProtoMessage()
func (*QueryAllMarketResponse) Reset ¶
func (m *QueryAllMarketResponse) Reset()
func (*QueryAllMarketResponse) Size ¶
func (m *QueryAllMarketResponse) Size() (n int)
func (*QueryAllMarketResponse) String ¶
func (m *QueryAllMarketResponse) String() string
func (*QueryAllMarketResponse) Unmarshal ¶
func (m *QueryAllMarketResponse) Unmarshal(dAtA []byte) error
func (*QueryAllMarketResponse) XXX_DiscardUnknown ¶
func (m *QueryAllMarketResponse) XXX_DiscardUnknown()
func (*QueryAllMarketResponse) XXX_Marshal ¶
func (m *QueryAllMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllMarketResponse) XXX_Merge ¶
func (m *QueryAllMarketResponse) XXX_Merge(src proto.Message)
func (*QueryAllMarketResponse) XXX_Size ¶
func (m *QueryAllMarketResponse) XXX_Size() int
func (*QueryAllMarketResponse) XXX_Unmarshal ¶
func (m *QueryAllMarketResponse) XXX_Unmarshal(b []byte) error
type QueryAllOracleRequest ¶
type QueryAllOracleRequest struct { MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllOracleRequest) Descriptor ¶
func (*QueryAllOracleRequest) Descriptor() ([]byte, []int)
func (*QueryAllOracleRequest) GetMarketId ¶
func (m *QueryAllOracleRequest) GetMarketId() string
func (*QueryAllOracleRequest) GetPagination ¶
func (m *QueryAllOracleRequest) GetPagination() *query.PageRequest
func (*QueryAllOracleRequest) Marshal ¶
func (m *QueryAllOracleRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllOracleRequest) MarshalTo ¶
func (m *QueryAllOracleRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOracleRequest) MarshalToSizedBuffer ¶
func (m *QueryAllOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOracleRequest) ProtoMessage ¶
func (*QueryAllOracleRequest) ProtoMessage()
func (*QueryAllOracleRequest) Reset ¶
func (m *QueryAllOracleRequest) Reset()
func (*QueryAllOracleRequest) Size ¶
func (m *QueryAllOracleRequest) Size() (n int)
func (*QueryAllOracleRequest) String ¶
func (m *QueryAllOracleRequest) String() string
func (*QueryAllOracleRequest) Unmarshal ¶
func (m *QueryAllOracleRequest) Unmarshal(dAtA []byte) error
func (*QueryAllOracleRequest) XXX_DiscardUnknown ¶
func (m *QueryAllOracleRequest) XXX_DiscardUnknown()
func (*QueryAllOracleRequest) XXX_Marshal ¶
func (m *QueryAllOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOracleRequest) XXX_Merge ¶
func (m *QueryAllOracleRequest) XXX_Merge(src proto.Message)
func (*QueryAllOracleRequest) XXX_Size ¶
func (m *QueryAllOracleRequest) XXX_Size() int
func (*QueryAllOracleRequest) XXX_Unmarshal ¶
func (m *QueryAllOracleRequest) XXX_Unmarshal(b []byte) error
type QueryAllOracleResponse ¶
type QueryAllOracleResponse struct { Oracles []github_com_UnUniFi_chain_types.StringAccAddress `protobuf:"bytes,1,rep,name=oracles,proto3,customtype=github.com/UnUniFi/chain/types.StringAccAddress" json:"oracles"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllOracleResponse) Descriptor ¶
func (*QueryAllOracleResponse) Descriptor() ([]byte, []int)
func (*QueryAllOracleResponse) GetPagination ¶
func (m *QueryAllOracleResponse) GetPagination() *query.PageResponse
func (*QueryAllOracleResponse) Marshal ¶
func (m *QueryAllOracleResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllOracleResponse) MarshalTo ¶
func (m *QueryAllOracleResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOracleResponse) MarshalToSizedBuffer ¶
func (m *QueryAllOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOracleResponse) ProtoMessage ¶
func (*QueryAllOracleResponse) ProtoMessage()
func (*QueryAllOracleResponse) Reset ¶
func (m *QueryAllOracleResponse) Reset()
func (*QueryAllOracleResponse) Size ¶
func (m *QueryAllOracleResponse) Size() (n int)
func (*QueryAllOracleResponse) String ¶
func (m *QueryAllOracleResponse) String() string
func (*QueryAllOracleResponse) Unmarshal ¶
func (m *QueryAllOracleResponse) Unmarshal(dAtA []byte) error
func (*QueryAllOracleResponse) XXX_DiscardUnknown ¶
func (m *QueryAllOracleResponse) XXX_DiscardUnknown()
func (*QueryAllOracleResponse) XXX_Marshal ¶
func (m *QueryAllOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOracleResponse) XXX_Merge ¶
func (m *QueryAllOracleResponse) XXX_Merge(src proto.Message)
func (*QueryAllOracleResponse) XXX_Size ¶
func (m *QueryAllOracleResponse) XXX_Size() int
func (*QueryAllOracleResponse) XXX_Unmarshal ¶
func (m *QueryAllOracleResponse) XXX_Unmarshal(b []byte) error
type QueryAllPriceRequest ¶
type QueryAllPriceRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllPriceRequest) Descriptor ¶
func (*QueryAllPriceRequest) Descriptor() ([]byte, []int)
func (*QueryAllPriceRequest) GetPagination ¶
func (m *QueryAllPriceRequest) GetPagination() *query.PageRequest
func (*QueryAllPriceRequest) Marshal ¶
func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllPriceRequest) MarshalTo ¶
func (m *QueryAllPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPriceRequest) MarshalToSizedBuffer ¶
func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPriceRequest) ProtoMessage ¶
func (*QueryAllPriceRequest) ProtoMessage()
func (*QueryAllPriceRequest) Reset ¶
func (m *QueryAllPriceRequest) Reset()
func (*QueryAllPriceRequest) Size ¶
func (m *QueryAllPriceRequest) Size() (n int)
func (*QueryAllPriceRequest) String ¶
func (m *QueryAllPriceRequest) String() string
func (*QueryAllPriceRequest) Unmarshal ¶
func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error
func (*QueryAllPriceRequest) XXX_DiscardUnknown ¶
func (m *QueryAllPriceRequest) XXX_DiscardUnknown()
func (*QueryAllPriceRequest) XXX_Marshal ¶
func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPriceRequest) XXX_Merge ¶
func (m *QueryAllPriceRequest) XXX_Merge(src proto.Message)
func (*QueryAllPriceRequest) XXX_Size ¶
func (m *QueryAllPriceRequest) XXX_Size() int
func (*QueryAllPriceRequest) XXX_Unmarshal ¶
func (m *QueryAllPriceRequest) XXX_Unmarshal(b []byte) error
type QueryAllPriceResponse ¶
type QueryAllPriceResponse struct { Prices []CurrentPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPriceResponse) Descriptor ¶
func (*QueryAllPriceResponse) Descriptor() ([]byte, []int)
func (*QueryAllPriceResponse) GetPagination ¶
func (m *QueryAllPriceResponse) GetPagination() *query.PageResponse
func (*QueryAllPriceResponse) GetPrices ¶
func (m *QueryAllPriceResponse) GetPrices() []CurrentPrice
func (*QueryAllPriceResponse) Marshal ¶
func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllPriceResponse) MarshalTo ¶
func (m *QueryAllPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPriceResponse) MarshalToSizedBuffer ¶
func (m *QueryAllPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPriceResponse) ProtoMessage ¶
func (*QueryAllPriceResponse) ProtoMessage()
func (*QueryAllPriceResponse) Reset ¶
func (m *QueryAllPriceResponse) Reset()
func (*QueryAllPriceResponse) Size ¶
func (m *QueryAllPriceResponse) Size() (n int)
func (*QueryAllPriceResponse) String ¶
func (m *QueryAllPriceResponse) String() string
func (*QueryAllPriceResponse) Unmarshal ¶
func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error
func (*QueryAllPriceResponse) XXX_DiscardUnknown ¶
func (m *QueryAllPriceResponse) XXX_DiscardUnknown()
func (*QueryAllPriceResponse) XXX_Marshal ¶
func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPriceResponse) XXX_Merge ¶
func (m *QueryAllPriceResponse) XXX_Merge(src proto.Message)
func (*QueryAllPriceResponse) XXX_Size ¶
func (m *QueryAllPriceResponse) XXX_Size() int
func (*QueryAllPriceResponse) XXX_Unmarshal ¶
func (m *QueryAllPriceResponse) XXX_Unmarshal(b []byte) error
type QueryAllRawPriceRequest ¶
type QueryAllRawPriceRequest struct { MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllRawPriceRequest) Descriptor ¶
func (*QueryAllRawPriceRequest) Descriptor() ([]byte, []int)
func (*QueryAllRawPriceRequest) GetMarketId ¶
func (m *QueryAllRawPriceRequest) GetMarketId() string
func (*QueryAllRawPriceRequest) GetPagination ¶
func (m *QueryAllRawPriceRequest) GetPagination() *query.PageRequest
func (*QueryAllRawPriceRequest) Marshal ¶
func (m *QueryAllRawPriceRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllRawPriceRequest) MarshalTo ¶
func (m *QueryAllRawPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRawPriceRequest) MarshalToSizedBuffer ¶
func (m *QueryAllRawPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRawPriceRequest) ProtoMessage ¶
func (*QueryAllRawPriceRequest) ProtoMessage()
func (*QueryAllRawPriceRequest) Reset ¶
func (m *QueryAllRawPriceRequest) Reset()
func (*QueryAllRawPriceRequest) Size ¶
func (m *QueryAllRawPriceRequest) Size() (n int)
func (*QueryAllRawPriceRequest) String ¶
func (m *QueryAllRawPriceRequest) String() string
func (*QueryAllRawPriceRequest) Unmarshal ¶
func (m *QueryAllRawPriceRequest) Unmarshal(dAtA []byte) error
func (*QueryAllRawPriceRequest) XXX_DiscardUnknown ¶
func (m *QueryAllRawPriceRequest) XXX_DiscardUnknown()
func (*QueryAllRawPriceRequest) XXX_Marshal ¶
func (m *QueryAllRawPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRawPriceRequest) XXX_Merge ¶
func (m *QueryAllRawPriceRequest) XXX_Merge(src proto.Message)
func (*QueryAllRawPriceRequest) XXX_Size ¶
func (m *QueryAllRawPriceRequest) XXX_Size() int
func (*QueryAllRawPriceRequest) XXX_Unmarshal ¶
func (m *QueryAllRawPriceRequest) XXX_Unmarshal(b []byte) error
type QueryAllRawPriceResponse ¶
type QueryAllRawPriceResponse struct { Prices []PostedPrice `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllRawPriceResponse) Descriptor ¶
func (*QueryAllRawPriceResponse) Descriptor() ([]byte, []int)
func (*QueryAllRawPriceResponse) GetPagination ¶
func (m *QueryAllRawPriceResponse) GetPagination() *query.PageResponse
func (*QueryAllRawPriceResponse) GetPrices ¶
func (m *QueryAllRawPriceResponse) GetPrices() []PostedPrice
func (*QueryAllRawPriceResponse) Marshal ¶
func (m *QueryAllRawPriceResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllRawPriceResponse) MarshalTo ¶
func (m *QueryAllRawPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllRawPriceResponse) MarshalToSizedBuffer ¶
func (m *QueryAllRawPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllRawPriceResponse) ProtoMessage ¶
func (*QueryAllRawPriceResponse) ProtoMessage()
func (*QueryAllRawPriceResponse) Reset ¶
func (m *QueryAllRawPriceResponse) Reset()
func (*QueryAllRawPriceResponse) Size ¶
func (m *QueryAllRawPriceResponse) Size() (n int)
func (*QueryAllRawPriceResponse) String ¶
func (m *QueryAllRawPriceResponse) String() string
func (*QueryAllRawPriceResponse) Unmarshal ¶
func (m *QueryAllRawPriceResponse) Unmarshal(dAtA []byte) error
func (*QueryAllRawPriceResponse) XXX_DiscardUnknown ¶
func (m *QueryAllRawPriceResponse) XXX_DiscardUnknown()
func (*QueryAllRawPriceResponse) XXX_Marshal ¶
func (m *QueryAllRawPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllRawPriceResponse) XXX_Merge ¶
func (m *QueryAllRawPriceResponse) XXX_Merge(src proto.Message)
func (*QueryAllRawPriceResponse) XXX_Size ¶
func (m *QueryAllRawPriceResponse) XXX_Size() int
func (*QueryAllRawPriceResponse) XXX_Unmarshal ¶
func (m *QueryAllRawPriceResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // this line is used by starport scaffolding # 2 MarketAll(ctx context.Context, in *QueryAllMarketRequest, opts ...grpc.CallOption) (*QueryAllMarketResponse, error) OracleAll(ctx context.Context, in *QueryAllOracleRequest, opts ...grpc.CallOption) (*QueryAllOracleResponse, error) Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error) PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error) RawPriceAll(ctx context.Context, in *QueryAllRawPriceRequest, opts ...grpc.CallOption) (*QueryAllRawPriceResponse, 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 QueryGetPriceRequest ¶
type QueryGetPriceRequest struct {
MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}
func (*QueryGetPriceRequest) Descriptor ¶
func (*QueryGetPriceRequest) Descriptor() ([]byte, []int)
func (*QueryGetPriceRequest) GetMarketId ¶
func (m *QueryGetPriceRequest) GetMarketId() string
func (*QueryGetPriceRequest) Marshal ¶
func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetPriceRequest) MarshalTo ¶
func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPriceRequest) MarshalToSizedBuffer ¶
func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPriceRequest) ProtoMessage ¶
func (*QueryGetPriceRequest) ProtoMessage()
func (*QueryGetPriceRequest) Reset ¶
func (m *QueryGetPriceRequest) Reset()
func (*QueryGetPriceRequest) Size ¶
func (m *QueryGetPriceRequest) Size() (n int)
func (*QueryGetPriceRequest) String ¶
func (m *QueryGetPriceRequest) String() string
func (*QueryGetPriceRequest) Unmarshal ¶
func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error
func (*QueryGetPriceRequest) XXX_DiscardUnknown ¶
func (m *QueryGetPriceRequest) XXX_DiscardUnknown()
func (*QueryGetPriceRequest) XXX_Marshal ¶
func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPriceRequest) XXX_Merge ¶
func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message)
func (*QueryGetPriceRequest) XXX_Size ¶
func (m *QueryGetPriceRequest) XXX_Size() int
func (*QueryGetPriceRequest) XXX_Unmarshal ¶
func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error
type QueryGetPriceResponse ¶
type QueryGetPriceResponse struct {
Price CurrentPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price"`
}
func (*QueryGetPriceResponse) Descriptor ¶
func (*QueryGetPriceResponse) Descriptor() ([]byte, []int)
func (*QueryGetPriceResponse) GetPrice ¶
func (m *QueryGetPriceResponse) GetPrice() CurrentPrice
func (*QueryGetPriceResponse) Marshal ¶
func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetPriceResponse) MarshalTo ¶
func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPriceResponse) MarshalToSizedBuffer ¶
func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPriceResponse) ProtoMessage ¶
func (*QueryGetPriceResponse) ProtoMessage()
func (*QueryGetPriceResponse) Reset ¶
func (m *QueryGetPriceResponse) Reset()
func (*QueryGetPriceResponse) Size ¶
func (m *QueryGetPriceResponse) Size() (n int)
func (*QueryGetPriceResponse) String ¶
func (m *QueryGetPriceResponse) String() string
func (*QueryGetPriceResponse) Unmarshal ¶
func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error
func (*QueryGetPriceResponse) XXX_DiscardUnknown ¶
func (m *QueryGetPriceResponse) XXX_DiscardUnknown()
func (*QueryGetPriceResponse) XXX_Marshal ¶
func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPriceResponse) XXX_Merge ¶
func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message)
func (*QueryGetPriceResponse) XXX_Size ¶
func (m *QueryGetPriceResponse) XXX_Size() int
func (*QueryGetPriceResponse) XXX_Unmarshal ¶
func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
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 *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
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 QueryServer ¶
type QueryServer interface { Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // this line is used by starport scaffolding # 2 MarketAll(context.Context, *QueryAllMarketRequest) (*QueryAllMarketResponse, error) OracleAll(context.Context, *QueryAllOracleRequest) (*QueryAllOracleResponse, error) Price(context.Context, *QueryGetPriceRequest) (*QueryGetPriceResponse, error) PriceAll(context.Context, *QueryAllPriceRequest) (*QueryAllPriceResponse, error) RawPriceAll(context.Context, *QueryAllRawPriceRequest) (*QueryAllRawPriceResponse, 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) PostPrice ¶
func (*UnimplementedMsgServer) PostPrice(ctx context.Context, req *MsgPostPrice) (*MsgPostPriceResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) MarketAll ¶
func (*UnimplementedQueryServer) MarketAll(ctx context.Context, req *QueryAllMarketRequest) (*QueryAllMarketResponse, error)
func (*UnimplementedQueryServer) OracleAll ¶
func (*UnimplementedQueryServer) OracleAll(ctx context.Context, req *QueryAllOracleRequest) (*QueryAllOracleResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Price ¶
func (*UnimplementedQueryServer) Price(ctx context.Context, req *QueryGetPriceRequest) (*QueryGetPriceResponse, error)
func (*UnimplementedQueryServer) PriceAll ¶
func (*UnimplementedQueryServer) PriceAll(ctx context.Context, req *QueryAllPriceRequest) (*QueryAllPriceResponse, error)
func (*UnimplementedQueryServer) RawPriceAll ¶
func (*UnimplementedQueryServer) RawPriceAll(ctx context.Context, req *QueryAllRawPriceRequest) (*QueryAllRawPriceResponse, error)