Documentation
¶
Index ¶
- type Runtime
- type StateExpectation
- func DefenseTasksSpawned(expected int) *StateExpectation
- func LogBatchesSubmitted(expected int) *StateExpectation
- func LogBatchesSubmittedAtLeast(minimum int) *StateExpectation
- func ProvingFailures(expected int) *StateExpectation
- func RangeChainSplitsAtLeast(minimum int) *StateExpectation
- func SpanBisectionsAtLeast(minimum int) *StateExpectation
- type ZKProposer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateExpectation ¶
type StateExpectation struct {
// contains filtered or unexported fields
}
StateExpectation describes one proposer-state observation.
func DefenseTasksSpawned ¶
func DefenseTasksSpawned(expected int) *StateExpectation
DefenseTasksSpawned expects the exact number of spawned defense tasks.
func LogBatchesSubmitted ¶ added in v1.20.1
func LogBatchesSubmitted(expected int) *StateExpectation
LogBatchesSubmitted expects the exact number of log-commitment batch proof requests.
func LogBatchesSubmittedAtLeast ¶ added in v1.20.1
func LogBatchesSubmittedAtLeast(minimum int) *StateExpectation
LogBatchesSubmittedAtLeast expects at least minimum log-commitment batch proof requests.
func ProvingFailures ¶
func ProvingFailures(expected int) *StateExpectation
ProvingFailures expects the exact number of proving failures.
func RangeChainSplitsAtLeast ¶ added in v1.20.1
func RangeChainSplitsAtLeast(minimum int) *StateExpectation
RangeChainSplitsAtLeast expects at least minimum single-timestamp range requests split by chain for exceeding a proving limit.
func SpanBisectionsAtLeast ¶ added in v1.20.1
func SpanBisectionsAtLeast(minimum int) *StateExpectation
SpanBisectionsAtLeast expects at least minimum proving spans halved for exceeding a proving limit.
type ZKProposer ¶
type ZKProposer struct {
// contains filtered or unexported fields
}
ZKProposer verifies the observable state of a running op-zk-proposer.
func New ¶
func New(t devtest.T, runtime Runtime) *ZKProposer
New creates a DSL facade for a running proposer runtime.
func (*ZKProposer) VerifyState ¶
func (p *ZKProposer) VerifyState(expectations ...*StateExpectation)
VerifyState waits for every expectation to hold in one metrics snapshot.