types

package
v4.1.0-lsm-rc0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 32 Imported by: 30

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AttributeConsumerHeight = "consumer_height"
	AttributeTimestamp      = "timestamp"

	EventTypeFeeDistribution          = "fee_distribution"
	EventTypeVSCMatured               = "vsc_matured"
	EventTypeConsumerSlashRequest     = "consumer_slash_request"
	EventTypeFeeTransferChannelOpened = "fee_transfer_channel_opened"

	AttributeDistributionCurrentHeight = "current_distribution_height"
	//#nosec G101 -- (false positive) this is not a hardcoded credential
	AttributeDistributionNextHeight = "next_distribution_height"
	AttributeDistributionFraction   = "distribution_fraction"
	AttributeDistributionTotal      = "total"
	AttributeDistributionToProvider = "provider_amount"
)
View Source
const (
	// ModuleName defines the CCV consumer module name
	ModuleName = "ccvconsumer"

	// StoreKey is the store key string for IBC consumer
	StoreKey = ModuleName

	// RouterKey is the message route for IBC consumer
	RouterKey = ModuleName

	// QuerierRoute is the querier route for IBC consumer
	QuerierRoute = ModuleName

	// ConsumerRedistributeName the root string for the consumer-redistribution account address
	ConsumerRedistributeName = "cons_redistribute"

	// ConsumerToSendToProviderName is a "buffer" address for outgoing fees to be transferred to the provider chain
	//#nosec G101 -- (false positive) this is not a hardcoded credential
	ConsumerToSendToProviderName = "cons_to_send_to_provider"
)
View Source
const (
	// PortByteKey defines the byte key to store the port ID in store
	PortByteKey byte = iota

	// LastDistributionTransmissionByteKey defines the byte key to store the last distribution transmission
	LastDistributionTransmissionByteKey

	// UnbondingTimeKeyString is the byte key for storing the unbonding period
	UnbondingTimeByteKey

	// ProviderClientKeyString is the byte key for storing the clientID of the provider client
	ProviderClientByteKey

	// ProviderChannelKeyString is the byte key for storing the channelID of the CCV channel
	ProviderChannelByteKey

	// PendingChangesKeyString is the byte key that will store any pending validator set changes
	// received over CCV channel but not yet flushed over ABCI
	PendingChangesByteKey

	// NOTE: This prefix is deprecated, but left in place to avoid consumer state migrations
	// [DEPRECATED]
	PendingDataPacketsByteKey

	// PreCCVByteKey is the byte to store the consumer is running on democracy staking module without consumer
	PreCCVByteKey

	// InitialValSetByteKey is the byte to store the initial validator set for a consumer
	InitialValSetByteKey

	// NOTE: This prefix is deprecated, but left in place to avoid consumer state migrations
	// [DEPRECATED]
	LastStandaloneHeightByteKey

	// SmallestNonOptOutPowerByteKey is the byte that will store the smallest val power that cannot opt out
	SmallestNonOptOutPowerByteKey

	// HistoricalInfoKey is the byte prefix that will store the historical info for a given height
	HistoricalInfoBytePrefix

	// PacketMaturityTimePrefix is the byte prefix that will store maturity time for each received VSC packet
	PacketMaturityTimeBytePrefix

	// HeightValsetUpdateIDPrefix is the byte prefix that will store the mapping from block height to valset update ID
	HeightValsetUpdateIDBytePrefix

	// OutstandingDowntimePrefix is the byte prefix that will store the validators outstanding downtime by consensus address
	OutstandingDowntimeBytePrefix

	// PendingDataPacketsBytePrefix is the byte prefix for storing
	// a list of data packets that cannot be sent yet to the provider
	// chain either because the CCV channel is not established or
	// because the client is expired
	PendingDataPacketsBytePrefix

	// CrossChainValidatorPrefix is the byte prefix that will store cross-chain validators by consensus address
	CrossChainValidatorBytePrefix

	// InitGenesisHeightByteKey is the byte that will store the init genesis height
	InitGenesisHeightByteKey

	// StandaloneTransferChannelIDByteKey is the byte storing the channelID of transfer channel
	// that existed from a standalone chain changing over to a consumer
	StandaloneTransferChannelIDByteKey

	// PrevStandaloneChainByteKey is the byte storing the flag marking whether this chain was previously standalone
	PrevStandaloneChainByteKey

	// PendingPacketsIndexBytePrefix is the single byte key to the pending packets index.
	// This index is used for implementing a FIFO queue of pending packets in the KV store.
	PendingPacketsIndexByteKey

	// SlashRecordByteKey is the single byte key storing the consumer's slash record.
	SlashRecordByteKey
)

Iota generated keys/key prefixes (as a byte), supports 256 possible values

Variables

View Source
var (
	ErrInvalidLengthConsumer        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConsumer          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConsumer = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrNoProposerChannelId                  = errorsmod.Register(ModuleName, 1, "no established CCV channel")
	ErrConsumerRewardDenomAlreadyRegistered = errorsmod.Register(ModuleName, 2, "consumer reward denom already registered")
)

Consumer sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CrossChainValidatorKey

func CrossChainValidatorKey(addr []byte) []byte

CrossChainValidatorKey returns the key to a cross chain validator by consensus address

func HeightValsetUpdateIDKey

