Documentation
¶
Index ¶
- Constants
- type Prover
- func (pr *Prover) CheckRefreshRequired(ctx context.Context, counterparty core.ChainInfoICS02Querier) (bool, error)
- func (pr *Prover) CreateInitialLightClientState(ctx context.Context, height exported.Height) (exported.ClientState, exported.ConsensusState, error)
- func (pr *Prover) GetLatestFinalizedHeader(ctx context.Context) (latestFinalizedHeader core.Header, err error)
- func (pr *Prover) GetLogger() *log.RelayLogger
- func (pr *Prover) Init(homePath string, timeout time.Duration, codec codec.ProtoCodecMarshaler, ...) error
- func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height exported.Height, ...) (proof []byte, err error)
- func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ([]byte, clienttypes.Height, error)
- func (pr *Prover) SetRelayInfo(path *core.PathEnd, counterparty *core.ProvableChain, ...) error
- func (pr *Prover) SetupForRelay(ctx context.Context) error
- func (pr *Prover) SetupHeadersForUpdate(ctx context.Context, counterparty core.FinalityAwareChain, ...) (<-chan *core.HeaderOrError, error)
Constants ¶
View Source
const ModuleName = "optimism-light-client"
View Source
const SyncWaitTTL = 12 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prover ¶
type Prover struct {
// contains filtered or unexported fields
}
func (*Prover) CheckRefreshRequired ¶
func (*Prover) CreateInitialLightClientState ¶
func (pr *Prover) CreateInitialLightClientState(ctx context.Context, height exported.Height) (exported.ClientState, exported.ConsensusState, error)
func (*Prover) GetLatestFinalizedHeader ¶
func (*Prover) GetLogger ¶
func (pr *Prover) GetLogger() *log.RelayLogger
func (*Prover) ProveHostConsensusState ¶
func (pr *Prover) ProveHostConsensusState(ctx core.QueryContext, height exported.Height, consensusState exported.ConsensusState) (proof []byte, err error)
func (*Prover) ProveState ¶
func (pr *Prover) ProveState(ctx core.QueryContext, path string, value []byte) ([]byte, clienttypes.Height, error)
func (*Prover) SetRelayInfo ¶
func (*Prover) SetupHeadersForUpdate ¶
func (pr *Prover) SetupHeadersForUpdate(ctx context.Context, counterparty core.FinalityAwareChain, latestFinalizedHeader core.Header) (<-chan *core.HeaderOrError, error)
Click to show internal directories.
Click to hide internal directories.