Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
f83b1b34
Unverified
Commit
f83b1b34
authored
Jun 22, 2023
by
mergify[bot]
Committed by
GitHub
Jun 22, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into refcell/alphabet/examples
parents
3bad749a
4ccdb3dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
types.go
op-challenger/fault/types.go
+8
-0
No files found.
op-challenger/fault/types.go
View file @
f83b1b34
package
fault
import
(
"context"
"errors"
"github.com/ethereum/go-ethereum/common"
...
...
@@ -26,4 +27,11 @@ type Claim struct {
type
Response
struct
{
Attack
bool
// note: can we flip this to true == going right / defending??
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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment