types

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 44 Imported by: 12

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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"
)
View Source
const (

	// PortKey defines the key to store the port ID in store
	PortByteKey byte = iota

	// MaturedUnbondingOpsByteKey is the byte key that stores the list of all unbonding operations ids
	// that have matured from a consumer chain perspective,
	// i.e., no longer waiting on the unbonding period to elapse on any consumer chain
	MaturedUnbondingOpsByteKey

	// ValidatorSetUpdateIdByteKey is the byte key that stores the current validator set update id
	ValidatorSetUpdateIdByteKey

	// SlashMeterByteKey is the byte key for storing the slash meter
	SlashMeterByteKey

	// SlashMeterReplenishTimeCandidateByteKey is the byte key for storing the slash meter replenish time candidate
	SlashMeterReplenishTimeCandidateByteKey

	// ChainToChannelBytePrefix is the byte prefix for storing mapping
	// from chainID to the channel ID that is used to send over validator set changes.
	ChainToChannelBytePrefix

	// ChannelToChainBytePrefix is the byte prefix for storing mapping
	// from the CCV channel ID to the consumer chain ID.
	ChannelToChainBytePrefix

	// ChainToClientBytePrefix is the byte prefix for storing the client ID for a given consumer chainID.
	ChainToClientBytePrefix

	// InitTimeoutTimestampBytePrefix is the byte prefix for storing
	// the init timeout timestamp for a given consumer chainID.
	InitTimeoutTimestampBytePrefix

	// PendingCAPBytePrefix is the byte prefix for storing pending consumer addition proposals before the spawn time occurs.
	// The key includes the BigEndian timestamp to allow for efficient chronological iteration
	PendingCAPBytePrefix

	// PendingCRPBytePrefix is the byte prefix for storing pending consumer removal proposals before the stop time occurs.
	// The key includes the BigEndian timestamp to allow for efficient chronological iteration
	PendingCRPBytePrefix

	// UnbondingOpBytePrefix is the byte prefix that stores a record of all the ids of consumer chains that
	// need to unbond before a given unbonding operation can unbond on this chain.
	UnbondingOpBytePrefix

	// UnbondingOpIndexBytePrefix is byte prefix of the index for looking up which unbonding
	// operations are waiting for a given consumer chain to unbond
	UnbondingOpIndexBytePrefix

	// ValsetUpdateBlockHeightBytePrefix is the byte prefix that will store the mapping from vscIDs to block heights
	ValsetUpdateBlockHeightBytePrefix

	// ConsumerGenesisBytePrefix stores consumer genesis state material (consensus state and client state) indexed by consumer chain id
	ConsumerGenesisBytePrefix

	// SlashAcksBytePrefix is the byte prefix that will store consensus address of consumer chain validators successfully slashed on the provider chain
	SlashAcksBytePrefix

	// InitChainHeightBytePrefix is the byte prefix that will store the mapping from a chain id to the corresponding block height on the provider
	// this consumer chain was initialized
	InitChainHeightBytePrefix

	// PendingVSCsBytePrefix is the byte prefix that will store pending ValidatorSetChangePacket data
	PendingVSCsBytePrefix

	// VscSendTimestampBytePrefix is the byte prefix for storing
	// the list of VSC sending timestamps for a given consumer chainID.
	VscSendTimestampBytePrefix

	// ThrottledPacketDataSizeBytePrefix is the byte prefix for storing the size of chain-specific throttled packet data queues
	ThrottledPacketDataSizeBytePrefix

	// ThrottledPacketDataBytePrefix is the byte prefix storing throttled packet data
	ThrottledPacketDataBytePrefix

	// GlobalSlashEntryBytePrefix is the byte prefix storing global slash queue entries
	GlobalSlashEntryBytePrefix

	// ConsumerValidatorsBytePrefix is the byte prefix that will store the validator assigned keys for every consumer chain
	ConsumerValidatorsBytePrefix

	// ValidatorsByConsumerAddrBytePrefix is the byte prefix that will store the mapping from validator addresses
	// on consumer chains to validator addresses on the provider chain
	ValidatorsByConsumerAddrBytePrefix

	// KeyAssignmentReplacementsBytePrefix is the byte prefix that will store the key assignments that need to be replaced in the current block
	KeyAssignmentReplacementsBytePrefix

	// ConsumerAddrsToPruneBytePrefix is the byte prefix that will store the mapping from VSC ids
	// to consumer validators addresses needed for pruning
	ConsumerAddrsToPruneBytePrefix

	// SlashLogBytePrefix is the byte prefix that will store the mapping from provider address to boolean
	// denoting whether the provider address has committed any double signign infractions
	SlashLogBytePrefix

	// ConsumerRewardDenomsBytePrefix is the byte prefix that will store a list of consumer reward denoms
	ConsumerRewardDenomsBytePrefix

	// VSCMaturedHandledThisBlockBytePrefix is the byte prefix storing the number of vsc matured packets
	// handled in the current block
	VSCMaturedHandledThisBlockBytePrefix
)

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

View Source
const (
	TypeMsgAssignConsumerKey           = "assign_consumer_key"
	TypeMsgRegisterConsumerRewardDenom = "register_consumer_reward_denom"
)

provider message types

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"

	// DefaultInitTimeoutPeriod defines the init timeout period
	DefaultInitTimeoutPeriod = 7 * 24 * time.Hour

	// DefaultVscTimeoutPeriod defines the VSC timeout period
	DefaultVscTimeoutPeriod = 5 * 7 * 24 * time.Hour

	// 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"

	// DefaultMaxThrottledPackets defines the default amount of throttled slash or vsc matured packets
	// that can be queued for a single consumer before the provider chain halts.
	DefaultMaxThrottledPackets = 100000
)
View Source
const (
	ProposalTypeConsumerAddition = "ConsumerAddition"
	ProposalTypeConsumerRemoval  = "ConsumerRemoval"
	ProposalTypeEquivocation     = "Equivocation"
)

