types

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"

	EventTypeRequestPacket  = "oracle_request_packet"
	EventTypeResponsePacket = "oracle_response_packet"
	EventTypePriceUpdate    = "price_update"

	AttributeKeyRequestID = "request_id"
	AttributeKeySymbol    = "symbol"
	AttributeKeyPrice     = "price"
	AttributeKeyTimestamp = "timestamp"
)

IBC events

View Source
const (
	// ModuleName defines the module name
	ModuleName = "pricefeed"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_pricefeed"

	// Version defines the current version the IBC module supports
	Version = "bandchain-1"

	// PortID is the default port id that module binds to
	PortID = "pricefeed"

	ROUTER_PRICE_FEEDER = "router_price_feeder"
	BAND_PRICE_FEEDER   = "band_feeder"
)
View Source
const (
	DefaultAskCount       = uint64(16)
	DefaultMinCount       = uint64(10)
	DefaultMinDsCount     = uint64(3)
	DefaultPrepareGasBase = uint64(3000)
	DefaultPrepareGasEach = uint64(600)
	DefaultExecuteGasBase = uint64(70000)
	DefaultExecuteGasEach = uint64(7500)
	DefaultSourceChannel  = "channel-0"
)
View Source
const (
	// UpdatePriceFeederInfo defines the type for a CreateWhitelistedIBCChannelProposal
	CreateWhitelistedIBCChannel = "CreateWhitelistedIBCChannel"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	// GasPriceKeyPrefix is the prefix to retrieve all GasPrice
	GasPriceKeyPrefix = "GasPrice/value/"
)
View Source
const NotSet = "[not_set]"
View Source
const (
	// PriceFeederInfoKeyPrefix is the prefix to retrieve all PriceFeederInfo
	PriceFeederInfoKeyPrefix = "PriceFeederInfo/value/"
)
View Source
const (
	// PriceKeyPrefix is the prefix to retrieve all Price
	PriceKeyPrefix = "Price/value/"
)
View Source
const (
	// SymbolRequestKeyPrefix is the prefix to retrieve all SymbolRequest
	SymbolRequestKeyPrefix = "SymbolRequest/value/"
)
View Source
const TypeMsgGasPrices = "gas_prices"
View Source
const TypeMsgTokenPrices = "token_prices"
View Source
const (
	// UpdatePriceFeederInfo defines the type for a UpdatePriceFeederInfoProposal
	UpdatePriceFeederInfo = "UpdatePriceFeederInfo"
)
View Source
const (
	// UpdateSymbolRequest defines the type for a UpdateSymbolRequestProposal
	UpdateSymbolRequest = "UpdateSymbolRequest"
)

Variables

View Source
var (
	ErrSample               = errorsmod.Register(ModuleName, 1100, "sample error")
	ErrInvalidPacketTimeout = errorsmod.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion       = errorsmod.Register(ModuleName, 1501, "invalid version")

	ErrSymbolRequestNotFound   = errorsmod.Register(ModuleName, 2, "symbol request not found")
	ErrPriceNotFound           = errorsmod.Register(ModuleName, 3, "price not found")
	ErrResolveStatusNotSuccess = errorsmod.Register(ModuleName, 4, "request is not resolved successfully")
	ErrEmptySymbolRequests     = errorsmod.Register(ModuleName, 5, "submitted symbol requests are empty")
	ErrEmptySymbol             = errorsmod.Register(ModuleName, 6, "symbol is empty")
	ErrInvalidOracleScriptID   = errorsmod.Register(ModuleName, 7, "invalid oracle script id")

	ErrInvalidPricefeederName    = errorsmod.Register(ModuleName, 8, "pricefeeder name is nil")
	ErrInvalidPricefeederAddress = errorsmod.Register(ModuleName, 9, "invalid pricefeeder address")
)

x/pricefeed module sentinel errors

View Source
var (
	ErrInvalidLengthGasPrice        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGasPrice          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGasPrice = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyAskCount       = []byte("AskCount")
	KeyMinCount       = []byte("MinCount")
	KeyMinDsCount     = []byte("MinDsCount")
	KeyPrepareGasBase = []byte("PrepareGasBase")
	KeyPrepareGasEach = []byte("PrepareGasEach")
	KeyExecuteGasBase = []byte("ExecuteGasBase")
	KeyExecuteGasEach = []byte("ExecuteGasEach")
	KeySourceChannel  = []byte("SourceChannel")
	KeyFeeLimit       = []byte("FeeLimit")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPrice        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPrice          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPrice = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPriceFeederInfo        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPriceFeederInfo          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPriceFeederInfo = 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 (
	ErrInvalidLengthSymbolRequest        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSymbolRequest          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSymbolRequest = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUpdatePriceFeederRequestProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUpdatePriceFeederRequestProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUpdatePriceFeederRequestProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUpdateSymbolRequestProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUpdateSymbolRequestProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUpdateSymbolRequestProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthWhitelistIbcChannels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowWhitelistIbcChannels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupWhitelistIbcChannels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DefaultFeeLimit = sdk.NewCoins(sdk.NewInt64Coin("uband", 1000000))
View Source
var PortKey = KeyPrefix("pricefeed-port-")

PortKey defines the key to store the port ID in store

Functions

func CalculateGas

func CalculateGas(base, each, n uint64) uint64

func GasPriceKey

func GasPriceKey(
	priceFeederName string,
	chainId string,
) []byte

GasPriceKey returns the store key to retrieve a GasPrice from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func PriceFeederInfoKey

func PriceFeederInfoKey(
	name string,
) []byte

PriceFeederInfoKey returns the store key to retrieve a PriceFeederInfo from the index fields

func PriceKey

func PriceKey(
	priceFeederName string,
	symbol string,
) []byte

PriceKey returns the store key to retrieve a Price from the index fields

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v1.3.16

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SymbolRequestKey

func SymbolRequestKey(
	symbol string,
) []byte

SymbolRequestKey returns the store key to retrieve a SymbolRequest from the index fields

func ValidatePriceFeederInfo

func ValidatePriceFeederInfo(priceFeederInfo PriceFeederInfo) error

ValidatePriceFeederInfo performs basic validation checks over a PriceFeederInfo. It returns an error if PriceFeederInfo is invalid.

func ValidateSymbolRequests

func ValidateSymbolRequests(symbols []SymbolRequest) error

ValidateSymbolRequests performs basic validation checks over a set of SymbolRequest. It returns an error if any SymbolRequest is invalid.

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(
		ctx sdk.Context,
		channelCap *capabilitytypes.Capability,
		sourcePort string,
		sourceChannel string,
		timeoutHeight clienttypes.Height,
		timeoutTimestamp uint64,
		data []byte,
	) (uint64, error)
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper.

type Channels added in v1.3.3

type Channels struct {
	Channel []string `protobuf:"bytes,1,rep,name=channel,proto3" json:"channel,omitempty"`
}

func (*Channels) Descriptor added in v1.3.3

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

func (*Channels) GetChannel added in v1.3.3

func (m *Channels) GetChannel() []string

func (*Channels) Marshal added in v1.3.3

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

func (*Channels) MarshalTo added in v1.3.3

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

func (*Channels) MarshalToSizedBuffer added in v1.3.3

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

func (*Channels) ProtoMessage added in v1.3.3

func (*Channels) ProtoMessage()

func (*Channels) Reset added in v1.3.3

func (m *Channels) Reset()

func (*Channels) Size added in v1.3.3

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

func (*Channels) String added in v1.3.3

func (m *Channels) String() string

func (*Channels) Unmarshal added in v1.3.3

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

func (*Channels) XXX_DiscardUnknown added in v1.3.3

func (m *Channels) XXX_DiscardUnknown()

func (*Channels) XXX_Marshal added in v1.3.3

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

func (*Channels) XXX_Merge added in v1.3.3

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

func (*Channels) XXX_Size added in v1.3.3

func (m *Channels) XXX_Size() int

func (*Channels) XXX_Unmarshal added in v1.3.3

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

type CreateWhitelistedIBCChannelProposal added in v1.3.3

type CreateWhitelistedIBCChannelProposal struct {
	Title       string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Channels    Channels `protobuf:"bytes,3,opt,name=channels,proto3" json:"channels"`
}

func NewCreateWhitelistedIBCChannelProposal added in v1.3.3

func NewCreateWhitelistedIBCChannelProposal(
	title, description string, channels Channels,
) *CreateWhitelistedIBCChannelProposal

func (*CreateWhitelistedIBCChannelProposal) Descriptor added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) GetDescription added in v1.3.3

func (p *CreateWhitelistedIBCChannelProposal) GetDescription() string

GetDescription returns the description of a update price feeder info proposal.

func (*CreateWhitelistedIBCChannelProposal) GetTitle added in v1.3.3

GetTitle returns the title of a update price feeder info proposal.

func (*CreateWhitelistedIBCChannelProposal) Marshal added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) MarshalTo added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) MarshalToSizedBuffer added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) ProposalRoute added in v1.3.3

