types

package
v6.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 51 Imported by: 9

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeConsumerClientCreated     = "consumer_client_created"
	EventTypeAssignConsumerKey         = "assign_consumer_key"
	EventTypeChangeConsumerRewardDenom = "change_consumer_reward_denom"
	EventTypeExecuteConsumerChainSlash = "execute_consumer_chain_slash"
	EventTypeSetConsumerCommissionRate = "set_consumer_commission_rate"
	EventTypeOptIn                     = "opt_in"
	EventTypeOptOut                    = "opt_out"
	EventTypeCreateConsumer            = "create_consumer"
	EventTypeUpdateConsumer            = "update_consumer"
	EventTypeRemoveConsumer            = "remove_consumer"
	EventTypeReceivedRewards           = "received_ics_rewards"
	EventTypeDistributedRewards        = "distributed_ics_rewards"

	AttributeInfractionHeight          = "infraction_height"
	AttributeInitialHeight             = "initial_height"
	AttributeTrustingPeriod            = "trusting_period"
	AttributeUnbondingPeriod           = "unbonding_period"
	AttributeValsetHash                = "valset_hash"
	AttributeProviderValidatorAddress  = "provider_validator_address"
	AttributeConsumerConsensusPubKey   = "consumer_consensus_pub_key"
	AttributeAddConsumerRewardDenom    = "add_consumer_reward_denom"
	AttributeRemoveConsumerRewardDenom = "remove_consumer_reward_denom"
	AttributeSubmitterAddress          = "submitter_address"
	AttributeConsumerCommissionRate    = "consumer_commission_rate"
	AttributeConsumerId                = "consumer_id"
	AttributeConsumerChainId           = "consumer_chain_id"
	AttributeConsumerName              = "consumer_name"
	AttributeConsumerOwner             = "consumer_owner"
	AttributeConsumerSpawnTime         = "consumer_spawn_time"
	AttributeConsumerPhase             = "consumer_phase"
	AttributeConsumerTopN              = "consumer_topn"
	AttributeRewardDenom               = "reward_denom"
	AttributeRewardAmount              = "reward_amount"
	AttributeRewardDistribution        = "reward_distribution"
	AttributeRewardTotal               = "total_rewards"
	AttributeRewardDistributed         = "distributed_rewards"
	AttributeRewardCommunityPool       = "community_pool_rewards"
)

Provider events

View Source
const (
	// ModuleName defines the CCV provider module name
	ModuleName = "provider"

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

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

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

	// Default validator set update ID
	DefaultValsetUpdateID = 1

	// This address receives rewards from consumer chains
	ConsumerRewardsPool = "consumer_rewards_pool"

	// MaxAllowlistedRewardDenomsPerChain corresponds to the maximum number of reward denoms
	// a consumer chain can allowlist
	MaxAllowlistedRewardDenomsPerChain = 3

	ParametersKeyName = "ParametersKey"

	PortKeyName = "PortKey"

	DeprecatedMaturedUnbondingOpsKeyName = "DeprecatedMaturedUnbondingOpsKey"

	ValidatorSetUpdateIdKeyName = "ValidatorSetUpdateIdKey"

	SlashMeterKeyName = "SlashMeterKey"

	SlashMeterReplenishTimeCandidateKeyName = "SlashMeterReplenishTimeCandidateKey"

	ConsumerIdToChannelIdKeyName = "ConsumerIdToChannelIdKey"

	ChannelIdToConsumerIdKeyName = "ChannelToConsumerIdKey"

	ConsumerIdToClientIdKeyName = "ConsumerIdToClientIdKey"

	DeprecatedInitTimeoutTimestampKeyName = "DeprecatedInitTimeoutTimestampKey"

	DeprecatedPendingCAPKeyName = "DeprecatedPendingCAPKey"

	DeprecatedPendingCRPKeyName = "DeprecatedPendingCRPKey"

	DeprecatedUnbondingOpKeyName = "DeprecatedUnbondingOpKey"

	DeprecatedUnbondingOpIndexKeyName = "DeprecatedUnbondingOpIndexKey"

	ValsetUpdateBlockHeightKeyName = "ValsetUpdateBlockHeightKey"

	ConsumerGenesisKeyName = "ConsumerGenesisKey"

	SlashAcksKeyName = "SlashAcksKey"

	InitChainHeightKeyName = "InitChainHeightKey"

	PendingVSCsKeyName = "PendingVSCsKey"

	DeprecatedVscSendTimestampKeyName = "DeprecatedVscSendTimestampKey"

	DeprecatedThrottledPacketDataSizeKeyName = "DeprecatedThrottledPacketDataSizeKey"

	DeprecatedThrottledPacketDataKeyName = "DeprecatedThrottledPacketDataKey"

	DeprecatedGlobalSlashEntryKeyName = "DeprecatedGlobalSlashEntryKey"

	ConsumerValidatorsKeyName = "ConsumerValidatorsKey"

	ValidatorsByConsumerAddrKeyName = "ValidatorsByConsumerAddrKey"

	DeprecatedKeyAssignmentReplacementsKeyName = "DeprecatedKeyAssignmentReplacementsKey"

	DeprecatedConsumerAddrsToPruneKeyName = "DeprecatedConsumerAddrsToPruneKey"

	SlashLogKeyName = "SlashLogKey"

	ConsumerRewardDenomsKeyName = "ConsumerRewardDenomsKey"

	DeprecatedVSCMaturedHandledThisBlockKeyName = "DeprecatedVSCMaturedHandledThisBlockKey"

	EquivocationEvidenceMinHeightKeyName = "EquivocationEvidenceMinHeightKey"

	DeprecatedProposedConsumerChainKeyName = "DeprecatedProposedConsumerChainKey"

	ConsumerValidatorKeyName = "ConsumerValidatorKey"

	OptedInKeyName = "OptedInKey"

	DeprecatedTopNKeyName = "DeprecatedTopNKey"

	DeprecatedValidatorsPowerCapKeyName = "DeprecatedValidatorsPowerCapKey"

	DeprecatedValidatorSetCapKeyName = "DeprecatedValidatorSetCapKey"

	AllowlistKeyName = "AllowlistKey"

	DenylistKeyName = "DenylistKey"

	DeprecatedConsumerRewardsAllocationKeyName = "DeprecatedConsumerRewardsAllocationKey"

	ConsumerCommissionRateKeyName = "ConsumerCommissionRateKey"

	MinimumPowerInTopNKeyName = "MinimumPowerInTopNKey"

	LastProviderConsensusValsKeyName = "LastProviderConsensusValsKey"

	ConsumerAddrsToPruneV2KeyName = "ConsumerAddrsToPruneV2Key"

	ConsumerIdKeyName = "ConsumerIdKey"

	ConsumerIdToChainIdKeyName = "ConsumerIdToChainIdKey"

	ConsumerIdToOwnerAddressKeyName = "ConsumerIdToOwnerAddress"

	ConsumerIdToConsumerMetadataKeyName = "ConsumerIdToMetadataKey"

	ConsumerIdToInitializationParametersKeyName = "ConsumerIdToInitializationParametersKey"

	ConsumerIdToPowerShapingParameters = "ConsumerIdToPowerShapingParametersKey"

	ConsumerIdToPhaseKeyName = "ConsumerIdToPhaseKey"

	ConsumerIdToRemovalTimeKeyName = "ConsumerIdToRemovalTimeKey"

	SpawnTimeToConsumerIdsKeyName = "SpawnTimeToConsumerIdsKeyName"

	RemovalTimeToConsumerIdsKeyName = "RemovalTimeToConsumerIdsKeyName"

	ClientIdToConsumerIdKeyName = "ClientIdToConsumerIdKey"

	ConsumerIdToAllowlistedRewardDenomKeyName = "ConsumerIdToAllowlistedRewardDenomKey"

	ConsumerRewardsAllocationByDenomKeyName = "ConsumerRewardsAllocationByDenomKey"
)
View Source
const (
	ProposalTypeConsumerAddition     = "ConsumerAddition"
	ProposalTypeConsumerRemoval      = "ConsumerRemoval"
	ProposalTypeConsumerModification = "ConsumerModification"
	ProposalTypeEquivocation         = "Equivocation"
	ProposalTypeChangeRewardDenoms   = "ChangeRewardDenoms"
)
View Source
const (
	// MaxNameLength defines the maximum consumer name length
	MaxNameLength = 50
	// MaxDescriptionLength defines the maximum consumer description length
	MaxDescriptionLength = 10000
	// MaxMetadataLength defines the maximum consumer metadata length
	MaxMetadataLength = 255
	// MaxHashLength defines the maximum length of a hash
	MaxHashLength = 64
	// MaxValidatorCount defines the maximum number of validators
	MaxValidatorCount = 1000
)
View Source
const (
	// DefaultMaxClockDrift defines how much new (untrusted) header's Time can drift into the future.
	// This default is only used in the default template client param.
	DefaultMaxClockDrift = 10 * time.Second

	// DefaultTrustingPeriodFraction is the default fraction used to compute TrustingPeriod
	// as UnbondingPeriod * TrustingPeriodFraction
	DefaultTrustingPeriodFraction = "0.66"

	// DefaultSlashMeterReplenishPeriod defines the default period for which the slash gas meter is replenished
	DefaultSlashMeterReplenishPeriod = time.Hour

	// DefaultSlashMeterReplenishFraction defines the default fraction of total voting power
	// that is replenished to the slash meter every replenish period. This param also serves as a maximum
	// fraction of total voting power that the slash meter can hold.
	DefaultSlashMeterReplenishFraction = "0.05"

	// DefaultBlocksPerEpoch defines the default blocks that constitute an epoch. Assuming we need 6 seconds per block,
	// an epoch corresponds to 1 hour (6 * 600 = 3600 seconds).
	// forcing int64 as the Params KeyTable expects an int64 and not int.
	DefaultBlocksPerEpoch = int64(600)

	// DefaultNumberOfEpochsToStartReceivingRewards defines the default minimum number of epochs required by a validator to validate
	// during so that the validator can start receiving rewards. This would mean that a validator has to be a consumer validator for at least
	// `DefaultNumberOfEpochsToStartReceivingRewards * DefaultBlocksPerEpoch` on a consumer chain to start receiving rewards from the chain.
	// Note that after a validator starts receiving rewards, the validator would keep receiving rewards every time the
	// consumer chain sends an IBC transfer over to the provider. This value only sets a constraint on when a validator
	// can first start receiving rewards to avoid cases where a validator just opts in to receive rewards and then opts out
	// immediately afterward.
	// Current default values for blocks per epoch corresponds to about 1 hour, so with 24 being the
	// minimum amount of epochs, this would imply that a validator has to validate at least for 1 day to receive rewards.
	DefaultNumberOfEpochsToStartReceivingRewards = int64(24)

	// DefaultMaxProviderConsensusValidators is the default maximum number of validators that will
	// be passed on from the staking module to the consensus engine on the provider.
	DefaultMaxProviderConsensusValidators = 180
)

Variables

View Source
var (
	ErrUnknownConsumerId                       = errorsmod.Register(ModuleName, 3, "no consumer chain with this consumer id")
	ErrUnknownConsumerChannelId                = errorsmod.Register(ModuleName, 4, "no consumer chain with this channel id")
	ErrConsumerKeyInUse                        = errorsmod.Register(ModuleName, 10, "consumer key is already in use by a validator")
	ErrCannotAssignDefaultKeyAssignment        = errorsmod.Register(ModuleName, 11, "cannot re-assign default key assignment")
	ErrInvalidConsumerRewardDenom              = errorsmod.Register(ModuleName, 14, "invalid consumer reward denom")
	ErrInvalidConsumerClient                   = errorsmod.Register(ModuleName, 16, "ccv channel is not built on correct client")
	ErrCannotOptOutFromTopN                    = errorsmod.Register(ModuleName, 20, "cannot opt out from a Top N chain")
	ErrNoUnbondingTime                         = errorsmod.Register(ModuleName, 23, "provider unbonding time not found")
	ErrUnauthorized                            = errorsmod.Register(ModuleName, 25, "unauthorized")
	ErrInvalidPhase                            = errorsmod.Register(ModuleName, 27, "cannot perform action in the current phase of consumer chain")
	ErrInvalidConsumerMetadata                 = errorsmod.Register(ModuleName, 28, "invalid consumer metadata")
	ErrInvalidPowerShapingParameters           = errorsmod.Register(ModuleName, 29, "invalid power shaping parameters")
	ErrInvalidConsumerInitializationParameters = errorsmod.Register(ModuleName, 30, "invalid consumer initialization parameters")
	ErrCannotUpdateMinimumPowerInTopN          = errorsmod.Register(ModuleName, 31, "cannot update minimum power in Top N")
	ErrNoConsumerGenesis                       = errorsmod.Register(ModuleName, 33, "missing consumer genesis")
	ErrInvalidConsumerGenesis                  = errorsmod.Register(ModuleName, 34, "invalid consumer genesis")
	ErrNoConsumerId                            = errorsmod.Register(ModuleName, 35, "missing consumer id")
	ErrAlreadyOptedIn                          = errorsmod.Register(ModuleName, 36, "already opted in to a chain with the same chain id")
	ErrNoOwnerAddress                          = errorsmod.Register(ModuleName, 37, "missing owner address")
	ErrInvalidNewOwnerAddress                  = errorsmod.Register(ModuleName, 38, "invalid new owner address")
	ErrInvalidTransformToTopN                  = errorsmod.Register(ModuleName, 39, "invalid transform to Top N chain")
	ErrInvalidTransformToOptIn                 = errorsmod.Register(ModuleName, 40, "invalid transform to Opt In chain")
	ErrCannotCreateTopNChain                   = errorsmod.Register(ModuleName, 41, "cannot create Top N chain outside permissionlessly")
	ErrInvalidRemovalTime                      = errorsmod.Register(ModuleName, 43, "invalid removal time")
	ErrInvalidMsgCreateConsumer                = errorsmod.Register(ModuleName, 44, "invalid create consumer message")
	ErrInvalidMsgUpdateConsumer                = errorsmod.Register(ModuleName, 45, "invalid update consumer message")
	ErrInvalidMsgAssignConsumerKey             = errorsmod.Register(ModuleName, 46, "invalid assign consumer key message")
	ErrInvalidMsgSubmitConsumerMisbehaviour    = errorsmod.Register(ModuleName, 47, "invalid submit consumer misbehaviour message")
	ErrInvalidMsgSubmitConsumerDoubleVoting    = errorsmod.Register(ModuleName, 48, "invalid submit consumer double voting message")
	ErrInvalidMsgOptIn                         = errorsmod.Register(ModuleName, 49, "invalid opt in message")
	ErrInvalidMsgOptOut                        = errorsmod.Register(ModuleName, 50, "invalid opt out message")
	ErrInvalidMsgSetConsumerCommissionRate     = errorsmod.Register(ModuleName, 51, "invalid set consumer commission rate message")
	ErrInvalidMsgChangeRewardDenoms            = errorsmod.Register(ModuleName, 52, "invalid change reward denoms message")
	ErrInvalidAllowlistedRewardDenoms          = errorsmod.Register(ModuleName, 53, "invalid allowlisted reward denoms")
)

Provider 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 (
	KeyTemplateClient                        = []byte("TemplateClient")
	KeyTrustingPeriodFraction                = []byte("TrustingPeriodFraction")
	KeySlashMeterReplenishPeriod             = []byte("SlashMeterReplenishPeriod")
	KeySlashMeterReplenishFraction           = []byte("SlashMeterReplenishFraction")
	KeyConsumerRewardDenomRegistrationFee    = []byte("ConsumerRewardDenomRegistrationFee")
	KeyBlocksPerEpoch                        = []byte("BlocksPerEpoch")
	KeyNumberOfEpochsToStartReceivingRewards = []byte("NumberOfEpochsToStartReceivingRewards")
	KeyMaxProviderConsensusValidators        = []byte("MaxProviderConsensusValidators")
)

Reflection based keys for params subspace Legacy: usage of x/params for parameters is deprecated. Use x/ccv/provider/keeper/params instead [DEPRECATED]

