Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CrossChainValidatorKey(addr []byte) []byte
- func HeightValsetUpdateIDKey(height uint64) []byte
- func HistoricalInfoKey(height int64) []byte
- func InitGenesisHeightKey() []byte
- func InitialValSetKey() []byte
- func LastDistributionTransmissionKey() []byte
- func OutstandingDowntimeKey(address sdk.ConsAddress) []byte
- func PacketMaturityTimeKey(vscID uint64, maturityTime time.Time) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func PendingChangesKey() []byte
- func PendingDataPacketsKey() []byte
- func PortKey() []byte
- func PreCCVKey() []byte
- func PrevStandaloneChainKey() []byte
- func ProviderChannelKey() []byte
- func ProviderClientIDKey() []byte
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SmallestNonOptOutPowerKey() []byte
- func StandaloneTransferChannelIDKey() []byte
- func UnbondingTimeKey() []byte
- func ValidateDenoms(i interface{}) error
- func ValidateProviderFeePoolAddrStr(i interface{}) error
- func ValidateSoftOptOutThreshold(i interface{}) error
- type CrossChainValidator
- func (ccv CrossChainValidator) ConsPubKey() (cryptotypes.PubKey, error)
- func (*CrossChainValidator) Descriptor() ([]byte, []int)
- func (m *CrossChainValidator) GetAddress() []byte
- func (m *CrossChainValidator) GetPower() int64
- func (m *CrossChainValidator) GetPubkey() *types.Any
- func (m *CrossChainValidator) Marshal() (dAtA []byte, err error)
- func (m *CrossChainValidator) MarshalTo(dAtA []byte) (int, error)
- func (m *CrossChainValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CrossChainValidator) ProtoMessage()
- func (m *CrossChainValidator) Reset()
- func (m *CrossChainValidator) Size() (n int)
- func (m *CrossChainValidator) String() string
- func (m *CrossChainValidator) Unmarshal(dAtA []byte) error
- func (ccv CrossChainValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *CrossChainValidator) XXX_DiscardUnknown()
- func (m *CrossChainValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CrossChainValidator) XXX_Merge(src proto.Message)
- func (m *CrossChainValidator) XXX_Size() int
- func (m *CrossChainValidator) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetHeightToValsetUpdateId() []HeightToValsetUpdateID
- func (m *GenesisState) GetInitialValSet() []types1.ValidatorUpdate
- func (m *GenesisState) GetLastTransmissionBlockHeight() LastTransmissionBlockHeight
- func (m *GenesisState) GetMaturingPackets() []MaturingVSCPacket
- func (m *GenesisState) GetNewChain() bool
- func (m *GenesisState) GetOutstandingDowntimeSlashing() []OutstandingDowntime
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPendingConsumerPackets() types2.ConsumerPacketDataList
- func (m *GenesisState) GetPreCCV() bool
- func (m *GenesisState) GetProviderChannelId() string
- func (m *GenesisState) GetProviderClientId() string
- func (m *GenesisState) GetProviderClientState() *types.ClientState
- func (m *GenesisState) GetProviderConsensusState() *types.ConsensusState
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type HeightToValsetUpdateID
- func (*HeightToValsetUpdateID) Descriptor() ([]byte, []int)
- func (m *HeightToValsetUpdateID) GetHeight() uint64
- func (m *HeightToValsetUpdateID) GetValsetUpdateId() uint64
- func (m *HeightToValsetUpdateID) Marshal() (dAtA []byte, err error)
- func (m *HeightToValsetUpdateID) MarshalTo(dAtA []byte) (int, error)
- func (m *HeightToValsetUpdateID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HeightToValsetUpdateID) ProtoMessage()
- func (m *HeightToValsetUpdateID) Reset()
- func (m *HeightToValsetUpdateID) Size() (n int)
- func (m *HeightToValsetUpdateID) String() string
- func (m *HeightToValsetUpdateID) Unmarshal(dAtA []byte) error
- func (m *HeightToValsetUpdateID) XXX_DiscardUnknown()
- func (m *HeightToValsetUpdateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeightToValsetUpdateID) XXX_Merge(src proto.Message)
- func (m *HeightToValsetUpdateID) XXX_Size() int
- func (m *HeightToValsetUpdateID) XXX_Unmarshal(b []byte) error
- type LastTransmissionBlockHeight
- func (*LastTransmissionBlockHeight) Descriptor() ([]byte, []int)
- func (m *LastTransmissionBlockHeight) GetHeight() int64
- func (m *LastTransmissionBlockHeight) Marshal() (dAtA []byte, err error)
- func (m *LastTransmissionBlockHeight) MarshalTo(dAtA []byte) (int, error)
- func (m *LastTransmissionBlockHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LastTransmissionBlockHeight) ProtoMessage()
- func (m *LastTransmissionBlockHeight) Reset()
- func (m *LastTransmissionBlockHeight) Size() (n int)
- func (m *LastTransmissionBlockHeight) String() string
- func (m *LastTransmissionBlockHeight) Unmarshal(dAtA []byte) error
- func (m *LastTransmissionBlockHeight) XXX_DiscardUnknown()
- func (m *LastTransmissionBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LastTransmissionBlockHeight) XXX_Merge(src proto.Message)
- func (m *LastTransmissionBlockHeight) XXX_Size() int
- func (m *LastTransmissionBlockHeight) XXX_Unmarshal(b []byte) error
- type MaturingVSCPacket
- func (*MaturingVSCPacket) Descriptor() ([]byte, []int)
- func (m *MaturingVSCPacket) GetMaturityTime() time.Time
- func (m *MaturingVSCPacket) GetVscId() uint64
- func (m *MaturingVSCPacket) Marshal() (dAtA []byte, err error)
- func (m *MaturingVSCPacket) MarshalTo(dAtA []byte) (int, error)
- func (m *MaturingVSCPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MaturingVSCPacket) ProtoMessage()
- func (m *MaturingVSCPacket) Reset()
- func (m *MaturingVSCPacket) Size() (n int)
- func (m *MaturingVSCPacket) String() string
- func (m *MaturingVSCPacket) Unmarshal(dAtA []byte) error
- func (mat MaturingVSCPacket) Validate() error
- func (m *MaturingVSCPacket) XXX_DiscardUnknown()
- func (m *MaturingVSCPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MaturingVSCPacket) XXX_Merge(src proto.Message)
- func (m *MaturingVSCPacket) XXX_Size() int
- func (m *MaturingVSCPacket) XXX_Unmarshal(b []byte) error
- type NextFeeDistributionEstimate
- func (*NextFeeDistributionEstimate) Descriptor() ([]byte, []int)
- func (m *NextFeeDistributionEstimate) GetCurrentHeight() int64
- func (m *NextFeeDistributionEstimate) GetDistributionFraction() string
- func (m *NextFeeDistributionEstimate) GetLastHeight() int64
- func (m *NextFeeDistributionEstimate) GetNextHeight() int64
- func (m *NextFeeDistributionEstimate) GetToConsumer() string
- func (m *NextFeeDistributionEstimate) GetToProvider() string
- func (m *NextFeeDistributionEstimate) GetTotal() string
- func (m *NextFeeDistributionEstimate) Marshal() (dAtA []byte, err error)
- func (m *NextFeeDistributionEstimate) MarshalTo(dAtA []byte) (int, error)
- func (m *NextFeeDistributionEstimate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NextFeeDistributionEstimate) ProtoMessage()
- func (m *NextFeeDistributionEstimate) Reset()
- func (m *NextFeeDistributionEstimate) Size() (n int)
- func (m *NextFeeDistributionEstimate) String() string
- func (m *NextFeeDistributionEstimate) Unmarshal(dAtA []byte) error
- func (m *NextFeeDistributionEstimate) XXX_DiscardUnknown()
- func (m *NextFeeDistributionEstimate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NextFeeDistributionEstimate) XXX_Merge(src proto.Message)
- func (m *NextFeeDistributionEstimate) XXX_Size() int
- func (m *NextFeeDistributionEstimate) XXX_Unmarshal(b []byte) error
- type OutstandingDowntime
- func (*OutstandingDowntime) Descriptor() ([]byte, []int)
- func (m *OutstandingDowntime) GetValidatorConsensusAddress() string
- func (m *OutstandingDowntime) Marshal() (dAtA []byte, err error)
- func (m *OutstandingDowntime) MarshalTo(dAtA []byte) (int, error)
- func (m *OutstandingDowntime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OutstandingDowntime) ProtoMessage()
- func (m *OutstandingDowntime) Reset()
- func (m *OutstandingDowntime) Size() (n int)
- func (m *OutstandingDowntime) String() string
- func (m *OutstandingDowntime) Unmarshal(dAtA []byte) error
- func (m *OutstandingDowntime) XXX_DiscardUnknown()
- func (m *OutstandingDowntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OutstandingDowntime) XXX_Merge(src proto.Message)
- func (m *OutstandingDowntime) XXX_Size() int
- func (m *OutstandingDowntime) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetBlocksPerDistributionTransmission() int64
- func (m *Params) GetCcvTimeoutPeriod() time.Duration
- func (m *Params) GetConsumerRedistributionFraction() string
- func (m *Params) GetDistributionTransmissionChannel() string
- func (m *Params) GetEnabled() bool
- func (m *Params) GetHistoricalEntries() int64
- func (m *Params) GetProviderFeePoolAddrStr() string
- func (m *Params) GetProviderRewardDenoms() []string
- func (m *Params) GetRewardDenoms() []string
- func (m *Params) GetSoftOptOutThreshold() string
- func (m *Params) GetTransferTimeoutPeriod() time.Duration
- func (m *Params) GetUnbondingPeriod() time.Duration
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryNextFeeDistributionEstimateRequest
- func (*QueryNextFeeDistributionEstimateRequest) Descriptor() ([]byte, []int)
- func (m *QueryNextFeeDistributionEstimateRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNextFeeDistributionEstimateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextFeeDistributionEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextFeeDistributionEstimateRequest) ProtoMessage()
- func (m *QueryNextFeeDistributionEstimateRequest) Reset()
- func (m *QueryNextFeeDistributionEstimateRequest) Size() (n int)
- func (m *QueryNextFeeDistributionEstimateRequest) String() string
- func (m *QueryNextFeeDistributionEstimateRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNextFeeDistributionEstimateRequest) XXX_DiscardUnknown()
- func (m *QueryNextFeeDistributionEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextFeeDistributionEstimateRequest) XXX_Merge(src proto.Message)
- func (m *QueryNextFeeDistributionEstimateRequest) XXX_Size() int
- func (m *QueryNextFeeDistributionEstimateRequest) XXX_Unmarshal(b []byte) error
- type QueryNextFeeDistributionEstimateResponse
- func (*QueryNextFeeDistributionEstimateResponse) Descriptor() ([]byte, []int)
- func (m *QueryNextFeeDistributionEstimateResponse) GetData() *NextFeeDistributionEstimate
- func (m *QueryNextFeeDistributionEstimateResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNextFeeDistributionEstimateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextFeeDistributionEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextFeeDistributionEstimateResponse) ProtoMessage()
- func (m *QueryNextFeeDistributionEstimateResponse) Reset()
- func (m *QueryNextFeeDistributionEstimateResponse) Size() (n int)
- func (m *QueryNextFeeDistributionEstimateResponse) String() string
- func (m *QueryNextFeeDistributionEstimateResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNextFeeDistributionEstimateResponse) XXX_DiscardUnknown()
- func (m *QueryNextFeeDistributionEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextFeeDistributionEstimateResponse) XXX_Merge(src proto.Message)
- func (m *QueryNextFeeDistributionEstimateResponse) XXX_Size() int
- func (m *QueryNextFeeDistributionEstimateResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the CCV consumer module name ModuleName = "ccvconsumer" // StoreKey is the store key string for IBC consumer StoreKey = ModuleName // RouterKey is the message route for IBC consumer RouterKey = ModuleName // QuerierRoute is the querier route for IBC consumer QuerierRoute = ModuleName // ConsumerRedistributeName the root string for the consumer-redistribution account address ConsumerRedistributeName = "cons_redistribute" // ConsumerToSendToProviderName is a "buffer" address for outgoing fees to be transferred to the provider chain ConsumerToSendToProviderName = "cons_to_send_to_provider" )
const ( // PortByteKey defines the byte key to store the port ID in store PortByteKey byte = iota // LastDistributionTransmissionByteKey defines the byte key to store the last distribution transmission LastDistributionTransmissionByteKey // UnbondingTimeKeyString is the byte key for storing the unbonding period UnbondingTimeByteKey // ProviderClientKeyString is the byte key for storing the clientID of the provider client ProviderClientByteKey // ProviderChannelKeyString is the byte key for storing the channelID of the CCV channel ProviderChannelByteKey // PendingChangesKeyString is the byte key that will store any pending validator set changes // received over CCV channel but not yet flushed over ABCI PendingChangesByteKey // NOTE: This prefix is depreciated, but left in place to avoid consumer state migrations // [DEPRECATED] PendingDataPacketsByteKey // PreCCVByteKey is the byte to store the consumer is running on democracy staking module without consumer PreCCVByteKey // InitialValSetByteKey is the byte to store the initial validator set for a consumer InitialValSetByteKey // NOTE: This prefix is depreciated, but left in place to avoid consumer state migrations // [DEPRECATED] LastStandaloneHeightByteKey // SmallestNonOptOutPowerByteKey is the byte that will store the smallest val power that cannot opt out SmallestNonOptOutPowerByteKey // HistoricalInfoKey is the byte prefix that will store the historical info for a given height HistoricalInfoBytePrefix // PacketMaturityTimePrefix is the byte prefix that will store maturity time for each received VSC packet PacketMaturityTimeBytePrefix // HeightValsetUpdateIDPrefix is the byte prefix that will store the mapping from block height to valset update ID HeightValsetUpdateIDBytePrefix // OutstandingDowntimePrefix is the byte prefix that will store the validators outstanding downtime by consensus address OutstandingDowntimeBytePrefix // PendingDataPacketsBytePrefix is the byte prefix for storing // a list of data packets that cannot be sent yet to the provider // chain either because the CCV channel is not established or // because the client is expired PendingDataPacketsBytePrefix // CrossChainValidatorPrefix is the byte prefix that will store cross-chain validators by consensus address CrossChainValidatorBytePrefix // InitGenesisHeightByteKey is the byte that will store the init genesis height InitGenesisHeightByteKey // StandaloneTransferChannelIDByteKey is the byte storing the channelID of transfer channel // that existed from a standalone chain changing over to a consumer StandaloneTransferChannelIDByteKey // PrevStandaloneChainByteKey is the byte storing the flag marking whether this chain was previously standalone PrevStandaloneChainByteKey )
Iota generated keys/key prefixes (as a byte), supports 256 possible values
const ( // about 2 hr at 7.6 seconds per blocks DefaultBlocksPerDistributionTransmission = 1000 // Default transfer timeout period is 1 hour, less than the default blocks // per dist transmission * average block time. // Since IBC token transfers do not have to be in order, it could be easier // to reason about the distribution protocol if the previous reward times out // before sending the next one. Note that on timeout, the transferred funds are // added back to the pool, so the next transfer will include them as well. DefaultTransferTimeoutPeriod = time.Hour // The default 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%. DefaultConsumerRedistributeFrac = "0.75" // Default number of historical info entries to persist in store. // We use the same default as the staking module, but use a signed integer // so that negative values can be caught during parameter validation in a readable way, // (and for consistency with other protobuf schemas defined for ccv). DefaultHistoricalEntries = int64(stakingtypes.DefaultHistoricalEntries) // In general, the default unbonding period on the consumer is one day less // than the default unbonding period on the provider, where the provider uses // the staking module default. DefaultConsumerUnbondingPeriod = stakingtypes.DefaultUnbondingTime - 24*time.Hour // By default, the bottom 5% of the validator set can opt out of validating consumer chains DefaultSoftOptOutThreshold = "0.05" )
Variables ¶
var ( ErrInvalidLengthConsumer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConsumer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConsumer = fmt.Errorf("proto: unexpected end of group") )
var ( ErrNoProposerChannelId = errorsmod.Register(ModuleName, 1, "no established CCV channel") ErrConsumerRewardDenomAlreadyRegistered = errorsmod.Register(ModuleName, 2, "consumer reward denom already registered") )
Consumer sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( KeyEnabled = []byte("Enabled") KeyBlocksPerDistributionTransmission = []byte("BlocksPerDistributionTransmission") KeyDistributionTransmissionChannel = []byte("DistributionTransmissionChannel") KeyProviderFeePoolAddrStr = []byte("ProviderFeePoolAddrStr") KeyTransferTimeoutPeriod = []byte("TransferTimeoutPeriod") KeyConsumerRedistributionFrac = []byte("ConsumerRedistributionFraction") KeyHistoricalEntries = []byte("HistoricalEntries") KeyConsumerUnbondingPeriod = []byte("UnbondingPeriod") KeySoftOptOutThreshold = []byte("SoftOptOutThreshold") KeyRewardDenoms = []byte("RewardDenoms") KeyProviderRewardDenoms = []byte("ProviderRewardDenoms") )
Reflection based keys for params subspace
Functions ¶
func CrossChainValidatorKey ¶
CrossChainValidatorKey returns the key to a cross chain validator by consensus address
func HeightValsetUpdateIDKey ¶
HeightValsetUpdateIDKey returns the key to a valset update ID for a given block height
func HistoricalInfoKey ¶
HistoricalInfoKey returns the key to historical info to a given block height
func InitGenesisHeightKey ¶
func InitGenesisHeightKey() []byte
func InitialValSetKey ¶
func InitialValSetKey() []byte
func LastDistributionTransmissionKey ¶
func LastDistributionTransmissionKey() []byte
LastDistributionTransmissionKey returns the key to the last distribution transmission in the store
func OutstandingDowntimeKey ¶
func OutstandingDowntimeKey(address sdk.ConsAddress) []byte
OutstandingDowntimeKey returns the key to a validators' outstanding downtime by consensus address
func PacketMaturityTimeKey ¶
PacketMaturityTimeKey returns the key for storing the maturity time for a given received VSC packet id
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable type declaration for parameters
func PendingChangesKey ¶
func PendingChangesKey() []byte
PendingChangesKey returns the key for storing pending validator set changes
func PendingDataPacketsKey ¶
func PendingDataPacketsKey() []byte
PendingDataPacketsKey returns the key for storing a list of data packets that cannot be sent yet to the provider chain either because the CCV channel is not established or because the client is expired.
func PrevStandaloneChainKey ¶
func PrevStandaloneChainKey() []byte
PrevStandaloneChainKey returns the key to the flag marking whether this chain was previously standalone
func ProviderChannelKey ¶
func ProviderChannelKey() []byte
ProviderChannelKey returns the key for storing channelID of the provider chain
func ProviderClientIDKey ¶
func ProviderClientIDKey() []byte
ProviderClientIDKey returns the key for storing clientID of the provider
func RegisterQueryHandler ¶
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 SmallestNonOptOutPowerKey ¶
func SmallestNonOptOutPowerKey() []byte
func StandaloneTransferChannelIDKey ¶
func StandaloneTransferChannelIDKey() []byte
StandaloneTransferChannelIDKey returns the key to the transfer channelID that existed from a standalone chain changing over to a consumer
func UnbondingTimeKey ¶
func UnbondingTimeKey() []byte
UnbondingTimeKey returns the key for storing the unbonding period
func ValidateDenoms ¶
func ValidateDenoms(i interface{}) error
func ValidateProviderFeePoolAddrStr ¶
func ValidateProviderFeePoolAddrStr(i interface{}) error
func ValidateSoftOptOutThreshold ¶
func ValidateSoftOptOutThreshold(i interface{}) error
Types ¶
type CrossChainValidator ¶
type CrossChainValidator struct { Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"` // pubkey is the consensus public key of the validator, as a Protobuf Any. Pubkey *types.Any `protobuf:"bytes,3,opt,name=pubkey,proto3" json:"pubkey,omitempty" yaml:"consensus_pubkey"` }
CrossChainValidator defines the validators for CCV consumer module
func NewCCValidator ¶
func NewCCValidator(address []byte, power int64, pubKey cryptotypes.PubKey) (CrossChainValidator, error)
func (CrossChainValidator) ConsPubKey ¶
func (ccv CrossChainValidator) ConsPubKey() (cryptotypes.PubKey, error)
ConsPubKey returns the validator PubKey as a cryptotypes.PubKey.
func (*CrossChainValidator) Descriptor ¶
func (*CrossChainValidator) Descriptor() ([]byte, []int)
func (*CrossChainValidator) GetAddress ¶
func (m *CrossChainValidator) GetAddress() []byte
func (*CrossChainValidator) GetPower ¶
func (m *CrossChainValidator) GetPower() int64
func (*CrossChainValidator) GetPubkey ¶
func (m *CrossChainValidator) GetPubkey() *types.Any
func (*CrossChainValidator) Marshal ¶
func (m *CrossChainValidator) Marshal() (dAtA []byte, err error)
func (*CrossChainValidator) MarshalTo ¶
func (m *CrossChainValidator) MarshalTo(dAtA []byte) (int, error)
func (*CrossChainValidator) MarshalToSizedBuffer ¶
func (m *CrossChainValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CrossChainValidator) ProtoMessage ¶
func (*CrossChainValidator) ProtoMessage()
func (*CrossChainValidator) Reset ¶
func (m *CrossChainValidator) Reset()
func (*CrossChainValidator) Size ¶
func (m *CrossChainValidator) Size() (n int)
func (*CrossChainValidator) String ¶
func (m *CrossChainValidator) String() string
func (*CrossChainValidator) Unmarshal ¶
func (m *CrossChainValidator) Unmarshal(dAtA []byte) error
func (CrossChainValidator) UnpackInterfaces ¶
func (ccv CrossChainValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (*CrossChainValidator) XXX_DiscardUnknown ¶
func (m *CrossChainValidator) XXX_DiscardUnknown()
func (*CrossChainValidator) XXX_Marshal ¶
func (m *CrossChainValidator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CrossChainValidator) XXX_Merge ¶
func (m *CrossChainValidator) XXX_Merge(src proto.Message)
func (*CrossChainValidator) XXX_Size ¶
func (m *CrossChainValidator) XXX_Size() int
func (*CrossChainValidator) XXX_Unmarshal ¶
func (m *CrossChainValidator) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` ProviderClientId string `protobuf:"bytes,2,opt,name=provider_client_id,json=providerClientId,proto3" json:"provider_client_id,omitempty"` ProviderChannelId string `protobuf:"bytes,3,opt,name=provider_channel_id,json=providerChannelId,proto3" json:"provider_channel_id,omitempty"` NewChain bool `protobuf:"varint,4,opt,name=new_chain,json=newChain,proto3" json:"new_chain,omitempty"` // ProviderClientState filled in on new chain, nil on restart. ProviderClientState *types.ClientState `protobuf:"bytes,5,opt,name=provider_client_state,json=providerClientState,proto3" json:"provider_client_state,omitempty"` // ProviderConsensusState filled in on new chain, nil on restart. ProviderConsensusState *types.ConsensusState `` /* 129-byte string literal not displayed */ // MaturingPackets nil on new chain, filled in on restart. MaturingPackets []MaturingVSCPacket `protobuf:"bytes,7,rep,name=maturing_packets,json=maturingPackets,proto3" json:"maturing_packets"` // InitialValset filled in on new chain and on restart. InitialValSet []types1.ValidatorUpdate `protobuf:"bytes,8,rep,name=initial_val_set,json=initialValSet,proto3" json:"initial_val_set"` // HeightToValsetUpdateId nil on new chain, filled in on restart. HeightToValsetUpdateId []HeightToValsetUpdateID `protobuf:"bytes,9,rep,name=height_to_valset_update_id,json=heightToValsetUpdateId,proto3" json:"height_to_valset_update_id"` // OutstandingDowntimes nil on new chain, filled in on restart. OutstandingDowntimeSlashing []OutstandingDowntime `` /* 135-byte string literal not displayed */ // PendingConsumerPackets nil on new chain, filled in on restart. PendingConsumerPackets types2.ConsumerPacketDataList `protobuf:"bytes,11,opt,name=pending_consumer_packets,json=pendingConsumerPackets,proto3" json:"pending_consumer_packets"` // LastTransmissionBlockHeight nil on new chain, filled in on restart. LastTransmissionBlockHeight LastTransmissionBlockHeight `` /* 137-byte string literal not displayed */ PreCCV bool `protobuf:"varint,13,opt,name=preCCV,proto3" json:"preCCV,omitempty"` }
GenesisState defines the CCV consumer chain genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default disabled consumer chain genesis state. This allows the module to be hooked up to app without getting use unless explicitly specified in genesis.
func NewInitialGenesisState ¶
func NewInitialGenesisState(cs *ibctmtypes.ClientState, consState *ibctmtypes.ConsensusState, initValSet []abci.ValidatorUpdate, params Params, ) *GenesisState
NewInitialGenesisState returns a consumer GenesisState for a completely new consumer chain.
func NewRestartGenesisState ¶
func NewRestartGenesisState( clientID, channelID string, maturingPackets []MaturingVSCPacket, initValSet []abci.ValidatorUpdate, heightToValsetUpdateIDs []HeightToValsetUpdateID, pendingConsumerPackets ccv.ConsumerPacketDataList, outstandingDowntimes []OutstandingDowntime, lastTransBlockHeight LastTransmissionBlockHeight, params Params, ) *GenesisState
NewRestartGenesisState returns a consumer GenesisState that has already been established.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetHeightToValsetUpdateId ¶
func (m *GenesisState) GetHeightToValsetUpdateId() []HeightToValsetUpdateID
func (*GenesisState) GetInitialValSet ¶
func (m *GenesisState) GetInitialValSet() []types1.ValidatorUpdate
func (*GenesisState) GetLastTransmissionBlockHeight ¶
func (m *GenesisState) GetLastTransmissionBlockHeight() LastTransmissionBlockHeight
func (*GenesisState) GetMaturingPackets ¶
func (m *GenesisState) GetMaturingPackets() []MaturingVSCPacket
func (*GenesisState) GetNewChain ¶
func (m *GenesisState) GetNewChain() bool
func (*GenesisState) GetOutstandingDowntimeSlashing ¶
func (m *GenesisState) GetOutstandingDowntimeSlashing() []OutstandingDowntime
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPendingConsumerPackets ¶
func (m *GenesisState) GetPendingConsumerPackets() types2.ConsumerPacketDataList
func (*GenesisState) GetPreCCV ¶
func (m *GenesisState) GetPreCCV() bool
func (*GenesisState) GetProviderChannelId ¶
func (m *GenesisState) GetProviderChannelId() string
func (*GenesisState) GetProviderClientId ¶
func (m *GenesisState) GetProviderClientId() string
func (*GenesisState) GetProviderClientState ¶
func (m *GenesisState) GetProviderClientState() *types.ClientState
func (*GenesisState) GetProviderConsensusState ¶
func (m *GenesisState) GetProviderConsensusState() *types.ConsensusState
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type HeightToValsetUpdateID ¶
type HeightToValsetUpdateID struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` ValsetUpdateId uint64 `protobuf:"varint,2,opt,name=valset_update_id,json=valsetUpdateId,proto3" json:"valset_update_id,omitempty"` }
HeightValsetUpdateID defines the genesis information for the mapping of each block height to a valset update id
func (*HeightToValsetUpdateID) Descriptor ¶
func (*HeightToValsetUpdateID) Descriptor() ([]byte, []int)
func (*HeightToValsetUpdateID) GetHeight ¶
func (m *HeightToValsetUpdateID) GetHeight() uint64
func (*HeightToValsetUpdateID) GetValsetUpdateId ¶
func (m *HeightToValsetUpdateID) GetValsetUpdateId() uint64
func (*HeightToValsetUpdateID) Marshal ¶
func (m *HeightToValsetUpdateID) Marshal() (dAtA []byte, err error)
func (*HeightToValsetUpdateID) MarshalTo ¶
func (m *HeightToValsetUpdateID) MarshalTo(dAtA []byte) (int, error)
func (*HeightToValsetUpdateID) MarshalToSizedBuffer ¶
func (m *HeightToValsetUpdateID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HeightToValsetUpdateID) ProtoMessage ¶
func (*HeightToValsetUpdateID) ProtoMessage()
func (*HeightToValsetUpdateID) Reset ¶
func (m *HeightToValsetUpdateID) Reset()
func (*HeightToValsetUpdateID) Size ¶
func (m *HeightToValsetUpdateID) Size() (n int)
func (*HeightToValsetUpdateID) String ¶
func (m *HeightToValsetUpdateID) String() string
func (*HeightToValsetUpdateID) Unmarshal ¶
func (m *HeightToValsetUpdateID) Unmarshal(dAtA []byte) error
func (*HeightToValsetUpdateID) XXX_DiscardUnknown ¶
func (m *HeightToValsetUpdateID) XXX_DiscardUnknown()
func (*HeightToValsetUpdateID) XXX_Marshal ¶
func (m *HeightToValsetUpdateID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HeightToValsetUpdateID) XXX_Merge ¶
func (m *HeightToValsetUpdateID) XXX_Merge(src proto.Message)
func (*HeightToValsetUpdateID) XXX_Size ¶
func (m *HeightToValsetUpdateID) XXX_Size() int
func (*HeightToValsetUpdateID) XXX_Unmarshal ¶
func (m *HeightToValsetUpdateID) XXX_Unmarshal(b []byte) error
type LastTransmissionBlockHeight ¶
type LastTransmissionBlockHeight struct {
Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}
LastTransmissionBlockHeight is the last time validator holding pools were transmitted to the provider chain
func (*LastTransmissionBlockHeight) Descriptor ¶
func (*LastTransmissionBlockHeight) Descriptor() ([]byte, []int)
func (*LastTransmissionBlockHeight) GetHeight ¶
func (m *LastTransmissionBlockHeight) GetHeight() int64
func (*LastTransmissionBlockHeight) Marshal ¶
func (m *LastTransmissionBlockHeight) Marshal() (dAtA []byte, err error)
func (*LastTransmissionBlockHeight) MarshalTo ¶
func (m *LastTransmissionBlockHeight) MarshalTo(dAtA []byte) (int, error)
func (*LastTransmissionBlockHeight) MarshalToSizedBuffer ¶
func (m *LastTransmissionBlockHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastTransmissionBlockHeight) ProtoMessage ¶
func (*LastTransmissionBlockHeight) ProtoMessage()
func (*LastTransmissionBlockHeight) Reset ¶
func (m *LastTransmissionBlockHeight) Reset()
func (*LastTransmissionBlockHeight) Size ¶
func (m *LastTransmissionBlockHeight) Size() (n int)
func (*LastTransmissionBlockHeight) String ¶
func (m *LastTransmissionBlockHeight) String() string
func (*LastTransmissionBlockHeight) Unmarshal ¶
func (m *LastTransmissionBlockHeight) Unmarshal(dAtA []byte) error
func (*LastTransmissionBlockHeight) XXX_DiscardUnknown ¶
func (m *LastTransmissionBlockHeight) XXX_DiscardUnknown()
func (*LastTransmissionBlockHeight) XXX_Marshal ¶
func (m *LastTransmissionBlockHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastTransmissionBlockHeight) XXX_Merge ¶
func (m *LastTransmissionBlockHeight) XXX_Merge(src proto.Message)
func (*LastTransmissionBlockHeight) XXX_Size ¶
func (m *LastTransmissionBlockHeight) XXX_Size() int
func (*LastTransmissionBlockHeight) XXX_Unmarshal ¶
func (m *LastTransmissionBlockHeight) XXX_Unmarshal(b []byte) error
type MaturingVSCPacket ¶
type MaturingVSCPacket struct { VscId uint64 `protobuf:"varint,1,opt,name=vscId,proto3" json:"vscId,omitempty"` MaturityTime time.Time `protobuf:"bytes,2,opt,name=maturity_time,json=maturityTime,proto3,stdtime" json:"maturity_time"` }
MaturingVSCPacket contains the maturing time of a received VSCPacket
func (*MaturingVSCPacket) Descriptor ¶
func (*MaturingVSCPacket) Descriptor() ([]byte, []int)
func (*MaturingVSCPacket) GetMaturityTime ¶
func (m *MaturingVSCPacket) GetMaturityTime() time.Time
func (*MaturingVSCPacket) GetVscId ¶
func (m *MaturingVSCPacket) GetVscId() uint64
func (*MaturingVSCPacket) Marshal ¶
func (m *MaturingVSCPacket) Marshal() (dAtA []byte, err error)
func (*MaturingVSCPacket) MarshalTo ¶
func (m *MaturingVSCPacket) MarshalTo(dAtA []byte) (int, error)
func (*MaturingVSCPacket) MarshalToSizedBuffer ¶
func (m *MaturingVSCPacket) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MaturingVSCPacket) ProtoMessage ¶
func (*MaturingVSCPacket) ProtoMessage()
func (*MaturingVSCPacket) Reset ¶
func (m *MaturingVSCPacket) Reset()
func (*MaturingVSCPacket) Size ¶
func (m *MaturingVSCPacket) Size() (n int)
func (*MaturingVSCPacket) String ¶
func (m *MaturingVSCPacket) String() string
func (*MaturingVSCPacket) Unmarshal ¶
func (m *MaturingVSCPacket) Unmarshal(dAtA []byte) error
func (MaturingVSCPacket) Validate ¶
func (mat MaturingVSCPacket) Validate() error
func (*MaturingVSCPacket) XXX_DiscardUnknown ¶
func (m *MaturingVSCPacket) XXX_DiscardUnknown()
func (*MaturingVSCPacket) XXX_Marshal ¶
func (m *MaturingVSCPacket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MaturingVSCPacket) XXX_Merge ¶
func (m *MaturingVSCPacket) XXX_Merge(src proto.Message)
func (*MaturingVSCPacket) XXX_Size ¶
func (m *MaturingVSCPacket) XXX_Size() int
func (*MaturingVSCPacket) XXX_Unmarshal ¶
func (m *MaturingVSCPacket) XXX_Unmarshal(b []byte) error
type NextFeeDistributionEstimate ¶
type NextFeeDistributionEstimate struct { // current block height at the time of querying CurrentHeight int64 `protobuf:"varint,1,opt,name=currentHeight,proto3" json:"currentHeight,omitempty"` // block height at which last distribution took place LastHeight int64 `protobuf:"varint,2,opt,name=lastHeight,proto3" json:"lastHeight,omitempty"` // block height at which next distribution will take place NextHeight int64 `protobuf:"varint,3,opt,name=nextHeight,proto3" json:"nextHeight,omitempty"` // ratio between consumer and provider fee distribution DistributionFraction string `protobuf:"bytes,4,opt,name=distribution_fraction,json=distributionFraction,proto3" json:"distribution_fraction,omitempty"` // total accruead fees at the time of querying Total string `protobuf:"bytes,5,opt,name=total,proto3" json:"total,omitempty"` // amount distibuted to provider chain ToProvider string `protobuf:"bytes,6,opt,name=toProvider,proto3" json:"toProvider,omitempty"` // amount distributed (kept) by consumer chain ToConsumer string `protobuf:"bytes,7,opt,name=toConsumer,proto3" json:"toConsumer,omitempty"` }
NextFeeDistributionEstimate holds information about next fee distribution
func (*NextFeeDistributionEstimate) Descriptor ¶
func (*NextFeeDistributionEstimate) Descriptor() ([]byte, []int)
func (*NextFeeDistributionEstimate) GetCurrentHeight ¶
func (m *NextFeeDistributionEstimate) GetCurrentHeight() int64
func (*NextFeeDistributionEstimate) GetDistributionFraction ¶
func (m *NextFeeDistributionEstimate) GetDistributionFraction() string
func (*NextFeeDistributionEstimate) GetLastHeight ¶
func (m *NextFeeDistributionEstimate) GetLastHeight() int64
func (*NextFeeDistributionEstimate) GetNextHeight ¶
func (m *NextFeeDistributionEstimate) GetNextHeight() int64
func (*NextFeeDistributionEstimate) GetToConsumer ¶
func (m *NextFeeDistributionEstimate) GetToConsumer() string
func (*NextFeeDistributionEstimate) GetToProvider ¶
func (m *NextFeeDistributionEstimate) GetToProvider() string
func (*NextFeeDistributionEstimate) GetTotal ¶
func (m *NextFeeDistributionEstimate) GetTotal() string
func (*NextFeeDistributionEstimate) Marshal ¶
func (m *NextFeeDistributionEstimate) Marshal() (dAtA []byte, err error)
func (*NextFeeDistributionEstimate) MarshalTo ¶
func (m *NextFeeDistributionEstimate) MarshalTo(dAtA []byte) (int, error)
func (*NextFeeDistributionEstimate) MarshalToSizedBuffer ¶
func (m *NextFeeDistributionEstimate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*NextFeeDistributionEstimate) ProtoMessage ¶
func (*NextFeeDistributionEstimate) ProtoMessage()
func (*NextFeeDistributionEstimate) Reset ¶
func (m *NextFeeDistributionEstimate) Reset()
func (*NextFeeDistributionEstimate) Size ¶
func (m *NextFeeDistributionEstimate) Size() (n int)
func (*NextFeeDistributionEstimate) String ¶
func (m *NextFeeDistributionEstimate) String() string
func (*NextFeeDistributionEstimate) Unmarshal ¶
func (m *NextFeeDistributionEstimate) Unmarshal(dAtA []byte) error
func (*NextFeeDistributionEstimate) XXX_DiscardUnknown ¶
func (m *NextFeeDistributionEstimate) XXX_DiscardUnknown()
func (*NextFeeDistributionEstimate) XXX_Marshal ¶
func (m *NextFeeDistributionEstimate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NextFeeDistributionEstimate) XXX_Merge ¶
func (m *NextFeeDistributionEstimate) XXX_Merge(src proto.Message)
func (*NextFeeDistributionEstimate) XXX_Size ¶
func (m *NextFeeDistributionEstimate) XXX_Size() int
func (*NextFeeDistributionEstimate) XXX_Unmarshal ¶
func (m *NextFeeDistributionEstimate) XXX_Unmarshal(b []byte) error
type OutstandingDowntime ¶
type OutstandingDowntime struct {
ValidatorConsensusAddress string `` /* 138-byte string literal not displayed */
}
OutstandingDowntime defines the genesis information for each validator flagged with an outstanding downtime slashing.
func (*OutstandingDowntime) Descriptor ¶
func (*OutstandingDowntime) Descriptor() ([]byte, []int)
func (*OutstandingDowntime) GetValidatorConsensusAddress ¶
func (m *OutstandingDowntime) GetValidatorConsensusAddress() string
func (*OutstandingDowntime) Marshal ¶
func (m *OutstandingDowntime) Marshal() (dAtA []byte, err error)
func (*OutstandingDowntime) MarshalTo ¶
func (m *OutstandingDowntime) MarshalTo(dAtA []byte) (int, error)
func (*OutstandingDowntime) MarshalToSizedBuffer ¶
func (m *OutstandingDowntime) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OutstandingDowntime) ProtoMessage ¶
func (*OutstandingDowntime) ProtoMessage()
func (*OutstandingDowntime) Reset ¶
func (m *OutstandingDowntime) Reset()
func (*OutstandingDowntime) Size ¶
func (m *OutstandingDowntime) Size() (n int)
func (*OutstandingDowntime) String ¶
func (m *OutstandingDowntime) String() string
func (*OutstandingDowntime) Unmarshal ¶
func (m *OutstandingDowntime) Unmarshal(dAtA []byte) error
func (*OutstandingDowntime) XXX_DiscardUnknown ¶
func (m *OutstandingDowntime) XXX_DiscardUnknown()
func (*OutstandingDowntime) XXX_Marshal ¶
func (m *OutstandingDowntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OutstandingDowntime) XXX_Merge ¶
func (m *OutstandingDowntime) XXX_Merge(src proto.Message)
func (*OutstandingDowntime) XXX_Size ¶
func (m *OutstandingDowntime) XXX_Size() int
func (*OutstandingDowntime) XXX_Unmarshal ¶
func (m *OutstandingDowntime) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // TODO: Remove enabled flag and find a better way to setup integration tests // See: https://github.com/cosmos/interchain-security/issues/339 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` /////////////////////// // Distribution Params // Number of blocks between ibc-token-transfers from the consumer chain to // the provider chain. Note that at this transmission event a fraction of // the accumulated tokens are divided and sent consumer redistribution // address. BlocksPerDistributionTransmission int64 `` /* 165-byte string literal not displayed */ // Channel, and provider-chain receiving address to send distribution token // transfers over. These parameters is auto-set during the consumer <-> // provider handshake procedure. DistributionTransmissionChannel string `` /* 156-byte string literal not displayed */ ProviderFeePoolAddrStr string `` /* 133-byte string literal not displayed */ // Sent CCV related IBC packets will timeout after this duration CcvTimeoutPeriod time.Duration `protobuf:"bytes,5,opt,name=ccv_timeout_period,json=ccvTimeoutPeriod,proto3,stdduration" json:"ccv_timeout_period"` // Sent transfer related IBC packets will timeout after this duration TransferTimeoutPeriod time.Duration `` /* 128-byte string literal not displayed */ // The fraction of tokens allocated to the consumer redistribution address // during distribution events. The fraction is a string representing a // decimal number. For example "0.75" would represent 75%. ConsumerRedistributionFraction string `` /* 153-byte string literal not displayed */ // 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,8,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"` // Unbonding period for the consumer, // which should be smaller than that of the provider in general. UnbondingPeriod time.Duration `protobuf:"bytes,9,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"` // The threshold for the percentage of validators at the bottom of the set who // can opt out of running the consumer chain without being punished. For example, a // value of 0.05 means that the validators in the bottom 5% of the set can opt out SoftOptOutThreshold string `protobuf:"bytes,10,opt,name=soft_opt_out_threshold,json=softOptOutThreshold,proto3" json:"soft_opt_out_threshold,omitempty"` // Reward denoms. These are the denominations which are allowed to be sent to the provider as rewards. RewardDenoms []string `protobuf:"bytes,11,rep,name=reward_denoms,json=rewardDenoms,proto3" json:"reward_denoms,omitempty"` // Provider-originated reward denoms. These are denoms coming from the provider // which are allowed to be used as rewards. e.g. "uatom" ProviderRewardDenoms []string `protobuf:"bytes,12,rep,name=provider_reward_denoms,json=providerRewardDenoms,proto3" json:"provider_reward_denoms,omitempty"` }
Params defines the parameters for CCV consumer module
func DefaultParams ¶
func DefaultParams() Params
DefaultParams is the default params for the consumer module
func NewParams ¶
func NewParams(enabled bool, blocksPerDistributionTransmission int64, distributionTransmissionChannel, providerFeePoolAddrStr string, ccvTimeoutPeriod, transferTimeoutPeriod time.Duration, consumerRedistributionFraction string, historicalEntries int64, consumerUnbondingPeriod time.Duration, softOptOutThreshold string, rewardDenoms, providerRewardDenoms []string, ) Params
NewParams creates new consumer parameters with provided arguments
func (*Params) Descriptor ¶
func (*Params) GetBlocksPerDistributionTransmission ¶
func (*Params) GetCcvTimeoutPeriod ¶
func (*Params) GetConsumerRedistributionFraction ¶
func (*Params) GetDistributionTransmissionChannel ¶
func (*Params) GetEnabled ¶
func (*Params) GetHistoricalEntries ¶
func (*Params) GetProviderFeePoolAddrStr ¶
func (*Params) GetProviderRewardDenoms ¶
func (*Params) GetRewardDenoms ¶
func (*Params) GetSoftOptOutThreshold ¶
func (*Params) GetTransferTimeoutPeriod ¶
func (*Params) GetUnbondingPeriod ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // ConsumerGenesis queries the genesis state needed to start a consumer chain // whose proposal has been accepted QueryNextFeeDistribution(ctx context.Context, in *QueryNextFeeDistributionEstimateRequest, opts ...grpc.CallOption) (*QueryNextFeeDistributionEstimateResponse, error) // QueryParams queries the ccv/consumer module parameters. QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryNextFeeDistributionEstimateRequest ¶
type QueryNextFeeDistributionEstimateRequest struct { }
func (*QueryNextFeeDistributionEstimateRequest) Descriptor ¶
func (*QueryNextFeeDistributionEstimateRequest) Descriptor() ([]byte, []int)
func (*QueryNextFeeDistributionEstimateRequest) Marshal ¶
func (m *QueryNextFeeDistributionEstimateRequest) Marshal() (dAtA []byte, err error)
func (*QueryNextFeeDistributionEstimateRequest) MarshalTo ¶
func (m *QueryNextFeeDistributionEstimateRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextFeeDistributionEstimateRequest) MarshalToSizedBuffer ¶
func (m *QueryNextFeeDistributionEstimateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextFeeDistributionEstimateRequest) ProtoMessage ¶
func (*QueryNextFeeDistributionEstimateRequest) ProtoMessage()
func (*QueryNextFeeDistributionEstimateRequest) Reset ¶
func (m *QueryNextFeeDistributionEstimateRequest) Reset()
func (*QueryNextFeeDistributionEstimateRequest) Size ¶
func (m *QueryNextFeeDistributionEstimateRequest) Size() (n int)
func (*QueryNextFeeDistributionEstimateRequest) String ¶
func (m *QueryNextFeeDistributionEstimateRequest) String() string
func (*QueryNextFeeDistributionEstimateRequest) Unmarshal ¶
func (m *QueryNextFeeDistributionEstimateRequest) Unmarshal(dAtA []byte) error
func (*QueryNextFeeDistributionEstimateRequest) XXX_DiscardUnknown ¶
func (m *QueryNextFeeDistributionEstimateRequest) XXX_DiscardUnknown()
func (*QueryNextFeeDistributionEstimateRequest) XXX_Marshal ¶
func (m *QueryNextFeeDistributionEstimateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextFeeDistributionEstimateRequest) XXX_Merge ¶
func (m *QueryNextFeeDistributionEstimateRequest) XXX_Merge(src proto.Message)
func (*QueryNextFeeDistributionEstimateRequest) XXX_Size ¶
func (m *QueryNextFeeDistributionEstimateRequest) XXX_Size() int
func (*QueryNextFeeDistributionEstimateRequest) XXX_Unmarshal ¶
func (m *QueryNextFeeDistributionEstimateRequest) XXX_Unmarshal(b []byte) error
type QueryNextFeeDistributionEstimateResponse ¶
type QueryNextFeeDistributionEstimateResponse struct {
Data *NextFeeDistributionEstimate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*QueryNextFeeDistributionEstimateResponse) Descriptor ¶
func (*QueryNextFeeDistributionEstimateResponse) Descriptor() ([]byte, []int)
func (*QueryNextFeeDistributionEstimateResponse) GetData ¶
func (m *QueryNextFeeDistributionEstimateResponse) GetData() *NextFeeDistributionEstimate
func (*QueryNextFeeDistributionEstimateResponse) Marshal ¶
func (m *QueryNextFeeDistributionEstimateResponse) Marshal() (dAtA []byte, err error)
func (*QueryNextFeeDistributionEstimateResponse) MarshalTo ¶
func (m *QueryNextFeeDistributionEstimateResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextFeeDistributionEstimateResponse) MarshalToSizedBuffer ¶
func (m *QueryNextFeeDistributionEstimateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextFeeDistributionEstimateResponse) ProtoMessage ¶
func (*QueryNextFeeDistributionEstimateResponse) ProtoMessage()
func (*QueryNextFeeDistributionEstimateResponse) Reset ¶
func (m *QueryNextFeeDistributionEstimateResponse) Reset()
func (*QueryNextFeeDistributionEstimateResponse) Size ¶
func (m *QueryNextFeeDistributionEstimateResponse) Size() (n int)
func (*QueryNextFeeDistributionEstimateResponse) String ¶
func (m *QueryNextFeeDistributionEstimateResponse) String() string
func (*QueryNextFeeDistributionEstimateResponse) Unmarshal ¶
func (m *QueryNextFeeDistributionEstimateResponse) Unmarshal(dAtA []byte) error
func (*QueryNextFeeDistributionEstimateResponse) XXX_DiscardUnknown ¶
func (m *QueryNextFeeDistributionEstimateResponse) XXX_DiscardUnknown()
func (*QueryNextFeeDistributionEstimateResponse) XXX_Marshal ¶
func (m *QueryNextFeeDistributionEstimateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextFeeDistributionEstimateResponse) XXX_Merge ¶
func (m *QueryNextFeeDistributionEstimateResponse) XXX_Merge(src proto.Message)
func (*QueryNextFeeDistributionEstimateResponse) XXX_Size ¶
func (m *QueryNextFeeDistributionEstimateResponse) XXX_Size() int
func (*QueryNextFeeDistributionEstimateResponse) XXX_Unmarshal ¶
func (m *QueryNextFeeDistributionEstimateResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // ConsumerGenesis queries the genesis state needed to start a consumer chain // whose proposal has been accepted QueryNextFeeDistribution(context.Context, *QueryNextFeeDistributionEstimateRequest) (*QueryNextFeeDistributionEstimateResponse, error) // QueryParams queries the ccv/consumer module parameters. QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) QueryNextFeeDistribution ¶
func (*UnimplementedQueryServer) QueryNextFeeDistribution(ctx context.Context, req *QueryNextFeeDistributionEstimateRequest) (*QueryNextFeeDistributionEstimateResponse, error)
func (*UnimplementedQueryServer) QueryParams ¶
func (*UnimplementedQueryServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)