func HeightValsetUpdateIDKey(height uint64) []byte

HeightValsetUpdateIDKey returns the key to a valset update ID for a given block height

func HistoricalInfoKey

func HistoricalInfoKey(height int64) []byte

HistoricalInfoKey returns the key to historical info to a given block height

func InitGenesisHeightKey

func InitGenesisHeightKey() []byte

func InitialValSetKey

func InitialValSetKey() []byte

func LastDistributionTransmissionKey

func LastDistributionTransmissionKey() []byte

LastDistributionTransmissionKey returns the key to the last distribution transmission in the store

func OutstandingDowntimeKey

func OutstandingDowntimeKey(address sdk.ConsAddress) []byte

OutstandingDowntimeKey returns the key to a validators' outstanding downtime by consensus address

func PacketMaturityTimeKey

func PacketMaturityTimeKey(vscID uint64, maturityTime time.Time) []byte

PacketMaturityTimeKey returns the key for storing the maturity time for a given received VSC packet id

func PendingChangesKey

func PendingChangesKey() []byte

PendingChangesKey returns the key for storing pending validator set changes

func PendingDataPacketsKey

func PendingDataPacketsKey(idx uint64) []byte

PendingDataPacketsKey returns the key for storing a queue of data packets to be sent to the provider. Packets in this queue will not be sent on the next endblocker if: - the CCV channel is not yet established - the client is expired - A slash packet is being bounced between consumer and provider (not yet implemented)

func PendingPacketsIndexKey

func PendingPacketsIndexKey() []byte

PendingPacketsIndexKey returns the key to the pending packets index. This index is used for implementing a FIFO queue of pending packets in the KV store.

func PortKey

func PortKey() []byte

PortKey returns the key to the port ID in the store

func PreCCVKey

func PreCCVKey() []byte

func PrevStandaloneChainKey

func PrevStandaloneChainKey() []byte

PrevStandaloneChainKey returns the key to the flag marking whether this chain was previously standalone

func ProviderChannelKey

func ProviderChannelKey() []byte

ProviderChannelKey returns the key for storing channelID of the provider chain

func ProviderClientIDKey

func ProviderClientIDKey() []byte

ProviderClientIDKey returns the key for storing clientID of the provider

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 SlashRecordKey

func SlashRecordKey() []byte

SlashRecordKey returns the key storing the consumer's slash record.

func SmallestNonOptOutPowerKey

func SmallestNonOptOutPowerKey() []byte

func StandaloneTransferChannelIDKey

func StandaloneTransferChannelIDKey() []byte

StandaloneTransferChannelIDKey returns the key to the transfer channelID that existed from a standalone chain changing over to a consumer

func UnbondingTimeKey

func UnbondingTimeKey() []byte

UnbondingTimeKey returns the key for storing the unbonding period

Types

type ChainInfo

type ChainInfo struct {
	ChainID      string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	ClientID     string `protobuf:"bytes,2,opt,name=clientID,proto3" json:"clientID,omitempty"`
	ConnectionID string `protobuf:"bytes,3,opt,name=connectionID,proto3" json:"connectionID,omitempty"`
	ChannelID    string `protobuf:"bytes,4,opt,name=channelID,proto3" json:"channelID,omitempty"`
}

func (*ChainInfo) Descriptor

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

func (*ChainInfo) GetChainID

func (m *ChainInfo) GetChainID() string

func (*ChainInfo) GetChannelID

func (m *ChainInfo) GetChannelID() string

func (*ChainInfo) GetClientID

func (m *ChainInfo) GetClientID() string

func (*ChainInfo) GetConnectionID

func (m *ChainInfo) GetConnectionID() string

func (*ChainInfo) Marshal

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

func (*ChainInfo) MarshalTo

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

func (*ChainInfo) MarshalToSizedBuffer

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

func (*ChainInfo) ProtoMessage

func (*ChainInfo) ProtoMessage()

func (*ChainInfo) Reset

func (m *ChainInfo) Reset()

func (*ChainInfo) Size

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

func (*ChainInfo) String

func (m *ChainInfo) String() string

func (*ChainInfo) Unmarshal

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

func (*ChainInfo) XXX_DiscardUnknown

func (m *ChainInfo) XXX_DiscardUnknown()

func (*ChainInfo) XXX_Marshal

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

func (*ChainInfo) XXX_Merge

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

func (*ChainInfo) XXX_Size

func (m *ChainInfo) XXX_Size() int

func (*ChainInfo) XXX_Unmarshal

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

type ConsumerPacketDataList

