Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetAggregateExchangeRatePrevoteKey(v sdk.ValAddress) (key []byte)
- func GetAggregateExchangeRateVoteKey(v sdk.ValAddress) (key []byte)
- func GetExchangeRateKey(denom string) (key []byte)
- func GetFeederDelegationKey(v sdk.ValAddress) (key []byte)
- func GetMissCounterKey(v sdk.ValAddress) (key []byte)
- func ParamKeyTable() paramstypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateGenesis(data *GenesisState) error
- func ValidateVoteThreshold(i interface{}) error
- type AccountKeeper
- type AggregateExchangeRatePrevote
- func (*AggregateExchangeRatePrevote) Descriptor() ([]byte, []int)
- func (m *AggregateExchangeRatePrevote) Marshal() (dAtA []byte, err error)
- func (m *AggregateExchangeRatePrevote) MarshalTo(dAtA []byte) (int, error)
- func (m *AggregateExchangeRatePrevote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AggregateExchangeRatePrevote) ProtoMessage()
- func (m *AggregateExchangeRatePrevote) Reset()
- func (m *AggregateExchangeRatePrevote) Size() (n int)
- func (v AggregateExchangeRatePrevote) String() string
- func (m *AggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error
- func (m *AggregateExchangeRatePrevote) XXX_DiscardUnknown()
- func (m *AggregateExchangeRatePrevote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AggregateExchangeRatePrevote) XXX_Merge(src proto.Message)
- func (m *AggregateExchangeRatePrevote) XXX_Size() int
- func (m *AggregateExchangeRatePrevote) XXX_Unmarshal(b []byte) error
- type AggregateExchangeRateVote
- func (*AggregateExchangeRateVote) Descriptor() ([]byte, []int)
- func (m *AggregateExchangeRateVote) Marshal() (dAtA []byte, err error)
- func (m *AggregateExchangeRateVote) MarshalTo(dAtA []byte) (int, error)
- func (m *AggregateExchangeRateVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AggregateExchangeRateVote) ProtoMessage()
- func (m *AggregateExchangeRateVote) Reset()
- func (m *AggregateExchangeRateVote) Size() (n int)
- func (v AggregateExchangeRateVote) String() string
- func (m *AggregateExchangeRateVote) Unmarshal(dAtA []byte) error
- func (m *AggregateExchangeRateVote) XXX_DiscardUnknown()
- func (m *AggregateExchangeRateVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AggregateExchangeRateVote) XXX_Merge(src proto.Message)
- func (m *AggregateExchangeRateVote) XXX_Size() int
- func (m *AggregateExchangeRateVote) XXX_Unmarshal(b []byte) error
- type AggregateVoteHash
- func (h AggregateVoteHash) Bytes() []byte
- func (h AggregateVoteHash) Empty() bool
- func (h AggregateVoteHash) Equal(h2 AggregateVoteHash) bool
- func (h AggregateVoteHash) Format(s fmt.State, verb rune)
- func (h AggregateVoteHash) Marshal() ([]byte, error)
- func (h AggregateVoteHash) MarshalJSON() ([]byte, error)
- func (h AggregateVoteHash) MarshalYAML() (interface{}, error)
- func (h AggregateVoteHash) Size() int
- func (h AggregateVoteHash) String() string
- func (h *AggregateVoteHash) Unmarshal(data []byte) error
- func (h *AggregateVoteHash) UnmarshalJSON(data []byte) error
- type BallotDenom
- type BankKeeper
- type Claim
- type Denom
- func (*Denom) Descriptor() ([]byte, []int)
- func (d Denom) Equal(d1 *Denom) bool
- func (m *Denom) Marshal() (dAtA []byte, err error)
- func (m *Denom) MarshalTo(dAtA []byte) (int, error)
- func (m *Denom) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Denom) ProtoMessage()
- func (m *Denom) Reset()
- func (m *Denom) Size() (n int)
- func (d Denom) String() string
- func (m *Denom) Unmarshal(dAtA []byte) error
- func (m *Denom) XXX_DiscardUnknown()
- func (m *Denom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Denom) XXX_Merge(src proto.Message)
- func (m *Denom) XXX_Size() int
- func (m *Denom) XXX_Unmarshal(b []byte) error
- type DenomList
- type DistributionKeeper
- type ExchangeRateBallot
- func (pb ExchangeRateBallot) Len() int
- func (pb ExchangeRateBallot) Less(i, j int) bool
- func (pb ExchangeRateBallot) Power() int64
- func (pb ExchangeRateBallot) StandardDeviation() (sdk.Dec, error)
- func (pb ExchangeRateBallot) Swap(i, j int)
- func (pb ExchangeRateBallot) ToMap() map[string]sdk.Dec
- func (pb ExchangeRateBallot) WeightedMedian() (sdk.Dec, error)
- type ExchangeRatePrevote
- type ExchangeRateTuple
- func (*ExchangeRateTuple) Descriptor() ([]byte, []int)
- func (m *ExchangeRateTuple) Marshal() (dAtA []byte, err error)
- func (m *ExchangeRateTuple) MarshalTo(dAtA []byte) (int, error)
- func (m *ExchangeRateTuple) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExchangeRateTuple) ProtoMessage()
- func (m *ExchangeRateTuple) Reset()
- func (m *ExchangeRateTuple) Size() (n int)
- func (v ExchangeRateTuple) String() string
- func (m *ExchangeRateTuple) Unmarshal(dAtA []byte) error
- func (m *ExchangeRateTuple) XXX_DiscardUnknown()
- func (m *ExchangeRateTuple) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExchangeRateTuple) XXX_Merge(src proto.Message)
- func (m *ExchangeRateTuple) XXX_Size() int
- func (m *ExchangeRateTuple) XXX_Unmarshal(b []byte) error
- type ExchangeRateTuples
- type ExchangeRateVote
- type FeederDelegation
- func (*FeederDelegation) Descriptor() ([]byte, []int)
- func (m *FeederDelegation) GetFeederAddress() string
- func (m *FeederDelegation) GetValidatorAddress() string
- func (m *FeederDelegation) Marshal() (dAtA []byte, err error)
- func (m *FeederDelegation) MarshalTo(dAtA []byte) (int, error)
- func (m *FeederDelegation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FeederDelegation) ProtoMessage()
- func (m *FeederDelegation) Reset()
- func (m *FeederDelegation) Size() (n int)
- func (m *FeederDelegation) String() string
- func (m *FeederDelegation) Unmarshal(dAtA []byte) error
- func (m *FeederDelegation) XXX_DiscardUnknown()
- func (m *FeederDelegation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FeederDelegation) XXX_Merge(src proto.Message)
- func (m *FeederDelegation) XXX_Size() int
- func (m *FeederDelegation) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAggregateExchangeRatePrevotes() []AggregateExchangeRatePrevote
- func (m *GenesisState) GetAggregateExchangeRateVotes() []AggregateExchangeRateVote
- func (m *GenesisState) GetExchangeRates() ExchangeRateTuples
- func (m *GenesisState) GetFeederDelegations() []FeederDelegation
- func (m *GenesisState) GetMissCounters() []MissCounter
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MissCounter
- func (*MissCounter) Descriptor() ([]byte, []int)
- func (m *MissCounter) GetMissCounter() uint64
- func (m *MissCounter) GetValidatorAddress() string
- func (m *MissCounter) Marshal() (dAtA []byte, err error)
- func (m *MissCounter) MarshalTo(dAtA []byte) (int, error)
- func (m *MissCounter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MissCounter) ProtoMessage()
- func (m *MissCounter) Reset()
- func (m *MissCounter) Size() (n int)
- func (m *MissCounter) String() string
- func (m *MissCounter) Unmarshal(dAtA []byte) error
- func (m *MissCounter) XXX_DiscardUnknown()
- func (m *MissCounter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MissCounter) XXX_Merge(src proto.Message)
- func (m *MissCounter) XXX_Size() int
- func (m *MissCounter) XXX_Unmarshal(b []byte) error
- type MsgAddFundsToRewardPool
- func (*MsgAddFundsToRewardPool) Descriptor() ([]byte, []int)
- func (m MsgAddFundsToRewardPool) GetSignBytes() []byte
- func (m MsgAddFundsToRewardPool) GetSigners() []sdk.AccAddress
- func (m *MsgAddFundsToRewardPool) Marshal() (dAtA []byte, err error)
- func (m *MsgAddFundsToRewardPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddFundsToRewardPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddFundsToRewardPool) ProtoMessage()
- func (m *MsgAddFundsToRewardPool) Reset()
- func (m MsgAddFundsToRewardPool) Route() string
- func (m *MsgAddFundsToRewardPool) Size() (n int)
- func (m *MsgAddFundsToRewardPool) String() string
- func (m MsgAddFundsToRewardPool) Type() string
- func (m *MsgAddFundsToRewardPool) Unmarshal(dAtA []byte) error
- func (m MsgAddFundsToRewardPool) ValidateBasic() error
- func (m *MsgAddFundsToRewardPool) XXX_DiscardUnknown()
- func (m *MsgAddFundsToRewardPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddFundsToRewardPool) XXX_Merge(src proto.Message)
- func (m *MsgAddFundsToRewardPool) XXX_Size() int
- func (m *MsgAddFundsToRewardPool) XXX_Unmarshal(b []byte) error
- type MsgAddFundsToRewardPoolResponse
- func (*MsgAddFundsToRewardPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddFundsToRewardPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddFundsToRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddFundsToRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddFundsToRewardPoolResponse) ProtoMessage()
- func (m *MsgAddFundsToRewardPoolResponse) Reset()
- func (m *MsgAddFundsToRewardPoolResponse) Size() (n int)
- func (m *MsgAddFundsToRewardPoolResponse) String() string
- func (m *MsgAddFundsToRewardPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddFundsToRewardPoolResponse) XXX_DiscardUnknown()
- func (m *MsgAddFundsToRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddFundsToRewardPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddFundsToRewardPoolResponse) XXX_Size() int
- func (m *MsgAddFundsToRewardPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgAggregateExchangeRatePrevote
- func (*MsgAggregateExchangeRatePrevote) Descriptor() ([]byte, []int)
- func (msg MsgAggregateExchangeRatePrevote) GetSignBytes() []byte
- func (msg MsgAggregateExchangeRatePrevote) GetSigners() []sdk.AccAddress
- func (m *MsgAggregateExchangeRatePrevote) Marshal() (dAtA []byte, err error)
- func (m *MsgAggregateExchangeRatePrevote) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAggregateExchangeRatePrevote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAggregateExchangeRatePrevote) ProtoMessage()
- func (m *MsgAggregateExchangeRatePrevote) Reset()
- func (msg MsgAggregateExchangeRatePrevote) Route() string
- func (m *MsgAggregateExchangeRatePrevote) Size() (n int)
- func (m *MsgAggregateExchangeRatePrevote) String() string
- func (msg MsgAggregateExchangeRatePrevote) Type() string
- func (m *MsgAggregateExchangeRatePrevote) Unmarshal(dAtA []byte) error
- func (msg MsgAggregateExchangeRatePrevote) ValidateBasic() error
- func (m *MsgAggregateExchangeRatePrevote) XXX_DiscardUnknown()
- func (m *MsgAggregateExchangeRatePrevote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAggregateExchangeRatePrevote) XXX_Merge(src proto.Message)
- func (m *MsgAggregateExchangeRatePrevote) XXX_Size() int
- func (m *MsgAggregateExchangeRatePrevote) XXX_Unmarshal(b []byte) error
- type MsgAggregateExchangeRatePrevoteResponse
- func (*MsgAggregateExchangeRatePrevoteResponse) Descriptor() ([]byte, []int)
- func (m *MsgAggregateExchangeRatePrevoteResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAggregateExchangeRatePrevoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAggregateExchangeRatePrevoteResponse) ProtoMessage()
- func (m *MsgAggregateExchangeRatePrevoteResponse) Reset()
- func (m *MsgAggregateExchangeRatePrevoteResponse) Size() (n int)
- func (m *MsgAggregateExchangeRatePrevoteResponse) String() string
- func (m *MsgAggregateExchangeRatePrevoteResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_DiscardUnknown()
- func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Merge(src proto.Message)
- func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Size() int
- func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Unmarshal(b []byte) error
- type MsgAggregateExchangeRateVote
- func (*MsgAggregateExchangeRateVote) Descriptor() ([]byte, []int)
- func (msg MsgAggregateExchangeRateVote) GetSignBytes() []byte
- func (msg MsgAggregateExchangeRateVote) GetSigners() []sdk.AccAddress
- func (m *MsgAggregateExchangeRateVote) Marshal() (dAtA []byte, err error)
- func (m *MsgAggregateExchangeRateVote) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAggregateExchangeRateVote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAggregateExchangeRateVote) ProtoMessage()
- func (m *MsgAggregateExchangeRateVote) Reset()
- func (msg MsgAggregateExchangeRateVote) Route() string
- func (m *MsgAggregateExchangeRateVote) Size() (n int)
- func (m *MsgAggregateExchangeRateVote) String() string
- func (msg MsgAggregateExchangeRateVote) Type() string
- func (m *MsgAggregateExchangeRateVote) Unmarshal(dAtA []byte) error
- func (msg MsgAggregateExchangeRateVote) ValidateBasic() error
- func (m *MsgAggregateExchangeRateVote) XXX_DiscardUnknown()
- func (m *MsgAggregateExchangeRateVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAggregateExchangeRateVote) XXX_Merge(src proto.Message)
- func (m *MsgAggregateExchangeRateVote) XXX_Size() int
- func (m *MsgAggregateExchangeRateVote) XXX_Unmarshal(b []byte) error
- type MsgAggregateExchangeRateVoteResponse
- func (*MsgAggregateExchangeRateVoteResponse) Descriptor() ([]byte, []int)
- func (m *MsgAggregateExchangeRateVoteResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAggregateExchangeRateVoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAggregateExchangeRateVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAggregateExchangeRateVoteResponse) ProtoMessage()
- func (m *MsgAggregateExchangeRateVoteResponse) Reset()
- func (m *MsgAggregateExchangeRateVoteResponse) Size() (n int)
- func (m *MsgAggregateExchangeRateVoteResponse) String() string
- func (m *MsgAggregateExchangeRateVoteResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAggregateExchangeRateVoteResponse) XXX_DiscardUnknown()
- func (m *MsgAggregateExchangeRateVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAggregateExchangeRateVoteResponse) XXX_Merge(src proto.Message)
- func (m *MsgAggregateExchangeRateVoteResponse) XXX_Size() int
- func (m *MsgAggregateExchangeRateVoteResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDelegateFeedConsent
- func (*MsgDelegateFeedConsent) Descriptor() ([]byte, []int)
- func (msg MsgDelegateFeedConsent) GetSignBytes() []byte
- func (msg MsgDelegateFeedConsent) GetSigners() []sdk.AccAddress
- func (m *MsgDelegateFeedConsent) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegateFeedConsent) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegateFeedConsent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegateFeedConsent) ProtoMessage()
- func (m *MsgDelegateFeedConsent) Reset()
- func (msg MsgDelegateFeedConsent) Route() string
- func (m *MsgDelegateFeedConsent) Size() (n int)
- func (m *MsgDelegateFeedConsent) String() string
- func (msg MsgDelegateFeedConsent) Type() string
- func (m *MsgDelegateFeedConsent) Unmarshal(dAtA []byte) error
- func (msg MsgDelegateFeedConsent) ValidateBasic() error
- func (m *MsgDelegateFeedConsent) XXX_DiscardUnknown()
- func (m *MsgDelegateFeedConsent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegateFeedConsent) XXX_Merge(src proto.Message)
- func (m *MsgDelegateFeedConsent) XXX_Size() int
- func (m *MsgDelegateFeedConsent) XXX_Unmarshal(b []byte) error
- type MsgDelegateFeedConsentResponse
- func (*MsgDelegateFeedConsentResponse) Descriptor() ([]byte, []int)
- func (m *MsgDelegateFeedConsentResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDelegateFeedConsentResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDelegateFeedConsentResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDelegateFeedConsentResponse) ProtoMessage()
- func (m *MsgDelegateFeedConsentResponse) Reset()
- func (m *MsgDelegateFeedConsentResponse) Size() (n int)
- func (m *MsgDelegateFeedConsentResponse) String() string
- func (m *MsgDelegateFeedConsentResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDelegateFeedConsentResponse) XXX_DiscardUnknown()
- func (m *MsgDelegateFeedConsentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDelegateFeedConsentResponse) XXX_Merge(src proto.Message)
- func (m *MsgDelegateFeedConsentResponse) XXX_Size() int
- func (m *MsgDelegateFeedConsentResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetAcceptList() DenomList
- func (m *Params) GetRewardDistributionWindow() uint64
- func (m *Params) GetSlashWindow() uint64
- func (m *Params) GetVotePeriod() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryActiveExchangeRatesRequest
- func (*QueryActiveExchangeRatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryActiveExchangeRatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveExchangeRatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveExchangeRatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveExchangeRatesRequest) ProtoMessage()
- func (m *QueryActiveExchangeRatesRequest) Reset()
- func (m *QueryActiveExchangeRatesRequest) Size() (n int)
- func (m *QueryActiveExchangeRatesRequest) String() string
- func (m *QueryActiveExchangeRatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryActiveExchangeRatesRequest) XXX_DiscardUnknown()
- func (m *QueryActiveExchangeRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveExchangeRatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryActiveExchangeRatesRequest) XXX_Size() int
- func (m *QueryActiveExchangeRatesRequest) XXX_Unmarshal(b []byte) error
- type QueryActiveExchangeRatesResponse
- func (*QueryActiveExchangeRatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryActiveExchangeRatesResponse) GetActiveRates() []string
- func (m *QueryActiveExchangeRatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryActiveExchangeRatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryActiveExchangeRatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryActiveExchangeRatesResponse) ProtoMessage()
- func (m *QueryActiveExchangeRatesResponse) Reset()
- func (m *QueryActiveExchangeRatesResponse) Size() (n int)
- func (m *QueryActiveExchangeRatesResponse) String() string
- func (m *QueryActiveExchangeRatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryActiveExchangeRatesResponse) XXX_DiscardUnknown()
- func (m *QueryActiveExchangeRatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryActiveExchangeRatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryActiveExchangeRatesResponse) XXX_Size() int
- func (m *QueryActiveExchangeRatesResponse) XXX_Unmarshal(b []byte) error
- type QueryAggregatePrevoteRequest
- func (*QueryAggregatePrevoteRequest) Descriptor() ([]byte, []int)
- func (m *QueryAggregatePrevoteRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregatePrevoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregatePrevoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregatePrevoteRequest) ProtoMessage()
- func (m *QueryAggregatePrevoteRequest) Reset()
- func (m *QueryAggregatePrevoteRequest) Size() (n int)
- func (m *QueryAggregatePrevoteRequest) String() string
- func (m *QueryAggregatePrevoteRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAggregatePrevoteRequest) XXX_DiscardUnknown()
- func (m *QueryAggregatePrevoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregatePrevoteRequest) XXX_Merge(src proto.Message)
- func (m *QueryAggregatePrevoteRequest) XXX_Size() int
- func (m *QueryAggregatePrevoteRequest) XXX_Unmarshal(b []byte) error
- type QueryAggregatePrevoteResponse
- func (*QueryAggregatePrevoteResponse) Descriptor() ([]byte, []int)
- func (m *QueryAggregatePrevoteResponse) GetAggregatePrevote() AggregateExchangeRatePrevote
- func (m *QueryAggregatePrevoteResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregatePrevoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregatePrevoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregatePrevoteResponse) ProtoMessage()
- func (m *QueryAggregatePrevoteResponse) Reset()
- func (m *QueryAggregatePrevoteResponse) Size() (n int)
- func (m *QueryAggregatePrevoteResponse) String() string
- func (m *QueryAggregatePrevoteResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAggregatePrevoteResponse) XXX_DiscardUnknown()
- func (m *QueryAggregatePrevoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregatePrevoteResponse) XXX_Merge(src proto.Message)
- func (m *QueryAggregatePrevoteResponse) XXX_Size() int
- func (m *QueryAggregatePrevoteResponse) XXX_Unmarshal(b []byte) error
- type QueryAggregatePrevotesRequest
- func (*QueryAggregatePrevotesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAggregatePrevotesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregatePrevotesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregatePrevotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregatePrevotesRequest) ProtoMessage()
- func (m *QueryAggregatePrevotesRequest) Reset()
- func (m *QueryAggregatePrevotesRequest) Size() (n int)
- func (m *QueryAggregatePrevotesRequest) String() string
- func (m *QueryAggregatePrevotesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAggregatePrevotesRequest) XXX_DiscardUnknown()
- func (m *QueryAggregatePrevotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregatePrevotesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAggregatePrevotesRequest) XXX_Size() int
- func (m *QueryAggregatePrevotesRequest) XXX_Unmarshal(b []byte) error
- type QueryAggregatePrevotesResponse
- func (*QueryAggregatePrevotesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAggregatePrevotesResponse) GetAggregatePrevotes() []AggregateExchangeRatePrevote
- func (m *QueryAggregatePrevotesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregatePrevotesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregatePrevotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregatePrevotesResponse) ProtoMessage()
- func (m *QueryAggregatePrevotesResponse) Reset()
- func (m *QueryAggregatePrevotesResponse) Size() (n int)
- func (m *QueryAggregatePrevotesResponse) String() string
- func (m *QueryAggregatePrevotesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAggregatePrevotesResponse) XXX_DiscardUnknown()
- func (m *QueryAggregatePrevotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregatePrevotesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAggregatePrevotesResponse) XXX_Size() int
- func (m *QueryAggregatePrevotesResponse) XXX_Unmarshal(b []byte) error
- type QueryAggregateVoteRequest
- func (*QueryAggregateVoteRequest) Descriptor() ([]byte, []int)
- func (m *QueryAggregateVoteRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregateVoteRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregateVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregateVoteRequest) ProtoMessage()
- func (m *QueryAggregateVoteRequest) Reset()
- func (m *QueryAggregateVoteRequest) Size() (n int)
- func (m *QueryAggregateVoteRequest) String() string
- func (m *QueryAggregateVoteRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAggregateVoteRequest) XXX_DiscardUnknown()
- func (m *QueryAggregateVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregateVoteRequest) XXX_Merge(src proto.Message)
- func (m *QueryAggregateVoteRequest) XXX_Size() int
- func (m *QueryAggregateVoteRequest) XXX_Unmarshal(b []byte) error
- type QueryAggregateVoteResponse
- func (*QueryAggregateVoteResponse) Descriptor() ([]byte, []int)
- func (m *QueryAggregateVoteResponse) GetAggregateVote() AggregateExchangeRateVote
- func (m *QueryAggregateVoteResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregateVoteResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregateVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregateVoteResponse) ProtoMessage()
- func (m *QueryAggregateVoteResponse) Reset()
- func (m *QueryAggregateVoteResponse) Size() (n int)
- func (m *QueryAggregateVoteResponse) String() string
- func (m *QueryAggregateVoteResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAggregateVoteResponse) XXX_DiscardUnknown()
- func (m *QueryAggregateVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregateVoteResponse) XXX_Merge(src proto.Message)
- func (m *QueryAggregateVoteResponse) XXX_Size() int
- func (m *QueryAggregateVoteResponse) XXX_Unmarshal(b []byte) error
- type QueryAggregateVotesRequest
- func (*QueryAggregateVotesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAggregateVotesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregateVotesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregateVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregateVotesRequest) ProtoMessage()
- func (m *QueryAggregateVotesRequest) Reset()
- func (m *QueryAggregateVotesRequest) Size() (n int)
- func (m *QueryAggregateVotesRequest) String() string
- func (m *QueryAggregateVotesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAggregateVotesRequest) XXX_DiscardUnknown()
- func (m *QueryAggregateVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregateVotesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAggregateVotesRequest) XXX_Size() int
- func (m *QueryAggregateVotesRequest) XXX_Unmarshal(b []byte) error
- type QueryAggregateVotesResponse
- func (*QueryAggregateVotesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAggregateVotesResponse) GetAggregateVotes() []AggregateExchangeRateVote
- func (m *QueryAggregateVotesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAggregateVotesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAggregateVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAggregateVotesResponse) ProtoMessage()
- func (m *QueryAggregateVotesResponse) Reset()
- func (m *QueryAggregateVotesResponse) Size() (n int)
- func (m *QueryAggregateVotesResponse) String() string
- func (m *QueryAggregateVotesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAggregateVotesResponse) XXX_DiscardUnknown()
- func (m *QueryAggregateVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAggregateVotesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAggregateVotesResponse) XXX_Size() int
- func (m *QueryAggregateVotesResponse) XXX_Unmarshal(b []byte) error
- type QueryAllExchangeRatesRequest
- func (*QueryAllExchangeRatesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllExchangeRatesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllExchangeRatesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllExchangeRatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllExchangeRatesRequest) ProtoMessage()
- func (m *QueryAllExchangeRatesRequest) Reset()
- func (m *QueryAllExchangeRatesRequest) Size() (n int)
- func (m *QueryAllExchangeRatesRequest) String() string
- func (m *QueryAllExchangeRatesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllExchangeRatesRequest) XXX_DiscardUnknown()
- func (m *QueryAllExchangeRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllExchangeRatesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllExchangeRatesRequest) XXX_Size() int
- func (m *QueryAllExchangeRatesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllExchangeRatesResponse
- func (*QueryAllExchangeRatesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllExchangeRatesResponse) GetExchangeRates() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *QueryAllExchangeRatesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllExchangeRatesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllExchangeRatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllExchangeRatesResponse) ProtoMessage()
- func (m *QueryAllExchangeRatesResponse) Reset()
- func (m *QueryAllExchangeRatesResponse) Size() (n int)
- func (m *QueryAllExchangeRatesResponse) String() string
- func (m *QueryAllExchangeRatesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllExchangeRatesResponse) XXX_DiscardUnknown()
- func (m *QueryAllExchangeRatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllExchangeRatesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllExchangeRatesResponse) XXX_Size() int
- func (m *QueryAllExchangeRatesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryExchangeRateRequest
- func (*QueryExchangeRateRequest) Descriptor() ([]byte, []int)
- func (m *QueryExchangeRateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryExchangeRateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryExchangeRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryExchangeRateRequest) ProtoMessage()
- func (m *QueryExchangeRateRequest) Reset()
- func (m *QueryExchangeRateRequest) Size() (n int)
- func (m *QueryExchangeRateRequest) String() string
- func (m *QueryExchangeRateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryExchangeRateRequest) XXX_DiscardUnknown()
- func (m *QueryExchangeRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryExchangeRateRequest) XXX_Merge(src proto.Message)
- func (m *QueryExchangeRateRequest) XXX_Size() int
- func (m *QueryExchangeRateRequest) XXX_Unmarshal(b []byte) error
- type QueryExchangeRateResponse
- func (*QueryExchangeRateResponse) Descriptor() ([]byte, []int)
- func (m *QueryExchangeRateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryExchangeRateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryExchangeRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryExchangeRateResponse) ProtoMessage()
- func (m *QueryExchangeRateResponse) Reset()
- func (m *QueryExchangeRateResponse) Size() (n int)
- func (m *QueryExchangeRateResponse) String() string
- func (m *QueryExchangeRateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryExchangeRateResponse) XXX_DiscardUnknown()
- func (m *QueryExchangeRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryExchangeRateResponse) XXX_Merge(src proto.Message)
- func (m *QueryExchangeRateResponse) XXX_Size() int
- func (m *QueryExchangeRateResponse) XXX_Unmarshal(b []byte) error
- type QueryFeederDelegationRequest
- func (*QueryFeederDelegationRequest) Descriptor() ([]byte, []int)
- func (m *QueryFeederDelegationRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFeederDelegationRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeederDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeederDelegationRequest) ProtoMessage()
- func (m *QueryFeederDelegationRequest) Reset()
- func (m *QueryFeederDelegationRequest) Size() (n int)
- func (m *QueryFeederDelegationRequest) String() string
- func (m *QueryFeederDelegationRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFeederDelegationRequest) XXX_DiscardUnknown()
- func (m *QueryFeederDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeederDelegationRequest) XXX_Merge(src proto.Message)
- func (m *QueryFeederDelegationRequest) XXX_Size() int
- func (m *QueryFeederDelegationRequest) XXX_Unmarshal(b []byte) error
- type QueryFeederDelegationResponse
- func (*QueryFeederDelegationResponse) Descriptor() ([]byte, []int)
- func (m *QueryFeederDelegationResponse) GetFeederAddr() string
- func (m *QueryFeederDelegationResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFeederDelegationResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFeederDelegationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFeederDelegationResponse) ProtoMessage()
- func (m *QueryFeederDelegationResponse) Reset()
- func (m *QueryFeederDelegationResponse) Size() (n int)
- func (m *QueryFeederDelegationResponse) String() string
- func (m *QueryFeederDelegationResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFeederDelegationResponse) XXX_DiscardUnknown()
- func (m *QueryFeederDelegationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFeederDelegationResponse) XXX_Merge(src proto.Message)
- func (m *QueryFeederDelegationResponse) XXX_Size() int
- func (m *QueryFeederDelegationResponse) XXX_Unmarshal(b []byte) error
- type QueryMissCounterRequest
- func (*QueryMissCounterRequest) Descriptor() ([]byte, []int)
- func (m *QueryMissCounterRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMissCounterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMissCounterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMissCounterRequest) ProtoMessage()
- func (m *QueryMissCounterRequest) Reset()
- func (m *QueryMissCounterRequest) Size() (n int)
- func (m *QueryMissCounterRequest) String() string
- func (m *QueryMissCounterRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMissCounterRequest) XXX_DiscardUnknown()
- func (m *QueryMissCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMissCounterRequest) XXX_Merge(src proto.Message)
- func (m *QueryMissCounterRequest) XXX_Size() int
- func (m *QueryMissCounterRequest) XXX_Unmarshal(b []byte) error
- type QueryMissCounterResponse
- func (*QueryMissCounterResponse) Descriptor() ([]byte, []int)
- func (m *QueryMissCounterResponse) GetMissCounter() uint64
- func (m *QueryMissCounterResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMissCounterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMissCounterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMissCounterResponse) ProtoMessage()
- func (m *QueryMissCounterResponse) Reset()
- func (m *QueryMissCounterResponse) Size() (n int)
- func (m *QueryMissCounterResponse) String() string
- func (m *QueryMissCounterResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMissCounterResponse) XXX_DiscardUnknown()
- func (m *QueryMissCounterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMissCounterResponse) XXX_Merge(src proto.Message)
- func (m *QueryMissCounterResponse) XXX_Size() int
- func (m *QueryMissCounterResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryRewardPoolBalanceRequest
- func (*QueryRewardPoolBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryRewardPoolBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardPoolBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardPoolBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardPoolBalanceRequest) ProtoMessage()
- func (m *QueryRewardPoolBalanceRequest) Reset()
- func (m *QueryRewardPoolBalanceRequest) Size() (n int)
- func (m *QueryRewardPoolBalanceRequest) String() string
- func (m *QueryRewardPoolBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryRewardPoolBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryRewardPoolBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardPoolBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryRewardPoolBalanceRequest) XXX_Size() int
- func (m *QueryRewardPoolBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryRewardPoolBalanceResponse
- func (*QueryRewardPoolBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryRewardPoolBalanceResponse) GetRemainingFunds() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryRewardPoolBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryRewardPoolBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryRewardPoolBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryRewardPoolBalanceResponse) ProtoMessage()
- func (m *QueryRewardPoolBalanceResponse) Reset()
- func (m *QueryRewardPoolBalanceResponse) Size() (n int)
- func (m *QueryRewardPoolBalanceResponse) String() string
- func (m *QueryRewardPoolBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryRewardPoolBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryRewardPoolBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRewardPoolBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryRewardPoolBalanceResponse) XXX_Size() int
- func (m *QueryRewardPoolBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type StakingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddFundsToRewardPool(ctx context.Context, req *MsgAddFundsToRewardPool) (*MsgAddFundsToRewardPoolResponse, error)
- func (*UnimplementedMsgServer) AggregateExchangeRatePrevote(ctx context.Context, req *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error)
- func (*UnimplementedMsgServer) AggregateExchangeRateVote(ctx context.Context, req *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error)
- func (*UnimplementedMsgServer) DelegateFeedConsent(ctx context.Context, req *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ActiveExchangeRates(ctx context.Context, req *QueryActiveExchangeRatesRequest) (*QueryActiveExchangeRatesResponse, error)
- func (*UnimplementedQueryServer) AggregatePrevote(ctx context.Context, req *QueryAggregatePrevoteRequest) (*QueryAggregatePrevoteResponse, error)
- func (*UnimplementedQueryServer) AggregatePrevotes(ctx context.Context, req *QueryAggregatePrevotesRequest) (*QueryAggregatePrevotesResponse, error)
- func (*UnimplementedQueryServer) AggregateVote(ctx context.Context, req *QueryAggregateVoteRequest) (*QueryAggregateVoteResponse, error)
- func (*UnimplementedQueryServer) AggregateVotes(ctx context.Context, req *QueryAggregateVotesRequest) (*QueryAggregateVotesResponse, error)
- func (*UnimplementedQueryServer) AllExchangeRates(ctx context.Context, req *QueryAllExchangeRatesRequest) (*QueryAllExchangeRatesResponse, error)
- func (*UnimplementedQueryServer) ExchangeRate(ctx context.Context, req *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
- func (*UnimplementedQueryServer) FeederDelegation(ctx context.Context, req *QueryFeederDelegationRequest) (*QueryFeederDelegationResponse, error)
- func (*UnimplementedQueryServer) MissCounter(ctx context.Context, req *QueryMissCounterRequest) (*QueryMissCounterResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) QueryRewardPoolBalance(ctx context.Context, req *QueryRewardPoolBalanceRequest) (*QueryRewardPoolBalanceResponse, error)
- type VoteForTally
- type VoteHash
Constants ¶
const ( PersistenceDenom string = "uxprt" PersistenceSymbol string = "XPRT" PersistenceExponent = uint32(6) BlocksPerMinute = uint64(10) BlocksPerHour = BlocksPerMinute * 60 BlocksPerDay = BlocksPerHour * 24 BlocksPerWeek = BlocksPerDay * 7 BlocksPerMonth = BlocksPerDay * 30 BlocksPerYear = BlocksPerDay * 365 MicroUnit = int64(1e6) // AtomDenom supported by oracle AtomDenom string = "ibc/4A17832B26BF318D052563EFFE677C1DE11DF8CE104F00204860F3E3439818B2" AtomSymbol string = "ATOM" AtomExponent = uint32(6) )
const ( EventTypeExchangeRateUpdate = "exchange_rate_update" EventTypePrevote = "prevote" EventTypeVote = "vote" EventTypeFeedDelegate = "feed_delegate" EventTypeAggregatePrevote = "aggregate_prevote" EventTypeAggregateVote = "aggregate_vote" EventAttrKeyDenom = "denom" EventAttrKeyVoter = "voter" EventAttrKeyExchangeRate = "exchange_rate" EventAttrKeyExchangeRates = "exchange_rates" EventAttrKeyOperator = "operator" EventAttrKeyFeeder = "feeder" EventAttrValueCategory = ModuleName )
Oracle module event types
const ( // ModuleName is the name of the oracle module ModuleName = "oracle" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the msg router key for the oracle module RouterKey = ModuleName // QuerierRoute is the query router key for the oracle module QuerierRoute = ModuleName )
const ( TypeMsgDelegateFeedConsent = "delegate_feeder" TypeMsgAggregateExchangeRatePrevote = "aggregate_exchange_rate_prevote" TypeMsgAggregateExchangeRateVote = "aggregate_exchange_rate_vote" TypeMsgAddFundsToRewardPool = "add_funds_to_reward_pool" )
Messages types constants
const ( DefaultVotePeriod = BlocksPerMinute * 1 // 1 minute DefaultSlashWindow = BlocksPerWeek // window for a week DefaultRewardDistributionWindow = BlocksPerYear // window for a year // maximum number of decimals allowed for VoteThreshold MaxVoteThresholdPrecision = 2 MaxVoteThresholdMultiplier = 100 // must be 10^MaxVoteThresholdPrecision )
Default parameter values
Variables ¶
var ( ErrInvalidOraclePrice = sdkerrors.Register(ModuleName, 1112, "invalid oracle price") ErrInvalidExchangeRate = sdkerrors.Register(ModuleName, 1, "invalid exchange rate") 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)) ErrVerificationFailed = sdkerrors.Register(ModuleName, 7, "hash verification failed") ErrRevealPeriodMissMatch = sdkerrors.Register(ModuleName, 8, "reveal period of submitted vote does not match with registered prevote") 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") ErrExistingPrevote = sdkerrors.Register(ModuleName, 15, "prevote already submitted for this voting period") ErrBallotNotSorted = sdkerrors.Register(ModuleName, 16, "ballot must be sorted before this operation") )
Oracle sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( 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 )
KVStore key prefixes
var ( ErrInvalidLengthOracle = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOracle = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group") )
var ( KeyVotePeriod = []byte("VotePeriod") KeyVoteThreshold = []byte("VoteThreshold") KeyRewardBand = []byte("RewardBand") KeyRewardDistributionWindow = []byte("RewardDistributionWindow") KeyAcceptList = []byte("AcceptList") KeySlashFraction = []byte("SlashFraction") KeySlashWindow = []byte("SlashWindow") KeyMinValidPerWindow = []byte("MinValidPerWindow") )
Parameter keys
var ( DefaultVoteThreshold = sdk.NewDecWithPrec(50, 2) // 50% DefaultRewardBand = sdk.NewDecWithPrec(2, 2) // 2% (-1, 1) DefaultAcceptList = DenomList{ { BaseDenom: AtomDenom, SymbolDenom: AtomSymbol, Exponent: AtomExponent, }, } DefaultSlashFraction = sdk.NewDec(0) // 0% DefaultMinValidPerWindow = sdk.NewDecWithPrec(5, 2) // 5% )
Default parameter values
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc 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 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 ¶
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 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 RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateGenesis ¶
func ValidateGenesis(data *GenesisState) error
ValidateGenesis validates the oracle genesis state.
func ValidateVoteThreshold ¶
func ValidateVoteThreshold(i interface{}) error
ValidateVoteThreshold validates oracle exchange rates power vote threshold. Must be * a decimal value > 0.33 and <= 1. * max precision is 2 (so 0.501 is not allowed)
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 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 ¶
func (v AggregateExchangeRatePrevote) String() 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 string, 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 ¶
func (h AggregateVoteHash) Equal(h2 AggregateVoteHash) bool
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 string, recipientModule string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool) SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) // only used for simulation SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
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 ¶
ClaimMapToSlice returns an array of sorted exchange rate ballots.
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) ProtoMessage ¶
func (*Denom) ProtoMessage()
func (*Denom) XXX_DiscardUnknown ¶
func (m *Denom) XXX_DiscardUnknown()
func (*Denom) XXX_Marshal ¶
func (*Denom) XXX_Unmarshal ¶
type DenomList ¶
type DenomList []Denom
DenomList is array of Denom
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 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) GetFeederAddress ¶
func (m *FeederDelegation) GetFeederAddress() string
func (*FeederDelegation) GetValidatorAddress ¶
func (m *FeederDelegation) GetValidatorAddress() string
func (*FeederDelegation) Marshal ¶
func (m *FeederDelegation) Marshal() (dAtA []byte, err 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 */ }
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, ) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAggregateExchangeRatePrevotes ¶
func (m *GenesisState) GetAggregateExchangeRatePrevotes() []AggregateExchangeRatePrevote
func (*GenesisState) GetAggregateExchangeRateVotes ¶
func (m *GenesisState) GetAggregateExchangeRateVotes() []AggregateExchangeRateVote
func (*GenesisState) GetExchangeRates ¶
func (m *GenesisState) GetExchangeRates() ExchangeRateTuples
func (*GenesisState) GetFeederDelegations ¶
func (m *GenesisState) GetFeederDelegations() []FeederDelegation
func (*GenesisState) GetMissCounters ¶
func (m *GenesisState) GetMissCounters() []MissCounter
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) 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. It stores the number of vote periods missed by a validator in a slash window.
func (*MissCounter) Descriptor ¶
func (*MissCounter) Descriptor() ([]byte, []int)
func (*MissCounter) GetMissCounter ¶
func (m *MissCounter) GetMissCounter() uint64
func (*MissCounter) GetValidatorAddress ¶
func (m *MissCounter) GetValidatorAddress() string
func (*MissCounter) Marshal ¶
func (m *MissCounter) Marshal() (dAtA []byte, err 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 MsgAddFundsToRewardPool ¶
type MsgAddFundsToRewardPool struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty" yaml:"from"` // rewards are the coin(s) to add to reward pool Funds github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=funds,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"funds"` }
func NewMsgAddFundsToRewardPool ¶
func NewMsgAddFundsToRewardPool(from sdk.AccAddress, funds sdk.Coins) *MsgAddFundsToRewardPool
func (*MsgAddFundsToRewardPool) Descriptor ¶
func (*MsgAddFundsToRewardPool) Descriptor() ([]byte, []int)
func (MsgAddFundsToRewardPool) GetSignBytes ¶
func (m MsgAddFundsToRewardPool) GetSignBytes() []byte
GetSignBytes implements sdk.Msg
func (MsgAddFundsToRewardPool) GetSigners ¶
func (m MsgAddFundsToRewardPool) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgAddFundsToRewardPool) Marshal ¶
func (m *MsgAddFundsToRewardPool) Marshal() (dAtA []byte, err error)
func (*MsgAddFundsToRewardPool) MarshalTo ¶
func (m *MsgAddFundsToRewardPool) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddFundsToRewardPool) MarshalToSizedBuffer ¶
func (m *MsgAddFundsToRewardPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddFundsToRewardPool) ProtoMessage ¶
func (*MsgAddFundsToRewardPool) ProtoMessage()
func (*MsgAddFundsToRewardPool) Reset ¶
func (m *MsgAddFundsToRewardPool) Reset()
func (MsgAddFundsToRewardPool) Route ¶
func (m MsgAddFundsToRewardPool) Route() string
Route implements sdk.Msg
func (*MsgAddFundsToRewardPool) Size ¶
func (m *MsgAddFundsToRewardPool) Size() (n int)
func (*MsgAddFundsToRewardPool) String ¶
func (m *MsgAddFundsToRewardPool) String() string
func (MsgAddFundsToRewardPool) Type ¶
func (m MsgAddFundsToRewardPool) Type() string
Type implements sdk.Msg
func (*MsgAddFundsToRewardPool) Unmarshal ¶
func (m *MsgAddFundsToRewardPool) Unmarshal(dAtA []byte) error
func (MsgAddFundsToRewardPool) ValidateBasic ¶
func (m MsgAddFundsToRewardPool) ValidateBasic() error
ValidateBasic implements sdk.Msg
func (*MsgAddFundsToRewardPool) XXX_DiscardUnknown ¶
func (m *MsgAddFundsToRewardPool) XXX_DiscardUnknown()
func (*MsgAddFundsToRewardPool) XXX_Marshal ¶
func (m *MsgAddFundsToRewardPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddFundsToRewardPool) XXX_Merge ¶
func (m *MsgAddFundsToRewardPool) XXX_Merge(src proto.Message)
func (*MsgAddFundsToRewardPool) XXX_Size ¶
func (m *MsgAddFundsToRewardPool) XXX_Size() int
func (*MsgAddFundsToRewardPool) XXX_Unmarshal ¶
func (m *MsgAddFundsToRewardPool) XXX_Unmarshal(b []byte) error
type MsgAddFundsToRewardPoolResponse ¶
type MsgAddFundsToRewardPoolResponse struct { }
MsgAddFundsToRewardPoolResponse
func (*MsgAddFundsToRewardPoolResponse) Descriptor ¶
func (*MsgAddFundsToRewardPoolResponse) Descriptor() ([]byte, []int)
func (*MsgAddFundsToRewardPoolResponse) Marshal ¶
func (m *MsgAddFundsToRewardPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddFundsToRewardPoolResponse) MarshalTo ¶
func (m *MsgAddFundsToRewardPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddFundsToRewardPoolResponse) MarshalToSizedBuffer ¶
func (m *MsgAddFundsToRewardPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddFundsToRewardPoolResponse) ProtoMessage ¶
func (*MsgAddFundsToRewardPoolResponse) ProtoMessage()
func (*MsgAddFundsToRewardPoolResponse) Reset ¶
func (m *MsgAddFundsToRewardPoolResponse) Reset()
func (*MsgAddFundsToRewardPoolResponse) Size ¶
func (m *MsgAddFundsToRewardPoolResponse) Size() (n int)
func (*MsgAddFundsToRewardPoolResponse) String ¶
func (m *MsgAddFundsToRewardPoolResponse) String() string
func (*MsgAddFundsToRewardPoolResponse) Unmarshal ¶
func (m *MsgAddFundsToRewardPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgAddFundsToRewardPoolResponse) XXX_DiscardUnknown ¶
func (m *MsgAddFundsToRewardPoolResponse) XXX_DiscardUnknown()
func (*MsgAddFundsToRewardPoolResponse) XXX_Marshal ¶
func (m *MsgAddFundsToRewardPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddFundsToRewardPoolResponse) XXX_Merge ¶
func (m *MsgAddFundsToRewardPoolResponse) XXX_Merge(src proto.Message)
func (*MsgAddFundsToRewardPoolResponse) XXX_Size ¶
func (m *MsgAddFundsToRewardPoolResponse) XXX_Size() int
func (*MsgAddFundsToRewardPoolResponse) XXX_Unmarshal ¶
func (m *MsgAddFundsToRewardPoolResponse) 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 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 (m *MsgAggregateExchangeRatePrevote) Reset()
func (MsgAggregateExchangeRatePrevote) Route ¶
func (msg MsgAggregateExchangeRatePrevote) Route() string
Route implements sdk.Msg
func (*MsgAggregateExchangeRatePrevote) Size ¶
func (m *MsgAggregateExchangeRatePrevote) Size() (n int)
func (*MsgAggregateExchangeRatePrevote) String ¶
func (m *MsgAggregateExchangeRatePrevote) String() string
func (MsgAggregateExchangeRatePrevote) Type ¶
func (msg MsgAggregateExchangeRatePrevote) Type() string
Type implements sdk.Msg
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) ProtoMessage()
func (*MsgAggregateExchangeRatePrevoteResponse) Reset ¶
func (m *MsgAggregateExchangeRatePrevoteResponse) Reset()
func (*MsgAggregateExchangeRatePrevoteResponse) Size ¶
func (m *MsgAggregateExchangeRatePrevoteResponse) Size() (n int)
func (*MsgAggregateExchangeRatePrevoteResponse) String ¶
func (m *MsgAggregateExchangeRatePrevoteResponse) String() 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 (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Merge(src proto.Message)
func (*MsgAggregateExchangeRatePrevoteResponse) XXX_Size ¶
func (m *MsgAggregateExchangeRatePrevoteResponse) XXX_Size() int
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 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) Route ¶
func (msg MsgAggregateExchangeRateVote) Route() string
Route implements sdk.Msg
func (*MsgAggregateExchangeRateVote) Size ¶
func (m *MsgAggregateExchangeRateVote) Size() (n int)
func (*MsgAggregateExchangeRateVote) String ¶
func (m *MsgAggregateExchangeRateVote) String() string
func (MsgAggregateExchangeRateVote) Type ¶
func (msg MsgAggregateExchangeRateVote) Type() string
Type implements sdk.Msg
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 (m *MsgAggregateExchangeRateVoteResponse) Reset()
func (*MsgAggregateExchangeRateVoteResponse) Size ¶
func (m *MsgAggregateExchangeRateVoteResponse) Size() (n int)
func (*MsgAggregateExchangeRateVoteResponse) String ¶
func (m *MsgAggregateExchangeRateVoteResponse) String() 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 (m *MsgAggregateExchangeRateVoteResponse) XXX_Merge(src proto.Message)
func (*MsgAggregateExchangeRateVoteResponse) XXX_Size ¶
func (m *MsgAggregateExchangeRateVoteResponse) XXX_Size() int
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) // AddFundsToRewardPool AddFundsToRewardPool(ctx context.Context, in *MsgAddFundsToRewardPool, opts ...grpc.CallOption) (*MsgAddFundsToRewardPoolResponse, 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 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) Route ¶
func (msg MsgDelegateFeedConsent) Route() string
Route implements sdk.Msg
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 sdk.Msg
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 (m *MsgDelegateFeedConsentResponse) String() 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) // AddFundsToRewardPool AddFundsToRewardPool(context.Context, *MsgAddFundsToRewardPool) (*MsgAddFundsToRewardPoolResponse, 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 */ AcceptList DenomList `protobuf:"bytes,5,rep,name=accept_list,json=acceptList,proto3,castrepeated=DenomList" json:"accept_list" yaml:"accept_list"` 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 */ }
Params defines the parameters for the oracle module. https://classic-docs.terra.money/docs/develop/module-specifications/spec-oracle.html#parameters
func DefaultParams ¶
func DefaultParams() Params
DefaultParams creates default oracle module parameters
func (*Params) Descriptor ¶
func (*Params) GetAcceptList ¶
func (*Params) GetRewardDistributionWindow ¶
func (*Params) GetSlashWindow ¶
func (*Params) GetVotePeriod ¶
func (*Params) MarshalToSizedBuffer ¶
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) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryActiveExchangeRatesRequest ¶
type QueryActiveExchangeRatesRequest struct { }
QueryActiveExchangeRatesRequest is the request type for the Query/ActiveExchangeRates RPC method.
func (*QueryActiveExchangeRatesRequest) Descriptor ¶
func (*QueryActiveExchangeRatesRequest) Descriptor() ([]byte, []int)
func (*QueryActiveExchangeRatesRequest) Marshal ¶
func (m *QueryActiveExchangeRatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryActiveExchangeRatesRequest) MarshalTo ¶
func (m *QueryActiveExchangeRatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryActiveExchangeRatesRequest) MarshalToSizedBuffer ¶
func (m *QueryActiveExchangeRatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryActiveExchangeRatesRequest) ProtoMessage ¶
func (*QueryActiveExchangeRatesRequest) ProtoMessage()
func (*QueryActiveExchangeRatesRequest) Reset ¶
func (m *QueryActiveExchangeRatesRequest) Reset()
func (*QueryActiveExchangeRatesRequest) Size ¶
func (m *QueryActiveExchangeRatesRequest) Size() (n int)
func (*QueryActiveExchangeRatesRequest) String ¶
func (m *QueryActiveExchangeRatesRequest) String() string
func (*QueryActiveExchangeRatesRequest) Unmarshal ¶
func (m *QueryActiveExchangeRatesRequest) Unmarshal(dAtA []byte) error
func (*QueryActiveExchangeRatesRequest) XXX_DiscardUnknown ¶
func (m *QueryActiveExchangeRatesRequest) XXX_DiscardUnknown()
func (*QueryActiveExchangeRatesRequest) XXX_Marshal ¶
func (m *QueryActiveExchangeRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryActiveExchangeRatesRequest) XXX_Merge ¶
func (m *QueryActiveExchangeRatesRequest) XXX_Merge(src proto.Message)
func (*QueryActiveExchangeRatesRequest) XXX_Size ¶
func (m *QueryActiveExchangeRatesRequest) XXX_Size() int
func (*QueryActiveExchangeRatesRequest) XXX_Unmarshal ¶
func (m *QueryActiveExchangeRatesRequest) 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) GetActiveRates ¶
func (m *QueryActiveExchangeRatesResponse) GetActiveRates() []string
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 (m *QueryActiveExchangeRatesResponse) Reset()
func (*QueryActiveExchangeRatesResponse) Size ¶
func (m *QueryActiveExchangeRatesResponse) Size() (n int)
func (*QueryActiveExchangeRatesResponse) String ¶
func (m *QueryActiveExchangeRatesResponse) String() 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 (m *QueryActiveExchangeRatesResponse) XXX_Merge(src proto.Message)
func (*QueryActiveExchangeRatesResponse) XXX_Size ¶
func (m *QueryActiveExchangeRatesResponse) XXX_Size() int
func (*QueryActiveExchangeRatesResponse) XXX_Unmarshal ¶
func (m *QueryActiveExchangeRatesResponse) XXX_Unmarshal(b []byte) error
type QueryAggregatePrevoteRequest ¶
type QueryAggregatePrevoteRequest 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"` }
QueryAggregatePrevoteRequest is the request type for the Query/AggregatePrevote RPC method.
func (*QueryAggregatePrevoteRequest) Descriptor ¶
func (*QueryAggregatePrevoteRequest) Descriptor() ([]byte, []int)
func (*QueryAggregatePrevoteRequest) Marshal ¶
func (m *QueryAggregatePrevoteRequest) Marshal() (dAtA []byte, err error)
func (*QueryAggregatePrevoteRequest) MarshalTo ¶
func (m *QueryAggregatePrevoteRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAggregatePrevoteRequest) MarshalToSizedBuffer ¶
func (m *QueryAggregatePrevoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAggregatePrevoteRequest) ProtoMessage ¶
func (*QueryAggregatePrevoteRequest) ProtoMessage()
func (*QueryAggregatePrevoteRequest) Reset ¶
func (m *QueryAggregatePrevoteRequest) Reset()
func (*QueryAggregatePrevoteRequest) Size ¶
func (m *QueryAggregatePrevoteRequest) Size() (n int)
func (*QueryAggregatePrevoteRequest) String ¶
func (m *QueryAggregatePrevoteRequest) String() string
func (*QueryAggregatePrevoteRequest) Unmarshal ¶
func (m *QueryAggregatePrevoteRequest) Unmarshal(dAtA []byte) error
func (*QueryAggregatePrevoteRequest) XXX_DiscardUnknown ¶
func (m *QueryAggregatePrevoteRequest) XXX_DiscardUnknown()
func (*QueryAggregatePrevoteRequest) XXX_Marshal ¶
func (m *QueryAggregatePrevoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAggregatePrevoteRequest) XXX_Merge ¶
func (m *QueryAggregatePrevoteRequest) XXX_Merge(src proto.Message)
func (*QueryAggregatePrevoteRequest) XXX_Size ¶
func (m *QueryAggregatePrevoteRequest) XXX_Size() int
func (*QueryAggregatePrevoteRequest) XXX_Unmarshal ¶
func (m *QueryAggregatePrevoteRequest) 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) GetAggregatePrevote ¶
func (m *QueryAggregatePrevoteResponse) GetAggregatePrevote() AggregateExchangeRatePrevote
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 (m *QueryAggregatePrevoteResponse) String() 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 QueryAggregatePrevotesRequest ¶
type QueryAggregatePrevotesRequest struct { }
QueryAggregatePrevotesRequest is the request type for the Query/AggregatePrevotes RPC method.
func (*QueryAggregatePrevotesRequest) Descriptor ¶
func (*QueryAggregatePrevotesRequest) Descriptor() ([]byte, []int)
func (*QueryAggregatePrevotesRequest) Marshal ¶
func (m *QueryAggregatePrevotesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAggregatePrevotesRequest) MarshalTo ¶
func (m *QueryAggregatePrevotesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAggregatePrevotesRequest) MarshalToSizedBuffer ¶
func (m *QueryAggregatePrevotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAggregatePrevotesRequest) ProtoMessage ¶
func (*QueryAggregatePrevotesRequest) ProtoMessage()
func (*QueryAggregatePrevotesRequest) Reset ¶
func (m *QueryAggregatePrevotesRequest) Reset()
func (*QueryAggregatePrevotesRequest) Size ¶
func (m *QueryAggregatePrevotesRequest) Size() (n int)
func (*QueryAggregatePrevotesRequest) String ¶
func (m *QueryAggregatePrevotesRequest) String() string
func (*QueryAggregatePrevotesRequest) Unmarshal ¶
func (m *QueryAggregatePrevotesRequest) Unmarshal(dAtA []byte) error
func (*QueryAggregatePrevotesRequest) XXX_DiscardUnknown ¶
func (m *QueryAggregatePrevotesRequest) XXX_DiscardUnknown()
func (*QueryAggregatePrevotesRequest) XXX_Marshal ¶
func (m *QueryAggregatePrevotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAggregatePrevotesRequest) XXX_Merge ¶
func (m *QueryAggregatePrevotesRequest) XXX_Merge(src proto.Message)
func (*QueryAggregatePrevotesRequest) XXX_Size ¶
func (m *QueryAggregatePrevotesRequest) XXX_Size() int
func (*QueryAggregatePrevotesRequest) XXX_Unmarshal ¶
func (m *QueryAggregatePrevotesRequest) 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) GetAggregatePrevotes ¶
func (m *QueryAggregatePrevotesResponse) GetAggregatePrevotes() []AggregateExchangeRatePrevote
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 (m *QueryAggregatePrevotesResponse) String() 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 QueryAggregateVoteRequest ¶
type QueryAggregateVoteRequest 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"` }
QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC method.
func (*QueryAggregateVoteRequest) Descriptor ¶
func (*QueryAggregateVoteRequest) Descriptor() ([]byte, []int)
func (*QueryAggregateVoteRequest) Marshal ¶
func (m *QueryAggregateVoteRequest) Marshal() (dAtA []byte, err error)
func (*QueryAggregateVoteRequest) MarshalTo ¶
func (m *QueryAggregateVoteRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAggregateVoteRequest) MarshalToSizedBuffer ¶
func (m *QueryAggregateVoteRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAggregateVoteRequest) ProtoMessage ¶
func (*QueryAggregateVoteRequest) ProtoMessage()
func (*QueryAggregateVoteRequest) Reset ¶
func (m *QueryAggregateVoteRequest) Reset()
func (*QueryAggregateVoteRequest) Size ¶
func (m *QueryAggregateVoteRequest) Size() (n int)
func (*QueryAggregateVoteRequest) String ¶
func (m *QueryAggregateVoteRequest) String() string
func (*QueryAggregateVoteRequest) Unmarshal ¶
func (m *QueryAggregateVoteRequest) Unmarshal(dAtA []byte) error
func (*QueryAggregateVoteRequest) XXX_DiscardUnknown ¶
func (m *QueryAggregateVoteRequest) XXX_DiscardUnknown()
func (*QueryAggregateVoteRequest) XXX_Marshal ¶
func (m *QueryAggregateVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAggregateVoteRequest) XXX_Merge ¶
func (m *QueryAggregateVoteRequest) XXX_Merge(src proto.Message)
func (*QueryAggregateVoteRequest) XXX_Size ¶
func (m *QueryAggregateVoteRequest) XXX_Size() int
func (*QueryAggregateVoteRequest) XXX_Unmarshal ¶
func (m *QueryAggregateVoteRequest) 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) GetAggregateVote ¶
func (m *QueryAggregateVoteResponse) GetAggregateVote() AggregateExchangeRateVote
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 QueryAggregateVotesRequest ¶
type QueryAggregateVotesRequest struct { }
QueryAggregateVotesRequest is the request type for the Query/AggregateVotes RPC method.
func (*QueryAggregateVotesRequest) Descriptor ¶
func (*QueryAggregateVotesRequest) Descriptor() ([]byte, []int)
func (*QueryAggregateVotesRequest) Marshal ¶
func (m *QueryAggregateVotesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAggregateVotesRequest) MarshalTo ¶
func (m *QueryAggregateVotesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAggregateVotesRequest) MarshalToSizedBuffer ¶
func (m *QueryAggregateVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAggregateVotesRequest) ProtoMessage ¶
func (*QueryAggregateVotesRequest) ProtoMessage()
func (*QueryAggregateVotesRequest) Reset ¶
func (m *QueryAggregateVotesRequest) Reset()
func (*QueryAggregateVotesRequest) Size ¶
func (m *QueryAggregateVotesRequest) Size() (n int)
func (*QueryAggregateVotesRequest) String ¶
func (m *QueryAggregateVotesRequest) String() string
func (*QueryAggregateVotesRequest) Unmarshal ¶
func (m *QueryAggregateVotesRequest) Unmarshal(dAtA []byte) error
func (*QueryAggregateVotesRequest) XXX_DiscardUnknown ¶
func (m *QueryAggregateVotesRequest) XXX_DiscardUnknown()
func (*QueryAggregateVotesRequest) XXX_Marshal ¶
func (m *QueryAggregateVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAggregateVotesRequest) XXX_Merge ¶
func (m *QueryAggregateVotesRequest) XXX_Merge(src proto.Message)
func (*QueryAggregateVotesRequest) XXX_Size ¶
func (m *QueryAggregateVotesRequest) XXX_Size() int
func (*QueryAggregateVotesRequest) XXX_Unmarshal ¶
func (m *QueryAggregateVotesRequest) 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) GetAggregateVotes ¶
func (m *QueryAggregateVotesResponse) GetAggregateVotes() []AggregateExchangeRateVote
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 QueryAllExchangeRatesRequest ¶
type QueryAllExchangeRatesRequest struct { }
QueryAllExchangeRatesRequest is the request type for the Query/ExchangeRate RPC method.
func (*QueryAllExchangeRatesRequest) Descriptor ¶
func (*QueryAllExchangeRatesRequest) Descriptor() ([]byte, []int)
func (*QueryAllExchangeRatesRequest) Marshal ¶
func (m *QueryAllExchangeRatesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllExchangeRatesRequest) MarshalTo ¶
func (m *QueryAllExchangeRatesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllExchangeRatesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllExchangeRatesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllExchangeRatesRequest) ProtoMessage ¶
func (*QueryAllExchangeRatesRequest) ProtoMessage()
func (*QueryAllExchangeRatesRequest) Reset ¶
func (m *QueryAllExchangeRatesRequest) Reset()
func (*QueryAllExchangeRatesRequest) Size ¶
func (m *QueryAllExchangeRatesRequest) Size() (n int)
func (*QueryAllExchangeRatesRequest) String ¶
func (m *QueryAllExchangeRatesRequest) String() string
func (*QueryAllExchangeRatesRequest) Unmarshal ¶
func (m *QueryAllExchangeRatesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllExchangeRatesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllExchangeRatesRequest) XXX_DiscardUnknown()
func (*QueryAllExchangeRatesRequest) XXX_Marshal ¶
func (m *QueryAllExchangeRatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllExchangeRatesRequest) XXX_Merge ¶
func (m *QueryAllExchangeRatesRequest) XXX_Merge(src proto.Message)
func (*QueryAllExchangeRatesRequest) XXX_Size ¶
func (m *QueryAllExchangeRatesRequest) XXX_Size() int
func (*QueryAllExchangeRatesRequest) XXX_Unmarshal ¶
func (m *QueryAllExchangeRatesRequest) XXX_Unmarshal(b []byte) error
type QueryAllExchangeRatesResponse ¶
type QueryAllExchangeRatesResponse 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 */ }
QueryAllExchangeRatesResponse is response type for the Query/ExchangeRates RPC method.
func (*QueryAllExchangeRatesResponse) Descriptor ¶
func (*QueryAllExchangeRatesResponse) Descriptor() ([]byte, []int)
func (*QueryAllExchangeRatesResponse) GetExchangeRates ¶
func (m *QueryAllExchangeRatesResponse) GetExchangeRates() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*QueryAllExchangeRatesResponse) Marshal ¶
func (m *QueryAllExchangeRatesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllExchangeRatesResponse) MarshalTo ¶
func (m *QueryAllExchangeRatesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllExchangeRatesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllExchangeRatesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllExchangeRatesResponse) ProtoMessage ¶
func (*QueryAllExchangeRatesResponse) ProtoMessage()
func (*QueryAllExchangeRatesResponse) Reset ¶
func (m *QueryAllExchangeRatesResponse) Reset()
func (*QueryAllExchangeRatesResponse) Size ¶
func (m *QueryAllExchangeRatesResponse) Size() (n int)
func (*QueryAllExchangeRatesResponse) String ¶
func (m *QueryAllExchangeRatesResponse) String() string
func (*QueryAllExchangeRatesResponse) Unmarshal ¶
func (m *QueryAllExchangeRatesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllExchangeRatesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllExchangeRatesResponse) XXX_DiscardUnknown()
func (*QueryAllExchangeRatesResponse) XXX_Marshal ¶
func (m *QueryAllExchangeRatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllExchangeRatesResponse) XXX_Merge ¶
func (m *QueryAllExchangeRatesResponse) XXX_Merge(src proto.Message)
func (*QueryAllExchangeRatesResponse) XXX_Size ¶
func (m *QueryAllExchangeRatesResponse) XXX_Size() int
func (*QueryAllExchangeRatesResponse) XXX_Unmarshal ¶
func (m *QueryAllExchangeRatesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // ExchangeRates returns exchange rates of all denoms. AllExchangeRates(ctx context.Context, in *QueryAllExchangeRatesRequest, opts ...grpc.CallOption) (*QueryAllExchangeRatesResponse, error) // ExchangeRate returns exchange rates of a specified denom. ExchangeRate(ctx context.Context, in *QueryExchangeRateRequest, opts ...grpc.CallOption) (*QueryExchangeRateResponse, error) // ActiveExchangeRates returns all active denoms ActiveExchangeRates(ctx context.Context, in *QueryActiveExchangeRatesRequest, opts ...grpc.CallOption) (*QueryActiveExchangeRatesResponse, error) // FeederDelegation returns feeder delegation of a validator FeederDelegation(ctx context.Context, in *QueryFeederDelegationRequest, opts ...grpc.CallOption) (*QueryFeederDelegationResponse, error) // MissCounter returns oracle miss counter of a validator MissCounter(ctx context.Context, in *QueryMissCounterRequest, opts ...grpc.CallOption) (*QueryMissCounterResponse, error) // AggregatePrevote returns an aggregate prevote of a validator AggregatePrevote(ctx context.Context, in *QueryAggregatePrevoteRequest, opts ...grpc.CallOption) (*QueryAggregatePrevoteResponse, error) // AggregatePrevotes returns aggregate prevotes of all validators AggregatePrevotes(ctx context.Context, in *QueryAggregatePrevotesRequest, opts ...grpc.CallOption) (*QueryAggregatePrevotesResponse, error) // AggregateVote returns an aggregate vote of a validator AggregateVote(ctx context.Context, in *QueryAggregateVoteRequest, opts ...grpc.CallOption) (*QueryAggregateVoteResponse, error) // AggregateVotes returns aggregate votes of all validators AggregateVotes(ctx context.Context, in *QueryAggregateVotesRequest, opts ...grpc.CallOption) (*QueryAggregateVotesResponse, error) // Params queries all parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // QueryRewardPoolBalance queries funds left in the reward pool. QueryRewardPoolBalance(ctx context.Context, in *QueryRewardPoolBalanceRequest, opts ...grpc.CallOption) (*QueryRewardPoolBalanceResponse, 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 QueryExchangeRateRequest ¶
type QueryExchangeRateRequest struct { // denom defines the denomination to query for. Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` }
QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC method.
func (*QueryExchangeRateRequest) Descriptor ¶
func (*QueryExchangeRateRequest) Descriptor() ([]byte, []int)
func (*QueryExchangeRateRequest) Marshal ¶
func (m *QueryExchangeRateRequest) Marshal() (dAtA []byte, err error)
func (*QueryExchangeRateRequest) MarshalTo ¶
func (m *QueryExchangeRateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryExchangeRateRequest) MarshalToSizedBuffer ¶
func (m *QueryExchangeRateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryExchangeRateRequest) ProtoMessage ¶
func (*QueryExchangeRateRequest) ProtoMessage()
func (*QueryExchangeRateRequest) Reset ¶
func (m *QueryExchangeRateRequest) Reset()
func (*QueryExchangeRateRequest) Size ¶
func (m *QueryExchangeRateRequest) Size() (n int)
func (*QueryExchangeRateRequest) String ¶
func (m *QueryExchangeRateRequest) String() string
func (*QueryExchangeRateRequest) Unmarshal ¶
func (m *QueryExchangeRateRequest) Unmarshal(dAtA []byte) error
func (*QueryExchangeRateRequest) XXX_DiscardUnknown ¶
func (m *QueryExchangeRateRequest) XXX_DiscardUnknown()
func (*QueryExchangeRateRequest) XXX_Marshal ¶
func (m *QueryExchangeRateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryExchangeRateRequest) XXX_Merge ¶
func (m *QueryExchangeRateRequest) XXX_Merge(src proto.Message)
func (*QueryExchangeRateRequest) XXX_Size ¶
func (m *QueryExchangeRateRequest) XXX_Size() int
func (*QueryExchangeRateRequest) XXX_Unmarshal ¶
func (m *QueryExchangeRateRequest) XXX_Unmarshal(b []byte) error
type QueryExchangeRateResponse ¶
type QueryExchangeRateResponse struct { // denom defines the denomination to query for. ExchangeRate string `protobuf:"bytes,1,opt,name=exchange_rate,json=exchangeRate,proto3" json:"exchange_rate,omitempty"` }
QueryExchangeRateResponse is the request type for the Query/ExchangeRate RPC method.
func (*QueryExchangeRateResponse) Descriptor ¶
func (*QueryExchangeRateResponse) Descriptor() ([]byte, []int)
func (*QueryExchangeRateResponse) Marshal ¶
func (m *QueryExchangeRateResponse) Marshal() (dAtA []byte, err error)
func (*QueryExchangeRateResponse) MarshalTo ¶
func (m *QueryExchangeRateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryExchangeRateResponse) MarshalToSizedBuffer ¶
func (m *QueryExchangeRateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryExchangeRateResponse) ProtoMessage ¶
func (*QueryExchangeRateResponse) ProtoMessage()
func (*QueryExchangeRateResponse) Reset ¶
func (m *QueryExchangeRateResponse) Reset()
func (*QueryExchangeRateResponse) Size ¶
func (m *QueryExchangeRateResponse) Size() (n int)
func (*QueryExchangeRateResponse) String ¶
func (m *QueryExchangeRateResponse) String() string
func (*QueryExchangeRateResponse) Unmarshal ¶
func (m *QueryExchangeRateResponse) Unmarshal(dAtA []byte) error
func (*QueryExchangeRateResponse) XXX_DiscardUnknown ¶
func (m *QueryExchangeRateResponse) XXX_DiscardUnknown()
func (*QueryExchangeRateResponse) XXX_Marshal ¶
func (m *QueryExchangeRateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryExchangeRateResponse) XXX_Merge ¶
func (m *QueryExchangeRateResponse) XXX_Merge(src proto.Message)
func (*QueryExchangeRateResponse) XXX_Size ¶
func (m *QueryExchangeRateResponse) XXX_Size() int
func (*QueryExchangeRateResponse) XXX_Unmarshal ¶
func (m *QueryExchangeRateResponse) XXX_Unmarshal(b []byte) error
type QueryFeederDelegationRequest ¶
type QueryFeederDelegationRequest 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"` }
QueryFeederDelegationRequest is the request type for the Query/FeederDelegation RPC method.
func (*QueryFeederDelegationRequest) Descriptor ¶
func (*QueryFeederDelegationRequest) Descriptor() ([]byte, []int)
func (*QueryFeederDelegationRequest) Marshal ¶
func (m *QueryFeederDelegationRequest) Marshal() (dAtA []byte, err error)
func (*QueryFeederDelegationRequest) MarshalTo ¶
func (m *QueryFeederDelegationRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFeederDelegationRequest) MarshalToSizedBuffer ¶
func (m *QueryFeederDelegationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFeederDelegationRequest) ProtoMessage ¶
func (*QueryFeederDelegationRequest) ProtoMessage()
func (*QueryFeederDelegationRequest) Reset ¶
func (m *QueryFeederDelegationRequest) Reset()
func (*QueryFeederDelegationRequest) Size ¶
func (m *QueryFeederDelegationRequest) Size() (n int)
func (*QueryFeederDelegationRequest) String ¶
func (m *QueryFeederDelegationRequest) String() string
func (*QueryFeederDelegationRequest) Unmarshal ¶
func (m *QueryFeederDelegationRequest) Unmarshal(dAtA []byte) error
func (*QueryFeederDelegationRequest) XXX_DiscardUnknown ¶
func (m *QueryFeederDelegationRequest) XXX_DiscardUnknown()
func (*QueryFeederDelegationRequest) XXX_Marshal ¶
func (m *QueryFeederDelegationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFeederDelegationRequest) XXX_Merge ¶
func (m *QueryFeederDelegationRequest) XXX_Merge(src proto.Message)
func (*QueryFeederDelegationRequest) XXX_Size ¶
func (m *QueryFeederDelegationRequest) XXX_Size() int
func (*QueryFeederDelegationRequest) XXX_Unmarshal ¶
func (m *QueryFeederDelegationRequest) 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) GetFeederAddr ¶
func (m *QueryFeederDelegationResponse) GetFeederAddr() string
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 (m *QueryFeederDelegationResponse) String() 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 QueryMissCounterRequest ¶
type QueryMissCounterRequest 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"` }
QueryMissCounterRequest is the request type for the Query/MissCounter RPC method.
func (*QueryMissCounterRequest) Descriptor ¶
func (*QueryMissCounterRequest) Descriptor() ([]byte, []int)
func (*QueryMissCounterRequest) Marshal ¶
func (m *QueryMissCounterRequest) Marshal() (dAtA []byte, err error)
func (*QueryMissCounterRequest) MarshalTo ¶
func (m *QueryMissCounterRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMissCounterRequest) MarshalToSizedBuffer ¶
func (m *QueryMissCounterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMissCounterRequest) ProtoMessage ¶
func (*QueryMissCounterRequest) ProtoMessage()
func (*QueryMissCounterRequest) Reset ¶
func (m *QueryMissCounterRequest) Reset()
func (*QueryMissCounterRequest) Size ¶
func (m *QueryMissCounterRequest) Size() (n int)
func (*QueryMissCounterRequest) String ¶
func (m *QueryMissCounterRequest) String() string
func (*QueryMissCounterRequest) Unmarshal ¶
func (m *QueryMissCounterRequest) Unmarshal(dAtA []byte) error
func (*QueryMissCounterRequest) XXX_DiscardUnknown ¶
func (m *QueryMissCounterRequest) XXX_DiscardUnknown()
func (*QueryMissCounterRequest) XXX_Marshal ¶
func (m *QueryMissCounterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMissCounterRequest) XXX_Merge ¶
func (m *QueryMissCounterRequest) XXX_Merge(src proto.Message)
func (*QueryMissCounterRequest) XXX_Size ¶
func (m *QueryMissCounterRequest) XXX_Size() int
func (*QueryMissCounterRequest) XXX_Unmarshal ¶
func (m *QueryMissCounterRequest) 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) GetMissCounter ¶
func (m *QueryMissCounterResponse) GetMissCounter() uint64
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 QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryRewardPoolBalanceRequest ¶
type QueryRewardPoolBalanceRequest struct { }
func (*QueryRewardPoolBalanceRequest) Descriptor ¶
func (*QueryRewardPoolBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryRewardPoolBalanceRequest) Marshal ¶
func (m *QueryRewardPoolBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryRewardPoolBalanceRequest) MarshalTo ¶
func (m *QueryRewardPoolBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardPoolBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryRewardPoolBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardPoolBalanceRequest) ProtoMessage ¶
func (*QueryRewardPoolBalanceRequest) ProtoMessage()
func (*QueryRewardPoolBalanceRequest) Reset ¶
func (m *QueryRewardPoolBalanceRequest) Reset()
func (*QueryRewardPoolBalanceRequest) Size ¶
func (m *QueryRewardPoolBalanceRequest) Size() (n int)
func (*QueryRewardPoolBalanceRequest) String ¶
func (m *QueryRewardPoolBalanceRequest) String() string
func (*QueryRewardPoolBalanceRequest) Unmarshal ¶
func (m *QueryRewardPoolBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryRewardPoolBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryRewardPoolBalanceRequest) XXX_DiscardUnknown()
func (*QueryRewardPoolBalanceRequest) XXX_Marshal ¶
func (m *QueryRewardPoolBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardPoolBalanceRequest) XXX_Merge ¶
func (m *QueryRewardPoolBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryRewardPoolBalanceRequest) XXX_Size ¶
func (m *QueryRewardPoolBalanceRequest) XXX_Size() int
func (*QueryRewardPoolBalanceRequest) XXX_Unmarshal ¶
func (m *QueryRewardPoolBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryRewardPoolBalanceResponse ¶
type QueryRewardPoolBalanceResponse struct { // funds left in the reward pool RemainingFunds github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */ }
func (*QueryRewardPoolBalanceResponse) Descriptor ¶
func (*QueryRewardPoolBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryRewardPoolBalanceResponse) GetRemainingFunds ¶
func (m *QueryRewardPoolBalanceResponse) GetRemainingFunds() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryRewardPoolBalanceResponse) Marshal ¶
func (m *QueryRewardPoolBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryRewardPoolBalanceResponse) MarshalTo ¶
func (m *QueryRewardPoolBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryRewardPoolBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryRewardPoolBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryRewardPoolBalanceResponse) ProtoMessage ¶
func (*QueryRewardPoolBalanceResponse) ProtoMessage()
func (*QueryRewardPoolBalanceResponse) Reset ¶
func (m *QueryRewardPoolBalanceResponse) Reset()
func (*QueryRewardPoolBalanceResponse) Size ¶
func (m *QueryRewardPoolBalanceResponse) Size() (n int)
func (*QueryRewardPoolBalanceResponse) String ¶
func (m *QueryRewardPoolBalanceResponse) String() string
func (*QueryRewardPoolBalanceResponse) Unmarshal ¶
func (m *QueryRewardPoolBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryRewardPoolBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryRewardPoolBalanceResponse) XXX_DiscardUnknown()
func (*QueryRewardPoolBalanceResponse) XXX_Marshal ¶
func (m *QueryRewardPoolBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRewardPoolBalanceResponse) XXX_Merge ¶
func (m *QueryRewardPoolBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryRewardPoolBalanceResponse) XXX_Size ¶
func (m *QueryRewardPoolBalanceResponse) XXX_Size() int
func (*QueryRewardPoolBalanceResponse) XXX_Unmarshal ¶
func (m *QueryRewardPoolBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // ExchangeRates returns exchange rates of all denoms. AllExchangeRates(context.Context, *QueryAllExchangeRatesRequest) (*QueryAllExchangeRatesResponse, error) // ExchangeRate returns exchange rates of a specified denom. ExchangeRate(context.Context, *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error) // ActiveExchangeRates returns all active denoms ActiveExchangeRates(context.Context, *QueryActiveExchangeRatesRequest) (*QueryActiveExchangeRatesResponse, error) // FeederDelegation returns feeder delegation of a validator FeederDelegation(context.Context, *QueryFeederDelegationRequest) (*QueryFeederDelegationResponse, error) // MissCounter returns oracle miss counter of a validator MissCounter(context.Context, *QueryMissCounterRequest) (*QueryMissCounterResponse, error) // AggregatePrevote returns an aggregate prevote of a validator AggregatePrevote(context.Context, *QueryAggregatePrevoteRequest) (*QueryAggregatePrevoteResponse, error) // AggregatePrevotes returns aggregate prevotes of all validators AggregatePrevotes(context.Context, *QueryAggregatePrevotesRequest) (*QueryAggregatePrevotesResponse, error) // AggregateVote returns an aggregate vote of a validator AggregateVote(context.Context, *QueryAggregateVoteRequest) (*QueryAggregateVoteResponse, error) // AggregateVotes returns aggregate votes of all validators AggregateVotes(context.Context, *QueryAggregateVotesRequest) (*QueryAggregateVotesResponse, error) // Params queries all parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // QueryRewardPoolBalance queries funds left in the reward pool. QueryRewardPoolBalance(context.Context, *QueryRewardPoolBalanceRequest) (*QueryRewardPoolBalanceResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { Validator(ctx sdk.Context, address sdk.ValAddress) stakingtypes.ValidatorI GetBondedValidatorsByPower(ctx sdk.Context) []stakingtypes.Validator TotalBondedTokens(sdk.Context) math.Int Slash(sdk.Context, sdk.ConsAddress, int64, int64, sdk.Dec) math.Int Jail(sdk.Context, sdk.ConsAddress) ValidatorsPowerStoreIterator(ctx sdk.Context) sdk.Iterator MaxValidators(sdk.Context) uint32 PowerReduction(ctx sdk.Context) (res math.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) AddFundsToRewardPool ¶
func (*UnimplementedMsgServer) AddFundsToRewardPool(ctx context.Context, req *MsgAddFundsToRewardPool) (*MsgAddFundsToRewardPoolResponse, error)
func (*UnimplementedMsgServer) AggregateExchangeRatePrevote ¶
func (*UnimplementedMsgServer) AggregateExchangeRatePrevote(ctx context.Context, req *MsgAggregateExchangeRatePrevote) (*MsgAggregateExchangeRatePrevoteResponse, error)
func (*UnimplementedMsgServer) AggregateExchangeRateVote ¶
func (*UnimplementedMsgServer) AggregateExchangeRateVote(ctx context.Context, req *MsgAggregateExchangeRateVote) (*MsgAggregateExchangeRateVoteResponse, error)
func (*UnimplementedMsgServer) DelegateFeedConsent ¶
func (*UnimplementedMsgServer) DelegateFeedConsent(ctx context.Context, req *MsgDelegateFeedConsent) (*MsgDelegateFeedConsentResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ActiveExchangeRates ¶
func (*UnimplementedQueryServer) ActiveExchangeRates(ctx context.Context, req *QueryActiveExchangeRatesRequest) (*QueryActiveExchangeRatesResponse, error)
func (*UnimplementedQueryServer) AggregatePrevote ¶
func (*UnimplementedQueryServer) AggregatePrevote(ctx context.Context, req *QueryAggregatePrevoteRequest) (*QueryAggregatePrevoteResponse, error)
func (*UnimplementedQueryServer) AggregatePrevotes ¶
func (*UnimplementedQueryServer) AggregatePrevotes(ctx context.Context, req *QueryAggregatePrevotesRequest) (*QueryAggregatePrevotesResponse, error)
func (*UnimplementedQueryServer) AggregateVote ¶
func (*UnimplementedQueryServer) AggregateVote(ctx context.Context, req *QueryAggregateVoteRequest) (*QueryAggregateVoteResponse, error)
func (*UnimplementedQueryServer) AggregateVotes ¶
func (*UnimplementedQueryServer) AggregateVotes(ctx context.Context, req *QueryAggregateVotesRequest) (*QueryAggregateVotesResponse, error)
func (*UnimplementedQueryServer) AllExchangeRates ¶
func (*UnimplementedQueryServer) AllExchangeRates(ctx context.Context, req *QueryAllExchangeRatesRequest) (*QueryAllExchangeRatesResponse, error)
func (*UnimplementedQueryServer) ExchangeRate ¶
func (*UnimplementedQueryServer) ExchangeRate(ctx context.Context, req *QueryExchangeRateRequest) (*QueryExchangeRateResponse, error)
func (*UnimplementedQueryServer) FeederDelegation ¶
func (*UnimplementedQueryServer) FeederDelegation(ctx context.Context, req *QueryFeederDelegationRequest) (*QueryFeederDelegationResponse, error)
func (*UnimplementedQueryServer) MissCounter ¶
func (*UnimplementedQueryServer) MissCounter(ctx context.Context, req *QueryMissCounterRequest) (*QueryMissCounterResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) QueryRewardPoolBalance ¶
func (*UnimplementedQueryServer) QueryRewardPoolBalance(ctx context.Context, req *QueryRewardPoolBalanceRequest) (*QueryRewardPoolBalanceResponse, error)
type VoteForTally ¶
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.