Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AppendMany(byteses ...[]byte) (out []byte)
- func ChainIdWithLenKey(prefix byte, chainID string) []byte
- func ChainToChannelKey(chainID string) []byte
- func ChainToClientKey(chainID string) []byte
- func ChannelToChainKey(channelID string) []byte
- func ConsumerGenesisKey(chainID string) []byte
- func InitChainHeightKey(chainID string) []byte
- func InitTimeoutTimestampKey(chainID string) []byte
- func LockUnbondingOnTimeoutKey(chainID string) []byte
- func MaturedUnbondingOpsKey() []byte
- func MustUnmarshalUnbondingOp(cdc codec.BinaryCodec, value []byte) ccv.UnbondingOp
- func NewConsumerAdditionProposal(title, description, chainID string, initialHeight clienttypes.Height, ...) govtypes.Content
- func NewConsumerRemovalProposal(title, description, chainID string, stopTime time.Time) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func ParsePendingCAPKey(bz []byte) (time.Time, string, error)
- func ParsePendingCRPKey(bz []byte) (time.Time, string, error)
- func ParseUnbondingOpIndexKey(key []byte) (string, uint64, error)
- func ParseVscSendingTimestampKey(bz []byte) (string, uint64, error)
- func PendingCAPKey(timestamp time.Time, chainID string) []byte
- func PendingCRPKey(timestamp time.Time, chainID string) []byte
- func PendingVSCsKey(chainID string) []byte
- func PortKey() []byte
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 SlashAcksKey(chainID string) []byte
- func UnbondingOpIndexKey(chainID string, vscID uint64) []byte
- func UnbondingOpKey(id uint64) []byte
- func UnmarshalUnbondingOp(cdc codec.BinaryCodec, value []byte) (unbondingOp ccv.UnbondingOp, err error)
- func ValidatorSetUpdateIdKey() []byte
- func ValsetUpdateBlockHeightKey(valsetUpdateId uint64) []byte
- func VscSendingTimestampKey(chainID string, vscID uint64) []byte
- type Chain
- func (*Chain) Descriptor() ([]byte, []int)
- func (m *Chain) GetChainId() string
- func (m *Chain) GetClientId() string
- func (m *Chain) Marshal() (dAtA []byte, err error)
- func (m *Chain) MarshalTo(dAtA []byte) (int, error)
- func (m *Chain) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Chain) ProtoMessage()
- func (m *Chain) Reset()
- func (m *Chain) Size() (n int)
- func (m *Chain) String() string
- func (m *Chain) Unmarshal(dAtA []byte) error
- func (m *Chain) XXX_DiscardUnknown()
- func (m *Chain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Chain) XXX_Merge(src proto.Message)
- func (m *Chain) XXX_Size() int
- func (m *Chain) XXX_Unmarshal(b []byte) error
- type ConsumerAdditionProposal
- func (*ConsumerAdditionProposal) Descriptor() ([]byte, []int)
- func (cccp *ConsumerAdditionProposal) GetDescription() string
- func (cccp *ConsumerAdditionProposal) GetTitle() string
- func (m *ConsumerAdditionProposal) Marshal() (dAtA []byte, err error)
- func (m *ConsumerAdditionProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsumerAdditionProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cccp *ConsumerAdditionProposal) ProposalRoute() string
- func (cccp *ConsumerAdditionProposal) ProposalType() string
- func (*ConsumerAdditionProposal) ProtoMessage()
- func (m *ConsumerAdditionProposal) Reset()
- func (m *ConsumerAdditionProposal) Size() (n int)
- func (cccp *ConsumerAdditionProposal) String() string
- func (m *ConsumerAdditionProposal) Unmarshal(dAtA []byte) error
- func (cccp *ConsumerAdditionProposal) ValidateBasic() error
- func (m *ConsumerAdditionProposal) XXX_DiscardUnknown()
- func (m *ConsumerAdditionProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsumerAdditionProposal) XXX_Merge(src proto.Message)
- func (m *ConsumerAdditionProposal) XXX_Size() int
- func (m *ConsumerAdditionProposal) XXX_Unmarshal(b []byte) error
- type ConsumerAdditionProposals
- func (*ConsumerAdditionProposals) Descriptor() ([]byte, []int)
- func (m *ConsumerAdditionProposals) GetPending() []*ConsumerAdditionProposal
- func (m *ConsumerAdditionProposals) Marshal() (dAtA []byte, err error)
- func (m *ConsumerAdditionProposals) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsumerAdditionProposals) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsumerAdditionProposals) ProtoMessage()
- func (m *ConsumerAdditionProposals) Reset()
- func (m *ConsumerAdditionProposals) Size() (n int)
- func (m *ConsumerAdditionProposals) String() string
- func (m *ConsumerAdditionProposals) Unmarshal(dAtA []byte) error
- func (m *ConsumerAdditionProposals) XXX_DiscardUnknown()
- func (m *ConsumerAdditionProposals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsumerAdditionProposals) XXX_Merge(src proto.Message)
- func (m *ConsumerAdditionProposals) XXX_Size() int
- func (m *ConsumerAdditionProposals) XXX_Unmarshal(b []byte) error
- type ConsumerRemovalProposal
- func (*ConsumerRemovalProposal) Descriptor() ([]byte, []int)
- func (m *ConsumerRemovalProposal) GetChainId() string
- func (m *ConsumerRemovalProposal) GetDescription() string
- func (m *ConsumerRemovalProposal) GetStopTime() time.Time
- func (m *ConsumerRemovalProposal) GetTitle() string
- func (m *ConsumerRemovalProposal) Marshal() (dAtA []byte, err error)
- func (m *ConsumerRemovalProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsumerRemovalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (sccp *ConsumerRemovalProposal) ProposalRoute() string
- func (sccp *ConsumerRemovalProposal) ProposalType() string
- func (*ConsumerRemovalProposal) ProtoMessage()
- func (m *ConsumerRemovalProposal) Reset()
- func (m *ConsumerRemovalProposal) Size() (n int)
- func (m *ConsumerRemovalProposal) String() string
- func (m *ConsumerRemovalProposal) Unmarshal(dAtA []byte) error
- func (sccp *ConsumerRemovalProposal) ValidateBasic() error
- func (m *ConsumerRemovalProposal) XXX_DiscardUnknown()
- func (m *ConsumerRemovalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsumerRemovalProposal) XXX_Merge(src proto.Message)
- func (m *ConsumerRemovalProposal) XXX_Size() int
- func (m *ConsumerRemovalProposal) XXX_Unmarshal(b []byte) error
- type ConsumerRemovalProposals
- func (*ConsumerRemovalProposals) Descriptor() ([]byte, []int)
- func (m *ConsumerRemovalProposals) GetPending() []*ConsumerRemovalProposal
- func (m *ConsumerRemovalProposals) Marshal() (dAtA []byte, err error)
- func (m *ConsumerRemovalProposals) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsumerRemovalProposals) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsumerRemovalProposals) ProtoMessage()
- func (m *ConsumerRemovalProposals) Reset()
- func (m *ConsumerRemovalProposals) Size() (n int)
- func (m *ConsumerRemovalProposals) String() string
- func (m *ConsumerRemovalProposals) Unmarshal(dAtA []byte) error
- func (m *ConsumerRemovalProposals) XXX_DiscardUnknown()
- func (m *ConsumerRemovalProposals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsumerRemovalProposals) XXX_Merge(src proto.Message)
- func (m *ConsumerRemovalProposals) XXX_Size() int
- func (m *ConsumerRemovalProposals) XXX_Unmarshal(b []byte) error
- type ConsumerState
- func (*ConsumerState) Descriptor() ([]byte, []int)
- func (m *ConsumerState) GetChainId() string
- func (m *ConsumerState) GetChannelId() string
- func (m *ConsumerState) GetClientId() string
- func (m *ConsumerState) GetConsumerGenesis() types1.GenesisState
- func (m *ConsumerState) GetInitialHeight() uint64
- func (m *ConsumerState) GetLockUnbondingOnTimeout() bool
- func (m *ConsumerState) GetPendingValsetChanges() []types.ValidatorSetChangePacketData
- func (m *ConsumerState) GetSlashDowntimeAck() []string
- func (m *ConsumerState) GetUnbondingOpsIndex() []UnbondingOpIndex
- func (m *ConsumerState) Marshal() (dAtA []byte, err error)
- func (m *ConsumerState) MarshalTo(dAtA []byte) (int, error)
- func (m *ConsumerState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ConsumerState) ProtoMessage()
- func (m *ConsumerState) Reset()
- func (m *ConsumerState) Size() (n int)
- func (m *ConsumerState) String() string
- func (m *ConsumerState) Unmarshal(dAtA []byte) error
- func (cs ConsumerState) Validate() error
- func (m *ConsumerState) XXX_DiscardUnknown()
- func (m *ConsumerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConsumerState) XXX_Merge(src proto.Message)
- func (m *ConsumerState) XXX_Size() int
- func (m *ConsumerState) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetConsumerAdditionProposals() []ConsumerAdditionProposal
- func (m *GenesisState) GetConsumerRemovalProposals() []ConsumerRemovalProposal
- func (m *GenesisState) GetConsumerStates() []ConsumerState
- func (m *GenesisState) GetMatureUnbondingOps() *types.MaturedUnbondingOps
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetUnbondingOps() []types.UnbondingOp
- func (m *GenesisState) GetValsetUpdateId() uint64
- func (m *GenesisState) GetValsetUpdateIdToHeight() []ValsetUpdateIdToHeight
- 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 HandshakeMetadata
- func (*HandshakeMetadata) Descriptor() ([]byte, []int)
- func (m *HandshakeMetadata) GetProviderFeePoolAddr() string
- func (m *HandshakeMetadata) GetVersion() string
- func (m *HandshakeMetadata) Marshal() (dAtA []byte, err error)
- func (m *HandshakeMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *HandshakeMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HandshakeMetadata) ProtoMessage()
- func (m *HandshakeMetadata) Reset()
- func (m *HandshakeMetadata) Size() (n int)
- func (m *HandshakeMetadata) String() string
- func (m *HandshakeMetadata) Unmarshal(dAtA []byte) error
- func (m *HandshakeMetadata) XXX_DiscardUnknown()
- func (m *HandshakeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HandshakeMetadata) XXX_Merge(src proto.Message)
- func (m *HandshakeMetadata) XXX_Size() int
- func (m *HandshakeMetadata) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetCcvTimeoutPeriod() time.Duration
- func (m *Params) GetInitTimeoutPeriod() time.Duration
- func (m *Params) GetTemplateClient() *types1.ClientState
- func (m *Params) GetTrustingPeriodFraction() int64
- func (m *Params) GetVscTimeoutPeriod() 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 QueryConsumerChainStartProposalsRequest
- func (*QueryConsumerChainStartProposalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainStartProposalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainStartProposalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainStartProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainStartProposalsRequest) ProtoMessage()
- func (m *QueryConsumerChainStartProposalsRequest) Reset()
- func (m *QueryConsumerChainStartProposalsRequest) Size() (n int)
- func (m *QueryConsumerChainStartProposalsRequest) String() string
- func (m *QueryConsumerChainStartProposalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainStartProposalsRequest) XXX_DiscardUnknown()
- func (m *QueryConsumerChainStartProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainStartProposalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainStartProposalsRequest) XXX_Size() int
- func (m *QueryConsumerChainStartProposalsRequest) XXX_Unmarshal(b []byte) error
- type QueryConsumerChainStartProposalsResponse
- func (*QueryConsumerChainStartProposalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainStartProposalsResponse) GetProposals() *ConsumerAdditionProposals
- func (m *QueryConsumerChainStartProposalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainStartProposalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainStartProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainStartProposalsResponse) ProtoMessage()
- func (m *QueryConsumerChainStartProposalsResponse) Reset()
- func (m *QueryConsumerChainStartProposalsResponse) Size() (n int)
- func (m *QueryConsumerChainStartProposalsResponse) String() string
- func (m *QueryConsumerChainStartProposalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainStartProposalsResponse) XXX_DiscardUnknown()
- func (m *QueryConsumerChainStartProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainStartProposalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainStartProposalsResponse) XXX_Size() int
- func (m *QueryConsumerChainStartProposalsResponse) XXX_Unmarshal(b []byte) error
- type QueryConsumerChainStopProposalsRequest
- func (*QueryConsumerChainStopProposalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainStopProposalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainStopProposalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainStopProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainStopProposalsRequest) ProtoMessage()
- func (m *QueryConsumerChainStopProposalsRequest) Reset()
- func (m *QueryConsumerChainStopProposalsRequest) Size() (n int)
- func (m *QueryConsumerChainStopProposalsRequest) String() string
- func (m *QueryConsumerChainStopProposalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainStopProposalsRequest) XXX_DiscardUnknown()
- func (m *QueryConsumerChainStopProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainStopProposalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainStopProposalsRequest) XXX_Size() int
- func (m *QueryConsumerChainStopProposalsRequest) XXX_Unmarshal(b []byte) error
- type QueryConsumerChainStopProposalsResponse
- func (*QueryConsumerChainStopProposalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainStopProposalsResponse) GetProposals() *ConsumerRemovalProposals
- func (m *QueryConsumerChainStopProposalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainStopProposalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainStopProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainStopProposalsResponse) ProtoMessage()
- func (m *QueryConsumerChainStopProposalsResponse) Reset()
- func (m *QueryConsumerChainStopProposalsResponse) Size() (n int)
- func (m *QueryConsumerChainStopProposalsResponse) String() string
- func (m *QueryConsumerChainStopProposalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainStopProposalsResponse) XXX_DiscardUnknown()
- func (m *QueryConsumerChainStopProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainStopProposalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainStopProposalsResponse) XXX_Size() int
- func (m *QueryConsumerChainStopProposalsResponse) XXX_Unmarshal(b []byte) error
- type QueryConsumerChainsRequest
- func (*QueryConsumerChainsRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainsRequest) ProtoMessage()
- func (m *QueryConsumerChainsRequest) Reset()
- func (m *QueryConsumerChainsRequest) Size() (n int)
- func (m *QueryConsumerChainsRequest) String() string
- func (m *QueryConsumerChainsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainsRequest) XXX_DiscardUnknown()
- func (m *QueryConsumerChainsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainsRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainsRequest) XXX_Size() int
- func (m *QueryConsumerChainsRequest) XXX_Unmarshal(b []byte) error
- type QueryConsumerChainsResponse
- func (*QueryConsumerChainsResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsumerChainsResponse) GetChains() []*Chain
- func (m *QueryConsumerChainsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerChainsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerChainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerChainsResponse) ProtoMessage()
- func (m *QueryConsumerChainsResponse) Reset()
- func (m *QueryConsumerChainsResponse) Size() (n int)
- func (m *QueryConsumerChainsResponse) String() string
- func (m *QueryConsumerChainsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerChainsResponse) XXX_DiscardUnknown()
- func (m *QueryConsumerChainsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerChainsResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsumerChainsResponse) XXX_Size() int
- func (m *QueryConsumerChainsResponse) XXX_Unmarshal(b []byte) error
- type QueryConsumerGenesisRequest
- func (*QueryConsumerGenesisRequest) Descriptor() ([]byte, []int)
- func (m *QueryConsumerGenesisRequest) GetChainId() string
- func (m *QueryConsumerGenesisRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerGenesisRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerGenesisRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerGenesisRequest) ProtoMessage()
- func (m *QueryConsumerGenesisRequest) Reset()
- func (m *QueryConsumerGenesisRequest) Size() (n int)
- func (m *QueryConsumerGenesisRequest) String() string
- func (m *QueryConsumerGenesisRequest) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerGenesisRequest) XXX_DiscardUnknown()
- func (m *QueryConsumerGenesisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerGenesisRequest) XXX_Merge(src proto.Message)
- func (m *QueryConsumerGenesisRequest) XXX_Size() int
- func (m *QueryConsumerGenesisRequest) XXX_Unmarshal(b []byte) error
- type QueryConsumerGenesisResponse
- func (*QueryConsumerGenesisResponse) Descriptor() ([]byte, []int)
- func (m *QueryConsumerGenesisResponse) GetGenesisState() types.GenesisState
- func (m *QueryConsumerGenesisResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryConsumerGenesisResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryConsumerGenesisResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryConsumerGenesisResponse) ProtoMessage()
- func (m *QueryConsumerGenesisResponse) Reset()
- func (m *QueryConsumerGenesisResponse) Size() (n int)
- func (m *QueryConsumerGenesisResponse) String() string
- func (m *QueryConsumerGenesisResponse) Unmarshal(dAtA []byte) error
- func (m *QueryConsumerGenesisResponse) XXX_DiscardUnknown()
- func (m *QueryConsumerGenesisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryConsumerGenesisResponse) XXX_Merge(src proto.Message)
- func (m *QueryConsumerGenesisResponse) XXX_Size() int
- func (m *QueryConsumerGenesisResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type SlashAcks
- func (*SlashAcks) Descriptor() ([]byte, []int)
- func (m *SlashAcks) GetAddresses() []string
- func (m *SlashAcks) Marshal() (dAtA []byte, err error)
- func (m *SlashAcks) MarshalTo(dAtA []byte) (int, error)
- func (m *SlashAcks) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SlashAcks) ProtoMessage()
- func (m *SlashAcks) Reset()
- func (m *SlashAcks) Size() (n int)
- func (m *SlashAcks) String() string
- func (m *SlashAcks) Unmarshal(dAtA []byte) error
- func (m *SlashAcks) XXX_DiscardUnknown()
- func (m *SlashAcks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SlashAcks) XXX_Merge(src proto.Message)
- func (m *SlashAcks) XXX_Size() int
- func (m *SlashAcks) XXX_Unmarshal(b []byte) error
- type Status
- type UnbondingOpIndex
- func (*UnbondingOpIndex) Descriptor() ([]byte, []int)
- func (m *UnbondingOpIndex) GetUnbondingOpIndex() []uint64
- func (m *UnbondingOpIndex) GetValsetUpdateId() uint64
- func (m *UnbondingOpIndex) Marshal() (dAtA []byte, err error)
- func (m *UnbondingOpIndex) MarshalTo(dAtA []byte) (int, error)
- func (m *UnbondingOpIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnbondingOpIndex) ProtoMessage()
- func (m *UnbondingOpIndex) Reset()
- func (m *UnbondingOpIndex) Size() (n int)
- func (m *UnbondingOpIndex) String() string
- func (m *UnbondingOpIndex) Unmarshal(dAtA []byte) error
- func (m *UnbondingOpIndex) XXX_DiscardUnknown()
- func (m *UnbondingOpIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnbondingOpIndex) XXX_Merge(src proto.Message)
- func (m *UnbondingOpIndex) XXX_Size() int
- func (m *UnbondingOpIndex) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) QueryConsumerChainStarts(ctx context.Context, req *QueryConsumerChainStartProposalsRequest) (*QueryConsumerChainStartProposalsResponse, error)
- func (*UnimplementedQueryServer) QueryConsumerChainStops(ctx context.Context, req *QueryConsumerChainStopProposalsRequest) (*QueryConsumerChainStopProposalsResponse, error)
- func (*UnimplementedQueryServer) QueryConsumerChains(ctx context.Context, req *QueryConsumerChainsRequest) (*QueryConsumerChainsResponse, error)
- func (*UnimplementedQueryServer) QueryConsumerGenesis(ctx context.Context, req *QueryConsumerGenesisRequest) (*QueryConsumerGenesisResponse, error)
- type ValsetUpdateIdToHeight
- func (*ValsetUpdateIdToHeight) Descriptor() ([]byte, []int)
- func (m *ValsetUpdateIdToHeight) GetHeight() uint64
- func (m *ValsetUpdateIdToHeight) GetValsetUpdateId() uint64
- func (m *ValsetUpdateIdToHeight) Marshal() (dAtA []byte, err error)
- func (m *ValsetUpdateIdToHeight) MarshalTo(dAtA []byte) (int, error)
- func (m *ValsetUpdateIdToHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ValsetUpdateIdToHeight) ProtoMessage()
- func (m *ValsetUpdateIdToHeight) Reset()
- func (m *ValsetUpdateIdToHeight) Size() (n int)
- func (m *ValsetUpdateIdToHeight) String() string
- func (m *ValsetUpdateIdToHeight) Unmarshal(dAtA []byte) error
- func (m *ValsetUpdateIdToHeight) XXX_DiscardUnknown()
- func (m *ValsetUpdateIdToHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ValsetUpdateIdToHeight) XXX_Merge(src proto.Message)
- func (m *ValsetUpdateIdToHeight) XXX_Size() int
- func (m *ValsetUpdateIdToHeight) XXX_Unmarshal(b []byte) error
Constants ¶
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 )
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 // 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 delegation can unbond on this chain. UnbondingOpBytePrefix // UnbondingOpIndexBytePrefix is byte prefix of the index for looking up which unbonding // delegation entries are waiting for a given consumer chain to unbond UnbondingOpIndexBytePrefix // ValsetUpdateBlockHeightBytePrefix is the byte prefix that will store the mapping from valset update ID to block height 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 // LockUnbondingOnTimeoutBytePrefix is the byte prefix that will store the consumer chain id which unbonding operations are locked on CCV channel timeout LockUnbondingOnTimeoutBytePrefix )
Iota generated keys/byte prefixes (as a byte), supports 256 possible values
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 = 2 // DefaultInitTimeoutPeriod defines the init timeout period DefaultInitTimeoutPeriod = 7 * 24 * time.Hour // DefaultVscTimeoutPeriod defines the VSC timeout period DefaultVscTimeoutPeriod = 5 * 7 * 24 * time.Hour )
const ( ProposalTypeConsumerAddition = "ConsumerAddition" ProposalTypeConsumerRemoval = "ConsumerRemoval" )
Variables ¶
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) )
var ( ErrInvalidConsumerAdditionProposal = sdkerrors.Register(ModuleName, 1, "invalid consumer addition proposal") ErrInvalidConsumerRemovalProp = sdkerrors.Register(ModuleName, 2, "invalid consumer removal proposal") ErrUnknownConsumerChainId = sdkerrors.Register(ModuleName, 3, "no consumer chain with this chain id") ErrUnknownConsumerChannelId = sdkerrors.Register(ModuleName, 4, "no consumer chain with this channel id") )
Provider 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 ( KeyTemplateClient = []byte("TemplateClient") KeyTrustingPeriodFraction = []byte("TrustingPeriodFraction") KeyInitTimeoutPeriod = []byte("InitTimeoutPeriod") KeyVscTimeoutPeriod = []byte("VscTimeoutPeriod") )
Reflection based keys for params subspace
Functions ¶
func AppendMany ¶
AppendMany appends a variable number of byte slices together
func ChainIdWithLenKey ¶ added in v0.2.0
chainIdWithLenKey returns the key with the following format: bytePrefix | len(chainID) | chainID
func ChainToChannelKey ¶
ChainToChannelKey returns the key under which the CCV channel ID will be stored for the given consumer chain.
func ChainToClientKey ¶
ChainToClientKey returns the key under which the clientID for the given chainID is stored.
func ChannelToChainKey ¶
ChannelToChainKey returns the key under which the consumer chain ID will be stored for the given channelID.
func ConsumerGenesisKey ¶
ConsumerGenesisKey returns the key corresponding to consumer genesis state material (consensus state and client state) indexed by consumer chain id
func InitChainHeightKey ¶
InitChainHeightKey returns the key under which the block height for a given chain ID is stored
func InitTimeoutTimestampKey ¶ added in v0.2.0
InitTimeoutTimestampKey returns the key under which the init timeout timestamp for the given chainID is stored.
func LockUnbondingOnTimeoutKey ¶
LockUnbondingOnTimeoutKey returns the key that will store the consumer chain id which unbonding operations are locked on CCV channel timeout
func MaturedUnbondingOpsKey ¶
func MaturedUnbondingOpsKey() []byte
MaturedUnbondingOpsKey returns the key for storing the list of matured unbonding operations.
func MustUnmarshalUnbondingOp ¶
func MustUnmarshalUnbondingOp(cdc codec.BinaryCodec, value []byte) ccv.UnbondingOp
func NewConsumerAdditionProposal ¶ added in v0.2.0
func NewConsumerAdditionProposal(title, description, chainID string, initialHeight clienttypes.Height, genesisHash, binaryHash []byte, spawnTime time.Time) govtypes.Content
NewConsumerAdditionProposal creates a new consumer addition proposal.
func NewConsumerRemovalProposal ¶ added in v0.2.0
func NewConsumerRemovalProposal(title, description, chainID string, stopTime time.Time) govtypes.Content
NewConsumerRemovalProposal creates a new consumer removal proposal.
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns a key table with the necessary registered provider params
func ParsePendingCAPKey ¶ added in v0.2.0
ParsePendingCAPKey returns the time and chain ID for a pending consumer addition proposal key or an error if unparsable
func ParsePendingCRPKey ¶ added in v0.2.0
ParsePendingCRPKey returns the time and chain ID for a pending consumer removal proposal key or an error if unparseable
func ParseUnbondingOpIndexKey ¶
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 ¶ added in v0.2.0
ParseVscTimeoutTimestampKey returns chain ID and vsc ID for a VscSendingTimestampKey or an error if unparsable
func PendingCAPKey ¶ added in v0.2.0
PendingCAPKey returns the key under which a pending consumer addition proposal is stored
func PendingCRPKey ¶ added in v0.2.0
PendingCRPKey returns the key under which pending consumer removal proposals are stored
func PendingVSCsKey ¶
PendingVSCsKey returns the key under which pending ValidatorSetChangePacket data is stored for a given chain ID
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 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 SlashAcksKey ¶
SlashAcksKey returns the key under which slashing acks are stored for a given chain ID
func UnbondingOpIndexKey ¶
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 ¶
UnbondingOpKey returns the key that stores a record of all the ids of consumer chains that need to unbond before a given delegation can unbond on this chain
func UnmarshalUnbondingOp ¶
func UnmarshalUnbondingOp(cdc codec.BinaryCodec, value []byte) (unbondingOp ccv.UnbondingOp, err error)
func ValidatorSetUpdateIdKey ¶
func ValidatorSetUpdateIdKey() []byte
ValidatorSetUpdateIdKey is the key that stores the current validator set update id
func ValsetUpdateBlockHeightKey ¶
ValsetUpdateBlockHeightKey returns the key that storing the mapping from valset update ID to block height
func VscSendingTimestampKey ¶ added in v0.2.0
VscSendingTimestampKey returns the key under which the sending timestamp of the VSCPacket with vsc ID is stored
Types ¶
type Chain ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (*Chain) GetChainId ¶ added in v0.2.0
func (*Chain) GetClientId ¶ added in v0.2.0
func (*Chain) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Chain) ProtoMessage ¶ added in v0.2.0
func (*Chain) ProtoMessage()
func (*Chain) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Chain) XXX_DiscardUnknown()
func (*Chain) XXX_Marshal ¶ added in v0.2.0
func (*Chain) XXX_Unmarshal ¶ added in v0.2.0
type ConsumerAdditionProposal ¶ added in v0.2.0
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"`
// genesis hash with no staking information included.
GenesisHash []byte `protobuf:"bytes,5,opt,name=genesis_hash,json=genesisHash,proto3" json:"genesis_hash,omitempty"`
// binary hash is the hash of the binary that should be used by validators on chain initialization.
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"`
// Indicates whether the outstanding unbonding operations should be released
// in case of a channel time-outs. When set to true, a governance proposal
// on the provider chain would be necessary to release the locked funds.
LockUnbondingOnTimeout bool `` /* 132-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 ¶ added in v0.2.0
func (*ConsumerAdditionProposal) Descriptor() ([]byte, []int)
func (*ConsumerAdditionProposal) GetDescription ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) GetDescription() string
GetDescription returns the description of a consumer addition proposal.
func (*ConsumerAdditionProposal) GetTitle ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) GetTitle() string
GetTitle returns the title of a consumer addition proposal.
func (*ConsumerAdditionProposal) Marshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) Marshal() (dAtA []byte, err error)
func (*ConsumerAdditionProposal) MarshalTo ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) MarshalTo(dAtA []byte) (int, error)
func (*ConsumerAdditionProposal) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsumerAdditionProposal) ProposalRoute ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) ProposalRoute() string
ProposalRoute returns the routing key of a consumer addition proposal.
func (*ConsumerAdditionProposal) ProposalType ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) ProposalType() string
ProposalType returns the type of a consumer addition proposal.
func (*ConsumerAdditionProposal) ProtoMessage ¶ added in v0.2.0
func (*ConsumerAdditionProposal) ProtoMessage()
func (*ConsumerAdditionProposal) Reset ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) Reset()
func (*ConsumerAdditionProposal) Size ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) Size() (n int)
func (*ConsumerAdditionProposal) String ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) String() string
String returns the string representation of the ConsumerAdditionProposal.
func (*ConsumerAdditionProposal) Unmarshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) Unmarshal(dAtA []byte) error
func (*ConsumerAdditionProposal) ValidateBasic ¶ added in v0.2.0
func (cccp *ConsumerAdditionProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*ConsumerAdditionProposal) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) XXX_DiscardUnknown()
func (*ConsumerAdditionProposal) XXX_Marshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsumerAdditionProposal) XXX_Merge ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) XXX_Merge(src proto.Message)
func (*ConsumerAdditionProposal) XXX_Size ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) XXX_Size() int
func (*ConsumerAdditionProposal) XXX_Unmarshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposal) XXX_Unmarshal(b []byte) error
type ConsumerAdditionProposals ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (*ConsumerAdditionProposals) Descriptor() ([]byte, []int)
func (*ConsumerAdditionProposals) GetPending ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) GetPending() []*ConsumerAdditionProposal
func (*ConsumerAdditionProposals) Marshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) Marshal() (dAtA []byte, err error)
func (*ConsumerAdditionProposals) MarshalTo ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) MarshalTo(dAtA []byte) (int, error)
func (*ConsumerAdditionProposals) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsumerAdditionProposals) ProtoMessage ¶ added in v0.2.0
func (*ConsumerAdditionProposals) ProtoMessage()
func (*ConsumerAdditionProposals) Reset ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) Reset()
func (*ConsumerAdditionProposals) Size ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) Size() (n int)
func (*ConsumerAdditionProposals) String ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) String() string
func (*ConsumerAdditionProposals) Unmarshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) Unmarshal(dAtA []byte) error
func (*ConsumerAdditionProposals) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) XXX_DiscardUnknown()
func (*ConsumerAdditionProposals) XXX_Marshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsumerAdditionProposals) XXX_Merge ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) XXX_Merge(src proto.Message)
func (*ConsumerAdditionProposals) XXX_Size ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) XXX_Size() int
func (*ConsumerAdditionProposals) XXX_Unmarshal ¶ added in v0.2.0
func (m *ConsumerAdditionProposals) XXX_Unmarshal(b []byte) error
type ConsumerRemovalProposal ¶ added in v0.2.0
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 if the LockUnbondingOnTimeout parameter is set to false for the consumer chain ID.
func (*ConsumerRemovalProposal) Descriptor ¶ added in v0.2.0
func (*ConsumerRemovalProposal) Descriptor() ([]byte, []int)
func (*ConsumerRemovalProposal) GetChainId ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) GetChainId() string
func (*ConsumerRemovalProposal) GetDescription ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) GetDescription() string
func (*ConsumerRemovalProposal) GetStopTime ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) GetStopTime() time.Time
func (*ConsumerRemovalProposal) GetTitle ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) GetTitle() string
func (*ConsumerRemovalProposal) Marshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) Marshal() (dAtA []byte, err error)
func (*ConsumerRemovalProposal) MarshalTo ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) MarshalTo(dAtA []byte) (int, error)
func (*ConsumerRemovalProposal) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsumerRemovalProposal) ProposalRoute ¶ added in v0.2.0
func (sccp *ConsumerRemovalProposal) ProposalRoute() string
ProposalRoute returns the routing key of a consumer removal proposal.
func (*ConsumerRemovalProposal) ProposalType ¶ added in v0.2.0
func (sccp *ConsumerRemovalProposal) ProposalType() string
ProposalType returns the type of a consumer removal proposal.
func (*ConsumerRemovalProposal) ProtoMessage ¶ added in v0.2.0
func (*ConsumerRemovalProposal) ProtoMessage()
func (*ConsumerRemovalProposal) Reset ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) Reset()
func (*ConsumerRemovalProposal) Size ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) Size() (n int)
func (*ConsumerRemovalProposal) String ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) String() string
func (*ConsumerRemovalProposal) Unmarshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) Unmarshal(dAtA []byte) error
func (*ConsumerRemovalProposal) ValidateBasic ¶ added in v0.2.0
func (sccp *ConsumerRemovalProposal) ValidateBasic() error
ValidateBasic runs basic stateless validity checks
func (*ConsumerRemovalProposal) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) XXX_DiscardUnknown()
func (*ConsumerRemovalProposal) XXX_Marshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsumerRemovalProposal) XXX_Merge ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) XXX_Merge(src proto.Message)
func (*ConsumerRemovalProposal) XXX_Size ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) XXX_Size() int
func (*ConsumerRemovalProposal) XXX_Unmarshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposal) XXX_Unmarshal(b []byte) error
type ConsumerRemovalProposals ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (*ConsumerRemovalProposals) Descriptor() ([]byte, []int)
func (*ConsumerRemovalProposals) GetPending ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) GetPending() []*ConsumerRemovalProposal
func (*ConsumerRemovalProposals) Marshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) Marshal() (dAtA []byte, err error)
func (*ConsumerRemovalProposals) MarshalTo ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) MarshalTo(dAtA []byte) (int, error)
func (*ConsumerRemovalProposals) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ConsumerRemovalProposals) ProtoMessage ¶ added in v0.2.0
func (*ConsumerRemovalProposals) ProtoMessage()
func (*ConsumerRemovalProposals) Reset ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) Reset()
func (*ConsumerRemovalProposals) Size ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) Size() (n int)
func (*ConsumerRemovalProposals) String ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) String() string
func (*ConsumerRemovalProposals) Unmarshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) Unmarshal(dAtA []byte) error
func (*ConsumerRemovalProposals) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) XXX_DiscardUnknown()
func (*ConsumerRemovalProposals) XXX_Marshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsumerRemovalProposals) XXX_Merge ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) XXX_Merge(src proto.Message)
func (*ConsumerRemovalProposals) XXX_Size ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) XXX_Size() int
func (*ConsumerRemovalProposals) XXX_Unmarshal ¶ added in v0.2.0
func (m *ConsumerRemovalProposals) XXX_Unmarshal(b []byte) error
type ConsumerState ¶
type ConsumerState struct {
// ChannelID 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"`
// LockUnbondingOnTimeout defines whether the unbonding funds should be released for this
// chain in case of a IBC channel timeout
LockUnbondingOnTimeout bool `` /* 132-byte string literal not displayed */
// ConsumerGenesis defines the initial consumer chain genesis states
ConsumerGenesis types1.GenesisState `protobuf:"bytes,6,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,7,rep,name=pending_valset_changes,json=pendingValsetChanges,proto3" json:"pending_valset_changes"`
SlashDowntimeAck []string `protobuf:"bytes,8,rep,name=slash_downtime_ack,json=slashDowntimeAck,proto3" json:"slash_downtime_ack,omitempty"`
// UnbondingOpsIndex defines the unbonding operations on the consumer chain
UnbondingOpsIndex []UnbondingOpIndex `protobuf:"bytes,9,rep,name=unbonding_ops_index,json=unbondingOpsIndex,proto3" json:"unbonding_ops_index"`
}
consumer chain
func NewConsumerStates ¶ added in v0.2.0
func NewConsumerStates( chainID, clientID, channelID string, initialHeight uint64, lockUbdTimeout bool, genesis consumertypes.GenesisState, unbondingOpsIndexes []UnbondingOpIndex, 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 ¶ added in v0.2.0
func (m *ConsumerState) GetClientId() string
func (*ConsumerState) GetConsumerGenesis ¶ added in v0.2.0
func (m *ConsumerState) GetConsumerGenesis() types1.GenesisState
func (*ConsumerState) GetInitialHeight ¶ added in v0.2.0
func (m *ConsumerState) GetInitialHeight() uint64
func (*ConsumerState) GetLockUnbondingOnTimeout ¶ added in v0.2.0
func (m *ConsumerState) GetLockUnbondingOnTimeout() bool
func (*ConsumerState) GetPendingValsetChanges ¶ added in v0.2.0
func (m *ConsumerState) GetPendingValsetChanges() []types.ValidatorSetChangePacketData
func (*ConsumerState) GetSlashDowntimeAck ¶ added in v0.2.0
func (m *ConsumerState) GetSlashDowntimeAck() []string
func (*ConsumerState) GetUnbondingOpsIndex ¶ added in v0.2.0
func (m *ConsumerState) GetUnbondingOpsIndex() []UnbondingOpIndex
func (*ConsumerState) Marshal ¶
func (m *ConsumerState) Marshal() (dAtA []byte, err 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
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 GenesisState ¶
type GenesisState struct {
// empty 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 []types.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"`
}
GenesisState defines the CCV provider chain genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState( vscID uint64, vscIdToHeights []ValsetUpdateIdToHeight, consumerStates []ConsumerState, unbondingOps []types.UnbondingOp, matureUbdOps *ccv.MaturedUnbondingOps, additionProposals []ConsumerAdditionProposal, removalProposals []ConsumerRemovalProposal, params Params, ) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetConsumerAdditionProposals ¶ added in v0.2.0
func (m *GenesisState) GetConsumerAdditionProposals() []ConsumerAdditionProposal
func (*GenesisState) GetConsumerRemovalProposals ¶ added in v0.2.0
func (m *GenesisState) GetConsumerRemovalProposals() []ConsumerRemovalProposal
func (*GenesisState) GetConsumerStates ¶
func (m *GenesisState) GetConsumerStates() []ConsumerState
func (*GenesisState) GetMatureUnbondingOps ¶ added in v0.2.0
func (m *GenesisState) GetMatureUnbondingOps() *types.MaturedUnbondingOps
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetUnbondingOps ¶ added in v0.2.0
func (m *GenesisState) GetUnbondingOps() []types.UnbondingOp
func (*GenesisState) GetValsetUpdateId ¶ added in v0.2.0
func (m *GenesisState) GetValsetUpdateId() uint64
func (*GenesisState) GetValsetUpdateIdToHeight ¶ added in v0.2.0
func (m *GenesisState) GetValsetUpdateIdToHeight() []ValsetUpdateIdToHeight
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 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 Params ¶
type Params struct {
TemplateClient *types1.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 int64 `` /* 130-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"`
}
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 int64, ccvTimeoutPeriod time.Duration, initTimeoutPeriod time.Duration, vscTimeoutPeriod time.Duration, ) Params
NewParams creates new provider parameters with provided arguments
func (*Params) Descriptor ¶
func (*Params) GetCcvTimeoutPeriod ¶ added in v0.2.0
func (*Params) GetInitTimeoutPeriod ¶ added in v0.2.0
func (*Params) GetTemplateClient ¶
func (m *Params) GetTemplateClient() *types1.ClientState
func (*Params) GetTrustingPeriodFraction ¶ added in v0.2.0
func (*Params) GetVscTimeoutPeriod ¶ added in v0.2.0
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
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)
}
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 ¶ added in v0.2.0
type QueryConsumerChainStartProposalsRequest struct {
}
func (*QueryConsumerChainStartProposalsRequest) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainStartProposalsRequest) Descriptor() ([]byte, []int)
func (*QueryConsumerChainStartProposalsRequest) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainStartProposalsRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainStartProposalsRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainStartProposalsRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainStartProposalsRequest) ProtoMessage()
func (*QueryConsumerChainStartProposalsRequest) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) Reset()
func (*QueryConsumerChainStartProposalsRequest) Size ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) Size() (n int)
func (*QueryConsumerChainStartProposalsRequest) String ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) String() string
func (*QueryConsumerChainStartProposalsRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainStartProposalsRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) XXX_DiscardUnknown()
func (*QueryConsumerChainStartProposalsRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainStartProposalsRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) XXX_Merge(src proto.Message)
func (*QueryConsumerChainStartProposalsRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) XXX_Size() int
func (*QueryConsumerChainStartProposalsRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsRequest) XXX_Unmarshal(b []byte) error
type QueryConsumerChainStartProposalsResponse ¶ added in v0.2.0
type QueryConsumerChainStartProposalsResponse struct {
Proposals *ConsumerAdditionProposals `protobuf:"bytes,1,opt,name=proposals,proto3" json:"proposals,omitempty"`
}
func (*QueryConsumerChainStartProposalsResponse) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainStartProposalsResponse) Descriptor() ([]byte, []int)
func (*QueryConsumerChainStartProposalsResponse) GetProposals ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) GetProposals() *ConsumerAdditionProposals
func (*QueryConsumerChainStartProposalsResponse) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainStartProposalsResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainStartProposalsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainStartProposalsResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainStartProposalsResponse) ProtoMessage()
func (*QueryConsumerChainStartProposalsResponse) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) Reset()
func (*QueryConsumerChainStartProposalsResponse) Size ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) Size() (n int)
func (*QueryConsumerChainStartProposalsResponse) String ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) String() string
func (*QueryConsumerChainStartProposalsResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainStartProposalsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) XXX_DiscardUnknown()
func (*QueryConsumerChainStartProposalsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainStartProposalsResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) XXX_Merge(src proto.Message)
func (*QueryConsumerChainStartProposalsResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) XXX_Size() int
func (*QueryConsumerChainStartProposalsResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStartProposalsResponse) XXX_Unmarshal(b []byte) error
type QueryConsumerChainStopProposalsRequest ¶ added in v0.2.0
type QueryConsumerChainStopProposalsRequest struct {
}
func (*QueryConsumerChainStopProposalsRequest) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainStopProposalsRequest) Descriptor() ([]byte, []int)
func (*QueryConsumerChainStopProposalsRequest) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainStopProposalsRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainStopProposalsRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainStopProposalsRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainStopProposalsRequest) ProtoMessage()
func (*QueryConsumerChainStopProposalsRequest) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) Reset()
func (*QueryConsumerChainStopProposalsRequest) Size ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) Size() (n int)
func (*QueryConsumerChainStopProposalsRequest) String ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) String() string
func (*QueryConsumerChainStopProposalsRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainStopProposalsRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) XXX_DiscardUnknown()
func (*QueryConsumerChainStopProposalsRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainStopProposalsRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) XXX_Merge(src proto.Message)
func (*QueryConsumerChainStopProposalsRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) XXX_Size() int
func (*QueryConsumerChainStopProposalsRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsRequest) XXX_Unmarshal(b []byte) error
type QueryConsumerChainStopProposalsResponse ¶ added in v0.2.0
type QueryConsumerChainStopProposalsResponse struct {
Proposals *ConsumerRemovalProposals `protobuf:"bytes,1,opt,name=proposals,proto3" json:"proposals,omitempty"`
}
func (*QueryConsumerChainStopProposalsResponse) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainStopProposalsResponse) Descriptor() ([]byte, []int)
func (*QueryConsumerChainStopProposalsResponse) GetProposals ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) GetProposals() *ConsumerRemovalProposals
func (*QueryConsumerChainStopProposalsResponse) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainStopProposalsResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainStopProposalsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainStopProposalsResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainStopProposalsResponse) ProtoMessage()
func (*QueryConsumerChainStopProposalsResponse) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) Reset()
func (*QueryConsumerChainStopProposalsResponse) Size ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) Size() (n int)
func (*QueryConsumerChainStopProposalsResponse) String ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) String() string
func (*QueryConsumerChainStopProposalsResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainStopProposalsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) XXX_DiscardUnknown()
func (*QueryConsumerChainStopProposalsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainStopProposalsResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) XXX_Merge(src proto.Message)
func (*QueryConsumerChainStopProposalsResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) XXX_Size() int
func (*QueryConsumerChainStopProposalsResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainStopProposalsResponse) XXX_Unmarshal(b []byte) error
type QueryConsumerChainsRequest ¶ added in v0.2.0
type QueryConsumerChainsRequest struct {
}
func (*QueryConsumerChainsRequest) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainsRequest) Descriptor() ([]byte, []int)
func (*QueryConsumerChainsRequest) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainsRequest) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainsRequest) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainsRequest) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainsRequest) ProtoMessage()
func (*QueryConsumerChainsRequest) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) Reset()
func (*QueryConsumerChainsRequest) Size ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) Size() (n int)
func (*QueryConsumerChainsRequest) String ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) String() string
func (*QueryConsumerChainsRequest) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainsRequest) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) XXX_DiscardUnknown()
func (*QueryConsumerChainsRequest) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainsRequest) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) XXX_Merge(src proto.Message)
func (*QueryConsumerChainsRequest) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) XXX_Size() int
func (*QueryConsumerChainsRequest) XXX_Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainsRequest) XXX_Unmarshal(b []byte) error
type QueryConsumerChainsResponse ¶ added in v0.2.0
type QueryConsumerChainsResponse struct {
Chains []*Chain `protobuf:"bytes,1,rep,name=chains,proto3" json:"chains,omitempty"`
}
func (*QueryConsumerChainsResponse) Descriptor ¶ added in v0.2.0
func (*QueryConsumerChainsResponse) Descriptor() ([]byte, []int)
func (*QueryConsumerChainsResponse) GetChains ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) GetChains() []*Chain
func (*QueryConsumerChainsResponse) Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) Marshal() (dAtA []byte, err error)
func (*QueryConsumerChainsResponse) MarshalTo ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryConsumerChainsResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryConsumerChainsResponse) ProtoMessage ¶ added in v0.2.0
func (*QueryConsumerChainsResponse) ProtoMessage()
func (*QueryConsumerChainsResponse) Reset ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) Reset()
func (*QueryConsumerChainsResponse) Size ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) Size() (n int)
func (*QueryConsumerChainsResponse) String ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) String() string
func (*QueryConsumerChainsResponse) Unmarshal ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) Unmarshal(dAtA []byte) error
func (*QueryConsumerChainsResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) XXX_DiscardUnknown()
func (*QueryConsumerChainsResponse) XXX_Marshal ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryConsumerChainsResponse) XXX_Merge ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) XXX_Merge(src proto.Message)
func (*QueryConsumerChainsResponse) XXX_Size ¶ added in v0.2.0
func (m *QueryConsumerChainsResponse) XXX_Size() int
func (*QueryConsumerChainsResponse) XXX_Unmarshal ¶ added in v0.2.0
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 (m *QueryConsumerGenesisResponse) String() 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 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)
}
QueryServer is the server API for Query service.
type SlashAcks ¶ added in v0.2.0
type SlashAcks struct {
Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
}
SlashAcks contains addesses of consumer chain validators successfully slashed on the provider chain
func (*SlashAcks) Descriptor ¶ added in v0.2.0
func (*SlashAcks) GetAddresses ¶ added in v0.2.0
func (*SlashAcks) MarshalToSizedBuffer ¶ added in v0.2.0
func (*SlashAcks) ProtoMessage ¶ added in v0.2.0
func (*SlashAcks) ProtoMessage()
func (*SlashAcks) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *SlashAcks) XXX_DiscardUnknown()
func (*SlashAcks) XXX_Marshal ¶ added in v0.2.0
func (*SlashAcks) XXX_Unmarshal ¶ added in v0.2.0
type UnbondingOpIndex ¶ added in v0.2.0
type UnbondingOpIndex struct {
ValsetUpdateId uint64 `protobuf:"varint,1,opt,name=valset_update_id,json=valsetUpdateId,proto3" json:"valset_update_id,omitempty"`
UnbondingOpIndex []uint64 `protobuf:"varint,2,rep,packed,name=unbonding_op_index,json=unbondingOpIndex,proto3" json:"unbonding_op_index,omitempty"`
}
UnbondingOpIndex defines the genesis information for each unbonding operations index referenced by chain id and valset udpate id
func (*UnbondingOpIndex) Descriptor ¶ added in v0.2.0
func (*UnbondingOpIndex) Descriptor() ([]byte, []int)
func (*UnbondingOpIndex) GetUnbondingOpIndex ¶ added in v0.2.0
func (m *UnbondingOpIndex) GetUnbondingOpIndex() []uint64
func (*UnbondingOpIndex) GetValsetUpdateId ¶ added in v0.2.0
func (m *UnbondingOpIndex) GetValsetUpdateId() uint64
func (*UnbondingOpIndex) Marshal ¶ added in v0.2.0
func (m *UnbondingOpIndex) Marshal() (dAtA []byte, err error)
func (*UnbondingOpIndex) MarshalTo ¶ added in v0.2.0
func (m *UnbondingOpIndex) MarshalTo(dAtA []byte) (int, error)
func (*UnbondingOpIndex) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *UnbondingOpIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnbondingOpIndex) ProtoMessage ¶ added in v0.2.0
func (*UnbondingOpIndex) ProtoMessage()
func (*UnbondingOpIndex) Reset ¶ added in v0.2.0
func (m *UnbondingOpIndex) Reset()
func (*UnbondingOpIndex) Size ¶ added in v0.2.0
func (m *UnbondingOpIndex) Size() (n int)
func (*UnbondingOpIndex) String ¶ added in v0.2.0
func (m *UnbondingOpIndex) String() string
func (*UnbondingOpIndex) Unmarshal ¶ added in v0.2.0
func (m *UnbondingOpIndex) Unmarshal(dAtA []byte) error
func (*UnbondingOpIndex) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *UnbondingOpIndex) XXX_DiscardUnknown()
func (*UnbondingOpIndex) XXX_Marshal ¶ added in v0.2.0
func (m *UnbondingOpIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnbondingOpIndex) XXX_Merge ¶ added in v0.2.0
func (m *UnbondingOpIndex) XXX_Merge(src proto.Message)
func (*UnbondingOpIndex) XXX_Size ¶ added in v0.2.0
func (m *UnbondingOpIndex) XXX_Size() int
func (*UnbondingOpIndex) XXX_Unmarshal ¶ added in v0.2.0
func (m *UnbondingOpIndex) XXX_Unmarshal(b []byte) error
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) QueryConsumerChainStarts ¶ added in v0.2.0
func (*UnimplementedQueryServer) QueryConsumerChainStarts(ctx context.Context, req *QueryConsumerChainStartProposalsRequest) (*QueryConsumerChainStartProposalsResponse, error)
func (*UnimplementedQueryServer) QueryConsumerChainStops ¶ added in v0.2.0
func (*UnimplementedQueryServer) QueryConsumerChainStops(ctx context.Context, req *QueryConsumerChainStopProposalsRequest) (*QueryConsumerChainStopProposalsResponse, error)
func (*UnimplementedQueryServer) QueryConsumerChains ¶ added in v0.2.0
func (*UnimplementedQueryServer) QueryConsumerChains(ctx context.Context, req *QueryConsumerChainsRequest) (*QueryConsumerChainsResponse, error)
func (*UnimplementedQueryServer) QueryConsumerGenesis ¶ added in v0.2.0
func (*UnimplementedQueryServer) QueryConsumerGenesis(ctx context.Context, req *QueryConsumerGenesisRequest) (*QueryConsumerGenesisResponse, error)
type ValsetUpdateIdToHeight ¶ added in v0.2.0
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 ¶ added in v0.2.0
func (*ValsetUpdateIdToHeight) Descriptor() ([]byte, []int)
func (*ValsetUpdateIdToHeight) GetHeight ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) GetHeight() uint64
func (*ValsetUpdateIdToHeight) GetValsetUpdateId ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) GetValsetUpdateId() uint64
func (*ValsetUpdateIdToHeight) Marshal ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) Marshal() (dAtA []byte, err error)
func (*ValsetUpdateIdToHeight) MarshalTo ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) MarshalTo(dAtA []byte) (int, error)
func (*ValsetUpdateIdToHeight) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ValsetUpdateIdToHeight) ProtoMessage ¶ added in v0.2.0
func (*ValsetUpdateIdToHeight) ProtoMessage()
func (*ValsetUpdateIdToHeight) Reset ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) Reset()
func (*ValsetUpdateIdToHeight) Size ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) Size() (n int)
func (*ValsetUpdateIdToHeight) String ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) String() string
func (*ValsetUpdateIdToHeight) Unmarshal ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) Unmarshal(dAtA []byte) error
func (*ValsetUpdateIdToHeight) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) XXX_DiscardUnknown()
func (*ValsetUpdateIdToHeight) XXX_Marshal ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ValsetUpdateIdToHeight) XXX_Merge ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) XXX_Merge(src proto.Message)
func (*ValsetUpdateIdToHeight) XXX_Size ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) XXX_Size() int
func (*ValsetUpdateIdToHeight) XXX_Unmarshal ¶ added in v0.2.0
func (m *ValsetUpdateIdToHeight) XXX_Unmarshal(b []byte) error