type ConsumerPacketDataList struct {
	List []types.ConsumerPacketData `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
}

ConsumerPacketDataList is a list of consumer packet data packets.

Note this type is used internally to the consumer CCV module for exporting / importing state in InitGenesis and ExportGenesis.

func (*ConsumerPacketDataList) Descriptor

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

func (*ConsumerPacketDataList) GetList

func (*ConsumerPacketDataList) Marshal

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

func (*ConsumerPacketDataList) MarshalTo

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

func (*ConsumerPacketDataList) MarshalToSizedBuffer

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

func (*ConsumerPacketDataList) ProtoMessage

func (*ConsumerPacketDataList) ProtoMessage()

func (*ConsumerPacketDataList) Reset

func (m *ConsumerPacketDataList) Reset()

func (*ConsumerPacketDataList) Size

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

func (*ConsumerPacketDataList) String

func (m *ConsumerPacketDataList) String() string

func (*ConsumerPacketDataList) Unmarshal

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

func (*ConsumerPacketDataList) XXX_DiscardUnknown

func (m *ConsumerPacketDataList) XXX_DiscardUnknown()

func (*ConsumerPacketDataList) XXX_Marshal

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

func (*ConsumerPacketDataList) XXX_Merge

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

func (*ConsumerPacketDataList) XXX_Size

func (m *ConsumerPacketDataList) XXX_Size() int

func (*ConsumerPacketDataList) XXX_Unmarshal

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

type CrossChainValidator

type CrossChainValidator struct {
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Power   int64  `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// pubkey is the consensus public key of the validator, as a Protobuf Any.
	Pubkey   *types.Any `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty" yaml:"consensus_pubkey"`
	OptedOut bool       `protobuf:"varint,4,opt,name=opted_out,json=optedOut,proto3" json:"opted_out,omitempty"`
}

CrossChainValidator defines the type used to store validator information internal to the consumer CCV module. Note one cross chain validator entry is persisted for each consumer validator, where incoming VSC packets update this data, which is eventually forwarded to comet for consumer chain consensus.

Note this type is only used internally to the consumer CCV module.

func NewCCValidator

func NewCCValidator(address []byte, power int64, pubKey cryptotypes.PubKey) (CrossChainValidator, error)

func (CrossChainValidator) ConsPubKey

func (ccv CrossChainValidator) ConsPubKey() (cryptotypes.PubKey, error)

ConsPubKey returns the validator PubKey as a cryptotypes.PubKey.

func (*CrossChainValidator) Descriptor

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

func (*CrossChainValidator) GetAddress

func (m *CrossChainValidator) GetAddress() []byte

func (*CrossChainValidator) GetOptedOut

func (m *CrossChainValidator) GetOptedOut() bool

func (*CrossChainValidator) GetPower

func (m *CrossChainValidator) GetPower() int64

func (*CrossChainValidator) GetPubkey

func (m *CrossChainValidator) GetPubkey() *types.Any

func (*CrossChainValidator) Marshal

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

func (*CrossChainValidator) MarshalTo

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

func (*CrossChainValidator) MarshalToSizedBuffer

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

func (*CrossChainValidator) ProtoMessage

func (*CrossChainValidator) ProtoMessage()

func (*CrossChainValidator) Reset

func (m *CrossChainValidator) Reset()

func (*CrossChainValidator) Size

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

func (*CrossChainValidator) String

func (m *CrossChainValidator) String() string

func (*CrossChainValidator) Unmarshal

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

func (CrossChainValidator) UnpackInterfaces