View Source
var (
	ErrInvalidLengthProvider        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowProvider          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupProvider = 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")
)
View Source
var ConsumerPhase_name = map[int32]string{
	0: "CONSUMER_PHASE_UNSPECIFIED",
	1: "CONSUMER_PHASE_REGISTERED",
	2: "CONSUMER_PHASE_INITIALIZED",
	3: "CONSUMER_PHASE_LAUNCHED",
	4: "CONSUMER_PHASE_STOPPED",
	5: "CONSUMER_PHASE_DELETED",
}
View Source
var ConsumerPhase_value = map[string]int32{
	"CONSUMER_PHASE_UNSPECIFIED": 0,
	"CONSUMER_PHASE_REGISTERED":  1,
	"CONSUMER_PHASE_INITIALIZED": 2,
	"CONSUMER_PHASE_LAUNCHED":    3,
	"CONSUMER_PHASE_STOPPED":     4,
	"CONSUMER_PHASE_DELETED":     5,
}
View Source
var (

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

Functions

func AllowlistKey

func AllowlistKey(consumerId string, providerAddr ProviderConsAddress) []byte

AllowlistKey returns the key for storing consumer chains allowlists

func AllowlistKeyPrefix

func AllowlistKeyPrefix() byte

AllowlistKeyPrefix returns the key prefix for storing consumer chains allowlists

func ChannelIdToConsumerIdKeyPrefix

func ChannelIdToConsumerIdKeyPrefix() []byte

ChannelIdToConsumerIdKeyPrefix returns the key prefix for storing the consumer chain ids.

func ChannelToConsumerIdKey

func ChannelToConsumerIdKey(channelId string) []byte

ChannelToConsumerIdKey returns the key under which the consumer chain id will be stored for the given channelId.

func ClientIdToConsumerIdKey

func ClientIdToConsumerIdKey(clientId string) []byte

ClientIdToConsumerIdKey returns the consumer id that corresponds to this client id

func ConsumerAddrsToPruneV2Key

func ConsumerAddrsToPruneV2Key(consumerId string, pruneTs time.Time) []byte

ConsumerAddrsToPruneV2Key returns the key for storing the consumer validators addresses that need to be pruned.

func ConsumerAddrsToPruneV2KeyPrefix

func ConsumerAddrsToPruneV2KeyPrefix() byte

ConsumerAddrsToPruneV2KeyPrefix returns the key prefix for storing the consumer validators addresses that need to be pruned. These are stored as a (chainID, ts) -> (consumer_address1, consumer_address2, ...) mapping, where ts is the timestamp at which the consumer validators addresses can be pruned.

func ConsumerCommissionRateKey

func ConsumerCommissionRateKey(consumerId string, providerAddr ProviderConsAddress) []byte

ConsumerCommissionRateKey returns the key used to store the commission rate per validator per consumer chain.

func ConsumerCommissionRateKeyPrefix

func ConsumerCommissionRateKeyPrefix() byte

ConsumerCommissionRateKeyPrefix returns the key prefix for storing the commission rate per validator per consumer chain.

func ConsumerGenesisKey

func ConsumerGenesisKey(consumerId string) []byte

ConsumerGenesisKey returns the key corresponding to consumer genesis state material (consensus state and client state) indexed by consumer id

func ConsumerIdKey

func ConsumerIdKey() []byte

ConsumerIdKey returns the key used to store the consumerId of the next registered chain

func ConsumerIdToAllowlistedRewardDenomKey added in v6.2.0

func ConsumerIdToAllowlistedRewardDenomKey(consumerId string) []byte

ConsumerIdToAllowlistedRewardDenomKey returns the key used to store the allowlisted reward denom that corresponds to this consumer id

func ConsumerIdToAllowlistedRewardDenomKeyPrefix added in v6.2.0

func ConsumerIdToAllowlistedRewardDenomKeyPrefix() byte

ConsumerIdToAllowlistedRewardDenomKeyPrefix returns the key prefix for storing the allowlisted reward denom that corresponds to this consumer id

func ConsumerIdToChainIdKey

func ConsumerIdToChainIdKey(consumerId string) []byte

ConsumerIdToChainIdKey returns the key used to store the chain id of this consumer id

func ConsumerIdToChannelIdKey

func ConsumerIdToChannelIdKey(consumerId string) []byte

ConsumerIdToChannelIdKey returns the key under which the CCV channel ID will be stored for the given consumer chain.

func ConsumerIdToClientIdKey

func ConsumerIdToClientIdKey(consumerId string) []byte

ConsumerIdToClientIdKey returns the key under which the clientId for the given consumerId is stored.

func ConsumerIdToClientIdKeyPrefix

func ConsumerIdToClientIdKeyPrefix() []byte

ConsumerIdToClientIdKeyPrefix returns the key prefix for storing the clientId for the given consumerId.

func ConsumerIdToInitializationParametersKey

func ConsumerIdToInitializationParametersKey(consumerId string) []byte

ConsumerIdToInitializationParametersKey returns the key used to store the initialization parameters that corresponds to this consumer id

func ConsumerIdToInitializationParametersKeyPrefix

func ConsumerIdToInitializationParametersKeyPrefix() byte

ConsumerIdToInitializationParametersKeyPrefix returns the key prefix for storing consumer initialization parameters

func ConsumerIdToMetadataKey

func ConsumerIdToMetadataKey(consumerId string) []byte

ConsumerIdToMetadataKey returns the key used to store the metadata that corresponds to this consumer id

func ConsumerIdToMetadataKeyPrefix

func ConsumerIdToMetadataKeyPrefix() byte

ConsumerIdToMetadataKeyPrefix returns the key prefix for storing consumer metadata

func ConsumerIdToOwnerAddressKey

func ConsumerIdToOwnerAddressKey(consumerId string) []byte

ConsumerIdToOwnerAddressKey returns the owner address of this consumer id

func ConsumerIdToPhaseKey

func ConsumerIdToPhaseKey(consumerId string) []byte

ConsumerIdToPhaseKey returns the key used to store the phase that corresponds to this consumer id

func ConsumerIdToPhaseKeyPrefix

func ConsumerIdToPhaseKeyPrefix() byte

ConsumerIdToPhaseKeyPrefix returns the key prefix used to iterate over all the consumer ids and their phases.

func ConsumerIdToPowerShapingParametersKey

func ConsumerIdToPowerShapingParametersKey(consumerId string) []byte

ConsumerIdToPowerShapingParametersKey returns the key used to store the power-shaping parameters that corresponds to this consumer id

func ConsumerIdToRemovalTimeKey

func ConsumerIdToRemovalTimeKey(consumerId string) []byte

ConsumerIdToRemovalTimeKey returns the key used to store the removal time that corresponds to a to-be-removed chain with consumer id

func ConsumerIdToRemovalTimeKeyPrefix

func ConsumerIdToRemovalTimeKeyPrefix() byte

ConsumerIdToRemovalTimeKeyPrefix returns the key prefix for storing the removal times of consumer chains that are about to be removed

func ConsumerRewardDenomsKey

func ConsumerRewardDenomsKey(denom string) []byte

ConsumerRewardDenomsKey returns the key for storing consumer reward denoms

func ConsumerRewardDenomsKeyPrefix

func ConsumerRewardDenomsKeyPrefix() []byte

ConsumerRewardDenomsKeyPrefix returns the key prefix for storing consumer reward denoms

func ConsumerRewardsAllocationByDenomKey added in v6.2.0

func ConsumerRewardsAllocationByDenomKey(consumerId string, denom string) []byte

ConsumerRewardsAllocationByDenomKey returns the key used to store the ICS rewards per consumer chain

func ConsumerRewardsAllocationByDenomKeyPrefix added in v6.2.0

func ConsumerRewardsAllocationByDenomKeyPrefix() byte

ConsumerRewardsAllocationByDenomKeyPrefix returns the key prefix for storing the allowlisted reward denom that corresponds to this consumer id

func ConsumerValidatorKey

func ConsumerValidatorKey(consumerId string, providerAddr []byte) []byte

ConsumerValidatorKey returns the key for storing consumer validators for the given consumer chain `consumerId` and validator with `providerAddr`

func ConsumerValidatorKeyPrefix

func ConsumerValidatorKeyPrefix() byte

ConsumerValidatorKeyPrefix returns the key prefix for storing consumer validators

func ConsumerValidatorsKey

func ConsumerValidatorsKey(consumerId string, addr ProviderConsAddress) []byte

ConsumerValidatorsKey returns the key under which the validator assigned keys for every consumer chain are stored

func ConsumerValidatorsKeyPrefix

func ConsumerValidatorsKeyPrefix() byte

ConsumerValidatorsKey returns the key for storing the validator assigned keys for every consumer chain

func DenylistKey

func DenylistKey(consumerId string, providerAddr ProviderConsAddress) []byte

DenylistKey returns the key for storing consumer chains denylists

func DenylistKeyPrefix

func DenylistKeyPrefix() byte

DenylistKeyPrefix returns the key prefix for storing consumer chains denylists

func EquivocationEvidenceMinHeightKey

func EquivocationEvidenceMinHeightKey(consumerId string) []byte

EquivocationEvidenceMinHeightKey returns the key storing the minimum height of a valid consumer equivocation evidence for a given consumer id

func GetAllKeyNames

func GetAllKeyNames() []string

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

func GetAllKeyPrefixes

func GetAllKeyPrefixes() []byte

GetAllKeyPrefixes returns all the key prefixes. Only used for testing

func InitChainHeightKey

func InitChainHeightKey(consumerId string) []byte

InitChainHeightKey returns the key under which the block height for a given consumer id is stored

func KeyAssignmentValidateBasic

func KeyAssignmentValidateBasic(
	assignedKeys []ValidatorConsumerPubKey,
	byConsumerAddrs []ValidatorByConsumerAddr,
	consumerAddrsToPrune []ConsumerAddrsToPruneV2,
) error

KeyAssignmentValidateBasic validates all the genesis state for key assignment This is a utility. Key Assignment does not define any new proto types, but has a lot of nested data.

func LastProviderConsensusValsPrefix

func LastProviderConsensusValsPrefix() []byte

LastProviderConsensusValsPrefix returns the key prefix for storing the last validator set sent to the consensus engine of the provider chain

func MinimumPowerInTopNKey

func MinimumPowerInTopNKey(consumerId string) []byte

func NewChangeRewardDenomsProposal

func NewChangeRewardDenomsProposal(title, description string,
	denomsToAdd, denomsToRemove []string,
) govv1beta1.Content

func NewConsumerAdditionProposal

func NewConsumerAdditionProposal(title, description, chainID string,
	initialHeight clienttypes.Height, genesisHash, binaryHash []byte,
	spawnTime time.Time,
	consumerRedistributionFraction string,
	blocksPerDistributionTransmission int64,
	distributionTransmissionChannel string,
	historicalEntries int64,
	ccvTimeoutPeriod time.Duration,
	transferTimeoutPeriod time.Duration,
	unbondingPeriod time.Duration,
	topN uint32,
	validatorsPowerCap uint32,
	validatorSetCap uint32,
	allowlist []string,
	denylist []string,
	minStake uint64,
	allowInactiveVals bool,
) govv1beta1.Content

NewConsumerAdditionProposal creates a new consumer addition proposal.

func NewConsumerModificationProposal

func NewConsumerModificationProposal(title, description, chainID string,
	topN uint32,
	validatorsPowerCap uint32,
	validatorSetCap uint32,
	allowlist []string,
	denylist []string,
	minStake uint64,
	allowInactiveVals bool,
) govv1beta1.Content

NewConsumerModificationProposal creates a new consumer modification proposal.

func NewConsumerRemovalProposal

func NewConsumerRemovalProposal(title, description, chainID string, stopTime time.Time) govv1beta1.Content

NewConsumerRemovalProposal creates a new consumer removal proposal.

func NewEquivocationProposal

func NewEquivocationProposal(title, description string, equivocations []*evidencetypes.Equivocation) govv1beta1.Content

NewEquivocationProposal creates a new equivocation proposal. [DEPRECATED]: do not use because equivocations can be submitted and verified automatically on the provider.

func OptedInKey

func OptedInKey(consumerId string, providerAddr ProviderConsAddress) []byte

OptedInKey returns the key used to store whether a validator is opted in on a consumer chain.

func OptedInKeyPrefix

func OptedInKeyPrefix() byte

OptedInKeyPrefix returns the key prefix for storing whether a validator is opted in on a consumer chain.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns a key table with the necessary registered provider params

func ParametersKey

func ParametersKey() []byte

ParametersKey returns the key for the parameters of the provider module in the store

func ParseConsumerKeyFromJson

func ParseConsumerKeyFromJson(jsonStr string) (pkType, key string, err error)

ParseConsumerKeyFromJson parses the consumer key from a JSON string, this replaces deserializing a protobuf any.

func ParseStringIdAndConsAddrKey

func ParseStringIdAndConsAddrKey(prefix byte, bz []byte) (string, sdk.ConsAddress, error)

ParseStringIdAndConsAddrKey returns the string ID and ConsAddress for a StringIdAndConsAddr key

func ParseStringIdAndTsKey

func ParseStringIdAndTsKey(prefix byte, bz []byte) (string, time.Time, error)

ParseStringIdAndTsKey returns the string id and time for a StringIdAndTs key

func ParseStringIdAndUintIdKey

func ParseStringIdAndUintIdKey(prefix byte, bz []byte) (string, uint64, error)

ParseStringIdAndUintIdKey returns the string ID and uint ID for a StringIdAndUintId key

func ParseStringIdWithLenKey

func ParseStringIdWithLenKey(prefix byte, bz []byte) (string, error)

ParseStringIdWithLenKey returns the stringId of a StringIdWithLen key

func ParseTime

func ParseTime(prefix byte, bz []byte) (time.Time, error)

ParseTime returns the marshalled time

func PendingVSCsKey

func PendingVSCsKey(consumerId string) []byte

PendingVSCsKey returns the key under which pending ValidatorSetChangePacket data is stored for a given consumer id

func PortKey

func PortKey() []byte

PortKey returns the key to the port ID in the store

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the provider proposal structs to the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 RemovalTimeToConsumerIdsKey

func RemovalTimeToConsumerIdsKey(removalTime time.Time) []byte

RemovalTimeToConsumerIdsKey returns the key prefix for storing the removal times of consumer chains that are about to be removed

func RemovalTimeToConsumerIdsKeyPrefix

func RemovalTimeToConsumerIdsKeyPrefix() byte

RemovalTimeToConsumerIdsKeyPrefix returns the key prefix for storing pending chains that are to be removed

func SlashAcksKey

func SlashAcksKey(consumerId string) []byte

SlashAcksKey returns the key under which slashing acks are stored for a given consumer id

func SlashLogKey

func SlashLogKey(providerAddr ProviderConsAddress) []byte

SlashLogKey returns the key to a validator's slash log

func SlashMeterKey

func SlashMeterKey() []byte

SlashMeterKey returns the key storing the slash meter

func SlashMeterReplenishTimeCandidateKey

func SlashMeterReplenishTimeCandidateKey() []byte

SlashMeterReplenishTimeCandidateKey returns the key storing the slash meter replenish time candidate

func SpawnTimeToConsumerIdsKey

func SpawnTimeToConsumerIdsKey(spawnTime time.Time) []byte

SpawnTimeToConsumerIdsKey returns the key prefix for storing the spawn times of consumer chains that are about to be launched

func SpawnTimeToConsumerIdsKeyPrefix

func SpawnTimeToConsumerIdsKeyPrefix() byte

SpawnTimeToConsumerIdsKeyPrefix returns the key prefix for storing pending chains that are to be launched

func StringIdAndConsAddrKey

func StringIdAndConsAddrKey(prefix byte, stringId string, addr sdk.ConsAddress) []byte

StringIdAndConsAddrKey returns the key with the following format: bytePrefix | len(stringId) | stringId | ConsAddress

func StringIdAndTsKey

func StringIdAndTsKey(prefix byte, stringId string, timestamp time.Time) []byte

StringIdAndTsKey returns the key with the following format: bytePrefix | len(stringId) | stringId | timestamp

func StringIdAndUintIdKey

func StringIdAndUintIdKey(prefix byte, stringId string, uintId uint64) []byte

StringIdAndUintIdKey returns the key with the following format: bytePrefix | len(stringId) | stringId | uint64(ID)

func StringIdWithLenKey

func StringIdWithLenKey(prefix byte, stringId string) []byte

StringIdWithLenKey returns the key with the following format: bytePrefix | len(stringId) | stringId

func TruncateString

func TruncateString(str string, maxLength int) string

TruncateString truncates a string to maximum length characters

func ValidateAllowlistedRewardDenoms added in v6.2.0

func ValidateAllowlistedRewardDenoms(allowlistedRewardDenoms AllowlistedRewardDenoms) error

ValidateAllowlistedRewardDenoms validates the provided allowlisted reward denoms

func ValidateByteSlice

func ValidateByteSlice(hash []byte, maxLength int) error

func ValidateCoin

func ValidateCoin(i interface{}) error

func ValidateConsAddressList

func ValidateConsAddressList(list []string, maxLength int) error

ValidateConsAddressList validates a list of consensus addresses

func ValidateConsumerMetadata

func ValidateConsumerMetadata(metadata ConsumerMetadata) error

ValidateConsumerMetadata validates that all the provided metadata are in the expected range

func ValidateHeaderForConsumerDoubleVoting

func ValidateHeaderForConsumerDoubleVoting(header *ibctmtypes.Header) error

ValidateHeaderForConsumerDoubleVoting validates Tendermint light client header for consumer double voting evidence.

TODO create unit test

func ValidateInitialHeight added in v6.3.0

func ValidateInitialHeight(initialHeight clienttypes.Height, chainID string) error

func ValidateInitializationParameters

func ValidateInitializationParameters(initializationParameters ConsumerInitializationParameters) error

ValidateInitializationParameters validates that all the provided parameters are in the expected range

func ValidatePowerShapingParameters

func ValidatePowerShapingParameters(powerShapingParameters PowerShapingParameters) error

ValidatePowerShapingParameters validates that all the provided power-shaping parameters are in the expected range

func ValidateStringField

func ValidateStringField(nameOfTheField, field string, maxLength int) error

ValidateStringField validates that a string `field` satisfies the following properties:

  • is not empty
  • has at most `maxLength` characters

func ValidateTemplateClient

func ValidateTemplateClient(i interface{}) error

func ValidatorSetUpdateIdKey

func ValidatorSetUpdateIdKey() []byte

ValidatorSetUpdateIdKey is the key that stores the current validator set update id

func ValidatorsByConsumerAddrKey

func ValidatorsByConsumerAddrKey(consumerId string, addr ConsumerConsAddress) []byte

ValidatorsByConsumerAddrKey returns the key for storing the mapping from validator addresses on consumer chains to validator addresses on the provider chain

func ValidatorsByConsumerAddrKeyPrefix

func ValidatorsByConsumerAddrKeyPrefix() byte

ValidatorsByConsumerAddrKeyPrefix returns the key prefix for storing the mapping from validator addresses on consumer chains to validator addresses on the provider chain

func ValsetUpdateBlockHeightKey

func ValsetUpdateBlockHeightKey(valsetUpdateId uint64) []byte

ValsetUpdateBlockHeightKey returns the key that storing the mapping from valset update ID to block height

func ValsetUpdateBlockHeightKeyPrefix

func ValsetUpdateBlockHeightKeyPrefix() []byte

ValsetUpdateBlockHeightKeyPrefix returns the key prefix that storing the mapping from valset update ID to block height

Types

type AddressList

type AddressList struct {
	Addresses [][]byte `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

AddressList contains a list of consensus addresses

func (*AddressList) Descriptor

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

func (*AddressList) GetAddresses

func (m *AddressList) GetAddresses() [][]byte

func (*AddressList) Marshal

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

func (*AddressList) MarshalTo

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

func (*AddressList) MarshalToSizedBuffer

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

func (*AddressList) ProtoMessage

func (*AddressList) ProtoMessage()

func (*AddressList) Reset

func (m *AddressList) Reset()

func (*AddressList) Size

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

func (*AddressList) String

func (m *AddressList) String() string

func (*AddressList) Unmarshal

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

func (*AddressList) XXX_DiscardUnknown

func (m *AddressList) XXX_DiscardUnknown()

func (*AddressList) XXX_Marshal

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

func (*AddressList) XXX_Merge

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

func (*AddressList) XXX_Size

func (m *AddressList) XXX_Size() int

func (*AddressList) XXX_Unmarshal

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

type AllowlistedRewardDenoms added in v6.2.0

type AllowlistedRewardDenoms struct {
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

AllowlistedRewardDenoms corresponds to the denoms allowlisted by a specific consumer id

func (*AllowlistedRewardDenoms) Descriptor added in v6.2.0

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

func (*AllowlistedRewardDenoms) GetDenoms added in v6.2.0

func (m *AllowlistedRewardDenoms) GetDenoms() []string

func (*AllowlistedRewardDenoms) Marshal added in v6.2.0

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

func (*AllowlistedRewardDenoms) MarshalTo added in v6.2.0

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

func (*AllowlistedRewardDenoms) MarshalToSizedBuffer added in v6.2.0

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

func (*AllowlistedRewardDenoms) ProtoMessage added in v6.2.0

func (*AllowlistedRewardDenoms) ProtoMessage()

func (*AllowlistedRewardDenoms) Reset added in v6.2.0

func (m *AllowlistedRewardDenoms) Reset()

func (*AllowlistedRewardDenoms) Size added in v6.2.0

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

func (*AllowlistedRewardDenoms) String added in v6.2.0

func (m *AllowlistedRewardDenoms) String() string

func (*AllowlistedRewardDenoms) Unmarshal added in v6.2.0

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

func (*AllowlistedRewardDenoms) XXX_DiscardUnknown added in v6.2.0

func (m *AllowlistedRewardDenoms) XXX_DiscardUnknown()

func (*AllowlistedRewardDenoms) XXX_Marshal added in v6.2.0

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

func (*AllowlistedRewardDenoms) XXX_Merge added in v6.2.0

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

func (*AllowlistedRewardDenoms) XXX_Size added in v6.2.0

func (m *AllowlistedRewardDenoms) XXX_Size() int

func (*AllowlistedRewardDenoms) XXX_Unmarshal added in v6.2.0

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

type Chain

type Chain struct {
	ChainId  string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ClientId string `protobuf:"bytes,2,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	Top_N    uint32 `protobuf:"varint,3,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// If the chain is a Top-N chain, this is the minimum power required to be in the top N.
	// Otherwise, this is -1.
	MinPowerInTop_N int64 `protobuf:"varint,4,opt,name=min_power_in_top_N,json=minPowerInTopN,proto3" json:"min_power_in_top_N,omitempty"`
	// Corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain.
	ValidatorsPowerCap uint32 `protobuf:"varint,5,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,6,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate
	// the consumer chain.
	Allowlist []string `protobuf:"bytes,7,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain.
	Denylist []string `protobuf:"bytes,8,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// The phase the consumer chain
	Phase string `protobuf:"bytes,9,opt,name=phase,proto3" json:"phase,omitempty"`
	// The metadata of the consumer chain
	Metadata ConsumerMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,11,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool   `protobuf:"varint,12,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
	ConsumerId        string `protobuf:"bytes,13,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
	// the reward denoms allowlisted by this consumer chain
	AllowlistedRewardDenoms *AllowlistedRewardDenoms `` /* 133-byte string literal not displayed */
}

func (*Chain) Descriptor

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

func (*Chain) GetAllowInactiveVals

func (m *Chain) GetAllowInactiveVals() bool

func (*Chain) GetAllowlist

func (m *Chain) GetAllowlist() []string

func (*Chain) GetAllowlistedRewardDenoms added in v6.2.0

func (m *Chain) GetAllowlistedRewardDenoms() *AllowlistedRewardDenoms

func (*Chain) GetChainId

func (m *Chain) GetChainId() string

func (*Chain) GetClientId

func (m *Chain) GetClientId() string

func (*Chain) GetConsumerId

func (m *Chain) GetConsumerId() string

func (*Chain) GetDenylist

func (m *Chain) GetDenylist() []string

func (*Chain) GetMetadata

func (m *Chain) GetMetadata() ConsumerMetadata

func (*Chain) GetMinPowerInTop_N

func (m *Chain) GetMinPowerInTop_N() int64

func (*Chain) GetMinStake

func (m *Chain) GetMinStake() uint64

func (*Chain) GetPhase

func (m *Chain) GetPhase() string

func (*Chain) GetTop_N

func (m *Chain) GetTop_N() uint32

func (*Chain) GetValidatorSetCap

func (m *Chain) GetValidatorSetCap() uint32

func (*Chain) GetValidatorsPowerCap

func (m *Chain) GetValidatorsPowerCap() uint32

func (*Chain) Marshal

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

func (*Chain) MarshalTo

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

func (*Chain) MarshalToSizedBuffer

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

func (*Chain) ProtoMessage

func (*Chain) ProtoMessage()

func (*Chain) Reset

func (m *Chain) Reset()

func (*Chain) Size

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

func (*Chain) String

func (m *Chain) String() string

func (*Chain) Unmarshal

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

func (*Chain) XXX_DiscardUnknown

func (m *Chain) XXX_DiscardUnknown()

func (*Chain) XXX_Marshal

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

func (*Chain) XXX_Merge

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

func (*Chain) XXX_Size

func (m *Chain) XXX_Size() int

func (*Chain) XXX_Unmarshal

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

type ChangeRewardDenomsProposal

type ChangeRewardDenomsProposal struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the list of consumer reward denoms to add
	DenomsToAdd []string `protobuf:"bytes,3,rep,name=denoms_to_add,json=denomsToAdd,proto3" json:"denoms_to_add,omitempty"`
	// the list of consumer reward denoms to remove
	DenomsToRemove []string `protobuf:"bytes,4,rep,name=denoms_to_remove,json=denomsToRemove,proto3" json:"denoms_to_remove,omitempty"`
}

ChangeRewardDenomsProposal is a governance proposal on the provider chain to mutate the set of denoms accepted by the provider as rewards. Use MsgChangeRewardDenoms to submit this proposal type.

func (*ChangeRewardDenomsProposal) Descriptor

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

func (*ChangeRewardDenomsProposal) GetDenomsToAdd

func (m *ChangeRewardDenomsProposal) GetDenomsToAdd() []string

func (*ChangeRewardDenomsProposal) GetDenomsToRemove

func (m *ChangeRewardDenomsProposal) GetDenomsToRemove() []string

func (*ChangeRewardDenomsProposal) GetDescription

func (m *ChangeRewardDenomsProposal) GetDescription() string

func (*ChangeRewardDenomsProposal) GetTitle

func (m *ChangeRewardDenomsProposal) GetTitle() string

func (*ChangeRewardDenomsProposal) Marshal

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

func (*ChangeRewardDenomsProposal) MarshalTo

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

func (*ChangeRewardDenomsProposal) MarshalToSizedBuffer

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

func (*ChangeRewardDenomsProposal) ProposalRoute

func (crdp *ChangeRewardDenomsProposal) ProposalRoute() string

ProposalRoute returns the routing key of a change reward denoms proposal.

func (*ChangeRewardDenomsProposal) ProposalType

func (crdp *ChangeRewardDenomsProposal) ProposalType() string

ProposalType returns the type of a change reward denoms proposal.

func (*ChangeRewardDenomsProposal) ProtoMessage

func (*ChangeRewardDenomsProposal) ProtoMessage()

func (*ChangeRewardDenomsProposal) Reset

func (m *ChangeRewardDenomsProposal) Reset()

func (*ChangeRewardDenomsProposal) Size

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

func (*ChangeRewardDenomsProposal) String

func (m *ChangeRewardDenomsProposal) String() string

func (*ChangeRewardDenomsProposal) Unmarshal

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

func (*ChangeRewardDenomsProposal) ValidateBasic

func (crdp *ChangeRewardDenomsProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks on a ChangeRewardDenomsProposal.

func (*ChangeRewardDenomsProposal) XXX_DiscardUnknown

func (m *ChangeRewardDenomsProposal) XXX_DiscardUnknown()

func (*ChangeRewardDenomsProposal) XXX_Marshal

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

func (*ChangeRewardDenomsProposal) XXX_Merge

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

func (*ChangeRewardDenomsProposal) XXX_Size

func (m *ChangeRewardDenomsProposal) XXX_Size() int

func (*ChangeRewardDenomsProposal) XXX_Unmarshal

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

type ChannelToChain deprecated

type ChannelToChain struct {
	ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	ChainId   string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

WARNING: This message is deprecated and is not used. ChannelToChain is used to map a CCV channel ID to the consumer chainID

Deprecated: Do not use.

func (*ChannelToChain) Descriptor

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

func (*ChannelToChain) GetChainId

func (m *ChannelToChain) GetChainId() string

func (*ChannelToChain) GetChannelId

func (m *ChannelToChain) GetChannelId() string

func (*ChannelToChain) Marshal

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

func (*ChannelToChain) MarshalTo

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

func (*ChannelToChain) MarshalToSizedBuffer

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

func (*ChannelToChain) ProtoMessage

func (*ChannelToChain) ProtoMessage()

func (*ChannelToChain) Reset

func (m *ChannelToChain) Reset()

func (*ChannelToChain) Size

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

func (*ChannelToChain) String

func (m *ChannelToChain) String() string

func (*ChannelToChain) Unmarshal

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

func (*ChannelToChain) XXX_DiscardUnknown

func (m *ChannelToChain) XXX_DiscardUnknown()

func (*ChannelToChain) XXX_Marshal

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

func (*ChannelToChain) XXX_Merge

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

func (*ChannelToChain) XXX_Size

func (m *ChannelToChain) XXX_Size() int

func (*ChannelToChain) XXX_Unmarshal

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

type ConsensusValidator

type ConsensusValidator struct {
	// validator's consensus address on the provider chain
	ProviderConsAddr []byte `protobuf:"bytes,1,opt,name=provider_cons_addr,json=providerConsAddr,proto3" json:"provider_cons_addr,omitempty"`
	// voting power the validator has during this epoch
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// public key the validator uses on the consumer chain during this epoch
	PublicKey *crypto.PublicKey `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	// height the validator had when it FIRST became a consumer validator
	// If a validator becomes a consumer validator at height `H` and is continuously a consumer validator for all the upcoming
	// epochs, then the height of the validator SHOULD remain `H`. This height only resets to a different height if a validator
	// stops being a consumer validator during an epoch and later becomes again a consumer validator.
	JoinHeight int64 `protobuf:"varint,4,opt,name=join_height,json=joinHeight,proto3" json:"join_height,omitempty"`
}

ConsensusValidator is used to express a validator that should be validating on a chain. It contains relevant info for a validator that is expected to validate on either the provider or a consumer chain.

func (*ConsensusValidator) Descriptor

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

func (*ConsensusValidator) GetJoinHeight

func (m *ConsensusValidator) GetJoinHeight() int64

func (*ConsensusValidator) GetPower

func (m *ConsensusValidator) GetPower() int64

func (*ConsensusValidator) GetProviderConsAddr

func (m *ConsensusValidator) GetProviderConsAddr() []byte

func (*ConsensusValidator) GetPublicKey

func (m *ConsensusValidator) GetPublicKey() *crypto.PublicKey

func (*ConsensusValidator) Marshal

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

func (*ConsensusValidator) MarshalTo

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

func (*ConsensusValidator) MarshalToSizedBuffer

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

func (*ConsensusValidator) ProtoMessage

func (*ConsensusValidator) ProtoMessage()

func (*ConsensusValidator) Reset

func (m *ConsensusValidator) Reset()

func (*ConsensusValidator) Size

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

func (*ConsensusValidator) String

func (m *ConsensusValidator) String() string

func (*ConsensusValidator) Unmarshal

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

func (*ConsensusValidator) XXX_DiscardUnknown

func (m *ConsensusValidator) XXX_DiscardUnknown()

func (*ConsensusValidator) XXX_Marshal

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

func (*ConsensusValidator) XXX_Merge

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

func (*ConsensusValidator) XXX_Size

func (m *ConsensusValidator) XXX_Size() int

func (*ConsensusValidator) XXX_Unmarshal

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

type ConsumerAdditionProposal deprecated

type ConsumerAdditionProposal struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the proposed chain-id of the new consumer chain, must be different from all
	// other consumer chain ids of the executing provider chain.
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// the proposed initial height of new consumer chain.
	// For a completely new chain, this will be {0,1}. However, it may be
	// different if this is a chain that is converting to a consumer chain.
	InitialHeight types.Height `protobuf:"bytes,4,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height"`
	// The hash of the consumer chain genesis state without the consumer CCV
	// module genesis params. It is used for off-chain confirmation of
	// genesis.json validity by validators and other parties.
	GenesisHash []byte `protobuf:"bytes,5,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"`
	// The hash of the consumer chain binary that should be run by validators on
	// chain initialization. It is used for off-chain confirmation of binary
	// validity by validators and other parties.
	BinaryHash []byte `protobuf:"bytes,6,opt,name=binary_hash,json=binaryHash,proto3" json:"binary_hash,omitempty"`
	// spawn time is the time on the provider chain at which the consumer chain
	// genesis is finalized and all validators will be responsible for starting
	// their consumer chain validator node.
	SpawnTime time.Time `protobuf:"bytes,7,opt,name=spawn_time,json=spawnTime,proto3,stdtime" json:"spawn_time"`
	// Unbonding period for the consumer,
	// which should be smaller than that of the provider in general.
	UnbondingPeriod time.Duration `protobuf:"bytes,8,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"`
	// Sent CCV related IBC packets will timeout after this duration
	CcvTimeoutPeriod time.Duration `protobuf:"bytes,9,opt,name=ccv_timeout_period,json=ccvTimeoutPeriod,proto3,stdduration" json:"ccv_timeout_period"`
	// Sent transfer related IBC packets will timeout after this duration
	TransferTimeoutPeriod time.Duration `` /* 129-byte string literal not displayed */
	// The fraction of tokens allocated to the consumer redistribution address
	// during distribution events. The fraction is a string representing a
	// decimal number. For example "0.75" would represent 75%.
	ConsumerRedistributionFraction string `` /* 154-byte string literal not displayed */
	// BlocksPerDistributionTransmission is the number of blocks between
	// ibc-token-transfers from the consumer chain to the provider chain. On
	// sending transmission event, `consumer_redistribution_fraction` of the
	// accumulated tokens are sent to the consumer redistribution address.
	BlocksPerDistributionTransmission int64 `` /* 166-byte string literal not displayed */
	// The number of historical info entries to persist in store.
	// This param is a part of the cosmos sdk staking module. In the case of
	// a ccv enabled consumer chain, the ccv module acts as the staking module.
	HistoricalEntries int64 `protobuf:"varint,13,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// The ID of a token transfer channel used for the Reward Distribution
	// sub-protocol. If DistributionTransmissionChannel == "", a new transfer
	// channel is created on top of the same connection as the CCV channel.
	// Note that transfer_channel_id is the ID of the channel end on the consumer
	// chain. it is most relevant for chains performing a sovereign to consumer
	// changeover in order to maintain the existing ibc transfer channel
	DistributionTransmissionChannel string `` /* 157-byte string literal not displayed */
	// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
	// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
	// have to validate the proposed consumer chain. top_N can either be 0 or any value in [50, 100].
	// A chain can join with top_N == 0 as an Opt In chain, or with top_N ∈ [50, 100] as a Top N chain.
	Top_N uint32 `protobuf:"varint,15,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// Corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain. For instance, if
	// `validators_power_cap` is set to 32, it means that no validator can have more than 32% of the voting power on the
	// consumer chain. Note that this might not be feasible. For example, think of a consumer chain with only
	// 5 validators and with `validators_power_cap` set to 10%. In such a scenario, at least one validator would need
	// to have more than 20% of the total voting power. Therefore, `validators_power_cap` operates on a best-effort basis.
	ValidatorsPowerCap uint32 `protobuf:"varint,16,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,17,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate
	// the consumer chain.
	Allowlist []string `protobuf:"bytes,18,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain.
	Denylist []string `protobuf:"bytes,19,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,20,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool `protobuf:"varint,21,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
}

WARNING: This message is deprecated in favor of `MsgCreateConsumer`. ConsumerAdditionProposal is a governance proposal on the provider chain to spawn a new consumer chain. If it passes, then all validators on the provider chain are expected to validate the consumer chain at spawn time or get slashed. It is recommended that spawn time occurs after the proposal end time. Use MsgConsumerAddition to submit this proposal type.

Deprecated: Do not use.

func (*ConsumerAdditionProposal) Descriptor

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

func (*ConsumerAdditionProposal) GetDescription

func (cccp *ConsumerAdditionProposal) GetDescription() string

GetDescription returns the description of a consumer addition proposal.

func (*ConsumerAdditionProposal) GetTitle

func (cccp *ConsumerAdditionProposal) GetTitle() string

GetTitle returns the title of a consumer addition proposal.

func (*ConsumerAdditionProposal) Marshal

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

func (*ConsumerAdditionProposal) MarshalTo

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

func (*ConsumerAdditionProposal) MarshalToSizedBuffer

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

func (*ConsumerAdditionProposal) ProposalRoute

func (cccp *ConsumerAdditionProposal) ProposalRoute() string

ProposalRoute returns the routing key of a consumer addition proposal.

func (*ConsumerAdditionProposal) ProposalType

func (cccp *ConsumerAdditionProposal) ProposalType() string

ProposalType returns the type of a consumer addition proposal.

func (*ConsumerAdditionProposal) ProtoMessage

func (*ConsumerAdditionProposal) ProtoMessage()

func (*ConsumerAdditionProposal) Reset

func (m *ConsumerAdditionProposal) Reset()

func (*ConsumerAdditionProposal) Size

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

func (*ConsumerAdditionProposal) String

func (cccp *ConsumerAdditionProposal) String() string

String returns the string representation of the ConsumerAdditionProposal.

func (*ConsumerAdditionProposal) Unmarshal

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

func (*ConsumerAdditionProposal) ValidateBasic

func (cccp *ConsumerAdditionProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*ConsumerAdditionProposal) XXX_DiscardUnknown

func (m *ConsumerAdditionProposal) XXX_DiscardUnknown()

func (*ConsumerAdditionProposal) XXX_Marshal

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

func (*ConsumerAdditionProposal) XXX_Merge

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

func (*ConsumerAdditionProposal) XXX_Size

func (m *ConsumerAdditionProposal) XXX_Size() int

func (*ConsumerAdditionProposal) XXX_Unmarshal

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

type ConsumerAdditionProposals

type ConsumerAdditionProposals struct {
	// proposals waiting for spawn_time to pass
	Pending []*ConsumerAdditionProposal `protobuf:"bytes,1,rep,name=pending,proto3" json:"pending,omitempty"`
}

ConsumerAdditionProposals holds pending governance proposals on the provider chain to spawn a new chain.

func (*ConsumerAdditionProposals) Descriptor

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

func (*ConsumerAdditionProposals) GetPending

func (*ConsumerAdditionProposals) Marshal

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

func (*ConsumerAdditionProposals) MarshalTo

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

func (*ConsumerAdditionProposals) MarshalToSizedBuffer

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

func (*ConsumerAdditionProposals) ProtoMessage

func (*ConsumerAdditionProposals) ProtoMessage()

