Documentation ¶
Index ¶
- type Broker
- type CallEngine
- type EthCallEngine
- type EthL2CallEngines
- type EthereumConfirmations
- type L2Clients
- type L2Verifiers
- func (v *L2Verifiers) FromProtoSnapshot()
- func (s *L2Verifiers) GetState(k string) ([]byte, []types.StateProvider, error)
- func (s *L2Verifiers) Keys() []string
- func (s *L2Verifiers) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
- func (s *L2Verifiers) Namespace() types.SnapshotNamespace
- func (v *L2Verifiers) OnEthereumL2ConfigsUpdated(ctx context.Context, ethCfg *types.EthereumL2Configs) error
- func (s *L2Verifiers) OnStateLoaded(ctx context.Context) error
- func (v *L2Verifiers) OnTick(ctx context.Context, t time.Time)
- func (v *L2Verifiers) ProcessEthereumContractCallResult(callEvent ethcall.ContractCallEvent) error
- func (s *L2Verifiers) Stopped() bool
- func (v *L2Verifiers) ToProtoSnapshot() []byte
- type OracleDataBroadcaster
- type Result
- type TimeService
- type Verifier
- func (s *Verifier) GetState(k string) ([]byte, []types.StateProvider, error)
- func (s *Verifier) Keys() []string
- func (s *Verifier) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
- func (s *Verifier) Namespace() types.SnapshotNamespace
- func (s *Verifier) OnStateLoaded(ctx context.Context) error
- func (s *Verifier) OnTick(ctx context.Context, t time.Time)
- func (s *Verifier) ProcessEthereumContractCallResult(callEvent ethcall.ContractCallEvent) error
- func (s *Verifier) Stopped() bool
- type Witness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallEngine ¶
type EthCallEngine ¶
type EthCallEngine interface { MakeResult(specID string, bytes []byte) (ethcall.Result, error) CallSpec(ctx context.Context, id string, atBlock uint64) (ethcall.Result, error) GetEthTime(ctx context.Context, atBlock uint64) (uint64, error) GetRequiredConfirmations(specId string) (uint64, error) GetInitialTriggerTime(id string) (uint64, error) StartAtHeight(height uint64, timestamp uint64) Start() }
type EthL2CallEngines ¶ added in v0.74.0
type EthL2CallEngines interface {
GetOrInstantiate(chainID string) (EthCallEngine, error)
}
type EthereumConfirmations ¶
type L2Verifiers ¶ added in v0.74.0
type L2Verifiers struct {
// contains filtered or unexported fields
}
func NewL2Verifiers ¶ added in v0.74.0
func NewL2Verifiers( log *logging.Logger, witness Witness, ts TimeService, broker Broker, oracleBroadcaster OracleDataBroadcaster, clients L2Clients, callEngines EthL2CallEngines, isValidator bool, ) (sv *L2Verifiers)
func (*L2Verifiers) FromProtoSnapshot ¶ added in v0.74.0
func (v *L2Verifiers) FromProtoSnapshot()
func (*L2Verifiers) GetState ¶ added in v0.74.0
func (s *L2Verifiers) GetState(k string) ([]byte, []types.StateProvider, error)
func (*L2Verifiers) Keys ¶ added in v0.74.0
func (s *L2Verifiers) Keys() []string
func (*L2Verifiers) LoadState ¶ added in v0.74.0
func (s *L2Verifiers) LoadState(ctx context.Context, payload *types.Payload) ([]types.StateProvider, error)
func (*L2Verifiers) Namespace ¶ added in v0.74.0
func (s *L2Verifiers) Namespace() types.SnapshotNamespace
func (*L2Verifiers) OnEthereumL2ConfigsUpdated ¶ added in v0.74.0
func (v *L2Verifiers) OnEthereumL2ConfigsUpdated( ctx context.Context, ethCfg *types.EthereumL2Configs, ) error
func (*L2Verifiers) OnStateLoaded ¶ added in v0.74.0
func (s *L2Verifiers) OnStateLoaded(ctx context.Context) error
func (*L2Verifiers) OnTick ¶ added in v0.74.0
func (v *L2Verifiers) OnTick(ctx context.Context, t time.Time)
func (*L2Verifiers) ProcessEthereumContractCallResult ¶ added in v0.74.0
func (v *L2Verifiers) ProcessEthereumContractCallResult(callEvent ethcall.ContractCallEvent) error
func (*L2Verifiers) Stopped ¶ added in v0.74.0
func (s *L2Verifiers) Stopped() bool
func (*L2Verifiers) ToProtoSnapshot ¶ added in v0.74.0
func (v *L2Verifiers) ToProtoSnapshot() []byte
type OracleDataBroadcaster ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
func New ¶
func New( log *logging.Logger, witness Witness, ts TimeService, broker Broker, oracleBroadcaster OracleDataBroadcaster, ethCallEngine EthCallEngine, ethConfirmations EthereumConfirmations, isValidator bool, ) (sv *Verifier)
func (*Verifier) Namespace ¶
func (s *Verifier) Namespace() types.SnapshotNamespace
func (*Verifier) ProcessEthereumContractCallResult ¶
func (s *Verifier) ProcessEthereumContractCallResult(callEvent ethcall.ContractCallEvent) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.