func (ccv CrossChainValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (*CrossChainValidator) XXX_DiscardUnknown

func (m *CrossChainValidator) XXX_DiscardUnknown()

func (*CrossChainValidator) XXX_Marshal

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

func (*CrossChainValidator) XXX_Merge

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

func (*CrossChainValidator) XXX_Size

func (m *CrossChainValidator) XXX_Size() int

func (*CrossChainValidator) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// ConsumerParams is a shared type with provider module
	Params types.ConsumerParams `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// Client ID of the provider. Empty for a new chain, filled in on restart.
	ProviderClientId string `protobuf:"bytes,2,opt,name=provider_client_id,json=providerClientId,proto3" json:"provider_client_id,omitempty"`
	// Channel ID of the provider. Empty for a new chain, filled in on restart.
	ProviderChannelId string `protobuf:"bytes,3,opt,name=provider_channel_id,json=providerChannelId,proto3" json:"provider_channel_id,omitempty"`
	// true for new chain, false for chain restart.
	NewChain bool `protobuf:"varint,4,opt,name=new_chain,json=newChain,proto3" json:"new_chain,omitempty"`
	// !!! DEPRECATED !!! ProviderClientState is deprecated. Use provider.client_state instead
	ProviderClientState *_07_tendermint.ClientState `protobuf:"bytes,5,opt,name=provider_client_state,json=providerClientState,proto3" json:"provider_client_state,omitempty"` // Deprecated: Do not use.
	// !!! DEPRECATED !!! ProviderConsensusState is deprecated. Use provider.consensus_state instead
	ProviderConsensusState *_07_tendermint.ConsensusState `` // Deprecated: Do not use.
	/* 129-byte string literal not displayed */
	// MaturingPackets nil on new chain, filled in on restart.
	MaturingPackets []MaturingVSCPacket `protobuf:"bytes,7,rep,name=maturing_packets,json=maturingPackets,proto3" json:"maturing_packets"`
	// !!! DEPRECATED !!!! InitialValset is deprecated. Use provider.initial_val_set instead
	InitialValSet []types1.ValidatorUpdate `protobuf:"bytes,8,rep,name=initial_val_set,json=initialValSet,proto3" json:"initial_val_set"` // Deprecated: Do not use.
	// HeightToValsetUpdateId nil on new chain, filled in on restart.
	HeightToValsetUpdateId []HeightToValsetUpdateID `protobuf:"bytes,9,rep,name=height_to_valset_update_id,json=heightToValsetUpdateId,proto3" json:"height_to_valset_update_id"`
	// OutstandingDowntimes nil on new chain, filled  in on restart.
	OutstandingDowntimeSlashing []OutstandingDowntime `` /* 135-byte string literal not displayed */
	// PendingConsumerPackets nil on new chain, filled in on restart.
	PendingConsumerPackets ConsumerPacketDataList `protobuf:"bytes,11,opt,name=pending_consumer_packets,json=pendingConsumerPackets,proto3" json:"pending_consumer_packets"`
	// LastTransmissionBlockHeight nil on new chain, filled in on restart.
	LastTransmissionBlockHeight LastTransmissionBlockHeight `` /* 137-byte string literal not displayed */
	// flag indicating whether the consumer CCV module starts in pre-CCV state
	PreCCV   bool               `protobuf:"varint,13,opt,name=preCCV,proto3" json:"preCCV,omitempty"`
	Provider types.ProviderInfo `protobuf:"bytes,14,opt,name=provider,proto3" json:"provider"`
}

GenesisState defines the CCV consumer genesis state

Note: this type is only used on consumer side and references shared types with provider

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default disabled consumer chain genesis state. This allows the module to be hooked up to app without getting use unless explicitly specified in genesis.

func NewInitialGenesisState

func NewInitialGenesisState(cs *ibctmtypes.ClientState, consState *ibctmtypes.ConsensusState,
	initValSet []abci.ValidatorUpdate, params ccv.ConsumerParams,
) *GenesisState

NewInitialGenesisState returns a GenesisState for a completely new consumer chain.

func NewRestartGenesisState

func NewRestartGenesisState(
	clientID, channelID string,
	maturingPackets []MaturingVSCPacket,
	initValSet []abci.ValidatorUpdate,
	heightToValsetUpdateIDs []HeightToValsetUpdateID,
	pendingConsumerPackets ConsumerPacketDataList,
	outstandingDowntimes []OutstandingDowntime,
	lastTransBlockHeight LastTransmissionBlockHeight,
	params ccv.ConsumerParams,
) *GenesisState

NewRestartGenesisState returns a consumer GenesisState that has already been established.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetHeightToValsetUpdateId

func (m *GenesisState) GetHeightToValsetUpdateId() []HeightToValsetUpdateID

func (*GenesisState) GetInitialValSet deprecated

func (m *GenesisState) GetInitialValSet() []types1.ValidatorUpdate

Deprecated: Do not use.

func (*GenesisState) GetLastTransmissionBlockHeight

func (m *GenesisState) GetLastTransmissionBlockHeight() LastTransmissionBlockHeight

func (*GenesisState) GetMaturingPackets

func (m *GenesisState) GetMaturingPackets() []MaturingVSCPacket

func (*GenesisState) GetNewChain

func (m *GenesisState) GetNewChain() bool

func (*GenesisState) GetOutstandingDowntimeSlashing

func (m *GenesisState) GetOutstandingDowntimeSlashing() []OutstandingDowntime

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() types.ConsumerParams

func (*GenesisState) GetPendingConsumerPackets

func (m *GenesisState) GetPendingConsumerPackets() ConsumerPacketDataList

func (*GenesisState) GetPreCCV

func (m *GenesisState) GetPreCCV() bool

func (*GenesisState) GetProvider

func (m *GenesisState) GetProvider() types.ProviderInfo

func (*GenesisState) GetProviderChannelId

func (m *GenesisState) GetProviderChannelId() string

func (*GenesisState) GetProviderClientId

func (m *GenesisState) GetProviderClientId() string

func (*GenesisState) GetProviderClientState deprecated

func (m *GenesisState) GetProviderClientState() *_07_tendermint.ClientState

Deprecated: Do not use.

func (*GenesisState) GetProviderConsensusState deprecated

func (m *GenesisState) GetProviderConsensusState() *_07_tendermint.ConsensusState

Deprecated: Do not use.

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type HeightToValsetUpdateID

type HeightToValsetUpdateID struct {
	Height         uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	ValsetUpdateId uint64 `protobuf:"varint,2,opt,name=valset_update_id,json=valsetUpdateId,proto3" json:"valset_update_id,omitempty"`
}

HeightValsetUpdateID represents a mapping internal to the consumer CCV module which links a block height to each recv valset update id.

func (*HeightToValsetUpdateID) Descriptor

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

func (*HeightToValsetUpdateID) GetHeight

func (m *HeightToValsetUpdateID) GetHeight() uint64

func (*HeightToValsetUpdateID) GetValsetUpdateId

func (m *HeightToValsetUpdateID) GetValsetUpdateId() uint64

func (*HeightToValsetUpdateID) Marshal

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

func (*HeightToValsetUpdateID) MarshalTo

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

func (*HeightToValsetUpdateID) MarshalToSizedBuffer

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

func (*HeightToValsetUpdateID) ProtoMessage

func (*HeightToValsetUpdateID) ProtoMessage()

func (*HeightToValsetUpdateID) Reset

func (m *HeightToValsetUpdateID) Reset()

func (*HeightToValsetUpdateID) Size

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

func (*HeightToValsetUpdateID) String

func (m *HeightToValsetUpdateID) String() string

func (*HeightToValsetUpdateID) Unmarshal

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

func (*HeightToValsetUpdateID) XXX_DiscardUnknown

func (m *HeightToValsetUpdateID) XXX_DiscardUnknown()

func (*HeightToValsetUpdateID) XXX_Marshal

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

func (*HeightToValsetUpdateID) XXX_Merge

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

func (*HeightToValsetUpdateID) XXX_Size

func (m *HeightToValsetUpdateID) XXX_Size() int

func (*HeightToValsetUpdateID) XXX_Unmarshal

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

type LastTransmissionBlockHeight

type LastTransmissionBlockHeight struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

LastTransmissionBlockHeight is the last time validator holding pools were transmitted to the provider chain. This type is used internally to the consumer CCV module.

func (*LastTransmissionBlockHeight) Descriptor

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

func (*LastTransmissionBlockHeight) GetHeight

func (m *LastTransmissionBlockHeight) GetHeight() int64

func (*LastTransmissionBlockHeight) Marshal

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

func (*LastTransmissionBlockHeight) MarshalTo

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

func (*LastTransmissionBlockHeight) MarshalToSizedBuffer

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

func (*LastTransmissionBlockHeight) ProtoMessage

func (*LastTransmissionBlockHeight) ProtoMessage()

func (*LastTransmissionBlockHeight) Reset

func (m *LastTransmissionBlockHeight) Reset()

func (*LastTransmissionBlockHeight) Size

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

func (*LastTransmissionBlockHeight) String

func (m *LastTransmissionBlockHeight) String() string

func (*LastTransmissionBlockHeight) Unmarshal

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

func (*LastTransmissionBlockHeight) XXX_DiscardUnknown

func (m *LastTransmissionBlockHeight) XXX_DiscardUnknown()

func (*LastTransmissionBlockHeight) XXX_Marshal

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

func (*LastTransmissionBlockHeight) XXX_Merge

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

func (*LastTransmissionBlockHeight) XXX_Size

func (m *LastTransmissionBlockHeight) XXX_Size() int

func (*LastTransmissionBlockHeight) XXX_Unmarshal

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

type MaturingVSCPacket

type MaturingVSCPacket struct {
	VscId        uint64    `protobuf:"varint,1,opt,name=vscId,proto3" json:"vscId,omitempty"`
	MaturityTime time.Time `protobuf:"bytes,2,opt,name=maturity_time,json=maturityTime,proto3,stdtime" json:"maturity_time"`
}

MaturingVSCPacket represents a vsc packet that is maturing internal to the consumer CCV module, where the consumer has not yet relayed a VSCMatured packet back to the provider.

func (*MaturingVSCPacket) Descriptor

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

func (*MaturingVSCPacket) GetMaturityTime

func (m *MaturingVSCPacket) GetMaturityTime() time.Time

func (*MaturingVSCPacket) GetVscId

func (m *MaturingVSCPacket) GetVscId() uint64

func (*MaturingVSCPacket) Marshal

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

func (*MaturingVSCPacket) MarshalTo

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

func (*MaturingVSCPacket) MarshalToSizedBuffer

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

func (*MaturingVSCPacket) ProtoMessage

func (*MaturingVSCPacket) ProtoMessage()

func (*MaturingVSCPacket) Reset

func (m *MaturingVSCPacket) Reset()

func (*MaturingVSCPacket) Size

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

func (*MaturingVSCPacket) String

func (m *MaturingVSCPacket) String() string

func (*MaturingVSCPacket) Unmarshal

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

func (MaturingVSCPacket) Validate

func (mat MaturingVSCPacket) Validate() error

func (*MaturingVSCPacket) XXX_DiscardUnknown

func (m *MaturingVSCPacket) XXX_DiscardUnknown()

func (*MaturingVSCPacket) XXX_Marshal

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

func (*MaturingVSCPacket) XXX_Merge

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

func (*MaturingVSCPacket) XXX_Size

func (m *MaturingVSCPacket) XXX_Size() int

func (*MaturingVSCPacket) XXX_Unmarshal

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

type NextFeeDistributionEstimate

type NextFeeDistributionEstimate struct {
	// current block height at the time of querying
	CurrentHeight int64 `protobuf:"varint,1,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"`
	// block height at which last distribution took place
	LastHeight int64 `protobuf:"varint,2,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"`
	// block height at which next distribution will take place
	NextHeight int64 `protobuf:"varint,3,opt,name=nextHeight,proto3" json:"nextHeight,omitempty"`
	// ratio between consumer and provider fee distribution
	DistributionFraction string `protobuf:"bytes,4,opt,name=distribution_fraction,json=distributionFraction,proto3" json:"distribution_fraction,omitempty"`
	// total accruead fees at the time of querying
	Total string `protobuf:"bytes,5,opt,name=total,proto3" json:"total,omitempty"`
	// amount distributed to provider chain
	ToProvider string `protobuf:"bytes,6,opt,name=toProvider,proto3" json:"toProvider,omitempty"`
	// amount distributed (kept) by consumer chain
	ToConsumer string `protobuf:"bytes,7,opt,name=toConsumer,proto3" json:"toConsumer,omitempty"`
}

NextFeeDistributionEstimate holds information about next fee distribution

func (*NextFeeDistributionEstimate) Descriptor

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

func (*NextFeeDistributionEstimate) GetCurrentHeight

func (m *NextFeeDistributionEstimate) GetCurrentHeight() int64

func (*NextFeeDistributionEstimate) GetDistributionFraction

func (m *NextFeeDistributionEstimate) GetDistributionFraction() string

func (*NextFeeDistributionEstimate) GetLastHeight

func (m *NextFeeDistributionEstimate) GetLastHeight() int64

func (*NextFeeDistributionEstimate) GetNextHeight

func (m *NextFeeDistributionEstimate) GetNextHeight() int64

func (*NextFeeDistributionEstimate) GetToConsumer

func (m *NextFeeDistributionEstimate) GetToConsumer() string

func (*NextFeeDistributionEstimate) GetToProvider

func (m *NextFeeDistributionEstimate) GetToProvider() string

func (*NextFeeDistributionEstimate) GetTotal

func (m *NextFeeDistributionEstimate) GetTotal() string

func (*NextFeeDistributionEstimate) Marshal

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

func (*NextFeeDistributionEstimate) MarshalTo

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

func (*NextFeeDistributionEstimate) MarshalToSizedBuffer

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

func (*NextFeeDistributionEstimate) ProtoMessage

func (*NextFeeDistributionEstimate) ProtoMessage()

func (*NextFeeDistributionEstimate) Reset

func (m *NextFeeDistributionEstimate) Reset()

func (*NextFeeDistributionEstimate) Size

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

func (*NextFeeDistributionEstimate) String

func (m *NextFeeDistributionEstimate) String() string

func (*NextFeeDistributionEstimate) Unmarshal

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

func (*NextFeeDistributionEstimate) XXX_DiscardUnknown

func (m *NextFeeDistributionEstimate) XXX_DiscardUnknown()

func (*NextFeeDistributionEstimate) XXX_Marshal

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

func (*NextFeeDistributionEstimate) XXX_Merge

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

func (*NextFeeDistributionEstimate) XXX_Size

func (m *NextFeeDistributionEstimate) XXX_Size() int

func (*NextFeeDistributionEstimate) XXX_Unmarshal

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

type OutstandingDowntime

type OutstandingDowntime struct {
	ValidatorConsensusAddress string `` /* 138-byte string literal not displayed */
}

OutstandingDowntime defines the type used internally to the consumer CCV module and is used in order to not send multiple slashing requests for the same downtime infraction.

func (*OutstandingDowntime) Descriptor

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

func (*OutstandingDowntime) GetValidatorConsensusAddress

func (m *OutstandingDowntime) GetValidatorConsensusAddress() string

func (*OutstandingDowntime) Marshal

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

func (*OutstandingDowntime) MarshalTo

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

func (*OutstandingDowntime) MarshalToSizedBuffer

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

func (*OutstandingDowntime) ProtoMessage

func (*OutstandingDowntime) ProtoMessage()

func (*OutstandingDowntime) Reset

func (m *OutstandingDowntime) Reset()

func (*OutstandingDowntime) Size

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

func (*OutstandingDowntime) String

func (m *OutstandingDowntime) String() string

func (*OutstandingDowntime) Unmarshal

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

func (*OutstandingDowntime) XXX_DiscardUnknown

func (m *OutstandingDowntime) XXX_DiscardUnknown()

func (*OutstandingDowntime) XXX_Marshal

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

func (*OutstandingDowntime) XXX_Merge

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

func (*OutstandingDowntime) XXX_Size

func (m *OutstandingDowntime) XXX_Size() int

func (*OutstandingDowntime) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// ConsumerGenesis queries the genesis state needed to start a consumer chain
	// whose proposal has been accepted
	QueryNextFeeDistribution(ctx context.Context, in *QueryNextFeeDistributionEstimateRequest, opts ...grpc.CallOption) (*QueryNextFeeDistributionEstimateResponse, error)
	// QueryParams queries the ccv/consumer module parameters.
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	QueryProviderInfo(ctx context.Context, in *QueryProviderInfoRequest, opts ...grpc.CallOption) (*QueryProviderInfoResponse, error)
	// QueryThrottleState returns on-chain state relevant to throttled consumer packets
	QueryThrottleState(ctx context.Context, in *QueryThrottleStateRequest, opts ...grpc.CallOption) (*QueryThrottleStateResponse, 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 QueryNextFeeDistributionEstimateRequest

type QueryNextFeeDistributionEstimateRequest struct {
}

func (*QueryNextFeeDistributionEstimateRequest) Descriptor

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

func (*QueryNextFeeDistributionEstimateRequest) Marshal

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

func (*QueryNextFeeDistributionEstimateRequest) MarshalTo

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

func (*QueryNextFeeDistributionEstimateRequest) MarshalToSizedBuffer

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

func (*QueryNextFeeDistributionEstimateRequest) ProtoMessage

func (*QueryNextFeeDistributionEstimateRequest) Reset

func (*QueryNextFeeDistributionEstimateRequest) Size

func (*QueryNextFeeDistributionEstimateRequest) String

func (*QueryNextFeeDistributionEstimateRequest) Unmarshal

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

func (*QueryNextFeeDistributionEstimateRequest) XXX_DiscardUnknown

func (m *QueryNextFeeDistributionEstimateRequest) XXX_DiscardUnknown()

func (*QueryNextFeeDistributionEstimateRequest) XXX_Marshal

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

func (*QueryNextFeeDistributionEstimateRequest) XXX_Merge

func (*QueryNextFeeDistributionEstimateRequest) XXX_Size

func (*QueryNextFeeDistributionEstimateRequest) XXX_Unmarshal

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

type QueryNextFeeDistributionEstimateResponse

type QueryNextFeeDistributionEstimateResponse struct {
	Data *NextFeeDistributionEstimate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

func (*QueryNextFeeDistributionEstimateResponse) Descriptor

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

func (*QueryNextFeeDistributionEstimateResponse) GetData

func (*QueryNextFeeDistributionEstimateResponse) Marshal

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

func (*QueryNextFeeDistributionEstimateResponse) MarshalTo

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

func (*QueryNextFeeDistributionEstimateResponse) MarshalToSizedBuffer

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

func (*QueryNextFeeDistributionEstimateResponse) ProtoMessage

func (*QueryNextFeeDistributionEstimateResponse) Reset

func (*QueryNextFeeDistributionEstimateResponse) Size

func (*QueryNextFeeDistributionEstimateResponse) String

func (*QueryNextFeeDistributionEstimateResponse) Unmarshal

func (*QueryNextFeeDistributionEstimateResponse) XXX_DiscardUnknown

func (m *QueryNextFeeDistributionEstimateResponse) XXX_DiscardUnknown()

func (*QueryNextFeeDistributionEstimateResponse) XXX_Marshal

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

func (*QueryNextFeeDistributionEstimateResponse) XXX_Merge

func (*QueryNextFeeDistributionEstimateResponse) XXX_Size

func (*QueryNextFeeDistributionEstimateResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() types.ConsumerParams

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryProviderInfoRequest

type QueryProviderInfoRequest struct {
}

func (*QueryProviderInfoRequest) Descriptor

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

func (*QueryProviderInfoRequest) Marshal

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

func (*QueryProviderInfoRequest) MarshalTo

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

func (*QueryProviderInfoRequest) MarshalToSizedBuffer

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

func (*QueryProviderInfoRequest) ProtoMessage

func (*QueryProviderInfoRequest) ProtoMessage()

func (*QueryProviderInfoRequest) Reset

func (m *QueryProviderInfoRequest) Reset()

func (*QueryProviderInfoRequest) Size

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

func (*QueryProviderInfoRequest) String

func (m *QueryProviderInfoRequest) String() string

func (*QueryProviderInfoRequest) Unmarshal

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

func (*QueryProviderInfoRequest) XXX_DiscardUnknown

func (m *QueryProviderInfoRequest) XXX_DiscardUnknown()

func (*QueryProviderInfoRequest) XXX_Marshal

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

func (*QueryProviderInfoRequest) XXX_Merge

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

func (*QueryProviderInfoRequest) XXX_Size

func (m *QueryProviderInfoRequest) XXX_Size() int

func (*QueryProviderInfoRequest) XXX_Unmarshal

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

type QueryProviderInfoResponse

type QueryProviderInfoResponse struct {
	Consumer ChainInfo `protobuf:"bytes,1,opt,name=consumer,proto3" json:"consumer"`
	Provider ChainInfo `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider"`
}

