feedsv1beta1

package
v3.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_CurrentFeeds_FullMethodName          = "/band.feeds.v1beta1.Query/CurrentFeeds"
	Query_IsFeeder_FullMethodName              = "/band.feeds.v1beta1.Query/IsFeeder"
	Query_Params_FullMethodName                = "/band.feeds.v1beta1.Query/Params"
	Query_Price_FullMethodName                 = "/band.feeds.v1beta1.Query/Price"
	Query_Prices_FullMethodName                = "/band.feeds.v1beta1.Query/Prices"
	Query_AllPrices_FullMethodName             = "/band.feeds.v1beta1.Query/AllPrices"
	Query_ReferenceSourceConfig_FullMethodName = "/band.feeds.v1beta1.Query/ReferenceSourceConfig"
	Query_SignalTotalPowers_FullMethodName     = "/band.feeds.v1beta1.Query/SignalTotalPowers"
	Query_ValidValidator_FullMethodName        = "/band.feeds.v1beta1.Query/ValidValidator"
	Query_ValidatorPrices_FullMethodName       = "/band.feeds.v1beta1.Query/ValidatorPrices"
	Query_Vote_FullMethodName                  = "/band.feeds.v1beta1.Query/Vote"
)
View Source
const (
	Msg_Vote_FullMethodName                        = "/band.feeds.v1beta1.Msg/Vote"
	Msg_SubmitSignalPrices_FullMethodName          = "/band.feeds.v1beta1.Msg/SubmitSignalPrices"
	Msg_UpdateReferenceSourceConfig_FullMethodName = "/band.feeds.v1beta1.Msg/UpdateReferenceSourceConfig"
	Msg_UpdateParams_FullMethodName                = "/band.feeds.v1beta1.Msg/UpdateParams"
)

Variables

View Source
var (
	Encoder_name = map[int32]string{
		0: "ENCODER_UNSPECIFIED",
		1: "ENCODER_FIXED_POINT_ABI",
		2: "ENCODER_TICK_ABI",
	}
	Encoder_value = map[string]int32{
		"ENCODER_UNSPECIFIED":     0,
		"ENCODER_FIXED_POINT_ABI": 1,
		"ENCODER_TICK_ABI":        2,
	}
)

Enum value maps for Encoder.

View Source
var (
	PriceStatus_name = map[int32]string{
		0: "PRICE_STATUS_UNSPECIFIED",
		1: "PRICE_STATUS_UNKNOWN_SIGNAL_ID",
		2: "PRICE_STATUS_NOT_READY",
		3: "PRICE_STATUS_AVAILABLE",
		4: "PRICE_STATUS_NOT_IN_CURRENT_FEEDS",
	}
	PriceStatus_value = map[string]int32{
		"PRICE_STATUS_UNSPECIFIED":          0,
		"PRICE_STATUS_UNKNOWN_SIGNAL_ID":    1,
		"PRICE_STATUS_NOT_READY":            2,
		"PRICE_STATUS_AVAILABLE":            3,
		"PRICE_STATUS_NOT_IN_CURRENT_FEEDS": 4,
	}
)

Enum value maps for PriceStatus.

View Source
var (
	SignalPriceStatus_name = map[int32]string{
		0: "SIGNAL_PRICE_STATUS_UNSPECIFIED",
		1: "SIGNAL_PRICE_STATUS_UNSUPPORTED",
		2: "SIGNAL_PRICE_STATUS_UNAVAILABLE",
		3: "SIGNAL_PRICE_STATUS_AVAILABLE",
	}
	SignalPriceStatus_value = map[string]int32{
		"SIGNAL_PRICE_STATUS_UNSPECIFIED": 0,
		"SIGNAL_PRICE_STATUS_UNSUPPORTED": 1,
		"SIGNAL_PRICE_STATUS_UNAVAILABLE": 2,
		"SIGNAL_PRICE_STATUS_AVAILABLE":   3,
	}
)

Enum value maps for SignalPriceStatus.

View Source
var File_band_feeds_v1beta1_encoder_proto protoreflect.FileDescriptor
View Source
var File_band_feeds_v1beta1_feeds_proto protoreflect.FileDescriptor
View Source
var File_band_feeds_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_band_feeds_v1beta1_params_proto protoreflect.FileDescriptor
View Source
var File_band_feeds_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_band_feeds_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "band.feeds.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "SubmitSignalPrices",
			Handler:    _Msg_SubmitSignalPrices_Handler,
		},
		{
			MethodName: "UpdateReferenceSourceConfig",
			Handler:    _Msg_UpdateReferenceSourceConfig_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "band/feeds/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "band.feeds.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CurrentFeeds",
			Handler:    _Query_CurrentFeeds_Handler,
		},
		{
			MethodName: "IsFeeder",
			Handler:    _Query_IsFeeder_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Price",
			Handler:    _Query_Price_Handler,
		},
		{
			MethodName: "Prices",
			Handler:    _Query_Prices_Handler,
		},
		{
			MethodName: "AllPrices",
			Handler:    _Query_AllPrices_Handler,
		},
		{
			MethodName: "ReferenceSourceConfig",
			Handler:    _Query_ReferenceSourceConfig_Handler,
		},
		{
			MethodName: "SignalTotalPowers",
			Handler:    _Query_SignalTotalPowers_Handler,
		},
		{
			MethodName: "ValidValidator",
			Handler:    _Query_ValidValidator_Handler,
		},
		{
			MethodName: "ValidatorPrices",
			Handler:    _Query_ValidatorPrices_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Query_Vote_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "band/feeds/v1beta1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type CurrentFeedWithDeviations

type CurrentFeedWithDeviations struct {

	// feeds is a list of currently supported feed-with-deviations.
	Feeds []*FeedWithDeviation `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// last_update_timestamp is the timestamp of the last time supported feeds list is updated.
	LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"`
	// last_update_block is the number of blocks of the last time supported feeds list is updated.
	LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"`
	// contains filtered or unexported fields
}

CurrentFeedWithDeviations is a structure that holds a list of currently supported feed-with-deviations, and its last update time and block.

func (*CurrentFeedWithDeviations) Descriptor deprecated

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

Deprecated: Use CurrentFeedWithDeviations.ProtoReflect.Descriptor instead.

func (*CurrentFeedWithDeviations) GetFeeds

func (*CurrentFeedWithDeviations) GetLastUpdateBlock

func (x *CurrentFeedWithDeviations) GetLastUpdateBlock() int64

func (*CurrentFeedWithDeviations) GetLastUpdateTimestamp

func (x *CurrentFeedWithDeviations) GetLastUpdateTimestamp() int64

func (*CurrentFeedWithDeviations) ProtoMessage

func (*CurrentFeedWithDeviations) ProtoMessage()

func (*CurrentFeedWithDeviations) ProtoReflect

func (*CurrentFeedWithDeviations) Reset

func (x *CurrentFeedWithDeviations) Reset()

func (*CurrentFeedWithDeviations) String

func (x *CurrentFeedWithDeviations) String() string

type CurrentFeeds

type CurrentFeeds struct {

	// feeds is a list of currently supported feeds.
	Feeds []*Feed `protobuf:"bytes,1,rep,name=feeds,proto3" json:"feeds,omitempty"`
	// last_update_timestamp is the timestamp of the last time supported feeds list is updated.
	LastUpdateTimestamp int64 `protobuf:"varint,2,opt,name=last_update_timestamp,json=lastUpdateTimestamp,proto3" json:"last_update_timestamp,omitempty"`
	// last_update_block is the number of blocks of the last time supported feeds list is updated.
	LastUpdateBlock int64 `protobuf:"varint,3,opt,name=last_update_block,json=lastUpdateBlock,proto3" json:"last_update_block,omitempty"`
	// contains filtered or unexported fields
}

CurrentFeeds is a structure that holds a list of currently supported feeds, and its last update time and block.

func (*CurrentFeeds) Descriptor deprecated

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

Deprecated: Use CurrentFeeds.ProtoReflect.Descriptor instead.

func (*CurrentFeeds) GetFeeds

func (x *CurrentFeeds) GetFeeds() []*Feed

func (*CurrentFeeds) GetLastUpdateBlock

func (x *CurrentFeeds) GetLastUpdateBlock() int64

func (*CurrentFeeds) GetLastUpdateTimestamp

func (x *CurrentFeeds) GetLastUpdateTimestamp() int64

func (*CurrentFeeds) ProtoMessage

func (*CurrentFeeds) ProtoMessage()

func (*CurrentFeeds) ProtoReflect

func (x *CurrentFeeds) ProtoReflect() protoreflect.Message

func (*CurrentFeeds) Reset

func (x *CurrentFeeds) Reset()

func (*CurrentFeeds) String

func (x *CurrentFeeds) String() string

type Encoder

type Encoder int32

Encoder is an enumerator that defines the mode of encoding message in tss module.

const (
	// ENCODER_UNSPECIFIED is an unspecified encoder mode.
	Encoder_ENCODER_UNSPECIFIED Encoder = 0
	// ENCODER_FIXED_POINT_ABI is a fixed-point price abi encoder (price * 10^9).
	Encoder_ENCODER_FIXED_POINT_ABI Encoder = 1
	// ENCODER_TICK_ABI is a tick abi encoder.
	Encoder_ENCODER_TICK_ABI Encoder = 2
)

func (Encoder) Descriptor

func (Encoder) Descriptor() protoreflect.EnumDescriptor

func (Encoder) Enum

func (x Encoder) Enum() *Encoder

func (Encoder) EnumDescriptor deprecated

func (Encoder) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encoder.Descriptor instead.

func (Encoder) Number

func (x Encoder) Number() protoreflect.EnumNumber

func (Encoder) String

func (x Encoder) String() string

func (Encoder) Type

func (Encoder) Type() protoreflect.EnumType

type Feed

type Feed struct {

	// signal_id is the unique string that identifies the unit of feed.
	SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// power is the power of the corresponding signal id.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// interval is the interval of the price feed.
	Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
	// contains filtered or unexported fields
}

Feed is a structure that holds a signal id, its total power, and its calculated interval.

func (*Feed) Descriptor deprecated

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

Deprecated: Use Feed.ProtoReflect.Descriptor instead.

func (*Feed) GetInterval

func (x *Feed) GetInterval() int64

func (*Feed) GetPower

func (x *Feed) GetPower() int64

func (*Feed) GetSignalId

func (x *Feed) GetSignalId() string

func (*Feed) ProtoMessage

func (*Feed) ProtoMessage()

func (*Feed) ProtoReflect

func (x *Feed) ProtoReflect() protoreflect.Message

func (*Feed) Reset

func (x *Feed) Reset()

func (*Feed) String

func (x *Feed) String() string

type FeedWithDeviation

type FeedWithDeviation struct {

	// signal_id is the unique string that identifies the unit of feed.
	SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// power is the power of the corresponding signal id.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// interval is the interval of the price feed.
	Interval int64 `protobuf:"varint,3,opt,name=interval,proto3" json:"interval,omitempty"`
	// deviation_basis_point is the maximum deviation value the feed can tolerate, expressed in basis points.
	DeviationBasisPoint int64 `protobuf:"varint,4,opt,name=deviation_basis_point,json=deviationBasisPoint,proto3" json:"deviation_basis_point,omitempty"`
	// contains filtered or unexported fields
}

FeedWithDeviation is a structure that holds a signal id, its total power, and its calculated interval and deviation.

func (*FeedWithDeviation) Descriptor deprecated

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

Deprecated: Use FeedWithDeviation.ProtoReflect.Descriptor instead.

func (*FeedWithDeviation) GetDeviationBasisPoint

func (x *FeedWithDeviation) GetDeviationBasisPoint() int64

func (*FeedWithDeviation) GetInterval

func (x *FeedWithDeviation) GetInterval() int64

func (*FeedWithDeviation) GetPower

func (x *FeedWithDeviation) GetPower() int64

func (*FeedWithDeviation) GetSignalId

func (x *FeedWithDeviation) GetSignalId() string

func (*FeedWithDeviation) ProtoMessage

func (*FeedWithDeviation) ProtoMessage()

func (*FeedWithDeviation) ProtoReflect

func (x *FeedWithDeviation) ProtoReflect() protoreflect.Message

func (*FeedWithDeviation) Reset

func (x *FeedWithDeviation) Reset()

func (*FeedWithDeviation) String

func (x *FeedWithDeviation) String() string

type FeedsSignatureOrder

type FeedsSignatureOrder struct {

	// signal_ids is the list of signal ids that require signatures.
	SignalIds []string `protobuf:"bytes,1,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"`
	// encoder is the mode of encoding feeds signature order.
	Encoder Encoder `protobuf:"varint,2,opt,name=encoder,proto3,enum=band.feeds.v1beta1.Encoder" json:"encoder,omitempty"`
	// contains filtered or unexported fields
}

FeedsSignatureOrder defines a general signature order for feed data.

func (*FeedsSignatureOrder) Descriptor deprecated

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

Deprecated: Use FeedsSignatureOrder.ProtoReflect.Descriptor instead.

func (*FeedsSignatureOrder) GetEncoder

func (x *FeedsSignatureOrder) GetEncoder() Encoder

func (*FeedsSignatureOrder) GetSignalIds

func (x *FeedsSignatureOrder) GetSignalIds() []string

func (*FeedsSignatureOrder) ProtoMessage

func (*FeedsSignatureOrder) ProtoMessage()

func (*FeedsSignatureOrder) ProtoReflect

func (x *FeedsSignatureOrder) ProtoReflect() protoreflect.Message

func (*FeedsSignatureOrder) Reset

func (x *FeedsSignatureOrder) Reset()

func (*FeedsSignatureOrder) String

func (x *FeedsSignatureOrder) String() string

type GenesisState

type GenesisState struct {

	// params is all parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// votes is a list of voter signals.
	Votes []*Vote `protobuf:"bytes,2,rep,name=votes,proto3" json:"votes,omitempty"`
	// reference_source_config is the information about reference price config.
	ReferenceSourceConfig *ReferenceSourceConfig `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

GenesisState is a structure that defines the feeds module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetReferenceSourceConfig

func (x *GenesisState) GetReferenceSourceConfig() *ReferenceSourceConfig

func (*GenesisState) GetVotes

func (x *GenesisState) GetVotes() []*Vote

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type MsgClient

type MsgClient interface {
	// Vote is an RPC method to vote signal ids and their powers.
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// SubmitSignalPrices is an RPC method to submit signal prices.
	SubmitSignalPrices(ctx context.Context, in *MsgSubmitSignalPrices, opts ...grpc.CallOption) (*MsgSubmitSignalPricesResponse, error)
	// UpdateReferenceSourceConfig is an RPC method to update reference price source configuration.
	UpdateReferenceSourceConfig(ctx context.Context, in *MsgUpdateReferenceSourceConfig, opts ...grpc.CallOption) (*MsgUpdateReferenceSourceConfigResponse, error)
	// UpdateParams is an RPC method to update parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

type MsgServer interface {
	// Vote is an RPC method to vote signal ids and their powers.
	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
	// SubmitSignalPrices is an RPC method to submit signal prices.
	SubmitSignalPrices(context.Context, *MsgSubmitSignalPrices) (*MsgSubmitSignalPricesResponse, error)
	// UpdateReferenceSourceConfig is an RPC method to update reference price source configuration.
	UpdateReferenceSourceConfig(context.Context, *MsgUpdateReferenceSourceConfig) (*MsgUpdateReferenceSourceConfigResponse, error)
	// UpdateParams is an RPC method to update parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSubmitSignalPrices

type MsgSubmitSignalPrices struct {

	// validator is the address of the validator that is performing the operation.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// timestamp is the timestamp used as reference for the data.
	Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// signal_prices is a list of signal prices to submit.
	SignalPrices []*SignalPrice `protobuf:"bytes,3,rep,name=signal_prices,json=signalPrices,proto3" json:"signal_prices,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitSignalPrices is the transaction message to submit multiple signal prices.

func (*MsgSubmitSignalPrices) Descriptor deprecated

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

Deprecated: Use MsgSubmitSignalPrices.ProtoReflect.Descriptor instead.

func (*MsgSubmitSignalPrices) GetSignalPrices

func (x *MsgSubmitSignalPrices) GetSignalPrices() []*SignalPrice

func (*MsgSubmitSignalPrices) GetTimestamp

func (x *MsgSubmitSignalPrices) GetTimestamp() int64

func (*MsgSubmitSignalPrices) GetValidator

func (x *MsgSubmitSignalPrices) GetValidator() string

func (*MsgSubmitSignalPrices) ProtoMessage

func (*MsgSubmitSignalPrices) ProtoMessage()

func (*MsgSubmitSignalPrices) ProtoReflect

func (x *MsgSubmitSignalPrices) ProtoReflect() protoreflect.Message

func (*MsgSubmitSignalPrices) Reset

func (x *MsgSubmitSignalPrices) Reset()

func (*MsgSubmitSignalPrices) String

func (x *MsgSubmitSignalPrices) String() string

type MsgSubmitSignalPricesResponse

type MsgSubmitSignalPricesResponse struct {
	// contains filtered or unexported fields
}

MsgSubmitSignalPricesResponse is the response type for the Msg/SubmitSignalPrices RPC method.

func (*MsgSubmitSignalPricesResponse) Descriptor deprecated

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

Deprecated: Use MsgSubmitSignalPricesResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitSignalPricesResponse) ProtoMessage

func (*MsgSubmitSignalPricesResponse) ProtoMessage()

func (*MsgSubmitSignalPricesResponse) ProtoReflect

func (*MsgSubmitSignalPricesResponse) Reset

func (x *MsgSubmitSignalPricesResponse) Reset()

func (*MsgSubmitSignalPricesResponse) String

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params is the x/feeds parameters to update.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the transaction message to update parameters.

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse is the response type for the Msg/UpdateParams RPC method.

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type MsgUpdateReferenceSourceConfig

type MsgUpdateReferenceSourceConfig struct {

	// admin is the address of the admin that is performing the operation.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// reference_source_config is the information of reference price source.
	ReferenceSourceConfig *ReferenceSourceConfig `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

MsgUpdateReferenceSourceConfig is the transaction message to update reference price source's configuration.

func (*MsgUpdateReferenceSourceConfig) Descriptor deprecated

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

Deprecated: Use MsgUpdateReferenceSourceConfig.ProtoReflect.Descriptor instead.

func (*MsgUpdateReferenceSourceConfig) GetAdmin

func (x *MsgUpdateReferenceSourceConfig) GetAdmin() string

func (*MsgUpdateReferenceSourceConfig) GetReferenceSourceConfig

func (x *MsgUpdateReferenceSourceConfig) GetReferenceSourceConfig() *ReferenceSourceConfig

func (*MsgUpdateReferenceSourceConfig) ProtoMessage

func (*MsgUpdateReferenceSourceConfig) ProtoMessage()

func (*MsgUpdateReferenceSourceConfig) ProtoReflect

func (*MsgUpdateReferenceSourceConfig) Reset

func (x *MsgUpdateReferenceSourceConfig) Reset()

func (*MsgUpdateReferenceSourceConfig) String

type MsgUpdateReferenceSourceConfigResponse

type MsgUpdateReferenceSourceConfigResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateReferenceSourceConfigResponse is the response type for the Msg/UpdateReferenceSourceConfig RPC method.

func (*MsgUpdateReferenceSourceConfigResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateReferenceSourceConfigResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateReferenceSourceConfigResponse) ProtoMessage

func (*MsgUpdateReferenceSourceConfigResponse) ProtoReflect

func (*MsgUpdateReferenceSourceConfigResponse) Reset

func (*MsgUpdateReferenceSourceConfigResponse) String

type MsgVote

type MsgVote struct {

	// voter is the address of the voter that wants to vote signals.
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	// signals is a list of submitted signals.
	Signals []*Signal `protobuf:"bytes,2,rep,name=signals,proto3" json:"signals,omitempty"`
	// contains filtered or unexported fields
}

MsgVote is the transaction message to vote signals.

func (*MsgVote) Descriptor deprecated

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

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetSignals

func (x *MsgVote) GetSignals() []*Signal

func (*MsgVote) GetVoter

func (x *MsgVote) GetVoter() string

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) ProtoReflect

func (x *MsgVote) ProtoReflect() protoreflect.Message

func (*MsgVote) Reset

func (x *MsgVote) Reset()

func (*MsgVote) String

func (x *MsgVote) String() string

type MsgVoteResponse

type MsgVoteResponse struct {
	// contains filtered or unexported fields
}

MsgVoteResponse is the response type for the Msg/Vote RPC method.

func (*MsgVoteResponse) Descriptor deprecated

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

Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) ProtoReflect

func (x *MsgVoteResponse) ProtoReflect() protoreflect.Message

func (*MsgVoteResponse) Reset

func (x *MsgVoteResponse) Reset()

func (*MsgVoteResponse) String

func (x *MsgVoteResponse) String() string

type Params

type Params struct {

	// admin is the address of the admin that is allowed to perform operations on modules.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// allowable_block_time_discrepancy is the allowed discrepancy (in seconds) between validator price timestamp and
	// block_time.
	AllowableBlockTimeDiscrepancy int64 `` /* 153-byte string literal not displayed */
	// grace_period is the time (in seconds) given for validators to adapt to changing in feed's interval.
	GracePeriod int64 `protobuf:"varint,3,opt,name=grace_period,json=gracePeriod,proto3" json:"grace_period,omitempty"`
	// min_interval is the minimum limit of every feeds' interval (in seconds).
	// If the calculated interval is lower than this, it will be capped at this value.
	MinInterval int64 `protobuf:"varint,4,opt,name=min_interval,json=minInterval,proto3" json:"min_interval,omitempty"`
	// max_interval is the maximum limit of every feeds' interval (in seconds).
	// If the calculated interval of a feed is higher than this, it will not be capped at this value.
	MaxInterval int64 `protobuf:"varint,5,opt,name=max_interval,json=maxInterval,proto3" json:"max_interval,omitempty"`
	// power_step_threshold is the amount of minimum power required to put feed in the current feeds list.
	PowerStepThreshold int64 `protobuf:"varint,6,opt,name=power_step_threshold,json=powerStepThreshold,proto3" json:"power_step_threshold,omitempty"`
	// max_current_feeds is the maximum number of feeds supported at a time.
	MaxCurrentFeeds uint64 `protobuf:"varint,7,opt,name=max_current_feeds,json=maxCurrentFeeds,proto3" json:"max_current_feeds,omitempty"`
	// cooldown_time represents the duration (in seconds) during which validators are prohibited from sending new prices.
	CooldownTime int64 `protobuf:"varint,8,opt,name=cooldown_time,json=cooldownTime,proto3" json:"cooldown_time,omitempty"`
	// min_deviation_basis_point is the minimum limit of every feeds' deviation (in basis point).
	MinDeviationBasisPoint int64 `` /* 132-byte string literal not displayed */
	// max_deviation_basis_point is the maximum limit of every feeds' deviation (in basis point).
	MaxDeviationBasisPoint int64 `` /* 133-byte string literal not displayed */
	// current_feeds_update_interval is the number of blocks after which the current feeds will be re-calculated.
	CurrentFeedsUpdateInterval int64 `` /* 145-byte string literal not displayed */
	// price_quorum is the minimum percentage of power that needs to be reached for a price to be processed.
	PriceQuorum string `protobuf:"bytes,12,opt,name=price_quorum,json=priceQuorum,proto3" json:"price_quorum,omitempty"`
	// MaxSignalIDsPerSigning is the maximum number of signals allowed in a single tss signing request.
	MaxSignalIdsPerSigning uint64 `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

Params is the data structure that keeps the parameters of the feeds module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAdmin

func (x *Params) GetAdmin() string

func (*Params) GetAllowableBlockTimeDiscrepancy

func (x *Params) GetAllowableBlockTimeDiscrepancy() int64

func (*Params) GetCooldownTime

func (x *Params) GetCooldownTime() int64

func (*Params) GetCurrentFeedsUpdateInterval

func (x *Params) GetCurrentFeedsUpdateInterval() int64

func (*Params) GetGracePeriod

func (x *Params) GetGracePeriod() int64

func (*Params) GetMaxCurrentFeeds

func (x *Params) GetMaxCurrentFeeds() uint64

func (*Params) GetMaxDeviationBasisPoint

func (x *Params) GetMaxDeviationBasisPoint() int64

func (*Params) GetMaxInterval

func (x *Params) GetMaxInterval() int64

func (*Params) GetMaxSignalIdsPerSigning

func (x *Params) GetMaxSignalIdsPerSigning() uint64

func (*Params) GetMinDeviationBasisPoint

func (x *Params) GetMinDeviationBasisPoint() int64

func (*Params) GetMinInterval

func (x *Params) GetMinInterval() int64

func (*Params) GetPowerStepThreshold

func (x *Params) GetPowerStepThreshold() int64

func (*Params) GetPriceQuorum

func (x *Params) GetPriceQuorum() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Price

type Price struct {

	// status is the status of a the price.
	Status PriceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=band.feeds.v1beta1.PriceStatus" json:"status,omitempty"`
	// signal_id is the signal id of the price.
	SignalId string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// price is the price of the signal id.
	Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	// timestamp is the timestamp at which the price was aggregated.
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

Price is a structure that defines the price of a signal id.

func (*Price) Descriptor deprecated

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

Deprecated: Use Price.ProtoReflect.Descriptor instead.

func (*Price) GetPrice

func (x *Price) GetPrice() uint64

func (*Price) GetSignalId

func (x *Price) GetSignalId() string

func (*Price) GetStatus

func (x *Price) GetStatus() PriceStatus

func (*Price) GetTimestamp

func (x *Price) GetTimestamp() int64

func (*Price) ProtoMessage

func (*Price) ProtoMessage()

func (*Price) ProtoReflect

func (x *Price) ProtoReflect() protoreflect.Message

func (*Price) Reset

func (x *Price) Reset()

func (*Price) String

func (x *Price) String() string

type PriceStatus

type PriceStatus int32

PriceStatus is a structure that defines the price status of a price.

const (
	// PRICE_STATUS_UNSPECIFIED is an unspecified price status.
	PriceStatus_PRICE_STATUS_UNSPECIFIED PriceStatus = 0
	// PRICE_STATUS_UNKNOWN_SIGNAL_ID is an unknown signal id price status.
	PriceStatus_PRICE_STATUS_UNKNOWN_SIGNAL_ID PriceStatus = 1
	// PRICE_STATUS_NOT_READY is a not ready price status.
	PriceStatus_PRICE_STATUS_NOT_READY PriceStatus = 2
	// PRICE_STATUS_AVAILABLE is an available price status.
	PriceStatus_PRICE_STATUS_AVAILABLE PriceStatus = 3
	// PRICE_STATUS_NOT_IN_CURRENT_FEEDS is a not in current feed price status.
	PriceStatus_PRICE_STATUS_NOT_IN_CURRENT_FEEDS PriceStatus = 4
)

func (PriceStatus) Descriptor

func (PriceStatus) Enum

func (x PriceStatus) Enum() *PriceStatus

func (PriceStatus) EnumDescriptor deprecated

func (PriceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use PriceStatus.Descriptor instead.

func (PriceStatus) Number

func (x PriceStatus) Number() protoreflect.EnumNumber

func (PriceStatus) String

func (x PriceStatus) String() string

func (PriceStatus) Type

type QueryAllPricesRequest

type QueryAllPricesRequest struct {

	// pagination is the pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllPricesRequest is the request type for the Query/AllPrices RPC method.

func (*QueryAllPricesRequest) Descriptor deprecated

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

Deprecated: Use QueryAllPricesRequest.ProtoReflect.Descriptor instead.

func (*QueryAllPricesRequest) GetPagination

func (x *QueryAllPricesRequest) GetPagination() *v1beta1.PageRequest

func (*QueryAllPricesRequest) ProtoMessage

func (*QueryAllPricesRequest) ProtoMessage()

func (*QueryAllPricesRequest) ProtoReflect

func (x *QueryAllPricesRequest) ProtoReflect() protoreflect.Message

func (*QueryAllPricesRequest) Reset

func (x *QueryAllPricesRequest) Reset()

func (*QueryAllPricesRequest) String

func (x *QueryAllPricesRequest) String() string

type QueryAllPricesResponse

type QueryAllPricesResponse struct {

	// prices is a list of prices.
	Prices []*Price `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"`
	// pagination is the pagination information in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryAllPricesResponse is the response type for the Query/AllPrices RPC method.

func (*QueryAllPricesResponse) Descriptor deprecated

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

Deprecated: Use QueryAllPricesResponse.ProtoReflect.Descriptor instead.

func (*QueryAllPricesResponse) GetPagination

func (x *QueryAllPricesResponse) GetPagination() *v1beta1.PageResponse

func (*QueryAllPricesResponse) GetPrices

func (x *QueryAllPricesResponse) GetPrices() []*Price

func (*QueryAllPricesResponse) ProtoMessage

func (*QueryAllPricesResponse) ProtoMessage()

func (*QueryAllPricesResponse) ProtoReflect

func (x *QueryAllPricesResponse) ProtoReflect() protoreflect.Message

func (*QueryAllPricesResponse) Reset

func (x *QueryAllPricesResponse) Reset()

func (*QueryAllPricesResponse) String

func (x *QueryAllPricesResponse) String() string

type QueryClient

type QueryClient interface {
	// CurrentFeeds is an RPC method that returns a list of current supported feeds.
	CurrentFeeds(ctx context.Context, in *QueryCurrentFeedsRequest, opts ...grpc.CallOption) (*QueryCurrentFeedsResponse, error)
	// IsFeeder is an RPC method that returns whether an account is a feeder for a specified validator.
	IsFeeder(ctx context.Context, in *QueryIsFeederRequest, opts ...grpc.CallOption) (*QueryIsFeederResponse, error)
	// Params is an RPC method that returns all parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Price is an RPC method that returns price by signal id.
	Price(ctx context.Context, in *QueryPriceRequest, opts ...grpc.CallOption) (*QueryPriceResponse, error)
	// Prices is an RPC method that prices by signal ids.
	Prices(ctx context.Context, in *QueryPricesRequest, opts ...grpc.CallOption) (*QueryPricesResponse, error)
	// AllPrices is an RPC method that returns all prices.
	AllPrices(ctx context.Context, in *QueryAllPricesRequest, opts ...grpc.CallOption) (*QueryAllPricesResponse, error)
	// ReferenceSourceConfig is an RPC method that returns information on the reference price source.
	ReferenceSourceConfig(ctx context.Context, in *QueryReferenceSourceConfigRequest, opts ...grpc.CallOption) (*QueryReferenceSourceConfigResponse, error)
	// SignalTotalPowers is an RPC method that returns all signal-total-powers or specified signal-total-power by signal
	// id.
	SignalTotalPowers(ctx context.Context, in *QuerySignalTotalPowersRequest, opts ...grpc.CallOption) (*QuerySignalTotalPowersResponse, error)
	// ValidValidator is an RPC method that returns a flag to show if the validator is required to send prices.
	ValidValidator(ctx context.Context, in *QueryValidValidatorRequest, opts ...grpc.CallOption) (*QueryValidValidatorResponse, error)
	// ValidatorPrices is an RPC method that returns prices of a validator.
	ValidatorPrices(ctx context.Context, in *QueryValidatorPricesRequest, opts ...grpc.CallOption) (*QueryValidatorPricesResponse, error)
	// Vote is an RPC method that returns signals of a voter.
	Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryCurrentFeedsRequest

type QueryCurrentFeedsRequest struct {
	// contains filtered or unexported fields
}

QueryCurrentFeedsRequest is the request type for the Query/CurrentFeeds RPC method.

func (*QueryCurrentFeedsRequest) Descriptor deprecated

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

Deprecated: Use QueryCurrentFeedsRequest.ProtoReflect.Descriptor instead.

func (*QueryCurrentFeedsRequest) ProtoMessage

func (*QueryCurrentFeedsRequest) ProtoMessage()

func (*QueryCurrentFeedsRequest) ProtoReflect

func (x *QueryCurrentFeedsRequest) ProtoReflect() protoreflect.Message

func (*QueryCurrentFeedsRequest) Reset

func (x *QueryCurrentFeedsRequest) Reset()

func (*QueryCurrentFeedsRequest) String

func (x *QueryCurrentFeedsRequest) String() string

type QueryCurrentFeedsResponse

type QueryCurrentFeedsResponse struct {

	// current_feeds is a list of currently supported feed-with-deviations, and its last update time and block.
	CurrentFeeds *CurrentFeedWithDeviations `protobuf:"bytes,1,opt,name=current_feeds,json=currentFeeds,proto3" json:"current_feeds,omitempty"`
	// contains filtered or unexported fields
}

QueryCurrentFeedsResponse is the response type for the Query/CurrentFeeds RPC method.

func (*QueryCurrentFeedsResponse) Descriptor deprecated

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

Deprecated: Use QueryCurrentFeedsResponse.ProtoReflect.Descriptor instead.

func (*QueryCurrentFeedsResponse) GetCurrentFeeds

func (*QueryCurrentFeedsResponse) ProtoMessage

func (*QueryCurrentFeedsResponse) ProtoMessage()

func (*QueryCurrentFeedsResponse) ProtoReflect

func (*QueryCurrentFeedsResponse) Reset

func (x *QueryCurrentFeedsResponse) Reset()

func (*QueryCurrentFeedsResponse) String

func (x *QueryCurrentFeedsResponse) String() string

type QueryIsFeederRequest

type QueryIsFeederRequest struct {

	// validator is a validator address.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// feeder is a candidate account.
	Feeder string `protobuf:"bytes,2,opt,name=feeder,proto3" json:"feeder,omitempty"`
	// contains filtered or unexported fields
}

QueryIsFeederRequest is the request type for the Query/IsFeeder RPC method.

func (*QueryIsFeederRequest) Descriptor deprecated

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

Deprecated: Use QueryIsFeederRequest.ProtoReflect.Descriptor instead.

func (*QueryIsFeederRequest) GetFeeder

func (x *QueryIsFeederRequest) GetFeeder() string

func (*QueryIsFeederRequest) GetValidator

func (x *QueryIsFeederRequest) GetValidator() string

func (*QueryIsFeederRequest) ProtoMessage

func (*QueryIsFeederRequest) ProtoMessage()

func (*QueryIsFeederRequest) ProtoReflect

func (x *QueryIsFeederRequest) ProtoReflect() protoreflect.Message

func (*QueryIsFeederRequest) Reset

func (x *QueryIsFeederRequest) Reset()

func (*QueryIsFeederRequest) String

func (x *QueryIsFeederRequest) String() string

type QueryIsFeederResponse

type QueryIsFeederResponse struct {

	// is_feeder is true if this account has been granted by validator.
	IsFeeder bool `protobuf:"varint,1,opt,name=is_feeder,json=isFeeder,proto3" json:"is_feeder,omitempty"`
	// contains filtered or unexported fields
}

QueryIsFeederResponse is the response type for the Query/IsFeeder RPC method.

func (*QueryIsFeederResponse) Descriptor deprecated

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

Deprecated: Use QueryIsFeederResponse.ProtoReflect.Descriptor instead.

func (*QueryIsFeederResponse) GetIsFeeder

func (x *QueryIsFeederResponse) GetIsFeeder() bool

func (*QueryIsFeederResponse) ProtoMessage

func (*QueryIsFeederResponse) ProtoMessage()

func (*QueryIsFeederResponse) ProtoReflect

func (x *QueryIsFeederResponse) ProtoReflect() protoreflect.Message

func (*QueryIsFeederResponse) Reset

func (x *QueryIsFeederResponse) Reset()

func (*QueryIsFeederResponse) String

func (x *QueryIsFeederResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

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

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params is the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

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

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryPriceRequest

type QueryPriceRequest struct {

	// signal_id is the signal id to query the price for.
	SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryPriceRequest is the request type for the Query/Price RPC method.

func (*QueryPriceRequest) Descriptor deprecated

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

Deprecated: Use QueryPriceRequest.ProtoReflect.Descriptor instead.

func (*QueryPriceRequest) GetSignalId

func (x *QueryPriceRequest) GetSignalId() string

func (*QueryPriceRequest) ProtoMessage

func (*QueryPriceRequest) ProtoMessage()

func (*QueryPriceRequest) ProtoReflect

func (x *QueryPriceRequest) ProtoReflect() protoreflect.Message

func (*QueryPriceRequest) Reset

func (x *QueryPriceRequest) Reset()

func (*QueryPriceRequest) String

func (x *QueryPriceRequest) String() string

type QueryPriceResponse

type QueryPriceResponse struct {

	// price is the aggregated price of the signal id.
	Price *Price `protobuf:"bytes,1,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

QueryPriceResponse is the response type for the Query/Price RPC method.

func (*QueryPriceResponse) Descriptor deprecated

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

Deprecated: Use QueryPriceResponse.ProtoReflect.Descriptor instead.

func (*QueryPriceResponse) GetPrice

func (x *QueryPriceResponse) GetPrice() *Price

func (*QueryPriceResponse) ProtoMessage

func (*QueryPriceResponse) ProtoMessage()

func (*QueryPriceResponse) ProtoReflect

func (x *QueryPriceResponse) ProtoReflect() protoreflect.Message

func (*QueryPriceResponse) Reset

func (x *QueryPriceResponse) Reset()

func (*QueryPriceResponse) String

func (x *QueryPriceResponse) String() string

type QueryPricesRequest

type QueryPricesRequest struct {

	// signal_ids is a list of signal ids to query prices for.
	SignalIds []string `protobuf:"bytes,1,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"`
	// contains filtered or unexported fields
}

QueryPricesRequest is the request type for the Query/Prices RPC method.

func (*QueryPricesRequest) Descriptor deprecated

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

Deprecated: Use QueryPricesRequest.ProtoReflect.Descriptor instead.

func (*QueryPricesRequest) GetSignalIds

func (x *QueryPricesRequest) GetSignalIds() []string

func (*QueryPricesRequest) ProtoMessage

func (*QueryPricesRequest) ProtoMessage()

func (*QueryPricesRequest) ProtoReflect

func (x *QueryPricesRequest) ProtoReflect() protoreflect.Message

func (*QueryPricesRequest) Reset

func (x *QueryPricesRequest) Reset()

func (*QueryPricesRequest) String

func (x *QueryPricesRequest) String() string

type QueryPricesResponse

type QueryPricesResponse struct {

	// prices is a list of prices.
	Prices []*Price `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices,omitempty"`
	// contains filtered or unexported fields
}

QueryPricesResponse is the response type for the Query/Prices RPC method.

func (*QueryPricesResponse) Descriptor deprecated

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

Deprecated: Use QueryPricesResponse.ProtoReflect.Descriptor instead.

func (*QueryPricesResponse) GetPrices

func (x *QueryPricesResponse) GetPrices() []*Price

func (*QueryPricesResponse) ProtoMessage

func (*QueryPricesResponse) ProtoMessage()

func (*QueryPricesResponse) ProtoReflect

func (x *QueryPricesResponse) ProtoReflect() protoreflect.Message

func (*QueryPricesResponse) Reset

func (x *QueryPricesResponse) Reset()

func (*QueryPricesResponse) String

func (x *QueryPricesResponse) String() string

type QueryReferenceSourceConfigRequest

type QueryReferenceSourceConfigRequest struct {
	// contains filtered or unexported fields
}

QueryReferenceSourceConfigRequest is the request type for the Query/ReferenceSourceConfig RPC method.

func (*QueryReferenceSourceConfigRequest) Descriptor deprecated

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

Deprecated: Use QueryReferenceSourceConfigRequest.ProtoReflect.Descriptor instead.

func (*QueryReferenceSourceConfigRequest) ProtoMessage

func (*QueryReferenceSourceConfigRequest) ProtoMessage()

func (*QueryReferenceSourceConfigRequest) ProtoReflect

func (*QueryReferenceSourceConfigRequest) Reset

func (*QueryReferenceSourceConfigRequest) String

type QueryReferenceSourceConfigResponse

type QueryReferenceSourceConfigResponse struct {

	// reference_source_config is the information about the reference price source.
	ReferenceSourceConfig *ReferenceSourceConfig `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

QueryReferenceSourceConfigResponse is the response type for the Query/ReferenceSourceConfig RPC method.

func (*QueryReferenceSourceConfigResponse) Descriptor deprecated

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

Deprecated: Use QueryReferenceSourceConfigResponse.ProtoReflect.Descriptor instead.

func (*QueryReferenceSourceConfigResponse) GetReferenceSourceConfig

func (x *QueryReferenceSourceConfigResponse) GetReferenceSourceConfig() *ReferenceSourceConfig

func (*QueryReferenceSourceConfigResponse) ProtoMessage

func (*QueryReferenceSourceConfigResponse) ProtoMessage()

func (*QueryReferenceSourceConfigResponse) ProtoReflect

func (*QueryReferenceSourceConfigResponse) Reset

func (*QueryReferenceSourceConfigResponse) String

type QueryServer

type QueryServer interface {
	// CurrentFeeds is an RPC method that returns a list of current supported feeds.
	CurrentFeeds(context.Context, *QueryCurrentFeedsRequest) (*QueryCurrentFeedsResponse, error)
	// IsFeeder is an RPC method that returns whether an account is a feeder for a specified validator.
	IsFeeder(context.Context, *QueryIsFeederRequest) (*QueryIsFeederResponse, error)
	// Params is an RPC method that returns all parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Price is an RPC method that returns price by signal id.
	Price(context.Context, *QueryPriceRequest) (*QueryPriceResponse, error)
	// Prices is an RPC method that prices by signal ids.
	Prices(context.Context, *QueryPricesRequest) (*QueryPricesResponse, error)
	// AllPrices is an RPC method that returns all prices.
	AllPrices(context.Context, *QueryAllPricesRequest) (*QueryAllPricesResponse, error)
	// ReferenceSourceConfig is an RPC method that returns information on the reference price source.
	ReferenceSourceConfig(context.Context, *QueryReferenceSourceConfigRequest) (*QueryReferenceSourceConfigResponse, error)
	// SignalTotalPowers is an RPC method that returns all signal-total-powers or specified signal-total-power by signal
	// id.
	SignalTotalPowers(context.Context, *QuerySignalTotalPowersRequest) (*QuerySignalTotalPowersResponse, error)
	// ValidValidator is an RPC method that returns a flag to show if the validator is required to send prices.
	ValidValidator(context.Context, *QueryValidValidatorRequest) (*QueryValidValidatorResponse, error)
	// ValidatorPrices is an RPC method that returns prices of a validator.
	ValidatorPrices(context.Context, *QueryValidatorPricesRequest) (*QueryValidatorPricesResponse, error)
	// Vote is an RPC method that returns signals of a voter.
	Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySignalTotalPowersRequest

type QuerySignalTotalPowersRequest struct {

	// signal_ids is a list of signal ids to query.
	SignalIds []string `protobuf:"bytes,1,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"`
	// pagination is the pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySignalTotalPowersRequest is the request type for the Query/SignalTotalPowers RPC method.

func (*QuerySignalTotalPowersRequest) Descriptor deprecated

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

Deprecated: Use QuerySignalTotalPowersRequest.ProtoReflect.Descriptor instead.

func (*QuerySignalTotalPowersRequest) GetPagination

func (*QuerySignalTotalPowersRequest) GetSignalIds

func (x *QuerySignalTotalPowersRequest) GetSignalIds() []string

func (*QuerySignalTotalPowersRequest) ProtoMessage

func (*QuerySignalTotalPowersRequest) ProtoMessage()

func (*QuerySignalTotalPowersRequest) ProtoReflect

func (*QuerySignalTotalPowersRequest) Reset

func (x *QuerySignalTotalPowersRequest) Reset()

func (*QuerySignalTotalPowersRequest) String

type QuerySignalTotalPowersResponse

type QuerySignalTotalPowersResponse struct {

	// signal_total_powers is a list of signal-total-powers.
	SignalTotalPowers []*Signal `protobuf:"bytes,1,rep,name=signal_total_powers,json=signalTotalPowers,proto3" json:"signal_total_powers,omitempty"`
	// pagination is the pagination information in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySignalTotalPowersResponse is the response type for the Query/SignalTotalPowers RPC method.

func (*QuerySignalTotalPowersResponse) Descriptor deprecated

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

Deprecated: Use QuerySignalTotalPowersResponse.ProtoReflect.Descriptor instead.

func (*QuerySignalTotalPowersResponse) GetPagination

func (*QuerySignalTotalPowersResponse) GetSignalTotalPowers

func (x *QuerySignalTotalPowersResponse) GetSignalTotalPowers() []*Signal

func (*QuerySignalTotalPowersResponse) ProtoMessage

func (*QuerySignalTotalPowersResponse) ProtoMessage()

func (*QuerySignalTotalPowersResponse) ProtoReflect

func (*QuerySignalTotalPowersResponse) Reset

func (x *QuerySignalTotalPowersResponse) Reset()

func (*QuerySignalTotalPowersResponse) String

type QueryValidValidatorRequest

type QueryValidValidatorRequest struct {

	// validator is the validator address to query the flag.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

QueryValidValidatorRequest is the request type for the Query/ValidValidator RPC method.

func (*QueryValidValidatorRequest) Descriptor deprecated

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

Deprecated: Use QueryValidValidatorRequest.ProtoReflect.Descriptor instead.

func (*QueryValidValidatorRequest) GetValidator

func (x *QueryValidValidatorRequest) GetValidator() string

func (*QueryValidValidatorRequest) ProtoMessage

func (*QueryValidValidatorRequest) ProtoMessage()

func (*QueryValidValidatorRequest) ProtoReflect

func (*QueryValidValidatorRequest) Reset

func (x *QueryValidValidatorRequest) Reset()

func (*QueryValidValidatorRequest) String

func (x *QueryValidValidatorRequest) String() string

type QueryValidValidatorResponse

type QueryValidValidatorResponse struct {

	// valid is a valid flag.
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
	// contains filtered or unexported fields
}

QueryValidValidatorResponse is the response type for the Query/ValidValidator RPC method.

func (*QueryValidValidatorResponse) Descriptor deprecated

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

Deprecated: Use QueryValidValidatorResponse.ProtoReflect.Descriptor instead.

func (*QueryValidValidatorResponse) GetValid

func (x *QueryValidValidatorResponse) GetValid() bool

func (*QueryValidValidatorResponse) ProtoMessage

func (*QueryValidValidatorResponse) ProtoMessage()

func (*QueryValidValidatorResponse) ProtoReflect

func (*QueryValidValidatorResponse) Reset

func (x *QueryValidValidatorResponse) Reset()

func (*QueryValidValidatorResponse) String

func (x *QueryValidValidatorResponse) String() string

type QueryValidatorPricesRequest

type QueryValidatorPricesRequest struct {

	// validator is the validator address to query prices for.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// signal_ids is the list of signal ids to query the price for.
	SignalIds []string `protobuf:"bytes,2,rep,name=signal_ids,json=signalIds,proto3" json:"signal_ids,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorPricesRequest is the request type for the Query/ValidatorPrices RPC method.

func (*QueryValidatorPricesRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorPricesRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorPricesRequest) GetSignalIds

func (x *QueryValidatorPricesRequest) GetSignalIds() []string

func (*QueryValidatorPricesRequest) GetValidator

func (x *QueryValidatorPricesRequest) GetValidator() string

func (*QueryValidatorPricesRequest) ProtoMessage

func (*QueryValidatorPricesRequest) ProtoMessage()

func (*QueryValidatorPricesRequest) ProtoReflect

func (*QueryValidatorPricesRequest) Reset

func (x *QueryValidatorPricesRequest) Reset()

func (*QueryValidatorPricesRequest) String

func (x *QueryValidatorPricesRequest) String() string

type QueryValidatorPricesResponse

type QueryValidatorPricesResponse struct {

	// validator_prices is a list of prices submitted by the validator.
	ValidatorPrices []*ValidatorPrice `protobuf:"bytes,1,rep,name=validator_prices,json=validatorPrices,proto3" json:"validator_prices,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorPricesResponse is the response type for the Query/ValidatorPrices RPC method.

func (*QueryValidatorPricesResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatorPricesResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorPricesResponse) GetValidatorPrices

func (x *QueryValidatorPricesResponse) GetValidatorPrices() []*ValidatorPrice

func (*QueryValidatorPricesResponse) ProtoMessage

func (*QueryValidatorPricesResponse) ProtoMessage()

func (*QueryValidatorPricesResponse) ProtoReflect

func (*QueryValidatorPricesResponse) Reset

func (x *QueryValidatorPricesResponse) Reset()

func (*QueryValidatorPricesResponse) String

type QueryVoteRequest

type QueryVoteRequest struct {

	// voter is the voter address to query signal for.
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteRequest is the request type for the Query/Vote RPC method.

func (*QueryVoteRequest) Descriptor deprecated

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

Deprecated: Use QueryVoteRequest.ProtoReflect.Descriptor instead.

func (*QueryVoteRequest) GetVoter

func (x *QueryVoteRequest) GetVoter() string

func (*QueryVoteRequest) ProtoMessage

func (*QueryVoteRequest) ProtoMessage()

func (*QueryVoteRequest) ProtoReflect

func (x *QueryVoteRequest) ProtoReflect() protoreflect.Message

func (*QueryVoteRequest) Reset

func (x *QueryVoteRequest) Reset()

func (*QueryVoteRequest) String

func (x *QueryVoteRequest) String() string

type QueryVoteResponse

type QueryVoteResponse struct {

	// signals is a list of signals submitted by the voter.
	Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteResponse is the response type for the Query/Vote RPC method.

func (*QueryVoteResponse) Descriptor deprecated

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

Deprecated: Use QueryVoteResponse.ProtoReflect.Descriptor instead.

func (*QueryVoteResponse) GetSignals

func (x *QueryVoteResponse) GetSignals() []*Signal

func (*QueryVoteResponse) ProtoMessage

func (*QueryVoteResponse) ProtoMessage()

func (*QueryVoteResponse) ProtoReflect

func (x *QueryVoteResponse) ProtoReflect() protoreflect.Message

func (*QueryVoteResponse) Reset

func (x *QueryVoteResponse) Reset()

func (*QueryVoteResponse) String

func (x *QueryVoteResponse) String() string

type ReferenceSourceConfig

type ReferenceSourceConfig struct {

	// registry_ipfs_hash is the hash of the reference registry.
	RegistryIpfsHash string `protobuf:"bytes,1,opt,name=registry_ipfs_hash,json=registryIpfsHash,proto3" json:"registry_ipfs_hash,omitempty"`
	// registry_version is the version of the reference registry.
	RegistryVersion string `protobuf:"bytes,2,opt,name=registry_version,json=registryVersion,proto3" json:"registry_version,omitempty"`
	// contains filtered or unexported fields
}

ReferenceSourceConfig is a structure that defines the information of reference price source.

func (*ReferenceSourceConfig) Descriptor deprecated

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

Deprecated: Use ReferenceSourceConfig.ProtoReflect.Descriptor instead.

func (*ReferenceSourceConfig) GetRegistryIpfsHash

func (x *ReferenceSourceConfig) GetRegistryIpfsHash() string

func (*ReferenceSourceConfig) GetRegistryVersion

func (x *ReferenceSourceConfig) GetRegistryVersion() string

func (*ReferenceSourceConfig) ProtoMessage

func (*ReferenceSourceConfig) ProtoMessage()

func (*ReferenceSourceConfig) ProtoReflect

func (x *ReferenceSourceConfig) ProtoReflect() protoreflect.Message

func (*ReferenceSourceConfig) Reset

func (x *ReferenceSourceConfig) Reset()

func (*ReferenceSourceConfig) String

func (x *ReferenceSourceConfig) String() string

type Signal

type Signal struct {

	// id is the id of the signal.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// power is the power of the corresponding signal id.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// contains filtered or unexported fields
}

Signal is the data structure that contains signal id and power of that signal.

func (*Signal) Descriptor deprecated

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

Deprecated: Use Signal.ProtoReflect.Descriptor instead.

func (*Signal) GetId

func (x *Signal) GetId() string

func (*Signal) GetPower

func (x *Signal) GetPower() int64

func (*Signal) ProtoMessage

func (*Signal) ProtoMessage()

func (*Signal) ProtoReflect

func (x *Signal) ProtoReflect() protoreflect.Message

func (*Signal) Reset

func (x *Signal) Reset()

func (*Signal) String

func (x *Signal) String() string

type SignalPrice

type SignalPrice struct {

	// status is the status of the signal price.
	Status SignalPriceStatus `protobuf:"varint,1,opt,name=status,proto3,enum=band.feeds.v1beta1.SignalPriceStatus" json:"status,omitempty"`
	// signal_id is the signal id of the price.
	SignalId string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// price is the price submitted by the validator.
	Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	// contains filtered or unexported fields
}

SignalPrice is a structure that defines the signaled price of a signal id.

func (*SignalPrice) Descriptor deprecated

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

Deprecated: Use SignalPrice.ProtoReflect.Descriptor instead.

func (*SignalPrice) GetPrice

func (x *SignalPrice) GetPrice() uint64

func (*SignalPrice) GetSignalId

func (x *SignalPrice) GetSignalId() string

func (*SignalPrice) GetStatus

func (x *SignalPrice) GetStatus() SignalPriceStatus

func (*SignalPrice) ProtoMessage

func (*SignalPrice) ProtoMessage()

func (*SignalPrice) ProtoReflect

func (x *SignalPrice) ProtoReflect() protoreflect.Message

func (*SignalPrice) Reset

func (x *SignalPrice) Reset()

func (*SignalPrice) String

func (x *SignalPrice) String() string

type SignalPriceStatus

type SignalPriceStatus int32

SignalPriceStatus is a structure that defines the price status of a signal id.

const (
	// SIGNAL_PRICE_STATUS_UNSPECIFIED is an unspecified signal price status.
	SignalPriceStatus_SIGNAL_PRICE_STATUS_UNSPECIFIED SignalPriceStatus = 0
	// SIGNAL_PRICE_STATUS_UNSUPPORTED is an unsupported signal price status.
	SignalPriceStatus_SIGNAL_PRICE_STATUS_UNSUPPORTED SignalPriceStatus = 1
	// SIGNAL_PRICE_STATUS_UNAVAILABLE is an unavailable signal price status.
	SignalPriceStatus_SIGNAL_PRICE_STATUS_UNAVAILABLE SignalPriceStatus = 2
	// SIGNAL_PRICE_STATUS_AVAILABLE is an available signal price status.
	SignalPriceStatus_SIGNAL_PRICE_STATUS_AVAILABLE SignalPriceStatus = 3
)

func (SignalPriceStatus) Descriptor

func (SignalPriceStatus) Enum

func (SignalPriceStatus) EnumDescriptor deprecated

func (SignalPriceStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use SignalPriceStatus.Descriptor instead.

func (SignalPriceStatus) Number

func (SignalPriceStatus) String

func (x SignalPriceStatus) String() string

func (SignalPriceStatus) Type

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) Vote

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) AllPrices

func (UnimplementedQueryServer) IsFeeder

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Price

func (UnimplementedQueryServer) Prices

func (UnimplementedQueryServer) Vote

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type ValidatorPrice

type ValidatorPrice struct {

	// signal_price_status is the status of a signal price submitted.
	SignalPriceStatus SignalPriceStatus `` /* 157-byte string literal not displayed */
	// signal_id is the signal id of the price.
	SignalId string `protobuf:"bytes,2,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"`
	// price is the price submitted by the validator.
	Price uint64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
	// timestamp is the timestamp at which the price was submitted.
	Timestamp int64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// block_height is the block height at which the price was submitted.
	BlockHeight int64 `protobuf:"varint,5,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// contains filtered or unexported fields
}

ValidatorPrice is a structure that defines the price submitted by a validator for a signal id.

func (*ValidatorPrice) Descriptor deprecated

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

Deprecated: Use ValidatorPrice.ProtoReflect.Descriptor instead.

func (*ValidatorPrice) GetBlockHeight

func (x *ValidatorPrice) GetBlockHeight() int64

func (*ValidatorPrice) GetPrice

func (x *ValidatorPrice) GetPrice() uint64

func (*ValidatorPrice) GetSignalId

func (x *ValidatorPrice) GetSignalId() string

func (*ValidatorPrice) GetSignalPriceStatus

func (x *ValidatorPrice) GetSignalPriceStatus() SignalPriceStatus

func (*ValidatorPrice) GetTimestamp

func (x *ValidatorPrice) GetTimestamp() int64

func (*ValidatorPrice) ProtoMessage

func (*ValidatorPrice) ProtoMessage()

func (*ValidatorPrice) ProtoReflect

func (x *ValidatorPrice) ProtoReflect() protoreflect.Message

func (*ValidatorPrice) Reset

func (x *ValidatorPrice) Reset()

func (*ValidatorPrice) String

func (x *ValidatorPrice) String() string

type ValidatorPriceList

type ValidatorPriceList struct {

	// validator is the validator address.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// validators_prices is a list of validator prices.
	ValidatorPrices []*ValidatorPrice `protobuf:"bytes,2,rep,name=validator_prices,json=validatorPrices,proto3" json:"validator_prices,omitempty"`
	// contains filtered or unexported fields
}

ValidatorPriceList is a structure that holds a list of validator prices of a validator and its address.

func (*ValidatorPriceList) Descriptor deprecated

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

Deprecated: Use ValidatorPriceList.ProtoReflect.Descriptor instead.

func (*ValidatorPriceList) GetValidator

func (x *ValidatorPriceList) GetValidator() string

func (*ValidatorPriceList) GetValidatorPrices

func (x *ValidatorPriceList) GetValidatorPrices() []*ValidatorPrice

func (*ValidatorPriceList) ProtoMessage

func (*ValidatorPriceList) ProtoMessage()

func (*ValidatorPriceList) ProtoReflect

func (x *ValidatorPriceList) ProtoReflect() protoreflect.Message

func (*ValidatorPriceList) Reset

func (x *ValidatorPriceList) Reset()

func (*ValidatorPriceList) String

func (x *ValidatorPriceList) String() string

type Vote

type Vote struct {

	// voter is the address of the voter of this signals.
	Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
	// signals is a list of signals submit by the voter.
	Signals []*Signal `protobuf:"bytes,2,rep,name=signals,proto3" json:"signals,omitempty"`
	// contains filtered or unexported fields
}

Vote is the data structure that contains array of signals of a voter.

func (*Vote) Descriptor deprecated

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

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetSignals

func (x *Vote) GetSignals() []*Signal

func (*Vote) GetVoter

func (x *Vote) GetVoter() string

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

Jump to

Keyboard shortcuts

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