types

package
v12.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	JunoDenom       string = appparams.BondDenom
	JunoSymbol      string = "JUNO"
	JunoExponent           = uint32(6)
	AtomDenom       string = "ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9"
	AtomSymbol      string = "ATOM"
	AtomExponent           = uint32(6)
	USDDenom        string = "USD"
	BlocksPerMinute        = uint64(10)
	BlocksPerHour          = BlocksPerMinute * 60
	BlocksPerDay           = BlocksPerHour * 24
	BlocksPerWeek          = BlocksPerDay * 7
	BlocksPerMonth         = BlocksPerDay * 30
	BlocksPerYear          = BlocksPerDay * 365
	MicroUnit              = int64(1e6)
)
View Source
const (
	// ModuleName is the name of the oracle module
	ModuleName = "oracle"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the query router key for the oracle module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the oracle module
	RouterKey = ModuleName
)
View Source
const (
	DefaultVotePeriod               = BlocksPerMinute / 2 // 30 seconds
	DefaultSlashWindow              = BlocksPerWeek       // window for a week
	DefaultRewardDistributionWindow = BlocksPerYear       // window for a year
)

Default parameter values

Variables

View Source
var (
	ErrInvalidExchangeRate   = sdkerrors.Register(ModuleName, 1, "invalid exchange rate")
	ErrNoPrevote             = sdkerrors.Register(ModuleName, 2, "no prevote")
	ErrNoVote                = sdkerrors.Register(ModuleName, 3, "no vote")
	ErrNoVotingPermission    = sdkerrors.Register(ModuleName, 4, "unauthorized voter")
	ErrInvalidHash           = sdkerrors.Register(ModuleName, 5, "invalid hash")
	ErrInvalidHashLength     = sdkerrors.Register(ModuleName, 6, fmt.Sprintf("invalid hash length; should equal %d", tmhash.TruncatedSize)) //nolint: lll
	ErrVerificationFailed    = sdkerrors.Register(ModuleName, 7, "hash verification failed")
	ErrRevealPeriodMissMatch = sdkerrors.Register(ModuleName, 8, "reveal period of submitted vote does not match with registered prevote") //nolint: lll
	ErrInvalidSaltLength     = sdkerrors.Register(ModuleName, 9, "invalid salt length; must be 64")
	ErrInvalidSaltFormat     = sdkerrors.Register(ModuleName, 10, "invalid salt format")
	ErrNoAggregatePrevote    = sdkerrors.Register(ModuleName, 11, "no aggregate prevote")
	ErrNoAggregateVote       = sdkerrors.Register(ModuleName, 12, "no aggregate vote")
	ErrUnknownDenom          = sdkerrors.Register(ModuleName, 13, "unknown denom")
	ErrNegativeOrZeroRate    = sdkerrors.Register(ModuleName, 14, "invalid exchange rate; should be positive")
	ErrExistingPrevote       = sdkerrors.Register(ModuleName, 15, "prevote already submitted for this voting period")
	ErrBallotNotSorted       = sdkerrors.Register(ModuleName, 16, "ballot must be sorted before this operation")
	ErrInvalidVotePeriod     = sdkerrors.Register(ModuleName, 17, "invalid voting period")
	ErrEmpty                 = sdkerrors.Register(ModuleName, 18, "empty")

	// 4XX = Price Sensitive
	ErrInvalidOraclePrice = sdkerrors.Register(ModuleName, 401, "invalid oracle price")
)

Oracle sentinel errors

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = 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 (
	KeyPrefixExchangeRate                 = []byte{0x01} // prefix for each key to a rate
	KeyPrefixFeederDelegation             = []byte{0x02} // prefix for each key to a feeder delegation
	KeyPrefixMissCounter                  = []byte{0x03} // prefix for each key to a miss counter
	KeyPrefixAggregateExchangeRatePrevote = []byte{0x04} // prefix for each key to a aggregate prevote
	KeyPrefixAggregateExchangeRateVote    = []byte{0x05} // prefix for each key to a aggregate vote
	KeyPrefixPriceHistory                 = []byte{0x06} // prefix for price history
)

KVStore key prefixes

View Source
var (
	// Contract: Coin denoms cannot contain this character
	KeySeparator = "|"

	// format is pool id | denom1 | denom2 | time
	// made for efficiently getting records given (pool id, denom1, denom2) and time bounds
	HistoricalTWAPTimeIndexPrefix = historicalTimeIndexNoSeparator + KeySeparator
)
View Source
var (
	ErrInvalidLengthOracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	KeyVotePeriod               = []byte("VotePeriod")
	KeyVoteThreshold            = []byte("VoteThreshold")
	KeyRewardBand               = []byte("RewardBand")
	KeyRewardDistributionWindow = []byte("RewardDistributionWindow")
	KeyWhitelist                = []byte("Whitelist")
	KeySlashFraction            = []byte("SlashFraction")
	KeySlashWindow              = []byte("SlashWindow")
	KeyMinValidPerWindow        = []byte("MinValidPerWindow")
	KeyTwapTrackingList         = []byte("TwapTrackingList")
	KeyTwapDuration             = []byte("TwapDuration")
)

Parameter keys

View Source
var (
	DefaultVoteThreshold = sdk.NewDecWithPrec(50, 2) // 50%
	DefaultRewardBand    = sdk.NewDecWithPrec(2, 2)  // 2% (-1, 1)
	DefaultWhitelist     = DenomList{
		{
			BaseDenom:   JunoDenom,
			SymbolDenom: JunoSymbol,
			Exponent:    JunoExponent,
		},
		{
			BaseDenom:   AtomDenom,
			SymbolDenom: AtomSymbol,
			Exponent:    AtomExponent,
		},
	}
	DefaultSlashFraction     = sdk.NewDecWithPrec(1, 4) // 0.01%
	DefaultMinValidPerWindow = sdk.NewDecWithPrec(5, 2) // 5%
	DefaultTwapDuration      = time.Hour * 24 * 7       // 7 days
)

Default parameter values