func (*QueryProviderInfoResponse) Descriptor

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

func (*QueryProviderInfoResponse) GetConsumer

func (m *QueryProviderInfoResponse) GetConsumer() ChainInfo

func (*QueryProviderInfoResponse) GetProvider

func (m *QueryProviderInfoResponse) GetProvider() ChainInfo

func (*QueryProviderInfoResponse) Marshal

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

func (*QueryProviderInfoResponse) MarshalTo

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

func (*QueryProviderInfoResponse) MarshalToSizedBuffer

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

func (*QueryProviderInfoResponse) ProtoMessage

func (*QueryProviderInfoResponse) ProtoMessage()

func (*QueryProviderInfoResponse) Reset

func (m *QueryProviderInfoResponse) Reset()

func (*QueryProviderInfoResponse) Size

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

func (*QueryProviderInfoResponse) String

func (m *QueryProviderInfoResponse) String() string

func (*QueryProviderInfoResponse) Unmarshal

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

func (*QueryProviderInfoResponse) XXX_DiscardUnknown

func (m *QueryProviderInfoResponse) XXX_DiscardUnknown()

func (*QueryProviderInfoResponse) XXX_Marshal

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

func (*QueryProviderInfoResponse) XXX_Merge

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

func (*QueryProviderInfoResponse) XXX_Size