Variables

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

	// AminoCdc is a amino codec created to support amino json compatible msgs.
	AminoCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ErrInvalidConsumerAdditionProposal  = errorsmod.Register(ModuleName, 1, "invalid consumer addition proposal")
	ErrInvalidConsumerRemovalProp       = errorsmod.Register(ModuleName, 2, "invalid consumer removal proposal")
	ErrUnknownConsumerChainId           = errorsmod.Register(ModuleName, 3, "no consumer chain with this chain id")
	ErrUnknownConsumerChannelId         = errorsmod.Register(ModuleName, 4, "no consumer chain with this channel id")
	ErrInvalidConsumerConsensusPubKey   = errorsmod.Register(ModuleName, 5, "empty consumer consensus public key")
	ErrBlankConsumerChainID             = errorsmod.Register(ModuleName, 6, "consumer chain id must not be blank")
	ErrConsumerKeyNotFound              = errorsmod.Register(ModuleName, 7, "consumer key not found")
	ErrNoValidatorConsumerAddress       = errorsmod.Register(ModuleName, 8, "error getting validator consumer address")
	ErrNoValidatorProviderAddress       = errorsmod.Register(ModuleName, 9, "error getting validator provider address")
	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")
	ErrInvalidConsumerParams            = errorsmod.Register(ModuleName, 12, "invalid consumer params")
	ErrInvalidProviderAddress           = errorsmod.Register(ModuleName, 13, "invalid provider address")
	ErrInvalidConsumerRewardDenom       = errorsmod.Register(ModuleName, 14, "invalid consumer reward denom")
	ErrInvalidDepositorAddress          = errorsmod.Register(ModuleName, 15, "invalid depositor address")
)

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")
	KeyInitTimeoutPeriod                  = []byte("InitTimeoutPeriod")
	KeyVscTimeoutPeriod                   = []byte("VscTimeoutPeriod")
	KeySlashMeterReplenishPeriod          = []byte("SlashMeterReplenishPeriod")
	KeySlashMeterReplenishFraction        = []byte("SlashMeterReplenishFraction")
	KeyMaxThrottledPackets                = []byte("MaxThrottledPackets")
	KeyConsumerRewardDenomRegistrationFee = []byte("ConsumerRewardDenomRegistrationFee")
)

Reflection based keys for params subspace

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

Functions

func ChainIdAndConsAddrKey

func ChainIdAndConsAddrKey(prefix byte, chainID string, addr sdk.ConsAddress) []byte

ChainIdAndConsAddrKey returns the key with the following format: bytePrefix | len(chainID) | chainID | ConsAddress

func ChainIdAndTsKey

func ChainIdAndTsKey(prefix byte, chainID string, timestamp time.Time) []byte

ChainIdAndTsKey returns the key with the following format: bytePrefix | len(chainID) | chainID | timestamp

func ChainIdAndUintIdKey

func ChainIdAndUintIdKey(prefix byte, chainID string, uintId uint64) []byte

ChainIdAndUintIdKey returns the key with the following format: bytePrefix | len(chainID) | chainID | uint64(ID)

func ChainIdWithLenKey

func ChainIdWithLenKey(prefix byte, chainID string) []byte

ChainIdWithLenKey returns the key with the following format: bytePrefix | len(chainID) | chainID

func ChainToChannelKey

func ChainToChannelKey(chainID string) []byte

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

func ChainToClientKey

func ChainToClientKey(chainID string) []byte

ChainToClientKey returns the key under which the clientID for the given chainID is stored.

func ChannelToChainKey

func ChannelToChainKey(channelID string) []byte

ChannelToChainKey returns the key under which the consumer chain ID will be stored for the given channelID.

func ConsumerAddrsToPruneKey

func ConsumerAddrsToPruneKey(chainID string, vscID uint64) []byte

ConsumerAddrsToPruneKey returns the key under which the mapping from VSC ids to consumer validators addresses is stored

func ConsumerGenesisKey

func ConsumerGenesisKey(chainID string) []byte

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

func ConsumerRewardDenomsKey

func ConsumerRewardDenomsKey(denom string) []byte

ConsumerRewardDenomsKey returns the key under which consumer reward denoms are stored

func ConsumerValidatorsKey

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

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

func GlobalSlashEntryKey

func GlobalSlashEntryKey(entry GlobalSlashEntry) []byte

GlobalSlashEntryKey returns the key for storing a global slash queue entry.

func InitChainHeightKey

func InitChainHeightKey(chainID string) []byte

InitChainHeightKey returns the key under which the block height for a given chain ID is stored

func InitTimeoutTimestampKey

func InitTimeoutTimestampKey(chainID string) []byte

InitTimeoutTimestampKey returns the key under which the init timeout timestamp for the given chainID is stored.

func KeyAssignmentReplacementsKey

func KeyAssignmentReplacementsKey(chainID string, addr ProviderConsAddress) []byte

KeyAssignmentReplacementsKey returns the key under which the key assignments that need to be replaced in the current block are stored

func KeyAssignmentValidateBasic

func KeyAssignmentValidateBasic(
	assignedKeys []ValidatorConsumerPubKey,
	byConsumerAddrs []ValidatorByConsumerAddr,
	consumerAddrsToPrune []ConsumerAddrsToPrune,
) 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 MaturedUnbondingOpsKey

func MaturedUnbondingOpsKey() []byte

MaturedUnbondingOpsKey returns the key for storing the list of matured unbonding operations.

func MustParseGlobalSlashEntryKey

func MustParseGlobalSlashEntryKey(bz []byte) (
	recvTime time.Time, consumerChainID string, ibcSeqNum uint64,
)

MustParseGlobalSlashEntryKey returns the received time and chainID for a global slash queue entry key, or panics if the key is invalid.

func MustParseThrottledPacketDataKey

func MustParseThrottledPacketDataKey(key []byte) (string, uint64)

MustParseThrottledPacketDataKey parses a throttled packet data key or panics upon failure

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,
) govtypes.Content

NewConsumerAdditionProposal creates a new consumer addition proposal.

func NewConsumerRemovalProposal

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

NewConsumerRemovalProposal creates a new consumer removal proposal.

func NewEquivocationProposal

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

NewEquivocationProposal creates a new equivocation proposal.

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable returns a key table with the necessary registered provider params

func ParseChainIdAndConsAddrKey

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

ParseChainIdAndConsAddrKey returns the chain ID and ConsAddress for a ChainIdAndConsAddrKey key

func ParseChainIdAndTsKey

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

ParseChainIdAndTsKey returns the chain ID and time for a ChainIdAndTs key

func ParseChainIdAndUintIdKey

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

ParseChainIdAndUintIdKey returns the chain ID and uint ID for a ChainIdAndUintId key

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 ParseThrottledPacketDataKey

func ParseThrottledPacketDataKey(key []byte) (chainId string, ibcSeqNum uint64, err error)

ParseThrottledPacketDataKey parses a throttled packet data key

func ParseUnbondingOpIndexKey

func ParseUnbondingOpIndexKey(key []byte) (string, uint64, error)

ParseUnbondingOpIndexKey parses an unbonding op index key for VSC ID Removes the prefix + chainID from index key and returns only the key part.

func ParseVscSendingTimestampKey

func ParseVscSendingTimestampKey(bz []byte) (string, uint64, error)

ParseVscTimeoutTimestampKey returns chain ID and vsc ID for a VscSendingTimestampKey or an error if unparsable

func PendingCAPKey

func PendingCAPKey(timestamp time.Time, chainID string) []byte

PendingCAPKey returns the key under which a pending consumer addition proposal is stored. The key has the following format: PendingCAPBytePrefix | timestamp.UnixNano() | chainID

func PendingCRPKey

func PendingCRPKey(timestamp time.Time, chainID string) []byte

PendingCRPKey returns the key under which pending consumer removal proposals are stored. The key has the following format: PendingCRPBytePrefix | timestamp.UnixNano() | chainID

func PendingVSCsKey

func PendingVSCsKey(chainID string) []byte

PendingVSCsKey returns the key under which pending ValidatorSetChangePacket data is stored for a given chain 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)