View Source
var (
	ErrInvalidLengthProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProposal = 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 (
	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 (

	// ModuleCdc references the global x/oracle module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func FormatHistoricalDenomIndexKey

func FormatHistoricalDenomIndexKey(accumulatorWriteTime time.Time, denom string) []byte

func FormatHistoricalDenomIndexPrefix

func FormatHistoricalDenomIndexPrefix(denom string) []byte

func FormatTimeString

func FormatTimeString(t time.Time) string

func GetAggregateExchangeRatePrevoteKey

func GetAggregateExchangeRatePrevoteKey(v sdk.ValAddress) (key []byte)

GetAggregateExchangeRatePrevoteKey - stored by *Validator* address

func GetAggregateExchangeRateVoteKey

func GetAggregateExchangeRateVoteKey(v sdk.ValAddress) (key []byte)

GetAggregateExchangeRateVoteKey - stored by *Validator* address

func GetExchangeRateKey

func GetExchangeRateKey(denom string) (key []byte)

GetExchangeRateKey - stored by *denom*

func GetFeederDelegationKey

func GetFeederDelegationKey(v sdk.ValAddress) (key []byte)

GetFeederDelegationKey - stored by *Validator* address

func GetMissCounterKey

func GetMissCounterKey(v sdk.ValAddress) (key []byte)

GetMissCounterKey - stored by *Validator* address

func GetPriceHistoryKey

func GetPriceHistoryKey(symbolDenom string) (key []byte)

Store price history <Prefix> <baseDenom> <votePeriodCount> <PriceHistoryEntry>

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable returns the parameter key table.

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the x/oracle interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/oracle interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the oracle genesis state.

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI

	// only used for simulation
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the expected interface contract defined by the x/auth module.

type AddTrackingPriceHistoryProposal

type AddTrackingPriceHistoryProposal struct {
	// Title is a short summary
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Description is a human readable text
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Denom
	TrackingList DenomList `` /* 131-byte string literal not displayed */
}

AddTrackingPriceHistoryProposal add denom to tracking price history list (in this situation, denom must already in Whitelist)

func AddTrackingPriceHistoryProposalFixture

func AddTrackingPriceHistoryProposalFixture(
	mutators ...func(p *AddTrackingPriceHistoryProposal),
) *AddTrackingPriceHistoryProposal

func NewAddTrackingPriceHistoryProposal

func NewAddTrackingPriceHistoryProposal(
	title string,
	description string,
	list DenomList,
) *AddTrackingPriceHistoryProposal

func (*AddTrackingPriceHistoryProposal) Descriptor

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

func (*AddTrackingPriceHistoryProposal) Equal

func (this *AddTrackingPriceHistoryProposal) Equal(that interface{}) bool

func (AddTrackingPriceHistoryProposal) GetDescription

func (p AddTrackingPriceHistoryProposal) GetDescription() string

GetDescription returns the human readable description of the proposal

func (*AddTrackingPriceHistoryProposal) GetTitle

GetTitle returns the title of the proposal

func (*AddTrackingPriceHistoryProposal) Marshal

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

func (*AddTrackingPriceHistoryProposal) MarshalTo

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

func (*AddTrackingPriceHistoryProposal) MarshalToSizedBuffer

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

func (AddTrackingPriceHistoryProposal) ProposalRoute

func (p AddTrackingPriceHistoryProposal) ProposalRoute() string

ProposalRoute returns the routing key of a parameter change proposal.

func (AddTrackingPriceHistoryProposal) ProposalType

func (p AddTrackingPriceHistoryProposal) ProposalType() string

ProposalType returns the type

func (*AddTrackingPriceHistoryProposal) ProtoMessage

func (*AddTrackingPriceHistoryProposal) ProtoMessage()

func (*AddTrackingPriceHistoryProposal) Reset

func (*AddTrackingPriceHistoryProposal) Size

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

func (AddTrackingPriceHistoryProposal) String

String implements the Stringer interface.

func (*AddTrackingPriceHistoryProposal) Unmarshal

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

func (AddTrackingPriceHistoryProposal) ValidateBasic

func (p AddTrackingPriceHistoryProposal) ValidateBasic() error

ValidateBasic validates the proposal

func (*AddTrackingPriceHistoryProposal) XXX_DiscardUnknown

func (m *AddTrackingPriceHistoryProposal) XXX_DiscardUnknown()

func (*AddTrackingPriceHistoryProposal) XXX_Marshal

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

func (*AddTrackingPriceHistoryProposal) XXX_Merge

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

func (*AddTrackingPriceHistoryProposal) XXX_Size

func (m *AddTrackingPriceHistoryProposal) XXX_Size() int

func (*AddTrackingPriceHistoryProposal) XXX_Unmarshal

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

type AddTrackingPriceHistoryWithWhitelistProposal

type AddTrackingPriceHistoryWithWhitelistProposal struct {
	// Title is a short summary
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Description is a human readable text
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Denom
	TrackingList DenomList `` /* 131-byte string literal not displayed */
}

AddTrackingPriceHistoryWithWhitelistProposal add denom to tracking price history list and whitelist (in this situation, denom don't have to in Whitelist)

func NewAddTrackingPriceHistoryWithWhitelistProposal

func NewAddTrackingPriceHistoryWithWhitelistProposal(
	title string,
	description string,
	list DenomList,
) *AddTrackingPriceHistoryWithWhitelistProposal

func (*AddTrackingPriceHistoryWithWhitelistProposal) Descriptor

func (*AddTrackingPriceHistoryWithWhitelistProposal) Equal

func (this *AddTrackingPriceHistoryWithWhitelistProposal) Equal(that interface{}) bool

func (AddTrackingPriceHistoryWithWhitelistProposal) GetDescription

GetDescription returns the human readable description of the proposal

func (*AddTrackingPriceHistoryWithWhitelistProposal) GetTitle

GetTitle returns the title of the proposal

func (*AddTrackingPriceHistoryWithWhitelistProposal) Marshal

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

func (*AddTrackingPriceHistoryWithWhitelistProposal) MarshalTo

func (*AddTrackingPriceHistoryWithWhitelistProposal) MarshalToSizedBuffer

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

func (AddTrackingPriceHistoryWithWhitelistProposal) ProposalRoute

ProposalRoute returns the routing key of a parameter change proposal.

func (AddTrackingPriceHistoryWithWhitelistProposal) ProposalType

ProposalType returns the type

func (*AddTrackingPriceHistoryWithWhitelistProposal) ProtoMessage

func (*AddTrackingPriceHistoryWithWhitelistProposal) Reset

func (*AddTrackingPriceHistoryWithWhitelistProposal) Size

func (AddTrackingPriceHistoryWithWhitelistProposal) String

String implements the Stringer interface.

func (*AddTrackingPriceHistoryWithWhitelistProposal) Unmarshal

func (AddTrackingPriceHistoryWithWhitelistProposal) ValidateBasic

ValidateBasic validates the proposal

func (*AddTrackingPriceHistoryWithWhitelistProposal) XXX_DiscardUnknown

func (m *AddTrackingPriceHistoryWithWhitelistProposal) XXX_DiscardUnknown()

func (*AddTrackingPriceHistoryWithWhitelistProposal) XXX_Marshal

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

func (*AddTrackingPriceHistoryWithWhitelistProposal) XXX_Merge

func (*AddTrackingPriceHistoryWithWhitelistProposal) XXX_Size

func (*AddTrackingPriceHistoryWithWhitelistProposal) XXX_Unmarshal

type AggregateExchangeRatePrevote

type AggregateExchangeRatePrevote struct {
	Hash        string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"`
	Voter       string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty" yaml:"voter"`
	SubmitBlock uint64 `protobuf:"varint,3,opt,name=submit_block,json=submitBlock,proto3" json:"submit_block,omitempty" yaml:"submit_block"`
}

AggregateExchangeRatePrevote - struct for aggregate prevoting on the ExchangeRateVote. The purpose of aggregate prevote is to hide vote exchange rates with hash which is formatted as hex string in SHA256("{salt}:{exchange rate}{denom},...,{exchange rate}{denom}:{voter}")

func NewAggregateExchangeRatePrevote

func NewAggregateExchangeRatePrevote(
	hash AggregateVoteHash,
	voter sdk.ValAddress,
	submitBlock uint64,
) AggregateExchangeRatePrevote

func (*AggregateExchangeRatePrevote) Descriptor

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

func (*AggregateExchangeRatePrevote) Marshal

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

func (*AggregateExchangeRatePrevote) MarshalTo

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

func (*AggregateExchangeRatePrevote) MarshalToSizedBuffer

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

func (*AggregateExchangeRatePrevote) ProtoMessage

func (*AggregateExchangeRatePrevote) ProtoMessage()

func (*AggregateExchangeRatePrevote) Reset

func (m *AggregateExchangeRatePrevote) Reset()

func (*AggregateExchangeRatePrevote) Size

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

func (AggregateExchangeRatePrevote) String

String implement stringify

func (*AggregateExchangeRatePrevote) Unmarshal

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

func (*AggregateExchangeRatePrevote) XXX_DiscardUnknown

func (m *AggregateExchangeRatePrevote) XXX_DiscardUnknown()

func (*AggregateExchangeRatePrevote) XXX_Marshal

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

func (*AggregateExchangeRatePrevote) XXX_Merge

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

func (*AggregateExchangeRatePrevote) XXX_Size

func (m *AggregateExchangeRatePrevote) XXX_Size() int

func (*AggregateExchangeRatePrevote) XXX_Unmarshal

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

type AggregateExchangeRateVote

type AggregateExchangeRateVote struct {
	ExchangeRateTuples ExchangeRateTuples `` /* 167-byte string literal not displayed */
	Voter              string             `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty" yaml:"voter"`
}

AggregateExchangeRateVote - struct for voting on the exchange rates of USD denominated in various assets.

func NewAggregateExchangeRateVote

func NewAggregateExchangeRateVote(
	exchangeRateTuples ExchangeRateTuples,
	voter sdk.ValAddress,
) AggregateExchangeRateVote

func (*AggregateExchangeRateVote) Descriptor

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

func (*AggregateExchangeRateVote) Marshal

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

func (*AggregateExchangeRateVote) MarshalTo

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

func (*AggregateExchangeRateVote) MarshalToSizedBuffer

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

func (*AggregateExchangeRateVote) ProtoMessage

func (*AggregateExchangeRateVote) ProtoMessage()

func (*AggregateExchangeRateVote) Reset

func (m *AggregateExchangeRateVote) Reset()

func (*AggregateExchangeRateVote) Size

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

func (AggregateExchangeRateVote) String

func (v AggregateExchangeRateVote) String() string

String implement stringify

func (*AggregateExchangeRateVote) Unmarshal

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

func (*AggregateExchangeRateVote) XXX_DiscardUnknown

func (m *AggregateExchangeRateVote) XXX_DiscardUnknown()

func (*AggregateExchangeRateVote) XXX_Marshal

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

func (*AggregateExchangeRateVote) XXX_Merge

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

func (*AggregateExchangeRateVote) XXX_Size

func (m *AggregateExchangeRateVote) XXX_Size() int

func (*AggregateExchangeRateVote) XXX_Unmarshal

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

type AggregateVoteHash

type AggregateVoteHash []byte

AggregateVoteHash is hash value to hide vote exchange rates which is formatted as a HEX string: SHA256("{salt}:{symbol}:{exchangeRate},...,{symbol}:{exchangeRate}:{voter}")

func AggregateVoteHashFromHexString

func AggregateVoteHashFromHexString(s string) (AggregateVoteHash, error)

AggregateVoteHashFromHexString convert hex string to AggregateVoteHash.

func GetAggregateVoteHash

func GetAggregateVoteHash(salt, exchangeRatesStr string, voter sdk.ValAddress) AggregateVoteHash

GetAggregateVoteHash computes hash value of ExchangeRateVote to avoid redundant DecCoins stringify operation.

func (AggregateVoteHash) Bytes

func (h AggregateVoteHash) Bytes() []byte

Bytes returns the raw address bytes.

func (AggregateVoteHash) Empty

func (h AggregateVoteHash) Empty() bool

Empty check the name hash has zero length

func (AggregateVoteHash) Equal

Equal does bytes equal check

func (AggregateVoteHash) Format

func (h AggregateVoteHash) Format(s fmt.State, verb rune)

Format implements the fmt.Formatter interface.

func (AggregateVoteHash) Marshal

func (h AggregateVoteHash) Marshal() ([]byte, error)

Marshal returns the raw address bytes. It is needed for protobuf compatibility.

func (AggregateVoteHash) MarshalJSON

func (h AggregateVoteHash) MarshalJSON() ([]byte, error)

MarshalJSON marshals to JSON using Bech32.

func (AggregateVoteHash) MarshalYAML

func (h AggregateVoteHash) MarshalYAML() (interface{}, error)

MarshalYAML marshals to YAML using Bech32.

func (AggregateVoteHash) Size

func (h AggregateVoteHash) Size() int

Size returns the raw address bytes.

func (AggregateVoteHash) String

func (h AggregateVoteHash) String() string

String implements fmt.Stringer interface

func (*AggregateVoteHash) Unmarshal

func (h *AggregateVoteHash) Unmarshal(data []byte) error

Unmarshal sets the address to the given data. It is needed for protobuf compatibility.

func (*AggregateVoteHash) UnmarshalJSON

func (h *AggregateVoteHash) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals from JSON assuming Bech32 encoding.

type BallotDenom

type BallotDenom struct {
	Ballot ExchangeRateBallot
	Denom  string
}

BallotDenom is a convenience wrapper for setting rates deterministically.

func BallotMapToSlice

func BallotMapToSlice(votes map[string]ExchangeRateBallot) []BallotDenom

BallotMapToSlice returns an array of sorted exchange rate ballots.

type BankKeeper

type BankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
}

BankKeeper defines the expected interface contract defined by the x/bank module.

type Claim

type Claim struct {
	Power     int64
	Weight    int64
	WinCount  int64
	Recipient sdk.ValAddress
}

Claim is an interface that directs its rewards to an attached bank account.

func ClaimMapToSlice

func ClaimMapToSlice(claims map[string]Claim) []Claim

ClaimMapToSlice returns an array of sorted exchange rate ballots.

func NewClaim

func NewClaim(power, weight, winCount int64, recipient sdk.ValAddress) Claim

NewClaim generates a Claim instance.

type Denom

type Denom struct {
	BaseDenom   string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"`
	SymbolDenom string `protobuf:"bytes,2,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty" yaml:"symbol_denom"`
	Exponent    uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty" yaml:"exponent"`
}

Denom - the object to hold configurations of each denom

func (*Denom) Descriptor

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

func (Denom) Equal

func (d Denom) Equal(d1 *Denom) bool

Equal implements equal interface

func (*Denom) Marshal

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

func (*Denom) MarshalTo

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

func (*Denom) MarshalToSizedBuffer

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

func (*Denom) ProtoMessage

func (*Denom) ProtoMessage()

func (*Denom) Reset

func (m *Denom) Reset()

func (*Denom) Size

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

func (Denom) String

func (d Denom) String() string

String implements fmt.Stringer interface

func (*Denom) Unmarshal

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

func (*Denom) XXX_DiscardUnknown

func (m *Denom) XXX_DiscardUnknown()

func (*Denom) XXX_Marshal

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

func (*Denom) XXX_Merge

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

func (*Denom) XXX_Size

func (m *Denom) XXX_Size() int

func (*Denom) XXX_Unmarshal

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

type DenomList

type DenomList []Denom

DenomList is array of Denom

func (DenomList) Contains

func (dl DenomList) Contains(symbolDenom string) bool

Contains checks whether or not a SymbolDenom (e.g. JUNO) is in the DenomList

func (DenomList) String

func (dl DenomList) String() (out string)

String implements fmt.Stringer interface

type DistributionKeeper

type DistributionKeeper interface {
	AllocateTokensToValidator(ctx sdk.Context, val stakingtypes.ValidatorI, tokens sdk.DecCoins)
	GetValidatorOutstandingRewardsCoins(ctx sdk.Context, val sdk.ValAddress) sdk.DecCoins
}

DistributionKeeper defines the expected interface contract defined by the x/distribution module.

type EventDelegateFeedConsent

type EventDelegateFeedConsent struct {
	// Operator bech32 address who delegates his feed consent
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// Delegate bech32 address
	Delegate string `protobuf:"bytes,2,opt,name=delegate,proto3" json:"delegate,omitempty"`
}

EventDelegateFeedConsent is emitted on Msg/DelegateFeedConsent

func (*EventDelegateFeedConsent) Descriptor

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

func (*EventDelegateFeedConsent) Marshal

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

func (*EventDelegateFeedConsent) MarshalTo

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

func (*EventDelegateFeedConsent) MarshalToSizedBuffer

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

func (*EventDelegateFeedConsent) ProtoMessage

func (*EventDelegateFeedConsent) ProtoMessage()

func (*EventDelegateFeedConsent) Reset

func (m *EventDelegateFeedConsent) Reset()

func (*EventDelegateFeedConsent) Size

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

func (*EventDelegateFeedConsent) String

func (m *EventDelegateFeedConsent) String() string

func (*EventDelegateFeedConsent) Unmarshal

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

func (*EventDelegateFeedConsent) XXX_DiscardUnknown

func (m *EventDelegateFeedConsent) XXX_DiscardUnknown()

func (*EventDelegateFeedConsent) XXX_Marshal

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

func (*EventDelegateFeedConsent) XXX_Merge

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

func (*EventDelegateFeedConsent) XXX_Size

func (m *EventDelegateFeedConsent) XXX_Size() int

func (*EventDelegateFeedConsent) XXX_Unmarshal

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

type EventSetFxRate

type EventSetFxRate struct {
	// uToken denom
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// Exchange rate (based to USD)
	Rate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=rate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"rate"`
}

EventSetFxRate is emitted on exchange rate update

func (*EventSetFxRate) Descriptor

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

func (*EventSetFxRate) Marshal

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

func (*EventSetFxRate) MarshalTo

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

func (*EventSetFxRate) MarshalToSizedBuffer

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

func (*EventSetFxRate) ProtoMessage

func (*EventSetFxRate) ProtoMessage()

func (*EventSetFxRate) Reset

func (m *EventSetFxRate) Reset()

func (*EventSetFxRate) Size

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

func (*EventSetFxRate) String

func (m *EventSetFxRate) String() string

func (*EventSetFxRate) Unmarshal

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

func (*EventSetFxRate) XXX_DiscardUnknown

func (m *EventSetFxRate) XXX_DiscardUnknown()

func (*EventSetFxRate) XXX_Marshal

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

func (*EventSetFxRate) XXX_Merge

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

func (*EventSetFxRate) XXX_Size

func (m *EventSetFxRate) XXX_Size() int

func (*EventSetFxRate) XXX_Unmarshal

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

type ExchangeRateBallot

type ExchangeRateBallot []VoteForTally

ExchangeRateBallot is a convenience wrapper around a ExchangeRateVote slice.

func (ExchangeRateBallot) Len

func (pb ExchangeRateBallot) Len() int

Len implements sort.Interface

func (ExchangeRateBallot) Less

func (pb ExchangeRateBallot) Less(i, j int) bool

Less reports whether the element with index i should sort before the element with index j.

func (ExchangeRateBallot) Power

func (pb ExchangeRateBallot) Power() int64

Power returns the total amount of voting power in the ballot.

func (ExchangeRateBallot) StandardDeviation

func (pb ExchangeRateBallot) StandardDeviation() (sdk.Dec, error)

StandardDeviation returns the standard deviation by the power of the ExchangeRateVote.

func (ExchangeRateBallot) Swap

func (pb ExchangeRateBallot) Swap(i, j int)

Swap implements sort.Interface.

func (ExchangeRateBallot) ToMap

func (pb ExchangeRateBallot) ToMap() map[string]sdk.Dec

ToMap return organized exchange rate map by validator.

func (ExchangeRateBallot) WeightedMedian

func (pb ExchangeRateBallot) WeightedMedian() (sdk.Dec, error)

WeightedMedian returns the median weighted by the power of the ExchangeRateVote. CONTRACT: The ballot must be sorted.

type ExchangeRatePrevote

type ExchangeRatePrevote struct {
	Hash        VoteHash       `json:"hash"`         // Vote hex hash to protect centralize data source problem
	Denom       string         `json:"denom"`        // Ticker symbol of denomination exchanged against USD
	Voter       sdk.ValAddress `json:"voter"`        // Voter validator address
	SubmitBlock int64          `json:"submit_block"` // Block height at submission
}

ExchangeRatePrevote defines a structure to store a validator's prevote on the rate of USD in the denom asset.

type ExchangeRateTuple

type ExchangeRateTuple struct {
	Denom        string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
	ExchangeRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
}

ExchangeRateTuple - struct to store interpreted exchange rates data to store

func NewExchangeRateTuple

func NewExchangeRateTuple(denom string, exchangeRate sdk.Dec) ExchangeRateTuple

NewExchangeRateTuple creates a ExchangeRateTuple instance

func (*ExchangeRateTuple) Descriptor

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

func (*ExchangeRateTuple) Marshal

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

func (*ExchangeRateTuple) MarshalTo

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

func (*ExchangeRateTuple) MarshalToSizedBuffer

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

func (*ExchangeRateTuple) ProtoMessage

func (*ExchangeRateTuple) ProtoMessage()

func (*ExchangeRateTuple) Reset

func (m *ExchangeRateTuple) Reset()

func (*ExchangeRateTuple) Size

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

func (ExchangeRateTuple) String

func (v ExchangeRateTuple) String() string

String implement stringify

func (*ExchangeRateTuple) Unmarshal

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

func (*ExchangeRateTuple) XXX_DiscardUnknown

func (m *ExchangeRateTuple) XXX_DiscardUnknown()

func (*ExchangeRateTuple) XXX_Marshal

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

func (*ExchangeRateTuple) XXX_Merge

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

func (*ExchangeRateTuple) XXX_Size

func (m *ExchangeRateTuple) XXX_Size() int

func (*ExchangeRateTuple) XXX_Unmarshal

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

type ExchangeRateTuples

type ExchangeRateTuples []ExchangeRateTuple

ExchangeRateTuples - array of ExchangeRateTuple

func ParseExchangeRateTuples

func ParseExchangeRateTuples(tuplesStr string) (ExchangeRateTuples, error)

ParseExchangeRateTuples ExchangeRateTuple parser

func (ExchangeRateTuples) String

func (tuples ExchangeRateTuples) String() string

String implements fmt.Stringer interface

type ExchangeRateVote

type ExchangeRateVote struct {
	ExchangeRate sdk.Dec        `json:"exchange_rate"` // Exchange rate of a denomination against USD
	Denom        string         `json:"denom"`         // Ticker symbol of denomination exchanged against USD
	Voter        sdk.ValAddress `json:"voter"`         // Voter validator address
}

ExchangeRateVote defines a structure to store a validator's vote on the rate of USD in the denom asset.

type FeederDelegation

type FeederDelegation struct {
	FeederAddress    string `protobuf:"bytes,1,opt,name=feeder_address,json=feederAddress,proto3" json:"feeder_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

FeederDelegation is the address for where oracle feeder authority are delegated to. By default this struct is only used at genesis to feed in default feeder addresses.

func (*FeederDelegation) Descriptor

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

func (*FeederDelegation) Marshal

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

func (*FeederDelegation) MarshalTo

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

func (*FeederDelegation) MarshalToSizedBuffer

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

func (*FeederDelegation) ProtoMessage

func (*FeederDelegation) ProtoMessage()

func (*FeederDelegation) Reset

func (m *FeederDelegation) Reset()

func (*FeederDelegation) Size

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

func (*FeederDelegation) String

func (m *FeederDelegation) String() string

func (*FeederDelegation) Unmarshal

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

func (*FeederDelegation) XXX_DiscardUnknown

func (m *FeederDelegation) XXX_DiscardUnknown()

func (*FeederDelegation) XXX_Marshal

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

func (*FeederDelegation) XXX_Merge

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

func (*FeederDelegation) XXX_Size

func (m *FeederDelegation) XXX_Size() int

func (*FeederDelegation) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params                        Params                         `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	FeederDelegations             []FeederDelegation             `protobuf:"bytes,2,rep,name=feeder_delegations,json=feederDelegations,proto3" json:"feeder_delegations"`
	ExchangeRates                 ExchangeRateTuples             `protobuf:"bytes,3,rep,name=exchange_rates,json=exchangeRates,proto3,castrepeated=ExchangeRateTuples" json:"exchange_rates"`
	MissCounters                  []MissCounter                  `protobuf:"bytes,4,rep,name=miss_counters,json=missCounters,proto3" json:"miss_counters"`
	AggregateExchangeRatePrevotes []AggregateExchangeRatePrevote `` /* 142-byte string literal not displayed */
	AggregateExchangeRateVotes    []AggregateExchangeRateVote    `` /* 133-byte string literal not displayed */
	PriceHistory                  []PriceHistory                 `protobuf:"bytes,7,rep,name=price_history,json=priceHistory,proto3" json:"price_history"`
}

GenesisState defines the oracle module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns the default genesesis state for the x/oracle module.

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState

GetGenesisStateFromAppState returns x/oracle GenesisState given raw application genesis state.

func NewGenesisState

func NewGenesisState(
	params Params,
	rates []ExchangeRateTuple,
	feederDelegations []FeederDelegation,
	missCounters []MissCounter,
	aggregateExchangeRatePrevotes []AggregateExchangeRatePrevote,
	aggregateExchangeRateVotes []AggregateExchangeRateVote,
	priceHistory []PriceHistory,
) *GenesisState

NewGenesisState creates a new GenesisState object

func (*GenesisState) Descriptor

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

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) 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 MissCounter

type MissCounter struct {
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	MissCounter      uint64 `protobuf:"varint,2,opt,name=miss_counter,json=missCounter,proto3" json:"miss_counter,omitempty"`
}

MissCounter defines an miss counter and validator address pair used in oracle module's genesis state

func (*MissCounter) Descriptor

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

func (*MissCounter) Marshal

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

func (*MissCounter) MarshalTo

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

func (*MissCounter) MarshalToSizedBuffer

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

func (*MissCounter) ProtoMessage

func (*MissCounter) ProtoMessage()

func (*MissCounter) Reset

func (m *MissCounter) Reset()

func (*MissCounter) Size

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

func (*MissCounter) String

func (m *MissCounter) String() string

func (*MissCounter) Unmarshal

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

func (*MissCounter) XXX_DiscardUnknown

func (m *MissCounter) XXX_DiscardUnknown()

func (*MissCounter) XXX_Marshal

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

func (*MissCounter) XXX_Merge

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

func (*MissCounter) XXX_Size

func (m *MissCounter) XXX_Size() int

func (*MissCounter) XXX_Unmarshal

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

type MsgAggregateExchangeRatePrevote

type MsgAggregateExchangeRatePrevote struct {
	Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty" yaml:"hash"`
	// Feeder is the author and the signer of the message.
	Feeder    string `protobuf:"bytes,2,opt,name=feeder,proto3" json:"feeder,omitempty" yaml:"feeder"`
	Validator string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty" yaml:"validator"`
}

MsgAggregateExchangeRatePrevote represents a message to submit an aggregate exchange rate prevote.

func NewMsgAggregateExchangeRatePrevote

func NewMsgAggregateExchangeRatePrevote(
	hash AggregateVoteHash,
	feeder sdk.AccAddress,
	validator sdk.ValAddress,
) *MsgAggregateExchangeRatePrevote

func (*MsgAggregateExchangeRatePrevote) Descriptor

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

func (MsgAggregateExchangeRatePrevote) GetSignBytes

func (msg MsgAggregateExchangeRatePrevote) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgAggregateExchangeRatePrevote) GetSigners

func (msg MsgAggregateExchangeRatePrevote) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAggregateExchangeRatePrevote) Marshal

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

func (*MsgAggregateExchangeRatePrevote) MarshalTo

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

func (*MsgAggregateExchangeRatePrevote) MarshalToSizedBuffer

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

func (*MsgAggregateExchangeRatePrevote) ProtoMessage

func (*MsgAggregateExchangeRatePrevote) ProtoMessage()

func (*MsgAggregateExchangeRatePrevote) Reset

func (*MsgAggregateExchangeRatePrevote) Size

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

func (*MsgAggregateExchangeRatePrevote) String

func (MsgAggregateExchangeRatePrevote) Type

Type implements LegacyMsg interface

func (*MsgAggregateExchangeRatePrevote) Unmarshal

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

func (MsgAggregateExchangeRatePrevote) ValidateBasic

func (msg MsgAggregateExchangeRatePrevote) ValidateBasic() error

ValidateBasic Implements sdk.Msg

func (*MsgAggregateExchangeRatePrevote) XXX_DiscardUnknown

func (m *MsgAggregateExchangeRatePrevote) XXX_DiscardUnknown()

func (*MsgAggregateExchangeRatePrevote) XXX_Marshal

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

func (*MsgAggregateExchangeRatePrevote) XXX_Merge

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

func (*MsgAggregateExchangeRatePrevote) XXX_Size

func (m *MsgAggregateExchangeRatePrevote) XXX_Size() int

func (*MsgAggregateExchangeRatePrevote) XXX_Unmarshal

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

type MsgAggregateExchangeRatePrevoteResponse

type MsgAggregateExchangeRatePrevoteResponse struct {
}

MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type.

func (*MsgAggregateExchangeRatePrevoteResponse) Descriptor

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

func (*MsgAggregateExchangeRatePrevoteResponse) Marshal

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

func (*MsgAggregateExchangeRatePrevoteResponse) MarshalTo

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

func (*MsgAggregateExchangeRatePrevoteResponse) MarshalToSizedBuffer

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

func (*MsgAggregateExchangeRatePrevoteResponse) ProtoMessage

func (*MsgAggregateExchangeRatePrevoteResponse) Reset

func (*MsgAggregateExchangeRatePrevoteResponse) Size

func (*MsgAggregateExchangeRatePrevoteResponse) String

func (*MsgAggregateExchangeRatePrevoteResponse) Unmarshal

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

func (*MsgAggregateExchangeRatePrevoteResponse) XXX_DiscardUnknown

func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_DiscardUnknown()

func (*MsgAggregateExchangeRatePrevoteResponse) XXX_Marshal

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

func (*MsgAggregateExchangeRatePrevoteResponse) XXX_Merge

func (*MsgAggregateExchangeRatePrevoteResponse) XXX_Size

func (*MsgAggregateExchangeRatePrevoteResponse) XXX_Unmarshal

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

type MsgAggregateExchangeRateVote

type MsgAggregateExchangeRateVote struct {
	Salt          string `protobuf:"bytes,1,opt,name=salt,proto3" json:"salt,omitempty" yaml:"salt"`
	ExchangeRates string `protobuf:"bytes,2,opt,name=exchange_rates,json=exchangeRates,proto3" json:"exchange_rates,omitempty" yaml:"exchange_rates"`
	// Feeder is the author and the signer of the message.
	Feeder    string `protobuf:"bytes,3,opt,name=feeder,proto3" json:"feeder,omitempty" yaml:"feeder"`
	Validator string `protobuf:"bytes,4,opt,name=validator,proto3" json:"validator,omitempty" yaml:"validator"`
}

MsgAggregateExchangeRateVote represents a message to submit anaggregate exchange rate vote.

func NewMsgAggregateExchangeRateVote

func NewMsgAggregateExchangeRateVote(
	salt string,
	exchangeRates string,
	feeder sdk.AccAddress,
	validator sdk.ValAddress,
) *MsgAggregateExchangeRateVote

func (*MsgAggregateExchangeRateVote) Descriptor

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

func (MsgAggregateExchangeRateVote) GetSignBytes

func (msg MsgAggregateExchangeRateVote) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgAggregateExchangeRateVote) GetSigners

func (msg MsgAggregateExchangeRateVote) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgAggregateExchangeRateVote) Marshal

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

func (*MsgAggregateExchangeRateVote) MarshalTo

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

func (*MsgAggregateExchangeRateVote) MarshalToSizedBuffer

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

func (*MsgAggregateExchangeRateVote) ProtoMessage

func (*MsgAggregateExchangeRateVote) ProtoMessage()

func (*MsgAggregateExchangeRateVote) Reset

func (m *MsgAggregateExchangeRateVote) Reset()

func (*MsgAggregateExchangeRateVote) Size

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

func (*MsgAggregateExchangeRateVote) String

func (MsgAggregateExchangeRateVote) Type

Type implements LegacyMsg interface

func (*MsgAggregateExchangeRateVote) Unmarshal

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

func (MsgAggregateExchangeRateVote) ValidateBasic

func (msg MsgAggregateExchangeRateVote) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAggregateExchangeRateVote) XXX_DiscardUnknown

func (m *MsgAggregateExchangeRateVote) XXX_DiscardUnknown()

func (*MsgAggregateExchangeRateVote) XXX_Marshal

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

func (*MsgAggregateExchangeRateVote) XXX_Merge

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

func (*MsgAggregateExchangeRateVote) XXX_Size

func (m *MsgAggregateExchangeRateVote) XXX_Size() int