ProposalRoute returns the routing key of a update price feeder info proposal.

func (*CreateWhitelistedIBCChannelProposal) ProposalType added in v1.3.3

ProposalType returns the type of a update price feeder info proposal.

func (*CreateWhitelistedIBCChannelProposal) ProtoMessage added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) ProtoMessage()

func (*CreateWhitelistedIBCChannelProposal) Reset added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) Size added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) String added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) Unmarshal added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) ValidateBasic added in v1.3.3

func (p *CreateWhitelistedIBCChannelProposal) ValidateBasic() error

ValidateBasic validates the update price feeder info proposal.

func (*CreateWhitelistedIBCChannelProposal) XXX_DiscardUnknown added in v1.3.3

func (m *CreateWhitelistedIBCChannelProposal) XXX_DiscardUnknown()

func (*CreateWhitelistedIBCChannelProposal) XXX_Marshal added in v1.3.3

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

func (*CreateWhitelistedIBCChannelProposal) XXX_Merge added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) XXX_Size added in v1.3.3

func (*CreateWhitelistedIBCChannelProposal) XXX_Unmarshal added in v1.3.3

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

type GasPrice

type GasPrice struct {
	PriceFeeder string `protobuf:"bytes,1,opt,name=price_feeder,json=priceFeeder,proto3" json:"price_feeder,omitempty"`
	ChainId     string `protobuf:"bytes,2,opt,name=chainId,proto3" json:"chainId,omitempty"`
	GasPrice    uint64 `protobuf:"varint,3,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	Decimals    uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	ResolveTime uint64 `protobuf:"varint,5,opt,name=resolveTime,proto3" json:"resolveTime,omitempty"`
}

func (*GasPrice) Descriptor

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

func (*GasPrice) GetChainId

func (m *GasPrice) GetChainId() string

func (*GasPrice) GetDecimals

func (m *GasPrice) GetDecimals() uint64

func (*GasPrice) GetGasPrice

func (m *GasPrice) GetGasPrice() uint64

func (*GasPrice) GetPriceFeeder

func (m *GasPrice) GetPriceFeeder() string

func (*GasPrice) GetResolveTime added in v1.3.27

func (m *GasPrice) GetResolveTime() uint64

func (*GasPrice) Marshal

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

func (*GasPrice) MarshalTo

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

func (*GasPrice) MarshalToSizedBuffer

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

func (*GasPrice) ProtoMessage

func (*GasPrice) ProtoMessage()

func (*GasPrice) Reset

func (m *GasPrice) Reset()

func (*GasPrice) Size

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

func (*GasPrice) String

func (m *GasPrice) String() string

func (*GasPrice) Unmarshal

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

func (*GasPrice) XXX_DiscardUnknown

func (m *GasPrice) XXX_DiscardUnknown()

func (*GasPrice) XXX_Marshal

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

func (*GasPrice) XXX_Merge

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

func (*GasPrice) XXX_Size

func (m *GasPrice) XXX_Size() int

func (*GasPrice) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params              Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId              string            `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	PriceList           []Price           `protobuf:"bytes,3,rep,name=priceList,proto3" json:"priceList"`
	SymbolRequestList   []SymbolRequest   `protobuf:"bytes,4,rep,name=symbolRequestList,proto3" json:"symbolRequestList"`
	PriceFeederInfoList []PriceFeederInfo `protobuf:"bytes,5,rep,name=priceFeederInfoList,proto3" json:"priceFeederInfoList"`
	GasPriceList        []GasPrice        `protobuf:"bytes,6,rep,name=gasPriceList,proto3" json:"gasPriceList"`
}

GenesisState defines the pricefeed module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetGasPriceList

func (m *GenesisState) GetGasPriceList() []GasPrice

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

func (*GenesisState) GetPriceFeederInfoList

func (m *GenesisState) GetPriceFeederInfoList() []PriceFeederInfo

func (*GenesisState) GetPriceList

func (m *GenesisState) GetPriceList() []Price

func (*GenesisState) GetSymbolRequestList

func (m *GenesisState) GetSymbolRequestList() []SymbolRequest

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 MsgClient