RegisterLegacyAminoCodec registers the necessary x/ibc transfer interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

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 SlashAcksKey

func SlashAcksKey(chainID string) []byte

SlashAcksKey returns the key under which slashing acks are stored for a given chain 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 ThrottledPacketDataKey

func ThrottledPacketDataKey(consumerChainID string, ibcSeqNum uint64) []byte

ThrottledPacketDataKey returns the key storing the throttled packet data queue for a given chain ID and ibc seq num

func ThrottledPacketDataSizeKey

func ThrottledPacketDataSizeKey(consumerChainID string) []byte

ThrottledPacketDataSizeKey returns the key storing the size of the throttled packet data queue for a given chain ID

func UnbondingOpIndexKey

func UnbondingOpIndexKey(chainID string, vscID uint64) []byte

UnbondingOpIndexKey returns an unbonding op index key Note: chainId is hashed to a fixed length sequence of bytes here to prevent injection attack between chainIDs.

func UnbondingOpKey

func UnbondingOpKey(id uint64) []byte

UnbondingOpKey returns the key that stores a record of all the ids of consumer chains that need to unbond before a given unbonding operation can unbond on this chain.

func VSCMaturedHandledThisBlockKey

func VSCMaturedHandledThisBlockKey() []byte

func ValidateCoin

func ValidateCoin(i interface{}) error

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(chainID string, addr ConsumerConsAddress) []byte

ValidatorsByConsumerAddrKey returns the key under which the mapping from validator addresses on consumer chains to validator addresses on the provider chain is stored

func ValsetUpdateBlockHeightKey

func ValsetUpdateBlockHeightKey(valsetUpdateId uint64) []byte

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

func VscSendingTimestampKey

func VscSendingTimestampKey(chainID string, vscID uint64) []byte

VscSendingTimestampKey returns the key under which the sending timestamp of the VSCPacket with vsc ID is stored

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 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"`
}

func (*Chain) Descriptor

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

func (*Chain) GetChainId

func (m *Chain) GetChainId() string

func (*Chain) GetClientId

func (m *Chain) GetClientId() string

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 ChannelToChain

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"`
}

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 ConsumerAdditionProposal

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 maintan the existing ibc transfer channel
	DistributionTransmissionChannel string `` /* 157-byte string literal not displayed */
}

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.

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 ConsumerAddrsToPrune

type ConsumerAddrsToPrune struct {
	ChainId       string       `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	VscId         uint64       `protobuf:"varint,2,opt,name=vsc_id,json=vscId,proto3" json:"vsc_id,omitempty"`
	ConsumerAddrs *AddressList `protobuf:"bytes,3,opt,name=consumer_addrs,json=consumerAddrs,proto3" json:"consumer_addrs,omitempty"`
}

Used to serialize the ConsumerAddrsToPrune index from key assignment ConsumerAddrsToPrune: (chainID, vscID uint64) -> consumerAddrs AddressList

func (*ConsumerAddrsToPrune) Descriptor

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

func (*ConsumerAddrsToPrune) GetChainId

func (m *ConsumerAddrsToPrune) GetChainId() string

func (*ConsumerAddrsToPrune) GetConsumerAddrs

func (m *ConsumerAddrsToPrune) GetConsumerAddrs() *AddressList

func (*ConsumerAddrsToPrune) GetVscId

func (m *ConsumerAddrsToPrune) GetVscId() uint64

func (*ConsumerAddrsToPrune) Marshal

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

func (*ConsumerAddrsToPrune) MarshalTo

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

func (*ConsumerAddrsToPrune) MarshalToSizedBuffer

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

func (*ConsumerAddrsToPrune) ProtoMessage

func (*ConsumerAddrsToPrune) ProtoMessage()

func (*ConsumerAddrsToPrune) Reset

func (m *ConsumerAddrsToPrune) Reset()

func (*ConsumerAddrsToPrune) Size

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

func (*ConsumerAddrsToPrune) String

func (m *ConsumerAddrsToPrune) String() string

func (*ConsumerAddrsToPrune) Unmarshal

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

func (*ConsumerAddrsToPrune) XXX_DiscardUnknown

func (m *ConsumerAddrsToPrune) XXX_DiscardUnknown()

func (*ConsumerAddrsToPrune) XXX_Marshal

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

func (*ConsumerAddrsToPrune) XXX_Merge

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

func (*ConsumerAddrsToPrune) XXX_Size

func (m *ConsumerAddrsToPrune) XXX_Size() int

func (*ConsumerAddrsToPrune) XXX_Unmarshal

func (m *ConsumerAddrsToPrune) 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 ConsumerRemovalProposal

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"`
}

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.

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 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 types1.GenesisState `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"`
	// UnbondingOpsIndex defines the unbonding operations waiting on this consumer chain
	UnbondingOpsIndex []VscUnbondingOps `protobuf:"bytes,8,rep,name=unbonding_ops_index,json=unbondingOpsIndex,proto3" json:"unbonding_ops_index"`
}

consumer chain

func NewConsumerStates

func NewConsumerStates(
	chainID,
	clientID,
	channelID string,
	initialHeight uint64,
	genesis consumertypes.GenesisState,
	unbondingOpsIndexes []VscUnbondingOps,
	pendingValsetChanges []ccv.ValidatorSetChangePacketData,
	slashDowntimeAck []string,
) 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() types1.GenesisState

func (*ConsumerState) GetInitialHeight

func (m *ConsumerState) GetInitialHeight() uint64

func (*ConsumerState) GetPendingValsetChanges

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

func (*ConsumerState) GetSlashDowntimeAck

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

func (*ConsumerState) GetUnbondingOpsIndex

func (m *ConsumerState) GetUnbondingOpsIndex() []VscUnbondingOps

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

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"`
}

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
	UnbondingOps []UnbondingOp `protobuf:"bytes,3,rep,name=unbonding_ops,json=unbondingOps,proto3" json:"unbonding_ops"`
	// empty for a new chain
	MatureUnbondingOps *types.MaturedUnbondingOps `protobuf:"bytes,4,opt,name=mature_unbonding_ops,json=matureUnbondingOps,proto3" json:"mature_unbonding_ops,omitempty"`
	// 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"`
	// empty for a new chain
	ConsumerAdditionProposals []ConsumerAdditionProposal `` /* 128-byte string literal not displayed */
	// empty for a new chain
	ConsumerRemovalProposals []ConsumerRemovalProposal `protobuf:"bytes,7,rep,name=consumer_removal_proposals,json=consumerRemovalProposals,proto3" json:"consumer_removal_proposals"`
	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
	ConsumerAddrsToPrune []ConsumerAddrsToPrune `protobuf:"bytes,11,rep,name=consumer_addrs_to_prune,json=consumerAddrsToPrune,proto3" json:"consumer_addrs_to_prune"`
}

