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
7648c1de
Unverified
Commit
7648c1de
authored
Jun 26, 2023
by
mergify[bot]
Committed by
GitHub
Jun 26, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feat/checkl2
parents
8e69a7f6
0119b6c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
18 deletions
+20
-18
oracle.go
op-preimage/oracle.go
+2
-1
goerli.go
op-program/verify/cmd/goerli.go
+1
-0
.gas-snapshot
packages/contracts-bedrock/.gas-snapshot
+13
-13
FaultDisputeGame.t.sol
...s/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
+4
-4
No files found.
op-preimage/oracle.go
View file @
7648c1de
...
...
@@ -2,6 +2,7 @@ package preimage
import
(
"encoding/binary"
"encoding/hex"
"fmt"
"io"
)
...
...
@@ -57,7 +58,7 @@ func (o *OracleServer) NextPreimageRequest(getPreimage PreimageGetter) error {
}
value
,
err
:=
getPreimage
(
key
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to serve pre-image %s request: %w"
,
key
,
err
)
return
fmt
.
Errorf
(
"failed to serve pre-image %s request: %w"
,
hex
.
EncodeToString
(
key
[
:
])
,
err
)
}
if
err
:=
binary
.
Write
(
o
.
rw
,
binary
.
BigEndian
,
uint64
(
len
(
value
)));
err
!=
nil
{
...
...
op-program/verify/cmd/goerli.go
View file @
7648c1de
...
...
@@ -114,6 +114,7 @@ func Run(l1RpcUrl string, l2RpcUrl string, l2OracleAddr common.Address) error {
}()
fmt
.
Printf
(
"Using temp dir: %s
\n
"
,
temp
)
args
:=
[]
string
{
"--log.level"
,
"DEBUG"
,
"--network"
,
"goerli"
,
"--exec"
,
"./bin/op-program-client"
,
"--datadir"
,
temp
,
...
...
packages/contracts-bedrock/.gas-snapshot
View file @
7648c1de
...
...
@@ -40,21 +40,21 @@ FaultDisputeGame_ResolvesCorrectly_IncorrectRoot3:test_resolvesCorrectly_succeed
FaultDisputeGame_ResolvesCorrectly_IncorrectRoot:test_resolvesCorrectly_succeeds() (gas: 487044)
FaultDisputeGame_Test:test_defendRoot_invalidMove_reverts() (gas: 13294)
FaultDisputeGame_Test:test_extraData_succeeds() (gas: 17426)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17
873
)
FaultDisputeGame_Test:test_gameData_succeeds() (gas: 17
917
)
FaultDisputeGame_Test:test_gameStart_succeeds() (gas: 10315)
FaultDisputeGame_Test:test_gameType_succeeds() (gas: 82
38
)
FaultDisputeGame_Test:test_initialRootClaimData_succeeds() (gas: 17
713
)
FaultDisputeGame_Test:test_move_clockTimeExceeded_reverts() (gas: 26
432
)
FaultDisputeGame_Test:test_move_duplicateClaim_reverts() (gas: 1032
75
)
FaultDisputeGame_Test:test_gameType_succeeds() (gas: 82
82
)
FaultDisputeGame_Test:test_initialRootClaimData_succeeds() (gas: 17
691
)
FaultDisputeGame_Test:test_move_clockTimeExceeded_reverts() (gas: 26
387
)
FaultDisputeGame_Test:test_move_duplicateClaim_reverts() (gas: 1032
30
)
FaultDisputeGame_Test:test_move_gameDepthExceeded_reverts() (gas: 408100)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 109
68
)
FaultDisputeGame_Test:test_move_nonExistentParent_reverts() (gas: 246
98
)
FaultDisputeGame_Test:test_resolve_challengeContested
() (gas: 221135
)
FaultDisputeGame_Test:test_resolve_notInProgress_reverts() (gas: 96
35
)
FaultDisputeGame_Test:test_resolve_rootContested
() (gas: 106143
)
FaultDisputeGame_Test:test_resolve_rootUncontested
() (gas: 23625
)
FaultDisputeGame_Test:test_resolve_teamDeathmatch
() (gas: 391864
)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 81
59
)
FaultDisputeGame_Test:test_move_gameNotInProgress_reverts() (gas: 109
23
)
FaultDisputeGame_Test:test_move_nonExistentParent_reverts() (gas: 246
55
)
FaultDisputeGame_Test:test_resolve_challengeContested
_succeeds() (gas: 221201
)
FaultDisputeGame_Test:test_resolve_notInProgress_reverts() (gas: 96
79
)
FaultDisputeGame_Test:test_resolve_rootContested
_succeeds() (gas: 106068
)
FaultDisputeGame_Test:test_resolve_rootUncontested
_succeeds() (gas: 23692
)
FaultDisputeGame_Test:test_resolve_teamDeathmatch
_succeeds() (gas: 391875
)
FaultDisputeGame_Test:test_rootClaim_succeeds() (gas: 81
81
)
FaultDisputeGame_Test:test_simpleAttack_succeeds() (gas: 107388)
FeeVault_Test:test_constructor_succeeds() (gas: 18185)
GasBenchMark_L1CrossDomainMessenger:test_sendMessage_benchmark_0() (gas: 352135)
...
...
packages/contracts-bedrock/contracts/test/FaultDisputeGame.t.sol
View file @
7648c1de
...
...
@@ -236,7 +236,7 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
}
/// @dev Static unit test for the correctness an uncontested root resolution.
function test_resolve_rootUncontested() public {
function test_resolve_rootUncontested
_succeeds
() public {
GameStatus status = gameProxy.resolve();
assertEq(uint8(status), uint8(GameStatus.DEFENDER_WINS));
assertEq(uint8(gameProxy.status()), uint8(GameStatus.DEFENDER_WINS));
...
...
@@ -260,7 +260,7 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
}
/// @dev Static unit test for the correctness of resolving a single attack game state.
function test_resolve_rootContested() public {
function test_resolve_rootContested
_succeeds
() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
GameStatus status = gameProxy.resolve();
...
...
@@ -269,7 +269,7 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
}
/// @dev Static unit test for the correctness of resolving a game with a contested challenge claim.
function test_resolve_challengeContested() public {
function test_resolve_challengeContested
_succeeds
() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
...
...
@@ -279,7 +279,7 @@ contract FaultDisputeGame_Test is FaultDisputeGame_Init {
}
/// @dev Static unit test for the correctness of resolving a game with multiplayer moves.
function test_resolve_teamDeathmatch() public {
function test_resolve_teamDeathmatch
_succeeds
() public {
gameProxy.attack(0, Claim.wrap(bytes32(uint256(5))));
gameProxy.attack(0, Claim.wrap(bytes32(uint256(4))));
gameProxy.defend(1, Claim.wrap(bytes32(uint256(6))));
...
...
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