func (*ConsumerAdditionProposals) Reset

func (m *ConsumerAdditionProposals) Reset()

func (*ConsumerAdditionProposals) Size

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

func (*ConsumerAdditionProposals) String

func (m *ConsumerAdditionProposals) String() string

func (*ConsumerAdditionProposals) Unmarshal

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

func (*ConsumerAdditionProposals) XXX_DiscardUnknown

func (m *ConsumerAdditionProposals) XXX_DiscardUnknown()

func (*ConsumerAdditionProposals) XXX_Marshal

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

func (*ConsumerAdditionProposals) XXX_Merge

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

func (*ConsumerAdditionProposals) XXX_Size

func (m *ConsumerAdditionProposals) XXX_Size() int

func (*ConsumerAdditionProposals) XXX_Unmarshal

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

type ConsumerAddrsToPruneV2

type ConsumerAddrsToPruneV2 struct {
	ChainId       string       `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	PruneTs       time.Time    `protobuf:"bytes,2,opt,name=prune_ts,json=pruneTs,proto3,stdtime" json:"prune_ts"`
	ConsumerAddrs *AddressList `protobuf:"bytes,3,opt,name=consumer_addrs,json=consumerAddrs,proto3" json:"consumer_addrs,omitempty"`
}

Used to serialize the ConsumerAddrsToPruneV2 index from key assignment ConsumerAddrsToPruneV2: (chainID, pruneTs time.Time) -> consumerAddrs AddressList

func (*ConsumerAddrsToPruneV2) Descriptor

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

func (*ConsumerAddrsToPruneV2) GetChainId

func (m *ConsumerAddrsToPruneV2) GetChainId() string

func (*ConsumerAddrsToPruneV2) GetConsumerAddrs

func (m *ConsumerAddrsToPruneV2) GetConsumerAddrs() *AddressList

func (*ConsumerAddrsToPruneV2) GetPruneTs

func (m *ConsumerAddrsToPruneV2) GetPruneTs() time.Time

func (*ConsumerAddrsToPruneV2) Marshal

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

func (*ConsumerAddrsToPruneV2) MarshalTo

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

func (*ConsumerAddrsToPruneV2) MarshalToSizedBuffer

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

func (*ConsumerAddrsToPruneV2) ProtoMessage

func (*ConsumerAddrsToPruneV2) ProtoMessage()

func (*ConsumerAddrsToPruneV2) Reset

func (m *ConsumerAddrsToPruneV2) Reset()

func (*ConsumerAddrsToPruneV2) Size

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

func (*ConsumerAddrsToPruneV2) String

func (m *ConsumerAddrsToPruneV2) String() string

func (*ConsumerAddrsToPruneV2) Unmarshal

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

func (*ConsumerAddrsToPruneV2) XXX_DiscardUnknown

func (m *ConsumerAddrsToPruneV2) XXX_DiscardUnknown()

func (*ConsumerAddrsToPruneV2) XXX_Marshal

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

func (*ConsumerAddrsToPruneV2) XXX_Merge

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

func (*ConsumerAddrsToPruneV2) XXX_Size

func (m *ConsumerAddrsToPruneV2) XXX_Size() int

func (*ConsumerAddrsToPruneV2) XXX_Unmarshal

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

type ConsumerConsAddress

type ConsumerConsAddress struct {
	Address sdk.ConsAddress
}

A validator's assigned consensus address for a consumer chain. Note this type is for type safety within provider code, consumer code uses normal sdk.ConsAddress, since there's no notion of provider vs consumer address.

func NewConsumerConsAddress

func NewConsumerConsAddress(addr sdk.ConsAddress) ConsumerConsAddress

NewConsumerConsAddress creates a new ConsumerConsAddress, a validator's assigned consensus address for a consumer chain. Note this type is for type safety within provider code, consumer code uses normal sdk.ConsAddress, since there's no notion of provider vs consumer address.

func (*ConsumerConsAddress) String

func (c *ConsumerConsAddress) String() string

String implements the Stringer interface for ConsumerConsAddress, in the same format as sdk.ConsAddress

func (*ConsumerConsAddress) ToSdkConsAddr

func (c *ConsumerConsAddress) ToSdkConsAddr() sdk.ConsAddress

type ConsumerIds

type ConsumerIds struct {
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
}

ConsumerIds contains consumer ids of chains Used so we can easily (de)serialize slices of strings

func (*ConsumerIds) Descriptor

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

func (*ConsumerIds) GetIds

func (m *ConsumerIds) GetIds() []string

func (*ConsumerIds) Marshal

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

func (*ConsumerIds) MarshalTo

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

func (*ConsumerIds) MarshalToSizedBuffer

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

func (*ConsumerIds) ProtoMessage

func (*ConsumerIds) ProtoMessage()

func (*ConsumerIds) Reset

func (m *ConsumerIds) Reset()

func (*ConsumerIds) Size

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

func (*ConsumerIds) String

func (m *ConsumerIds) String() string

func (*ConsumerIds) Unmarshal

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

func (*ConsumerIds) XXX_DiscardUnknown

func (m *ConsumerIds) XXX_DiscardUnknown()

func (*ConsumerIds) XXX_Marshal

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

func (*ConsumerIds) XXX_Merge

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

func (*ConsumerIds) XXX_Size

func (m *ConsumerIds) XXX_Size() int

func (*ConsumerIds) XXX_Unmarshal

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

type ConsumerInitializationParameters

type ConsumerInitializationParameters struct {
	// the proposed initial height of new consumer chain.
	// For a completely new chain, this will be {0,1}. However, it may be
	// different if this is a chain that is converting to a consumer chain.
	InitialHeight types.Height `protobuf:"bytes,1,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height"`
	// The hash of the consumer chain genesis state without the consumer CCV
	// module genesis params. It is used for off-chain confirmation of
	// genesis.json validity by validators and other parties.
	GenesisHash []byte `protobuf:"bytes,2,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"`
	// The hash of the consumer chain binary that should be run by validators on
	// chain initialization. It is used for off-chain confirmation of binary
	// validity by validators and other parties.
	BinaryHash []byte `protobuf:"bytes,3,opt,name=binary_hash,json=binaryHash,proto3" json:"binary_hash,omitempty"`
	// spawn time is the time on the provider chain at which the consumer chain
	// genesis is finalized and all validators will be responsible for starting
	// their consumer chain validator node.
	SpawnTime time.Time `protobuf:"bytes,4,opt,name=spawn_time,json=spawnTime,proto3,stdtime" json:"spawn_time"`
	// Unbonding period for the consumer,
	// which should be smaller than that of the provider in general.
	UnbondingPeriod time.Duration `protobuf:"bytes,5,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"`
	// Sent CCV related IBC packets will timeout after this duration
	CcvTimeoutPeriod time.Duration `protobuf:"bytes,6,opt,name=ccv_timeout_period,json=ccvTimeoutPeriod,proto3,stdduration" json:"ccv_timeout_period"`
	// Sent transfer related IBC packets will timeout after this duration
	TransferTimeoutPeriod time.Duration `` /* 128-byte string literal not displayed */
	// The fraction of tokens allocated to the consumer redistribution address
	// during distribution events. The fraction is a string representing a
	// decimal number. For example "0.75" would represent 75%.
	ConsumerRedistributionFraction string `` /* 153-byte string literal not displayed */
	// BlocksPerDistributionTransmission is the number of blocks between
	// ibc-token-transfers from the consumer chain to the provider chain. On
	// sending transmission event, `consumer_redistribution_fraction` of the
	// accumulated tokens are sent to the consumer redistribution address.
	BlocksPerDistributionTransmission int64 `` /* 165-byte string literal not displayed */
	// The number of historical info entries to persist in store.
	// This param is a part of the cosmos sdk staking module. In the case of
	// a ccv enabled consumer chain, the ccv module acts as the staking module.
	HistoricalEntries int64 `protobuf:"varint,10,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// The ID of a token transfer channel used for the Reward Distribution
	// sub-protocol. If DistributionTransmissionChannel == "", a new transfer
	// channel is created on top of the same connection as the CCV channel.
	// Note that transfer_channel_id is the ID of the channel end on the consumer
	// chain. it is most relevant for chains performing a sovereign to consumer
	// changeover in order to maintain the existing ibc transfer channel
	DistributionTransmissionChannel string `` /* 157-byte string literal not displayed */
}

ConsumerInitializationParameters are the parameters needed to launch a chain

func DefaultConsumerInitializationParameters added in v6.3.0

func DefaultConsumerInitializationParameters() ConsumerInitializationParameters

func (*ConsumerInitializationParameters) Descriptor

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

func (*ConsumerInitializationParameters) GetBinaryHash

func (m *ConsumerInitializationParameters) GetBinaryHash() []byte

func (*ConsumerInitializationParameters) GetBlocksPerDistributionTransmission

func (m *ConsumerInitializationParameters) GetBlocksPerDistributionTransmission() int64

func (*ConsumerInitializationParameters) GetCcvTimeoutPeriod

func (m *ConsumerInitializationParameters) GetCcvTimeoutPeriod() time.Duration

func (*ConsumerInitializationParameters) GetConsumerRedistributionFraction

func (m *ConsumerInitializationParameters) GetConsumerRedistributionFraction() string

func (*ConsumerInitializationParameters) GetDistributionTransmissionChannel

func (m *ConsumerInitializationParameters) GetDistributionTransmissionChannel() string

func (*ConsumerInitializationParameters) GetGenesisHash

func (m *ConsumerInitializationParameters) GetGenesisHash() []byte

func (*ConsumerInitializationParameters) GetHistoricalEntries

func (m *ConsumerInitializationParameters) GetHistoricalEntries() int64

func (*ConsumerInitializationParameters) GetInitialHeight

func (m *ConsumerInitializationParameters) GetInitialHeight() types.Height

func (*ConsumerInitializationParameters) GetSpawnTime

func (m *ConsumerInitializationParameters) GetSpawnTime() time.Time

func (*ConsumerInitializationParameters) GetTransferTimeoutPeriod

func (m *ConsumerInitializationParameters) GetTransferTimeoutPeriod() time.Duration

func (*ConsumerInitializationParameters) GetUnbondingPeriod

func (m *ConsumerInitializationParameters) GetUnbondingPeriod() time.Duration

func (*ConsumerInitializationParameters) Marshal

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

func (*ConsumerInitializationParameters) MarshalTo

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

func (*ConsumerInitializationParameters) MarshalToSizedBuffer

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

func (*ConsumerInitializationParameters) ProtoMessage

func (*ConsumerInitializationParameters) ProtoMessage()

func (*ConsumerInitializationParameters) Reset

func (*ConsumerInitializationParameters) Size

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

func (*ConsumerInitializationParameters) String

func (*ConsumerInitializationParameters) Unmarshal

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

func (*ConsumerInitializationParameters) XXX_DiscardUnknown

func (m *ConsumerInitializationParameters) XXX_DiscardUnknown()

func (*ConsumerInitializationParameters) XXX_Marshal

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

func (*ConsumerInitializationParameters) XXX_Merge

func (*ConsumerInitializationParameters) XXX_Size

func (m *ConsumerInitializationParameters) XXX_Size() int

func (*ConsumerInitializationParameters) XXX_Unmarshal

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

type ConsumerMetadata

type ConsumerMetadata struct {
	// the name of the chain
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// the description of the chain
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the metadata (e.g., GitHub repository URL) of the chain
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

ConsumerMetadata contains general information about the registered chain

func (*ConsumerMetadata) Descriptor

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

func (*ConsumerMetadata) GetDescription

func (m *ConsumerMetadata) GetDescription() string

func (*ConsumerMetadata) GetMetadata

func (m *ConsumerMetadata) GetMetadata() string

func (*ConsumerMetadata) GetName

func (m *ConsumerMetadata) GetName() string

func (*ConsumerMetadata) Marshal

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

func (*ConsumerMetadata) MarshalTo

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

func (*ConsumerMetadata) MarshalToSizedBuffer

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

func (*ConsumerMetadata) ProtoMessage

func (*ConsumerMetadata) ProtoMessage()

func (*ConsumerMetadata) Reset

func (m *ConsumerMetadata) Reset()

func (*ConsumerMetadata) Size

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

func (*ConsumerMetadata) String

func (m *ConsumerMetadata) String() string

func (*ConsumerMetadata) Unmarshal

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

func (*ConsumerMetadata) XXX_DiscardUnknown

func (m *ConsumerMetadata) XXX_DiscardUnknown()

func (*ConsumerMetadata) XXX_Marshal

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

func (*ConsumerMetadata) XXX_Merge

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

func (*ConsumerMetadata) XXX_Size

func (m *ConsumerMetadata) XXX_Size() int

func (*ConsumerMetadata) XXX_Unmarshal

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

type ConsumerModificationProposal deprecated

type ConsumerModificationProposal struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the chain-id of the consumer chain to be modified
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
	// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
	// have to validate the proposed consumer chain. top_N can either be 0 or any value in [50, 100].
	// A chain can join with top_N == 0 as an Opt In chain, or with top_N ∈ [50, 100] as a Top N chain.
	Top_N uint32 `protobuf:"varint,4,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// Corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain. For instance, if
	// `validators_power_cap` is set to 32, it means that no validator can have more than 32% of the voting power on the
	// consumer chain. Note that this might not be feasible. For example, think of a consumer chain with only
	// 5 validators and with `validators_power_cap` set to 10%. In such a scenario, at least one validator would need
	// to have more than 20% of the total voting power. Therefore, `validators_power_cap` operates on a best-effort basis.
	ValidatorsPowerCap uint32 `protobuf:"varint,5,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,6,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate
	// the consumer chain.
	Allowlist []string `protobuf:"bytes,7,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain.
	Denylist []string `protobuf:"bytes,8,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,9,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool `protobuf:"varint,10,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
}

WARNING: This message is deprecated in favor of `MsgUpdateConsumer`. ConsumerModificationProposal is a governance proposal on the provider chain to modify parameters of a running consumer chain. If it passes, the consumer chain's state is updated to take into account the newest params.

Deprecated: Do not use.

func (*ConsumerModificationProposal) Descriptor

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

func (*ConsumerModificationProposal) GetAllowInactiveVals

func (m *ConsumerModificationProposal) GetAllowInactiveVals() bool

func (*ConsumerModificationProposal) GetAllowlist

func (m *ConsumerModificationProposal) GetAllowlist() []string

func (*ConsumerModificationProposal) GetChainId

func (m *ConsumerModificationProposal) GetChainId() string

func (*ConsumerModificationProposal) GetDenylist

func (m *ConsumerModificationProposal) GetDenylist() []string

func (*ConsumerModificationProposal) GetDescription

func (m *ConsumerModificationProposal) GetDescription() string

func (*ConsumerModificationProposal) GetMinStake

func (m *ConsumerModificationProposal) GetMinStake() uint64

func (*ConsumerModificationProposal) GetTitle

func (m *ConsumerModificationProposal) GetTitle() string

func (*ConsumerModificationProposal) GetTop_N

func (m *ConsumerModificationProposal) GetTop_N() uint32

func (*ConsumerModificationProposal) GetValidatorSetCap

func (m *ConsumerModificationProposal) GetValidatorSetCap() uint32

func (*ConsumerModificationProposal) GetValidatorsPowerCap

func (m *ConsumerModificationProposal) GetValidatorsPowerCap() uint32

func (*ConsumerModificationProposal) Marshal

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

func (*ConsumerModificationProposal) MarshalTo

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

func (*ConsumerModificationProposal) MarshalToSizedBuffer

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

func (*ConsumerModificationProposal) ProposalRoute

func (cccp *ConsumerModificationProposal) ProposalRoute() string

ProposalRoute returns the routing key of a consumer modification proposal.

func (*ConsumerModificationProposal) ProposalType

func (cccp *ConsumerModificationProposal) ProposalType() string

ProposalType returns the type of the consumer modification proposal.

func (*ConsumerModificationProposal) ProtoMessage

func (*ConsumerModificationProposal) ProtoMessage()

func (*ConsumerModificationProposal) Reset

func (m *ConsumerModificationProposal) Reset()

func (*ConsumerModificationProposal) Size

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

func (*ConsumerModificationProposal) String

func (*ConsumerModificationProposal) Unmarshal

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

func (*ConsumerModificationProposal) ValidateBasic

func (cccp *ConsumerModificationProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*ConsumerModificationProposal) XXX_DiscardUnknown

func (m *ConsumerModificationProposal) XXX_DiscardUnknown()

func (*ConsumerModificationProposal) XXX_Marshal

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

func (*ConsumerModificationProposal) XXX_Merge

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

func (*ConsumerModificationProposal) XXX_Size

func (m *ConsumerModificationProposal) XXX_Size() int

func (*ConsumerModificationProposal) XXX_Unmarshal

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

type ConsumerPhase

type ConsumerPhase int32

ConsumerPhase indicates the phases of a consumer chain according to ADR 019

const (
	// UNSPECIFIED defines an empty phase.
	CONSUMER_PHASE_UNSPECIFIED ConsumerPhase = 0
	// REGISTERED defines the phase in which a consumer chain has been assigned a unique consumer id.
	// A chain in this phase cannot yet launch.
	CONSUMER_PHASE_REGISTERED ConsumerPhase = 1
	// INITIALIZED defines the phase in which a consumer chain has set all the needed parameters to launch but
	// has not yet launched (e.g., because the `spawnTime` of the consumer chain has not yet been reached).
	CONSUMER_PHASE_INITIALIZED ConsumerPhase = 2
	// LAUNCHED defines the phase in which a consumer chain is running and consuming a subset of the validator
	// set of the provider.
	CONSUMER_PHASE_LAUNCHED ConsumerPhase = 3
	// STOPPED defines the phase in which a previously-launched chain has stopped.
	CONSUMER_PHASE_STOPPED ConsumerPhase = 4
	// DELETED defines the phase in which the state of a stopped chain has been deleted.
	CONSUMER_PHASE_DELETED ConsumerPhase = 5
)

func (ConsumerPhase) EnumDescriptor

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

func (ConsumerPhase) String

func (x ConsumerPhase) String() string

type ConsumerRemovalProposal deprecated

type ConsumerRemovalProposal struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the chain-id of the consumer chain to be stopped
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// the time on the provider chain at which all validators are responsible to
	// stop their consumer chain validator node
	StopTime time.Time `protobuf:"bytes,4,opt,name=stop_time,json=stopTime,proto3,stdtime" json:"stop_time"`
}

WARNING: This message is deprecated in favor of `MsgRemoveConsumer`. ConsumerRemovalProposal is a governance proposal on the provider chain to remove (and stop) a consumer chain. If it passes, all the consumer chain's state is removed from the provider chain. The outstanding unbonding operation funds are released. Use MsgConsumerRemoval to submit this proposal type.

Deprecated: Do not use.

func (*ConsumerRemovalProposal) Descriptor

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

func (*ConsumerRemovalProposal) GetChainId

func (m *ConsumerRemovalProposal) GetChainId() string

func (*ConsumerRemovalProposal) GetDescription

func (m *ConsumerRemovalProposal) GetDescription() string

func (*ConsumerRemovalProposal) GetStopTime

func (m *ConsumerRemovalProposal) GetStopTime() time.Time

func (*ConsumerRemovalProposal) GetTitle

func (m *ConsumerRemovalProposal) GetTitle() string

func (*ConsumerRemovalProposal) Marshal

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

func (*ConsumerRemovalProposal) MarshalTo

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

func (*ConsumerRemovalProposal) MarshalToSizedBuffer

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

func (*ConsumerRemovalProposal) ProposalRoute

func (sccp *ConsumerRemovalProposal) ProposalRoute() string

ProposalRoute returns the routing key of a consumer removal proposal.

func (*ConsumerRemovalProposal) ProposalType

func (sccp *ConsumerRemovalProposal) ProposalType() string

ProposalType returns the type of a consumer removal proposal.

func (*ConsumerRemovalProposal) ProtoMessage

func (*ConsumerRemovalProposal) ProtoMessage()

func (*ConsumerRemovalProposal) Reset

func (m *ConsumerRemovalProposal) Reset()

func (*ConsumerRemovalProposal) Size

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

func (*ConsumerRemovalProposal) String

func (m *ConsumerRemovalProposal) String() string

func (*ConsumerRemovalProposal) Unmarshal

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

func (*ConsumerRemovalProposal) ValidateBasic

func (sccp *ConsumerRemovalProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*ConsumerRemovalProposal) XXX_DiscardUnknown

func (m *ConsumerRemovalProposal) XXX_DiscardUnknown()

func (*ConsumerRemovalProposal) XXX_Marshal

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

func (*ConsumerRemovalProposal) XXX_Merge

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

func (*ConsumerRemovalProposal) XXX_Size

func (m *ConsumerRemovalProposal) XXX_Size() int

func (*ConsumerRemovalProposal) XXX_Unmarshal

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

type ConsumerRemovalProposals

type ConsumerRemovalProposals struct {
	// proposals waiting for stop_time to pass
	Pending []*ConsumerRemovalProposal `protobuf:"bytes,1,rep,name=pending,proto3" json:"pending,omitempty"`
}

ConsumerRemovalProposals holds pending governance proposals on the provider chain to remove (and stop) a consumer chain.

func (*ConsumerRemovalProposals) Descriptor

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

func (*ConsumerRemovalProposals) GetPending

func (*ConsumerRemovalProposals) Marshal

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

func (*ConsumerRemovalProposals) MarshalTo

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

func (*ConsumerRemovalProposals) MarshalToSizedBuffer

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

func (*ConsumerRemovalProposals) ProtoMessage

func (*ConsumerRemovalProposals) ProtoMessage()

func (*ConsumerRemovalProposals) Reset

func (m *ConsumerRemovalProposals) Reset()

func (*ConsumerRemovalProposals) Size

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

func (*ConsumerRemovalProposals) String

func (m *ConsumerRemovalProposals) String() string

func (*ConsumerRemovalProposals) Unmarshal

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

func (*ConsumerRemovalProposals) XXX_DiscardUnknown

func (m *ConsumerRemovalProposals) XXX_DiscardUnknown()

func (*ConsumerRemovalProposals) XXX_Marshal

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

func (*ConsumerRemovalProposals) XXX_Merge

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

func (*ConsumerRemovalProposals) XXX_Size

func (m *ConsumerRemovalProposals) XXX_Size() int

func (*ConsumerRemovalProposals) XXX_Unmarshal

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

type ConsumerRewardsAllocation

