Commit 4ccdb3dc authored by OptimismBot's avatar OptimismBot Committed by GitHub

Merge pull request #6110 from ethereum-optimism/jg/output_interface

op-challenger: Add Responder interface
parents 7ca852ec 9d0bbe3e
package fault package fault
import ( import (
"context"
"errors" "errors"
"github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common"
...@@ -26,4 +27,11 @@ type Claim struct { ...@@ -26,4 +27,11 @@ type Claim struct {
type Response struct { type Response struct {
Attack bool // note: can we flip this to true == going right / defending?? Attack bool // note: can we flip this to true == going right / defending??
Value common.Hash Value common.Hash
Parent Claim
}
// Responder takes a response action & executes.
// For full op-challenger this means executing the transaction on chain.
type Responder interface {
Respond(ctx context.Context, response Response) error
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment