Documentation ¶
Index ¶
- Variables
- func MarshalChannel(cdc *codec.CodecProxy, c *types.Channel) ([]byte, error)
- func MustMarshalChannel(cdc *codec.CodecProxy, c *types.Channel) []byte
- func MustMarshalConnection(cdc *codec.CodecProxy, c *conntypes.ConnectionEnd) []byte
- func MustUnmarshalChannel(cdc *codec.CodecProxy, data []byte) *types.Channel
- func MustUnmarshalConnection(cdc *codec.CodecProxy, data []byte) *conntypes.ConnectionEnd
- func UnmarshalConnection(cdc *codec.CodecProxy, data []byte) (*conntypes.ConnectionEnd, error)
- type CommonHeightSelector
- type SelectVersion
- type Selector
- type SelectorFactory
- type SelectorStrategy
- type Selectors
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultFactory = func(higherThan func(h int64) bool, version SelectVersion, internal interface{}) SelectorFactory { return func() Selector { return NewCommonHeightSelector(higherThan, version, internal) } } )
Functions ¶
func MarshalChannel ¶
func MustMarshalChannel ¶
func MustMarshalChannel(cdc *codec.CodecProxy, c *types.Channel) []byte
func MustMarshalConnection ¶
func MustMarshalConnection(cdc *codec.CodecProxy, c *conntypes.ConnectionEnd) []byte
func MustUnmarshalChannel ¶
func MustUnmarshalChannel(cdc *codec.CodecProxy, data []byte) *types.Channel
func MustUnmarshalConnection ¶
func MustUnmarshalConnection(cdc *codec.CodecProxy, data []byte) *conntypes.ConnectionEnd
func UnmarshalConnection ¶
func UnmarshalConnection(cdc *codec.CodecProxy, data []byte) (*conntypes.ConnectionEnd, error)
Types ¶
type CommonHeightSelector ¶ added in v1.6.7
type CommonHeightSelector struct {
// contains filtered or unexported fields
}
func NewCommonHeightSelector ¶ added in v1.6.7
func NewCommonHeightSelector(higherThan func(h int64) bool, version SelectVersion, internal interface{}) *CommonHeightSelector
func (*CommonHeightSelector) Select ¶ added in v1.6.7
func (c *CommonHeightSelector) Select(ctx sdk.Context) (interface{}, bool)
func (*CommonHeightSelector) Version ¶ added in v1.6.7
func (c *CommonHeightSelector) Version() SelectVersion
type SelectVersion ¶ added in v1.6.7
type SelectVersion float64
type Selector ¶ added in v1.6.7
type Selector interface { Version() SelectVersion Select(ctx sdk.Context) (interface{}, bool) }
TODO,use genesis
type SelectorFactory ¶ added in v1.6.7
type SelectorFactory func() Selector
type SelectorStrategy ¶ added in v1.6.7
type SelectorStrategy struct {
// contains filtered or unexported fields
}
func NewSelectorStrategy ¶ added in v1.6.7
func NewSelectorStrategy(internal interface{}) *SelectorStrategy
func (*SelectorStrategy) GetInternal ¶ added in v1.6.7
func (f *SelectorStrategy) GetInternal() interface{}
func (*SelectorStrategy) GetProxy ¶ added in v1.6.7
func (f *SelectorStrategy) GetProxy(ctx sdk.Context) interface{}
func (*SelectorStrategy) RegisterSelectors ¶ added in v1.6.7
func (f *SelectorStrategy) RegisterSelectors(factories ...SelectorFactory)
func (*SelectorStrategy) Seal ¶ added in v1.6.7
func (f *SelectorStrategy) Seal()
func (*SelectorStrategy) Seald ¶ added in v1.6.7
func (f *SelectorStrategy) Seald() bool
Click to show internal directories.
Click to hide internal directories.