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
c0fbaae4
Commit
c0fbaae4
authored
Apr 05, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
:broom:
parent
5d9146bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
8 deletions
+21
-8
challenger.md
specs/challenger.md
+21
-8
No files found.
specs/challenger.md
View file @
c0fbaae4
...
...
@@ -8,8 +8,8 @@
-
[
Terminology
](
#terminology
)
-
[
Event and Response Lifecycle
](
#event-and-response-lifecycle
)
-
[
`GameType.FAULT`
](
#gametypefault
)
-
[
`GameType.VALIDITY`
](
#gametypevalidity
)
-
[
`GameType.ATTESTATION`
](
#gametypeattestation
)
-
[
`GameType.VALIDITY`
](
#gametypevalidity
)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
...
...
@@ -20,7 +20,7 @@ the L2 on the data availability layer. It is responsible for challenging these i
and ensuring the correctness of all finalized claims on the data availability layer.
The Challenger agent is intended to be ran as a permissionless service by participants of the network
alongside a
n
[
rollup-node
](
./rollup-node.md
)
. Challenger agents will be rewarded in the form of the
alongside a
[
rollup-node
](
./rollup-node.md
)
. Challenger agents will be rewarded in the form of the
bond attached to the claims they disprove.
## Terminology
...
...
@@ -44,25 +44,26 @@ played. For more information on the separate types of dispute games, see the
### `GameType.FAULT`
**TODO**
> **Warning**
> The `FAULT` game type is not yet implemented. In the first iteration of Optimism's decentralization effort,
> challengers will respond to `ATTESTATION` games only.
### `GameType.VALIDITY`
**TODO**
**Events and Responses**
*TODO*
### `GameType.ATTESTATION`
**Events and Responses**
-
[
`L2OutputOracle.OutputProposed`
](
../packages/contracts-bedrock/contracts/L1/L2OutputOracle.sol#L57-70
)
The
L2OutputOracle
contract emits this event when a new output is proposed on the data availability
The
`L2OutputOracle`
contract emits this event when a new output is proposed on the data availability
layer. Each time an output is proposed, the Challenger should check to see if the output is equal
the output given by the
`optimism_outputAtBlock`
endpoint of their
`rollup-node`
.
-
If it is, the Challenger should do nothing to challenge this output proposal.
-
If it is not, the Challenger should respond by creating a new
`DisputeGame`
with the
`DisputeGameType.ATTESTATION`
`gameType`
, the correct output root as the
`rootClaim`
, and the abi-encoded
`l2BlockNumber`
of the correct output root as the
`extraData`
.
-
`DisputeGameFactory.DisputeGameCreated`
-
A new dispute game has been created and is ready to be reviewed. The
-
`DisputeGameFactory.DisputeGameCreated`
A new dispute game has been created and is ready to be reviewed. The
Challenger agent should listen for this event and check if the
`rootClaim`
of the
`AttestationDisputeGame`
created by the
`DisputeGameFactory`
is equal to the output root of their
`rollup-node`
at the game's
`l2BlockNumber`
.
-
If it is, the Challenger should sign the
[
EIP-712 typeHash
](
./dispute-game.md
)
of the struct containing the
...
...
@@ -73,3 +74,15 @@ played. For more information on the separate types of dispute games, see the
A full diagram and lifecycle of the Challenger's role in the
`ATTESTATION`
game type can be found below:

### `GameType.VALIDITY`
**TODO**
> **Warning**
> The `VALIDITY` game type is not yet implemented. In the first iteration of Optimism's decentralization effort,
> challengers will respond to `ATTESTATION` games only. A validity proof based dispute game is a possibility,
> but fault proof based dispute games will be the primary focus of the team in the near future.
**Events and Responses**
*TODO*
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