types

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
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"
)
View Source
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-"
)
View Source
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
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
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

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyMarkets     = []byte("Markets")
	DefaultMarkets = Markets{}
)

Parameter keys

View Source
var (
	ErrInvalidLengthPricefeed        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPricefeed          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPricefeed = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func CurrentPriceKeySuffix added in v0.2.0

func CurrentPriceKeySuffix(marketID string) []byte

CurrentPriceKeySuffix returns the prefix for the current price

func KeyPrefix added in v0.2.0

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramstype.KeyTable

ParamKeyTable Key declaration for parameters

func RawPriceKeySuffix added in v0.2.0

func RawPriceKeySuffix(marketID string) []byte

RawPriceKeySuffix returns the prefix for the raw price

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces added in v0.2.0

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterQueryHandler added in v0.2.0

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient added in v0.2.0

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint added in v0.2.0

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer added in v0.2.0

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer added in v0.2.0

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AccountKeeper added in v0.2.0

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 added in v0.2.0

func (*CurrentPrice) Descriptor() ([]byte, []int)

func (*CurrentPrice) GetMarketId added in v0.2.0

func (m *CurrentPrice) GetMarketId() string

func (*CurrentPrice) Marshal added in v0.2.0

func (m *CurrentPrice) Marshal() (dAtA []byte, err error)

func (*CurrentPrice) MarshalTo added in v0.2.0

func (m *CurrentPrice) MarshalTo(dAtA []byte) (int, error)

func (*CurrentPrice) MarshalToSizedBuffer added in v0.2.0

func (m *CurrentPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CurrentPrice) ProtoMessage added in v0.2.0

func (*CurrentPrice) ProtoMessage()

func (*CurrentPrice) Reset added in v0.2.0

func (m *CurrentPrice) Reset()

func (*CurrentPrice) Size added in v0.2.0

func (m *CurrentPrice) Size() (n int)

func (*CurrentPrice) String

func (m *CurrentPrice) String() string

func (*CurrentPrice) Unmarshal added in v0.2.0

func (m *CurrentPrice) Unmarshal(dAtA []byte) error

func (*CurrentPrice) XXX_DiscardUnknown added in v0.2.0

func (m *CurrentPrice) XXX_DiscardUnknown()

func (*CurrentPrice) XXX_Marshal added in v0.2.0

func (m *CurrentPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrentPrice) XXX_Merge added in v0.2.0

func (m *CurrentPrice) XXX_Merge(src proto.Message)

func (*CurrentPrice) XXX_Size added in v0.2.0

func (m *CurrentPrice) XXX_Size() int

func (*CurrentPrice) XXX_Unmarshal added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPostedPrices added in v0.2.0

func (m *GenesisState) GetPostedPrices() []PostedPrice

func (GenesisState) IsEmpty

func (gs GenesisState) IsEmpty() bool

IsEmpty returns true if a GenesisState is empty

func (*GenesisState) Marshal added in v0.2.0

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v0.2.0

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v0.2.0

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v0.2.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.2.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.2.0

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v0.2.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.2.0

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 added in v0.2.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.2.0

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge added in v0.2.0

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size added in v0.2.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.2.0

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type Market

type Market struct {
	MarketId   string                                         `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty" 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_lcnem_eurx_types.StringAccAddress `` /* 128-byte string literal not displayed */
	Active     bool                                           `protobuf:"varint,5,opt,name=active,proto3" json:"active,omitempty" yaml:"active"`
}

func NewMarket added in v0.2.0

func NewMarket(id, base, quote string, oracles []sdk.AccAddress, active bool) Market

NewMarket returns a new Market

func (*Market) Descriptor added in v0.2.0

func (*Market) Descriptor() ([]byte, []int)

func (*Market) GetActive added in v0.2.0

func (m *Market) GetActive() bool

func (*Market) GetBaseAsset added in v0.2.0

func (m *Market) GetBaseAsset() string

func (*Market) GetMarketId added in v0.2.0

func (m *Market) GetMarketId() string

func (*Market) GetQuoteAsset added in v0.2.0

func (m *Market) GetQuoteAsset() string

func (*Market) Marshal added in v0.2.0

func (m *Market) Marshal() (dAtA []byte, err error)

func (*Market) MarshalTo added in v0.2.0

func (m *Market) MarshalTo(dAtA []byte) (int, error)

func (*Market) MarshalToSizedBuffer added in v0.2.0

func (m *Market) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Market) ProtoMessage added in v0.2.0

func (*Market) ProtoMessage()

func (*Market) Reset added in v0.2.0

func (m *Market) Reset()

func (*Market) Size added in v0.2.0

func (m *Market) Size() (n int)

func (*Market) String

func (m *Market) String() string

func (*Market) Unmarshal added in v0.2.0

func (m *Market) Unmarshal(dAtA []byte) error

func (Market) Validate

func (m Market) Validate() error

Validate performs a basic validation of the market params

func (*Market) XXX_DiscardUnknown added in v0.2.0

func (m *Market) XXX_DiscardUnknown()

func (*Market) XXX_Marshal added in v0.2.0

func (m *Market) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Market) XXX_Merge added in v0.2.0

func (m *Market) XXX_Merge(src proto.Message)

func (*Market) XXX_Size added in v0.2.0

func (m *Market) XXX_Size() int

func (*Market) XXX_Unmarshal added in v0.2.0

func (m *Market) XXX_Unmarshal(b []byte) error

type Markets

type Markets []Market

Markets array type for oracle

func (Markets) String

func (ms Markets) String() string

String implements fmt.Stringer

func (Markets) Validate

func (ms Markets) Validate() error

Validate checks if all the markets are valid and there are no duplicated entries.

type MsgPostPrice

type MsgPostPrice struct {
	From     github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,opt,name=from,proto3,customtype=github.com/lcnem/eurx/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_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 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 added in v0.2.0

func (*MsgPostPrice) Descriptor() ([]byte, []int)

func (*MsgPostPrice) GetExpiry added in v0.2.0

func (m *MsgPostPrice) GetExpiry() time.Time

func (*MsgPostPrice) GetMarketId added in v0.2.0

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 added in v0.2.0

func (m *MsgPostPrice) Marshal() (dAtA []byte, err error)

func (*MsgPostPrice) MarshalTo added in v0.2.0

func (m *MsgPostPrice) MarshalTo(dAtA []byte) (int, error)

func (*MsgPostPrice) MarshalToSizedBuffer added in v0.2.0

func (m *MsgPostPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgPostPrice) ProtoMessage added in v0.2.0

func (*MsgPostPrice) ProtoMessage()

func (*MsgPostPrice) Reset added in v0.2.0

func (m *MsgPostPrice) Reset()

func (MsgPostPrice) Route

func (msg MsgPostPrice) Route() string

Route Implements Msg.

func (*MsgPostPrice) Size added in v0.2.0

func (m *MsgPostPrice) Size() (n int)

func (*MsgPostPrice) String added in v0.2.0

func (m *MsgPostPrice) String() string

func (MsgPostPrice) Type

func (msg MsgPostPrice) Type() string

Type Implements Msg

func (*MsgPostPrice) Unmarshal added in v0.2.0

func (m *MsgPostPrice) Unmarshal(dAtA []byte) error

func (MsgPostPrice) ValidateBasic

func (msg MsgPostPrice) ValidateBasic() error

ValidateBasic does a simple validation check that doesn't require access to any other information.

func (*MsgPostPrice) XXX_DiscardUnknown added in v0.2.0

func (m *MsgPostPrice) XXX_DiscardUnknown()

func (*MsgPostPrice) XXX_Marshal added in v0.2.0

func (m *MsgPostPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgPostPrice) XXX_Merge added in v0.2.0

func (m *MsgPostPrice) XXX_Merge(src proto.Message)

func (*MsgPostPrice) XXX_Size added in v0.2.0

func (m *MsgPostPrice) XXX_Size() int

func (*MsgPostPrice) XXX_Unmarshal added in v0.2.0

func (m *MsgPostPrice) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
	Markets []Market `protobuf:"bytes,1,rep,name=markets,proto3" json:"markets" yaml:"markets"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams default params for pricefeed

func NewParams

func NewParams(markets Markets) Params

NewParams creates a new AssetParams object

func (*Params) Descriptor added in v0.2.0

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetMarkets added in v0.2.0

func (m *Params) GetMarkets() []Market

func (*Params) Marshal added in v0.2.0

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo added in v0.2.0

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer added in v0.2.0

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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 added in v0.2.0

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.2.0

func (m *Params) Reset()

func (*Params) Size added in v0.2.0

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal added in v0.2.0

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate ensure that params have valid values

func (*Params) XXX_DiscardUnknown added in v0.2.0

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.2.0

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge added in v0.2.0

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size added in v0.2.0

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.2.0

func (m *Params) XXX_Unmarshal(b []byte) error

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_lcnem_eurx_types.StringAccAddress `` /* 168-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 added in v0.2.0

func (*PostedPrice) Descriptor() ([]byte, []int)

func (*PostedPrice) GetExpiry added in v0.2.0

func (m *PostedPrice) GetExpiry() time.Time

func (*PostedPrice) GetMarketId added in v0.2.0

func (m *PostedPrice) GetMarketId() string

func (*PostedPrice) Marshal added in v0.2.0

func (m *PostedPrice) Marshal() (dAtA []byte, err error)

func (*PostedPrice) MarshalTo added in v0.2.0

func (m *PostedPrice) MarshalTo(dAtA []byte) (int, error)

func (*PostedPrice) MarshalToSizedBuffer added in v0.2.0

func (m *PostedPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PostedPrice) ProtoMessage added in v0.2.0

func (*PostedPrice) ProtoMessage()

func (*PostedPrice) Reset added in v0.2.0

func (m *PostedPrice) Reset()

func (*PostedPrice) Size added in v0.2.0

func (m *PostedPrice) Size() (n int)

func (*PostedPrice) String

func (m *PostedPrice) String() string

func (*PostedPrice) Unmarshal added in v0.2.0

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 added in v0.2.0

func (m *PostedPrice) XXX_DiscardUnknown()

func (*PostedPrice) XXX_Marshal added in v0.2.0

func (m *PostedPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostedPrice) XXX_Merge added in v0.2.0

func (m *PostedPrice) XXX_Merge(src proto.Message)

func (*PostedPrice) XXX_Size added in v0.2.0

func (m *PostedPrice) XXX_Size() int

func (*PostedPrice) XXX_Unmarshal added in v0.2.0

func (m *PostedPrice) XXX_Unmarshal(b []byte) error

type PostedPrices

type PostedPrices []PostedPrice

PostedPrices type for an array of PostedPrice

func (PostedPrices) String

func (ps PostedPrices) String() string

String implements fmt.Stringer

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 added in v0.2.0

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 added in v0.2.0

func (*QueryAllMarketRequest) Descriptor() ([]byte, []int)

func (*QueryAllMarketRequest) GetPagination added in v0.2.0

func (m *QueryAllMarketRequest) GetPagination() *query.PageRequest

func (*QueryAllMarketRequest) Marshal added in v0.2.0

func (m *QueryAllMarketRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllMarketRequest) MarshalTo added in v0.2.0

func (m *QueryAllMarketRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMarketRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllMarketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMarketRequest) ProtoMessage added in v0.2.0

func (*QueryAllMarketRequest) ProtoMessage()

func (*QueryAllMarketRequest) Reset added in v0.2.0

func (m *QueryAllMarketRequest) Reset()

func (*QueryAllMarketRequest) Size added in v0.2.0

func (m *QueryAllMarketRequest) Size() (n int)

func (*QueryAllMarketRequest) String added in v0.2.0

func (m *QueryAllMarketRequest) String() string

func (*QueryAllMarketRequest) Unmarshal added in v0.2.0

func (m *QueryAllMarketRequest) Unmarshal(dAtA []byte) error

func (*QueryAllMarketRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllMarketRequest) XXX_DiscardUnknown()

func (*QueryAllMarketRequest) XXX_Marshal added in v0.2.0

func (m *QueryAllMarketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMarketRequest) XXX_Merge added in v0.2.0

func (m *QueryAllMarketRequest) XXX_Merge(src proto.Message)

func (*QueryAllMarketRequest) XXX_Size added in v0.2.0

func (m *QueryAllMarketRequest) XXX_Size() int

func (*QueryAllMarketRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryAllMarketRequest) XXX_Unmarshal(b []byte) error

type QueryAllMarketResponse added in v0.2.0

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 added in v0.2.0

func (*QueryAllMarketResponse) Descriptor() ([]byte, []int)

func (*QueryAllMarketResponse) GetMarkets added in v0.2.0

func (m *QueryAllMarketResponse) GetMarkets() []Market

func (*QueryAllMarketResponse) GetPagination added in v0.2.0

func (m *QueryAllMarketResponse) GetPagination() *query.PageResponse

func (*QueryAllMarketResponse) Marshal added in v0.2.0

func (m *QueryAllMarketResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllMarketResponse) MarshalTo added in v0.2.0

func (m *QueryAllMarketResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllMarketResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllMarketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllMarketResponse) ProtoMessage added in v0.2.0

func (*QueryAllMarketResponse) ProtoMessage()

func (*QueryAllMarketResponse) Reset added in v0.2.0

func (m *QueryAllMarketResponse) Reset()

func (*QueryAllMarketResponse) Size added in v0.2.0

func (m *QueryAllMarketResponse) Size() (n int)

func (*QueryAllMarketResponse) String added in v0.2.0

func (m *QueryAllMarketResponse) String() string

func (*QueryAllMarketResponse) Unmarshal added in v0.2.0

func (m *QueryAllMarketResponse) Unmarshal(dAtA []byte) error

func (*QueryAllMarketResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllMarketResponse) XXX_DiscardUnknown()

func (*QueryAllMarketResponse) XXX_Marshal added in v0.2.0

func (m *QueryAllMarketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllMarketResponse) XXX_Merge added in v0.2.0

func (m *QueryAllMarketResponse) XXX_Merge(src proto.Message)

func (*QueryAllMarketResponse) XXX_Size added in v0.2.0

func (m *QueryAllMarketResponse) XXX_Size() int

func (*QueryAllMarketResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryAllMarketResponse) XXX_Unmarshal(b []byte) error

type QueryAllOracleRequest added in v0.2.0

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 added in v0.2.0

func (*QueryAllOracleRequest) Descriptor() ([]byte, []int)

func (*QueryAllOracleRequest) GetMarketId added in v0.2.0

func (m *QueryAllOracleRequest) GetMarketId() string

func (*QueryAllOracleRequest) GetPagination added in v0.2.0

func (m *QueryAllOracleRequest) GetPagination() *query.PageRequest

func (*QueryAllOracleRequest) Marshal added in v0.2.0

func (m *QueryAllOracleRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllOracleRequest) MarshalTo added in v0.2.0

func (m *QueryAllOracleRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllOracleRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllOracleRequest) ProtoMessage added in v0.2.0

func (*QueryAllOracleRequest) ProtoMessage()

func (*QueryAllOracleRequest) Reset added in v0.2.0

func (m *QueryAllOracleRequest) Reset()

func (*QueryAllOracleRequest) Size added in v0.2.0

func (m *QueryAllOracleRequest) Size() (n int)

func (*QueryAllOracleRequest) String added in v0.2.0

func (m *QueryAllOracleRequest) String() string

func (*QueryAllOracleRequest) Unmarshal added in v0.2.0

func (m *QueryAllOracleRequest) Unmarshal(dAtA []byte) error

func (*QueryAllOracleRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllOracleRequest) XXX_DiscardUnknown()

func (*QueryAllOracleRequest) XXX_Marshal added in v0.2.0

func (m *QueryAllOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllOracleRequest) XXX_Merge added in v0.2.0

func (m *QueryAllOracleRequest) XXX_Merge(src proto.Message)

func (*QueryAllOracleRequest) XXX_Size added in v0.2.0

func (m *QueryAllOracleRequest) XXX_Size() int

func (*QueryAllOracleRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryAllOracleRequest) XXX_Unmarshal(b []byte) error

type QueryAllOracleResponse added in v0.2.0

type QueryAllOracleResponse struct {
	Oracles    []github_com_lcnem_eurx_types.StringAccAddress `protobuf:"bytes,1,rep,name=oracles,proto3,customtype=github.com/lcnem/eurx/types.StringAccAddress" json:"oracles"`
	Pagination *query.PageResponse                            `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllOracleResponse) Descriptor added in v0.2.0

func (*QueryAllOracleResponse) Descriptor() ([]byte, []int)

func (*QueryAllOracleResponse) GetPagination added in v0.2.0

func (m *QueryAllOracleResponse) GetPagination() *query.PageResponse

func (*QueryAllOracleResponse) Marshal added in v0.2.0

func (m *QueryAllOracleResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllOracleResponse) MarshalTo added in v0.2.0

func (m *QueryAllOracleResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllOracleResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllOracleResponse) ProtoMessage added in v0.2.0

func (*QueryAllOracleResponse) ProtoMessage()

func (*QueryAllOracleResponse) Reset added in v0.2.0

func (m *QueryAllOracleResponse) Reset()

func (*QueryAllOracleResponse) Size added in v0.2.0

func (m *QueryAllOracleResponse) Size() (n int)

func (*QueryAllOracleResponse) String added in v0.2.0

func (m *QueryAllOracleResponse) String() string

func (*QueryAllOracleResponse) Unmarshal added in v0.2.0

func (m *QueryAllOracleResponse) Unmarshal(dAtA []byte) error

func (*QueryAllOracleResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllOracleResponse) XXX_DiscardUnknown()

func (*QueryAllOracleResponse) XXX_Marshal added in v0.2.0

func (m *QueryAllOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllOracleResponse) XXX_Merge added in v0.2.0

func (m *QueryAllOracleResponse) XXX_Merge(src proto.Message)

func (*QueryAllOracleResponse) XXX_Size added in v0.2.0

func (m *QueryAllOracleResponse) XXX_Size() int

func (*QueryAllOracleResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryAllOracleResponse) XXX_Unmarshal(b []byte) error

type QueryAllPriceRequest added in v0.2.0

type QueryAllPriceRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPriceRequest) Descriptor added in v0.2.0

func (*QueryAllPriceRequest) Descriptor() ([]byte, []int)

func (*QueryAllPriceRequest) GetPagination added in v0.2.0

func (m *QueryAllPriceRequest) GetPagination() *query.PageRequest

func (*QueryAllPriceRequest) Marshal added in v0.2.0

func (m *QueryAllPriceRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllPriceRequest) MarshalTo added in v0.2.0

func (m *QueryAllPriceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPriceRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPriceRequest) ProtoMessage added in v0.2.0

func (*QueryAllPriceRequest) ProtoMessage()

func (*QueryAllPriceRequest) Reset added in v0.2.0

func (m *QueryAllPriceRequest) Reset()

func (*QueryAllPriceRequest) Size added in v0.2.0

func (m *QueryAllPriceRequest) Size() (n int)

func (*QueryAllPriceRequest) String added in v0.2.0

func (m *QueryAllPriceRequest) String() string

func (*QueryAllPriceRequest) Unmarshal added in v0.2.0

func (m *QueryAllPriceRequest) Unmarshal(dAtA []byte) error

func (*QueryAllPriceRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllPriceRequest) XXX_DiscardUnknown()

func (*QueryAllPriceRequest) XXX_Marshal added in v0.2.0

func (m *QueryAllPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPriceRequest) XXX_Merge added in v0.2.0

func (m *QueryAllPriceRequest) XXX_Merge(src proto.Message)

func (*QueryAllPriceRequest) XXX_Size added in v0.2.0

func (m *QueryAllPriceRequest) XXX_Size() int

func (*QueryAllPriceRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryAllPriceRequest) XXX_Unmarshal(b []byte) error

type QueryAllPriceResponse added in v0.2.0

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 added in v0.2.0

func (*QueryAllPriceResponse) Descriptor() ([]byte, []int)

func (*QueryAllPriceResponse) GetPagination added in v0.2.0

func (m *QueryAllPriceResponse) GetPagination() *query.PageResponse

func (*QueryAllPriceResponse) GetPrices added in v0.2.0

func (m *QueryAllPriceResponse) GetPrices() []CurrentPrice

func (*QueryAllPriceResponse) Marshal added in v0.2.0

func (m *QueryAllPriceResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllPriceResponse) MarshalTo added in v0.2.0

func (m *QueryAllPriceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllPriceResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllPriceResponse) ProtoMessage added in v0.2.0

func (*QueryAllPriceResponse) ProtoMessage()

func (*QueryAllPriceResponse) Reset added in v0.2.0

func (m *QueryAllPriceResponse) Reset()

func (*QueryAllPriceResponse) Size added in v0.2.0

func (m *QueryAllPriceResponse) Size() (n int)

func (*QueryAllPriceResponse) String added in v0.2.0

func (m *QueryAllPriceResponse) String() string

func (*QueryAllPriceResponse) Unmarshal added in v0.2.0

func (m *QueryAllPriceResponse) Unmarshal(dAtA []byte) error

func (*QueryAllPriceResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllPriceResponse) XXX_DiscardUnknown()

func (*QueryAllPriceResponse) XXX_Marshal added in v0.2.0

func (m *QueryAllPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllPriceResponse) XXX_Merge added in v0.2.0

func (m *QueryAllPriceResponse) XXX_Merge(src proto.Message)

func (*QueryAllPriceResponse) XXX_Size added in v0.2.0

func (m *QueryAllPriceResponse) XXX_Size() int

func (*QueryAllPriceResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryAllPriceResponse) XXX_Unmarshal(b []byte) error

type QueryAllRawPriceRequest added in v0.2.0

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 added in v0.2.0

func (*QueryAllRawPriceRequest) Descriptor() ([]byte, []int)

func (*QueryAllRawPriceRequest) GetMarketId added in v0.2.0

func (m *QueryAllRawPriceRequest) GetMarketId() string

func (*QueryAllRawPriceRequest) GetPagination added in v0.2.0

func (m *QueryAllRawPriceRequest) GetPagination() *query.PageRequest

func (*QueryAllRawPriceRequest) Marshal added in v0.2.0

func (m *QueryAllRawPriceRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllRawPriceRequest) MarshalTo added in v0.2.0

func (m *QueryAllRawPriceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllRawPriceRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllRawPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllRawPriceRequest) ProtoMessage added in v0.2.0

func (*QueryAllRawPriceRequest) ProtoMessage()

func (*QueryAllRawPriceRequest) Reset added in v0.2.0

func (m *QueryAllRawPriceRequest) Reset()

func (*QueryAllRawPriceRequest) Size added in v0.2.0

func (m *QueryAllRawPriceRequest) Size() (n int)

func (*QueryAllRawPriceRequest) String added in v0.2.0

func (m *QueryAllRawPriceRequest) String() string

func (*QueryAllRawPriceRequest) Unmarshal added in v0.2.0

func (m *QueryAllRawPriceRequest) Unmarshal(dAtA []byte) error

func (*QueryAllRawPriceRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllRawPriceRequest) XXX_DiscardUnknown()

func (*QueryAllRawPriceRequest) XXX_Marshal added in v0.2.0

func (m *QueryAllRawPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllRawPriceRequest) XXX_Merge added in v0.2.0

func (m *QueryAllRawPriceRequest) XXX_Merge(src proto.Message)

func (*QueryAllRawPriceRequest) XXX_Size added in v0.2.0

func (m *QueryAllRawPriceRequest) XXX_Size() int

func (*QueryAllRawPriceRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryAllRawPriceRequest) XXX_Unmarshal(b []byte) error

type QueryAllRawPriceResponse added in v0.2.0

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 added in v0.2.0

func (*QueryAllRawPriceResponse) Descriptor() ([]byte, []int)

func (*QueryAllRawPriceResponse) GetPagination added in v0.2.0

func (m *QueryAllRawPriceResponse) GetPagination() *query.PageResponse

func (*QueryAllRawPriceResponse) GetPrices added in v0.2.0

func (m *QueryAllRawPriceResponse) GetPrices() []PostedPrice

func (*QueryAllRawPriceResponse) Marshal added in v0.2.0

func (m *QueryAllRawPriceResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllRawPriceResponse) MarshalTo added in v0.2.0

func (m *QueryAllRawPriceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllRawPriceResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryAllRawPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllRawPriceResponse) ProtoMessage added in v0.2.0

func (*QueryAllRawPriceResponse) ProtoMessage()

func (*QueryAllRawPriceResponse) Reset added in v0.2.0

func (m *QueryAllRawPriceResponse) Reset()

func (*QueryAllRawPriceResponse) Size added in v0.2.0

func (m *QueryAllRawPriceResponse) Size() (n int)

func (*QueryAllRawPriceResponse) String added in v0.2.0

func (m *QueryAllRawPriceResponse) String() string

func (*QueryAllRawPriceResponse) Unmarshal added in v0.2.0

func (m *QueryAllRawPriceResponse) Unmarshal(dAtA []byte) error

func (*QueryAllRawPriceResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryAllRawPriceResponse) XXX_DiscardUnknown()

func (*QueryAllRawPriceResponse) XXX_Marshal added in v0.2.0

func (m *QueryAllRawPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllRawPriceResponse) XXX_Merge added in v0.2.0

func (m *QueryAllRawPriceResponse) XXX_Merge(src proto.Message)

func (*QueryAllRawPriceResponse) XXX_Size added in v0.2.0

func (m *QueryAllRawPriceResponse) XXX_Size() int

func (*QueryAllRawPriceResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryAllRawPriceResponse) XXX_Unmarshal(b []byte) error

type QueryClient added in v0.2.0

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 added in v0.2.0

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryGetPriceRequest added in v0.2.0

type QueryGetPriceRequest struct {
	MarketId string `protobuf:"bytes,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
}

func (*QueryGetPriceRequest) Descriptor added in v0.2.0

func (*QueryGetPriceRequest) Descriptor() ([]byte, []int)

func (*QueryGetPriceRequest) GetMarketId added in v0.2.0

func (m *QueryGetPriceRequest) GetMarketId() string

func (*QueryGetPriceRequest) Marshal added in v0.2.0

func (m *QueryGetPriceRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetPriceRequest) MarshalTo added in v0.2.0

func (m *QueryGetPriceRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPriceRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryGetPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPriceRequest) ProtoMessage added in v0.2.0

func (*QueryGetPriceRequest) ProtoMessage()

func (*QueryGetPriceRequest) Reset added in v0.2.0

func (m *QueryGetPriceRequest) Reset()

func (*QueryGetPriceRequest) Size added in v0.2.0

func (m *QueryGetPriceRequest) Size() (n int)

func (*QueryGetPriceRequest) String added in v0.2.0

func (m *QueryGetPriceRequest) String() string

func (*QueryGetPriceRequest) Unmarshal added in v0.2.0

func (m *QueryGetPriceRequest) Unmarshal(dAtA []byte) error

func (*QueryGetPriceRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryGetPriceRequest) XXX_DiscardUnknown()

func (*QueryGetPriceRequest) XXX_Marshal added in v0.2.0

func (m *QueryGetPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPriceRequest) XXX_Merge added in v0.2.0

func (m *QueryGetPriceRequest) XXX_Merge(src proto.Message)

func (*QueryGetPriceRequest) XXX_Size added in v0.2.0

func (m *QueryGetPriceRequest) XXX_Size() int

func (*QueryGetPriceRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryGetPriceRequest) XXX_Unmarshal(b []byte) error

type QueryGetPriceResponse added in v0.2.0

type QueryGetPriceResponse struct {
	Price CurrentPrice `protobuf:"bytes,1,opt,name=price,proto3" json:"price"`
}

func (*QueryGetPriceResponse) Descriptor added in v0.2.0

func (*QueryGetPriceResponse) Descriptor() ([]byte, []int)

func (*QueryGetPriceResponse) GetPrice added in v0.2.0

func (m *QueryGetPriceResponse) GetPrice() CurrentPrice

func (*QueryGetPriceResponse) Marshal added in v0.2.0

func (m *QueryGetPriceResponse) Marshal() (dAtA []byte, err error)

func (*QueryGetPriceResponse) MarshalTo added in v0.2.0

func (m *QueryGetPriceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetPriceResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryGetPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetPriceResponse) ProtoMessage added in v0.2.0

func (*QueryGetPriceResponse) ProtoMessage()

func (*QueryGetPriceResponse) Reset added in v0.2.0

func (m *QueryGetPriceResponse) Reset()

func (*QueryGetPriceResponse) Size added in v0.2.0

func (m *QueryGetPriceResponse) Size() (n int)

func (*QueryGetPriceResponse) String added in v0.2.0

func (m *QueryGetPriceResponse) String() string

func (*QueryGetPriceResponse) Unmarshal added in v0.2.0

func (m *QueryGetPriceResponse) Unmarshal(dAtA []byte) error

func (*QueryGetPriceResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryGetPriceResponse) XXX_DiscardUnknown()

func (*QueryGetPriceResponse) XXX_Marshal added in v0.2.0

func (m *QueryGetPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetPriceResponse) XXX_Merge added in v0.2.0

func (m *QueryGetPriceResponse) XXX_Merge(src proto.Message)

func (*QueryGetPriceResponse) XXX_Size added in v0.2.0

func (m *QueryGetPriceResponse) XXX_Size() int

func (*QueryGetPriceResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryGetPriceResponse) XXX_Unmarshal(b []byte) error

type QueryParamsRequest added in v0.2.0

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor added in v0.2.0

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal added in v0.2.0

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo added in v0.2.0

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.2.0

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage added in v0.2.0

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.2.0

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.2.0

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String added in v0.2.0

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.2.0

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.2.0

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.2.0

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge added in v0.2.0

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size added in v0.2.0

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.2.0

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse added in v0.2.0

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*QueryParamsResponse) Descriptor added in v0.2.0

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams added in v0.2.0

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal added in v0.2.0

func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)

func (*QueryParamsResponse) MarshalTo added in v0.2.0

func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.2.0

func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsResponse) ProtoMessage added in v0.2.0

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.2.0

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.2.0

func (m *QueryParamsResponse) Size() (n int)

func (*QueryParamsResponse) String added in v0.2.0

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.2.0

func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.2.0

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.2.0

func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsResponse) XXX_Merge added in v0.2.0

func (m *QueryParamsResponse) XXX_Merge(src proto.Message)

func (*QueryParamsResponse) XXX_Size added in v0.2.0

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.2.0

func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error

type QueryServer added in v0.2.0

QueryServer is the server API for Query service.

type SortDecs

type SortDecs []sdk.Dec

SortDecs provides the interface needed to sort sdk.Dec slices

func (SortDecs) Len

func (a SortDecs) Len() int

func (SortDecs) Less

func (a SortDecs) Less(i, j int) bool

func (SortDecs) Swap

func (a SortDecs) Swap(i, j int)

type UnimplementedQueryServer added in v0.2.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) MarketAll added in v0.2.0

func (*UnimplementedQueryServer) OracleAll added in v0.2.0

func (*UnimplementedQueryServer) Params added in v0.2.0

func (*UnimplementedQueryServer) Price added in v0.2.0

func (*UnimplementedQueryServer) PriceAll added in v0.2.0

func (*UnimplementedQueryServer) RawPriceAll added in v0.2.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL