types

package
v0.7.32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the module.
	ModuleName = "telemetry"
	// ModuleVersion defines the current module version
	ModuleVersion = 1
	// StoreKey to be used when creating the KVStore.
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName

	QueryTopBalances            = "top_balances"
	QueryExtendedValidators     = "extended_validators"
	QueryAvgBlockSize           = "avg_block_size"
	QueryAvgBlockTime           = "avg_block_time"
	QueryAvgTxFee               = "avg_tx_fee"
	QueryTxVolume               = "tx_volume"
	QueryValidatorBlocks        = "validator_blocks"
	QueryTopValidators          = "top_validators"
	QueryValidatorByConsAddress = "validator_by_cons_addr"

	DenomTag  = "denom"
	StatusTag = "status"
)

Variables

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTelemetry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTelemetry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTelemetry = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ErrInvalidDateInterval = sdkerrors.Register(ModuleName, 1, "Invalid Date interval")
View Source
var (

	// ModuleCdc references the global x/ibc-transfer module codec. Note, the codec
	// should ONLY be used in certain instances of tests and for JSON encoding.
	//
	// The actual codec used for serialization should be provided to x/ibc-transfer and
	// defined at the application level.
	ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register the oracle module interfaces to protobuf Any.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the module's concrete types on the codec.

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TimeToUTCDate

func TimeToUTCDate(t time.Time) time.Time

Types

type AverageBlockSizePerDay

type AverageBlockSizePerDay struct {
	Date  time.Time `protobuf:"bytes,1,opt,name=date,proto3,stdtime" json:"date"`
	Bytes uint64    `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
}

AverageBlockSizePerDay represents average block size per day.

func (*AverageBlockSizePerDay) Descriptor

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

func (*AverageBlockSizePerDay) Equal

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

func (*AverageBlockSizePerDay) GetBytes

func (m *AverageBlockSizePerDay) GetBytes() uint64

func (*AverageBlockSizePerDay) GetDate

func (m *AverageBlockSizePerDay) GetDate() time.Time

func (*AverageBlockSizePerDay) Marshal

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

func (*AverageBlockSizePerDay) MarshalTo

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

func (*AverageBlockSizePerDay) MarshalToSizedBuffer

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

func (*AverageBlockSizePerDay) ProtoMessage

func (*AverageBlockSizePerDay) ProtoMessage()

func (*AverageBlockSizePerDay) Reset

func (m *AverageBlockSizePerDay) Reset()

func (*AverageBlockSizePerDay) Size

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

func (*AverageBlockSizePerDay) String

func (m *AverageBlockSizePerDay) String() string

func (*AverageBlockSizePerDay) Unmarshal

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

func (*AverageBlockSizePerDay) XXX_DiscardUnknown

func (m *AverageBlockSizePerDay) XXX_DiscardUnknown()

func (*AverageBlockSizePerDay) XXX_Marshal

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

func (*AverageBlockSizePerDay) XXX_Merge

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

func (*AverageBlockSizePerDay) XXX_Size

func (m *AverageBlockSizePerDay) XXX_Size() int

func (*AverageBlockSizePerDay) XXX_Unmarshal

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

type AverageBlockTimePerDay

type AverageBlockTimePerDay struct {
	Date    time.Time `protobuf:"bytes,1,opt,name=date,proto3,stdtime" json:"date"`
	Seconds uint64    `protobuf:"varint,2,opt,name=seconds,proto3" json:"seconds,omitempty"`
}

AverageBlockTimePerDay represents average block time per day.

func (*AverageBlockTimePerDay) Descriptor

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

func (*AverageBlockTimePerDay) Equal

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

func (*AverageBlockTimePerDay) GetDate

func (m *AverageBlockTimePerDay) GetDate() time.Time

func (*AverageBlockTimePerDay) GetSeconds

func (m *AverageBlockTimePerDay) GetSeconds() uint64

func (*AverageBlockTimePerDay) Marshal

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

func (*AverageBlockTimePerDay) MarshalTo

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

func (*AverageBlockTimePerDay) MarshalToSizedBuffer

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

func (*AverageBlockTimePerDay) ProtoMessage

func (*AverageBlockTimePerDay) ProtoMessage()

func (*AverageBlockTimePerDay) Reset

func (m *AverageBlockTimePerDay) Reset()

func (*AverageBlockTimePerDay) Size

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

func (*AverageBlockTimePerDay) String

func (m *AverageBlockTimePerDay) String() string

func (*AverageBlockTimePerDay) Unmarshal

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

func (*AverageBlockTimePerDay) XXX_DiscardUnknown

func (m *AverageBlockTimePerDay) XXX_DiscardUnknown()

func (*AverageBlockTimePerDay) XXX_Marshal

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

func (*AverageBlockTimePerDay) XXX_Merge

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

func (*AverageBlockTimePerDay) XXX_Size

func (m *AverageBlockTimePerDay) XXX_Size() int

func (*AverageBlockTimePerDay) XXX_Unmarshal

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

type AverageTxFeePerDay

type AverageTxFeePerDay struct {
	Date time.Time                                `protobuf:"bytes,1,opt,name=date,proto3,stdtime" json:"date"`
	Fee  github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=fee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee"`
}

AverageTxFeePerDay represents average transaction fee per day.

func (*AverageTxFeePerDay) Descriptor

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

func (*AverageTxFeePerDay) Equal

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

func (*AverageTxFeePerDay) GetDate

func (m *AverageTxFeePerDay) GetDate() time.Time

func (*AverageTxFeePerDay) GetFee

func (*AverageTxFeePerDay) Marshal

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

func (*AverageTxFeePerDay) MarshalTo

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

func (*AverageTxFeePerDay) MarshalToSizedBuffer

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

func (*AverageTxFeePerDay) ProtoMessage

func (*AverageTxFeePerDay) ProtoMessage()

func (*AverageTxFeePerDay) Reset

func (m *AverageTxFeePerDay) Reset()

func (*AverageTxFeePerDay) Size

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

func (*AverageTxFeePerDay) String

func (m *AverageTxFeePerDay) String() string

func (*AverageTxFeePerDay) Unmarshal

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

func (*AverageTxFeePerDay) XXX_DiscardUnknown

func (m *AverageTxFeePerDay) XXX_DiscardUnknown()

func (*AverageTxFeePerDay) XXX_Marshal

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

func (*AverageTxFeePerDay) XXX_Merge

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

func (*AverageTxFeePerDay) XXX_Size

func (m *AverageTxFeePerDay) XXX_Size() int

func (*AverageTxFeePerDay) XXX_Unmarshal

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

type DistrKeeper

type DistrKeeper interface {
	GetValidatorHistoricalRewards(ctx sdk.Context, val sdk.ValAddress, period uint64) (rewards distrtypes.ValidatorHistoricalRewards)
}

DistrKeeper defines the expected distribution keeper.

type QueryAvgBlockSizeRequest

type QueryAvgBlockSizeRequest struct {
	StartDate *time.Time `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
	EndDate   *time.Time `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
}

QueryAvgBlockSizeRequest is request type for the Query/AvgBlockSize RPC method.

func (*QueryAvgBlockSizeRequest) Descriptor

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

func (*QueryAvgBlockSizeRequest) GetEndDate

func (m *QueryAvgBlockSizeRequest) GetEndDate() *time.Time

func (*QueryAvgBlockSizeRequest) GetStartDate

func (m *QueryAvgBlockSizeRequest) GetStartDate() *time.Time

func (*QueryAvgBlockSizeRequest) Marshal

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

func (*QueryAvgBlockSizeRequest) MarshalTo

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

func (*QueryAvgBlockSizeRequest) MarshalToSizedBuffer

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

func (*QueryAvgBlockSizeRequest) ProtoMessage

func (*QueryAvgBlockSizeRequest) ProtoMessage()

func (*QueryAvgBlockSizeRequest) Reset

func (m *QueryAvgBlockSizeRequest) Reset()

func (*QueryAvgBlockSizeRequest) Size

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

func (*QueryAvgBlockSizeRequest) String

func (m *QueryAvgBlockSizeRequest) String() string

func (*QueryAvgBlockSizeRequest) Unmarshal

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

func (*QueryAvgBlockSizeRequest) XXX_DiscardUnknown

func (m *QueryAvgBlockSizeRequest) XXX_DiscardUnknown()

func (*QueryAvgBlockSizeRequest) XXX_Marshal

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

func (*QueryAvgBlockSizeRequest) XXX_Merge

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

func (*QueryAvgBlockSizeRequest) XXX_Size

func (m *QueryAvgBlockSizeRequest) XXX_Size() int

func (*QueryAvgBlockSizeRequest) XXX_Unmarshal

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

type QueryAvgBlockSizeResponse

type QueryAvgBlockSizeResponse struct {
	AvgBlockSizePerDay []AverageBlockSizePerDay `protobuf:"bytes,1,rep,name=avg_block_size_per_day,json=avgBlockSizePerDay,proto3" json:"avg_block_size_per_day"`
}

QueryAvgBlockSizeResponse is response type for the Query/AvgBlockSize RPC method.

func (*QueryAvgBlockSizeResponse) Descriptor

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

func (*QueryAvgBlockSizeResponse) GetAvgBlockSizePerDay

func (m *QueryAvgBlockSizeResponse) GetAvgBlockSizePerDay() []AverageBlockSizePerDay

func (*QueryAvgBlockSizeResponse) Marshal

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

func (*QueryAvgBlockSizeResponse) MarshalTo

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

func (*QueryAvgBlockSizeResponse) MarshalToSizedBuffer

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

func (*QueryAvgBlockSizeResponse) ProtoMessage

func (*QueryAvgBlockSizeResponse) ProtoMessage()

func (*QueryAvgBlockSizeResponse) Reset

func (m *QueryAvgBlockSizeResponse) Reset()

func (*QueryAvgBlockSizeResponse) Size

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

func (*QueryAvgBlockSizeResponse) String

func (m *QueryAvgBlockSizeResponse) String() string

func (*QueryAvgBlockSizeResponse) Unmarshal

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

func (*QueryAvgBlockSizeResponse) XXX_DiscardUnknown

func (m *QueryAvgBlockSizeResponse) XXX_DiscardUnknown()

func (*QueryAvgBlockSizeResponse) XXX_Marshal

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

func (*QueryAvgBlockSizeResponse) XXX_Merge

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

func (*QueryAvgBlockSizeResponse) XXX_Size

func (m *QueryAvgBlockSizeResponse) XXX_Size() int

func (*QueryAvgBlockSizeResponse) XXX_Unmarshal

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

type QueryAvgBlockTimeRequest

type QueryAvgBlockTimeRequest struct {
	StartDate *time.Time `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
	EndDate   *time.Time `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
}

QueryAvgBlockTimeRequest is request type for the Query/AvgBlockTime RPC method.

func (*QueryAvgBlockTimeRequest) Descriptor

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

func (*QueryAvgBlockTimeRequest) GetEndDate

func (m *QueryAvgBlockTimeRequest) GetEndDate() *time.Time

func (*QueryAvgBlockTimeRequest) GetStartDate

func (m *QueryAvgBlockTimeRequest) GetStartDate() *time.Time

func (*QueryAvgBlockTimeRequest) Marshal

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

func (*QueryAvgBlockTimeRequest) MarshalTo

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

func (*QueryAvgBlockTimeRequest) MarshalToSizedBuffer

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

func (*QueryAvgBlockTimeRequest) ProtoMessage

func (*QueryAvgBlockTimeRequest) ProtoMessage()

func (*QueryAvgBlockTimeRequest) Reset

func (m *QueryAvgBlockTimeRequest) Reset()

func (*QueryAvgBlockTimeRequest) Size

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

func (*QueryAvgBlockTimeRequest) String

func (m *QueryAvgBlockTimeRequest) String() string

func (*QueryAvgBlockTimeRequest) Unmarshal

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

func (*QueryAvgBlockTimeRequest) XXX_DiscardUnknown

func (m *QueryAvgBlockTimeRequest) XXX_DiscardUnknown()

func (*QueryAvgBlockTimeRequest) XXX_Marshal

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

func (*QueryAvgBlockTimeRequest) XXX_Merge

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

func (*QueryAvgBlockTimeRequest) XXX_Size

func (m *QueryAvgBlockTimeRequest) XXX_Size() int

func (*QueryAvgBlockTimeRequest) XXX_Unmarshal

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

type QueryAvgBlockTimeResponse

type QueryAvgBlockTimeResponse struct {
	AvgBlockTimePerDay []AverageBlockTimePerDay `protobuf:"bytes,1,rep,name=avg_block_time_per_day,json=avgBlockTimePerDay,proto3" json:"avg_block_time_per_day"`
}

QueryAvgBlockTimeResponse is response type for the Query/AvgBlockTime RPC method.

func (*QueryAvgBlockTimeResponse) Descriptor

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

func (*QueryAvgBlockTimeResponse) GetAvgBlockTimePerDay

func (m *QueryAvgBlockTimeResponse) GetAvgBlockTimePerDay() []AverageBlockTimePerDay

func (*QueryAvgBlockTimeResponse) Marshal

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

func (*QueryAvgBlockTimeResponse) MarshalTo

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

func (*QueryAvgBlockTimeResponse) MarshalToSizedBuffer

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

func (*QueryAvgBlockTimeResponse) ProtoMessage

func (*QueryAvgBlockTimeResponse) ProtoMessage()

func (*QueryAvgBlockTimeResponse) Reset

func (m *QueryAvgBlockTimeResponse) Reset()

func (*QueryAvgBlockTimeResponse) Size

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

func (*QueryAvgBlockTimeResponse) String

func (m *QueryAvgBlockTimeResponse) String() string

func (*QueryAvgBlockTimeResponse) Unmarshal

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

func (*QueryAvgBlockTimeResponse) XXX_DiscardUnknown

func (m *QueryAvgBlockTimeResponse) XXX_DiscardUnknown()

func (*QueryAvgBlockTimeResponse) XXX_Marshal

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

func (*QueryAvgBlockTimeResponse) XXX_Merge

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

func (*QueryAvgBlockTimeResponse) XXX_Size

func (m *QueryAvgBlockTimeResponse) XXX_Size() int

func (*QueryAvgBlockTimeResponse) XXX_Unmarshal

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

type QueryAvgTxFeeRequest

type QueryAvgTxFeeRequest struct {
	StartDate *time.Time `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
	EndDate   *time.Time `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
}

QueryAvgTxFeeRequest is request type for the Query/AvgTxFee RPC method.

func (*QueryAvgTxFeeRequest) Descriptor

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

func (*QueryAvgTxFeeRequest) GetEndDate

func (m *QueryAvgTxFeeRequest) GetEndDate() *time.Time

func (*QueryAvgTxFeeRequest) GetStartDate

func (m *QueryAvgTxFeeRequest) GetStartDate() *time.Time

func (*QueryAvgTxFeeRequest) Marshal

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

func (*QueryAvgTxFeeRequest) MarshalTo

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

func (*QueryAvgTxFeeRequest) MarshalToSizedBuffer

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

func (*QueryAvgTxFeeRequest) ProtoMessage

func (*QueryAvgTxFeeRequest) ProtoMessage()

func (*QueryAvgTxFeeRequest) Reset

func (m *QueryAvgTxFeeRequest) Reset()

func (*QueryAvgTxFeeRequest) Size

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

func (*QueryAvgTxFeeRequest) String

func (m *QueryAvgTxFeeRequest) String() string

func (*QueryAvgTxFeeRequest) Unmarshal

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

func (*QueryAvgTxFeeRequest) XXX_DiscardUnknown

func (m *QueryAvgTxFeeRequest) XXX_DiscardUnknown()

func (*QueryAvgTxFeeRequest) XXX_Marshal

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

func (*QueryAvgTxFeeRequest) XXX_Merge

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

func (*QueryAvgTxFeeRequest) XXX_Size

func (m *QueryAvgTxFeeRequest) XXX_Size() int

func (*QueryAvgTxFeeRequest) XXX_Unmarshal

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

type QueryAvgTxFeeResponse

type QueryAvgTxFeeResponse struct {
	AvgTxFeePerDay []AverageTxFeePerDay `protobuf:"bytes,1,rep,name=avg_tx_fee_per_day,json=avgTxFeePerDay,proto3" json:"avg_tx_fee_per_day"`
}

QueryAvgTxFeeResponse is response type for the Query/AvgTxFee RPC method.

func (*QueryAvgTxFeeResponse) Descriptor

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

func (*QueryAvgTxFeeResponse) GetAvgTxFeePerDay

func (m *QueryAvgTxFeeResponse) GetAvgTxFeePerDay() []AverageTxFeePerDay

func (*QueryAvgTxFeeResponse) Marshal

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

func (*QueryAvgTxFeeResponse) MarshalTo

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

func (*QueryAvgTxFeeResponse) MarshalToSizedBuffer

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

func (*QueryAvgTxFeeResponse) ProtoMessage

func (*QueryAvgTxFeeResponse) ProtoMessage()

func (*QueryAvgTxFeeResponse) Reset

func (m *QueryAvgTxFeeResponse) Reset()

func (*QueryAvgTxFeeResponse) Size

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

func (*QueryAvgTxFeeResponse) String

func (m *QueryAvgTxFeeResponse) String() string

func (*QueryAvgTxFeeResponse) Unmarshal

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

func (*QueryAvgTxFeeResponse) XXX_DiscardUnknown

func (m *QueryAvgTxFeeResponse) XXX_DiscardUnknown()

func (*QueryAvgTxFeeResponse) XXX_Marshal

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

func (*QueryAvgTxFeeResponse) XXX_Merge

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

func (*QueryAvgTxFeeResponse) XXX_Size

func (m *QueryAvgTxFeeResponse) XXX_Size() int

func (*QueryAvgTxFeeResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// TopBalances returns all the system balances for specific denom.
	TopBalances(ctx context.Context, in *QueryTopBalancesRequest, opts ...grpc.CallOption) (*QueryTopBalancesResponse, error)
	// ExtendedValidators returns validators balances.
	ExtendedValidators(ctx context.Context, in *QueryExtendedValidatorsRequest, opts ...grpc.CallOption) (*QueryExtendedValidatorsResponse, error)
	// TopValidators returns validators blocks and stake percentage.
	TopValidators(ctx context.Context, in *QueryTopValidatorsRequest, opts ...grpc.CallOption) (*QueryTopValidatorsResponse, error)
	// ValidatorBlocks returns validator approved blocks.
	ValidatorBlocks(ctx context.Context, in *QueryValidatorBlocksRequest, opts ...grpc.CallOption) (*QueryValidatorBlocksResponse, error)
	ValidatorByConsAddr(ctx context.Context, in *QueryValidatorByConsAddrRequest, opts ...grpc.CallOption) (*QueryValidatorByConsAddrResponse, 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 QueryExtendedValidatorsRequest

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

func (*QueryExtendedValidatorsRequest) Descriptor

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

func (*QueryExtendedValidatorsRequest) GetPagination

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

func (*QueryExtendedValidatorsRequest) GetStatus

func (m *QueryExtendedValidatorsRequest) GetStatus() string

func (*QueryExtendedValidatorsRequest) Marshal

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

func (*QueryExtendedValidatorsRequest) MarshalTo

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

func (*QueryExtendedValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryExtendedValidatorsRequest) ProtoMessage

func (*QueryExtendedValidatorsRequest) ProtoMessage()

func (*QueryExtendedValidatorsRequest) Reset

func (m *QueryExtendedValidatorsRequest) Reset()

func (*QueryExtendedValidatorsRequest) Size

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

func (*QueryExtendedValidatorsRequest) String

func (*QueryExtendedValidatorsRequest) Unmarshal

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

func (*QueryExtendedValidatorsRequest) XXX_DiscardUnknown

func (m *QueryExtendedValidatorsRequest) XXX_DiscardUnknown()

func (*QueryExtendedValidatorsRequest) XXX_Marshal

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

func (*QueryExtendedValidatorsRequest) XXX_Merge

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

func (*QueryExtendedValidatorsRequest) XXX_Size

func (m *QueryExtendedValidatorsRequest) XXX_Size() int

func (*QueryExtendedValidatorsRequest) XXX_Unmarshal

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

type QueryExtendedValidatorsResponse

type QueryExtendedValidatorsResponse struct {
	Validators []github_com_cosmos_cosmos_sdk_x_staking_types.Validator `` /* 127-byte string literal not displayed */
	Balances   []github_com_cosmos_cosmos_sdk_x_bank_types.Balance      `protobuf:"bytes,2,rep,name=balances,proto3,casttype=github.com/cosmos/cosmos-sdk/x/bank/types.Balance" json:"balances"`
	Pagination *query.PageResponse                                      `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryExtendedValidatorsResponse) Descriptor

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

func (*QueryExtendedValidatorsResponse) GetBalances

func (*QueryExtendedValidatorsResponse) GetPagination

func (*QueryExtendedValidatorsResponse) GetValidators

func (*QueryExtendedValidatorsResponse) Marshal

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

func (*QueryExtendedValidatorsResponse) MarshalTo

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

func (*QueryExtendedValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryExtendedValidatorsResponse) ProtoMessage

func (*QueryExtendedValidatorsResponse) ProtoMessage()

func (*QueryExtendedValidatorsResponse) Reset

func (*QueryExtendedValidatorsResponse) Size

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

func (*QueryExtendedValidatorsResponse) String

func (*QueryExtendedValidatorsResponse) Unmarshal

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

func (*QueryExtendedValidatorsResponse) UnpackInterfaces

func (r *QueryExtendedValidatorsResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (*QueryExtendedValidatorsResponse) XXX_DiscardUnknown

func (m *QueryExtendedValidatorsResponse) XXX_DiscardUnknown()

func (*QueryExtendedValidatorsResponse) XXX_Marshal

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

func (*QueryExtendedValidatorsResponse) XXX_Merge

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

func (*QueryExtendedValidatorsResponse) XXX_Size

func (m *QueryExtendedValidatorsResponse) XXX_Size() int

func (*QueryExtendedValidatorsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// TopBalances returns all the system balances for specific denom.
	TopBalances(context.Context, *QueryTopBalancesRequest) (*QueryTopBalancesResponse, error)
	// ExtendedValidators returns validators balances.
	ExtendedValidators(context.Context, *QueryExtendedValidatorsRequest) (*QueryExtendedValidatorsResponse, error)
	// TopValidators returns validators blocks and stake percentage.
	TopValidators(context.Context, *QueryTopValidatorsRequest) (*QueryTopValidatorsResponse, error)
	// ValidatorBlocks returns validator approved blocks.
	ValidatorBlocks(context.Context, *QueryValidatorBlocksRequest) (*QueryValidatorBlocksResponse, error)
	ValidatorByConsAddr(context.Context, *QueryValidatorByConsAddrRequest) (*QueryValidatorByConsAddrResponse, error)
}

QueryServer is the server API for Query service.

type QueryTopBalancesRequest

type QueryTopBalancesRequest struct {
	Denom      string             `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Desc       bool               `protobuf:"varint,3,opt,name=desc,proto3" json:"desc,omitempty"`
}

QueryTopBalancesRequest is request type for the Query/TopBalances RPC method.

func (*QueryTopBalancesRequest) Descriptor

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

func (*QueryTopBalancesRequest) GetDenom

func (m *QueryTopBalancesRequest) GetDenom() string

func (*QueryTopBalancesRequest) GetDesc

func (m *QueryTopBalancesRequest) GetDesc() bool

func (*QueryTopBalancesRequest) GetPagination

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

func (*QueryTopBalancesRequest) Marshal

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

func (*QueryTopBalancesRequest) MarshalTo

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

func (*QueryTopBalancesRequest) MarshalToSizedBuffer

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

func (*QueryTopBalancesRequest) ProtoMessage

func (*QueryTopBalancesRequest) ProtoMessage()

func (*QueryTopBalancesRequest) Reset

func (m *QueryTopBalancesRequest) Reset()

func (*QueryTopBalancesRequest) Size

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

func (*QueryTopBalancesRequest) String

func (m *QueryTopBalancesRequest) String() string

func (*QueryTopBalancesRequest) Unmarshal

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

func (*QueryTopBalancesRequest) XXX_DiscardUnknown

func (m *QueryTopBalancesRequest) XXX_DiscardUnknown()

func (*QueryTopBalancesRequest) XXX_Marshal

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

func (*QueryTopBalancesRequest) XXX_Merge

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

func (*QueryTopBalancesRequest) XXX_Size

func (m *QueryTopBalancesRequest) XXX_Size() int

func (*QueryTopBalancesRequest) XXX_Unmarshal

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

type QueryTopBalancesResponse

type QueryTopBalancesResponse struct {
	//  map<string, int64> transactionsCount = 1;
	Balances   []github_com_cosmos_cosmos_sdk_x_bank_types.Balance `protobuf:"bytes,1,rep,name=balances,proto3,casttype=github.com/cosmos/cosmos-sdk/x/bank/types.Balance" json:"balances"`
	Pagination *query.PageResponse                                 `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTopBalancesResponse is response type for the Query/TopBalances RPC method.

func (*QueryTopBalancesResponse) Descriptor

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

func (*QueryTopBalancesResponse) GetBalances

func (*QueryTopBalancesResponse) GetPagination

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

func (*QueryTopBalancesResponse) Marshal

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

func (*QueryTopBalancesResponse) MarshalTo

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

func (*QueryTopBalancesResponse) MarshalToSizedBuffer

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

func (*QueryTopBalancesResponse) ProtoMessage

func (*QueryTopBalancesResponse) ProtoMessage()

func (*QueryTopBalancesResponse) Reset

func (m *QueryTopBalancesResponse) Reset()

func (*QueryTopBalancesResponse) Size

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

func (*QueryTopBalancesResponse) String

func (m *QueryTopBalancesResponse) String() string

func (*QueryTopBalancesResponse) Unmarshal

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

func (*QueryTopBalancesResponse) XXX_DiscardUnknown

func (m *QueryTopBalancesResponse) XXX_DiscardUnknown()

func (*QueryTopBalancesResponse) XXX_Marshal

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

func (*QueryTopBalancesResponse) XXX_Merge

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

func (*QueryTopBalancesResponse) XXX_Size

func (m *QueryTopBalancesResponse) XXX_Size() int

func (*QueryTopBalancesResponse) XXX_Unmarshal

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

type QueryTopValidatorsRequest

type QueryTopValidatorsRequest struct {
	StartDate  *time.Time         `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
	EndDate    *time.Time         `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Desc       bool               `protobuf:"varint,4,opt,name=desc,proto3" json:"desc,omitempty"`
}

QueryTopValidatorsRequest is request type for the Query/TopValidators RPC method.

func (*QueryTopValidatorsRequest) Descriptor

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

func (*QueryTopValidatorsRequest) GetDesc

func (m *QueryTopValidatorsRequest) GetDesc() bool

func (*QueryTopValidatorsRequest) GetEndDate

func (m *QueryTopValidatorsRequest) GetEndDate() *time.Time

func (*QueryTopValidatorsRequest) GetPagination

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

func (*QueryTopValidatorsRequest) GetStartDate

func (m *QueryTopValidatorsRequest) GetStartDate() *time.Time

func (*QueryTopValidatorsRequest) Marshal

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

func (*QueryTopValidatorsRequest) MarshalTo

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

func (*QueryTopValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryTopValidatorsRequest) ProtoMessage

func (*QueryTopValidatorsRequest) ProtoMessage()

func (*QueryTopValidatorsRequest) Reset

func (m *QueryTopValidatorsRequest) Reset()

func (*QueryTopValidatorsRequest) Size

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

func (*QueryTopValidatorsRequest) String

func (m *QueryTopValidatorsRequest) String() string

func (*QueryTopValidatorsRequest) Unmarshal

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

func (*QueryTopValidatorsRequest) XXX_DiscardUnknown

func (m *QueryTopValidatorsRequest) XXX_DiscardUnknown()

func (*QueryTopValidatorsRequest) XXX_Marshal

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

func (*QueryTopValidatorsRequest) XXX_Merge

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

func (*QueryTopValidatorsRequest) XXX_Size

func (m *QueryTopValidatorsRequest) XXX_Size() int

func (*QueryTopValidatorsRequest) XXX_Unmarshal

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

type QueryTopValidatorsResponse

type QueryTopValidatorsResponse struct {
	TopValidators []ValidatorBlockStats `protobuf:"bytes,1,rep,name=top_validators,json=topValidators,proto3" json:"top_validators"`
	Pagination    *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryTopValidatorsResponse is response type for the Query/TopValidators RPC method.

func (*QueryTopValidatorsResponse) Descriptor

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

func (*QueryTopValidatorsResponse) GetPagination

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

func (*QueryTopValidatorsResponse) GetTopValidators

func (m *QueryTopValidatorsResponse) GetTopValidators() []ValidatorBlockStats

func (*QueryTopValidatorsResponse) Marshal

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

func (*QueryTopValidatorsResponse) MarshalTo

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

func (*QueryTopValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryTopValidatorsResponse) ProtoMessage

func (*QueryTopValidatorsResponse) ProtoMessage()

func (*QueryTopValidatorsResponse) Reset

func (m *QueryTopValidatorsResponse) Reset()

func (*QueryTopValidatorsResponse) Size

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

func (*QueryTopValidatorsResponse) String

func (m *QueryTopValidatorsResponse) String() string

func (*QueryTopValidatorsResponse) Unmarshal

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

func (*QueryTopValidatorsResponse) XXX_DiscardUnknown

func (m *QueryTopValidatorsResponse) XXX_DiscardUnknown()

func (*QueryTopValidatorsResponse) XXX_Marshal

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

func (*QueryTopValidatorsResponse) XXX_Merge

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

func (*QueryTopValidatorsResponse) XXX_Size

func (m *QueryTopValidatorsResponse) XXX_Size() int

func (*QueryTopValidatorsResponse) XXX_Unmarshal

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

type QueryTxVolumeRequest

type QueryTxVolumeRequest struct {
	StartDate *time.Time `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"`
	EndDate   *time.Time `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3,stdtime" json:"end_date,omitempty"`
}

QueryTxVolumeRequest is request type for the Query/TxVolume RPC method.

func (*QueryTxVolumeRequest) Descriptor

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

func (*QueryTxVolumeRequest) GetEndDate

func (m *QueryTxVolumeRequest) GetEndDate() *time.Time

func (*QueryTxVolumeRequest) GetStartDate

func (m *QueryTxVolumeRequest) GetStartDate() *time.Time

func (*QueryTxVolumeRequest) Marshal

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

func (*QueryTxVolumeRequest) MarshalTo

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

func (*QueryTxVolumeRequest) MarshalToSizedBuffer

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

func (*QueryTxVolumeRequest) ProtoMessage

func (*QueryTxVolumeRequest) ProtoMessage()

func (*QueryTxVolumeRequest) Reset

func (m *QueryTxVolumeRequest) Reset()

func (*QueryTxVolumeRequest) Size

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

func (*QueryTxVolumeRequest) String

func (m *QueryTxVolumeRequest) String() string

func (*QueryTxVolumeRequest) Unmarshal

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

func (*QueryTxVolumeRequest) XXX_DiscardUnknown

func (m *QueryTxVolumeRequest) XXX_DiscardUnknown()

func (*QueryTxVolumeRequest) XXX_Marshal

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

func (*QueryTxVolumeRequest) XXX_Merge

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

func (*QueryTxVolumeRequest) XXX_Size

func (m *QueryTxVolumeRequest) XXX_Size() int

func (*QueryTxVolumeRequest) XXX_Unmarshal

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

type QueryTxVolumeResponse

type QueryTxVolumeResponse struct {
	TxVolumePerDay []TxVolumePerDay `protobuf:"bytes,1,rep,name=tx_volume_per_day,json=txVolumePerDay,proto3" json:"tx_volume_per_day"`
}

QueryAvgTxFeeResponse is response type for the Query/TxVolume RPC method.

func (*QueryTxVolumeResponse) Descriptor

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

func (*QueryTxVolumeResponse) GetTxVolumePerDay

func (m *QueryTxVolumeResponse) GetTxVolumePerDay() []TxVolumePerDay

func (*QueryTxVolumeResponse) Marshal

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

func (*QueryTxVolumeResponse) MarshalTo

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

func (*QueryTxVolumeResponse) MarshalToSizedBuffer

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

func (*QueryTxVolumeResponse) ProtoMessage

func (*QueryTxVolumeResponse) ProtoMessage()

func (*QueryTxVolumeResponse) Reset

func (m *QueryTxVolumeResponse) Reset()

func (*QueryTxVolumeResponse) Size

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

func (*QueryTxVolumeResponse) String

func (m *QueryTxVolumeResponse) String() string

func (*QueryTxVolumeResponse) Unmarshal

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

func (*QueryTxVolumeResponse) XXX_DiscardUnknown

func (m *QueryTxVolumeResponse) XXX_DiscardUnknown()

func (*QueryTxVolumeResponse) XXX_Marshal

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

func (*QueryTxVolumeResponse) XXX_Merge

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

func (*QueryTxVolumeResponse) XXX_Size

func (m *QueryTxVolumeResponse) XXX_Size() int

func (*QueryTxVolumeResponse) XXX_Unmarshal

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

type QueryValidatorBlocksRequest

type QueryValidatorBlocksRequest struct {
	ValidatorAddress string             `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Pagination       *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	Desc             bool               `protobuf:"varint,3,opt,name=desc,proto3" json:"desc,omitempty"`
}

QueryValidatorBlocksRequest is request type for the Query/ValidatorBlocks RPC method.

func (*QueryValidatorBlocksRequest) Descriptor

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

func (*QueryValidatorBlocksRequest) GetDesc

func (m *QueryValidatorBlocksRequest) GetDesc() bool

func (*QueryValidatorBlocksRequest) GetPagination

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

func (*QueryValidatorBlocksRequest) GetValidatorAddress

func (m *QueryValidatorBlocksRequest) GetValidatorAddress() string

func (*QueryValidatorBlocksRequest) Marshal

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

func (*QueryValidatorBlocksRequest) MarshalTo

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

func (*QueryValidatorBlocksRequest) MarshalToSizedBuffer

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

func (*QueryValidatorBlocksRequest) ProtoMessage

func (*QueryValidatorBlocksRequest) ProtoMessage()

func (*QueryValidatorBlocksRequest) Reset

func (m *QueryValidatorBlocksRequest) Reset()

func (*QueryValidatorBlocksRequest) Size

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

func (*QueryValidatorBlocksRequest) String

func (m *QueryValidatorBlocksRequest) String() string

func (*QueryValidatorBlocksRequest) Unmarshal

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

func (*QueryValidatorBlocksRequest) XXX_DiscardUnknown

func (m *QueryValidatorBlocksRequest) XXX_DiscardUnknown()

func (*QueryValidatorBlocksRequest) XXX_Marshal

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

func (*QueryValidatorBlocksRequest) XXX_Merge

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

func (*QueryValidatorBlocksRequest) XXX_Size

func (m *QueryValidatorBlocksRequest) XXX_Size() int

func (*QueryValidatorBlocksRequest) XXX_Unmarshal

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

type QueryValidatorBlocksResponse

type QueryValidatorBlocksResponse struct {
	Blocks     []ValidatorBlock    `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorBlocksResponse is response type for the Query/ValidatorBlocks RPC method.

func (*QueryValidatorBlocksResponse) Descriptor

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

func (*QueryValidatorBlocksResponse) GetBlocks

func (*QueryValidatorBlocksResponse) GetPagination

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

func (*QueryValidatorBlocksResponse) Marshal

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

func (*QueryValidatorBlocksResponse) MarshalTo

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

func (*QueryValidatorBlocksResponse) MarshalToSizedBuffer

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

func (*QueryValidatorBlocksResponse) ProtoMessage

func (*QueryValidatorBlocksResponse) ProtoMessage()

func (*QueryValidatorBlocksResponse) Reset

func (m *QueryValidatorBlocksResponse) Reset()

func (*QueryValidatorBlocksResponse) Size

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

func (*QueryValidatorBlocksResponse) String

func (*QueryValidatorBlocksResponse) Unmarshal

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

func (*QueryValidatorBlocksResponse) XXX_DiscardUnknown

func (m *QueryValidatorBlocksResponse) XXX_DiscardUnknown()

func (*QueryValidatorBlocksResponse) XXX_Marshal

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

func (*QueryValidatorBlocksResponse) XXX_Merge

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

func (*QueryValidatorBlocksResponse) XXX_Size

func (m *QueryValidatorBlocksResponse) XXX_Size() int

func (*QueryValidatorBlocksResponse) XXX_Unmarshal

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

type QueryValidatorByConsAddrRequest

type QueryValidatorByConsAddrRequest struct {
	ConsensusAddress string `protobuf:"bytes,1,opt,name=consensus_address,json=consensusAddress,proto3" json:"consensus_address,omitempty"`
}

func (*QueryValidatorByConsAddrRequest) Descriptor

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

func (*QueryValidatorByConsAddrRequest) GetConsensusAddress

func (m *QueryValidatorByConsAddrRequest) GetConsensusAddress() string

func (*QueryValidatorByConsAddrRequest) Marshal

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

func (*QueryValidatorByConsAddrRequest) MarshalTo

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

func (*QueryValidatorByConsAddrRequest) MarshalToSizedBuffer

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

func (*QueryValidatorByConsAddrRequest) ProtoMessage

func (*QueryValidatorByConsAddrRequest) ProtoMessage()

func (*QueryValidatorByConsAddrRequest) Reset

func (*QueryValidatorByConsAddrRequest) Size

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

func (*QueryValidatorByConsAddrRequest) String

func (*QueryValidatorByConsAddrRequest) Unmarshal

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

func (*QueryValidatorByConsAddrRequest) XXX_DiscardUnknown

func (m *QueryValidatorByConsAddrRequest) XXX_DiscardUnknown()

func (*QueryValidatorByConsAddrRequest) XXX_Marshal

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

func (*QueryValidatorByConsAddrRequest) XXX_Merge

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

func (*QueryValidatorByConsAddrRequest) XXX_Size

func (m *QueryValidatorByConsAddrRequest) XXX_Size() int

func (*QueryValidatorByConsAddrRequest) XXX_Unmarshal

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

type QueryValidatorByConsAddrResponse

type QueryValidatorByConsAddrResponse struct {
	Validator github_com_cosmos_cosmos_sdk_x_staking_types.Validator `protobuf:"bytes,1,opt,name=validator,proto3,casttype=github.com/cosmos/cosmos-sdk/x/staking/types.Validator" json:"validator"`
}

func (*QueryValidatorByConsAddrResponse) Descriptor

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

func (*QueryValidatorByConsAddrResponse) GetValidator

func (*QueryValidatorByConsAddrResponse) Marshal

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

func (*QueryValidatorByConsAddrResponse) MarshalTo

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

func (*QueryValidatorByConsAddrResponse) MarshalToSizedBuffer

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

func (*QueryValidatorByConsAddrResponse) ProtoMessage

func (*QueryValidatorByConsAddrResponse) ProtoMessage()

func (*QueryValidatorByConsAddrResponse) Reset

func (*QueryValidatorByConsAddrResponse) Size

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

func (*QueryValidatorByConsAddrResponse) String

func (*QueryValidatorByConsAddrResponse) Unmarshal

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

func (*QueryValidatorByConsAddrResponse) XXX_DiscardUnknown

func (m *QueryValidatorByConsAddrResponse) XXX_DiscardUnknown()

func (*QueryValidatorByConsAddrResponse) XXX_Marshal

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

func (*QueryValidatorByConsAddrResponse) XXX_Merge

func (*QueryValidatorByConsAddrResponse) XXX_Size

func (m *QueryValidatorByConsAddrResponse) XXX_Size() int

func (*QueryValidatorByConsAddrResponse) XXX_Unmarshal

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

type TxVolumePerDay

type TxVolumePerDay struct {
	Date   time.Time `protobuf:"bytes,1,opt,name=date,proto3,stdtime" json:"date"`
	Volume uint64    `protobuf:"varint,2,opt,name=volume,proto3" json:"volume,omitempty"`
}

TxVolumePerDay represents count of transactions per day.

func (*TxVolumePerDay) Descriptor

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

func (*TxVolumePerDay) Equal

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

func (*TxVolumePerDay) GetDate

func (m *TxVolumePerDay) GetDate() time.Time

func (*TxVolumePerDay) GetVolume

func (m *TxVolumePerDay) GetVolume() uint64

func (*TxVolumePerDay) Marshal

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

func (*TxVolumePerDay) MarshalTo

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

func (*TxVolumePerDay) MarshalToSizedBuffer

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

func (*TxVolumePerDay) ProtoMessage

func (*TxVolumePerDay) ProtoMessage()

func (*TxVolumePerDay) Reset

func (m *TxVolumePerDay) Reset()

func (*TxVolumePerDay) Size

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

func (*TxVolumePerDay) String

func (m *TxVolumePerDay) String() string

func (*TxVolumePerDay) Unmarshal

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

func (*TxVolumePerDay) XXX_DiscardUnknown

func (m *TxVolumePerDay) XXX_DiscardUnknown()

func (*TxVolumePerDay) XXX_Marshal

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

func (*TxVolumePerDay) XXX_Merge

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

func (*TxVolumePerDay) XXX_Size

func (m *TxVolumePerDay) XXX_Size() int

func (*TxVolumePerDay) XXX_Unmarshal

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ExtendedValidators

func (*UnimplementedQueryServer) TopBalances

func (*UnimplementedQueryServer) TopValidators

func (*UnimplementedQueryServer) ValidatorBlocks

func (*UnimplementedQueryServer) ValidatorByConsAddr

type ValidatorBlock

type ValidatorBlock struct {
	Height   uint64                                   `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	Time     time.Time                                `protobuf:"bytes,2,opt,name=time,proto3,stdtime" json:"time"`
	TxsCount uint64                                   `protobuf:"varint,3,opt,name=txs_count,json=txsCount,proto3" json:"txs_count,omitempty"`
	Reward   github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"reward"`
}

ValidatorBlock represents block approved by validator.

func (*ValidatorBlock) Descriptor

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

func (*ValidatorBlock) Equal

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

func (*ValidatorBlock) GetHeight

func (m *ValidatorBlock) GetHeight() uint64

func (*ValidatorBlock) GetReward

func (*ValidatorBlock) GetTime

func (m *ValidatorBlock) GetTime() time.Time

func (*ValidatorBlock) GetTxsCount

func (m *ValidatorBlock) GetTxsCount() uint64

func (*ValidatorBlock) Marshal

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

func (*ValidatorBlock) MarshalTo

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

func (*ValidatorBlock) MarshalToSizedBuffer

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

func (*ValidatorBlock) ProtoMessage

func (*ValidatorBlock) ProtoMessage()

func (*ValidatorBlock) Reset

func (m *ValidatorBlock) Reset()

func (*ValidatorBlock) Size

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

func (*ValidatorBlock) String

func (m *ValidatorBlock) String() string

func (*ValidatorBlock) Unmarshal

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

func (*ValidatorBlock) XXX_DiscardUnknown

func (m *ValidatorBlock) XXX_DiscardUnknown()

func (*ValidatorBlock) XXX_Marshal

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

func (*ValidatorBlock) XXX_Merge

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

func (*ValidatorBlock) XXX_Size

func (m *ValidatorBlock) XXX_Size() int

func (*ValidatorBlock) XXX_Unmarshal

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

type ValidatorBlockStats

type ValidatorBlockStats struct {
	ValidatorAddress string                                 `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	BlocksCount      uint64                                 `protobuf:"varint,2,opt,name=blocks_count,json=blocksCount,proto3" json:"blocks_count,omitempty"`
	StakePercentage  github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
}

ValidatorBlockStats represents validators blocks and stake percentage.

func (*ValidatorBlockStats) Descriptor

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

func (*ValidatorBlockStats) Equal

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

func (*ValidatorBlockStats) GetBlocksCount

func (m *ValidatorBlockStats) GetBlocksCount() uint64

func (*ValidatorBlockStats) GetValidatorAddress

func (m *ValidatorBlockStats) GetValidatorAddress() string

func (*ValidatorBlockStats) Marshal

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

func (*ValidatorBlockStats) MarshalTo

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

func (*ValidatorBlockStats) MarshalToSizedBuffer

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

func (*ValidatorBlockStats) ProtoMessage

func (*ValidatorBlockStats) ProtoMessage()

func (*ValidatorBlockStats) Reset

func (m *ValidatorBlockStats) Reset()

func (*ValidatorBlockStats) Size

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

func (*ValidatorBlockStats) String

func (m *ValidatorBlockStats) String() string

func (*ValidatorBlockStats) Unmarshal

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

func (*ValidatorBlockStats) XXX_DiscardUnknown

func (m *ValidatorBlockStats) XXX_DiscardUnknown()

func (*ValidatorBlockStats) XXX_Marshal

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

func (*ValidatorBlockStats) XXX_Merge

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

func (*ValidatorBlockStats) XXX_Size

func (m *ValidatorBlockStats) XXX_Size() int

func (*ValidatorBlockStats) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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