type ConsumerRewardsAllocation struct {
	Rewards github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,1,rep,name=rewards,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"rewards"`
}

ConsumerRewardsAllocation stores the rewards allocated by a consumer chain to the consumer rewards pool. It is used to allocate the tokens to the consumer opted-in validators and the community pool during BeginBlock.

func (*ConsumerRewardsAllocation) Descriptor

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

func (*ConsumerRewardsAllocation) GetRewards

func (*ConsumerRewardsAllocation) Marshal

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

func (*ConsumerRewardsAllocation) MarshalTo

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

func (*ConsumerRewardsAllocation) MarshalToSizedBuffer

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

func (*ConsumerRewardsAllocation) ProtoMessage

func (*ConsumerRewardsAllocation) ProtoMessage()

func (*ConsumerRewardsAllocation) Reset

func (m *ConsumerRewardsAllocation) Reset()

func (*ConsumerRewardsAllocation) Size

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

func (*ConsumerRewardsAllocation) String

func (m *ConsumerRewardsAllocation) String() string

func (*ConsumerRewardsAllocation) Unmarshal

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

func (*ConsumerRewardsAllocation) XXX_DiscardUnknown

func (m *ConsumerRewardsAllocation) XXX_DiscardUnknown()

func (*ConsumerRewardsAllocation) XXX_Marshal

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

func (*ConsumerRewardsAllocation) XXX_Merge

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

func (*ConsumerRewardsAllocation) XXX_Size

func (m *ConsumerRewardsAllocation) XXX_Size() int

func (*ConsumerRewardsAllocation) XXX_Unmarshal

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

type ConsumerState

type ConsumerState struct {
	// ChainID defines the chain ID for the consumer chain
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// ChannelID defines the IBC channel ID for the consumer chain
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// ClientID defines the IBC client ID for the consumer chain
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// InitalHeight defines the initial block height for the consumer chain
	InitialHeight uint64 `protobuf:"varint,4,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height,omitempty"`
	// ConsumerGenesis defines the initial consumer chain genesis states
	ConsumerGenesis types.ConsumerGenesisState `protobuf:"bytes,5,opt,name=consumer_genesis,json=consumerGenesis,proto3" json:"consumer_genesis"`
	// PendingValsetChanges defines the pending validator set changes for the
	// consumer chain
	PendingValsetChanges []types.ValidatorSetChangePacketData `protobuf:"bytes,6,rep,name=pending_valset_changes,json=pendingValsetChanges,proto3" json:"pending_valset_changes"`
	SlashDowntimeAck     []string                             `protobuf:"bytes,7,rep,name=slash_downtime_ack,json=slashDowntimeAck,proto3" json:"slash_downtime_ack,omitempty"`
	// the phase of the consumer chain
	Phase ConsumerPhase `protobuf:"varint,9,opt,name=phase,proto3,enum=interchain_security.ccv.provider.v1.ConsumerPhase" json:"phase,omitempty"`
}

The provider CCV module's knowledge of consumer state.

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

func NewConsumerStates

func NewConsumerStates(
	chainID,
	clientID,
	channelID string,
	initialHeight uint64,
	genesis ccv.ConsumerGenesisState,
	pendingValsetChanges []ccv.ValidatorSetChangePacketData,
	slashDowntimeAck []string,
	phase ConsumerPhase,
) ConsumerState

func (*ConsumerState) Descriptor

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

func (*ConsumerState) GetChainId

func (m *ConsumerState) GetChainId() string

func (*ConsumerState) GetChannelId

func (m *ConsumerState) GetChannelId() string

func (*ConsumerState) GetClientId

func (m *ConsumerState) GetClientId() string

func (*ConsumerState) GetConsumerGenesis

func (m *ConsumerState) GetConsumerGenesis() types.ConsumerGenesisState

func (*ConsumerState) GetInitialHeight

func (m *ConsumerState) GetInitialHeight() uint64

func (*ConsumerState) GetPendingValsetChanges

func (m *ConsumerState) GetPendingValsetChanges() []types.ValidatorSetChangePacketData

func (*ConsumerState) GetPhase

func (m *ConsumerState) GetPhase() ConsumerPhase

func (*ConsumerState) GetSlashDowntimeAck

func (m *ConsumerState) GetSlashDowntimeAck() []string

func (*ConsumerState) Marshal

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

func (*ConsumerState) MarshalTo

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

func (*ConsumerState) MarshalToSizedBuffer

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

func (*ConsumerState) ProtoMessage

func (*ConsumerState) ProtoMessage()

func (*ConsumerState) Reset

func (m *ConsumerState) Reset()

func (*ConsumerState) Size

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

func (*ConsumerState) String

func (m *ConsumerState) String() string

func (*ConsumerState) Unmarshal

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

func (ConsumerState) Validate

func (cs ConsumerState) Validate() error

Validate performs a consumer state validation returning an error upon any failure. It ensures that the chain id, client id and consumer genesis states are valid and non-empty.

func (*ConsumerState) XXX_DiscardUnknown

func (m *ConsumerState) XXX_DiscardUnknown()

func (*ConsumerState) XXX_Marshal

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

func (*ConsumerState) XXX_Merge

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

func (*ConsumerState) XXX_Size

func (m *ConsumerState) XXX_Size() int

func (*ConsumerState) XXX_Unmarshal

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

type EquivocationProposal deprecated

type EquivocationProposal struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the list of equivocations that will be processed
	Equivocations []*types1.Equivocation `protobuf:"bytes,3,rep,name=equivocations,proto3" json:"equivocations,omitempty"`
}

EquivocationProposal is a governance proposal on the provider chain to punish a validator for equivocation on a consumer chain.

This type is only used internally to the consumer CCV module. WARNING: This message is deprecated now that equivocations can be submitted and verified automatically on the provider. (see SubmitConsumerDoubleVoting in proto/interchain-security/ccv/provider/v1/tx.proto).

Deprecated: Do not use.

func (*EquivocationProposal) Descriptor

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

func (*EquivocationProposal) GetDescription

func (m *EquivocationProposal) GetDescription() string

func (*EquivocationProposal) GetEquivocations

func (m *EquivocationProposal) GetEquivocations() []*types1.Equivocation

func (*EquivocationProposal) GetTitle

func (m *EquivocationProposal) GetTitle() string

func (*EquivocationProposal) Marshal

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

func (*EquivocationProposal) MarshalTo

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

func (*EquivocationProposal) MarshalToSizedBuffer

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

func (*EquivocationProposal) ProposalRoute

func (sp *EquivocationProposal) ProposalRoute() string

ProposalRoute returns the routing key of an equivocation proposal.

func (*EquivocationProposal) ProposalType

func (sp *EquivocationProposal) ProposalType() string

ProposalType returns the type of a equivocation proposal.

func (*EquivocationProposal) ProtoMessage

func (*EquivocationProposal) ProtoMessage()

func (*EquivocationProposal) Reset

func (m *EquivocationProposal) Reset()

func (*EquivocationProposal) Size

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

func (*EquivocationProposal) String

func (m *EquivocationProposal) String() string

func (*EquivocationProposal) Unmarshal

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

func (*EquivocationProposal) ValidateBasic

func (sp *EquivocationProposal) ValidateBasic() error

ValidateBasic runs basic stateless validity checks

func (*EquivocationProposal) XXX_DiscardUnknown

func (m *EquivocationProposal) XXX_DiscardUnknown()

func (*EquivocationProposal) XXX_Marshal

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

func (*EquivocationProposal) XXX_Merge

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

func (*EquivocationProposal) XXX_Size

func (m *EquivocationProposal) XXX_Size() int

func (*EquivocationProposal) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// strictly positive and set to 1 (DefaultValsetUpdateID) for a new chain
	ValsetUpdateId uint64 `protobuf:"varint,1,opt,name=valset_update_id,json=valsetUpdateId,proto3" json:"valset_update_id,omitempty"`
	// empty for a new chain
	ConsumerStates []ConsumerState `protobuf:"bytes,2,rep,name=consumer_states,json=consumerStates,proto3" json:"consumer_states" yaml:"consumer_states"`
	// empty for a new chain
	ValsetUpdateIdToHeight []ValsetUpdateIdToHeight `protobuf:"bytes,5,rep,name=valset_update_id_to_height,json=valsetUpdateIdToHeight,proto3" json:"valset_update_id_to_height"`
	Params                 Params                   `protobuf:"bytes,8,opt,name=params,proto3" json:"params"`
	// empty for a new chain
	ValidatorConsumerPubkeys []ValidatorConsumerPubKey `protobuf:"bytes,9,rep,name=validator_consumer_pubkeys,json=validatorConsumerPubkeys,proto3" json:"validator_consumer_pubkeys"`
	// empty for a new chain
	ValidatorsByConsumerAddr []ValidatorByConsumerAddr `` /* 128-byte string literal not displayed */
	// empty for a new chain
	ConsumerAddrsToPruneV2 []ConsumerAddrsToPruneV2 `protobuf:"bytes,14,rep,name=consumer_addrs_to_prune_v2,json=consumerAddrsToPruneV2,proto3" json:"consumer_addrs_to_prune_v2"`
}

GenesisState defines the CCV provider chain genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(
	vscID uint64,
	vscIdToHeights []ValsetUpdateIdToHeight,
	consumerStates []ConsumerState,
	params Params,
	validatorConsumerPubkeys []ValidatorConsumerPubKey,
	validatorsByConsumerAddr []ValidatorByConsumerAddr,
	consumerAddrsToPrune []ConsumerAddrsToPruneV2,
) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetConsumerAddrsToPruneV2

func (m *GenesisState) GetConsumerAddrsToPruneV2() []ConsumerAddrsToPruneV2

func (*GenesisState) GetConsumerStates

func (m *GenesisState) GetConsumerStates() []ConsumerState

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetValidatorConsumerPubkeys

func (m *GenesisState) GetValidatorConsumerPubkeys() []ValidatorConsumerPubKey

func (*GenesisState) GetValidatorsByConsumerAddr

func (m *GenesisState) GetValidatorsByConsumerAddr() []ValidatorByConsumerAddr

func (*GenesisState) GetValsetUpdateId

func (m *GenesisState) GetValsetUpdateId() uint64

func (*GenesisState) GetValsetUpdateIdToHeight

func (m *GenesisState) GetValsetUpdateIdToHeight() []ValsetUpdateIdToHeight

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 GlobalSlashEntry

type GlobalSlashEntry struct {
	// Block time that slash packet was received by provider chain.
	// This field is used for store key iteration ordering.
	RecvTime time.Time `protobuf:"bytes,1,opt,name=recv_time,json=recvTime,proto3,stdtime" json:"recv_time"`
	// The consumer that sent a slash packet.
	ConsumerChainID string `protobuf:"bytes,2,opt,name=consumer_chain_id,json=consumerChainId,proto3" json:"consumer_chain_id,omitempty"`
	// The IBC sequence number of the recv packet.
	// This field is used in the store key to ensure uniqueness.
	IbcSeqNum uint64 `protobuf:"varint,3,opt,name=ibc_seq_num,json=ibcSeqNum,proto3" json:"ibc_seq_num,omitempty"`
	// The provider's consensus address of the validator being slashed.
	// This field is used to obtain validator power in HandleThrottleQueues.
	//
	// This field is not used in the store key, but is persisted in value bytes,
	// see QueueGlobalSlashEntry.
	ProviderValConsAddr []byte `protobuf:"bytes,4,opt,name=provider_val_cons_addr,json=providerValConsAddr,proto3" json:"provider_val_cons_addr,omitempty"`
}

A persisted queue entry indicating that a slash packet data instance needs to be handled. This type belongs in the "global" queue, to coordinate slash packet handling times between consumers.

func (*GlobalSlashEntry) Descriptor

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

func (*GlobalSlashEntry) GetConsumerChainID

func (m *GlobalSlashEntry) GetConsumerChainID() string

func (*GlobalSlashEntry) GetIbcSeqNum

func (m *GlobalSlashEntry) GetIbcSeqNum() uint64

func (*GlobalSlashEntry) GetProviderValConsAddr

func (m *GlobalSlashEntry) GetProviderValConsAddr() []byte

func (*GlobalSlashEntry) GetRecvTime

func (m *GlobalSlashEntry) GetRecvTime() time.Time

func (*GlobalSlashEntry) Marshal

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

func (*GlobalSlashEntry) MarshalTo

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

func (*GlobalSlashEntry) MarshalToSizedBuffer

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

func (*GlobalSlashEntry) ProtoMessage

func (*GlobalSlashEntry) ProtoMessage()

func (*GlobalSlashEntry) Reset

func (m *GlobalSlashEntry) Reset()

func (*GlobalSlashEntry) Size

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

func (*GlobalSlashEntry) String

func (m *GlobalSlashEntry) String() string

func (*GlobalSlashEntry) Unmarshal

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

func (*GlobalSlashEntry) XXX_DiscardUnknown

func (m *GlobalSlashEntry) XXX_DiscardUnknown()

func (*GlobalSlashEntry) XXX_Marshal

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

func (*GlobalSlashEntry) XXX_Merge

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

func (*GlobalSlashEntry) XXX_Size

func (m *GlobalSlashEntry) XXX_Size() int

func (*GlobalSlashEntry) XXX_Unmarshal

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

type KeyAssignmentReplacement

type KeyAssignmentReplacement struct {
	ProviderAddr []byte            `protobuf:"bytes,1,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"`
	PrevCKey     *crypto.PublicKey `protobuf:"bytes,2,opt,name=prev_c_key,json=prevCKey,proto3" json:"prev_c_key,omitempty"`
	Power        int64             `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"`
}

func (*KeyAssignmentReplacement) Descriptor

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

func (*KeyAssignmentReplacement) GetPower

func (m *KeyAssignmentReplacement) GetPower() int64

func (*KeyAssignmentReplacement) GetPrevCKey

func (m *KeyAssignmentReplacement) GetPrevCKey() *crypto.PublicKey

func (*KeyAssignmentReplacement) GetProviderAddr

func (m *KeyAssignmentReplacement) GetProviderAddr() []byte

func (*KeyAssignmentReplacement) Marshal

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

func (*KeyAssignmentReplacement) MarshalTo

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

func (*KeyAssignmentReplacement) MarshalToSizedBuffer

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

func (*KeyAssignmentReplacement) ProtoMessage

func (*KeyAssignmentReplacement) ProtoMessage()

func (*KeyAssignmentReplacement) Reset

func (m *KeyAssignmentReplacement) Reset()

func (*KeyAssignmentReplacement) Size

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

func (*KeyAssignmentReplacement) String

func (m *KeyAssignmentReplacement) String() string

func (*KeyAssignmentReplacement) Unmarshal

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

func (*KeyAssignmentReplacement) XXX_DiscardUnknown

func (m *KeyAssignmentReplacement) XXX_DiscardUnknown()

func (*KeyAssignmentReplacement) XXX_Marshal

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

func (*KeyAssignmentReplacement) XXX_Merge

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

func (*KeyAssignmentReplacement) XXX_Size

func (m *KeyAssignmentReplacement) XXX_Size() int

func (*KeyAssignmentReplacement) XXX_Unmarshal

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

type MsgAssignConsumerKey

type MsgAssignConsumerKey struct {
	// [DEPRECATED] use `consumer_id` instead
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Deprecated: Do not use.
	// The validator address on the provider
	ProviderAddr string `protobuf:"bytes,2,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty" yaml:"address"`
	// The consensus public key to use on the consumer.
	// in json string format corresponding to proto-any, ex:
	// `{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Ui5Gf1+mtWUdH8u3xlmzdKID+F3PK0sfXZ73GZ6q6is="}`
	ConsumerKey string `protobuf:"bytes,3,opt,name=consumer_key,json=consumerKey,proto3" json:"consumer_key,omitempty"`
	Signer      string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
	// the consumer id of the consumer chain to assign a consensus public key to
	ConsumerId string `protobuf:"bytes,5,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func NewMsgAssignConsumerKey

func NewMsgAssignConsumerKey(consumerId string, providerValidatorAddress sdk.ValAddress,
	consumerConsensusPubKey, signer string,
) (*MsgAssignConsumerKey, error)

NewMsgAssignConsumerKey creates a new MsgAssignConsumerKey instance. Delegator address and validator address are the same.

func (*MsgAssignConsumerKey) Descriptor

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

func (*MsgAssignConsumerKey) Marshal

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

func (*MsgAssignConsumerKey) MarshalTo

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

func (*MsgAssignConsumerKey) MarshalToSizedBuffer

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

func (*MsgAssignConsumerKey) ProtoMessage

func (*MsgAssignConsumerKey) ProtoMessage()

func (*MsgAssignConsumerKey) Reset

func (m *MsgAssignConsumerKey) Reset()

func (*MsgAssignConsumerKey) Size

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

func (*MsgAssignConsumerKey) String

func (m *MsgAssignConsumerKey) String() string

func (*MsgAssignConsumerKey) Unmarshal

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

func (MsgAssignConsumerKey) ValidateBasic

func (msg MsgAssignConsumerKey) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgAssignConsumerKey) XXX_DiscardUnknown

func (m *MsgAssignConsumerKey) XXX_DiscardUnknown()

func (*MsgAssignConsumerKey) XXX_Marshal

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

func (*MsgAssignConsumerKey) XXX_Merge

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

func (*MsgAssignConsumerKey) XXX_Size

func (m *MsgAssignConsumerKey) XXX_Size() int

func (*MsgAssignConsumerKey) XXX_Unmarshal

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

type MsgAssignConsumerKeyResponse

type MsgAssignConsumerKeyResponse struct {
}

func (*MsgAssignConsumerKeyResponse) Descriptor

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

func (*MsgAssignConsumerKeyResponse) Marshal

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

func (*MsgAssignConsumerKeyResponse) MarshalTo

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

func (*MsgAssignConsumerKeyResponse) MarshalToSizedBuffer

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

func (*MsgAssignConsumerKeyResponse) ProtoMessage

func (*MsgAssignConsumerKeyResponse) ProtoMessage()

func (*MsgAssignConsumerKeyResponse) Reset

func (m *MsgAssignConsumerKeyResponse) Reset()

func (*MsgAssignConsumerKeyResponse) Size

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

func (*MsgAssignConsumerKeyResponse) String

func (*MsgAssignConsumerKeyResponse) Unmarshal

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

func (*MsgAssignConsumerKeyResponse) XXX_DiscardUnknown

func (m *MsgAssignConsumerKeyResponse) XXX_DiscardUnknown()

func (*MsgAssignConsumerKeyResponse) XXX_Marshal

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

func (*MsgAssignConsumerKeyResponse) XXX_Merge

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

func (*MsgAssignConsumerKeyResponse) XXX_Size

func (m *MsgAssignConsumerKeyResponse) XXX_Size() int

func (*MsgAssignConsumerKeyResponse) XXX_Unmarshal

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

type MsgChangeRewardDenoms

type MsgChangeRewardDenoms struct {
	// the list of consumer reward denoms to add
	DenomsToAdd []string `protobuf:"bytes,1,rep,name=denoms_to_add,json=denomsToAdd,proto3" json:"denoms_to_add,omitempty"`
	// the list of consumer reward denoms to remove
	DenomsToRemove []string `protobuf:"bytes,2,rep,name=denoms_to_remove,json=denomsToRemove,proto3" json:"denoms_to_remove,omitempty"`
	// authority is the address of the governance account
	Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
}

ChangeRewardDenomsProposal is a governance proposal on the provider chain to mutate the set of denoms accepted by the provider as rewards.

Note: this replaces ChangeRewardDenomsProposal which is deprecated and will be removed soon

func (*MsgChangeRewardDenoms) Descriptor

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

func (*MsgChangeRewardDenoms) GetAuthority

func (m *MsgChangeRewardDenoms) GetAuthority() string

func (*MsgChangeRewardDenoms) GetDenomsToAdd

func (m *MsgChangeRewardDenoms) GetDenomsToAdd() []string

func (*MsgChangeRewardDenoms) GetDenomsToRemove

func (m *MsgChangeRewardDenoms) GetDenomsToRemove() []string

func (*MsgChangeRewardDenoms) Marshal

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

func (*MsgChangeRewardDenoms) MarshalTo

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

func (*MsgChangeRewardDenoms) MarshalToSizedBuffer

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

func (*MsgChangeRewardDenoms) ProtoMessage

func (*MsgChangeRewardDenoms) ProtoMessage()

func (*MsgChangeRewardDenoms) Reset

func (m *MsgChangeRewardDenoms) Reset()

func (*MsgChangeRewardDenoms) Size

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

func (*MsgChangeRewardDenoms) String

func (m *MsgChangeRewardDenoms) String() string

func (*MsgChangeRewardDenoms) Unmarshal

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

func (*MsgChangeRewardDenoms) ValidateBasic

func (msg *MsgChangeRewardDenoms) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgChangeRewardDenoms) XXX_DiscardUnknown

func (m *MsgChangeRewardDenoms) XXX_DiscardUnknown()

func (*MsgChangeRewardDenoms) XXX_Marshal

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

func (*MsgChangeRewardDenoms) XXX_Merge

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

func (*MsgChangeRewardDenoms) XXX_Size

func (m *MsgChangeRewardDenoms) XXX_Size() int

func (*MsgChangeRewardDenoms) XXX_Unmarshal

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

type MsgChangeRewardDenomsResponse

type MsgChangeRewardDenomsResponse struct {
}

MsgChangeRewardDenomsResponse defines response type for MsgChangeRewardDenoms messages

func (*MsgChangeRewardDenomsResponse) Descriptor

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

func (*MsgChangeRewardDenomsResponse) Marshal

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

func (*MsgChangeRewardDenomsResponse) MarshalTo

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

func (*MsgChangeRewardDenomsResponse) MarshalToSizedBuffer

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

func (*MsgChangeRewardDenomsResponse) ProtoMessage

func (*MsgChangeRewardDenomsResponse) ProtoMessage()

func (*MsgChangeRewardDenomsResponse) Reset

func (m *MsgChangeRewardDenomsResponse) Reset()

func (*MsgChangeRewardDenomsResponse) Size

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

func (*MsgChangeRewardDenomsResponse) String

func (*MsgChangeRewardDenomsResponse) Unmarshal

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

func (*MsgChangeRewardDenomsResponse) XXX_DiscardUnknown

func (m *MsgChangeRewardDenomsResponse) XXX_DiscardUnknown()

func (*MsgChangeRewardDenomsResponse) XXX_Marshal

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

func (*MsgChangeRewardDenomsResponse) XXX_Merge

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

func (*MsgChangeRewardDenomsResponse) XXX_Size

func (m *MsgChangeRewardDenomsResponse) XXX_Size() int

func (*MsgChangeRewardDenomsResponse) XXX_Unmarshal

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

type MsgClient

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 MsgConsumerAddition deprecated

type MsgConsumerAddition struct {
	// the proposed chain-id of the new consumer chain, must be different from all
	// other consumer chain ids of the executing provider chain.
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// the proposed initial height of new consumer chain.
	// For a completely new chain, this will be {0,1}. However, it may be
	// different if this is a chain that is converting to a consumer chain.
	InitialHeight types1.Height `protobuf:"bytes,2,opt,name=initial_height,json=initialHeight,proto3" json:"initial_height"`
	// The hash of the consumer chain genesis state without the consumer CCV
	// module genesis params. It is used for off-chain confirmation of
	// genesis.json validity by validators and other parties.
	GenesisHash []byte `protobuf:"bytes,3,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"`
	// The hash of the consumer chain binary that should be run by validators on
	// chain initialization. It is used for off-chain confirmation of binary
	// validity by validators and other parties.
	BinaryHash []byte `protobuf:"bytes,4,opt,name=binary_hash,json=binaryHash,proto3" json:"binary_hash,omitempty"`
	// spawn time is the time on the provider chain at which the consumer chain
	// genesis is finalized and all validators will be responsible for starting
	// their consumer chain validator node.
	SpawnTime time.Time `protobuf:"bytes,5,opt,name=spawn_time,json=spawnTime,proto3,stdtime" json:"spawn_time"`
	// Unbonding period for the consumer,
	// which should be smaller than that of the provider in general.
	UnbondingPeriod time.Duration `protobuf:"bytes,6,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"`
	// Sent CCV related IBC packets will timeout after this duration
	CcvTimeoutPeriod time.Duration `protobuf:"bytes,7,opt,name=ccv_timeout_period,json=ccvTimeoutPeriod,proto3,stdduration" json:"ccv_timeout_period"`
	// Sent transfer related IBC packets will timeout after this duration
	TransferTimeoutPeriod time.Duration `` /* 128-byte string literal not displayed */
	// The fraction of tokens allocated to the consumer redistribution address
	// during distribution events. The fraction is a string representing a
	// decimal number. For example "0.75" would represent 75%.
	ConsumerRedistributionFraction string `` /* 153-byte string literal not displayed */
	// BlocksPerDistributionTransmission is the number of blocks between
	// ibc-token-transfers from the consumer chain to the provider chain. On
	// sending transmission event, `consumer_redistribution_fraction` of the
	// accumulated tokens are sent to the consumer redistribution address.
	BlocksPerDistributionTransmission int64 `` /* 166-byte string literal not displayed */
	// The number of historical info entries to persist in store.
	// This param is a part of the cosmos sdk staking module. In the case of
	// a ccv enabled consumer chain, the ccv module acts as the staking module.
	HistoricalEntries int64 `protobuf:"varint,11,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// The ID of a token transfer channel used for the Reward Distribution
	// sub-protocol. If DistributionTransmissionChannel == "", a new transfer
	// channel is created on top of the same connection as the CCV channel.
	// Note that transfer_channel_id is the ID of the channel end on the consumer
	// chain. it is most relevant for chains performing a sovereign to consumer
	// changeover in order to maintain the existing ibc transfer channel
	DistributionTransmissionChannel string `` /* 157-byte string literal not displayed */
	// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
	// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
	// have to validate the proposed consumer chain. top_N can either be 0 or any value in [50, 100].
	// A chain can join with top_N == 0 as an Opt In chain, or with top_N ∈ [50, 100] as a Top N chain.
	Top_N uint32 `protobuf:"varint,13,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// Corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain. For instance, if
	// `validators_power_cap` is set to 32, it means that no validator can have more than 32% of the voting power on the
	// consumer chain. Note that this might not be feasible. For example, think of a consumer chain with only
	// 5 validators and with `validators_power_cap` set to 10%. In such a scenario, at least one validator would need
	// to have more than 20% of the total voting power. Therefore, `validators_power_cap` operates on a best-effort basis.
	ValidatorsPowerCap uint32 `protobuf:"varint,14,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,15,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate
	// the consumer chain.
	Allowlist []string `protobuf:"bytes,16,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain.
	Denylist []string `protobuf:"bytes,17,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// signer address
	Authority string `protobuf:"bytes,18,opt,name=authority,proto3" json:"authority,omitempty"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,19,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool `protobuf:"varint,20,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
}

[DEPRECATED] Use `MsgCreateConsumer` instead

Deprecated: Do not use.

func (*MsgConsumerAddition) Descriptor

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

func (*MsgConsumerAddition) GetAllowInactiveVals

func (m *MsgConsumerAddition) GetAllowInactiveVals() bool

func (*MsgConsumerAddition) GetAllowlist

func (m *MsgConsumerAddition) GetAllowlist() []string

func (*MsgConsumerAddition) GetAuthority

func (m *MsgConsumerAddition) GetAuthority() string

func (*MsgConsumerAddition) GetBinaryHash

func (m *MsgConsumerAddition) GetBinaryHash() []byte

func (*MsgConsumerAddition) GetBlocksPerDistributionTransmission

func (m *MsgConsumerAddition) GetBlocksPerDistributionTransmission() int64

func (*MsgConsumerAddition) GetCcvTimeoutPeriod

func (m *MsgConsumerAddition) GetCcvTimeoutPeriod() time.Duration

func (*MsgConsumerAddition) GetChainId

func (m *MsgConsumerAddition) GetChainId() string

func (*MsgConsumerAddition) GetConsumerRedistributionFraction

func (m *MsgConsumerAddition) GetConsumerRedistributionFraction() string

func (*MsgConsumerAddition) GetDenylist

func (m *MsgConsumerAddition) GetDenylist() []string

func (*MsgConsumerAddition) GetDistributionTransmissionChannel

func (m *MsgConsumerAddition) GetDistributionTransmissionChannel() string

func (*MsgConsumerAddition) GetGenesisHash

func (m *MsgConsumerAddition) GetGenesisHash() []byte

func (*MsgConsumerAddition) GetHistoricalEntries

func (m *MsgConsumerAddition) GetHistoricalEntries() int64

func (*MsgConsumerAddition) GetInitialHeight

func (m *MsgConsumerAddition) GetInitialHeight() types1.Height

func (*MsgConsumerAddition) GetMinStake

func (m *MsgConsumerAddition) GetMinStake() uint64

func (*MsgConsumerAddition) GetSpawnTime

func (m *MsgConsumerAddition) GetSpawnTime() time.Time

func (*MsgConsumerAddition) GetTop_N

func (m *MsgConsumerAddition) GetTop_N() uint32

func (*MsgConsumerAddition) GetTransferTimeoutPeriod

func (m *MsgConsumerAddition) GetTransferTimeoutPeriod() time.Duration

func (*MsgConsumerAddition) GetUnbondingPeriod

func (m *MsgConsumerAddition) GetUnbondingPeriod() time.Duration

func (*MsgConsumerAddition) GetValidatorSetCap

func (m *MsgConsumerAddition) GetValidatorSetCap() uint32

func (*MsgConsumerAddition) GetValidatorsPowerCap

func (m *MsgConsumerAddition) GetValidatorsPowerCap() uint32

func (*MsgConsumerAddition) Marshal

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

func (*MsgConsumerAddition) MarshalTo

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

func (*MsgConsumerAddition) MarshalToSizedBuffer

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

func (*MsgConsumerAddition) ProtoMessage

func (*MsgConsumerAddition) ProtoMessage()

func (*MsgConsumerAddition) Reset

func (m *MsgConsumerAddition) Reset()

func (*MsgConsumerAddition) Size

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

func (*MsgConsumerAddition) String

func (m *MsgConsumerAddition) String() string

func (*MsgConsumerAddition) Unmarshal

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

func (*MsgConsumerAddition) XXX_DiscardUnknown

func (m *MsgConsumerAddition) XXX_DiscardUnknown()

func (*MsgConsumerAddition) XXX_Marshal

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

func (*MsgConsumerAddition) XXX_Merge

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

func (*MsgConsumerAddition) XXX_Size

func (m *MsgConsumerAddition) XXX_Size() int

func (*MsgConsumerAddition) XXX_Unmarshal

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

type MsgConsumerModification deprecated