func (*MsgAggregateExchangeRateVote) XXX_Unmarshal

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

type MsgAggregateExchangeRateVoteResponse

type MsgAggregateExchangeRateVoteResponse struct {
}

MsgAggregateExchangeRateVoteResponse defines the Msg/AggregateExchangeRateVote response type.

func (*MsgAggregateExchangeRateVoteResponse) Descriptor

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

func (*MsgAggregateExchangeRateVoteResponse) Marshal

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

func (*MsgAggregateExchangeRateVoteResponse) MarshalTo

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

func (*MsgAggregateExchangeRateVoteResponse) MarshalToSizedBuffer

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

func (*MsgAggregateExchangeRateVoteResponse) ProtoMessage

func (*MsgAggregateExchangeRateVoteResponse) ProtoMessage()

func (*MsgAggregateExchangeRateVoteResponse) Reset

func (*MsgAggregateExchangeRateVoteResponse) Size

func (*MsgAggregateExchangeRateVoteResponse) String

func (*MsgAggregateExchangeRateVoteResponse) Unmarshal

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

func (*MsgAggregateExchangeRateVoteResponse) XXX_DiscardUnknown

func (m *MsgAggregateExchangeRateVoteResponse) XXX_DiscardUnknown()

func (*MsgAggregateExchangeRateVoteResponse) XXX_Marshal

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

func (*MsgAggregateExchangeRateVoteResponse) XXX_Merge

func (*MsgAggregateExchangeRateVoteResponse) XXX_Size

func (*MsgAggregateExchangeRateVoteResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AggregateExchangeRatePrevote defines a method for submitting an aggregate
	// exchange rate prevote.
	AggregateExchangeRatePrevote(ctx context.Context, in *MsgAggregateExchangeRatePrevote, opts ...grpc.CallOption) (*MsgAggregateExchangeRatePrevoteResponse, error)
	// AggregateExchangeRateVote defines a method for submitting an aggregate
	// exchange rate vote.
	AggregateExchangeRateVote(ctx context.Context, in *MsgAggregateExchangeRateVote, opts ...grpc.CallOption) (*MsgAggregateExchangeRateVoteResponse, error)
	// DelegateFeedConsent defines a method for setting the feeder delegation.
	DelegateFeedConsent(ctx context.Context, in *MsgDelegateFeedConsent, opts ...grpc.CallOption) (*MsgDelegateFeedConsentResponse, 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 MsgDelegateFeedConsent

type MsgDelegateFeedConsent struct {
	// Operator is the author and the signer of the message.
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty" yaml:"operator"`
	Delegate string `protobuf:"bytes,2,opt,name=delegate,proto3" json:"delegate,omitempty" yaml:"delegate"`
}

MsgDelegateFeedConsent represents a message to delegate oracle voting rights to another address.

func NewMsgDelegateFeedConsent

func NewMsgDelegateFeedConsent(operatorAddress sdk.ValAddress, feederAddress sdk.AccAddress) *MsgDelegateFeedConsent

NewMsgDelegateFeedConsent creates a MsgDelegateFeedConsent instance

func (*MsgDelegateFeedConsent) Descriptor

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

func (MsgDelegateFeedConsent) GetSignBytes

func (msg MsgDelegateFeedConsent) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (MsgDelegateFeedConsent) GetSigners

func (msg MsgDelegateFeedConsent) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDelegateFeedConsent) Marshal

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

func (*MsgDelegateFeedConsent) MarshalTo

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

func (*MsgDelegateFeedConsent) MarshalToSizedBuffer

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

func (*MsgDelegateFeedConsent) ProtoMessage

func (*MsgDelegateFeedConsent) ProtoMessage()

func (*MsgDelegateFeedConsent) Reset

func (m *MsgDelegateFeedConsent) Reset()

func (*MsgDelegateFeedConsent) Size

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

func (*MsgDelegateFeedConsent) String

func (m *MsgDelegateFeedConsent) String() string

func (MsgDelegateFeedConsent) Type

func (msg MsgDelegateFeedConsent) Type() string

Type implements LegacyMsg interface

func (*MsgDelegateFeedConsent) Unmarshal

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

func (MsgDelegateFeedConsent) ValidateBasic

func (msg MsgDelegateFeedConsent) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDelegateFeedConsent) XXX_DiscardUnknown

func (m *MsgDelegateFeedConsent) XXX_DiscardUnknown()

func (*MsgDelegateFeedConsent) XXX_Marshal

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

func (*MsgDelegateFeedConsent) XXX_Merge

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

func (*MsgDelegateFeedConsent) XXX_Size

func (m *MsgDelegateFeedConsent) XXX_Size() int

func (*MsgDelegateFeedConsent) XXX_Unmarshal

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

type MsgDelegateFeedConsentResponse

type MsgDelegateFeedConsentResponse struct {
}

MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response type.

func (*MsgDelegateFeedConsentResponse) Descriptor

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

func (*MsgDelegateFeedConsentResponse) Marshal

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

func (*MsgDelegateFeedConsentResponse) MarshalTo

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

func (*MsgDelegateFeedConsentResponse) MarshalToSizedBuffer

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

func (*MsgDelegateFeedConsentResponse) ProtoMessage

func (*MsgDelegateFeedConsentResponse) ProtoMessage()

func (*MsgDelegateFeedConsentResponse) Reset

func (m *MsgDelegateFeedConsentResponse) Reset()

func (*MsgDelegateFeedConsentResponse) Size

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

func (*MsgDelegateFeedConsentResponse) String

func (*MsgDelegateFeedConsentResponse) Unmarshal

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

func (*MsgDelegateFeedConsentResponse) XXX_DiscardUnknown

func (m *MsgDelegateFeedConsentResponse) XXX_DiscardUnknown()

func (*MsgDelegateFeedConsentResponse) XXX_Marshal

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

func (*MsgDelegateFeedConsentResponse) XXX_Merge

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

func (*MsgDelegateFeedConsentResponse) XXX_Size

func (m *MsgDelegateFeedConsentResponse) XXX_Size() int

func (*MsgDelegateFeedConsentResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AggregateExchangeRatePrevote defines a method for submitting an aggregate
	// exchange rate prevote.
	AggregateExchangeRatePrevote(context.Context, *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error)
	// AggregateExchangeRateVote defines a method for submitting an aggregate
	// exchange rate vote.
	AggregateExchangeRateVote(context.Context, *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error)
	// DelegateFeedConsent defines a method for setting the feeder delegation.
	DelegateFeedConsent(context.Context, *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	VotePeriod               uint64                                 `protobuf:"varint,1,opt,name=vote_period,json=votePeriod,proto3" json:"vote_period,omitempty" yaml:"vote_period"`
	VoteThreshold            github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */
	RewardBand               github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */
	RewardDistributionWindow uint64                                 `` /* 170-byte string literal not displayed */
	Whitelist                DenomList                              `protobuf:"bytes,5,rep,name=whitelist,proto3,castrepeated=DenomList" json:"whitelist" yaml:"whitelist"`
	SlashFraction            github_com_cosmos_cosmos_sdk_types.Dec `` /* 162-byte string literal not displayed */
	SlashWindow              uint64                                 `protobuf:"varint,7,opt,name=slash_window,json=slashWindow,proto3" json:"slash_window,omitempty" yaml:"slash_window"`
	MinValidPerWindow        github_com_cosmos_cosmos_sdk_types.Dec `` /* 184-byte string literal not displayed */
	TwapTrackingList         DenomList                              `` /* 150-byte string literal not displayed */
	TwapDuration             time.Duration                          `` /* 131-byte string literal not displayed */
}

Params defines the parameters for the oracle module.

func DefaultParams

func DefaultParams() Params

DefaultParams creates default oracle module parameters

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

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() paramstypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns all the key/value pairs pairs of oracle module's parameters.

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 fmt.Stringer interface

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate performs basic validation on oracle parameters.

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 PriceHistory

type PriceHistory struct {
	Denom             Denom               `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom" yaml:"denom"`
	PriceHistoryEntry []PriceHistoryEntry `` /* 131-byte string literal not displayed */
}

History Price

func (*PriceHistory) Descriptor

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

func (*PriceHistory) Marshal

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

func (*PriceHistory) MarshalTo

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

func (*PriceHistory) MarshalToSizedBuffer

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

func (*PriceHistory) ProtoMessage

func (*PriceHistory) ProtoMessage()

func (*PriceHistory) Reset

func (m *PriceHistory) Reset()

func (*PriceHistory) Size

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

func (*PriceHistory) String

func (m *PriceHistory) String() string

func (*PriceHistory) Unmarshal

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

func (*PriceHistory) XXX_DiscardUnknown

func (m *PriceHistory) XXX_DiscardUnknown()

func (*PriceHistory) XXX_Marshal

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

func (*PriceHistory) XXX_Merge

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

func (*PriceHistory) XXX_Size

func (m *PriceHistory) XXX_Size() int

func (*PriceHistory) XXX_Unmarshal

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

type PriceHistoryEntry

type PriceHistoryEntry struct {
	Price           github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price" yaml:"price"`
	VotePeriodCount uint64                                 `protobuf:"varint,2,opt,name=vote_period_count,json=votePeriodCount,proto3" json:"vote_period_count,omitempty"`
	PriceUpdateTime time.Time                              `` /* 131-byte string literal not displayed */
}

func (*PriceHistoryEntry) Descriptor

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

func (*PriceHistoryEntry) Marshal

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

func (*PriceHistoryEntry) MarshalTo

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

func (*PriceHistoryEntry) MarshalToSizedBuffer

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

func (*PriceHistoryEntry) ProtoMessage

func (*PriceHistoryEntry) ProtoMessage()

func (*PriceHistoryEntry) Reset

func (m *PriceHistoryEntry) Reset()

func (*PriceHistoryEntry) Size

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

func (*PriceHistoryEntry) String

func (m *PriceHistoryEntry) String() string

func (*PriceHistoryEntry) Unmarshal

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

func (*PriceHistoryEntry) XXX_DiscardUnknown

func (m *PriceHistoryEntry) XXX_DiscardUnknown()

func (*PriceHistoryEntry) XXX_Marshal

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

func (*PriceHistoryEntry) XXX_Merge

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

func (*PriceHistoryEntry) XXX_Size

func (m *PriceHistoryEntry) XXX_Size() int

func (*PriceHistoryEntry) XXX_Unmarshal

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

type ProposalType

type ProposalType string
const (
	ProposalTypeAddTrackingPriceHistory              ProposalType = "AddTrackingPriceHistory"
	ProposalTypeAddTrackingPriceHistoryWithWhitelist ProposalType = "AddTrackingPriceHistoryWithWhitelist"
	ProposalTypeRemoveTrackingPriceHistoryProposal   ProposalType = "RemoveTrackingPriceHistoryProposal"
)

type QueryActiveExchangeRates

type QueryActiveExchangeRates struct {
}

QueryActiveExchangeRates is the request type for the Query/ActiveExchangeRates RPC method.

func (*QueryActiveExchangeRates) Descriptor

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

func (*QueryActiveExchangeRates) Marshal

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

func (*QueryActiveExchangeRates) MarshalTo

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

func (*QueryActiveExchangeRates) MarshalToSizedBuffer

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

func (*QueryActiveExchangeRates) ProtoMessage

func (*QueryActiveExchangeRates) ProtoMessage()

func (*QueryActiveExchangeRates) Reset

func (m *QueryActiveExchangeRates) Reset()

func (*QueryActiveExchangeRates) Size

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

func (*QueryActiveExchangeRates) String

func (m *QueryActiveExchangeRates) String() string

func (*QueryActiveExchangeRates) Unmarshal

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

func (*QueryActiveExchangeRates) XXX_DiscardUnknown

func (m *QueryActiveExchangeRates) XXX_DiscardUnknown()

func (*QueryActiveExchangeRates) XXX_Marshal

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

func (*QueryActiveExchangeRates) XXX_Merge

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

func (*QueryActiveExchangeRates) XXX_Size

func (m *QueryActiveExchangeRates) XXX_Size() int

func (*QueryActiveExchangeRates) XXX_Unmarshal

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

type QueryActiveExchangeRatesResponse

type QueryActiveExchangeRatesResponse struct {
	// activeRates defines a list of the denomination which oracle prices aggreed
	// upon.
	ActiveRates []string `protobuf:"bytes,1,rep,name=active_rates,json=activeRates,proto3" json:"active_rates,omitempty"`
}

QueryActiveExchangeRatesResponse is response type for the Query/ActiveExchangeRates RPC method.

func (*QueryActiveExchangeRatesResponse) Descriptor

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

func (*QueryActiveExchangeRatesResponse) Marshal

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

func (*QueryActiveExchangeRatesResponse) MarshalTo

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

func (*QueryActiveExchangeRatesResponse) MarshalToSizedBuffer

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

func (*QueryActiveExchangeRatesResponse) ProtoMessage

func (*QueryActiveExchangeRatesResponse) ProtoMessage()

func (*QueryActiveExchangeRatesResponse) Reset

func (*QueryActiveExchangeRatesResponse) Size

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

func (*QueryActiveExchangeRatesResponse) String

func (*QueryActiveExchangeRatesResponse) Unmarshal

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

func (*QueryActiveExchangeRatesResponse) XXX_DiscardUnknown

func (m *QueryActiveExchangeRatesResponse) XXX_DiscardUnknown()

func (*QueryActiveExchangeRatesResponse) XXX_Marshal

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

func (*QueryActiveExchangeRatesResponse) XXX_Merge

func (*QueryActiveExchangeRatesResponse) XXX_Size

func (m *QueryActiveExchangeRatesResponse) XXX_Size() int

func (*QueryActiveExchangeRatesResponse) XXX_Unmarshal

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

type QueryAggregatePrevote

type QueryAggregatePrevote struct {
	// validator defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryAggregatePrevote is the request type for the Query/AggregatePrevote RPC method.

func (*QueryAggregatePrevote) Descriptor

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

func (*QueryAggregatePrevote) Marshal

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

func (*QueryAggregatePrevote) MarshalTo

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

func (*QueryAggregatePrevote) MarshalToSizedBuffer

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

func (*QueryAggregatePrevote) ProtoMessage

func (*QueryAggregatePrevote) ProtoMessage()

func (*QueryAggregatePrevote) Reset

func (m *QueryAggregatePrevote) Reset()

func (*QueryAggregatePrevote) Size

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

func (*QueryAggregatePrevote) String

func (m *QueryAggregatePrevote) String() string

func (*QueryAggregatePrevote) Unmarshal

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

func (*QueryAggregatePrevote) XXX_DiscardUnknown

func (m *QueryAggregatePrevote) XXX_DiscardUnknown()

func (*QueryAggregatePrevote) XXX_Marshal

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

func (*QueryAggregatePrevote) XXX_Merge

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

func (*QueryAggregatePrevote) XXX_Size

func (m *QueryAggregatePrevote) XXX_Size() int

func (*QueryAggregatePrevote) XXX_Unmarshal

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

type QueryAggregatePrevoteResponse

type QueryAggregatePrevoteResponse struct {
	// aggregate_prevote defines oracle aggregate prevote submitted by a validator
	// in the current vote period
	AggregatePrevote AggregateExchangeRatePrevote `protobuf:"bytes,1,opt,name=aggregate_prevote,json=aggregatePrevote,proto3" json:"aggregate_prevote"`
}

QueryAggregatePrevoteResponse is response type for the Query/AggregatePrevote RPC method.

func (*QueryAggregatePrevoteResponse) Descriptor

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

func (*QueryAggregatePrevoteResponse) Marshal

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

func (*QueryAggregatePrevoteResponse) MarshalTo

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

func (*QueryAggregatePrevoteResponse) MarshalToSizedBuffer

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

func (*QueryAggregatePrevoteResponse) ProtoMessage

func (*QueryAggregatePrevoteResponse) ProtoMessage()

func (*QueryAggregatePrevoteResponse) Reset

func (m *QueryAggregatePrevoteResponse) Reset()

func (*QueryAggregatePrevoteResponse) Size

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

func (*QueryAggregatePrevoteResponse) String

func (*QueryAggregatePrevoteResponse) Unmarshal

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

func (*QueryAggregatePrevoteResponse) XXX_DiscardUnknown

func (m *QueryAggregatePrevoteResponse) XXX_DiscardUnknown()

func (*QueryAggregatePrevoteResponse) XXX_Marshal

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

func (*QueryAggregatePrevoteResponse) XXX_Merge

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

func (*QueryAggregatePrevoteResponse) XXX_Size

func (m *QueryAggregatePrevoteResponse) XXX_Size() int

func (*QueryAggregatePrevoteResponse) XXX_Unmarshal

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

type QueryAggregatePrevotes

type QueryAggregatePrevotes struct {
}

QueryAggregatePrevotes is the request type for the Query/AggregatePrevotes RPC method.

func (*QueryAggregatePrevotes) Descriptor

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

func (*QueryAggregatePrevotes) Marshal

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

func (*QueryAggregatePrevotes) MarshalTo

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

func (*QueryAggregatePrevotes) MarshalToSizedBuffer

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

func (*QueryAggregatePrevotes) ProtoMessage

func (*QueryAggregatePrevotes) ProtoMessage()

func (*QueryAggregatePrevotes) Reset

func (m *QueryAggregatePrevotes) Reset()

func (*QueryAggregatePrevotes) Size

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

func (*QueryAggregatePrevotes) String

func (m *QueryAggregatePrevotes) String() string

func (*QueryAggregatePrevotes) Unmarshal

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

func (*QueryAggregatePrevotes) XXX_DiscardUnknown

func (m *QueryAggregatePrevotes) XXX_DiscardUnknown()

func (*QueryAggregatePrevotes) XXX_Marshal

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

func (*QueryAggregatePrevotes) XXX_Merge

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

func (*QueryAggregatePrevotes) XXX_Size

func (m *QueryAggregatePrevotes) XXX_Size() int

func (*QueryAggregatePrevotes) XXX_Unmarshal

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

type QueryAggregatePrevotesResponse

type QueryAggregatePrevotesResponse struct {
	// aggregate_prevotes defines all oracle aggregate prevotes submitted in the
	// current vote period
	AggregatePrevotes []AggregateExchangeRatePrevote `protobuf:"bytes,1,rep,name=aggregate_prevotes,json=aggregatePrevotes,proto3" json:"aggregate_prevotes"`
}

QueryAggregatePrevotesResponse is response type for the Query/AggregatePrevotes RPC method.

func (*QueryAggregatePrevotesResponse) Descriptor

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

func (*QueryAggregatePrevotesResponse) Marshal

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

func (*QueryAggregatePrevotesResponse) MarshalTo

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

func (*QueryAggregatePrevotesResponse) MarshalToSizedBuffer

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

func (*QueryAggregatePrevotesResponse) ProtoMessage

func (*QueryAggregatePrevotesResponse) ProtoMessage()

func (*QueryAggregatePrevotesResponse) Reset

func (m *QueryAggregatePrevotesResponse) Reset()

func (*QueryAggregatePrevotesResponse) Size

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

func (*QueryAggregatePrevotesResponse) String

func (*QueryAggregatePrevotesResponse) Unmarshal

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

func (*QueryAggregatePrevotesResponse) XXX_DiscardUnknown

func (m *QueryAggregatePrevotesResponse) XXX_DiscardUnknown()

func (*QueryAggregatePrevotesResponse) XXX_Marshal

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

func (*QueryAggregatePrevotesResponse) XXX_Merge

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

func (*QueryAggregatePrevotesResponse) XXX_Size

func (m *QueryAggregatePrevotesResponse) XXX_Size() int

func (*QueryAggregatePrevotesResponse) XXX_Unmarshal

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

type QueryAggregateVote

type QueryAggregateVote struct {
	// validator defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryAggregateVote is the request type for the Query/AggregateVote RPC method.

func (*QueryAggregateVote) Descriptor

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

func (*QueryAggregateVote) Marshal

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

func (*QueryAggregateVote) MarshalTo

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

func (*QueryAggregateVote) MarshalToSizedBuffer

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

func (*QueryAggregateVote) ProtoMessage

func (*QueryAggregateVote) ProtoMessage()

func (*QueryAggregateVote) Reset

func (m *QueryAggregateVote) Reset()

func (*QueryAggregateVote) Size

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

func (*QueryAggregateVote) String

func (m *QueryAggregateVote) String() string

func (*QueryAggregateVote) Unmarshal

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

func (*QueryAggregateVote) XXX_DiscardUnknown

func (m *QueryAggregateVote) XXX_DiscardUnknown()

func (*QueryAggregateVote) XXX_Marshal

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

func (*QueryAggregateVote) XXX_Merge

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

func (*QueryAggregateVote) XXX_Size

func (m *QueryAggregateVote) XXX_Size() int

func (*QueryAggregateVote) XXX_Unmarshal

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

type QueryAggregateVoteResponse

type QueryAggregateVoteResponse struct {
	// aggregate_vote defines oracle aggregate vote submitted by a validator in
	// the current vote period
	AggregateVote AggregateExchangeRateVote `protobuf:"bytes,1,opt,name=aggregate_vote,json=aggregateVote,proto3" json:"aggregate_vote"`
}

QueryAggregateVoteResponse is response type for the Query/AggregateVote RPC method.

func (*QueryAggregateVoteResponse) Descriptor

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

func (*QueryAggregateVoteResponse) Marshal

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

func (*QueryAggregateVoteResponse) MarshalTo

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

func (*QueryAggregateVoteResponse) MarshalToSizedBuffer

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

func (*QueryAggregateVoteResponse) ProtoMessage

func (*QueryAggregateVoteResponse) ProtoMessage()

func (*QueryAggregateVoteResponse) Reset

func (m *QueryAggregateVoteResponse) Reset()

func (*QueryAggregateVoteResponse) Size

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

func (*QueryAggregateVoteResponse) String

func (m *QueryAggregateVoteResponse) String() string

func (*QueryAggregateVoteResponse) Unmarshal

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

func (*QueryAggregateVoteResponse) XXX_DiscardUnknown

func (m *QueryAggregateVoteResponse) XXX_DiscardUnknown()

func (*QueryAggregateVoteResponse) XXX_Marshal

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

func (*QueryAggregateVoteResponse) XXX_Merge

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

func (*QueryAggregateVoteResponse) XXX_Size

func (m *QueryAggregateVoteResponse) XXX_Size() int

func (*QueryAggregateVoteResponse) XXX_Unmarshal

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

type QueryAggregateVotes

type QueryAggregateVotes struct {
}

QueryAggregateVotes is the request type for the Query/AggregateVotes RPC method.

func (*QueryAggregateVotes) Descriptor

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

func (*QueryAggregateVotes) Marshal

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

func (*QueryAggregateVotes) MarshalTo

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

func (*QueryAggregateVotes) MarshalToSizedBuffer

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

func (*QueryAggregateVotes) ProtoMessage

func (*QueryAggregateVotes) ProtoMessage()

func (*QueryAggregateVotes) Reset

func (m *QueryAggregateVotes) Reset()

func (*QueryAggregateVotes) Size

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

func (*QueryAggregateVotes) String

func (m *QueryAggregateVotes) String() string

func (*QueryAggregateVotes) Unmarshal

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

func (*QueryAggregateVotes) XXX_DiscardUnknown

func (m *QueryAggregateVotes) XXX_DiscardUnknown()

func (*QueryAggregateVotes) XXX_Marshal

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

func (*QueryAggregateVotes) XXX_Merge

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

func (*QueryAggregateVotes) XXX_Size

func (m *QueryAggregateVotes) XXX_Size() int

func (*QueryAggregateVotes) XXX_Unmarshal

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

type QueryAggregateVotesResponse

type QueryAggregateVotesResponse struct {
	// aggregate_votes defines all oracle aggregate votes submitted in the current
	// vote period
	AggregateVotes []AggregateExchangeRateVote `protobuf:"bytes,1,rep,name=aggregate_votes,json=aggregateVotes,proto3" json:"aggregate_votes"`
}

QueryAggregateVotesResponse is response type for the Query/AggregateVotes RPC method.

func (*QueryAggregateVotesResponse) Descriptor

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

func (*QueryAggregateVotesResponse) Marshal

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

func (*QueryAggregateVotesResponse) MarshalTo

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

func (*QueryAggregateVotesResponse) MarshalToSizedBuffer

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

func (*QueryAggregateVotesResponse) ProtoMessage

func (*QueryAggregateVotesResponse) ProtoMessage()

func (*QueryAggregateVotesResponse) Reset

func (m *QueryAggregateVotesResponse) Reset()

func (*QueryAggregateVotesResponse) Size

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

func (*QueryAggregateVotesResponse) String

func (m *QueryAggregateVotesResponse) String() string

func (*QueryAggregateVotesResponse) Unmarshal

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

func (*QueryAggregateVotesResponse) XXX_DiscardUnknown

func (m *QueryAggregateVotesResponse) XXX_DiscardUnknown()

func (*QueryAggregateVotesResponse) XXX_Marshal

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

func (*QueryAggregateVotesResponse) XXX_Merge

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

func (*QueryAggregateVotesResponse) XXX_Size

func (m *QueryAggregateVotesResponse) XXX_Size() int

func (*QueryAggregateVotesResponse) XXX_Unmarshal

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

type QueryAllPriceHistory

type QueryAllPriceHistory struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPriceHistory) Descriptor

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

func (*QueryAllPriceHistory) Marshal

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

func (*QueryAllPriceHistory) MarshalTo

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

func (*QueryAllPriceHistory) MarshalToSizedBuffer

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

func (*QueryAllPriceHistory) ProtoMessage

func (*QueryAllPriceHistory) ProtoMessage()

func (*QueryAllPriceHistory) Reset

func (m *QueryAllPriceHistory) Reset()

func (*QueryAllPriceHistory) Size

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

func (*QueryAllPriceHistory) String

func (m *QueryAllPriceHistory) String() string

func (*QueryAllPriceHistory) Unmarshal

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

func (*QueryAllPriceHistory) XXX_DiscardUnknown

func (m *QueryAllPriceHistory) XXX_DiscardUnknown()

func (*QueryAllPriceHistory) XXX_Marshal

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

func (*QueryAllPriceHistory) XXX_Merge

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

func (*QueryAllPriceHistory) XXX_Size

func (m *QueryAllPriceHistory) XXX_Size() int

func (*QueryAllPriceHistory) XXX_Unmarshal

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

type QueryAllPriceHistoryResponse

type QueryAllPriceHistoryResponse struct {
	Denom              Denom               `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom"`
	PriceHistoryEntrys []PriceHistoryEntry `protobuf:"bytes,2,rep,name=price_history_entrys,json=priceHistoryEntrys,proto3" json:"price_history_entrys"`
	Pagination         *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllPriceHistoryResponse) Descriptor

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

func (*QueryAllPriceHistoryResponse) Marshal

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

func (*QueryAllPriceHistoryResponse) MarshalTo

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

func (*QueryAllPriceHistoryResponse) MarshalToSizedBuffer

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

func (*QueryAllPriceHistoryResponse) ProtoMessage

func (*QueryAllPriceHistoryResponse) ProtoMessage()

func (*QueryAllPriceHistoryResponse) Reset

func (m *QueryAllPriceHistoryResponse) Reset()

func (*QueryAllPriceHistoryResponse) Size

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

func (*QueryAllPriceHistoryResponse) String

func (*QueryAllPriceHistoryResponse) Unmarshal

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

func (*QueryAllPriceHistoryResponse) XXX_DiscardUnknown

func (m *QueryAllPriceHistoryResponse) XXX_DiscardUnknown()

func (*QueryAllPriceHistoryResponse) XXX_Marshal

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

func (*QueryAllPriceHistoryResponse) XXX_Merge

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

func (*QueryAllPriceHistoryResponse) XXX_Size

func (m *QueryAllPriceHistoryResponse) XXX_Size() int

func (*QueryAllPriceHistoryResponse) XXX_Unmarshal

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

type QueryArithmeticTwapPriceBetweenTime

type QueryArithmeticTwapPriceBetweenTime struct {
	Denom     string    `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"`
	EndTime   time.Time `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time" yaml:"end_time"`
}

func (*QueryArithmeticTwapPriceBetweenTime) Descriptor

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

func (*QueryArithmeticTwapPriceBetweenTime) Marshal

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

func (*QueryArithmeticTwapPriceBetweenTime) MarshalTo

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

func (*QueryArithmeticTwapPriceBetweenTime) MarshalToSizedBuffer

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

func (*QueryArithmeticTwapPriceBetweenTime) ProtoMessage

func (*QueryArithmeticTwapPriceBetweenTime) ProtoMessage()

func (*QueryArithmeticTwapPriceBetweenTime) Reset

func (*QueryArithmeticTwapPriceBetweenTime) Size

func (*QueryArithmeticTwapPriceBetweenTime) String

func (*QueryArithmeticTwapPriceBetweenTime) Unmarshal

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

func (*QueryArithmeticTwapPriceBetweenTime) XXX_DiscardUnknown

func (m *QueryArithmeticTwapPriceBetweenTime) XXX_DiscardUnknown()

func (*QueryArithmeticTwapPriceBetweenTime) XXX_Marshal

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

func (*QueryArithmeticTwapPriceBetweenTime) XXX_Merge

func (*QueryArithmeticTwapPriceBetweenTime) XXX_Size

func (*QueryArithmeticTwapPriceBetweenTime) XXX_Unmarshal

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

type QueryArithmeticTwapPriceBetweenTimeResponse

type QueryArithmeticTwapPriceBetweenTimeResponse struct {
	TwapPrice types.DecCoin `protobuf:"bytes,1,opt,name=twap_price,json=twapPrice,proto3" json:"twap_price" yaml:"twap_price"`
}

func (*QueryArithmeticTwapPriceBetweenTimeResponse) Descriptor

func (*QueryArithmeticTwapPriceBetweenTimeResponse) Marshal

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

func (*QueryArithmeticTwapPriceBetweenTimeResponse) MarshalTo

func (*QueryArithmeticTwapPriceBetweenTimeResponse) MarshalToSizedBuffer

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

func (*QueryArithmeticTwapPriceBetweenTimeResponse) ProtoMessage

func (*QueryArithmeticTwapPriceBetweenTimeResponse) Reset

func (*QueryArithmeticTwapPriceBetweenTimeResponse) Size

func (*QueryArithmeticTwapPriceBetweenTimeResponse) String

func (*QueryArithmeticTwapPriceBetweenTimeResponse) Unmarshal

func (*QueryArithmeticTwapPriceBetweenTimeResponse) XXX_DiscardUnknown

func (m *QueryArithmeticTwapPriceBetweenTimeResponse) XXX_DiscardUnknown()

func (*QueryArithmeticTwapPriceBetweenTimeResponse) XXX_Marshal

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

func (*QueryArithmeticTwapPriceBetweenTimeResponse) XXX_Merge

func (*QueryArithmeticTwapPriceBetweenTimeResponse) XXX_Size

func (*QueryArithmeticTwapPriceBetweenTimeResponse) XXX_Unmarshal

type QueryClient

type QueryClient interface {
	// ExchangeRates returns exchange rates of all denoms,
	// or, if specified, returns a single denom
	ExchangeRates(ctx context.Context, in *QueryExchangeRates, opts ...grpc.CallOption) (*QueryExchangeRatesResponse, error)
	// ActiveExchangeRates returns all active denoms
	ActiveExchangeRates(ctx context.Context, in *QueryActiveExchangeRates, opts ...grpc.CallOption) (*QueryActiveExchangeRatesResponse, error)
	// PriceHistoryAtTime return price of denom at specific time
	PriceHistoryAtTime(ctx context.Context, in *QueryPriceHistoryAtTime, opts ...grpc.CallOption) (*QueryPriceHistoryAtTimeResponse, error)
	// AllPriceHistory return all price history of denom
	AllPriceHistory(ctx context.Context, in *QueryAllPriceHistory, opts ...grpc.CallOption) (*QueryAllPriceHistoryResponse, error)
	// TwapTrackingLists return all price tracking denom
	TwapTrackingLists(ctx context.Context, in *QueryTwapTrackingLists, opts ...grpc.CallOption) (*QueryTwapTrackingListsResponse, error)
	// ArithmeticTwapPriceBetweenTime return denom twap price between startTime
	// and endTime
	ArithmeticTwapPriceBetweenTime(ctx context.Context, in *QueryArithmeticTwapPriceBetweenTime, opts ...grpc.CallOption) (*QueryArithmeticTwapPriceBetweenTimeResponse, error)
	// FeederDelegation returns feeder delegation of a validator
	FeederDelegation(ctx context.Context, in *QueryFeederDelegation, opts ...grpc.CallOption) (*QueryFeederDelegationResponse, error)
	// MissCounter returns oracle miss counter of a validator
	MissCounter(ctx context.Context, in *QueryMissCounter, opts ...grpc.CallOption) (*QueryMissCounterResponse, error)
	// SlashWindow returns slash window information
	SlashWindow(ctx context.Context, in *QuerySlashWindow, opts ...grpc.CallOption) (*QuerySlashWindowResponse, error)
	// AggregatePrevote returns an aggregate prevote of a validator
	AggregatePrevote(ctx context.Context, in *QueryAggregatePrevote, opts ...grpc.CallOption) (*QueryAggregatePrevoteResponse, error)
	// AggregatePrevotes returns aggregate prevotes of all validators
	AggregatePrevotes(ctx context.Context, in *QueryAggregatePrevotes, opts ...grpc.CallOption) (*QueryAggregatePrevotesResponse, error)
	// AggregateVote returns an aggregate vote of a validator
	AggregateVote(ctx context.Context, in *QueryAggregateVote, opts ...grpc.CallOption) (*QueryAggregateVoteResponse, error)
	// AggregateVotes returns aggregate votes of all validators
	AggregateVotes(ctx context.Context, in *QueryAggregateVotes, opts ...grpc.CallOption) (*QueryAggregateVotesResponse, error)
	// Params queries all parameters.
	Params(ctx context.Context, in *QueryParams, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryExchangeRates

type QueryExchangeRates struct {
	// denom defines the denomination to query for.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

QueryExchangeRates is the request type for the Query/ExchangeRate RPC method.

func (*QueryExchangeRates) Descriptor

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

func (*QueryExchangeRates) Marshal

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

func (*QueryExchangeRates) MarshalTo

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

func (*QueryExchangeRates) MarshalToSizedBuffer

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

func (*QueryExchangeRates) ProtoMessage

func (*QueryExchangeRates) ProtoMessage()

func (*QueryExchangeRates) Reset

func (m *QueryExchangeRates) Reset()

func (*QueryExchangeRates) Size

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

func (*QueryExchangeRates) String

func (m *QueryExchangeRates) String() string

func (*QueryExchangeRates) Unmarshal

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

func (*QueryExchangeRates) XXX_DiscardUnknown

func (m *QueryExchangeRates) XXX_DiscardUnknown()

func (*QueryExchangeRates) XXX_Marshal

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

func (*QueryExchangeRates) XXX_Merge

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

func (*QueryExchangeRates) XXX_Size

func (m *QueryExchangeRates) XXX_Size() int

func (*QueryExchangeRates) XXX_Unmarshal

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

type QueryExchangeRatesResponse

type QueryExchangeRatesResponse struct {
	// exchange_rates defines a list of the exchange rate for all whitelisted
	// denoms.
	ExchangeRates github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 147-byte string literal not displayed */
}

QueryExchangeRatesResponse is response type for the Query/ExchangeRates RPC method.

func (*QueryExchangeRatesResponse) Descriptor

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

func (*QueryExchangeRatesResponse) Marshal

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

func (*QueryExchangeRatesResponse) MarshalTo

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

func (*QueryExchangeRatesResponse) MarshalToSizedBuffer

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

func (*QueryExchangeRatesResponse) ProtoMessage

func (*QueryExchangeRatesResponse) ProtoMessage()

func (*QueryExchangeRatesResponse) Reset

func (m *QueryExchangeRatesResponse) Reset()

func (*QueryExchangeRatesResponse) Size

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

func (*QueryExchangeRatesResponse) String

func (m *QueryExchangeRatesResponse) String() string

func (*QueryExchangeRatesResponse) Unmarshal

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

func (*QueryExchangeRatesResponse) XXX_DiscardUnknown

func (m *QueryExchangeRatesResponse) XXX_DiscardUnknown()

func (*QueryExchangeRatesResponse) XXX_Marshal

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

func (*QueryExchangeRatesResponse) XXX_Merge

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

func (*QueryExchangeRatesResponse) XXX_Size

func (m *QueryExchangeRatesResponse) XXX_Size() int

func (*QueryExchangeRatesResponse) XXX_Unmarshal

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

type QueryFeederDelegation

type QueryFeederDelegation struct {
	// validator defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryFeederDelegation is the request type for the Query/FeederDelegation RPC method.

func (*QueryFeederDelegation) Descriptor

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

func (*QueryFeederDelegation) Marshal

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

func (*QueryFeederDelegation) MarshalTo

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

func (*QueryFeederDelegation) MarshalToSizedBuffer

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

func (*QueryFeederDelegation) ProtoMessage

func (*QueryFeederDelegation) ProtoMessage()

func (*QueryFeederDelegation) Reset

func (m *QueryFeederDelegation) Reset()

func (*QueryFeederDelegation) Size

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

func (*QueryFeederDelegation) String

func (m *QueryFeederDelegation) String() string

func (*QueryFeederDelegation) Unmarshal

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

func (*QueryFeederDelegation) XXX_DiscardUnknown

func (m *QueryFeederDelegation) XXX_DiscardUnknown()

func (*QueryFeederDelegation) XXX_Marshal

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

func (*QueryFeederDelegation) XXX_Merge

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

func (*QueryFeederDelegation) XXX_Size

func (m *QueryFeederDelegation) XXX_Size() int

func (*QueryFeederDelegation) XXX_Unmarshal

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

type QueryFeederDelegationResponse

type QueryFeederDelegationResponse struct {
	// feeder_addr defines the feeder delegation of a validator
	FeederAddr string `protobuf:"bytes,1,opt,name=feeder_addr,json=feederAddr,proto3" json:"feeder_addr,omitempty"`
}

QueryFeederDelegationResponse is response type for the Query/FeederDelegation RPC method.

func (*QueryFeederDelegationResponse) Descriptor

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

func (*QueryFeederDelegationResponse) Marshal

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

func (*QueryFeederDelegationResponse) MarshalTo

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

func (*QueryFeederDelegationResponse) MarshalToSizedBuffer

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

func (*QueryFeederDelegationResponse) ProtoMessage

func (*QueryFeederDelegationResponse) ProtoMessage()

func (*QueryFeederDelegationResponse) Reset

func (m *QueryFeederDelegationResponse) Reset()

func (*QueryFeederDelegationResponse) Size

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

func (*QueryFeederDelegationResponse) String

func (*QueryFeederDelegationResponse) Unmarshal

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

func (*QueryFeederDelegationResponse) XXX_DiscardUnknown

func (m *QueryFeederDelegationResponse) XXX_DiscardUnknown()

func (*QueryFeederDelegationResponse) XXX_Marshal

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

func (*QueryFeederDelegationResponse) XXX_Merge

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

func (*QueryFeederDelegationResponse) XXX_Size

func (m *QueryFeederDelegationResponse) XXX_Size() int

func (*QueryFeederDelegationResponse) XXX_Unmarshal

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

type QueryMissCounter

type QueryMissCounter struct {
	// validator defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryMissCounter is the request type for the Query/MissCounter RPC method.

func (*QueryMissCounter) Descriptor

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

func (*QueryMissCounter) Marshal

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

func (*QueryMissCounter) MarshalTo

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

func (*QueryMissCounter) MarshalToSizedBuffer

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

func (*QueryMissCounter) ProtoMessage

func (*QueryMissCounter) ProtoMessage()

func (*QueryMissCounter) Reset

func (m *QueryMissCounter) Reset()

func (*QueryMissCounter) Size

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

func (*QueryMissCounter) String

func (m *QueryMissCounter) String() string

func (*QueryMissCounter) Unmarshal

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

func (*QueryMissCounter) XXX_DiscardUnknown

func (m *QueryMissCounter) XXX_DiscardUnknown()

func (*QueryMissCounter) XXX_Marshal

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

func (*QueryMissCounter) XXX_Merge

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

func (*QueryMissCounter) XXX_Size

func (m *QueryMissCounter) XXX_Size() int

func (*QueryMissCounter) XXX_Unmarshal

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

type QueryMissCounterResponse

type QueryMissCounterResponse struct {
	// miss_counter defines the oracle miss counter of a validator
	MissCounter uint64 `protobuf:"varint,1,opt,name=miss_counter,json=missCounter,proto3" json:"miss_counter,omitempty"`
}

QueryMissCounterResponse is response type for the Query/MissCounter RPC method.

func (*QueryMissCounterResponse) Descriptor

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

func (*QueryMissCounterResponse) Marshal

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

func (*QueryMissCounterResponse) MarshalTo

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

func (*QueryMissCounterResponse) MarshalToSizedBuffer

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

func (*QueryMissCounterResponse) ProtoMessage

func (*QueryMissCounterResponse) ProtoMessage()

func (*QueryMissCounterResponse) Reset

func (m *QueryMissCounterResponse) Reset()

func (*QueryMissCounterResponse) Size

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

func (*QueryMissCounterResponse) String

func (m *QueryMissCounterResponse) String() string

func (*QueryMissCounterResponse) Unmarshal

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

func (*QueryMissCounterResponse) XXX_DiscardUnknown

func (m *QueryMissCounterResponse) XXX_DiscardUnknown()

func (*QueryMissCounterResponse) XXX_Marshal

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

func (*QueryMissCounterResponse) XXX_Merge

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

func (*QueryMissCounterResponse) XXX_Size

func (m *QueryMissCounterResponse) XXX_Size() int

func (*QueryMissCounterResponse) XXX_Unmarshal

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

type QueryParams

type QueryParams struct {
}

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

func (*QueryParams) Descriptor

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

func (*QueryParams) Marshal

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

func (*QueryParams) MarshalTo

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

func (*QueryParams) MarshalToSizedBuffer

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

func (*QueryParams) ProtoMessage

func (*QueryParams) ProtoMessage()

func (*QueryParams) Reset

func (m *QueryParams) Reset()

func (*QueryParams) Size

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

func (*QueryParams) String

func (m *QueryParams) String() string

func (*QueryParams) Unmarshal

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

func (*QueryParams) XXX_DiscardUnknown

func (m *QueryParams) XXX_DiscardUnknown()

func (*QueryParams) XXX_Marshal

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

func (*QueryParams) XXX_Merge

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

func (*QueryParams) XXX_Size

func (m *QueryParams) XXX_Size() int

func (*QueryParams) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) 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 QueryPriceHistoryAtTime

type QueryPriceHistoryAtTime struct {
	Denom string    `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Time  time.Time `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time" yaml:"time"`
}

func (*QueryPriceHistoryAtTime) Descriptor

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

func (*QueryPriceHistoryAtTime) Marshal

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

func (*QueryPriceHistoryAtTime) MarshalTo

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

func (*QueryPriceHistoryAtTime) MarshalToSizedBuffer

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

func (*QueryPriceHistoryAtTime) ProtoMessage

func (*QueryPriceHistoryAtTime) ProtoMessage()

func (*QueryPriceHistoryAtTime) Reset

func (m *QueryPriceHistoryAtTime) Reset()

func (*QueryPriceHistoryAtTime) Size

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

func (*QueryPriceHistoryAtTime) String

func (m *QueryPriceHistoryAtTime) String() string

func (*QueryPriceHistoryAtTime) Unmarshal

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

func (*QueryPriceHistoryAtTime) XXX_DiscardUnknown

func (m *QueryPriceHistoryAtTime) XXX_DiscardUnknown()

func (*QueryPriceHistoryAtTime) XXX_Marshal

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

func (*QueryPriceHistoryAtTime) XXX_Merge

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

func (*QueryPriceHistoryAtTime) XXX_Size

func (m *QueryPriceHistoryAtTime) XXX_Size() int

func (*QueryPriceHistoryAtTime) XXX_Unmarshal

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

type QueryPriceHistoryAtTimeResponse

type QueryPriceHistoryAtTimeResponse struct {
	Denom             Denom             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom"`
	PriceHistoryEntry PriceHistoryEntry `protobuf:"bytes,2,opt,name=price_history_entry,json=priceHistoryEntry,proto3" json:"price_history_entry"`
}

func (*QueryPriceHistoryAtTimeResponse) Descriptor

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

func (*QueryPriceHistoryAtTimeResponse) Marshal

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

func (*QueryPriceHistoryAtTimeResponse) MarshalTo

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

func (*QueryPriceHistoryAtTimeResponse) MarshalToSizedBuffer

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

func (*QueryPriceHistoryAtTimeResponse) ProtoMessage

func (*QueryPriceHistoryAtTimeResponse) ProtoMessage()

func (*QueryPriceHistoryAtTimeResponse) Reset

func (*QueryPriceHistoryAtTimeResponse) Size

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

func (*QueryPriceHistoryAtTimeResponse) String

func (*QueryPriceHistoryAtTimeResponse) Unmarshal

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

func (*QueryPriceHistoryAtTimeResponse) XXX_DiscardUnknown

func (m *QueryPriceHistoryAtTimeResponse) XXX_DiscardUnknown()

func (*QueryPriceHistoryAtTimeResponse) XXX_Marshal

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

func (*QueryPriceHistoryAtTimeResponse) XXX_Merge

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

func (*QueryPriceHistoryAtTimeResponse) XXX_Size

func (m *QueryPriceHistoryAtTimeResponse) XXX_Size() int

func (*QueryPriceHistoryAtTimeResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// ExchangeRates returns exchange rates of all denoms,
	// or, if specified, returns a single denom
	ExchangeRates(context.Context, *QueryExchangeRates) (*QueryExchangeRatesResponse, error)
	// ActiveExchangeRates returns all active denoms
	ActiveExchangeRates(context.Context, *QueryActiveExchangeRates) (*QueryActiveExchangeRatesResponse, error)
	// PriceHistoryAtTime return price of denom at specific time
	PriceHistoryAtTime(context.Context, *QueryPriceHistoryAtTime) (*QueryPriceHistoryAtTimeResponse, error)
	// AllPriceHistory return all price history of denom
	AllPriceHistory(context.Context, *QueryAllPriceHistory) (*QueryAllPriceHistoryResponse, error)
	// TwapTrackingLists return all price tracking denom
	TwapTrackingLists(context.Context, *QueryTwapTrackingLists) (*QueryTwapTrackingListsResponse, error)
	// ArithmeticTwapPriceBetweenTime return denom twap price between startTime
	// and endTime
	ArithmeticTwapPriceBetweenTime(context.Context, *QueryArithmeticTwapPriceBetweenTime) (*QueryArithmeticTwapPriceBetweenTimeResponse, error)
	// FeederDelegation returns feeder delegation of a validator
	FeederDelegation(context.Context, *QueryFeederDelegation) (*QueryFeederDelegationResponse, error)
	// MissCounter returns oracle miss counter of a validator
	MissCounter(context.Context, *QueryMissCounter) (*QueryMissCounterResponse, error)
	// SlashWindow returns slash window information
	SlashWindow(context.Context, *QuerySlashWindow) (*QuerySlashWindowResponse, error)
	// AggregatePrevote returns an aggregate prevote of a validator
	AggregatePrevote(context.Context, *QueryAggregatePrevote) (*QueryAggregatePrevoteResponse, error)
	// AggregatePrevotes returns aggregate prevotes of all validators
	AggregatePrevotes(context.Context, *QueryAggregatePrevotes) (*QueryAggregatePrevotesResponse, error)
	// AggregateVote returns an aggregate vote of a validator
	AggregateVote(context.Context, *QueryAggregateVote) (*QueryAggregateVoteResponse, error)
	// AggregateVotes returns aggregate votes of all validators
	AggregateVotes(context.Context, *QueryAggregateVotes) (*QueryAggregateVotesResponse, error)
	// Params queries all parameters.
	Params(context.Context, *QueryParams) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySlashWindow

type QuerySlashWindow struct {
}

QuerySlashWindow is the request type for the Query/SlashWindow RPC method.

func (*QuerySlashWindow) Descriptor

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

func (*QuerySlashWindow) Marshal

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

func (*QuerySlashWindow) MarshalTo

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

func (*QuerySlashWindow) MarshalToSizedBuffer

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

func (*QuerySlashWindow) ProtoMessage

func (*QuerySlashWindow) ProtoMessage()

func (*QuerySlashWindow) Reset

func (m *QuerySlashWindow) Reset()

func (*QuerySlashWindow) Size

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

func (*QuerySlashWindow) String

func (m *QuerySlashWindow) String() string

func (*QuerySlashWindow) Unmarshal

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

func (*QuerySlashWindow) XXX_DiscardUnknown

func (m *QuerySlashWindow) XXX_DiscardUnknown()

func (*QuerySlashWindow) XXX_Marshal

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

func (*QuerySlashWindow) XXX_Merge

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

func (*QuerySlashWindow) XXX_Size

func (m *QuerySlashWindow) XXX_Size() int

func (*QuerySlashWindow) XXX_Unmarshal

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

type QuerySlashWindowResponse

type QuerySlashWindowResponse struct {
	// window_progress defines the number of voting periods
	// since the last slashing event would have taken place.
	WindowProgress uint64 `protobuf:"varint,1,opt,name=window_progress,json=windowProgress,proto3" json:"window_progress,omitempty"`
}

QuerySlashWindowResponse is response type for the Query/SlashWindow RPC method.

func (*QuerySlashWindowResponse) Descriptor

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

func (*QuerySlashWindowResponse) Marshal

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

func (*QuerySlashWindowResponse) MarshalTo

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

func (*QuerySlashWindowResponse) MarshalToSizedBuffer

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

func (*QuerySlashWindowResponse) ProtoMessage

func (*QuerySlashWindowResponse) ProtoMessage()

func (*QuerySlashWindowResponse) Reset

func (m *QuerySlashWindowResponse) Reset()

func (*QuerySlashWindowResponse) Size

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

func (*QuerySlashWindowResponse) String

func (m *QuerySlashWindowResponse) String() string

func (*QuerySlashWindowResponse) Unmarshal

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

func (*QuerySlashWindowResponse) XXX_DiscardUnknown

func (m *QuerySlashWindowResponse) XXX_DiscardUnknown()

func (*QuerySlashWindowResponse) XXX_Marshal

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

func (*QuerySlashWindowResponse) XXX_Merge

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

func (*QuerySlashWindowResponse) XXX_Size

func (m *QuerySlashWindowResponse) XXX_Size() int

func (*QuerySlashWindowResponse) XXX_Unmarshal

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

type QueryTwapTrackingLists

type QueryTwapTrackingLists struct {
}

func (*QueryTwapTrackingLists) Descriptor

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

func (*QueryTwapTrackingLists) Marshal

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

func (*QueryTwapTrackingLists) MarshalTo

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

func (*QueryTwapTrackingLists) MarshalToSizedBuffer

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

func (*QueryTwapTrackingLists) ProtoMessage

func (*QueryTwapTrackingLists) ProtoMessage()

func (*QueryTwapTrackingLists) Reset

func (m *QueryTwapTrackingLists) Reset()

func (*QueryTwapTrackingLists) Size

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

func (*QueryTwapTrackingLists) String

func (m *QueryTwapTrackingLists) String() string

func (*QueryTwapTrackingLists) Unmarshal

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

func (*QueryTwapTrackingLists) XXX_DiscardUnknown

func (m *QueryTwapTrackingLists) XXX_DiscardUnknown()

func (*QueryTwapTrackingLists) XXX_Marshal

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

func (*QueryTwapTrackingLists) XXX_Merge

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

func (*QueryTwapTrackingLists) XXX_Size

func (m *QueryTwapTrackingLists) XXX_Size() int

func (*QueryTwapTrackingLists) XXX_Unmarshal

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

type QueryTwapTrackingListsResponse

type QueryTwapTrackingListsResponse struct {
	TwapTrackingLists []string `protobuf:"bytes,1,rep,name=twap_tracking_lists,json=twapTrackingLists,proto3" json:"twap_tracking_lists,omitempty"`
}

func (*QueryTwapTrackingListsResponse) Descriptor

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

func (*QueryTwapTrackingListsResponse) Marshal

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

func (*QueryTwapTrackingListsResponse) MarshalTo

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

func (*QueryTwapTrackingListsResponse) MarshalToSizedBuffer

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

func (*QueryTwapTrackingListsResponse) ProtoMessage

func (*QueryTwapTrackingListsResponse) ProtoMessage()

func (*QueryTwapTrackingListsResponse) Reset

func (m *QueryTwapTrackingListsResponse) Reset()

func (*QueryTwapTrackingListsResponse) Size

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

func (*QueryTwapTrackingListsResponse) String

func (*QueryTwapTrackingListsResponse) Unmarshal

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

func (*QueryTwapTrackingListsResponse) XXX_DiscardUnknown

func (m *QueryTwapTrackingListsResponse) XXX_DiscardUnknown()

func (*QueryTwapTrackingListsResponse) XXX_Marshal

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

func (*QueryTwapTrackingListsResponse) XXX_Merge

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

func (*QueryTwapTrackingListsResponse) XXX_Size

func (m *QueryTwapTrackingListsResponse) XXX_Size() int

func (*QueryTwapTrackingListsResponse) XXX_Unmarshal

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

type RemoveTrackingPriceHistoryProposal

type RemoveTrackingPriceHistoryProposal struct {
	// Title is a short summary
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Description is a human readable text
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Denom
	RemoveTwapList DenomList `` /* 146-byte string literal not displayed */
}

RemoveTrackingPriceHistoryProposal remove denom from tracking price history list (in this situation, denom don't have to in Whitelist)

func NewRemoveTrackingPriceHistoryProposal

func NewRemoveTrackingPriceHistoryProposal(
	title string,
	description string,
	list DenomList,
) *RemoveTrackingPriceHistoryProposal

func RemoveTrackingPriceHistoryProposalFixture

func RemoveTrackingPriceHistoryProposalFixture(
	mutators ...func(p *RemoveTrackingPriceHistoryProposal),
) *RemoveTrackingPriceHistoryProposal

func (*RemoveTrackingPriceHistoryProposal) Descriptor

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

func (*RemoveTrackingPriceHistoryProposal) Equal

func (this *RemoveTrackingPriceHistoryProposal) Equal(that interface{}) bool

func (RemoveTrackingPriceHistoryProposal) GetDescription

func (p RemoveTrackingPriceHistoryProposal) GetDescription() string

GetDescription returns the human readable description of the proposal

func (*RemoveTrackingPriceHistoryProposal) GetTitle

GetTitle returns the title of the proposal

func (*RemoveTrackingPriceHistoryProposal) Marshal

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

func (*RemoveTrackingPriceHistoryProposal) MarshalTo

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

func (*RemoveTrackingPriceHistoryProposal) MarshalToSizedBuffer

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

func (RemoveTrackingPriceHistoryProposal) ProposalRoute

func (p RemoveTrackingPriceHistoryProposal) ProposalRoute() string

ProposalRoute returns the routing key of a parameter change proposal.

func (RemoveTrackingPriceHistoryProposal) ProposalType

func (p RemoveTrackingPriceHistoryProposal) ProposalType() string

ProposalType returns the type

func (*RemoveTrackingPriceHistoryProposal) ProtoMessage

func (*RemoveTrackingPriceHistoryProposal) ProtoMessage()

func (*RemoveTrackingPriceHistoryProposal) Reset

func (*RemoveTrackingPriceHistoryProposal) Size

func (RemoveTrackingPriceHistoryProposal) String

String implements the Stringer interface.

func (*RemoveTrackingPriceHistoryProposal) Unmarshal

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

func (RemoveTrackingPriceHistoryProposal) ValidateBasic

func (p RemoveTrackingPriceHistoryProposal) ValidateBasic() error

ValidateBasic validates the proposal

func (*RemoveTrackingPriceHistoryProposal) XXX_DiscardUnknown

func (m *RemoveTrackingPriceHistoryProposal) XXX_DiscardUnknown()

func (*RemoveTrackingPriceHistoryProposal) XXX_Marshal

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

func (*RemoveTrackingPriceHistoryProposal) XXX_Merge

func (*RemoveTrackingPriceHistoryProposal) XXX_Size

func (*RemoveTrackingPriceHistoryProposal) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI
	GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator
	TotalBondedTokens(sdk.Context) sdk.Int
	Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec)
	Jail(sdk.Context, sdk.ConsAddress)
	ValidatorsPowerStoreIterator(ctx sdk.Context) sdk.Iterator
	MaxValidators(sdk.Context) uint32
	PowerReduction(ctx sdk.Context) (res sdk.Int)
}

StakingKeeper defines the expected interface contract defined by the x/staking module.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AggregateExchangeRateVote

func (*UnimplementedMsgServer) DelegateFeedConsent

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ActiveExchangeRates

func (*UnimplementedQueryServer) AggregatePrevote

func (*UnimplementedQueryServer) AggregatePrevotes

func (*UnimplementedQueryServer) AggregateVote

func (*UnimplementedQueryServer) AggregateVotes

func (*UnimplementedQueryServer) AllPriceHistory

func (*UnimplementedQueryServer) ExchangeRates

func (*UnimplementedQueryServer) FeederDelegation

func (*UnimplementedQueryServer) MissCounter

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PriceHistoryAtTime

func (*UnimplementedQueryServer) SlashWindow

func (*UnimplementedQueryServer) TwapTrackingLists

type VoteForTally

type VoteForTally struct {
	Denom        string
	ExchangeRate sdk.Dec
	Voter        sdk.ValAddress
	Power        int64
}

VoteForTally is a convenience wrapper to reduce redundant lookup cost.

func NewVoteForTally

func NewVoteForTally(rate sdk.Dec, denom string, voter sdk.ValAddress, power int64) VoteForTally

NewVoteForTally returns a new VoteForTally instance.

type VoteHash

type VoteHash []byte

VoteHash defines a hash value to hide vote exchange rate which is formatted as a HEX string: SHA256("{salt}:{symbol}:{exchangeRate},...,{symbol}:{exchangeRate}:{voter}")

Jump to

Keyboard shortcuts

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