func (m *QueryProviderInfoResponse) XXX_Size() int

func (*QueryProviderInfoResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// ConsumerGenesis queries the genesis state needed to start a consumer chain
	// whose proposal has been accepted
	QueryNextFeeDistribution(context.Context, *QueryNextFeeDistributionEstimateRequest) (*QueryNextFeeDistributionEstimateResponse, error)
	// QueryParams queries the ccv/consumer module parameters.
	QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	QueryProviderInfo(context.Context, *QueryProviderInfoRequest) (*QueryProviderInfoResponse, error)
	// QueryThrottleState returns on-chain state relevant to throttled consumer packets
	QueryThrottleState(context.Context, *QueryThrottleStateRequest) (*QueryThrottleStateResponse, error)
}

QueryServer is the server API for Query service.

type QueryThrottleStateRequest

type QueryThrottleStateRequest struct {
}

func (*QueryThrottleStateRequest) Descriptor

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

func (*QueryThrottleStateRequest) Marshal

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

func (*QueryThrottleStateRequest) MarshalTo

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

func (*QueryThrottleStateRequest) MarshalToSizedBuffer

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

func (*QueryThrottleStateRequest) ProtoMessage

func (*QueryThrottleStateRequest) ProtoMessage()

func (*QueryThrottleStateRequest) Reset