type MsgConsumerModification struct {
	// the title of the proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// the description of the proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// the chain-id of the consumer chain to be modified
	ChainId string `protobuf:"bytes,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
	// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
	// have to validate the proposed consumer chain. top_N can either be 0 or any value in [50, 100].
	// A chain can join with top_N == 0 as an Opt In chain, or with top_N ∈ [50, 100] as a Top N chain.
	Top_N uint32 `protobuf:"varint,4,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// Corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain. For instance, if
	// `validators_power_cap` is set to 32, it means that no validator can have more than 32% of the voting power on the
	// consumer chain. Note that this might not be feasible. For example, think of a consumer chain with only
	// 5 validators and with `validators_power_cap` set to 10%. In such a scenario, at least one validator would need
	// to have more than 20% of the total voting power. Therefore, `validators_power_cap` operates on a best-effort basis.
	ValidatorsPowerCap uint32 `protobuf:"varint,5,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,6,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate
	// the consumer chain.
	Allowlist []string `protobuf:"bytes,7,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// Corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain.
	Denylist []string `protobuf:"bytes,8,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// signer address
	Authority string `protobuf:"bytes,9,opt,name=authority,proto3" json:"authority,omitempty"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,10,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool `protobuf:"varint,11,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
}

[DEPRECATED] Use `MsgUpdateConsumer` instead

Deprecated: Do not use.

func (*MsgConsumerModification) Descriptor

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

func (*MsgConsumerModification) GetAllowInactiveVals

func (m *MsgConsumerModification) GetAllowInactiveVals() bool

func (*MsgConsumerModification) GetAllowlist

func (m *MsgConsumerModification) GetAllowlist() []string

func (*MsgConsumerModification) GetAuthority

func (m *MsgConsumerModification) GetAuthority() string

func (*MsgConsumerModification) GetChainId

func (m *MsgConsumerModification) GetChainId() string

func (*MsgConsumerModification) GetDenylist

func (m *MsgConsumerModification) GetDenylist() []string

func (*MsgConsumerModification) GetDescription

func (m *MsgConsumerModification) GetDescription() string

func (*MsgConsumerModification) GetMinStake

func (m *MsgConsumerModification) GetMinStake() uint64

func (*MsgConsumerModification) GetTitle

func (m *MsgConsumerModification) GetTitle() string

func (*MsgConsumerModification) GetTop_N

func (m *MsgConsumerModification) GetTop_N() uint32

func (*MsgConsumerModification) GetValidatorSetCap

func (m *MsgConsumerModification) GetValidatorSetCap() uint32

func (*MsgConsumerModification) GetValidatorsPowerCap

func (m *MsgConsumerModification) GetValidatorsPowerCap() uint32

func (*MsgConsumerModification) Marshal

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

func (*MsgConsumerModification) MarshalTo

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

func (*MsgConsumerModification) MarshalToSizedBuffer

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

func (*MsgConsumerModification) ProtoMessage

func (*MsgConsumerModification) ProtoMessage()

func (*MsgConsumerModification) Reset

func (m *MsgConsumerModification) Reset()

func (*MsgConsumerModification) Size

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

func (*MsgConsumerModification) String

func (m *MsgConsumerModification) String() string

func (*MsgConsumerModification) Unmarshal

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

func (*MsgConsumerModification) XXX_DiscardUnknown

func (m *MsgConsumerModification) XXX_DiscardUnknown()

func (*MsgConsumerModification) XXX_Marshal

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

func (*MsgConsumerModification) XXX_Merge

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

func (*MsgConsumerModification) XXX_Size

func (m *MsgConsumerModification) XXX_Size() int

func (*MsgConsumerModification) XXX_Unmarshal

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

type MsgConsumerModificationResponse

type MsgConsumerModificationResponse struct {
}

func (*MsgConsumerModificationResponse) Descriptor

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

func (*MsgConsumerModificationResponse) Marshal

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

func (*MsgConsumerModificationResponse) MarshalTo

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

func (*MsgConsumerModificationResponse) MarshalToSizedBuffer

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

func (*MsgConsumerModificationResponse) ProtoMessage

func (*MsgConsumerModificationResponse) ProtoMessage()

func (*MsgConsumerModificationResponse) Reset

func (*MsgConsumerModificationResponse) Size

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

func (*MsgConsumerModificationResponse) String

func (*MsgConsumerModificationResponse) Unmarshal

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

func (*MsgConsumerModificationResponse) XXX_DiscardUnknown

func (m *MsgConsumerModificationResponse) XXX_DiscardUnknown()

func (*MsgConsumerModificationResponse) XXX_Marshal

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

func (*MsgConsumerModificationResponse) XXX_Merge

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

func (*MsgConsumerModificationResponse) XXX_Size

func (m *MsgConsumerModificationResponse) XXX_Size() int

func (*MsgConsumerModificationResponse) XXX_Unmarshal

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

type MsgConsumerRemoval deprecated

type MsgConsumerRemoval struct {
	// the chain-id of the consumer chain to be stopped
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// the time on the provider chain at which all validators are responsible to
	// stop their consumer chain validator node
	StopTime time.Time `protobuf:"bytes,2,opt,name=stop_time,json=stopTime,proto3,stdtime" json:"stop_time"`
	// signer address
	Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"`
}

[DEPRECATED] Use `MsgRemoveConsumer` instead

Deprecated: Do not use.

func (*MsgConsumerRemoval) Descriptor

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

func (*MsgConsumerRemoval) GetAuthority

func (m *MsgConsumerRemoval) GetAuthority() string

func (*MsgConsumerRemoval) GetChainId

func (m *MsgConsumerRemoval) GetChainId() string

func (*MsgConsumerRemoval) GetStopTime

func (m *MsgConsumerRemoval) GetStopTime() time.Time

func (*MsgConsumerRemoval) Marshal

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

func (*MsgConsumerRemoval) MarshalTo

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

func (*MsgConsumerRemoval) MarshalToSizedBuffer

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

func (*MsgConsumerRemoval) ProtoMessage

func (*MsgConsumerRemoval) ProtoMessage()

func (*MsgConsumerRemoval) Reset

func (m *MsgConsumerRemoval) Reset()

func (*MsgConsumerRemoval) Size

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

func (*MsgConsumerRemoval) String

func (m *MsgConsumerRemoval) String() string

func (*MsgConsumerRemoval) Unmarshal

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

func (*MsgConsumerRemoval) XXX_DiscardUnknown

func (m *MsgConsumerRemoval) XXX_DiscardUnknown()

func (*MsgConsumerRemoval) XXX_Marshal

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

func (*MsgConsumerRemoval) XXX_Merge

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

func (*MsgConsumerRemoval) XXX_Size

func (m *MsgConsumerRemoval) XXX_Size() int

func (*MsgConsumerRemoval) XXX_Unmarshal

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

type MsgCreateConsumer

type MsgCreateConsumer struct {
	// Submitter address. If the message is successfully handled, the ownership of
	// the consumer chain will given to this address.
	Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
	// the chain id of the new consumer chain
	ChainId                  string                            `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Metadata                 ConsumerMetadata                  `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata"`
	InitializationParameters *ConsumerInitializationParameters `` /* 133-byte string literal not displayed */
	PowerShapingParameters   *PowerShapingParameters           `` /* 129-byte string literal not displayed */
	// allowlisted reward denoms of the consumer
	AllowlistedRewardDenoms *AllowlistedRewardDenoms `` /* 132-byte string literal not displayed */
}

MsgCreateConsumer defines the message that creates a consumer chain

func NewMsgCreateConsumer

func NewMsgCreateConsumer(submitter, chainId string, metadata ConsumerMetadata,
	initializationParameters *ConsumerInitializationParameters, powerShapingParameters *PowerShapingParameters,
	allowlistedRewardDenoms *AllowlistedRewardDenoms,
) (*MsgCreateConsumer, error)

NewMsgCreateConsumer creates a new MsgCreateConsumer instance

func (*MsgCreateConsumer) Descriptor

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

func (*MsgCreateConsumer) GetAllowlistedRewardDenoms added in v6.2.0

func (m *MsgCreateConsumer) GetAllowlistedRewardDenoms() *AllowlistedRewardDenoms

func (*MsgCreateConsumer) GetChainId

func (m *MsgCreateConsumer) GetChainId() string

func (*MsgCreateConsumer) GetInitializationParameters

func (m *MsgCreateConsumer) GetInitializationParameters() *ConsumerInitializationParameters

func (*MsgCreateConsumer) GetMetadata

func (m *MsgCreateConsumer) GetMetadata() ConsumerMetadata

func (*MsgCreateConsumer) GetPowerShapingParameters

func (m *MsgCreateConsumer) GetPowerShapingParameters() *PowerShapingParameters

func (*MsgCreateConsumer) GetSubmitter

func (m *MsgCreateConsumer) GetSubmitter() string

func (*MsgCreateConsumer) Marshal

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

func (*MsgCreateConsumer) MarshalTo

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

func (*MsgCreateConsumer) MarshalToSizedBuffer

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

func (*MsgCreateConsumer) ProtoMessage

func (*MsgCreateConsumer) ProtoMessage()

func (*MsgCreateConsumer) Reset

func (m *MsgCreateConsumer) Reset()

func (*MsgCreateConsumer) Size

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

func (*MsgCreateConsumer) String

func (m *MsgCreateConsumer) String() string

func (*MsgCreateConsumer) Unmarshal

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

func (MsgCreateConsumer) ValidateBasic

func (msg MsgCreateConsumer) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgCreateConsumer) XXX_DiscardUnknown

func (m *MsgCreateConsumer) XXX_DiscardUnknown()

func (*MsgCreateConsumer) XXX_Marshal

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

func (*MsgCreateConsumer) XXX_Merge

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

func (*MsgCreateConsumer) XXX_Size

func (m *MsgCreateConsumer) XXX_Size() int

func (*MsgCreateConsumer) XXX_Unmarshal

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

type MsgCreateConsumerResponse

type MsgCreateConsumerResponse struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

MsgCreateConsumerResponse defines response type for MsgCreateConsumer

func (*MsgCreateConsumerResponse) Descriptor

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

func (*MsgCreateConsumerResponse) GetConsumerId

func (m *MsgCreateConsumerResponse) GetConsumerId() string

func (*MsgCreateConsumerResponse) Marshal

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

func (*MsgCreateConsumerResponse) MarshalTo

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

func (*MsgCreateConsumerResponse) MarshalToSizedBuffer

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

func (*MsgCreateConsumerResponse) ProtoMessage

func (*MsgCreateConsumerResponse) ProtoMessage()

func (*MsgCreateConsumerResponse) Reset

func (m *MsgCreateConsumerResponse) Reset()

func (*MsgCreateConsumerResponse) Size

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

func (*MsgCreateConsumerResponse) String

func (m *MsgCreateConsumerResponse) String() string

func (*MsgCreateConsumerResponse) Unmarshal

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

func (*MsgCreateConsumerResponse) XXX_DiscardUnknown

func (m *MsgCreateConsumerResponse) XXX_DiscardUnknown()

func (*MsgCreateConsumerResponse) XXX_Marshal

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

func (*MsgCreateConsumerResponse) XXX_Merge

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

func (*MsgCreateConsumerResponse) XXX_Size

func (m *MsgCreateConsumerResponse) XXX_Size() int

func (*MsgCreateConsumerResponse) XXX_Unmarshal

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

type MsgOptIn

type MsgOptIn struct {
	// [DEPRECATED] use `consumer_id` instead
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Deprecated: Do not use.
	// the validator address on the provider
	ProviderAddr string `protobuf:"bytes,2,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty" yaml:"address"`
	// (optional) The consensus public key to use on the consumer in json string format corresponding to proto-any,
	// for example `{"@type":"/cosmos.crypto.ed25519.PubKey","key":"Ui5Gf1+mtWUdH8u3xlmzdKID+F3PK0sfXZ73GZ6q6is="}`.
	// This field is optional and can remain empty (i.e., `consumer_key = ""`). A validator can always change the
	// consumer public key at a later stage by issuing a `MsgAssignConsumerKey` message.
	ConsumerKey string `protobuf:"bytes,3,opt,name=consumer_key,json=consumerKey,proto3" json:"consumer_key,omitempty"`
	// submitter address
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
	// the consumer id of the consumer chain to opt in to
	ConsumerId string `protobuf:"bytes,5,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func NewMsgOptIn

func NewMsgOptIn(consumerId string, providerValidatorAddress sdk.ValAddress, consumerConsensusPubKey, signer string) (*MsgOptIn, error)

NewMsgOptIn creates a new NewMsgOptIn instance.

func (*MsgOptIn) Descriptor

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

func (*MsgOptIn) Marshal

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

func (*MsgOptIn) MarshalTo

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

func (*MsgOptIn) MarshalToSizedBuffer

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

func (*MsgOptIn) ProtoMessage

func (*MsgOptIn) ProtoMessage()

func (*MsgOptIn) Reset

func (m *MsgOptIn) Reset()

func (*MsgOptIn) Size

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

func (*MsgOptIn) String

func (m *MsgOptIn) String() string

func (*MsgOptIn) Unmarshal

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

func (MsgOptIn) ValidateBasic

func (msg MsgOptIn) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgOptIn) XXX_DiscardUnknown

func (m *MsgOptIn) XXX_DiscardUnknown()

func (*MsgOptIn) XXX_Marshal

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

func (*MsgOptIn) XXX_Merge

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

func (*MsgOptIn) XXX_Size

func (m *MsgOptIn) XXX_Size() int

func (*MsgOptIn) XXX_Unmarshal

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

type MsgOptInResponse

type MsgOptInResponse struct {
}

func (*MsgOptInResponse) Descriptor

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

func (*MsgOptInResponse) Marshal

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

func (*MsgOptInResponse) MarshalTo

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

func (*MsgOptInResponse) MarshalToSizedBuffer

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

func (*MsgOptInResponse) ProtoMessage

func (*MsgOptInResponse) ProtoMessage()

func (*MsgOptInResponse) Reset

func (m *MsgOptInResponse) Reset()

func (*MsgOptInResponse) Size

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

func (*MsgOptInResponse) String

func (m *MsgOptInResponse) String() string

func (*MsgOptInResponse) Unmarshal

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

func (*MsgOptInResponse) XXX_DiscardUnknown

func (m *MsgOptInResponse) XXX_DiscardUnknown()

func (*MsgOptInResponse) XXX_Marshal

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

func (*MsgOptInResponse) XXX_Merge

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

func (*MsgOptInResponse) XXX_Size

func (m *MsgOptInResponse) XXX_Size() int

func (*MsgOptInResponse) XXX_Unmarshal

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

type MsgOptOut

type MsgOptOut struct {
	// [DEPRECATED] use `consumer_id` instead
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Deprecated: Do not use.
	// the validator address on the provider
	ProviderAddr string `protobuf:"bytes,2,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty" yaml:"address"`
	// submitter address
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
	// the consumer id of the consumer chain to opt out from
	ConsumerId string `protobuf:"bytes,4,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func NewMsgOptOut

func NewMsgOptOut(consumerId string, providerValidatorAddress sdk.ValAddress, signer string) (*MsgOptOut, error)

NewMsgOptOut creates a new NewMsgOptIn instance.

func (*MsgOptOut) Descriptor

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

func (*MsgOptOut) Marshal

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

func (*MsgOptOut) MarshalTo

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

func (*MsgOptOut) MarshalToSizedBuffer

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

func (*MsgOptOut) ProtoMessage

func (*MsgOptOut) ProtoMessage()

func (*MsgOptOut) Reset

func (m *MsgOptOut) Reset()

func (*MsgOptOut) Size

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

func (*MsgOptOut) String

func (m *MsgOptOut) String() string

func (*MsgOptOut) Unmarshal

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

func (MsgOptOut) ValidateBasic

func (msg MsgOptOut) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgOptOut) XXX_DiscardUnknown

func (m *MsgOptOut) XXX_DiscardUnknown()

func (*MsgOptOut) XXX_Marshal

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

func (*MsgOptOut) XXX_Merge

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

func (*MsgOptOut) XXX_Size

func (m *MsgOptOut) XXX_Size() int

func (*MsgOptOut) XXX_Unmarshal

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

type MsgOptOutResponse

type MsgOptOutResponse struct {
}

func (*MsgOptOutResponse) Descriptor

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

func (*MsgOptOutResponse) Marshal

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

func (*MsgOptOutResponse) MarshalTo

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

func (*MsgOptOutResponse) MarshalToSizedBuffer

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

func (*MsgOptOutResponse) ProtoMessage

func (*MsgOptOutResponse) ProtoMessage()

func (*MsgOptOutResponse) Reset

func (m *MsgOptOutResponse) Reset()

func (*MsgOptOutResponse) Size

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

func (*MsgOptOutResponse) String

func (m *MsgOptOutResponse) String() string

func (*MsgOptOutResponse) Unmarshal

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

func (*MsgOptOutResponse) XXX_DiscardUnknown

func (m *MsgOptOutResponse) XXX_DiscardUnknown()

func (*MsgOptOutResponse) XXX_Marshal

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

func (*MsgOptOutResponse) XXX_Merge

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

func (*MsgOptOutResponse) XXX_Size

func (m *MsgOptOutResponse) XXX_Size() int

func (*MsgOptOutResponse) XXX_Unmarshal

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

type MsgRemoveConsumer

type MsgRemoveConsumer struct {
	// the consumer id of the consumer chain to be stopped
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
	// the address of the owner of the consumer chain to be stopped
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgRemoveConsumer defines the message used to remove (and stop) a consumer chain. If it passes, all the consumer chain's state is eventually removed from the provider chain.

func NewMsgRemoveConsumer

func NewMsgRemoveConsumer(owner, consumerId string) (*MsgRemoveConsumer, error)

NewMsgRemoveConsumer creates a new MsgRemoveConsumer instance

func (*MsgRemoveConsumer) Descriptor

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

func (*MsgRemoveConsumer) GetConsumerId

func (m *MsgRemoveConsumer) GetConsumerId() string

func (*MsgRemoveConsumer) GetOwner

func (m *MsgRemoveConsumer) GetOwner() string

func (*MsgRemoveConsumer) Marshal

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

func (*MsgRemoveConsumer) MarshalTo

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

func (*MsgRemoveConsumer) MarshalToSizedBuffer

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

func (*MsgRemoveConsumer) ProtoMessage

func (*MsgRemoveConsumer) ProtoMessage()

func (*MsgRemoveConsumer) Reset

func (m *MsgRemoveConsumer) Reset()

func (*MsgRemoveConsumer) Size

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

func (*MsgRemoveConsumer) String

func (m *MsgRemoveConsumer) String() string

func (*MsgRemoveConsumer) Unmarshal

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

func (MsgRemoveConsumer) ValidateBasic

func (msg MsgRemoveConsumer) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgRemoveConsumer) XXX_DiscardUnknown

func (m *MsgRemoveConsumer) XXX_DiscardUnknown()

func (*MsgRemoveConsumer) XXX_Marshal

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

func (*MsgRemoveConsumer) XXX_Merge

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

func (*MsgRemoveConsumer) XXX_Size

func (m *MsgRemoveConsumer) XXX_Size() int

func (*MsgRemoveConsumer) XXX_Unmarshal

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

type MsgRemoveConsumerResponse

type MsgRemoveConsumerResponse struct {
}

MsgRemoveConsumerResponse defines response type for MsgRemoveConsumer messages

func (*MsgRemoveConsumerResponse) Descriptor

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

func (*MsgRemoveConsumerResponse) Marshal

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

func (*MsgRemoveConsumerResponse) MarshalTo

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

func (*MsgRemoveConsumerResponse) MarshalToSizedBuffer

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

func (*MsgRemoveConsumerResponse) ProtoMessage

func (*MsgRemoveConsumerResponse) ProtoMessage()

func (*MsgRemoveConsumerResponse) Reset

func (m *MsgRemoveConsumerResponse) Reset()

func (*MsgRemoveConsumerResponse) Size

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

func (*MsgRemoveConsumerResponse) String

func (m *MsgRemoveConsumerResponse) String() string

func (*MsgRemoveConsumerResponse) Unmarshal

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

func (*MsgRemoveConsumerResponse) XXX_DiscardUnknown

func (m *MsgRemoveConsumerResponse) XXX_DiscardUnknown()

func (*MsgRemoveConsumerResponse) XXX_Marshal

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

func (*MsgRemoveConsumerResponse) XXX_Merge

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

func (*MsgRemoveConsumerResponse) XXX_Size

func (m *MsgRemoveConsumerResponse) XXX_Size() int

func (*MsgRemoveConsumerResponse) XXX_Unmarshal

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

type MsgSetConsumerCommissionRate

type MsgSetConsumerCommissionRate struct {
	// The validator address on the provider
	ProviderAddr string `protobuf:"bytes,1,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty" yaml:"address"`
	// [DEPRECATED] use `consumer_id` instead
	ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Deprecated: Do not use.
	// The rate to charge delegators on the consumer chain, as a fraction
	// TODO: migrate rate from sdk.Dec to math.LegacyDec
	Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,3,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"`
	// submitter address
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty"`
	// the consumer id of the consumer chain to set the commission rate
	ConsumerId string `protobuf:"bytes,5,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

MsgSetConsumerCommissionRate allows validators to set a per-consumer chain commission rate

func NewMsgSetConsumerCommissionRate

func NewMsgSetConsumerCommissionRate(
	consumerId string,
	commission math.LegacyDec,
	providerValidatorAddress sdk.ValAddress,
	signer string,
) *MsgSetConsumerCommissionRate

NewMsgSetConsumerCommissionRate creates a new MsgSetConsumerCommissionRate msg instance.

func (*MsgSetConsumerCommissionRate) Descriptor

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

func (*MsgSetConsumerCommissionRate) Marshal

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

func (*MsgSetConsumerCommissionRate) MarshalTo

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

func (*MsgSetConsumerCommissionRate) MarshalToSizedBuffer

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

func (*MsgSetConsumerCommissionRate) ProtoMessage

func (*MsgSetConsumerCommissionRate) ProtoMessage()

func (*MsgSetConsumerCommissionRate) Reset

func (m *MsgSetConsumerCommissionRate) Reset()

func (*MsgSetConsumerCommissionRate) Size

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

func (*MsgSetConsumerCommissionRate) String

func (*MsgSetConsumerCommissionRate) Unmarshal

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

func (MsgSetConsumerCommissionRate) ValidateBasic

func (msg MsgSetConsumerCommissionRate) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgSetConsumerCommissionRate) XXX_DiscardUnknown

func (m *MsgSetConsumerCommissionRate) XXX_DiscardUnknown()

func (*MsgSetConsumerCommissionRate) XXX_Marshal

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

func (*MsgSetConsumerCommissionRate) XXX_Merge

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

func (*MsgSetConsumerCommissionRate) XXX_Size

func (m *MsgSetConsumerCommissionRate) XXX_Size() int

func (*MsgSetConsumerCommissionRate) XXX_Unmarshal

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

type MsgSetConsumerCommissionRateResponse

type MsgSetConsumerCommissionRateResponse struct {
}

func (*MsgSetConsumerCommissionRateResponse) Descriptor

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

func (*MsgSetConsumerCommissionRateResponse) Marshal

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

func (*MsgSetConsumerCommissionRateResponse) MarshalTo

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

func (*MsgSetConsumerCommissionRateResponse) MarshalToSizedBuffer

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

func (*MsgSetConsumerCommissionRateResponse) ProtoMessage

func (*MsgSetConsumerCommissionRateResponse) ProtoMessage()

func (*MsgSetConsumerCommissionRateResponse) Reset

func (*MsgSetConsumerCommissionRateResponse) Size

func (*MsgSetConsumerCommissionRateResponse) String

func (*MsgSetConsumerCommissionRateResponse) Unmarshal

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

func (*MsgSetConsumerCommissionRateResponse) XXX_DiscardUnknown

func (m *MsgSetConsumerCommissionRateResponse) XXX_DiscardUnknown()

func (*MsgSetConsumerCommissionRateResponse) XXX_Marshal

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

func (*MsgSetConsumerCommissionRateResponse) XXX_Merge

func (*MsgSetConsumerCommissionRateResponse) XXX_Size

func (*MsgSetConsumerCommissionRateResponse) XXX_Unmarshal

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

type MsgSubmitConsumerDoubleVoting

type MsgSubmitConsumerDoubleVoting struct {
	Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
	// The equivocation of the consumer chain wrapping
	// an evidence of a validator that signed two conflicting votes
	DuplicateVoteEvidence *types.DuplicateVoteEvidence `` /* 126-byte string literal not displayed */
	// The light client header of the infraction block
	InfractionBlockHeader *_07_tendermint.Header `` /* 126-byte string literal not displayed */
	// the consumer id of the consumer chain where the double-voting took place
	ConsumerId string `protobuf:"bytes,4,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

MsgSubmitConsumerDoubleVoting defines a message that reports a double signing infraction observed on a consumer chain

func NewMsgSubmitConsumerDoubleVoting

func NewMsgSubmitConsumerDoubleVoting(
	consumerId string,
	submitter sdk.AccAddress,
	ev *tmtypes.DuplicateVoteEvidence,
	header *ibctmtypes.Header,
) (*MsgSubmitConsumerDoubleVoting, error)

func (*MsgSubmitConsumerDoubleVoting) Descriptor

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

func (*MsgSubmitConsumerDoubleVoting) Marshal

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

func (*MsgSubmitConsumerDoubleVoting) MarshalTo

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

func (*MsgSubmitConsumerDoubleVoting) MarshalToSizedBuffer

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

func (*MsgSubmitConsumerDoubleVoting) ProtoMessage

func (*MsgSubmitConsumerDoubleVoting) ProtoMessage()

func (*MsgSubmitConsumerDoubleVoting) Reset

func (m *MsgSubmitConsumerDoubleVoting) Reset()

func (*MsgSubmitConsumerDoubleVoting) Size

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

func (*MsgSubmitConsumerDoubleVoting) String

func (*MsgSubmitConsumerDoubleVoting) Unmarshal

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

func (MsgSubmitConsumerDoubleVoting) ValidateBasic

func (msg MsgSubmitConsumerDoubleVoting) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgSubmitConsumerDoubleVoting) XXX_DiscardUnknown

func (m *MsgSubmitConsumerDoubleVoting) XXX_DiscardUnknown()

func (*MsgSubmitConsumerDoubleVoting) XXX_Marshal

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

func (*MsgSubmitConsumerDoubleVoting) XXX_Merge

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

func (*MsgSubmitConsumerDoubleVoting) XXX_Size

func (m *MsgSubmitConsumerDoubleVoting) XXX_Size() int

func (*MsgSubmitConsumerDoubleVoting) XXX_Unmarshal

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

type MsgSubmitConsumerDoubleVotingResponse

type MsgSubmitConsumerDoubleVotingResponse struct {
}

func (*MsgSubmitConsumerDoubleVotingResponse) Descriptor

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

func (*MsgSubmitConsumerDoubleVotingResponse) Marshal

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

func (*MsgSubmitConsumerDoubleVotingResponse) MarshalTo

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

func (*MsgSubmitConsumerDoubleVotingResponse) MarshalToSizedBuffer

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

func (*MsgSubmitConsumerDoubleVotingResponse) ProtoMessage

func (*MsgSubmitConsumerDoubleVotingResponse) ProtoMessage()

func (*MsgSubmitConsumerDoubleVotingResponse) Reset

func (*MsgSubmitConsumerDoubleVotingResponse) Size

func (*MsgSubmitConsumerDoubleVotingResponse) String

func (*MsgSubmitConsumerDoubleVotingResponse) Unmarshal

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

func (*MsgSubmitConsumerDoubleVotingResponse) XXX_DiscardUnknown

func (m *MsgSubmitConsumerDoubleVotingResponse) XXX_DiscardUnknown()

func (*MsgSubmitConsumerDoubleVotingResponse) XXX_Marshal

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

func (*MsgSubmitConsumerDoubleVotingResponse) XXX_Merge

func (*MsgSubmitConsumerDoubleVotingResponse) XXX_Size

func (*MsgSubmitConsumerDoubleVotingResponse) XXX_Unmarshal

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

type MsgSubmitConsumerMisbehaviour

