types

package
v6.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 35 Imported by: 7

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"

	PortKeyName = "PortKey"

	LastDistributionTransmissionKeyName = "LastDistributionTransmissionKey"

	UnbondingTimeKeyName = "UnbondingTimeKey"

	ProviderClientIDKeyName = "ProviderClientIDKey"

	ProviderChannelIDKeyName = "ProviderChannelIDKey"

	PendingChangesKeyName = "PendingChangesKey"

	DeprecatedPendingDataPacketsV0KeyName = "DeprecatedPendingDataPacketsV0Key"

	PreCCVKeyName = "PreCCVKey"

	InitialValSetKeyName = "InitialValSetKey"

	DeprecatedLastStandaloneHeightKeyName = "DeprecatedLastStandaloneHeightKey"

	DeprecatedSmallestNonOptOutPowerKeyName = "DeprecatedSmallestNonOptOutPowerKey"

	HistoricalInfoKeyName = "HistoricalInfoKey"

	DeprecatedPacketMaturityTimeKeyName = "DeprecatedPacketMaturityTimeKey"

	HeightValsetUpdateIDKeyName = "HeightValsetUpdateIDKey"

	OutstandingDowntimeKeyName = "OutstandingDowntimeKey"

	PendingDataPacketsV1KeyName = "PendingDataPacketsV1Key"

	CrossChainValidatorKeyName = "CrossChainValidatorKey"

	InitGenesisHeightKeyName = "InitGenesisHeightKey"

	StandaloneTransferChannelIDKeyName = "StandaloneTransferChannelIDKey"

	PrevStandaloneChainKeyName = "PrevStandaloneChainKey"

	PendingPacketsIndexKeyName = "PendingPacketsIndexKey"

	SlashRecordKeyName = "SlashRecordKey"

	ParametersKeyName = "ParametersKey"
)

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")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CrossChainValidatorKey

func CrossChainValidatorKey(addr []byte) []byte

CrossChainValidatorKey returns the key for storing a cross chain validator by consensus address

func CrossChainValidatorKeyPrefix added in v6.2.0

func CrossChainValidatorKeyPrefix() []byte

CrossChainValidatorKeyPrefix returns the key prefix for storing a cross chain validator by consensus address

func GetAllKeyNames added in v6.2.0

func GetAllKeyNames() []string

GetAllKeyNames returns the names of all the keys. Only used for testing

func GetAllKeyPrefixes added in v6.2.0

func GetAllKeyPrefixes() []byte

GetAllKeyPrefixes returns all the key prefixes. Only used for testing

func HeightValsetUpdateIDKey

func HeightValsetUpdateIDKey(height uint64) []byte

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

func HeightValsetUpdateIDKeyPrefix added in v6.2.0

func HeightValsetUpdateIDKeyPrefix() []byte

HeightValsetUpdateIDKeyPrefix returns the key for storing a valset update ID for a given block height

func HistoricalInfoKey

func HistoricalInfoKey(height int64) []byte

HistoricalInfoKey returns the key for storing the historical info for a given height

func HistoricalInfoKeyPrefix added in v6.2.0

func HistoricalInfoKeyPrefix() []byte

HistoricalInfoKeyPrefix the key prefix for storing the historical info for a given height

func InitGenesisHeightKey

func InitGenesisHeightKey() []byte

InitGenesisHeightKey returns the key for storing the init genesis height

func InitialValSetKey

func InitialValSetKey() []byte

InitialValSetKey returns the key for storing the initial validator set for a consumer

func LastDistributionTransmissionKey

func LastDistributionTransmissionKey() []byte

LastDistributionTransmissionKey returns the key for storing the last distribution transmission

func OutstandingDowntimeKey

func OutstandingDowntimeKey(address sdk.ConsAddress) []byte

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

func OutstandingDowntimeKeyPrefix added in v6.2.0

func OutstandingDowntimeKeyPrefix() []byte