type MsgClient interface {
	TokenPrices(ctx context.Context, in *MsgTokenPrices, opts ...grpc.CallOption) (*MsgTokenPricesResponse, error)
	GasPrices(ctx context.Context, in *MsgGasPrices, opts ...grpc.CallOption) (*MsgGasPricesResponse, 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 MsgGasPrices

type MsgGasPrices struct {
	PriceFeederAddress string     `protobuf:"bytes,1,opt,name=price_feeder_address,json=priceFeederAddress,proto3" json:"price_feeder_address,omitempty"`
	PriceFeederName    string     `protobuf:"bytes,2,opt,name=price_feeder_name,json=priceFeederName,proto3" json:"price_feeder_name,omitempty"`
	GasPrices          []GasPrice `protobuf:"bytes,3,rep,name=gas_prices,json=gasPrices,proto3" json:"gas_prices"`
}

func NewMsgGasPrices

func NewMsgGasPrices(priceFeederAddress string, priceFeederName string, gasPrices []GasPrice) *MsgGasPrices

func (*MsgGasPrices) Descriptor

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

func (*MsgGasPrices) GetGasPrices

func (m *MsgGasPrices) GetGasPrices() []GasPrice

func (*MsgGasPrices) GetPriceFeederAddress

func (m *MsgGasPrices) GetPriceFeederAddress() string

func (*MsgGasPrices) GetPriceFeederName

func (m *MsgGasPrices) GetPriceFeederName() string

func (*MsgGasPrices) GetSignBytes

func (msg *MsgGasPrices) GetSignBytes() []byte

func (*MsgGasPrices) GetSigners

func (msg *MsgGasPrices) GetSigners() []sdk.AccAddress

func (*MsgGasPrices) Marshal

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

func (*MsgGasPrices) MarshalTo

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

func (*MsgGasPrices) MarshalToSizedBuffer

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

func (*MsgGasPrices) ProtoMessage

func (*MsgGasPrices) ProtoMessage()

func (*MsgGasPrices) Reset

func (m *MsgGasPrices) Reset()

func (*MsgGasPrices) Route

func (msg *MsgGasPrices) Route() string

func (*MsgGasPrices) Size

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

func (*MsgGasPrices) String

func (m *MsgGasPrices) String() string

func (*MsgGasPrices) Type

func (msg *MsgGasPrices) Type() string

func (*MsgGasPrices) Unmarshal

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

func (*MsgGasPrices) ValidateBasic

func (msg *MsgGasPrices) ValidateBasic() error

func (*MsgGasPrices) XXX_DiscardUnknown

func (m *MsgGasPrices) XXX_DiscardUnknown()

func (*MsgGasPrices) XXX_Marshal

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

func (*MsgGasPrices) XXX_Merge

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

func (*MsgGasPrices) XXX_Size

func (m *MsgGasPrices) XXX_Size() int

func (*MsgGasPrices) XXX_Unmarshal

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

type MsgGasPricesResponse

type MsgGasPricesResponse struct {
}

func (*MsgGasPricesResponse) Descriptor

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

func (*MsgGasPricesResponse) Marshal

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

func (*MsgGasPricesResponse) MarshalTo

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

func (*MsgGasPricesResponse) MarshalToSizedBuffer

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

func (*MsgGasPricesResponse) ProtoMessage

func (*MsgGasPricesResponse) ProtoMessage()

func (*MsgGasPricesResponse) Reset

func (m *MsgGasPricesResponse) Reset()

func (*MsgGasPricesResponse) Size

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

func (*MsgGasPricesResponse) String

func (m *MsgGasPricesResponse) String() string

func (*MsgGasPricesResponse) Unmarshal

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

func (*MsgGasPricesResponse) XXX_DiscardUnknown

func (m *MsgGasPricesResponse) XXX_DiscardUnknown()

func (*MsgGasPricesResponse) XXX_Marshal

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

func (*MsgGasPricesResponse) XXX_Merge

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

func (*MsgGasPricesResponse) XXX_Size

func (m *MsgGasPricesResponse) XXX_Size() int

func (*MsgGasPricesResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	TokenPrices(context.Context, *MsgTokenPrices) (*MsgTokenPricesResponse, error)
	GasPrices(context.Context, *MsgGasPrices) (*MsgGasPricesResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTokenPrices

type MsgTokenPrices struct {
	PriceFeederAddress string  `protobuf:"bytes,1,opt,name=price_feeder_address,json=priceFeederAddress,proto3" json:"price_feeder_address,omitempty"`
	PriceFeederName    string  `protobuf:"bytes,2,opt,name=price_feeder_name,json=priceFeederName,proto3" json:"price_feeder_name,omitempty"`
	TokenPrices        []Price `protobuf:"bytes,3,rep,name=token_prices,json=tokenPrices,proto3" json:"token_prices"`
}

func NewMsgTokenPrices

func NewMsgTokenPrices(priceFeederAddress string, priceFeederName string, tokenPrices []Price) *MsgTokenPrices

func (*MsgTokenPrices) Descriptor

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

func (*MsgTokenPrices) GetPriceFeederAddress

func (m *MsgTokenPrices) GetPriceFeederAddress() string

func (*MsgTokenPrices) GetPriceFeederName

func (m *MsgTokenPrices) GetPriceFeederName() string

func (*MsgTokenPrices) GetSignBytes

func (msg *MsgTokenPrices) GetSignBytes() []byte

func (*MsgTokenPrices) GetSigners

func (msg *MsgTokenPrices) GetSigners() []sdk.AccAddress

func (*MsgTokenPrices) GetTokenPrices

func (m *MsgTokenPrices) GetTokenPrices() []Price

func (*MsgTokenPrices) Marshal

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

func (*MsgTokenPrices) MarshalTo

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

func (*MsgTokenPrices) MarshalToSizedBuffer

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

func (*MsgTokenPrices) ProtoMessage

func (*MsgTokenPrices) ProtoMessage()

func (*MsgTokenPrices) Reset

func (m *MsgTokenPrices) Reset()

func (*MsgTokenPrices) Route

func (msg *MsgTokenPrices) Route() string

func (*MsgTokenPrices) Size

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

func (*MsgTokenPrices) String

func (m *MsgTokenPrices) String() string

func (*MsgTokenPrices) Type

func (msg *MsgTokenPrices) Type() string

func (*MsgTokenPrices) Unmarshal

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

func (*MsgTokenPrices) ValidateBasic

func (msg *MsgTokenPrices) ValidateBasic() error

func (*MsgTokenPrices) XXX_DiscardUnknown

func (m *MsgTokenPrices) XXX_DiscardUnknown()

func (*MsgTokenPrices) XXX_Marshal

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

func (*MsgTokenPrices) XXX_Merge

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

func (*MsgTokenPrices) XXX_Size

func (m *MsgTokenPrices) XXX_Size() int

func (*MsgTokenPrices) XXX_Unmarshal

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

type MsgTokenPricesResponse

type MsgTokenPricesResponse struct {
}

func (*MsgTokenPricesResponse) Descriptor

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

func (*MsgTokenPricesResponse) Marshal

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

func (*MsgTokenPricesResponse) MarshalTo

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

func (*MsgTokenPricesResponse) MarshalToSizedBuffer

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

func (*MsgTokenPricesResponse) ProtoMessage

func (*MsgTokenPricesResponse) ProtoMessage()

func (*MsgTokenPricesResponse) Reset

func (m *MsgTokenPricesResponse) Reset()

func (*MsgTokenPricesResponse) Size

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

func (*MsgTokenPricesResponse) String

func (m *MsgTokenPricesResponse) String() string

func (*MsgTokenPricesResponse) Unmarshal

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

func (*MsgTokenPricesResponse) XXX_DiscardUnknown

func (m *MsgTokenPricesResponse) XXX_DiscardUnknown()

func (*MsgTokenPricesResponse) XXX_Marshal

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

func (*MsgTokenPricesResponse) XXX_Merge

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

func (*MsgTokenPricesResponse) XXX_Size

func (m *MsgTokenPricesResponse) XXX_Size() int

func (*MsgTokenPricesResponse) XXX_Unmarshal

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

type MultichainKeeper added in v1.2.53

type MultichainKeeper interface {
	GetChainConfig(ctx sdk.Context, chainId string) (val multichainTypes.ChainConfig, found bool)
}

type NoData

type NoData struct {
}

func (*NoData) Descriptor

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

func (*NoData) Marshal

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

func (*NoData) MarshalTo

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

func (*NoData) MarshalToSizedBuffer

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

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

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

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

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

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

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

func (*NoData) XXX_Merge

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

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

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

type OracleTask

type OracleTask struct {
	OracleScriptID uint64
	Symbols        []string
}

func ComputeOracleTasks

func ComputeOracleTasks(symbols []SymbolRequest, blockHeight int64) []OracleTask

type Params

type Params struct {
	// AskCount is the number of validators that are requested to respond to this
	// oracle request. Higher value means more security, at a higher gas cost.
	AskCount uint64 `protobuf:"varint,1,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is the minimum number of validators necessary for the request to
	// proceed to the execution phase. Higher value means more security, at the
	// cost of liveness.
	MinCount uint64 `protobuf:"varint,2,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// MinDsCount is the minimum number of responses required from data sources
	// (oracles) to consider the request as successful.
	MinDsCount uint64 `protobuf:"varint,3,opt,name=min_ds_count,json=minDsCount,proto3" json:"min_ds_count,omitempty"`
	// PrepareGasBase is the amount of base gas needed to prepare an oracle
	// request.
	PrepareGasBase uint64 `protobuf:"varint,4,opt,name=prepare_gas_base,json=prepareGasBase,proto3" json:"prepare_gas_base,omitempty"`
	// PrepareGasEach is the amount of additional gas needed per symbol in an
	// oracle request.
	PrepareGasEach uint64 `protobuf:"varint,5,opt,name=prepare_gas_each,json=prepareGasEach,proto3" json:"prepare_gas_each,omitempty"`
	// ExecuteGasBase is the amount of base gas needed to execute an oracle
	// request.
	ExecuteGasBase uint64 `protobuf:"varint,6,opt,name=execute_gas_base,json=executeGasBase,proto3" json:"execute_gas_base,omitempty"`
	// ExecuteGasEach is the amount of additional gas needed per symbol in
	// executing an oracle request.
	ExecuteGasEach uint64 `protobuf:"varint,7,opt,name=execute_gas_each,json=executeGasEach,proto3" json:"execute_gas_each,omitempty"`
	// SourceChannel is the source channel to use when sending the oracle request
	// to BandChain via IBC
	SourceChannel string `protobuf:"bytes,8,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty"`
	// FeeLimit is the maximum tokens that will be paid to all data source
	// providers.
	FeeLimit github_com_cosmos_cosmos_sdk_types.Coins `` /* 129-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	askCount, minCount, minDsCount, prepareGasBase, prepareGasEach, executeGasBase, executeGasEach uint64,
	sourceChannel string,
	feeLimit sdk.Coins,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetAskCount

func (m *Params) GetAskCount() uint64

func (*Params) GetExecuteGasBase

func (m *Params) GetExecuteGasBase() uint64

func (*Params) GetExecuteGasEach

func (m *Params) GetExecuteGasEach() uint64

func (*Params) GetFeeLimit

func (*Params) GetMinCount

func (m *Params) GetMinCount() uint64

func (*Params) GetMinDsCount

func (m *Params) GetMinDsCount() uint64

func (*Params) GetPrepareGasBase

func (m *Params) GetPrepareGasBase() uint64

func (*Params) GetPrepareGasEach

func (m *Params) GetPrepareGasEach() uint64

func (*Params) GetSourceChannel

func (m *Params) GetSourceChannel() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}

PortKeeper defines the expected IBC port keeper.

type Price

type Price struct {
	PriceFeeder string                                 `protobuf:"bytes,1,opt,name=price_feeder,json=priceFeeder,proto3" json:"price_feeder,omitempty"`
	Symbol      string                                 `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Price       github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"price"`
	ResolveTime int64                                  `protobuf:"varint,4,opt,name=resolveTime,proto3" json:"resolveTime,omitempty"`
	Decimals    uint64                                 `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
}

func (*Price) Descriptor

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

func (*Price) GetDecimals added in v1.2.73

func (m *Price) GetDecimals() uint64

func (*Price) GetPriceFeeder

func (m *Price) GetPriceFeeder() string

func (*Price) GetResolveTime

func (m *Price) GetResolveTime() int64

func (*Price) GetSymbol

func (m *Price) GetSymbol() string

func (*Price) Marshal

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

func (*Price) MarshalTo

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

func (*Price) MarshalToSizedBuffer

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

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) Reset

func (m *Price) Reset()

func (*Price) Size

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

func (*Price) String

func (m *Price) String() string

func (*Price) Unmarshal

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

func (*Price) XXX_DiscardUnknown

func (m *Price) XXX_DiscardUnknown()

func (*Price) XXX_Marshal

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

func (*Price) XXX_Merge

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

func (*Price) XXX_Size

func (m *Price) XXX_Size() int

func (*Price) XXX_Unmarshal

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

type PriceFeederInfo

type PriceFeederInfo struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Active  bool   `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"`
}

func (*PriceFeederInfo) Descriptor

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

func (*PriceFeederInfo) GetActive

func (m *PriceFeederInfo) GetActive() bool

func (*PriceFeederInfo) GetAddress

func (m *PriceFeederInfo) GetAddress() string

func (*PriceFeederInfo) GetName

func (m *PriceFeederInfo) GetName() string

func (*PriceFeederInfo) Marshal

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

func (*PriceFeederInfo) MarshalTo

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

func (*PriceFeederInfo) MarshalToSizedBuffer

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

func (*PriceFeederInfo) ProtoMessage

func (*PriceFeederInfo) ProtoMessage()

func (*PriceFeederInfo) Reset

func (m *PriceFeederInfo) Reset()

func (*PriceFeederInfo) Size

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

func (*PriceFeederInfo) String

func (m *PriceFeederInfo) String() string

func (*PriceFeederInfo) Unmarshal

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

func (*PriceFeederInfo) XXX_DiscardUnknown

func (m *PriceFeederInfo) XXX_DiscardUnknown()

func (*PriceFeederInfo) XXX_Marshal

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

func (*PriceFeederInfo) XXX_Merge

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

func (*PriceFeederInfo) XXX_Size

func (m *PriceFeederInfo) XXX_Size() int

func (*PriceFeederInfo) XXX_Unmarshal

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

type PricefeedPacketData

type PricefeedPacketData struct {
	// Types that are valid to be assigned to Packet:
	//
	//	*PricefeedPacketData_NoData
	Packet isPricefeedPacketData_Packet `protobuf_oneof:"packet"`
}

func (*PricefeedPacketData) Descriptor

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

func (*PricefeedPacketData) GetNoData

func (m *PricefeedPacketData) GetNoData() *NoData

func (*PricefeedPacketData) GetPacket

func (m *PricefeedPacketData) GetPacket() isPricefeedPacketData_Packet

func (*PricefeedPacketData) Marshal

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

func (*PricefeedPacketData) MarshalTo

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

func (*PricefeedPacketData) MarshalToSizedBuffer

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

func (*PricefeedPacketData) ProtoMessage

func (*PricefeedPacketData) ProtoMessage()

func (*PricefeedPacketData) Reset

func (m *PricefeedPacketData) Reset()

func (*PricefeedPacketData) Size

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

func (*PricefeedPacketData) String

func (m *PricefeedPacketData) String() string

func (*PricefeedPacketData) Unmarshal

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

func (*PricefeedPacketData) XXX_DiscardUnknown

func (m *PricefeedPacketData) XXX_DiscardUnknown()

func (*PricefeedPacketData) XXX_Marshal

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

func (*PricefeedPacketData) XXX_Merge

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

func (*PricefeedPacketData) XXX_OneofWrappers

func (*PricefeedPacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*PricefeedPacketData) XXX_Size

func (m *PricefeedPacketData) XXX_Size() int

func (*PricefeedPacketData) XXX_Unmarshal

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

type PricefeedPacketData_NoData

type PricefeedPacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"`
}

func (*PricefeedPacketData_NoData) MarshalTo

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

func (*PricefeedPacketData_NoData) MarshalToSizedBuffer

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

func (*PricefeedPacketData_NoData) Size

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

type QueryAllGasPriceRequest

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

func (*QueryAllGasPriceRequest) Descriptor

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

func (*QueryAllGasPriceRequest) GetPagination

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

func (*QueryAllGasPriceRequest) Marshal

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

func (*QueryAllGasPriceRequest) MarshalTo

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

func (*QueryAllGasPriceRequest) MarshalToSizedBuffer

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

func (*QueryAllGasPriceRequest) ProtoMessage

func (*QueryAllGasPriceRequest) ProtoMessage()

func (*QueryAllGasPriceRequest) Reset

func (m *QueryAllGasPriceRequest) Reset()

func (*QueryAllGasPriceRequest) Size

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

func (*QueryAllGasPriceRequest) String

func (m *QueryAllGasPriceRequest) String() string

func (*QueryAllGasPriceRequest) Unmarshal

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

func (*QueryAllGasPriceRequest) XXX_DiscardUnknown

func (m *QueryAllGasPriceRequest) XXX_DiscardUnknown()

func (*QueryAllGasPriceRequest) XXX_Marshal

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

func (*QueryAllGasPriceRequest) XXX_Merge

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

func (*QueryAllGasPriceRequest) XXX_Size

func (m *QueryAllGasPriceRequest) XXX_Size() int

func (*QueryAllGasPriceRequest) XXX_Unmarshal

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

type QueryAllGasPriceResponse

type QueryAllGasPriceResponse struct {
	GasPrice   []GasPrice          `protobuf:"bytes,1,rep,name=gasPrice,proto3" json:"gasPrice"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllGasPriceResponse) Descriptor

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

func (*QueryAllGasPriceResponse) GetGasPrice

func (m *QueryAllGasPriceResponse) GetGasPrice() []GasPrice

func (*QueryAllGasPriceResponse) GetPagination

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

func (*QueryAllGasPriceResponse) Marshal

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

func (*QueryAllGasPriceResponse) MarshalTo

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

func (*QueryAllGasPriceResponse) MarshalToSizedBuffer

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

func (*QueryAllGasPriceResponse) ProtoMessage

func (*QueryAllGasPriceResponse) ProtoMessage()

func (*QueryAllGasPriceResponse) Reset

func (m *QueryAllGasPriceResponse) Reset()

func (*QueryAllGasPriceResponse) Size

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

func (*QueryAllGasPriceResponse) String

func (m *QueryAllGasPriceResponse) String() string

func (*QueryAllGasPriceResponse) Unmarshal

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

func (*QueryAllGasPriceResponse) XXX_DiscardUnknown

func (m *QueryAllGasPriceResponse) XXX_DiscardUnknown()

func (*QueryAllGasPriceResponse) XXX_Marshal

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

func (*QueryAllGasPriceResponse) XXX_Merge

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

func (*QueryAllGasPriceResponse) XXX_Size

func (m *QueryAllGasPriceResponse) XXX_Size() int

func (*QueryAllGasPriceResponse) XXX_Unmarshal

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

type QueryAllPriceFeederInfoRequest

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

func (*QueryAllPriceFeederInfoRequest) Descriptor

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

func (*QueryAllPriceFeederInfoRequest) GetPagination

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

func (*QueryAllPriceFeederInfoRequest) Marshal

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

func (*QueryAllPriceFeederInfoRequest) MarshalTo

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

func (*QueryAllPriceFeederInfoRequest) MarshalToSizedBuffer

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

func (*QueryAllPriceFeederInfoRequest) ProtoMessage

func (*QueryAllPriceFeederInfoRequest) ProtoMessage()

func (*QueryAllPriceFeederInfoRequest) Reset

func (m *QueryAllPriceFeederInfoRequest) Reset()

func (*QueryAllPriceFeederInfoRequest) Size

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

func (*QueryAllPriceFeederInfoRequest) String

func (*QueryAllPriceFeederInfoRequest) Unmarshal

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

func (*QueryAllPriceFeederInfoRequest) XXX_DiscardUnknown

func (m *QueryAllPriceFeederInfoRequest) XXX_DiscardUnknown()

func (*QueryAllPriceFeederInfoRequest) XXX_Marshal

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

func (*QueryAllPriceFeederInfoRequest) XXX_Merge

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

func (*QueryAllPriceFeederInfoRequest) XXX_Size

func (m *QueryAllPriceFeederInfoRequest) XXX_Size() int

func (*QueryAllPriceFeederInfoRequest) XXX_Unmarshal

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

type QueryAllPriceFeederInfoResponse

type QueryAllPriceFeederInfoResponse struct {
	PriceFeederInfo []PriceFeederInfo   `protobuf:"bytes,1,rep,name=priceFeederInfo,proto3" json:"priceFeederInfo"`
	Pagination      *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPriceFeederInfoResponse) Descriptor

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

func (*QueryAllPriceFeederInfoResponse) GetPagination

func (*QueryAllPriceFeederInfoResponse) GetPriceFeederInfo

func (m *QueryAllPriceFeederInfoResponse) GetPriceFeederInfo() []PriceFeederInfo

func (*QueryAllPriceFeederInfoResponse) Marshal

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

func (*QueryAllPriceFeederInfoResponse) MarshalTo

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

func (*QueryAllPriceFeederInfoResponse) MarshalToSizedBuffer

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

func (*QueryAllPriceFeederInfoResponse) ProtoMessage

func (*QueryAllPriceFeederInfoResponse) ProtoMessage()

func (*QueryAllPriceFeederInfoResponse) Reset

func (*QueryAllPriceFeederInfoResponse) Size

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

func (*QueryAllPriceFeederInfoResponse) String

func (*QueryAllPriceFeederInfoResponse) Unmarshal

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

func (*QueryAllPriceFeederInfoResponse) XXX_DiscardUnknown

func (m *QueryAllPriceFeederInfoResponse) XXX_DiscardUnknown()

func (*QueryAllPriceFeederInfoResponse) XXX_Marshal

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

func (*QueryAllPriceFeederInfoResponse) XXX_Merge

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

func (*QueryAllPriceFeederInfoResponse) XXX_Size

func (m *QueryAllPriceFeederInfoResponse) XXX_Size() int

func (*QueryAllPriceFeederInfoResponse) XXX_Unmarshal

func (m *QueryAllPriceFeederInfoResponse) 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 {
	Price      []Price             `protobuf:"bytes,1,rep,name=price,proto3" json:"price"`
	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) GetPrice

func (m *QueryAllPriceResponse) GetPrice() []Price

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 QueryAllSymbolRequestRequest

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

func (*QueryAllSymbolRequestRequest) Descriptor

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

func (*QueryAllSymbolRequestRequest) GetPagination

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

func (*QueryAllSymbolRequestRequest) Marshal

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

func (*QueryAllSymbolRequestRequest) MarshalTo

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

func (*QueryAllSymbolRequestRequest) MarshalToSizedBuffer

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

func (*QueryAllSymbolRequestRequest) ProtoMessage

func (*QueryAllSymbolRequestRequest) ProtoMessage()

func (*QueryAllSymbolRequestRequest) Reset

func (m *QueryAllSymbolRequestRequest) Reset()

func (*QueryAllSymbolRequestRequest) Size

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

func (*QueryAllSymbolRequestRequest) String

func (*QueryAllSymbolRequestRequest) Unmarshal

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

func (*QueryAllSymbolRequestRequest) XXX_DiscardUnknown

func (m *QueryAllSymbolRequestRequest) XXX_DiscardUnknown()

func (*QueryAllSymbolRequestRequest) XXX_Marshal

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

func (*QueryAllSymbolRequestRequest) XXX_Merge

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

func (*QueryAllSymbolRequestRequest) XXX_Size

func (m *QueryAllSymbolRequestRequest) XXX_Size() int

func (*QueryAllSymbolRequestRequest) XXX_Unmarshal

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

type QueryAllSymbolRequestResponse

type QueryAllSymbolRequestResponse struct {
	SymbolRequest []SymbolRequest     `protobuf:"bytes,1,rep,name=symbolRequest,proto3" json:"symbolRequest"`
	Pagination    *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllSymbolRequestResponse) Descriptor

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

func (*QueryAllSymbolRequestResponse) GetPagination

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

func (*QueryAllSymbolRequestResponse) GetSymbolRequest

func (m *QueryAllSymbolRequestResponse) GetSymbolRequest() []SymbolRequest

func (*QueryAllSymbolRequestResponse) Marshal

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

func (*QueryAllSymbolRequestResponse) MarshalTo

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

func (*QueryAllSymbolRequestResponse) MarshalToSizedBuffer

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

func (*QueryAllSymbolRequestResponse) ProtoMessage

func (*QueryAllSymbolRequestResponse) ProtoMessage()

func (*QueryAllSymbolRequestResponse) Reset

func (m *QueryAllSymbolRequestResponse) Reset()

func (*QueryAllSymbolRequestResponse) Size

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

func (*QueryAllSymbolRequestResponse) String

func (*QueryAllSymbolRequestResponse) Unmarshal

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

func (*QueryAllSymbolRequestResponse) XXX_DiscardUnknown

func (m *QueryAllSymbolRequestResponse) XXX_DiscardUnknown()

func (*QueryAllSymbolRequestResponse) XXX_Marshal

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

func (*QueryAllSymbolRequestResponse) XXX_Merge

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

func (*QueryAllSymbolRequestResponse) XXX_Size

func (m *QueryAllSymbolRequestResponse) XXX_Size() int

func (*QueryAllSymbolRequestResponse) XXX_Unmarshal

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

type QueryChainNativePriceInfoRequest added in v1.3.16

type QueryChainNativePriceInfoRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chainId,proto3" json:"chainId,omitempty"`
}

func (*QueryChainNativePriceInfoRequest) Descriptor added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) GetChainId added in v1.3.16

func (m *QueryChainNativePriceInfoRequest) GetChainId() string

func (*QueryChainNativePriceInfoRequest) Marshal added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) MarshalTo added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) MarshalToSizedBuffer added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) ProtoMessage added in v1.3.16

func (*QueryChainNativePriceInfoRequest) ProtoMessage()

func (*QueryChainNativePriceInfoRequest) Reset added in v1.3.16

func (*QueryChainNativePriceInfoRequest) Size added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) String added in v1.3.16

func (*QueryChainNativePriceInfoRequest) Unmarshal added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) XXX_DiscardUnknown added in v1.3.16

func (m *QueryChainNativePriceInfoRequest) XXX_DiscardUnknown()

func (*QueryChainNativePriceInfoRequest) XXX_Marshal added in v1.3.16

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

func (*QueryChainNativePriceInfoRequest) XXX_Merge added in v1.3.16

func (*QueryChainNativePriceInfoRequest) XXX_Size added in v1.3.16

func (m *QueryChainNativePriceInfoRequest) XXX_Size() int

func (*QueryChainNativePriceInfoRequest) XXX_Unmarshal added in v1.3.16

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

type QueryChainNativePriceInfoResponse added in v1.3.16

type QueryChainNativePriceInfoResponse struct {
	GasPrice GasPrice `protobuf:"bytes,1,opt,name=gasPrice,proto3" json:"gasPrice"`
	Price    Price    `protobuf:"bytes,2,opt,name=price,proto3" json:"price"`
}

func (*QueryChainNativePriceInfoResponse) Descriptor added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) GetGasPrice added in v1.3.16

func (*QueryChainNativePriceInfoResponse) GetPrice added in v1.3.16

func (*QueryChainNativePriceInfoResponse) Marshal added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) MarshalTo added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) MarshalToSizedBuffer added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) ProtoMessage added in v1.3.16

func (*QueryChainNativePriceInfoResponse) ProtoMessage()

func (*QueryChainNativePriceInfoResponse) Reset added in v1.3.16

func (*QueryChainNativePriceInfoResponse) Size added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) String added in v1.3.16

func (*QueryChainNativePriceInfoResponse) Unmarshal added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) XXX_DiscardUnknown added in v1.3.16

func (m *QueryChainNativePriceInfoResponse) XXX_DiscardUnknown()

func (*QueryChainNativePriceInfoResponse) XXX_Marshal added in v1.3.16

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

func (*QueryChainNativePriceInfoResponse) XXX_Merge added in v1.3.16

func (*QueryChainNativePriceInfoResponse) XXX_Size added in v1.3.16

func (m *QueryChainNativePriceInfoResponse) XXX_Size() int

func (*QueryChainNativePriceInfoResponse) XXX_Unmarshal added in v1.3.16

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of Price items.
	Price(ctx context.Context, in *QueryGetPriceRequest, opts ...grpc.CallOption) (*QueryGetPriceResponse, error)
	PriceAll(ctx context.Context, in *QueryAllPriceRequest, opts ...grpc.CallOption) (*QueryAllPriceResponse, error)
	// Queries a list of SymbolRequest items.
	SymbolRequest(ctx context.Context, in *QueryGetSymbolRequestRequest, opts ...grpc.CallOption) (*QueryGetSymbolRequestResponse, error)
	SymbolRequestAll(ctx context.Context, in *QueryAllSymbolRequestRequest, opts ...grpc.CallOption) (*QueryAllSymbolRequestResponse, error)
	// Queries a list of PriceFeederInfo items.
	PriceFeederInfo(ctx context.Context, in *QueryGetPriceFeederInfoRequest, opts ...grpc.CallOption) (*QueryGetPriceFeederInfoResponse, error)
	PriceFeederInfoAll(ctx context.Context, in *QueryAllPriceFeederInfoRequest, opts ...grpc.CallOption) (*QueryAllPriceFeederInfoResponse, error)
	// Queries a list of GasPrice items.
	GasPrice(ctx context.Context, in *QueryGetGasPriceRequest, opts ...grpc.CallOption) (*QueryGetGasPriceResponse, error)
	GasPriceAll(ctx context.Context, in *QueryAllGasPriceRequest, opts ...grpc.CallOption) (*QueryAllGasPriceResponse, error)
	WhitelistedIBCChannels(ctx context.Context, in *QueryWhitelistedIBCChannelsRequest, opts ...grpc.CallOption) (*QueryWhitelistedIBCChannelsResponse, error)
	// Queries a list of ChainNativePriceInfo items.
	ChainNativePriceInfo(ctx context.Context, in *QueryChainNativePriceInfoRequest, opts ...grpc.CallOption) (*QueryChainNativePriceInfoResponse, 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 QueryGetGasPriceRequest

type QueryGetGasPriceRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chainId,proto3" json:"chainId,omitempty"`
}

func (*QueryGetGasPriceRequest) Descriptor

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

func (*QueryGetGasPriceRequest) GetChainId

func (m *QueryGetGasPriceRequest) GetChainId() string

func (*QueryGetGasPriceRequest) Marshal

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

func (*QueryGetGasPriceRequest) MarshalTo

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

func (*QueryGetGasPriceRequest) MarshalToSizedBuffer

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

func (*QueryGetGasPriceRequest) ProtoMessage

func (*QueryGetGasPriceRequest) ProtoMessage()

func (*QueryGetGasPriceRequest) Reset

func (m *QueryGetGasPriceRequest) Reset()

func (*QueryGetGasPriceRequest) Size

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

func (*QueryGetGasPriceRequest) String

func (m *QueryGetGasPriceRequest) String() string

func (*QueryGetGasPriceRequest) Unmarshal

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

func (*QueryGetGasPriceRequest) XXX_DiscardUnknown

func (m *QueryGetGasPriceRequest) XXX_DiscardUnknown()

func (*QueryGetGasPriceRequest) XXX_Marshal

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

func (*QueryGetGasPriceRequest) XXX_Merge

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

func (*QueryGetGasPriceRequest) XXX_Size

func (m *QueryGetGasPriceRequest) XXX_Size() int

func (*QueryGetGasPriceRequest) XXX_Unmarshal

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

type QueryGetGasPriceResponse

type QueryGetGasPriceResponse struct {
	GasPrice GasPrice `protobuf:"bytes,1,opt,name=gasPrice,proto3" json:"gasPrice"`
}

func (*QueryGetGasPriceResponse) Descriptor

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

func (*QueryGetGasPriceResponse) GetGasPrice

func (m *QueryGetGasPriceResponse) GetGasPrice() GasPrice

func (*QueryGetGasPriceResponse) Marshal

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

func (*QueryGetGasPriceResponse) MarshalTo

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

func (*QueryGetGasPriceResponse) MarshalToSizedBuffer

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

func (*QueryGetGasPriceResponse) ProtoMessage

func (*QueryGetGasPriceResponse) ProtoMessage()

func (*QueryGetGasPriceResponse) Reset

func (m *QueryGetGasPriceResponse) Reset()

func (*QueryGetGasPriceResponse) Size

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

func (*QueryGetGasPriceResponse) String

func (m *QueryGetGasPriceResponse) String() string

func (*QueryGetGasPriceResponse) Unmarshal

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

func (*QueryGetGasPriceResponse) XXX_DiscardUnknown

func (m *QueryGetGasPriceResponse) XXX_DiscardUnknown()

func (*QueryGetGasPriceResponse) XXX_Marshal

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

func (*QueryGetGasPriceResponse) XXX_Merge

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

func (*QueryGetGasPriceResponse) XXX_Size

func (m *QueryGetGasPriceResponse) XXX_Size() int

func (*QueryGetGasPriceResponse) XXX_Unmarshal

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

type QueryGetPriceFeederInfoRequest

type QueryGetPriceFeederInfoRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*QueryGetPriceFeederInfoRequest) Descriptor

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

func (*QueryGetPriceFeederInfoRequest) GetName

func (*QueryGetPriceFeederInfoRequest) Marshal

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

func (*QueryGetPriceFeederInfoRequest) MarshalTo

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

func (*QueryGetPriceFeederInfoRequest) MarshalToSizedBuffer

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

func (*QueryGetPriceFeederInfoRequest) ProtoMessage

func (*QueryGetPriceFeederInfoRequest) ProtoMessage()

func (*QueryGetPriceFeederInfoRequest) Reset

func (m *QueryGetPriceFeederInfoRequest) Reset()

func (*QueryGetPriceFeederInfoRequest) Size

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

func (*QueryGetPriceFeederInfoRequest) String

func (*QueryGetPriceFeederInfoRequest) Unmarshal

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

func (*QueryGetPriceFeederInfoRequest) XXX_DiscardUnknown

func (m *QueryGetPriceFeederInfoRequest) XXX_DiscardUnknown()

func (*QueryGetPriceFeederInfoRequest) XXX_Marshal

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

func (*QueryGetPriceFeederInfoRequest) XXX_Merge

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

func (*QueryGetPriceFeederInfoRequest) XXX_Size

func (m *QueryGetPriceFeederInfoRequest) XXX_Size() int

func (*QueryGetPriceFeederInfoRequest) XXX_Unmarshal

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

type QueryGetPriceFeederInfoResponse

type QueryGetPriceFeederInfoResponse struct {
	PriceFeederInfo PriceFeederInfo `protobuf:"bytes,1,opt,name=priceFeederInfo,proto3" json:"priceFeederInfo"`
}

func (*QueryGetPriceFeederInfoResponse) Descriptor

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

func (*QueryGetPriceFeederInfoResponse) GetPriceFeederInfo

func (m *QueryGetPriceFeederInfoResponse) GetPriceFeederInfo() PriceFeederInfo

func (*QueryGetPriceFeederInfoResponse) Marshal

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

func (*QueryGetPriceFeederInfoResponse) MarshalTo

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

func (*QueryGetPriceFeederInfoResponse) MarshalToSizedBuffer

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

func (*QueryGetPriceFeederInfoResponse) ProtoMessage

func (*QueryGetPriceFeederInfoResponse) ProtoMessage()

func (*QueryGetPriceFeederInfoResponse) Reset

func (*QueryGetPriceFeederInfoResponse) Size

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

func (*QueryGetPriceFeederInfoResponse) String

func (*QueryGetPriceFeederInfoResponse) Unmarshal

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

func (*QueryGetPriceFeederInfoResponse) XXX_DiscardUnknown

func (m *QueryGetPriceFeederInfoResponse) XXX_DiscardUnknown()

func (*QueryGetPriceFeederInfoResponse) XXX_Marshal

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

func (*QueryGetPriceFeederInfoResponse) XXX_Merge

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

func (*QueryGetPriceFeederInfoResponse) XXX_Size

func (m *QueryGetPriceFeederInfoResponse) XXX_Size() int

func (*QueryGetPriceFeederInfoResponse) XXX_Unmarshal

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

type QueryGetPriceRequest

type QueryGetPriceRequest struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}

func (*QueryGetPriceRequest) Descriptor

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

func (*QueryGetPriceRequest) GetSymbol

func (m *QueryGetPriceRequest) GetSymbol() 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 Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price"`
}

func (*QueryGetPriceResponse) Descriptor

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

func (*QueryGetPriceResponse) GetPrice

func (m *QueryGetPriceResponse) GetPrice() Price

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 QueryGetSymbolRequestRequest

type QueryGetSymbolRequestRequest struct {
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}

func (*QueryGetSymbolRequestRequest) Descriptor

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

func (*QueryGetSymbolRequestRequest) GetSymbol

func (m *QueryGetSymbolRequestRequest) GetSymbol() string

func (*QueryGetSymbolRequestRequest) Marshal

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

func (*QueryGetSymbolRequestRequest) MarshalTo

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

func (*QueryGetSymbolRequestRequest) MarshalToSizedBuffer

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

func (*QueryGetSymbolRequestRequest) ProtoMessage

func (*QueryGetSymbolRequestRequest) ProtoMessage()

func (*QueryGetSymbolRequestRequest) Reset

func (m *QueryGetSymbolRequestRequest) Reset()

func (*QueryGetSymbolRequestRequest) Size

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

func (*QueryGetSymbolRequestRequest) String

func (*QueryGetSymbolRequestRequest) Unmarshal

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

func (*QueryGetSymbolRequestRequest) XXX_DiscardUnknown

func (m *QueryGetSymbolRequestRequest) XXX_DiscardUnknown()

func (*QueryGetSymbolRequestRequest) XXX_Marshal

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

func (*QueryGetSymbolRequestRequest) XXX_Merge

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

func (*QueryGetSymbolRequestRequest) XXX_Size

func (m *QueryGetSymbolRequestRequest) XXX_Size() int

func (*QueryGetSymbolRequestRequest) XXX_Unmarshal

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

type QueryGetSymbolRequestResponse

type QueryGetSymbolRequestResponse struct {
	SymbolRequest SymbolRequest `protobuf:"bytes,1,opt,name=symbolRequest,proto3" json:"symbolRequest"`
}

func (*QueryGetSymbolRequestResponse) Descriptor

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

func (*QueryGetSymbolRequestResponse) GetSymbolRequest

func (m *QueryGetSymbolRequestResponse) GetSymbolRequest() SymbolRequest

func (*QueryGetSymbolRequestResponse) Marshal

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

func (*QueryGetSymbolRequestResponse) MarshalTo

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

func (*QueryGetSymbolRequestResponse) MarshalToSizedBuffer

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

func (*QueryGetSymbolRequestResponse) ProtoMessage

func (*QueryGetSymbolRequestResponse) ProtoMessage()

func (*QueryGetSymbolRequestResponse) Reset

func (m *QueryGetSymbolRequestResponse) Reset()

func (*QueryGetSymbolRequestResponse) Size

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

func (*QueryGetSymbolRequestResponse) String

func (*QueryGetSymbolRequestResponse) Unmarshal

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

func (*QueryGetSymbolRequestResponse) XXX_DiscardUnknown

func (m *QueryGetSymbolRequestResponse) XXX_DiscardUnknown()

func (*QueryGetSymbolRequestResponse) XXX_Marshal

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

func (*QueryGetSymbolRequestResponse) XXX_Merge

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

func (*QueryGetSymbolRequestResponse) XXX_Size

func (m *QueryGetSymbolRequestResponse) XXX_Size() int

func (*QueryGetSymbolRequestResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of Price items.
	Price(context.Context, *QueryGetPriceRequest) (*QueryGetPriceResponse, error)
	PriceAll(context.Context, *QueryAllPriceRequest) (*QueryAllPriceResponse, error)
	// Queries a list of SymbolRequest items.
	SymbolRequest(context.Context, *QueryGetSymbolRequestRequest) (*QueryGetSymbolRequestResponse, error)
	SymbolRequestAll(context.Context, *QueryAllSymbolRequestRequest) (*QueryAllSymbolRequestResponse, error)
	// Queries a list of PriceFeederInfo items.
	PriceFeederInfo(context.Context, *QueryGetPriceFeederInfoRequest) (*QueryGetPriceFeederInfoResponse, error)
	PriceFeederInfoAll(context.Context, *QueryAllPriceFeederInfoRequest) (*QueryAllPriceFeederInfoResponse, error)
	// Queries a list of GasPrice items.
	GasPrice(context.Context, *QueryGetGasPriceRequest) (*QueryGetGasPriceResponse, error)
	GasPriceAll(context.Context, *QueryAllGasPriceRequest) (*QueryAllGasPriceResponse, error)
	WhitelistedIBCChannels(context.Context, *QueryWhitelistedIBCChannelsRequest) (*QueryWhitelistedIBCChannelsResponse, error)
	// Queries a list of ChainNativePriceInfo items.
	ChainNativePriceInfo(context.Context, *QueryChainNativePriceInfoRequest) (*QueryChainNativePriceInfoResponse, error)
}

QueryServer is the server API for Query service.

type QueryWhitelistedIBCChannelsRequest added in v1.3.3

type QueryWhitelistedIBCChannelsRequest struct {
}

func (*QueryWhitelistedIBCChannelsRequest) Descriptor added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) Marshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) MarshalTo added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) MarshalToSizedBuffer added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) ProtoMessage added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) ProtoMessage()

func (*QueryWhitelistedIBCChannelsRequest) Reset added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) Size added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) String added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) Unmarshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) XXX_DiscardUnknown added in v1.3.3

func (m *QueryWhitelistedIBCChannelsRequest) XXX_DiscardUnknown()

func (*QueryWhitelistedIBCChannelsRequest) XXX_Marshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsRequest) XXX_Merge added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) XXX_Size added in v1.3.3

func (*QueryWhitelistedIBCChannelsRequest) XXX_Unmarshal added in v1.3.3

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

type QueryWhitelistedIBCChannelsResponse added in v1.3.3

type QueryWhitelistedIBCChannelsResponse struct {
	Channels []string `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
}

func (*QueryWhitelistedIBCChannelsResponse) Descriptor added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) GetChannels added in v1.3.3

func (m *QueryWhitelistedIBCChannelsResponse) GetChannels() []string

func (*QueryWhitelistedIBCChannelsResponse) Marshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) MarshalTo added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) MarshalToSizedBuffer added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) ProtoMessage added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) ProtoMessage()

func (*QueryWhitelistedIBCChannelsResponse) Reset added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) Size added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) String added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) Unmarshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) XXX_DiscardUnknown added in v1.3.3

func (m *QueryWhitelistedIBCChannelsResponse) XXX_DiscardUnknown()

func (*QueryWhitelistedIBCChannelsResponse) XXX_Marshal added in v1.3.3

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

func (*QueryWhitelistedIBCChannelsResponse) XXX_Merge added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) XXX_Size added in v1.3.3

func (*QueryWhitelistedIBCChannelsResponse) XXX_Unmarshal added in v1.3.3

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

type ScopedKeeper

type ScopedKeeper interface {
	GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool)
	AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
	ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
}

ScopedKeeper defines the expected IBC scoped keeper.

type SymbolRequest

type SymbolRequest struct {
	Symbol         string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	OracleScriptID uint64 `protobuf:"varint,2,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	BlockInterval  uint64 `protobuf:"varint,3,opt,name=block_interval,json=blockInterval,proto3" json:"block_interval,omitempty"`
}

SymbolRequest is a message that represents a symbol request data structure. It contains the symbol or name of the requested price data, the ID of the oracle script used to fetch the requested price data, and the block interval at which the price data should be update every n block.

func NewSymbolRequest

func NewSymbolRequest(symbol string, oracleScriptID, interval uint64) SymbolRequest

func (*SymbolRequest) Descriptor

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

func (*SymbolRequest) GetBlockInterval

func (m *SymbolRequest) GetBlockInterval() uint64

func (*SymbolRequest) GetOracleScriptID

func (m *SymbolRequest) GetOracleScriptID() uint64

func (*SymbolRequest) GetSymbol

func (m *SymbolRequest) GetSymbol() string

func (*SymbolRequest) Marshal

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

func (*SymbolRequest) MarshalTo

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

func (*SymbolRequest) MarshalToSizedBuffer

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

func (*SymbolRequest) ProtoMessage

func (*SymbolRequest) ProtoMessage()

func (*SymbolRequest) Reset

func (m *SymbolRequest) Reset()

func (*SymbolRequest) Size

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

func (*SymbolRequest) String

func (m *SymbolRequest) String() string

func (*SymbolRequest) Unmarshal

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

func (*SymbolRequest) XXX_DiscardUnknown

func (m *SymbolRequest) XXX_DiscardUnknown()

func (*SymbolRequest) XXX_Marshal

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

func (*SymbolRequest) XXX_Merge

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

func (*SymbolRequest) XXX_Size

func (m *SymbolRequest) XXX_Size() int

func (*SymbolRequest) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) GasPrices

func (*UnimplementedMsgServer) TokenPrices

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ChainNativePriceInfo added in v1.3.16

func (*UnimplementedQueryServer) GasPrice

func (*UnimplementedQueryServer) GasPriceAll

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Price

func (*UnimplementedQueryServer) PriceAll

func (*UnimplementedQueryServer) PriceFeederInfo

func (*UnimplementedQueryServer) PriceFeederInfoAll

func (*UnimplementedQueryServer) SymbolRequest

func (*UnimplementedQueryServer) SymbolRequestAll

func (*UnimplementedQueryServer) WhitelistedIBCChannels added in v1.3.3

type UpdatePriceFeederInfoProposal

type UpdatePriceFeederInfoProposal struct {
	Title           string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description     string          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PriceFeederInfo PriceFeederInfo `protobuf:"bytes,3,opt,name=price_feeder_info,json=priceFeederInfo,proto3" json:"price_feeder_info"`
}

UpdatePriceFeederInfoProposal is a message that represents a proposal to update a pricefeeder info. It contains a title, description, and pricefeeder info requests to be updated. Once approved, the data will update the PriceFeederInfo in the state.

func NewUpdatePriceFeederInfoProposal

func NewUpdatePriceFeederInfoProposal(
	title, description string, priceFeederInfo PriceFeederInfo,
) *UpdatePriceFeederInfoProposal

func (*UpdatePriceFeederInfoProposal) Descriptor

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

func (*UpdatePriceFeederInfoProposal) GetDescription

func (p *UpdatePriceFeederInfoProposal) GetDescription() string

GetDescription returns the description of a update price feeder info proposal.

func (*UpdatePriceFeederInfoProposal) GetTitle

func (p *UpdatePriceFeederInfoProposal) GetTitle() string

GetTitle returns the title of a update price feeder info proposal.

func (*UpdatePriceFeederInfoProposal) Marshal

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

func (*UpdatePriceFeederInfoProposal) MarshalTo

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

func (*UpdatePriceFeederInfoProposal) MarshalToSizedBuffer

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

func (*UpdatePriceFeederInfoProposal) ProposalRoute

func (*UpdatePriceFeederInfoProposal) ProposalRoute() string

ProposalRoute returns the routing key of a update price feeder info proposal.

func (*UpdatePriceFeederInfoProposal) ProposalType

func (*UpdatePriceFeederInfoProposal) ProposalType() string

ProposalType returns the type of a update price feeder info proposal.

func (*UpdatePriceFeederInfoProposal) ProtoMessage

func (*UpdatePriceFeederInfoProposal) ProtoMessage()

func (*UpdatePriceFeederInfoProposal) Reset

func (m *UpdatePriceFeederInfoProposal) Reset()

func (*UpdatePriceFeederInfoProposal) Size

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

func (*UpdatePriceFeederInfoProposal) String

func (*UpdatePriceFeederInfoProposal) Unmarshal

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

func (*UpdatePriceFeederInfoProposal) ValidateBasic

func (p *UpdatePriceFeederInfoProposal) ValidateBasic() error

ValidateBasic validates the update price feeder info proposal.

func (*UpdatePriceFeederInfoProposal) XXX_DiscardUnknown

func (m *UpdatePriceFeederInfoProposal) XXX_DiscardUnknown()

func (*UpdatePriceFeederInfoProposal) XXX_Marshal

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

func (*UpdatePriceFeederInfoProposal) XXX_Merge

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

func (*UpdatePriceFeederInfoProposal) XXX_Size

func (m *UpdatePriceFeederInfoProposal) XXX_Size() int

func (*UpdatePriceFeederInfoProposal) XXX_Unmarshal

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

type UpdateSymbolRequestProposal

type UpdateSymbolRequestProposal struct {
	Title          string          `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description    string          `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	SymbolRequests []SymbolRequest `protobuf:"bytes,3,rep,name=symbol_requests,json=symbolRequests,proto3" json:"symbol_requests"`
}

UpdateSymbolRequestProposal is a message that represents a proposal to update a symbol request. It contains a title, description, and a list of symbol requests to be updated. Once approved, the data will update the SymbolRequest in the state.

func NewUpdateSymbolRequestProposal

func NewUpdateSymbolRequestProposal(
	title, description string, symbolRequests []SymbolRequest,
) *UpdateSymbolRequestProposal

func (*UpdateSymbolRequestProposal) Descriptor

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

func (*UpdateSymbolRequestProposal) GetDescription

func (p *UpdateSymbolRequestProposal) GetDescription() string

GetDescription returns the description of a update symbol request proposal.

func (*UpdateSymbolRequestProposal) GetTitle

func (p *UpdateSymbolRequestProposal) GetTitle() string

GetTitle returns the title of a update symbol request proposal.

func (*UpdateSymbolRequestProposal) Marshal

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

func (*UpdateSymbolRequestProposal) MarshalTo

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

func (*UpdateSymbolRequestProposal) MarshalToSizedBuffer

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

func (*UpdateSymbolRequestProposal) ProposalRoute

func (*UpdateSymbolRequestProposal) ProposalRoute() string

ProposalRoute returns the routing key of a update symbol request proposal.

func (*UpdateSymbolRequestProposal) ProposalType

func (*UpdateSymbolRequestProposal) ProposalType() string

ProposalType returns the type of a update symbol request proposal.

func (*UpdateSymbolRequestProposal) ProtoMessage

func (*UpdateSymbolRequestProposal) ProtoMessage()

func (*UpdateSymbolRequestProposal) Reset

func (m *UpdateSymbolRequestProposal) Reset()

func (*UpdateSymbolRequestProposal) Size

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

func (*UpdateSymbolRequestProposal) String

func (m *UpdateSymbolRequestProposal) String() string

func (*UpdateSymbolRequestProposal) Unmarshal

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

func (*UpdateSymbolRequestProposal) ValidateBasic

func (p *UpdateSymbolRequestProposal) ValidateBasic() error

ValidateBasic validates the update symbol request proposal.

func (*UpdateSymbolRequestProposal) XXX_DiscardUnknown

func (m *UpdateSymbolRequestProposal) XXX_DiscardUnknown()

func (*UpdateSymbolRequestProposal) XXX_Marshal

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

func (*UpdateSymbolRequestProposal) XXX_Merge

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

func (*UpdateSymbolRequestProposal) XXX_Size

func (m *UpdateSymbolRequestProposal) XXX_Size() int

func (*UpdateSymbolRequestProposal) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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