type MsgSubmitConsumerMisbehaviour struct {
	Submitter string `protobuf:"bytes,1,opt,name=submitter,proto3" json:"submitter,omitempty"`
	// The Misbehaviour of the consumer chain wrapping
	// two conflicting IBC headers
	Misbehaviour *_07_tendermint.Misbehaviour `protobuf:"bytes,2,opt,name=misbehaviour,proto3" json:"misbehaviour,omitempty"`
	// the consumer id of the consumer chain where the misbehaviour occurred
	ConsumerId string `protobuf:"bytes,3,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

MsgSubmitConsumerMisbehaviour defines a message that reports a light client attack, also known as a misbehaviour, observed on a consumer chain

func NewMsgSubmitConsumerMisbehaviour

func NewMsgSubmitConsumerMisbehaviour(
	consumerId string,
	submitter sdk.AccAddress,
	misbehaviour *ibctmtypes.Misbehaviour,
) (*MsgSubmitConsumerMisbehaviour, error)

func (*MsgSubmitConsumerMisbehaviour) Descriptor

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

func (*MsgSubmitConsumerMisbehaviour) Marshal

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

func (*MsgSubmitConsumerMisbehaviour) MarshalTo

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

func (*MsgSubmitConsumerMisbehaviour) MarshalToSizedBuffer

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

func (*MsgSubmitConsumerMisbehaviour) ProtoMessage

func (*MsgSubmitConsumerMisbehaviour) ProtoMessage()

func (*MsgSubmitConsumerMisbehaviour) Reset

func (m *MsgSubmitConsumerMisbehaviour) Reset()

func (*MsgSubmitConsumerMisbehaviour) Size

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

func (*MsgSubmitConsumerMisbehaviour) String

func (*MsgSubmitConsumerMisbehaviour) Unmarshal

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

func (MsgSubmitConsumerMisbehaviour) ValidateBasic

func (msg MsgSubmitConsumerMisbehaviour) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgSubmitConsumerMisbehaviour) XXX_DiscardUnknown

func (m *MsgSubmitConsumerMisbehaviour) XXX_DiscardUnknown()

func (*MsgSubmitConsumerMisbehaviour) XXX_Marshal

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

func (*MsgSubmitConsumerMisbehaviour) XXX_Merge

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

func (*MsgSubmitConsumerMisbehaviour) XXX_Size

func (m *MsgSubmitConsumerMisbehaviour) XXX_Size() int

func (*MsgSubmitConsumerMisbehaviour) XXX_Unmarshal

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

type MsgSubmitConsumerMisbehaviourResponse

type MsgSubmitConsumerMisbehaviourResponse struct {
}

func (*MsgSubmitConsumerMisbehaviourResponse) Descriptor

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

func (*MsgSubmitConsumerMisbehaviourResponse) Marshal

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

func (*MsgSubmitConsumerMisbehaviourResponse) MarshalTo

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

func (*MsgSubmitConsumerMisbehaviourResponse) MarshalToSizedBuffer

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

func (*MsgSubmitConsumerMisbehaviourResponse) ProtoMessage

func (*MsgSubmitConsumerMisbehaviourResponse) ProtoMessage()

func (*MsgSubmitConsumerMisbehaviourResponse) Reset

func (*MsgSubmitConsumerMisbehaviourResponse) Size

func (*MsgSubmitConsumerMisbehaviourResponse) String

func (*MsgSubmitConsumerMisbehaviourResponse) Unmarshal

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

func (*MsgSubmitConsumerMisbehaviourResponse) XXX_DiscardUnknown

func (m *MsgSubmitConsumerMisbehaviourResponse) XXX_DiscardUnknown()

func (*MsgSubmitConsumerMisbehaviourResponse) XXX_Marshal

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

func (*MsgSubmitConsumerMisbehaviourResponse) XXX_Merge

func (*MsgSubmitConsumerMisbehaviourResponse) XXX_Size

func (*MsgSubmitConsumerMisbehaviourResponse) XXX_Unmarshal

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

type MsgUpdateConsumer

type MsgUpdateConsumer struct {
	// the address of the owner of the consumer chain to be updated
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// the consumer id of the consumer chain to be updated
	ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
	// the new owner of the consumer when updated
	NewOwnerAddress string `protobuf:"bytes,3,opt,name=new_owner_address,json=newOwnerAddress,proto3" json:"new_owner_address,omitempty"`
	// the metadata of the consumer when updated
	Metadata *ConsumerMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// initialization parameters can only be updated before a chain has launched
	InitializationParameters *ConsumerInitializationParameters `` /* 133-byte string literal not displayed */
	// the power-shaping parameters of the consumer when updated
	PowerShapingParameters *PowerShapingParameters `` /* 129-byte string literal not displayed */
	// allowlisted reward denoms of the consumer (if provided they overwrite previously set reward denoms)
	AllowlistedRewardDenoms *AllowlistedRewardDenoms `` /* 132-byte string literal not displayed */
}

MsgUpdateConsumer defines the message used to modify a consumer chain.

func NewMsgUpdateConsumer

func NewMsgUpdateConsumer(owner, consumerId, ownerAddress string, metadata *ConsumerMetadata,
	initializationParameters *ConsumerInitializationParameters, powerShapingParameters *PowerShapingParameters,
	allowlistedRewardDenoms *AllowlistedRewardDenoms,
) (*MsgUpdateConsumer, error)

NewMsgUpdateConsumer creates a new MsgUpdateConsumer instance

func (*MsgUpdateConsumer) Descriptor

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

func (*MsgUpdateConsumer) GetAllowlistedRewardDenoms added in v6.2.0

func (m *MsgUpdateConsumer) GetAllowlistedRewardDenoms() *AllowlistedRewardDenoms

func (*MsgUpdateConsumer) GetConsumerId

func (m *MsgUpdateConsumer) GetConsumerId() string

func (*MsgUpdateConsumer) GetInitializationParameters

func (m *MsgUpdateConsumer) GetInitializationParameters() *ConsumerInitializationParameters

func (*MsgUpdateConsumer) GetMetadata

func (m *MsgUpdateConsumer) GetMetadata() *ConsumerMetadata

func (*MsgUpdateConsumer) GetNewOwnerAddress

func (m *MsgUpdateConsumer) GetNewOwnerAddress() string

func (*MsgUpdateConsumer) GetOwner

func (m *MsgUpdateConsumer) GetOwner() string

func (*MsgUpdateConsumer) GetPowerShapingParameters

func (m *MsgUpdateConsumer) GetPowerShapingParameters() *PowerShapingParameters

func (*MsgUpdateConsumer) Marshal

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

func (*MsgUpdateConsumer) MarshalTo

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

func (*MsgUpdateConsumer) MarshalToSizedBuffer

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

func (*MsgUpdateConsumer) ProtoMessage

func (*MsgUpdateConsumer) ProtoMessage()

func (*MsgUpdateConsumer) Reset

func (m *MsgUpdateConsumer) Reset()

func (*MsgUpdateConsumer) Size

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

func (*MsgUpdateConsumer) String

func (m *MsgUpdateConsumer) String() string

func (*MsgUpdateConsumer) Unmarshal

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

func (MsgUpdateConsumer) ValidateBasic

func (msg MsgUpdateConsumer) ValidateBasic() error

ValidateBasic implements the sdk.HasValidateBasic interface.

func (*MsgUpdateConsumer) XXX_DiscardUnknown

func (m *MsgUpdateConsumer) XXX_DiscardUnknown()

func (*MsgUpdateConsumer) XXX_Marshal

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

func (*MsgUpdateConsumer) XXX_Merge

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

func (*MsgUpdateConsumer) XXX_Size

func (m *MsgUpdateConsumer) XXX_Size() int

func (*MsgUpdateConsumer) XXX_Unmarshal

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

type MsgUpdateConsumerResponse

type MsgUpdateConsumerResponse struct {
}

MsgUpdateConsumerResponse defines response type for MsgUpdateConsumer messages

func (*MsgUpdateConsumerResponse) Descriptor

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

func (*MsgUpdateConsumerResponse) Marshal

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

func (*MsgUpdateConsumerResponse) MarshalTo

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

func (*MsgUpdateConsumerResponse) MarshalToSizedBuffer

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

func (*MsgUpdateConsumerResponse) ProtoMessage

func (*MsgUpdateConsumerResponse) ProtoMessage()

func (*MsgUpdateConsumerResponse) Reset

func (m *MsgUpdateConsumerResponse) Reset()

func (*MsgUpdateConsumerResponse) Size

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

func (*MsgUpdateConsumerResponse) String

func (m *MsgUpdateConsumerResponse) String() string

func (*MsgUpdateConsumerResponse) Unmarshal

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

func (*MsgUpdateConsumerResponse) XXX_DiscardUnknown

func (m *MsgUpdateConsumerResponse) XXX_DiscardUnknown()

func (*MsgUpdateConsumerResponse) XXX_Marshal

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

func (*MsgUpdateConsumerResponse) XXX_Merge

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

func (*MsgUpdateConsumerResponse) XXX_Size

func (m *MsgUpdateConsumerResponse) XXX_Size() int

func (*MsgUpdateConsumerResponse) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/provider parameters to update.
	Params Params `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() Params

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 PairValConAddrProviderAndConsumer

type PairValConAddrProviderAndConsumer struct {
	// The consensus address of the validator on the provider chain
	ProviderAddress string `` /* 130-byte string literal not displayed */
	// The consensus address of the validator on the consumer chain
	ConsumerAddress string            `` /* 130-byte string literal not displayed */
	ConsumerKey     *crypto.PublicKey `protobuf:"bytes,3,opt,name=consumer_key,json=consumerKey,proto3" json:"consumer_key,omitempty"`
}

func (*PairValConAddrProviderAndConsumer) Descriptor

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

func (*PairValConAddrProviderAndConsumer) GetConsumerAddress

func (m *PairValConAddrProviderAndConsumer) GetConsumerAddress() string

func (*PairValConAddrProviderAndConsumer) GetConsumerKey

func (m *PairValConAddrProviderAndConsumer) GetConsumerKey() *crypto.PublicKey

func (*PairValConAddrProviderAndConsumer) GetProviderAddress

func (m *PairValConAddrProviderAndConsumer) GetProviderAddress() string

func (*PairValConAddrProviderAndConsumer) Marshal

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

func (*PairValConAddrProviderAndConsumer) MarshalTo

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

func (*PairValConAddrProviderAndConsumer) MarshalToSizedBuffer

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

func (*PairValConAddrProviderAndConsumer) ProtoMessage

func (*PairValConAddrProviderAndConsumer) ProtoMessage()

func (*PairValConAddrProviderAndConsumer) Reset

func (*PairValConAddrProviderAndConsumer) Size

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

func (*PairValConAddrProviderAndConsumer) String

func (*PairValConAddrProviderAndConsumer) Unmarshal

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

func (*PairValConAddrProviderAndConsumer) XXX_DiscardUnknown

func (m *PairValConAddrProviderAndConsumer) XXX_DiscardUnknown()

func (*PairValConAddrProviderAndConsumer) XXX_Marshal

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

func (*PairValConAddrProviderAndConsumer) XXX_Merge

func (*PairValConAddrProviderAndConsumer) XXX_Size

func (m *PairValConAddrProviderAndConsumer) XXX_Size() int

func (*PairValConAddrProviderAndConsumer) XXX_Unmarshal

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

type Params

type Params struct {
	TemplateClient *_07_tendermint.ClientState `protobuf:"bytes,1,opt,name=template_client,json=templateClient,proto3" json:"template_client,omitempty"`
	// TrustingPeriodFraction is used to compute the consumer and provider IBC
	// client's TrustingPeriod from the chain defined UnbondingPeriod
	TrustingPeriodFraction string `` /* 129-byte string literal not displayed */
	// Sent IBC packets will timeout after this duration
	CcvTimeoutPeriod time.Duration `protobuf:"bytes,3,opt,name=ccv_timeout_period,json=ccvTimeoutPeriod,proto3,stdduration" json:"ccv_timeout_period"`
	// The period for which the slash meter is replenished
	SlashMeterReplenishPeriod time.Duration `` /* 142-byte string literal not displayed */
	// The fraction of total voting power that is replenished to the slash meter
	// every replenish period. This param also serves as a maximum fraction of
	// total voting power that the slash meter can hold.
	SlashMeterReplenishFraction string `` /* 146-byte string literal not displayed */
	// The fee required to be paid to add a reward denom
	ConsumerRewardDenomRegistrationFee types2.Coin `` /* 159-byte string literal not displayed */
	// The number of blocks that comprise an epoch.
	BlocksPerEpoch int64 `protobuf:"varint,10,opt,name=blocks_per_epoch,json=blocksPerEpoch,proto3" json:"blocks_per_epoch,omitempty"`
	// The number of epochs a validator has to validate a consumer chain in order to start receiving rewards from that chain.
	NumberOfEpochsToStartReceivingRewards int64 `` /* 184-byte string literal not displayed */
	// The maximal number of validators that will be passed
	// to the consensus engine on the provider.
	MaxProviderConsensusValidators int64 `` /* 157-byte string literal not displayed */
}

Params defines the parameters for CCV Provider module

func DefaultParams

func DefaultParams() Params

DefaultParams is the default params for the provider module

func NewParams

func NewParams(
	cs *ibctmtypes.ClientState,
	trustingPeriodFraction string,
	ccvTimeoutPeriod time.Duration,
	slashMeterReplenishPeriod time.Duration,
	slashMeterReplenishFraction string,
	consumerRewardDenomRegistrationFee sdk.Coin,
	blocksPerEpoch int64,
	numberOfEpochsToStartReceivingRewards int64,
	maxProviderConsensusValidators int64,
) Params

NewParams creates new provider parameters with provided arguments

func (*Params) Descriptor

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

func (*Params) GetBlocksPerEpoch

func (m *Params) GetBlocksPerEpoch() int64

func (*Params) GetCcvTimeoutPeriod

func (m *Params) GetCcvTimeoutPeriod() time.Duration

func (*Params) GetConsumerRewardDenomRegistrationFee

func (m *Params) GetConsumerRewardDenomRegistrationFee() types2.Coin

func (*Params) GetMaxProviderConsensusValidators

func (m *Params) GetMaxProviderConsensusValidators() int64

func (*Params) GetNumberOfEpochsToStartReceivingRewards

func (m *Params) GetNumberOfEpochsToStartReceivingRewards() int64

func (*Params) GetSlashMeterReplenishFraction

func (m *Params) GetSlashMeterReplenishFraction() string

func (*Params) GetSlashMeterReplenishPeriod

func (m *Params) GetSlashMeterReplenishPeriod() time.Duration

func (*Params) GetTemplateClient

func (m *Params) GetTemplateClient() *_07_tendermint.ClientState

func (*Params) GetTrustingPeriodFraction

func (m *Params) GetTrustingPeriodFraction() string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate all ccv-provider module parameters

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PowerShapingParameters

type PowerShapingParameters struct {
	// Corresponds to the percentage of validators that have to validate the chain under the Top N case.
	// For example, 53 corresponds to a Top 53% chain, meaning that the top 53% provider validators by voting power
	// have to validate the proposed consumer chain. top_N can either be 0 or any value in [50, 100].
	// A chain can join with top_N == 0 as an Opt In chain, or with top_N ∈ [50, 100] as a Top N chain.
	Top_N uint32 `protobuf:"varint,1,opt,name=top_N,json=topN,proto3" json:"top_N,omitempty"`
	// `validators_power_cap` corresponds to the maximum power (percentage-wise) a validator can have on the consumer chain.
	// For instance, if `validators_power_cap` is set to 32, no validator can have more than 32% of the total voting power of the
	// consumer chain. The power cap is intended as a safeguard against a validator having too much power on the consumer
	// chain and hence "taking over" the consumer chain.
	//
	// To respect this power cap, the voting powers of the validators that run the consumer chain are decremented or
	// incremented accordingly. It is important to note that the voting powers of validators on the provider do **not** change.
	// For example, assume that the provider chain has among others, validators `A`, `B`, `C`, and `D` with voting powers
	// 100, 1, 1, 1 respectively. Assume that only those 4 validators opt in on a consumer chain. Without a power cap set,
	// validator `A` would have 100 / (100 + 1 + 1 + 1) = ~97% of the total voting power on the consumer chain, while
	// validators `B`, `C`, and `D` would have 1 /(100 + 1 + 1 + 1) = ~1% of the total voting power on the consumer chain.
	// If `validators_power_cap` is set to 30%, then the voting power of `A` would be reduced from 100 to 30 on the consumer
	// chain, the voting power of `B` would be increased from 1 to 25, and the power of `C` and `D` would be increased from
	// 1 to 24. After those modifications, `A` would have 30 / (30 + 25 + 24 + 24) = ~29% of the total voting power of the
	// consumer chain, `B` would have 25 / (30 + 25 + 24 + 24) = ~25%, and `C` and `D` would both have 24 / (30 + 25 + 24 + 24) = ~23%.
	// Naturally, there are many ways to change the voting powers of validators to respect the power cap, and ICS chooses
	// one of them (see the `NoMoreThanPercentOfTheSum` function).
	//
	// Note that respecting `validators_power_cap` might NOT always be possible. For example, if we have a consumer
	// chain with only 5 validators and `validators_power_cap` is set to 10%, then it is not possible to respect the
	// `validators_power_cap`. If the voting power of each validator is capped to a maximum of 10% of the total consumer
	// chain's voting power, then the total voting power of the consumer chain would add up to 50% which obviously does not
	// make sense (percentages should add up to 100%). In cases where it is not feasible to respect the power cap, all
	// validators on the consumer chain will have equal voting power in order to minimize the power of a single validator.
	// Thus, in the example of 5 validators and a `validators_power_cap` set to 10%, all validators would end up having 20%
	// of the total voting power on the consumer chain. Therefore, `validators_power_cap` operates on a best-effort basis.
	// For more information on the power cap and other power-shaping parameters, please refer to the ICS docs and
	// specifically `interchain-security/docs/docs/features/power-shaping.md`.
	ValidatorsPowerCap uint32 `protobuf:"varint,2,opt,name=validators_power_cap,json=validatorsPowerCap,proto3" json:"validators_power_cap,omitempty"`
	// Corresponds to the maximum number of validators that can validate a consumer chain.
	// Only applicable to Opt In chains. Setting `validator_set_cap` on a Top N chain is a no-op.
	ValidatorSetCap uint32 `protobuf:"varint,3,opt,name=validator_set_cap,json=validatorSetCap,proto3" json:"validator_set_cap,omitempty"`
	// corresponds to a list of provider consensus addresses of validators that are the ONLY ones that can validate the consumer chain
	Allowlist []string `protobuf:"bytes,4,rep,name=allowlist,proto3" json:"allowlist,omitempty"`
	// corresponds to a list of provider consensus addresses of validators that CANNOT validate the consumer chain
	Denylist []string `protobuf:"bytes,5,rep,name=denylist,proto3" json:"denylist,omitempty"`
	// Corresponds to the minimal amount of (provider chain) stake required to validate on the consumer chain.
	MinStake uint64 `protobuf:"varint,6,opt,name=min_stake,json=minStake,proto3" json:"min_stake,omitempty"`
	// Corresponds to whether inactive validators are allowed to validate the consumer chain.
	AllowInactiveVals bool `protobuf:"varint,7,opt,name=allow_inactive_vals,json=allowInactiveVals,proto3" json:"allow_inactive_vals,omitempty"`
}

PowerShapingParameters contains parameters that shape the validator set that we send to the consumer chain

func (*PowerShapingParameters) Descriptor

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

func (*PowerShapingParameters) GetAllowInactiveVals

func (m *PowerShapingParameters) GetAllowInactiveVals() bool

func (*PowerShapingParameters) GetAllowlist

func (m *PowerShapingParameters) GetAllowlist() []string

func (*PowerShapingParameters) GetDenylist

func (m *PowerShapingParameters) GetDenylist() []string

func (*PowerShapingParameters) GetMinStake

func (m *PowerShapingParameters) GetMinStake() uint64

func (*PowerShapingParameters) GetTop_N

func (m *PowerShapingParameters) GetTop_N() uint32

func (*PowerShapingParameters) GetValidatorSetCap

func (m *PowerShapingParameters) GetValidatorSetCap() uint32

func (*PowerShapingParameters) GetValidatorsPowerCap

func (m *PowerShapingParameters) GetValidatorsPowerCap() uint32

func (*PowerShapingParameters) Marshal

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

func (*PowerShapingParameters) MarshalTo

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

func (*PowerShapingParameters) MarshalToSizedBuffer

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

func (*PowerShapingParameters) ProtoMessage

func (*PowerShapingParameters) ProtoMessage()

func (*PowerShapingParameters) Reset

func (m *PowerShapingParameters) Reset()

func (*PowerShapingParameters) Size

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

func (*PowerShapingParameters) String

func (m *PowerShapingParameters) String() string

func (*PowerShapingParameters) Unmarshal

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

func (*PowerShapingParameters) XXX_DiscardUnknown

func (m *PowerShapingParameters) XXX_DiscardUnknown()

func (*PowerShapingParameters) XXX_Marshal

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

func (*PowerShapingParameters) XXX_Merge

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

func (*PowerShapingParameters) XXX_Size

func (m *PowerShapingParameters) XXX_Size() int

func (*PowerShapingParameters) XXX_Unmarshal

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

type ProviderConsAddress

type ProviderConsAddress struct {
	Address sdk.ConsAddress
}

A validator's consensus address on the provider chain.

func NewProviderConsAddress

func NewProviderConsAddress(addr sdk.ConsAddress) ProviderConsAddress

NewProviderConsAddress creates a new ProviderConsAddress, a validator's consensus address on the provider chain.

func (*ProviderConsAddress) String

func (p *ProviderConsAddress) String() string

String implements the Stringer interface for ProviderConsAddress, in the same format as sdk.ConsAddress

func (*ProviderConsAddress) ToSdkConsAddr

func (p *ProviderConsAddress) ToSdkConsAddr() sdk.ConsAddress

type QueryAllPairsValConsAddrByConsumerRequest

type QueryAllPairsValConsAddrByConsumerRequest struct {
	// The id of the consumer chain
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryAllPairsValConsAddrByConsumerRequest) Descriptor

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

func (*QueryAllPairsValConsAddrByConsumerRequest) GetConsumerId

func (*QueryAllPairsValConsAddrByConsumerRequest) Marshal

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

func (*QueryAllPairsValConsAddrByConsumerRequest) MarshalTo

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

func (*QueryAllPairsValConsAddrByConsumerRequest) MarshalToSizedBuffer

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

func (*QueryAllPairsValConsAddrByConsumerRequest) ProtoMessage

func (*QueryAllPairsValConsAddrByConsumerRequest) Reset

func (*QueryAllPairsValConsAddrByConsumerRequest) Size

func (*QueryAllPairsValConsAddrByConsumerRequest) String

func (*QueryAllPairsValConsAddrByConsumerRequest) Unmarshal

func (*QueryAllPairsValConsAddrByConsumerRequest) XXX_DiscardUnknown

func (m *QueryAllPairsValConsAddrByConsumerRequest) XXX_DiscardUnknown()

func (*QueryAllPairsValConsAddrByConsumerRequest) XXX_Marshal

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

func (*QueryAllPairsValConsAddrByConsumerRequest) XXX_Merge

func (*QueryAllPairsValConsAddrByConsumerRequest) XXX_Size

func (*QueryAllPairsValConsAddrByConsumerRequest) XXX_Unmarshal

type QueryAllPairsValConsAddrByConsumerResponse

type QueryAllPairsValConsAddrByConsumerResponse struct {
	PairValConAddr []*PairValConAddrProviderAndConsumer `protobuf:"bytes,1,rep,name=pair_val_con_addr,json=pairValConAddr,proto3" json:"pair_val_con_addr,omitempty"`
}

func (*QueryAllPairsValConsAddrByConsumerResponse) Descriptor

func (*QueryAllPairsValConsAddrByConsumerResponse) GetPairValConAddr

func (*QueryAllPairsValConsAddrByConsumerResponse) Marshal

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

func (*QueryAllPairsValConsAddrByConsumerResponse) MarshalTo

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

func (*QueryAllPairsValConsAddrByConsumerResponse) MarshalToSizedBuffer

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

func (*QueryAllPairsValConsAddrByConsumerResponse) ProtoMessage

func (*QueryAllPairsValConsAddrByConsumerResponse) Reset

func (*QueryAllPairsValConsAddrByConsumerResponse) Size

func (*QueryAllPairsValConsAddrByConsumerResponse) String

func (*QueryAllPairsValConsAddrByConsumerResponse) Unmarshal

func (*QueryAllPairsValConsAddrByConsumerResponse) XXX_DiscardUnknown

func (m *QueryAllPairsValConsAddrByConsumerResponse) XXX_DiscardUnknown()

func (*QueryAllPairsValConsAddrByConsumerResponse) XXX_Marshal

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

func (*QueryAllPairsValConsAddrByConsumerResponse) XXX_Merge

func (*QueryAllPairsValConsAddrByConsumerResponse) XXX_Size

func (*QueryAllPairsValConsAddrByConsumerResponse) XXX_Unmarshal

type QueryBlocksUntilNextEpochRequest

type QueryBlocksUntilNextEpochRequest struct {
}

func (*QueryBlocksUntilNextEpochRequest) Descriptor

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

func (*QueryBlocksUntilNextEpochRequest) Marshal

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

func (*QueryBlocksUntilNextEpochRequest) MarshalTo

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

func (*QueryBlocksUntilNextEpochRequest) MarshalToSizedBuffer

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

func (*QueryBlocksUntilNextEpochRequest) ProtoMessage

func (*QueryBlocksUntilNextEpochRequest) ProtoMessage()

func (*QueryBlocksUntilNextEpochRequest) Reset

func (*QueryBlocksUntilNextEpochRequest) Size

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

func (*QueryBlocksUntilNextEpochRequest) String

func (*QueryBlocksUntilNextEpochRequest) Unmarshal

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

func (*QueryBlocksUntilNextEpochRequest) XXX_DiscardUnknown

func (m *QueryBlocksUntilNextEpochRequest) XXX_DiscardUnknown()

func (*QueryBlocksUntilNextEpochRequest) XXX_Marshal

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

func (*QueryBlocksUntilNextEpochRequest) XXX_Merge

func (*QueryBlocksUntilNextEpochRequest) XXX_Size

func (m *QueryBlocksUntilNextEpochRequest) XXX_Size() int

func (*QueryBlocksUntilNextEpochRequest) XXX_Unmarshal

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

type QueryBlocksUntilNextEpochResponse

type QueryBlocksUntilNextEpochResponse struct {
	// The number of blocks until the next epoch starts
	BlocksUntilNextEpoch uint64 `` /* 126-byte string literal not displayed */
}

func (*QueryBlocksUntilNextEpochResponse) Descriptor

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

func (*QueryBlocksUntilNextEpochResponse) GetBlocksUntilNextEpoch

func (m *QueryBlocksUntilNextEpochResponse) GetBlocksUntilNextEpoch() uint64

func (*QueryBlocksUntilNextEpochResponse) Marshal

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

func (*QueryBlocksUntilNextEpochResponse) MarshalTo

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

func (*QueryBlocksUntilNextEpochResponse) MarshalToSizedBuffer

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

func (*QueryBlocksUntilNextEpochResponse) ProtoMessage

func (*QueryBlocksUntilNextEpochResponse) ProtoMessage()

func (*QueryBlocksUntilNextEpochResponse) Reset

func (*QueryBlocksUntilNextEpochResponse) Size

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

func (*QueryBlocksUntilNextEpochResponse) String

func (*QueryBlocksUntilNextEpochResponse) Unmarshal

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

func (*QueryBlocksUntilNextEpochResponse) XXX_DiscardUnknown

func (m *QueryBlocksUntilNextEpochResponse) XXX_DiscardUnknown()

func (*QueryBlocksUntilNextEpochResponse) XXX_Marshal

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

func (*QueryBlocksUntilNextEpochResponse) XXX_Merge

func (*QueryBlocksUntilNextEpochResponse) XXX_Size

func (m *QueryBlocksUntilNextEpochResponse) XXX_Size() int

func (*QueryBlocksUntilNextEpochResponse) XXX_Unmarshal

func (m *QueryBlocksUntilNextEpochResponse) 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
	QueryConsumerGenesis(ctx context.Context, in *QueryConsumerGenesisRequest, opts ...grpc.CallOption) (*QueryConsumerGenesisResponse, error)
	// ConsumerChains queries active consumer chains supported by the provider
	// chain
	QueryConsumerChains(ctx context.Context, in *QueryConsumerChainsRequest, opts ...grpc.CallOption) (*QueryConsumerChainsResponse, error)
	// QueryValidatorConsumerAddr queries the address
	// assigned by a validator for a consumer chain.
	QueryValidatorConsumerAddr(ctx context.Context, in *QueryValidatorConsumerAddrRequest, opts ...grpc.CallOption) (*QueryValidatorConsumerAddrResponse, error)
	// QueryProviderAddr returns the provider chain validator
	// given a consumer chain validator address
	QueryValidatorProviderAddr(ctx context.Context, in *QueryValidatorProviderAddrRequest, opts ...grpc.CallOption) (*QueryValidatorProviderAddrResponse, error)
	// QueryThrottleState returns the main on-chain state relevant to currently
	// throttled slash packets
	QueryThrottleState(ctx context.Context, in *QueryThrottleStateRequest, opts ...grpc.CallOption) (*QueryThrottleStateResponse, error)
	// QueryRegisteredConsumerRewardDenoms returns a list of consumer reward
	// denoms that are registered
	QueryRegisteredConsumerRewardDenoms(ctx context.Context, in *QueryRegisteredConsumerRewardDenomsRequest, opts ...grpc.CallOption) (*QueryRegisteredConsumerRewardDenomsResponse, error)
	// QueryAllPairsValConsAddrByConsumer returns a list of pair valconsensus address
	// between provider and consumer chain
	QueryAllPairsValConsAddrByConsumer(ctx context.Context, in *QueryAllPairsValConsAddrByConsumerRequest, opts ...grpc.CallOption) (*QueryAllPairsValConsAddrByConsumerResponse, error)
	// QueryParams returns all current values of provider parameters
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// QueryConsumerChainOptedInValidators returns a list of validators consensus addresses
	// that opted-in to the given consumer chain
	QueryConsumerChainOptedInValidators(ctx context.Context, in *QueryConsumerChainOptedInValidatorsRequest, opts ...grpc.CallOption) (*QueryConsumerChainOptedInValidatorsResponse, error)
	// QueryConsumerChainsValidatorHasToValidate returns a list of consumer chains
	// that a given validator must validate
	QueryConsumerChainsValidatorHasToValidate(ctx context.Context, in *QueryConsumerChainsValidatorHasToValidateRequest, opts ...grpc.CallOption) (*QueryConsumerChainsValidatorHasToValidateResponse, error)
	// QueryValidatorConsumerCommissionRate returns the commission rate a given
	// validator charges on a given consumer chain
	QueryValidatorConsumerCommissionRate(ctx context.Context, in *QueryValidatorConsumerCommissionRateRequest, opts ...grpc.CallOption) (*QueryValidatorConsumerCommissionRateResponse, error)
	// QueryConsumerValidators returns the latest set consumer-validator set for a given consumer ID
	// Note that this does not necessarily mean that the consumer chain is using this validator set at this exact moment
	// because a VSCPacket could be delayed to be delivered on the consumer chain.
	QueryConsumerValidators(ctx context.Context, in *QueryConsumerValidatorsRequest, opts ...grpc.CallOption) (*QueryConsumerValidatorsResponse, error)
	// QueryBlocksUntilNextEpoch returns the number of blocks until the next epoch
	// starts and validator updates are sent to the consumer chains
	QueryBlocksUntilNextEpoch(ctx context.Context, in *QueryBlocksUntilNextEpochRequest, opts ...grpc.CallOption) (*QueryBlocksUntilNextEpochResponse, error)
	// QueryConsumerIdFromClientId returns the consumer id of the chain
	// associated with the provided client id
	QueryConsumerIdFromClientId(ctx context.Context, in *QueryConsumerIdFromClientIdRequest, opts ...grpc.CallOption) (*QueryConsumerIdFromClientIdResponse, error)
	// QueryConsumerChain returns the consumer chain
	// associated with the provided consumer id
	QueryConsumerChain(ctx context.Context, in *QueryConsumerChainRequest, opts ...grpc.CallOption) (*QueryConsumerChainResponse, 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 QueryConsumerChainOptedInValidatorsRequest

type QueryConsumerChainOptedInValidatorsRequest struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryConsumerChainOptedInValidatorsRequest) Descriptor

func (*QueryConsumerChainOptedInValidatorsRequest) GetConsumerId

func (*QueryConsumerChainOptedInValidatorsRequest) Marshal

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

func (*QueryConsumerChainOptedInValidatorsRequest) MarshalTo

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

func (*QueryConsumerChainOptedInValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainOptedInValidatorsRequest) ProtoMessage

func (*QueryConsumerChainOptedInValidatorsRequest) Reset

func (*QueryConsumerChainOptedInValidatorsRequest) Size

func (*QueryConsumerChainOptedInValidatorsRequest) String

func (*QueryConsumerChainOptedInValidatorsRequest) Unmarshal

func (*QueryConsumerChainOptedInValidatorsRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainOptedInValidatorsRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainOptedInValidatorsRequest) XXX_Marshal

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

func (*QueryConsumerChainOptedInValidatorsRequest) XXX_Merge

func (*QueryConsumerChainOptedInValidatorsRequest) XXX_Size

func (*QueryConsumerChainOptedInValidatorsRequest) XXX_Unmarshal

type QueryConsumerChainOptedInValidatorsResponse

type QueryConsumerChainOptedInValidatorsResponse struct {
	// The consensus addresses of the validators on the provider chain
	ValidatorsProviderAddresses []string `` /* 144-byte string literal not displayed */
}

func (*QueryConsumerChainOptedInValidatorsResponse) Descriptor

func (*QueryConsumerChainOptedInValidatorsResponse) GetValidatorsProviderAddresses

func (m *QueryConsumerChainOptedInValidatorsResponse) GetValidatorsProviderAddresses() []string

func (*QueryConsumerChainOptedInValidatorsResponse) Marshal

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

func (*QueryConsumerChainOptedInValidatorsResponse) MarshalTo

func (*QueryConsumerChainOptedInValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainOptedInValidatorsResponse) ProtoMessage

func (*QueryConsumerChainOptedInValidatorsResponse) Reset

func (*QueryConsumerChainOptedInValidatorsResponse) Size

func (*QueryConsumerChainOptedInValidatorsResponse) String

func (*QueryConsumerChainOptedInValidatorsResponse) Unmarshal

func (*QueryConsumerChainOptedInValidatorsResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainOptedInValidatorsResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainOptedInValidatorsResponse) XXX_Marshal

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

func (*QueryConsumerChainOptedInValidatorsResponse) XXX_Merge

func (*QueryConsumerChainOptedInValidatorsResponse) XXX_Size

func (*QueryConsumerChainOptedInValidatorsResponse) XXX_Unmarshal

type QueryConsumerChainRequest

type QueryConsumerChainRequest struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryConsumerChainRequest) Descriptor

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