OutstandingDowntimeKeyPrefix returns the key prefix for storing a validators' outstanding downtime by consensus address

func ParametersKey

func ParametersKey() []byte

ParametersKey returns the key for storing the consumer parameters

func PendingChangesKey

func PendingChangesKey() []byte

PendingChangesKey returns the key for storing pending validator set changes

func PendingDataPacketsV1Key added in v6.2.0

func PendingDataPacketsV1Key(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 PendingDataPacketsV1KeyPrefix added in v6.2.0

func PendingDataPacketsV1KeyPrefix() []byte

PendingDataPacketsV1KeyPrefix returns the key prefix for storing a queue of data packets to be sent to the provider.

func PendingPacketsIndexKey

func PendingPacketsIndexKey() []byte

PendingPacketsIndexKey returns the key for storing the FIFO queue of pending packets.

func PortKey

func PortKey() []byte

PortKey returns the key for storing the port ID

func PreCCVKey

func PreCCVKey() []byte

PreCCVKey returns the key for storing the preCCV flag, which is set to true during the process of a standalone to consumer changeover.

func PrevStandaloneChainKey

func PrevStandaloneChainKey() []byte

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

func ProviderChannelIDKey added in v6.2.0

func ProviderChannelIDKey() []byte

ProviderChannelIDKey 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 RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the consumer Tx message types to the interface registry

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SlashRecordKey

func SlashRecordKey() []byte

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

func StandaloneTransferChannelIDKey

func StandaloneTransferChannelIDKey() []byte

StandaloneTransferChannelIDKey returns the key for storing the transfer channelID that existed from a standalone chain changing over to a consumer TODO remove as it's never used

func UnbondingTimeKey

func UnbondingTimeKey() []byte

UnbondingTimeKey returns the key for storing the unbonding period TODO remove as it's never used

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"`
	// !!! DEPRECATED !!! opted_out is deprecated because after the introduction of Partial Set Security (PSS)
	// we removed the soft opt-out feature.
	OptedOut bool `protobuf:"varint,4,opt,name=opted_out,json=optedOut,proto3" json:"opted_out,omitempty"` // Deprecated: Do not use.
}

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 deprecated

func (m *CrossChainValidator) GetOptedOut() bool

Deprecated: Do not use.

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"`
	// 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"`
	// The ID of the connection end on the consumer chain on top of which the
	// CCV channel will be established. If connection_id == "", a new client of
	// the provider chain and a new connection on top of this client are created.
	// The new client is initialized using provider.client_state and provider.consensus_state.
	ConnectionId string `protobuf:"bytes,15,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"`
}

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,
	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) GetConnectionId added in v6.4.0

func (m *GenesisState) GetConnectionId() string

func (*GenesisState) GetHeightToValsetUpdateId

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

func (*GenesisState) GetLastTransmissionBlockHeight

func (m *GenesisState) GetLastTransmissionBlockHeight() LastTransmissionBlockHeight

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

Validate performs basic genesis state validation returning an error upon any failure.

The three cases where a consumer chain starts/restarts expect the following optional and mandatory genesis states:

1. New chain starts:

  • Params, InitialValset // mandatory

1a. ConnectionId is empty

  • provider client state, provider consensus state // mandatory

1b. ConnectionId is not empty

  • provider client state, provider consensus state // nil

2. Chain restarts with CCV handshake still in progress:

  • Params, InitialValset, ProviderID, HeightToValidatorSetUpdateID // mandatory
  • PendingConsumerPacket // optional

3. Chain restarts with CCV handshake completed:

  • Params, InitialValset, ProviderID, channelID, HeightToValidatorSetUpdateID // mandatory
  • MaturingVSCPackets, OutstandingDowntime, PendingConsumerPacket, LastTransmissionBlockHeight // optional

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 MsgClient

type MsgClient interface {
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// signer is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/provider parameters to update.
	Params types.ConsumerParams `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

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

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

func (m *MsgUpdateParamsResponse) 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 UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams

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