func (m *QueryThrottleStateRequest) Reset()

func (*QueryThrottleStateRequest) Size

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

func (*QueryThrottleStateRequest) String

func (m *QueryThrottleStateRequest) String() string

func (*QueryThrottleStateRequest) Unmarshal

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

func (*QueryThrottleStateRequest) XXX_DiscardUnknown

func (m *QueryThrottleStateRequest) XXX_DiscardUnknown()

func (*QueryThrottleStateRequest) XXX_Marshal

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

func (*QueryThrottleStateRequest) XXX_Merge

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

func (*QueryThrottleStateRequest) XXX_Size

func (m *QueryThrottleStateRequest) XXX_Size() int

func (*QueryThrottleStateRequest) XXX_Unmarshal

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

type QueryThrottleStateResponse

type QueryThrottleStateResponse struct {
	SlashRecord     *SlashRecord               `protobuf:"bytes,1,opt,name=slash_record,json=slashRecord,proto3" json:"slash_record,omitempty"`
	PacketDataQueue []types.ConsumerPacketData `protobuf:"bytes,2,rep,name=packet_data_queue,json=packetDataQueue,proto3" json:"packet_data_queue"`
}

func (*QueryThrottleStateResponse) Descriptor

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

func (*QueryThrottleStateResponse) GetPacketDataQueue