func (*QueryConsumerChainRequest) GetConsumerId

func (m *QueryConsumerChainRequest) GetConsumerId() string

func (*QueryConsumerChainRequest) Marshal

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

func (*QueryConsumerChainRequest) MarshalTo

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

func (*QueryConsumerChainRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainRequest) ProtoMessage

func (*QueryConsumerChainRequest) ProtoMessage()

func (*QueryConsumerChainRequest) Reset

func (m *QueryConsumerChainRequest) Reset()

func (*QueryConsumerChainRequest) Size

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

func (*QueryConsumerChainRequest) String

func (m *QueryConsumerChainRequest) String() string

func (*QueryConsumerChainRequest) Unmarshal

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

func (*QueryConsumerChainRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainRequest) XXX_Marshal

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

func (*QueryConsumerChainRequest) XXX_Merge

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

func (*QueryConsumerChainRequest) XXX_Size

func (m *QueryConsumerChainRequest) XXX_Size() int

func (*QueryConsumerChainRequest) XXX_Unmarshal

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

type QueryConsumerChainResponse

type QueryConsumerChainResponse struct {
	ConsumerId         string                            `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
	ChainId            string                            `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	OwnerAddress       string                            `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	Phase              string                            `protobuf:"bytes,4,opt,name=phase,proto3" json:"phase,omitempty"`
	Metadata           ConsumerMetadata                  `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata"`
	InitParams         *ConsumerInitializationParameters `protobuf:"bytes,6,opt,name=init_params,json=initParams,proto3" json:"init_params,omitempty"`
	PowerShapingParams *PowerShapingParameters           `protobuf:"bytes,7,opt,name=power_shaping_params,json=powerShapingParams,proto3" json:"power_shaping_params,omitempty"`
}

func (*QueryConsumerChainResponse) Descriptor

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

func (*QueryConsumerChainResponse) GetChainId

func (m *QueryConsumerChainResponse) GetChainId() string

func (*QueryConsumerChainResponse) GetConsumerId

func (m *QueryConsumerChainResponse) GetConsumerId() string

func (*QueryConsumerChainResponse) GetInitParams

func (*QueryConsumerChainResponse) GetMetadata

func (*QueryConsumerChainResponse) GetOwnerAddress

func (m *QueryConsumerChainResponse) GetOwnerAddress() string

func (*QueryConsumerChainResponse) GetPhase

func (m *QueryConsumerChainResponse) GetPhase() string

func (*QueryConsumerChainResponse) GetPowerShapingParams

func (m *QueryConsumerChainResponse) GetPowerShapingParams() *PowerShapingParameters

func (*QueryConsumerChainResponse) Marshal

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

func (*QueryConsumerChainResponse) MarshalTo

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

func (*QueryConsumerChainResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainResponse) ProtoMessage

func (*QueryConsumerChainResponse) ProtoMessage()

func (*QueryConsumerChainResponse) Reset

func (m *QueryConsumerChainResponse) Reset()

func (*QueryConsumerChainResponse) Size

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

func (*QueryConsumerChainResponse) String

func (m *QueryConsumerChainResponse) String() string

func (*QueryConsumerChainResponse) Unmarshal

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

func (*QueryConsumerChainResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainResponse) XXX_Marshal

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

func (*QueryConsumerChainResponse) XXX_Merge

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

func (*QueryConsumerChainResponse) XXX_Size

func (m *QueryConsumerChainResponse) XXX_Size() int

func (*QueryConsumerChainResponse) XXX_Unmarshal

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

type QueryConsumerChainsRequest

type QueryConsumerChainsRequest struct {
	// The phase of the consumer chains returned (optional)
	// Registered=1|Initialized=2|Launched=3|Stopped=4|Deleted=5
	Phase      ConsumerPhase      `protobuf:"varint,1,opt,name=phase,proto3,enum=interchain_security.ccv.provider.v1.ConsumerPhase" json:"phase,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryConsumerChainsRequest) Descriptor

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

func (*QueryConsumerChainsRequest) GetPagination

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

func (*QueryConsumerChainsRequest) GetPhase

func (*QueryConsumerChainsRequest) Marshal

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

func (*QueryConsumerChainsRequest) MarshalTo

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

func (*QueryConsumerChainsRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainsRequest) ProtoMessage

func (*QueryConsumerChainsRequest) ProtoMessage()

func (*QueryConsumerChainsRequest) Reset

func (m *QueryConsumerChainsRequest) Reset()

func (*QueryConsumerChainsRequest) Size

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

func (*QueryConsumerChainsRequest) String

func (m *QueryConsumerChainsRequest) String() string

func (*QueryConsumerChainsRequest) Unmarshal

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

func (*QueryConsumerChainsRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainsRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainsRequest) XXX_Marshal

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

func (*QueryConsumerChainsRequest) XXX_Merge

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

func (*QueryConsumerChainsRequest) XXX_Size

func (m *QueryConsumerChainsRequest) XXX_Size() int

func (*QueryConsumerChainsRequest) XXX_Unmarshal

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

type QueryConsumerChainsResponse

type QueryConsumerChainsResponse struct {
	Chains     []*Chain            `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryConsumerChainsResponse) Descriptor

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

func (*QueryConsumerChainsResponse) GetChains

func (m *QueryConsumerChainsResponse) GetChains() []*Chain

func (*QueryConsumerChainsResponse) GetPagination

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

func (*QueryConsumerChainsResponse) Marshal

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

func (*QueryConsumerChainsResponse) MarshalTo

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

func (*QueryConsumerChainsResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainsResponse) ProtoMessage

func (*QueryConsumerChainsResponse) ProtoMessage()

func (*QueryConsumerChainsResponse) Reset

func (m *QueryConsumerChainsResponse) Reset()

func (*QueryConsumerChainsResponse) Size

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

func (*QueryConsumerChainsResponse) String

func (m *QueryConsumerChainsResponse) String() string

func (*QueryConsumerChainsResponse) Unmarshal

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

func (*QueryConsumerChainsResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainsResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainsResponse) XXX_Marshal

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

func (*QueryConsumerChainsResponse) XXX_Merge

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

func (*QueryConsumerChainsResponse) XXX_Size

func (m *QueryConsumerChainsResponse) XXX_Size() int

func (*QueryConsumerChainsResponse) XXX_Unmarshal

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

type QueryConsumerChainsValidatorHasToValidateRequest

type QueryConsumerChainsValidatorHasToValidateRequest struct {
	// The consensus address of the validator on the provider chain
	ProviderAddress string `protobuf:"bytes,1,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty" yaml:"address"`
}

func (*QueryConsumerChainsValidatorHasToValidateRequest) Descriptor

func (*QueryConsumerChainsValidatorHasToValidateRequest) GetProviderAddress

func (*QueryConsumerChainsValidatorHasToValidateRequest) Marshal

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

func (*QueryConsumerChainsValidatorHasToValidateRequest) MarshalTo

func (*QueryConsumerChainsValidatorHasToValidateRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainsValidatorHasToValidateRequest) ProtoMessage

func (*QueryConsumerChainsValidatorHasToValidateRequest) Reset

func (*QueryConsumerChainsValidatorHasToValidateRequest) Size

func (*QueryConsumerChainsValidatorHasToValidateRequest) String

func (*QueryConsumerChainsValidatorHasToValidateRequest) Unmarshal

func (*QueryConsumerChainsValidatorHasToValidateRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainsValidatorHasToValidateRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainsValidatorHasToValidateRequest) XXX_Marshal

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

func (*QueryConsumerChainsValidatorHasToValidateRequest) XXX_Merge

func (*QueryConsumerChainsValidatorHasToValidateRequest) XXX_Size

func (*QueryConsumerChainsValidatorHasToValidateRequest) XXX_Unmarshal

type QueryConsumerChainsValidatorHasToValidateResponse

type QueryConsumerChainsValidatorHasToValidateResponse struct {
	ConsumerIds []string `protobuf:"bytes,1,rep,name=consumer_ids,json=consumerIds,proto3" json:"consumer_ids,omitempty"`
}

func (*QueryConsumerChainsValidatorHasToValidateResponse) Descriptor

func (*QueryConsumerChainsValidatorHasToValidateResponse) GetConsumerIds

func (*QueryConsumerChainsValidatorHasToValidateResponse) Marshal

func (*QueryConsumerChainsValidatorHasToValidateResponse) MarshalTo

func (*QueryConsumerChainsValidatorHasToValidateResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainsValidatorHasToValidateResponse) ProtoMessage

func (*QueryConsumerChainsValidatorHasToValidateResponse) Reset

func (*QueryConsumerChainsValidatorHasToValidateResponse) Size

func (*QueryConsumerChainsValidatorHasToValidateResponse) String

func (*QueryConsumerChainsValidatorHasToValidateResponse) Unmarshal

func (*QueryConsumerChainsValidatorHasToValidateResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainsValidatorHasToValidateResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainsValidatorHasToValidateResponse) XXX_Marshal

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

func (*QueryConsumerChainsValidatorHasToValidateResponse) XXX_Merge

func (*QueryConsumerChainsValidatorHasToValidateResponse) XXX_Size

func (*QueryConsumerChainsValidatorHasToValidateResponse) XXX_Unmarshal

type QueryConsumerGenesisRequest

type QueryConsumerGenesisRequest struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryConsumerGenesisRequest) Descriptor

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

func (*QueryConsumerGenesisRequest) GetConsumerId

func (m *QueryConsumerGenesisRequest) GetConsumerId() string

func (*QueryConsumerGenesisRequest) Marshal

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

func (*QueryConsumerGenesisRequest) MarshalTo

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

func (*QueryConsumerGenesisRequest) MarshalToSizedBuffer

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

func (*QueryConsumerGenesisRequest) ProtoMessage

func (*QueryConsumerGenesisRequest) ProtoMessage()

func (*QueryConsumerGenesisRequest) Reset

func (m *QueryConsumerGenesisRequest) Reset()

func (*QueryConsumerGenesisRequest) Size

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

func (*QueryConsumerGenesisRequest) String

func (m *QueryConsumerGenesisRequest) String() string

func (*QueryConsumerGenesisRequest) Unmarshal

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

func (*QueryConsumerGenesisRequest) XXX_DiscardUnknown

func (m *QueryConsumerGenesisRequest) XXX_DiscardUnknown()

func (*QueryConsumerGenesisRequest) XXX_Marshal

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

func (*QueryConsumerGenesisRequest) XXX_Merge

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

func (*QueryConsumerGenesisRequest) XXX_Size

func (m *QueryConsumerGenesisRequest) XXX_Size() int

func (*QueryConsumerGenesisRequest) XXX_Unmarshal

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

type QueryConsumerGenesisResponse

type QueryConsumerGenesisResponse struct {
	GenesisState types.ConsumerGenesisState `protobuf:"bytes,1,opt,name=genesis_state,json=genesisState,proto3" json:"genesis_state"`
}

func (*QueryConsumerGenesisResponse) Descriptor

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

func (*QueryConsumerGenesisResponse) GetGenesisState

func (*QueryConsumerGenesisResponse) Marshal

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

func (*QueryConsumerGenesisResponse) MarshalTo

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

func (*QueryConsumerGenesisResponse) MarshalToSizedBuffer

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

func (*QueryConsumerGenesisResponse) ProtoMessage

func (*QueryConsumerGenesisResponse) ProtoMessage()

func (*QueryConsumerGenesisResponse) Reset

func (m *QueryConsumerGenesisResponse) Reset()

func (*QueryConsumerGenesisResponse) Size

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

func (*QueryConsumerGenesisResponse) String

func (*QueryConsumerGenesisResponse) Unmarshal

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

func (*QueryConsumerGenesisResponse) XXX_DiscardUnknown

func (m *QueryConsumerGenesisResponse) XXX_DiscardUnknown()

func (*QueryConsumerGenesisResponse) XXX_Marshal

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

func (*QueryConsumerGenesisResponse) XXX_Merge

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

func (*QueryConsumerGenesisResponse) XXX_Size

func (m *QueryConsumerGenesisResponse) XXX_Size() int

func (*QueryConsumerGenesisResponse) XXX_Unmarshal

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

type QueryConsumerIdFromClientIdRequest

type QueryConsumerIdFromClientIdRequest struct {
	// the client id (on the provider) that is tracking the consumer chain
	// the client id can be found from the consumer chain by querying (i.e., `query ccvconsumer provider-info`)
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
}

func (*QueryConsumerIdFromClientIdRequest) Descriptor

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

func (*QueryConsumerIdFromClientIdRequest) GetClientId

func (m *QueryConsumerIdFromClientIdRequest) GetClientId() string

func (*QueryConsumerIdFromClientIdRequest) Marshal

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

func (*QueryConsumerIdFromClientIdRequest) MarshalTo

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

func (*QueryConsumerIdFromClientIdRequest) MarshalToSizedBuffer

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

func (*QueryConsumerIdFromClientIdRequest) ProtoMessage

func (*QueryConsumerIdFromClientIdRequest) ProtoMessage()

func (*QueryConsumerIdFromClientIdRequest) Reset

func (*QueryConsumerIdFromClientIdRequest) Size

func (*QueryConsumerIdFromClientIdRequest) String

func (*QueryConsumerIdFromClientIdRequest) Unmarshal

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

func (*QueryConsumerIdFromClientIdRequest) XXX_DiscardUnknown

func (m *QueryConsumerIdFromClientIdRequest) XXX_DiscardUnknown()

func (*QueryConsumerIdFromClientIdRequest) XXX_Marshal

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

func (*QueryConsumerIdFromClientIdRequest) XXX_Merge

func (*QueryConsumerIdFromClientIdRequest) XXX_Size

func (*QueryConsumerIdFromClientIdRequest) XXX_Unmarshal

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

type QueryConsumerIdFromClientIdResponse

type QueryConsumerIdFromClientIdResponse struct {
	// the consumer id of the chain associated with this client id
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryConsumerIdFromClientIdResponse) Descriptor

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

func (*QueryConsumerIdFromClientIdResponse) GetConsumerId

func (m *QueryConsumerIdFromClientIdResponse) GetConsumerId() string

func (*QueryConsumerIdFromClientIdResponse) Marshal

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

func (*QueryConsumerIdFromClientIdResponse) MarshalTo

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

func (*QueryConsumerIdFromClientIdResponse) MarshalToSizedBuffer

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

func (*QueryConsumerIdFromClientIdResponse) ProtoMessage

func (*QueryConsumerIdFromClientIdResponse) ProtoMessage()

func (*QueryConsumerIdFromClientIdResponse) Reset

func (*QueryConsumerIdFromClientIdResponse) Size

func (*QueryConsumerIdFromClientIdResponse) String

func (*QueryConsumerIdFromClientIdResponse) Unmarshal

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

func (*QueryConsumerIdFromClientIdResponse) XXX_DiscardUnknown

func (m *QueryConsumerIdFromClientIdResponse) XXX_DiscardUnknown()

func (*QueryConsumerIdFromClientIdResponse) XXX_Marshal

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

func (*QueryConsumerIdFromClientIdResponse) XXX_Merge

func (*QueryConsumerIdFromClientIdResponse) XXX_Size

func (*QueryConsumerIdFromClientIdResponse) XXX_Unmarshal

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

type QueryConsumerValidatorsRequest

type QueryConsumerValidatorsRequest struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryConsumerValidatorsRequest) Descriptor

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

func (*QueryConsumerValidatorsRequest) GetConsumerId

func (m *QueryConsumerValidatorsRequest) GetConsumerId() string

func (*QueryConsumerValidatorsRequest) Marshal

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

func (*QueryConsumerValidatorsRequest) MarshalTo

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

func (*QueryConsumerValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryConsumerValidatorsRequest) ProtoMessage

func (*QueryConsumerValidatorsRequest) ProtoMessage()

func (*QueryConsumerValidatorsRequest) Reset

func (m *QueryConsumerValidatorsRequest) Reset()

func (*QueryConsumerValidatorsRequest) Size

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

func (*QueryConsumerValidatorsRequest) String

func (*QueryConsumerValidatorsRequest) Unmarshal

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

func (*QueryConsumerValidatorsRequest) XXX_DiscardUnknown

func (m *QueryConsumerValidatorsRequest) XXX_DiscardUnknown()

func (*QueryConsumerValidatorsRequest) XXX_Marshal

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

func (*QueryConsumerValidatorsRequest) XXX_Merge

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

func (*QueryConsumerValidatorsRequest) XXX_Size

func (m *QueryConsumerValidatorsRequest) XXX_Size() int

func (*QueryConsumerValidatorsRequest) XXX_Unmarshal

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

type QueryConsumerValidatorsResponse

type QueryConsumerValidatorsResponse struct {
	Validators []*QueryConsumerValidatorsValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
}

func (*QueryConsumerValidatorsResponse) Descriptor

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

func (*QueryConsumerValidatorsResponse) GetValidators

func (*QueryConsumerValidatorsResponse) Marshal

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

func (*QueryConsumerValidatorsResponse) MarshalTo

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

func (*QueryConsumerValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryConsumerValidatorsResponse) ProtoMessage

func (*QueryConsumerValidatorsResponse) ProtoMessage()

func (*QueryConsumerValidatorsResponse) Reset

func (*QueryConsumerValidatorsResponse) Size

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

func (*QueryConsumerValidatorsResponse) String

func (*QueryConsumerValidatorsResponse) Unmarshal

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

func (*QueryConsumerValidatorsResponse) XXX_DiscardUnknown

func (m *QueryConsumerValidatorsResponse) XXX_DiscardUnknown()

func (*QueryConsumerValidatorsResponse) XXX_Marshal

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

func (*QueryConsumerValidatorsResponse) XXX_Merge

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

func (*QueryConsumerValidatorsResponse) XXX_Size

func (m *QueryConsumerValidatorsResponse) XXX_Size() int

func (*QueryConsumerValidatorsResponse) XXX_Unmarshal

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

type QueryConsumerValidatorsValidator

