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
663e3ede
Unverified
Commit
663e3ede
authored
Jul 10, 2023
by
mergify[bot]
Committed by
GitHub
Jul 10, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into aj/test-challenger-cli
parents
aae7885c
e9c22a78
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
137 additions
and
137 deletions
+137
-137
config.yml
.circleci/config.yml
+4
-0
faultdisputegame.go
op-bindings/bindings/faultdisputegame.go
+43
-43
faultdisputegame_more.go
op-bindings/bindings/faultdisputegame_more.go
+1
-1
driver.go
op-program/client/driver/driver.go
+5
-0
driver_test.go
op-program/client/driver/driver_test.go
+1
-1
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+10
-10
FaultDisputeGame.sol
.../contracts-bedrock/contracts/dispute/FaultDisputeGame.sol
+63
-75
IFaultDisputeGame.sol
...edrock/contracts/dispute/interfaces/IFaultDisputeGame.sol
+10
-7
No files found.
.circleci/config.yml
View file @
663e3ede
...
@@ -689,6 +689,10 @@ jobs:
...
@@ -689,6 +689,10 @@ jobs:
name
:
Install pnpm package manager
name
:
Install pnpm package manager
command
:
|
command
:
|
npm i pnpm --global
npm i pnpm --global
-
run
:
name
:
Install node_modules
command
:
|
pnpm install
-
run
:
-
run
:
name
:
Lint check
name
:
Lint check
command
:
|
command
:
|
...
...
op-bindings/bindings/faultdisputegame.go
View file @
663e3ede
This diff is collapsed.
Click to expand it.
op-bindings/bindings/faultdisputegame_more.go
View file @
663e3ede
This diff is collapsed.
Click to expand it.
op-program/client/driver/driver.go
View file @
663e3ede
...
@@ -61,6 +61,11 @@ func (d *Driver) Step(ctx context.Context) error {
...
@@ -61,6 +61,11 @@ func (d *Driver) Step(ctx context.Context) error {
}
}
d
.
logger
.
Debug
(
"Data is lacking"
)
d
.
logger
.
Debug
(
"Data is lacking"
)
return
nil
return
nil
}
else
if
errors
.
Is
(
err
,
derive
.
ErrTemporary
)
{
// While most temporary errors are due to requests for external data failing which can't happen,
// they may also be returned due to other events like channels timing out so need to be handled
d
.
logger
.
Warn
(
"Temporary error in derivation"
,
"err"
,
err
)
return
nil
}
else
if
err
!=
nil
{
}
else
if
err
!=
nil
{
return
fmt
.
Errorf
(
"pipeline err: %w"
,
err
)
return
fmt
.
Errorf
(
"pipeline err: %w"
,
err
)
}
}
...
...
op-program/client/driver/driver_test.go
View file @
663e3ede
...
@@ -23,7 +23,7 @@ func TestDerivationComplete(t *testing.T) {
...
@@ -23,7 +23,7 @@ func TestDerivationComplete(t *testing.T) {
func
TestTemporaryError
(
t
*
testing
.
T
)
{
func
TestTemporaryError
(
t
*
testing
.
T
)
{
driver
:=
createDriver
(
t
,
fmt
.
Errorf
(
"whoopsie: %w"
,
derive
.
ErrTemporary
))
driver
:=
createDriver
(
t
,
fmt
.
Errorf
(
"whoopsie: %w"
,
derive
.
ErrTemporary
))
err
:=
driver
.
Step
(
context
.
Background
())
err
:=
driver
.
Step
(
context
.
Background
())
require
.
ErrorIs
(
t
,
err
,
derive
.
ErrTemporary
)
require
.
NoError
(
t
,
err
,
"should allow derivation to continue after temporary error"
)
}
}
func
TestNotEnoughDataError
(
t
*
testing
.
T
)
{
func
TestNotEnoughDataError
(
t
*
testing
.
T
)
{
...
...
packages/contracts-bedrock/.gas-snapshot
View file @
663e3ede
...
@@ -32,12 +32,12 @@ DisputeGameFactory_SetImplementation_Test:test_setImplementation_notOwner_revert
...
@@ -32,12 +32,12 @@ DisputeGameFactory_SetImplementation_Test:test_setImplementation_notOwner_revert
DisputeGameFactory_SetImplementation_Test:test_setImplementation_succeeds() (gas: 44243)
DisputeGameFactory_SetImplementation_Test:test_setImplementation_succeeds() (gas: 44243)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_notOwner_reverts() (gas: 15950)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_notOwner_reverts() (gas: 15950)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_succeeds() (gas: 18642)
DisputeGameFactory_TransferOwnership_Test:test_transferOwnership_succeeds() (gas: 18642)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot2:test_resolvesCorrectly_succeeds() (gas: 5021
74
)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot2:test_resolvesCorrectly_succeeds() (gas: 5021
69
)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot3:test_resolvesCorrectly_succeeds() (gas: 5040
53
)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot3:test_resolvesCorrectly_succeeds() (gas: 5040
48
)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot:test_resolvesCorrectly_succeeds() (gas: 49151
7
)
FaultDisputeGame_ResolvesCorrectly_CorrectRoot:test_resolvesCorrectly_succeeds() (gas: 49151
2
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot2:test_resolvesCorrectly_succeeds() (gas: 50093
7
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot2:test_resolvesCorrectly_succeeds() (gas: 50093
2
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot3:test_resolvesCorrectly_succeeds() (gas: 50281
6
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot3:test_resolvesCorrectly_succeeds() (gas: 50281
1
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot:test_resolvesCorrectly_succeeds() (gas: 4902
80
)
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot:test_resolvesCorrectly_succeeds() (gas: 4902
75
)
FaultDisputeGame_Test:test_extraData_succeeds() (gas: 17426)
FaultDisputeGame_Test:test_extraData_succeeds() (gas: 17426)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17917)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17917)
FaultDisputeGame_Test:test_gameStart_succeeds() (gas: 10315)
FaultDisputeGame_Test:test_gameStart_succeeds() (gas: 10315)
...
@@ -51,12 +51,12 @@ FaultDisputeGame_Test:test_move_gameDepthExceeded_reverts() (gas: 408100)
...
@@ -51,12 +51,12 @@ FaultDisputeGame_Test:test_move_gameDepthExceeded_reverts() (gas: 408100)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 10968)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 10968)
FaultDisputeGame_Test:test_move_nonExistentParent_reverts() (gas: 24655)
FaultDisputeGame_Test:test_move_nonExistentParent_reverts() (gas: 24655)
FaultDisputeGame_Test:test_move_simpleAttack_succeeds() (gas: 107344)
FaultDisputeGame_Test:test_move_simpleAttack_succeeds() (gas: 107344)
FaultDisputeGame_Test:test_resolve_challengeContested_succeeds() (gas: 22478
9
)
FaultDisputeGame_Test:test_resolve_challengeContested_succeeds() (gas: 22478
4
)
FaultDisputeGame_Test:test_resolve_notInProgress_reverts() (gas: 9657)
FaultDisputeGame_Test:test_resolve_notInProgress_reverts() (gas: 9657)
FaultDisputeGame_Test:test_resolve_rootContested_succeeds() (gas: 1097
54
)
FaultDisputeGame_Test:test_resolve_rootContested_succeeds() (gas: 1097
49
)
FaultDisputeGame_Test:test_resolve_rootUncontestedClockNotExpired_succeeds() (gas: 21422)
FaultDisputeGame_Test:test_resolve_rootUncontestedClockNotExpired_succeeds() (gas: 21422)
FaultDisputeGame_Test:test_resolve_rootUncontested_succeeds() (gas: 2725
6
)
FaultDisputeGame_Test:test_resolve_rootUncontested_succeeds() (gas: 2725
1
)
FaultDisputeGame_Test:test_resolve_teamDeathmatch_succeeds() (gas: 39544
7
)
FaultDisputeGame_Test:test_resolve_teamDeathmatch_succeeds() (gas: 39544
2
)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 8181)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 8181)
FeeVault_Test:test_constructor_succeeds() (gas: 18185)
FeeVault_Test:test_constructor_succeeds() (gas: 18185)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352113)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352113)
...
...
packages/contracts-bedrock/contracts/dispute/FaultDisputeGame.sol
View file @
663e3ede
This diff is collapsed.
Click to expand it.
packages/contracts-bedrock/contracts/dispute/interfaces/IFaultDisputeGame.sol
View file @
663e3ede
...
@@ -20,19 +20,19 @@ interface IFaultDisputeGame is IDisputeGame {
...
@@ -20,19 +20,19 @@ interface IFaultDisputeGame is IDisputeGame {
/// @notice Emitted when a new claim is added to the DAG by `claimant`
/// @notice Emitted when a new claim is added to the DAG by `claimant`
/// @param parentIndex The index within the `claimData` array of the parent claim
/// @param parentIndex The index within the `claimData` array of the parent claim
/// @param
pivot
The claim being added
/// @param
claim
The claim being added
/// @param claimant The address of the claimant
/// @param claimant The address of the claimant
event Move(uint256 indexed parentIndex, Claim indexed
pivot
, address indexed claimant);
event Move(uint256 indexed parentIndex, Claim indexed
claim
, address indexed claimant);
/// @notice Attack a disagreed upon `Claim`.
/// @notice Attack a disagreed upon `Claim`.
/// @param _parentIndex Index of the `Claim` to attack in `claimData`.
/// @param _parentIndex Index of the `Claim` to attack in `claimData`.
/// @param _
pivot
The `Claim` at the relative attack position.
/// @param _
claim
The `Claim` at the relative attack position.
function attack(uint256 _parentIndex, Claim _
pivot
) external payable;
function attack(uint256 _parentIndex, Claim _
claim
) external payable;
/// @notice Defend an agreed upon `Claim`.
/// @notice Defend an agreed upon `Claim`.
/// @param _parentIndex Index of the claim to defend in `claimData`.
/// @param _parentIndex Index of the claim to defend in `claimData`.
/// @param _
pivot
The `Claim` at the relative defense position.
/// @param _
claim
The `Claim` at the relative defense position.
function defend(uint256 _parentIndex, Claim _
pivot
) external payable;
function defend(uint256 _parentIndex, Claim _
claim
) external payable;
/// @notice Perform the final step via an on-chain fault proof processor
/// @notice Perform the final step via an on-chain fault proof processor
/// @dev This function should point to a fault proof processor in order to execute
/// @dev This function should point to a fault proof processor in order to execute
...
@@ -42,7 +42,10 @@ interface IFaultDisputeGame is IDisputeGame {
...
@@ -42,7 +42,10 @@ interface IFaultDisputeGame is IDisputeGame {
/// @param _stateIndex The index of the pre/post state of the step within `claimData`.
/// @param _stateIndex The index of the pre/post state of the step within `claimData`.
/// @param _claimIndex The index of the challenged claim within `claimData`.
/// @param _claimIndex The index of the challenged claim within `claimData`.
/// @param _isAttack Whether or not the step is an attack or a defense.
/// @param _isAttack Whether or not the step is an attack or a defense.
/// @param _stateData The stateData of the step is the preimage of the claim @ `prestateIndex`
/// @param _stateData The stateData of the step is the preimage of the claim at the given
/// prestate, which is at `_stateIndex` if the move is an attack and `_claimIndex` if
/// the move is a defense. If the step is an attack on the first instruction, it is
/// the absolute prestate of the fault proof VM.
/// @param _proof Proof to access memory leaf nodes in the VM.
/// @param _proof Proof to access memory leaf nodes in the VM.
function step(
function step(
uint256 _stateIndex,
uint256 _stateIndex,
...
...
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