GenesisState defines the CCV provider chain genesis state

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(
	vscID uint64,
	vscIdToHeights []ValsetUpdateIdToHeight,
	consumerStates []ConsumerState,
	unbondingOps []UnbondingOp,
	matureUbdOps *ccv.MaturedUnbondingOps,
	additionProposals []ConsumerAdditionProposal,
	removalProposals []ConsumerRemovalProposal,
	params Params,
	validatorConsumerPubkeys []ValidatorConsumerPubKey,
	validatorsByConsumerAddr []ValidatorByConsumerAddr,
	consumerAddrsToPrune []ConsumerAddrsToPrune,
) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetConsumerAdditionProposals

func (m *GenesisState) GetConsumerAdditionProposals() []ConsumerAdditionProposal

func (*GenesisState) GetConsumerAddrsToPrune

func (m *GenesisState) GetConsumerAddrsToPrune() []ConsumerAddrsToPrune

func (*GenesisState) GetConsumerRemovalProposals

func (m *GenesisState) GetConsumerRemovalProposals() []ConsumerRemovalProposal

func (*GenesisState) GetConsumerStates

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

func (*GenesisState) GetMatureUnbondingOps

func (m *GenesisState) GetMatureUnbondingOps() *types.MaturedUnbondingOps

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetUnbondingOps

func (m *GenesisState) GetUnbondingOps() []UnbondingOp

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

func (gs GenesisState) ValidateUnbondingOp(ubdOp UnbondingOp) 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 NewGlobalSlashEntry

func NewGlobalSlashEntry(recvTime time.Time, consumerChainID string,
	ibcSeqNum uint64, providerValConsAddr ProviderConsAddress,
) GlobalSlashEntry

NewGlobalSlashEntry creates a new GlobalSlashEntry.

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 HandshakeMetadata

type HandshakeMetadata struct {
	ProviderFeePoolAddr string `protobuf:"bytes,1,opt,name=provider_fee_pool_addr,json=providerFeePoolAddr,proto3" json:"provider_fee_pool_addr,omitempty"`
	Version             string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

func (*HandshakeMetadata) Descriptor

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

func (*HandshakeMetadata) GetProviderFeePoolAddr

func (m *HandshakeMetadata) GetProviderFeePoolAddr() string

func (*HandshakeMetadata) GetVersion

func (m *HandshakeMetadata) GetVersion() string

func (*HandshakeMetadata) Marshal

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

func (*HandshakeMetadata) MarshalTo

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

func (*HandshakeMetadata) MarshalToSizedBuffer

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

func (*HandshakeMetadata) ProtoMessage

func (*HandshakeMetadata) ProtoMessage()

func (*HandshakeMetadata) Reset

func (m *HandshakeMetadata) Reset()

func (*HandshakeMetadata) Size

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

func (*HandshakeMetadata) String

func (m *HandshakeMetadata) String() string

func (*HandshakeMetadata) Unmarshal

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

func (*HandshakeMetadata) XXX_DiscardUnknown

func (m *HandshakeMetadata) XXX_DiscardUnknown()

func (*HandshakeMetadata) XXX_Marshal

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

func (*HandshakeMetadata) XXX_Merge

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

func (*HandshakeMetadata) XXX_Size

func (m *HandshakeMetadata) XXX_Size() int

func (*HandshakeMetadata) XXX_Unmarshal

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

type InitTimeoutTimestamp

type InitTimeoutTimestamp struct {
	ChainId   string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Timestamp uint64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*InitTimeoutTimestamp) Descriptor

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

func (*InitTimeoutTimestamp) GetChainId

func (m *InitTimeoutTimestamp) GetChainId() string

func (*InitTimeoutTimestamp) GetTimestamp

func (m *InitTimeoutTimestamp) GetTimestamp() uint64

func (*InitTimeoutTimestamp) Marshal

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

func (*InitTimeoutTimestamp) MarshalTo

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

func (*InitTimeoutTimestamp) MarshalToSizedBuffer

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

func (*InitTimeoutTimestamp) ProtoMessage

func (*InitTimeoutTimestamp) ProtoMessage()

func (*InitTimeoutTimestamp) Reset

func (m *InitTimeoutTimestamp) Reset()

func (*InitTimeoutTimestamp) Size

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

func (*InitTimeoutTimestamp) String

func (m *InitTimeoutTimestamp) String() string

func (*InitTimeoutTimestamp) Unmarshal

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

func (*InitTimeoutTimestamp) XXX_DiscardUnknown

func (m *InitTimeoutTimestamp) XXX_DiscardUnknown()

func (*InitTimeoutTimestamp) XXX_Marshal

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

func (*InitTimeoutTimestamp) XXX_Merge

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

func (*InitTimeoutTimestamp) XXX_Size

func (m *InitTimeoutTimestamp) XXX_Size() int

func (*InitTimeoutTimestamp) XXX_Unmarshal

func (m *InitTimeoutTimestamp) 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 {
	// The chain id of the consumer chain to assign a consensus public key to
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// 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"`
}

func NewMsgAssignConsumerKey

func NewMsgAssignConsumerKey(chainID string, providerValidatorAddress sdk.ValAddress,
	consumerConsensusPubKey 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) GetSignBytes

func (msg MsgAssignConsumerKey) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (MsgAssignConsumerKey) GetSigners

func (msg MsgAssignConsumerKey) GetSigners() []sdk.AccAddress

GetSigners implements the sdk.Msg interface. It returns the address(es) that must sign over msg.GetSignBytes(). If the validator address is not same as delegator's, then the validator must sign the msg as well.

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

func (msg MsgAssignConsumerKey) Route() string

Route implements the sdk.Msg interface.

func (*MsgAssignConsumerKey) Size

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

func (*MsgAssignConsumerKey) String

func (m *MsgAssignConsumerKey) String() string

func (MsgAssignConsumerKey) Type

func (msg MsgAssignConsumerKey) Type() string

Type implements the sdk.Msg interface.

func (*MsgAssignConsumerKey) Unmarshal

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

func (MsgAssignConsumerKey) ValidateBasic

func (msg MsgAssignConsumerKey) ValidateBasic() error

ValidateBasic implements the sdk.Msg 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 MsgClient

type MsgClient interface {
	AssignConsumerKey(ctx context.Context, in *MsgAssignConsumerKey, opts ...grpc.CallOption) (*MsgAssignConsumerKeyResponse, error)
	RegisterConsumerRewardDenom(ctx context.Context, in *MsgRegisterConsumerRewardDenom, opts ...grpc.CallOption) (*MsgRegisterConsumerRewardDenomResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgRegisterConsumerRewardDenom

type MsgRegisterConsumerRewardDenom struct {
	Denom     string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Depositor string `protobuf:"bytes,2,opt,name=depositor,proto3" json:"depositor,omitempty"`
}

MsgRegisterConsumerRewardDenom allows an account to register a consumer reward denom, i.e., add it to the list of denoms accepted by the provider as rewards.

func NewMsgRegisterConsumerRewardDenom

func NewMsgRegisterConsumerRewardDenom(denom string, depositor sdk.AccAddress) *MsgRegisterConsumerRewardDenom

NewMsgRegisterConsumerRewardDenom returns a new MsgRegisterConsumerRewardDenom with a sender and a funding amount.

func (*MsgRegisterConsumerRewardDenom) Descriptor

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

func (MsgRegisterConsumerRewardDenom) GetSignBytes

func (msg MsgRegisterConsumerRewardDenom) GetSignBytes() []byte

GetSignBytes returns the raw bytes for a MsgRegisterConsumerRewardDenom message that the expected signer needs to sign.

func (MsgRegisterConsumerRewardDenom) GetSigners

func (msg MsgRegisterConsumerRewardDenom) GetSigners() []sdk.AccAddress

GetSigners returns the signer addresses that are expected to sign the result of GetSignBytes.

func (*MsgRegisterConsumerRewardDenom) Marshal

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

func (*MsgRegisterConsumerRewardDenom) MarshalTo

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

func (*MsgRegisterConsumerRewardDenom) MarshalToSizedBuffer

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

func (*MsgRegisterConsumerRewardDenom) ProtoMessage

func (*MsgRegisterConsumerRewardDenom) ProtoMessage()

func (*MsgRegisterConsumerRewardDenom) Reset

func (m *MsgRegisterConsumerRewardDenom) Reset()

func (MsgRegisterConsumerRewardDenom) Route

Route returns the MsgRegisterConsumerRewardDenom message route.

func (*MsgRegisterConsumerRewardDenom) Size

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

func (*MsgRegisterConsumerRewardDenom) String

func (MsgRegisterConsumerRewardDenom) Type

Type returns the MsgRegisterConsumerRewardDenom message type.

func (*MsgRegisterConsumerRewardDenom) Unmarshal

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

func (MsgRegisterConsumerRewardDenom) ValidateBasic

func (msg MsgRegisterConsumerRewardDenom) ValidateBasic() error

ValidateBasic performs basic MsgRegisterConsumerRewardDenom message validation.

func (*MsgRegisterConsumerRewardDenom) XXX_DiscardUnknown

func (m *MsgRegisterConsumerRewardDenom) XXX_DiscardUnknown()

func (*MsgRegisterConsumerRewardDenom) XXX_Marshal

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

func (*MsgRegisterConsumerRewardDenom) XXX_Merge

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

func (*MsgRegisterConsumerRewardDenom) XXX_Size

func (m *MsgRegisterConsumerRewardDenom) XXX_Size() int

func (*MsgRegisterConsumerRewardDenom) XXX_Unmarshal

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

type MsgRegisterConsumerRewardDenomResponse

type MsgRegisterConsumerRewardDenomResponse struct {
}

MsgRegisterConsumerRewardDenomResponse defines the Msg/RegisterConsumerRewardDenom response type.

func (*MsgRegisterConsumerRewardDenomResponse) Descriptor

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

func (*MsgRegisterConsumerRewardDenomResponse) Marshal

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

func (*MsgRegisterConsumerRewardDenomResponse) MarshalTo

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

func (*MsgRegisterConsumerRewardDenomResponse) MarshalToSizedBuffer

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

func (*MsgRegisterConsumerRewardDenomResponse) ProtoMessage

func (*MsgRegisterConsumerRewardDenomResponse) Reset

func (*MsgRegisterConsumerRewardDenomResponse) Size

func (*MsgRegisterConsumerRewardDenomResponse) String

func (*MsgRegisterConsumerRewardDenomResponse) Unmarshal

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

func (*MsgRegisterConsumerRewardDenomResponse) XXX_DiscardUnknown

func (m *MsgRegisterConsumerRewardDenomResponse) XXX_DiscardUnknown()

func (*MsgRegisterConsumerRewardDenomResponse) XXX_Marshal

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

func (*MsgRegisterConsumerRewardDenomResponse) XXX_Merge

func (*MsgRegisterConsumerRewardDenomResponse) XXX_Size

func (*MsgRegisterConsumerRewardDenomResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type Params

type Params struct {
	TemplateClient *types2.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 channel initialization (IBC channel opening handshake) will timeout after this duration
	InitTimeoutPeriod time.Duration `protobuf:"bytes,4,opt,name=init_timeout_period,json=initTimeoutPeriod,proto3,stdduration" json:"init_timeout_period"`
	// The VSC packets sent by the provider will timeout after this duration.
	// Note that unlike ccv_timeout_period which is an IBC param,
	// the vsc_timeout_period is a provider-side param that enables the provider
	// to timeout VSC packets even when a consumer chain is not live.
	VscTimeoutPeriod time.Duration `protobuf:"bytes,5,opt,name=vsc_timeout_period,json=vscTimeoutPeriod,proto3,stdduration" json:"vsc_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 maximum amount of throttled slash or vsc matured packets
	// that can be queued for a single consumer before the provider chain halts.
	MaxThrottledPackets int64 `protobuf:"varint,8,opt,name=max_throttled_packets,json=maxThrottledPackets,proto3" json:"max_throttled_packets,omitempty"`
	// The fee required to be paid to add a reward denom
	ConsumerRewardDenomRegistrationFee types3.Coin `` /* 159-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,
	initTimeoutPeriod time.Duration,
	vscTimeoutPeriod time.Duration,
	slashMeterReplenishPeriod time.Duration,
	slashMeterReplenishFraction string,
	maxThrottledPackets int64,
	consumerRewardDenomRegistrationFee sdk.Coin,
) Params

NewParams creates new provider parameters with provided arguments

func (*Params) Descriptor

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

func (*Params) GetCcvTimeoutPeriod

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

func (*Params) GetConsumerRewardDenomRegistrationFee

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

func (*Params) GetInitTimeoutPeriod

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

func (*Params) GetMaxThrottledPackets

func (m *Params) GetMaxThrottledPackets() 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() *types2.ClientState

func (*Params) GetTrustingPeriodFraction

func (m *Params) GetTrustingPeriodFraction() string

func (*Params) GetVscTimeoutPeriod

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

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 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 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)
	// QueryConsumerChainStarts queries consumer chain start proposals.
	QueryConsumerChainStarts(ctx context.Context, in *QueryConsumerChainStartProposalsRequest, opts ...grpc.CallOption) (*QueryConsumerChainStartProposalsResponse, error)
	// QueryConsumerChainStops queries consumer chain stop proposals.
	QueryConsumerChainStops(ctx context.Context, in *QueryConsumerChainStopProposalsRequest, opts ...grpc.CallOption) (*QueryConsumerChainStopProposalsResponse, 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)
	// QueryThrottledConsumerPacketData returns a list of pending packet data instances
	// (slash packet and vsc matured) for a single consumer chain
	QueryThrottledConsumerPacketData(ctx context.Context, in *QueryThrottledConsumerPacketDataRequest, opts ...grpc.CallOption) (*QueryThrottledConsumerPacketDataResponse, error)
	// QueryRegisteredConsumerRewardDenoms returns a list of consumer reward denoms that are registered
	QueryRegisteredConsumerRewardDenoms(ctx context.Context, in *QueryRegisteredConsumerRewardDenomsRequest, opts ...grpc.CallOption) (*QueryRegisteredConsumerRewardDenomsResponse, 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 QueryConsumerChainStartProposalsRequest

type QueryConsumerChainStartProposalsRequest struct {
}

func (*QueryConsumerChainStartProposalsRequest) Descriptor

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

func (*QueryConsumerChainStartProposalsRequest) Marshal

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

func (*QueryConsumerChainStartProposalsRequest) MarshalTo

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

func (*QueryConsumerChainStartProposalsRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainStartProposalsRequest) ProtoMessage

func (*QueryConsumerChainStartProposalsRequest) Reset

func (*QueryConsumerChainStartProposalsRequest) Size

func (*QueryConsumerChainStartProposalsRequest) String

func (*QueryConsumerChainStartProposalsRequest) Unmarshal

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

func (*QueryConsumerChainStartProposalsRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainStartProposalsRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainStartProposalsRequest) XXX_Marshal

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

func (*QueryConsumerChainStartProposalsRequest) XXX_Merge

func (*QueryConsumerChainStartProposalsRequest) XXX_Size

func (*QueryConsumerChainStartProposalsRequest) XXX_Unmarshal

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

type QueryConsumerChainStartProposalsResponse

type QueryConsumerChainStartProposalsResponse struct {
	Proposals *ConsumerAdditionProposals `protobuf:"bytes,1,opt,name=proposals,proto3" json:"proposals,omitempty"`
}

func (*QueryConsumerChainStartProposalsResponse) Descriptor

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

func (*QueryConsumerChainStartProposalsResponse) GetProposals

func (*QueryConsumerChainStartProposalsResponse) Marshal

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

func (*QueryConsumerChainStartProposalsResponse) MarshalTo

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

func (*QueryConsumerChainStartProposalsResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainStartProposalsResponse) ProtoMessage

func (*QueryConsumerChainStartProposalsResponse) Reset

func (*QueryConsumerChainStartProposalsResponse) Size

func (*QueryConsumerChainStartProposalsResponse) String

func (*QueryConsumerChainStartProposalsResponse) Unmarshal

func (*QueryConsumerChainStartProposalsResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainStartProposalsResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainStartProposalsResponse) XXX_Marshal

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

func (*QueryConsumerChainStartProposalsResponse) XXX_Merge

func (*QueryConsumerChainStartProposalsResponse) XXX_Size

func (*QueryConsumerChainStartProposalsResponse) XXX_Unmarshal

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

type QueryConsumerChainStopProposalsRequest

type QueryConsumerChainStopProposalsRequest struct {
}

func (*QueryConsumerChainStopProposalsRequest) Descriptor

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

func (*QueryConsumerChainStopProposalsRequest) Marshal

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

func (*QueryConsumerChainStopProposalsRequest) MarshalTo

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

func (*QueryConsumerChainStopProposalsRequest) MarshalToSizedBuffer

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

func (*QueryConsumerChainStopProposalsRequest) ProtoMessage

func (*QueryConsumerChainStopProposalsRequest) Reset

func (*QueryConsumerChainStopProposalsRequest) Size

func (*QueryConsumerChainStopProposalsRequest) String

func (*QueryConsumerChainStopProposalsRequest) Unmarshal

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

func (*QueryConsumerChainStopProposalsRequest) XXX_DiscardUnknown

func (m *QueryConsumerChainStopProposalsRequest) XXX_DiscardUnknown()

func (*QueryConsumerChainStopProposalsRequest) XXX_Marshal

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

func (*QueryConsumerChainStopProposalsRequest) XXX_Merge

func (*QueryConsumerChainStopProposalsRequest) XXX_Size

func (*QueryConsumerChainStopProposalsRequest) XXX_Unmarshal

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

type QueryConsumerChainStopProposalsResponse

type QueryConsumerChainStopProposalsResponse struct {
	Proposals *ConsumerRemovalProposals `protobuf:"bytes,1,opt,name=proposals,proto3" json:"proposals,omitempty"`
}

func (*QueryConsumerChainStopProposalsResponse) Descriptor

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

func (*QueryConsumerChainStopProposalsResponse) GetProposals

func (*QueryConsumerChainStopProposalsResponse) Marshal

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

func (*QueryConsumerChainStopProposalsResponse) MarshalTo

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

func (*QueryConsumerChainStopProposalsResponse) MarshalToSizedBuffer

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

func (*QueryConsumerChainStopProposalsResponse) ProtoMessage

func (*QueryConsumerChainStopProposalsResponse) Reset

func (*QueryConsumerChainStopProposalsResponse) Size

func (*QueryConsumerChainStopProposalsResponse) String

func (*QueryConsumerChainStopProposalsResponse) Unmarshal

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

func (*QueryConsumerChainStopProposalsResponse) XXX_DiscardUnknown

func (m *QueryConsumerChainStopProposalsResponse) XXX_DiscardUnknown()

func (*QueryConsumerChainStopProposalsResponse) XXX_Marshal

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

func (*QueryConsumerChainStopProposalsResponse) XXX_Merge

func (*QueryConsumerChainStopProposalsResponse) XXX_Size

func (*QueryConsumerChainStopProposalsResponse) XXX_Unmarshal

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

type QueryConsumerChainsRequest

type QueryConsumerChainsRequest struct {
}

func (*QueryConsumerChainsRequest) Descriptor

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

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"`
}

func (*QueryConsumerChainsResponse) Descriptor

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

func (*QueryConsumerChainsResponse) GetChains

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

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 QueryConsumerGenesisRequest

type QueryConsumerGenesisRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*QueryConsumerGenesisRequest) Descriptor

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

func (*QueryConsumerGenesisRequest) GetChainId

func (m *QueryConsumerGenesisRequest) GetChainId() 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.GenesisState `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 (m *QueryConsumerGenesisResponse) GetGenesisState() types.GenesisState

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 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)
	// QueryConsumerChainStarts queries consumer chain start proposals.
	QueryConsumerChainStarts(context.Context, *QueryConsumerChainStartProposalsRequest) (*QueryConsumerChainStartProposalsResponse, error)
	// QueryConsumerChainStops queries consumer chain stop proposals.
	QueryConsumerChainStops(context.Context, *QueryConsumerChainStopProposalsRequest) (*QueryConsumerChainStopProposalsResponse, 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)
	// QueryThrottledConsumerPacketData returns a list of pending packet data instances
	// (slash packet and vsc matured) for a single consumer chain
	QueryThrottledConsumerPacketData(context.Context, *QueryThrottledConsumerPacketDataRequest) (*QueryThrottledConsumerPacketDataResponse, error)
	// QueryRegisteredConsumerRewardDenoms returns a list of consumer reward denoms that are registered
	QueryRegisteredConsumerRewardDenoms(context.Context, *QueryRegisteredConsumerRewardDenomsRequest) (*QueryRegisteredConsumerRewardDenomsResponse, 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 */
	// data relevant to currently throttled slash packets
	Packets []*ThrottledSlashPacket `protobuf:"bytes,4,rep,name=packets,proto3" json:"packets,omitempty"`
}

func (*QueryThrottleStateResponse) Descriptor

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

func (*QueryThrottleStateResponse) GetNextReplenishCandidate

func (m *QueryThrottleStateResponse) GetNextReplenishCandidate() time.Time

func (*QueryThrottleStateResponse) GetPackets

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 QueryThrottledConsumerPacketDataRequest

type QueryThrottledConsumerPacketDataRequest struct {
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*QueryThrottledConsumerPacketDataRequest) Descriptor

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

func (*QueryThrottledConsumerPacketDataRequest) GetChainId

func (*QueryThrottledConsumerPacketDataRequest) Marshal

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

func (*QueryThrottledConsumerPacketDataRequest) MarshalTo

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

func (*QueryThrottledConsumerPacketDataRequest) MarshalToSizedBuffer

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

func (*QueryThrottledConsumerPacketDataRequest) ProtoMessage

func (*QueryThrottledConsumerPacketDataRequest) Reset

func (*QueryThrottledConsumerPacketDataRequest) Size

func (*QueryThrottledConsumerPacketDataRequest) String

func (*QueryThrottledConsumerPacketDataRequest) Unmarshal

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

func (*QueryThrottledConsumerPacketDataRequest) XXX_DiscardUnknown

func (m *QueryThrottledConsumerPacketDataRequest) XXX_DiscardUnknown()

func (*QueryThrottledConsumerPacketDataRequest) XXX_Marshal

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

func (*QueryThrottledConsumerPacketDataRequest) XXX_Merge

func (*QueryThrottledConsumerPacketDataRequest) XXX_Size

func (*QueryThrottledConsumerPacketDataRequest) XXX_Unmarshal

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

type QueryThrottledConsumerPacketDataResponse

type QueryThrottledConsumerPacketDataResponse struct {
	ChainId             string                       `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Size_               uint64                       `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	PacketDataInstances []ThrottledPacketDataWrapper `protobuf:"bytes,3,rep,name=packetDataInstances,proto3" json:"packetDataInstances"`
}

func (*QueryThrottledConsumerPacketDataResponse) Descriptor

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

func (*QueryThrottledConsumerPacketDataResponse) GetChainId

func (*QueryThrottledConsumerPacketDataResponse) GetPacketDataInstances

func (*QueryThrottledConsumerPacketDataResponse) GetSize_

func (*QueryThrottledConsumerPacketDataResponse) Marshal

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

func (*QueryThrottledConsumerPacketDataResponse) MarshalTo

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

func (*QueryThrottledConsumerPacketDataResponse) MarshalToSizedBuffer

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

func (*QueryThrottledConsumerPacketDataResponse) ProtoMessage

func (*QueryThrottledConsumerPacketDataResponse) Reset

func (*QueryThrottledConsumerPacketDataResponse) Size

func (*QueryThrottledConsumerPacketDataResponse) String

func (*QueryThrottledConsumerPacketDataResponse) Unmarshal

func (*QueryThrottledConsumerPacketDataResponse) XXX_DiscardUnknown

func (m *QueryThrottledConsumerPacketDataResponse) XXX_DiscardUnknown()

func (*QueryThrottledConsumerPacketDataResponse) XXX_Marshal

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

func (*QueryThrottledConsumerPacketDataResponse) XXX_Merge

func (*QueryThrottledConsumerPacketDataResponse) XXX_Size

func (*QueryThrottledConsumerPacketDataResponse) XXX_Unmarshal

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

type QueryValidatorConsumerAddrRequest

type QueryValidatorConsumerAddrRequest struct {
	// The id of the consumer chain
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_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 (*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 QueryValidatorProviderAddrRequest

type QueryValidatorProviderAddrRequest struct {
	// The id of the provider chain
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// The consensus address of the validator on the consumer chain
	ConsumerAddress string `protobuf:"bytes,2,opt,name=consumer_address,json=consumerAddress,proto3" json:"consumer_address,omitempty" yaml:"address"`
}

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 ThrottledPacketDataWrapper

type ThrottledPacketDataWrapper struct {
	// Types that are valid to be assigned to Data:
	//	*ThrottledPacketDataWrapper_SlashPacket
	//	*ThrottledPacketDataWrapper_VscMaturedPacket
	Data isThrottledPacketDataWrapper_Data `protobuf_oneof:"data"`
}

ThrottledPacketDataWrapper contains either SlashPacketData or VSCMaturedPacketData

func (*ThrottledPacketDataWrapper) Descriptor

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

func (*ThrottledPacketDataWrapper) GetData

func (m *ThrottledPacketDataWrapper) GetData() isThrottledPacketDataWrapper_Data

func (*ThrottledPacketDataWrapper) GetSlashPacket

func (m *ThrottledPacketDataWrapper) GetSlashPacket() *types1.SlashPacketData

func (*ThrottledPacketDataWrapper) GetVscMaturedPacket

func (m *ThrottledPacketDataWrapper) GetVscMaturedPacket() *types1.VSCMaturedPacketData

func (*ThrottledPacketDataWrapper) Marshal

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

func (*ThrottledPacketDataWrapper) MarshalTo

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

func (*ThrottledPacketDataWrapper) MarshalToSizedBuffer

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

func (*ThrottledPacketDataWrapper) ProtoMessage

func (*ThrottledPacketDataWrapper) ProtoMessage()

func (*ThrottledPacketDataWrapper) Reset

func (m *ThrottledPacketDataWrapper) Reset()

func (*ThrottledPacketDataWrapper) Size

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

func (*ThrottledPacketDataWrapper) String

func (m *ThrottledPacketDataWrapper) String() string

func (*ThrottledPacketDataWrapper) Unmarshal

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

func (*ThrottledPacketDataWrapper) XXX_DiscardUnknown

func (m *ThrottledPacketDataWrapper) XXX_DiscardUnknown()

func (*ThrottledPacketDataWrapper) XXX_Marshal

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

func (*ThrottledPacketDataWrapper) XXX_Merge

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

func (*ThrottledPacketDataWrapper) XXX_OneofWrappers

func (*ThrottledPacketDataWrapper) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ThrottledPacketDataWrapper) XXX_Size

func (m *ThrottledPacketDataWrapper) XXX_Size() int

func (*ThrottledPacketDataWrapper) XXX_Unmarshal

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

type ThrottledPacketDataWrapper_SlashPacket

type ThrottledPacketDataWrapper_SlashPacket struct {
	SlashPacket *types1.SlashPacketData `protobuf:"bytes,1,opt,name=slash_packet,json=slashPacket,proto3,oneof" json:"slash_packet,omitempty"`
}

func (*ThrottledPacketDataWrapper_SlashPacket) MarshalTo

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

func (*ThrottledPacketDataWrapper_SlashPacket) MarshalToSizedBuffer

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

func (*ThrottledPacketDataWrapper_SlashPacket) Size

type ThrottledPacketDataWrapper_VscMaturedPacket

type ThrottledPacketDataWrapper_VscMaturedPacket struct {
	VscMaturedPacket *types1.VSCMaturedPacketData `protobuf:"bytes,2,opt,name=vsc_matured_packet,json=vscMaturedPacket,proto3,oneof" json:"vsc_matured_packet,omitempty"`
}

func (*ThrottledPacketDataWrapper_VscMaturedPacket) MarshalTo

func (*ThrottledPacketDataWrapper_VscMaturedPacket) MarshalToSizedBuffer

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

func (*ThrottledPacketDataWrapper_VscMaturedPacket) Size

type ThrottledSlashPacket

type ThrottledSlashPacket struct {
	GlobalEntry GlobalSlashEntry       `protobuf:"bytes,1,opt,name=global_entry,json=globalEntry,proto3" json:"global_entry"`
	Data        types1.SlashPacketData `protobuf:"bytes,2,opt,name=data,proto3" json:"data"`
}

A query wrapper type for the global entry and data relevant to a throttled slash packet.

func (*ThrottledSlashPacket) Descriptor

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

func (*ThrottledSlashPacket) GetData

func (*ThrottledSlashPacket) GetGlobalEntry

func (m *ThrottledSlashPacket) GetGlobalEntry() GlobalSlashEntry

func (*ThrottledSlashPacket) Marshal

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

func (*ThrottledSlashPacket) MarshalTo

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

func (*ThrottledSlashPacket) MarshalToSizedBuffer

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

func (*ThrottledSlashPacket) ProtoMessage

func (*ThrottledSlashPacket) ProtoMessage()

func (*ThrottledSlashPacket) Reset

func (m *ThrottledSlashPacket) Reset()

func (*ThrottledSlashPacket) Size

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

func (*ThrottledSlashPacket) String

func (m *ThrottledSlashPacket) String() string

func (*ThrottledSlashPacket) Unmarshal

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

func (*ThrottledSlashPacket) XXX_DiscardUnknown

func (m *ThrottledSlashPacket) XXX_DiscardUnknown()

func (*ThrottledSlashPacket) XXX_Marshal

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

func (*ThrottledSlashPacket) XXX_Merge

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

func (*ThrottledSlashPacket) XXX_Size

func (m *ThrottledSlashPacket) XXX_Size() int

func (*ThrottledSlashPacket) XXX_Unmarshal

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

type UnbondingOp

type UnbondingOp struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// consumer chains that are still unbonding
	UnbondingConsumerChains []string `` /* 132-byte string literal not displayed */
}

UnbondingOp contains the ids of consumer chains that need to unbond before the unbonding operation with the given ID can unbond

func (*UnbondingOp) Descriptor

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

func (*UnbondingOp) GetId

func (m *UnbondingOp) GetId() uint64

func (*UnbondingOp) GetUnbondingConsumerChains

func (m *UnbondingOp) GetUnbondingConsumerChains() []string

func (*UnbondingOp) Marshal

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

func (*UnbondingOp) MarshalTo

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

func (*UnbondingOp) MarshalToSizedBuffer

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

func (*UnbondingOp) ProtoMessage

func (*UnbondingOp) ProtoMessage()

func (*UnbondingOp) Reset

func (m *UnbondingOp) Reset()

func (*UnbondingOp) Size

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

func (*UnbondingOp) String

func (m *UnbondingOp) String() string

func (*UnbondingOp) Unmarshal

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

func (*UnbondingOp) XXX_DiscardUnknown

func (m *UnbondingOp) XXX_DiscardUnknown()

func (*UnbondingOp) XXX_Marshal

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

func (*UnbondingOp) XXX_Merge

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

func (*UnbondingOp) XXX_Size

func (m *UnbondingOp) XXX_Size() int

func (*UnbondingOp) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AssignConsumerKey

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryConsumerChains

func (*UnimplementedQueryServer) QueryConsumerGenesis

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

type VscSendTimestamp

type VscSendTimestamp struct {
	VscId     uint64    `protobuf:"varint,1,opt,name=vsc_id,json=vscId,proto3" json:"vsc_id,omitempty"`
	Timestamp time.Time `protobuf:"bytes,2,opt,name=timestamp,proto3,stdtime" json:"timestamp"`
}

func (*VscSendTimestamp) Descriptor

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

func (*VscSendTimestamp) GetTimestamp

func (m *VscSendTimestamp) GetTimestamp() time.Time

func (*VscSendTimestamp) GetVscId

func (m *VscSendTimestamp) GetVscId() uint64

func (*VscSendTimestamp) Marshal

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

func (*VscSendTimestamp) MarshalTo

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

func (*VscSendTimestamp) MarshalToSizedBuffer

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

func (*VscSendTimestamp) ProtoMessage

func (*VscSendTimestamp) ProtoMessage()

func (*VscSendTimestamp) Reset

func (m *VscSendTimestamp) Reset()

func (*VscSendTimestamp) Size

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

func (*VscSendTimestamp) String

func (m *VscSendTimestamp) String() string

func (*VscSendTimestamp) Unmarshal

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

func (*VscSendTimestamp) XXX_DiscardUnknown

func (m *VscSendTimestamp) XXX_DiscardUnknown()

func (*VscSendTimestamp) XXX_Marshal

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

func (*VscSendTimestamp) XXX_Merge

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

func (*VscSendTimestamp) XXX_Size

func (m *VscSendTimestamp) XXX_Size() int

func (*VscSendTimestamp) XXX_Unmarshal

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

type VscUnbondingOps

type VscUnbondingOps struct {
	VscId          uint64   `protobuf:"varint,1,opt,name=vsc_id,json=vscId,proto3" json:"vsc_id,omitempty"`
	UnbondingOpIds []uint64 `protobuf:"varint,2,rep,packed,name=unbonding_op_ids,json=unbondingOpIds,proto3" json:"unbonding_op_ids,omitempty"`
}

VscUnbondingOps contains the IDs of unbonding operations that are waiting for at least one VSCMaturedPacket with vscID from a consumer chain

func (*VscUnbondingOps) Descriptor

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

func (*VscUnbondingOps) GetUnbondingOpIds

func (m *VscUnbondingOps) GetUnbondingOpIds() []uint64

func (*VscUnbondingOps) GetVscId

func (m *VscUnbondingOps) GetVscId() uint64

func (*VscUnbondingOps) Marshal

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

func (*VscUnbondingOps) MarshalTo

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

func (*VscUnbondingOps) MarshalToSizedBuffer

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

func (*VscUnbondingOps) ProtoMessage

func (*VscUnbondingOps) ProtoMessage()

func (*VscUnbondingOps) Reset

func (m *VscUnbondingOps) Reset()

func (*VscUnbondingOps) Size

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

func (*VscUnbondingOps) String

func (m *VscUnbondingOps) String() string

func (*VscUnbondingOps) Unmarshal

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

func (*VscUnbondingOps) XXX_DiscardUnknown

func (m *VscUnbondingOps) XXX_DiscardUnknown()

func (*VscUnbondingOps) XXX_Marshal

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

func (*VscUnbondingOps) XXX_Merge

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

func (*VscUnbondingOps) XXX_Size

func (m *VscUnbondingOps) XXX_Size() int

func (*VscUnbondingOps) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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