type QueryConsumerValidatorsValidator struct {
	// The consensus address of the validator on the provider chain
	ProviderAddress string `protobuf:"bytes,1,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty" yaml:"address"`
	// The consumer public key of the validator used on the consumer chain
	ConsumerKey *crypto.PublicKey `protobuf:"bytes,2,opt,name=consumer_key,json=consumerKey,proto3" json:"consumer_key,omitempty"`
	// [DEPRECATED] use `consumer_power` instead
	Power int64 `protobuf:"varint,3,opt,name=power,proto3" json:"power,omitempty"` // Deprecated: Do not use.
	// [DEPRECATED] use `consumer_commission_rate` instead
	Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,4,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"` // Deprecated: Do not use.
	// The power of the validator used on the consumer chain
	ConsumerPower int64 `protobuf:"varint,5,opt,name=consumer_power,json=consumerPower,proto3" json:"consumer_power,omitempty"`
	// The rate to charge delegators on the consumer chain, as a fraction
	ConsumerCommissionRate cosmossdk_io_math.LegacyDec `` /* 158-byte string literal not displayed */
	// The rate to charge delegators on the provider chain, as a fraction
	ProviderCommissionRate cosmossdk_io_math.LegacyDec `` /* 158-byte string literal not displayed */
	// description defines the description terms for the validator
	Description types1.Description `protobuf:"bytes,8,opt,name=description,proto3" json:"description"`
	// provider_operator_address defines the address of the validator's operator
	ProviderOperatorAddress string `` /* 132-byte string literal not displayed */
	// jailed defined whether the validator has been jailed from bonded status or not.
	Jailed bool `protobuf:"varint,10,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// status is the validator status (bonded/unbonding/unbonded).
	Status types1.BondStatus `protobuf:"varint,11,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"`
	// provider_tokens defines the delegated tokens (incl. self-delegation).
	ProviderTokens cosmossdk_io_math.Int `` /* 127-byte string literal not displayed */
	// The power of the validator used on the provider chain
	ProviderPower int64 `protobuf:"varint,13,opt,name=provider_power,json=providerPower,proto3" json:"provider_power,omitempty"`
	// validates_current_epoch defines whether the validator has to validate for the current epoch or not
	ValidatesCurrentEpoch bool `` /* 128-byte string literal not displayed */
}

func (*QueryConsumerValidatorsValidator) Descriptor

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

func (*QueryConsumerValidatorsValidator) GetConsumerKey

func (m *QueryConsumerValidatorsValidator) GetConsumerKey() *crypto.PublicKey

func (*QueryConsumerValidatorsValidator) GetConsumerPower

func (m *QueryConsumerValidatorsValidator) GetConsumerPower() int64

func (*QueryConsumerValidatorsValidator) GetDescription

func (*QueryConsumerValidatorsValidator) GetJailed

func (m *QueryConsumerValidatorsValidator) GetJailed() bool

func (*QueryConsumerValidatorsValidator) GetPower deprecated

Deprecated: Do not use.

func (*QueryConsumerValidatorsValidator) GetProviderAddress

func (m *QueryConsumerValidatorsValidator) GetProviderAddress() string

func (*QueryConsumerValidatorsValidator) GetProviderOperatorAddress

func (m *QueryConsumerValidatorsValidator) GetProviderOperatorAddress() string

func (*QueryConsumerValidatorsValidator) GetProviderPower

func (m *QueryConsumerValidatorsValidator) GetProviderPower() int64

func (*QueryConsumerValidatorsValidator) GetStatus

func (*QueryConsumerValidatorsValidator) GetValidatesCurrentEpoch

func (m *QueryConsumerValidatorsValidator) GetValidatesCurrentEpoch() bool

func (*QueryConsumerValidatorsValidator) Marshal

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

func (*QueryConsumerValidatorsValidator) MarshalTo

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

func (*QueryConsumerValidatorsValidator) MarshalToSizedBuffer

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

func (*QueryConsumerValidatorsValidator) ProtoMessage

func (*QueryConsumerValidatorsValidator) ProtoMessage()

func (*QueryConsumerValidatorsValidator) Reset

func (*QueryConsumerValidatorsValidator) Size

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

func (*QueryConsumerValidatorsValidator) String

func (*QueryConsumerValidatorsValidator) Unmarshal

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

func (*QueryConsumerValidatorsValidator) XXX_DiscardUnknown

func (m *QueryConsumerValidatorsValidator) XXX_DiscardUnknown()

func (*QueryConsumerValidatorsValidator) XXX_Marshal

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

func (*QueryConsumerValidatorsValidator) XXX_Merge

func (*QueryConsumerValidatorsValidator) XXX_Size

func (m *QueryConsumerValidatorsValidator) XXX_Size() int

func (*QueryConsumerValidatorsValidator) XXX_Unmarshal

func (m *QueryConsumerValidatorsValidator) 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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryRegisteredConsumerRewardDenomsRequest

type QueryRegisteredConsumerRewardDenomsRequest struct {
}

func (*QueryRegisteredConsumerRewardDenomsRequest) Descriptor

func (*QueryRegisteredConsumerRewardDenomsRequest) Marshal

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

func (*QueryRegisteredConsumerRewardDenomsRequest) MarshalTo

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

func (*QueryRegisteredConsumerRewardDenomsRequest) MarshalToSizedBuffer

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

func (*QueryRegisteredConsumerRewardDenomsRequest) ProtoMessage

func (*QueryRegisteredConsumerRewardDenomsRequest) Reset

func (*QueryRegisteredConsumerRewardDenomsRequest) Size

func (*QueryRegisteredConsumerRewardDenomsRequest) String

func (*QueryRegisteredConsumerRewardDenomsRequest) Unmarshal

func (*QueryRegisteredConsumerRewardDenomsRequest) XXX_DiscardUnknown

func (m *QueryRegisteredConsumerRewardDenomsRequest) XXX_DiscardUnknown()

func (*QueryRegisteredConsumerRewardDenomsRequest) XXX_Marshal

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

func (*QueryRegisteredConsumerRewardDenomsRequest) XXX_Merge

func (*QueryRegisteredConsumerRewardDenomsRequest) XXX_Size

func (*QueryRegisteredConsumerRewardDenomsRequest) XXX_Unmarshal

type QueryRegisteredConsumerRewardDenomsResponse

type QueryRegisteredConsumerRewardDenomsResponse struct {
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

func (*QueryRegisteredConsumerRewardDenomsResponse) Descriptor

func (*QueryRegisteredConsumerRewardDenomsResponse) GetDenoms

func (*QueryRegisteredConsumerRewardDenomsResponse) Marshal

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

func (*QueryRegisteredConsumerRewardDenomsResponse) MarshalTo

func (*QueryRegisteredConsumerRewardDenomsResponse) MarshalToSizedBuffer

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

func (*QueryRegisteredConsumerRewardDenomsResponse) ProtoMessage

func (*QueryRegisteredConsumerRewardDenomsResponse) Reset

func (*QueryRegisteredConsumerRewardDenomsResponse) Size

func (*QueryRegisteredConsumerRewardDenomsResponse) String

func (*QueryRegisteredConsumerRewardDenomsResponse) Unmarshal

func (*QueryRegisteredConsumerRewardDenomsResponse) XXX_DiscardUnknown

func (m *QueryRegisteredConsumerRewardDenomsResponse) XXX_DiscardUnknown()

func (*QueryRegisteredConsumerRewardDenomsResponse) XXX_Marshal

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

func (*QueryRegisteredConsumerRewardDenomsResponse) XXX_Merge

func (*QueryRegisteredConsumerRewardDenomsResponse) XXX_Size

func (*QueryRegisteredConsumerRewardDenomsResponse) XXX_Unmarshal

type QueryServer

type QueryServer interface {
	// ConsumerGenesis queries the genesis state needed to start a consumer chain
	// whose proposal has been accepted
	QueryConsumerGenesis(context.Context, *QueryConsumerGenesisRequest) (*QueryConsumerGenesisResponse, error)
	// ConsumerChains queries active consumer chains supported by the provider
	// chain
	QueryConsumerChains(context.Context, *QueryConsumerChainsRequest) (*QueryConsumerChainsResponse, error)
	// QueryValidatorConsumerAddr queries the address
	// assigned by a validator for a consumer chain.
	QueryValidatorConsumerAddr(context.Context, *QueryValidatorConsumerAddrRequest) (*QueryValidatorConsumerAddrResponse, error)
	// QueryProviderAddr returns the provider chain validator
	// given a consumer chain validator address
	QueryValidatorProviderAddr(context.Context, *QueryValidatorProviderAddrRequest) (*QueryValidatorProviderAddrResponse, error)
	// QueryThrottleState returns the main on-chain state relevant to currently
	// throttled slash packets
	QueryThrottleState(context.Context, *QueryThrottleStateRequest) (*QueryThrottleStateResponse, error)
	// QueryRegisteredConsumerRewardDenoms returns a list of consumer reward
	// denoms that are registered
	QueryRegisteredConsumerRewardDenoms(context.Context, *QueryRegisteredConsumerRewardDenomsRequest) (*QueryRegisteredConsumerRewardDenomsResponse, error)
	// QueryAllPairsValConsAddrByConsumer returns a list of pair valconsensus address
	// between provider and consumer chain
	QueryAllPairsValConsAddrByConsumer(context.Context, *QueryAllPairsValConsAddrByConsumerRequest) (*QueryAllPairsValConsAddrByConsumerResponse, error)
	// QueryParams returns all current values of provider parameters
	QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// QueryConsumerChainOptedInValidators returns a list of validators consensus addresses
	// that opted-in to the given consumer chain
	QueryConsumerChainOptedInValidators(context.Context, *QueryConsumerChainOptedInValidatorsRequest) (*QueryConsumerChainOptedInValidatorsResponse, error)
	// QueryConsumerChainsValidatorHasToValidate returns a list of consumer chains
	// that a given validator must validate
	QueryConsumerChainsValidatorHasToValidate(context.Context, *QueryConsumerChainsValidatorHasToValidateRequest) (*QueryConsumerChainsValidatorHasToValidateResponse, error)
	// QueryValidatorConsumerCommissionRate returns the commission rate a given
	// validator charges on a given consumer chain
	QueryValidatorConsumerCommissionRate(context.Context, *QueryValidatorConsumerCommissionRateRequest) (*QueryValidatorConsumerCommissionRateResponse, error)
	// QueryConsumerValidators returns the latest set consumer-validator set for a given consumer ID
	// Note that this does not necessarily mean that the consumer chain is using this validator set at this exact moment
	// because a VSCPacket could be delayed to be delivered on the consumer chain.
	QueryConsumerValidators(context.Context, *QueryConsumerValidatorsRequest) (*QueryConsumerValidatorsResponse, error)
	// QueryBlocksUntilNextEpoch returns the number of blocks until the next epoch
	// starts and validator updates are sent to the consumer chains
	QueryBlocksUntilNextEpoch(context.Context, *QueryBlocksUntilNextEpochRequest) (*QueryBlocksUntilNextEpochResponse, error)
	// QueryConsumerIdFromClientId returns the consumer id of the chain
	// associated with the provided client id
	QueryConsumerIdFromClientId(context.Context, *QueryConsumerIdFromClientIdRequest) (*QueryConsumerIdFromClientIdResponse, error)
	// QueryConsumerChain returns the consumer chain
	// associated with the provided consumer id
	QueryConsumerChain(context.Context, *QueryConsumerChainRequest) (*QueryConsumerChainResponse, 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 {
	// current slash_meter state
	SlashMeter int64 `protobuf:"varint,1,opt,name=slash_meter,json=slashMeter,proto3" json:"slash_meter,omitempty"`
	// allowance of voting power units (int) that the slash meter is given per
	// replenish period this also serves as the max value for the meter.
	SlashMeterAllowance int64 `protobuf:"varint,2,opt,name=slash_meter_allowance,json=slashMeterAllowance,proto3" json:"slash_meter_allowance,omitempty"`
	// next time the slash meter could potentially be replenished, iff it's not
	// full
	NextReplenishCandidate time.Time `` /* 127-byte string literal not displayed */
}

func (*QueryThrottleStateResponse) Descriptor

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

func (*QueryThrottleStateResponse) GetNextReplenishCandidate

func (m *QueryThrottleStateResponse) GetNextReplenishCandidate() time.Time

func (*QueryThrottleStateResponse) GetSlashMeter

func (m *QueryThrottleStateResponse) GetSlashMeter() int64

func (*QueryThrottleStateResponse) GetSlashMeterAllowance

func (m *QueryThrottleStateResponse) GetSlashMeterAllowance() int64

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 QueryValidatorConsumerAddrRequest

type QueryValidatorConsumerAddrRequest struct {
	// The consensus address of the validator on the provider chain
	ProviderAddress string `protobuf:"bytes,1,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty" yaml:"address"`
	// The id of the consumer chain
	ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryValidatorConsumerAddrRequest) Descriptor

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

func (*QueryValidatorConsumerAddrRequest) Marshal

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

func (*QueryValidatorConsumerAddrRequest) MarshalTo

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

func (*QueryValidatorConsumerAddrRequest) MarshalToSizedBuffer

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

func (*QueryValidatorConsumerAddrRequest) ProtoMessage

func (*QueryValidatorConsumerAddrRequest) ProtoMessage()

func (*QueryValidatorConsumerAddrRequest) Reset

func (*QueryValidatorConsumerAddrRequest) Size

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

func (*QueryValidatorConsumerAddrRequest) String

func (*QueryValidatorConsumerAddrRequest) Unmarshal

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

func (*QueryValidatorConsumerAddrRequest) XXX_DiscardUnknown

func (m *QueryValidatorConsumerAddrRequest) XXX_DiscardUnknown()

func (*QueryValidatorConsumerAddrRequest) XXX_Marshal

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

func (*QueryValidatorConsumerAddrRequest) XXX_Merge

func (*QueryValidatorConsumerAddrRequest) XXX_Size

func (m *QueryValidatorConsumerAddrRequest) XXX_Size() int

func (*QueryValidatorConsumerAddrRequest) XXX_Unmarshal

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

type QueryValidatorConsumerAddrResponse

type QueryValidatorConsumerAddrResponse struct {
	// The address of the validator on the consumer chain
	ConsumerAddress string `protobuf:"bytes,1,opt,name=consumer_address,json=consumerAddress,proto3" json:"consumer_address,omitempty"`
}

func (*QueryValidatorConsumerAddrResponse) Descriptor

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

func (*QueryValidatorConsumerAddrResponse) GetConsumerAddress

func (m *QueryValidatorConsumerAddrResponse) GetConsumerAddress() string

func (*QueryValidatorConsumerAddrResponse) Marshal

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

func (*QueryValidatorConsumerAddrResponse) MarshalTo

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

func (*QueryValidatorConsumerAddrResponse) MarshalToSizedBuffer

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

func (*QueryValidatorConsumerAddrResponse) ProtoMessage

func (*QueryValidatorConsumerAddrResponse) ProtoMessage()

func (*QueryValidatorConsumerAddrResponse) Reset

func (*QueryValidatorConsumerAddrResponse) Size

func (*QueryValidatorConsumerAddrResponse) String

func (*QueryValidatorConsumerAddrResponse) Unmarshal

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

func (*QueryValidatorConsumerAddrResponse) XXX_DiscardUnknown

func (m *QueryValidatorConsumerAddrResponse) XXX_DiscardUnknown()

func (*QueryValidatorConsumerAddrResponse) XXX_Marshal

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

func (*QueryValidatorConsumerAddrResponse) XXX_Merge

func (*QueryValidatorConsumerAddrResponse) XXX_Size

func (*QueryValidatorConsumerAddrResponse) XXX_Unmarshal

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

type QueryValidatorConsumerCommissionRateRequest

type QueryValidatorConsumerCommissionRateRequest struct {
	ConsumerId string `protobuf:"bytes,1,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
	// The consensus address of the validator on the provider chain
	ProviderAddress string `protobuf:"bytes,2,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty" yaml:"address"`
}

func (*QueryValidatorConsumerCommissionRateRequest) Descriptor

func (*QueryValidatorConsumerCommissionRateRequest) GetConsumerId

func (*QueryValidatorConsumerCommissionRateRequest) GetProviderAddress

func (m *QueryValidatorConsumerCommissionRateRequest) GetProviderAddress() string

func (*QueryValidatorConsumerCommissionRateRequest) Marshal

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

func (*QueryValidatorConsumerCommissionRateRequest) MarshalTo

func (*QueryValidatorConsumerCommissionRateRequest) MarshalToSizedBuffer

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

func (*QueryValidatorConsumerCommissionRateRequest) ProtoMessage

func (*QueryValidatorConsumerCommissionRateRequest) Reset

func (*QueryValidatorConsumerCommissionRateRequest) Size

func (*QueryValidatorConsumerCommissionRateRequest) String

func (*QueryValidatorConsumerCommissionRateRequest) Unmarshal

func (*QueryValidatorConsumerCommissionRateRequest) XXX_DiscardUnknown

func (m *QueryValidatorConsumerCommissionRateRequest) XXX_DiscardUnknown()

func (*QueryValidatorConsumerCommissionRateRequest) XXX_Marshal

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

func (*QueryValidatorConsumerCommissionRateRequest) XXX_Merge

func (*QueryValidatorConsumerCommissionRateRequest) XXX_Size

func (*QueryValidatorConsumerCommissionRateRequest) XXX_Unmarshal

type QueryValidatorConsumerCommissionRateResponse

type QueryValidatorConsumerCommissionRateResponse struct {
	// The rate to charge delegators on the consumer chain, as a fraction
	Rate cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=rate,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"rate"`
}

func (*QueryValidatorConsumerCommissionRateResponse) Descriptor

func (*QueryValidatorConsumerCommissionRateResponse) Marshal

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

func (*QueryValidatorConsumerCommissionRateResponse) MarshalTo

func (*QueryValidatorConsumerCommissionRateResponse) MarshalToSizedBuffer

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

func (*QueryValidatorConsumerCommissionRateResponse) ProtoMessage

func (*QueryValidatorConsumerCommissionRateResponse) Reset

func (*QueryValidatorConsumerCommissionRateResponse) Size

func (*QueryValidatorConsumerCommissionRateResponse) String

func (*QueryValidatorConsumerCommissionRateResponse) Unmarshal

func (*QueryValidatorConsumerCommissionRateResponse) XXX_DiscardUnknown

func (m *QueryValidatorConsumerCommissionRateResponse) XXX_DiscardUnknown()

func (*QueryValidatorConsumerCommissionRateResponse) XXX_Marshal

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

func (*QueryValidatorConsumerCommissionRateResponse) XXX_Merge

func (*QueryValidatorConsumerCommissionRateResponse) XXX_Size

func (*QueryValidatorConsumerCommissionRateResponse) XXX_Unmarshal

type QueryValidatorProviderAddrRequest

type QueryValidatorProviderAddrRequest struct {
	// The consensus address of the validator on the consumer chain
	ConsumerAddress string `protobuf:"bytes,1,opt,name=consumer_address,json=consumerAddress,proto3" json:"consumer_address,omitempty" yaml:"address"`
	// The id of the consumer chain
	ConsumerId string `protobuf:"bytes,2,opt,name=consumer_id,json=consumerId,proto3" json:"consumer_id,omitempty"`
}

func (*QueryValidatorProviderAddrRequest) Descriptor

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

func (*QueryValidatorProviderAddrRequest) Marshal

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

func (*QueryValidatorProviderAddrRequest) MarshalTo

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

func (*QueryValidatorProviderAddrRequest) MarshalToSizedBuffer

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

func (*QueryValidatorProviderAddrRequest) ProtoMessage

func (*QueryValidatorProviderAddrRequest) ProtoMessage()

func (*QueryValidatorProviderAddrRequest) Reset

func (*QueryValidatorProviderAddrRequest) Size

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

func (*QueryValidatorProviderAddrRequest) String

func (*QueryValidatorProviderAddrRequest) Unmarshal

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

func (*QueryValidatorProviderAddrRequest) XXX_DiscardUnknown

func (m *QueryValidatorProviderAddrRequest) XXX_DiscardUnknown()

func (*QueryValidatorProviderAddrRequest) XXX_Marshal

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

func (*QueryValidatorProviderAddrRequest) XXX_Merge

func (*QueryValidatorProviderAddrRequest) XXX_Size

func (m *QueryValidatorProviderAddrRequest) XXX_Size() int

func (*QueryValidatorProviderAddrRequest) XXX_Unmarshal

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

type QueryValidatorProviderAddrResponse

type QueryValidatorProviderAddrResponse struct {
	// The address of the validator on the provider chain
	ProviderAddress string `protobuf:"bytes,1,opt,name=provider_address,json=providerAddress,proto3" json:"provider_address,omitempty"`
}

func (*QueryValidatorProviderAddrResponse) Descriptor

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

func (*QueryValidatorProviderAddrResponse) GetProviderAddress

func (m *QueryValidatorProviderAddrResponse) GetProviderAddress() string

func (*QueryValidatorProviderAddrResponse) Marshal

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

func (*QueryValidatorProviderAddrResponse) MarshalTo

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

func (*QueryValidatorProviderAddrResponse) MarshalToSizedBuffer

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

func (*QueryValidatorProviderAddrResponse) ProtoMessage

func (*QueryValidatorProviderAddrResponse) ProtoMessage()

func (*QueryValidatorProviderAddrResponse) Reset

func (*QueryValidatorProviderAddrResponse) Size

func (*QueryValidatorProviderAddrResponse) String

func (*QueryValidatorProviderAddrResponse) Unmarshal

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

func (*QueryValidatorProviderAddrResponse) XXX_DiscardUnknown

func (m *QueryValidatorProviderAddrResponse) XXX_DiscardUnknown()

func (*QueryValidatorProviderAddrResponse) XXX_Marshal

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

func (*QueryValidatorProviderAddrResponse) XXX_Merge

func (*QueryValidatorProviderAddrResponse) XXX_Size

func (*QueryValidatorProviderAddrResponse) XXX_Unmarshal

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

type SlashAcks

type SlashAcks struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}

SlashAcks contains cons addresses of consumer chain validators successfully slashed on the provider chain.

func (*SlashAcks) Descriptor

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

func (*SlashAcks) GetAddresses

func (m *SlashAcks) GetAddresses() []string

func (*SlashAcks) Marshal

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

func (*SlashAcks) MarshalTo

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

func (*SlashAcks) MarshalToSizedBuffer

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

func (*SlashAcks) ProtoMessage

func (*SlashAcks) ProtoMessage()

func (*SlashAcks) Reset

func (m *SlashAcks) Reset()

func (*SlashAcks) Size

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

func (*SlashAcks) String

func (m *SlashAcks) String() string

func (*SlashAcks) Unmarshal

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

func (*SlashAcks) XXX_DiscardUnknown

func (m *SlashAcks) XXX_DiscardUnknown()

func (*SlashAcks) XXX_Marshal

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

func (*SlashAcks) XXX_Merge

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

func (*SlashAcks) XXX_Size

func (m *SlashAcks) XXX_Size() int

func (*SlashAcks) XXX_Unmarshal

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

type Status

type Status int

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AssignConsumerKey

func (*UnimplementedMsgServer) ChangeRewardDenoms

func (*UnimplementedMsgServer) CreateConsumer

func (*UnimplementedMsgServer) OptIn

func (*UnimplementedMsgServer) OptOut

func (*UnimplementedMsgServer) RemoveConsumer

func (*UnimplementedMsgServer) SetConsumerCommissionRate

func (*UnimplementedMsgServer) SubmitConsumerDoubleVoting

func (*UnimplementedMsgServer) SubmitConsumerMisbehaviour

func (*UnimplementedMsgServer) UpdateConsumer

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryBlocksUntilNextEpoch

func (*UnimplementedQueryServer) QueryConsumerChain

func (*UnimplementedQueryServer) QueryConsumerChains

func (*UnimplementedQueryServer) QueryConsumerGenesis

func (*UnimplementedQueryServer) QueryConsumerValidators

func (*UnimplementedQueryServer) QueryParams

func (*UnimplementedQueryServer) QueryThrottleState

func (*UnimplementedQueryServer) QueryValidatorConsumerAddr

func (*UnimplementedQueryServer) QueryValidatorProviderAddr

type ValidatorByConsumerAddr

type ValidatorByConsumerAddr struct {
	ChainId      string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ConsumerAddr []byte `protobuf:"bytes,2,opt,name=consumer_addr,json=consumerAddr,proto3" json:"consumer_addr,omitempty"`
	ProviderAddr []byte `protobuf:"bytes,3,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"`
}

Used to serialize the ValidatorConsumerAddr index from key assignment ValidatorByConsumerAddr: (chainID, consumerAddr consAddr) -> providerAddr consAddr

func (*ValidatorByConsumerAddr) Descriptor

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

func (*ValidatorByConsumerAddr) GetChainId

func (m *ValidatorByConsumerAddr) GetChainId() string

func (*ValidatorByConsumerAddr) GetConsumerAddr

func (m *ValidatorByConsumerAddr) GetConsumerAddr() []byte

func (*ValidatorByConsumerAddr) GetProviderAddr

func (m *ValidatorByConsumerAddr) GetProviderAddr() []byte

func (*ValidatorByConsumerAddr) Marshal

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

func (*ValidatorByConsumerAddr) MarshalTo

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

func (*ValidatorByConsumerAddr) MarshalToSizedBuffer

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

func (*ValidatorByConsumerAddr) ProtoMessage

func (*ValidatorByConsumerAddr) ProtoMessage()

func (*ValidatorByConsumerAddr) Reset

func (m *ValidatorByConsumerAddr) Reset()

func (*ValidatorByConsumerAddr) Size

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

func (*ValidatorByConsumerAddr) String

func (m *ValidatorByConsumerAddr) String() string

func (*ValidatorByConsumerAddr) Unmarshal

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

func (*ValidatorByConsumerAddr) XXX_DiscardUnknown

func (m *ValidatorByConsumerAddr) XXX_DiscardUnknown()

func (*ValidatorByConsumerAddr) XXX_Marshal

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

func (*ValidatorByConsumerAddr) XXX_Merge

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

func (*ValidatorByConsumerAddr) XXX_Size

func (m *ValidatorByConsumerAddr) XXX_Size() int

func (*ValidatorByConsumerAddr) XXX_Unmarshal

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

type ValidatorConsumerPubKey

type ValidatorConsumerPubKey struct {
	ChainId      string            `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	ProviderAddr []byte            `protobuf:"bytes,2,opt,name=provider_addr,json=providerAddr,proto3" json:"provider_addr,omitempty"`
	ConsumerKey  *crypto.PublicKey `protobuf:"bytes,3,opt,name=consumer_key,json=consumerKey,proto3" json:"consumer_key,omitempty"`
}

Used to serialize the ValidatorConsumerPubKey index from key assignment ValidatorConsumerPubKey: (chainID, providerAddr consAddr) -> consumerKey tmprotocrypto.PublicKey

func (*ValidatorConsumerPubKey) Descriptor

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

func (*ValidatorConsumerPubKey) GetChainId

func (m *ValidatorConsumerPubKey) GetChainId() string

func (*ValidatorConsumerPubKey) GetConsumerKey

func (m *ValidatorConsumerPubKey) GetConsumerKey() *crypto.PublicKey

func (*ValidatorConsumerPubKey) GetProviderAddr

func (m *ValidatorConsumerPubKey) GetProviderAddr() []byte

func (*ValidatorConsumerPubKey) Marshal

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

func (*ValidatorConsumerPubKey) MarshalTo

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

func (*ValidatorConsumerPubKey) MarshalToSizedBuffer

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

func (*ValidatorConsumerPubKey) ProtoMessage

func (*ValidatorConsumerPubKey) ProtoMessage()

func (*ValidatorConsumerPubKey) Reset

func (m *ValidatorConsumerPubKey) Reset()

func (*ValidatorConsumerPubKey) Size

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

func (*ValidatorConsumerPubKey) String

func (m *ValidatorConsumerPubKey) String() string

func (*ValidatorConsumerPubKey) Unmarshal

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

func (*ValidatorConsumerPubKey) XXX_DiscardUnknown

func (m *ValidatorConsumerPubKey) XXX_DiscardUnknown()

func (*ValidatorConsumerPubKey) XXX_Marshal

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

func (*ValidatorConsumerPubKey) XXX_Merge

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

func (*ValidatorConsumerPubKey) XXX_Size

func (m *ValidatorConsumerPubKey) XXX_Size() int

func (*ValidatorConsumerPubKey) XXX_Unmarshal

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

type ValidatorSetChangePackets

type ValidatorSetChangePackets struct {
	List []types3.ValidatorSetChangePacketData `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
}

ValidatorSetChangePackets is a pb list of ccv.ValidatorSetChangePacketData.

func (*ValidatorSetChangePackets) Descriptor

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

func (*ValidatorSetChangePackets) GetList

func (*ValidatorSetChangePackets) Marshal

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

func (*ValidatorSetChangePackets) MarshalTo

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

func (*ValidatorSetChangePackets) MarshalToSizedBuffer

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

func (*ValidatorSetChangePackets) ProtoMessage

func (*ValidatorSetChangePackets) ProtoMessage()

func (*ValidatorSetChangePackets) Reset

func (m *ValidatorSetChangePackets) Reset()

func (*ValidatorSetChangePackets) Size

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

func (*ValidatorSetChangePackets) String

func (m *ValidatorSetChangePackets) String() string

func (*ValidatorSetChangePackets) Unmarshal

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

func (*ValidatorSetChangePackets) XXX_DiscardUnknown

func (m *ValidatorSetChangePackets) XXX_DiscardUnknown()

func (*ValidatorSetChangePackets) XXX_Marshal

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

func (*ValidatorSetChangePackets) XXX_Merge

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

func (*ValidatorSetChangePackets) XXX_Size

func (m *ValidatorSetChangePackets) XXX_Size() int

func (*ValidatorSetChangePackets) XXX_Unmarshal

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

type ValsetUpdateIdToHeight

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

ValsetUpdateIdToHeight defines the genesis information for the mapping of each valset update id to a block height

func (*ValsetUpdateIdToHeight) Descriptor

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

func (*ValsetUpdateIdToHeight) GetHeight

func (m *ValsetUpdateIdToHeight) GetHeight() uint64

func (*ValsetUpdateIdToHeight) GetValsetUpdateId

func (m *ValsetUpdateIdToHeight) GetValsetUpdateId() uint64

func (*ValsetUpdateIdToHeight) Marshal

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

func (*ValsetUpdateIdToHeight) MarshalTo

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

func (*ValsetUpdateIdToHeight) MarshalToSizedBuffer

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

func (*ValsetUpdateIdToHeight) ProtoMessage

func (*ValsetUpdateIdToHeight) ProtoMessage()

func (*ValsetUpdateIdToHeight) Reset

func (m *ValsetUpdateIdToHeight) Reset()

func (*ValsetUpdateIdToHeight) Size

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

func (*ValsetUpdateIdToHeight) String

func (m *ValsetUpdateIdToHeight) String() string

func (*ValsetUpdateIdToHeight) Unmarshal

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

func (*ValsetUpdateIdToHeight) XXX_DiscardUnknown

func (m *ValsetUpdateIdToHeight) XXX_DiscardUnknown()

func (*ValsetUpdateIdToHeight) XXX_Marshal

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

func (*ValsetUpdateIdToHeight) XXX_Merge

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

func (*ValsetUpdateIdToHeight) XXX_Size

func (m *ValsetUpdateIdToHeight) XXX_Size() int

func (*ValsetUpdateIdToHeight) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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