func (m *QueryThrottleStateResponse) GetPacketDataQueue() []types.ConsumerPacketData

func (*QueryThrottleStateResponse) GetSlashRecord

func (m *QueryThrottleStateResponse) GetSlashRecord() *SlashRecord

func (*QueryThrottleStateResponse) Marshal

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

func (*QueryThrottleStateResponse) MarshalTo

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

func (*QueryThrottleStateResponse) MarshalToSizedBuffer

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

func (*QueryThrottleStateResponse) ProtoMessage

func (*QueryThrottleStateResponse) ProtoMessage()

func (*QueryThrottleStateResponse) Reset

func (m *QueryThrottleStateResponse) Reset()

func (*QueryThrottleStateResponse) Size

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

func (*QueryThrottleStateResponse) String

func (m *QueryThrottleStateResponse) String() string

func (*QueryThrottleStateResponse) Unmarshal

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

func (*QueryThrottleStateResponse) XXX_DiscardUnknown

func (m *QueryThrottleStateResponse) XXX_DiscardUnknown()

func (*QueryThrottleStateResponse) XXX_Marshal

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

func (*QueryThrottleStateResponse) XXX_Merge

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

func (*QueryThrottleStateResponse) XXX_Size

func (m *QueryThrottleStateResponse) XXX_Size() int

func (*QueryThrottleStateResponse) XXX_Unmarshal

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

type SlashRecord

type SlashRecord struct {
	WaitingOnReply bool      `protobuf:"varint,1,opt,name=waiting_on_reply,json=waitingOnReply,proto3" json:"waiting_on_reply,omitempty"`
	SendTime       time.Time `protobuf:"bytes,2,opt,name=send_time,json=sendTime,proto3,stdtime" json:"send_time"`
}

A record storing the state of a slash packet sent to the provider chain which may bounce back and forth until handled by the provider.

Note this type is only used internally to the consumer CCV module.

func NewSlashRecord

func NewSlashRecord(sendTime time.Time, waitingOnReply bool) (record SlashRecord)

NewSlashRecord creates a new slash record

func (*SlashRecord) Descriptor

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

func (*SlashRecord) GetSendTime

func (m *SlashRecord) GetSendTime() time.Time

func (*SlashRecord) GetWaitingOnReply

func (m *SlashRecord) GetWaitingOnReply() bool

func (*SlashRecord) Marshal

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

func (*SlashRecord) MarshalTo

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

func (*SlashRecord) MarshalToSizedBuffer

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

func (*SlashRecord) ProtoMessage

func (*SlashRecord) ProtoMessage()

func (*SlashRecord) Reset

func (m *SlashRecord) Reset()

func (*SlashRecord) Size

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

func (*SlashRecord) String

func (m *SlashRecord) String() string

func (*SlashRecord) Unmarshal

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

func (*SlashRecord) XXX_DiscardUnknown

func (m *SlashRecord) XXX_DiscardUnknown()

func (*SlashRecord) XXX_Marshal

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

func (*SlashRecord) XXX_Merge

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

func (*SlashRecord) XXX_Size

func (m *SlashRecord) XXX_Size() int

func (*SlashRecord) XXX_Unmarshal

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryParams

func (*UnimplementedQueryServer) QueryProviderInfo

func (*UnimplementedQueryServer) QueryThrottleState

Jump to

Keyboard shortcuts

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