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
ae7c2740
Commit
ae7c2740
authored
Aug 02, 2023
by
clabby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start fixing breaking changes in other packages
parent
f20c4cdf
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
358 additions
and
302 deletions
+358
-302
artifacts.json
op-bindings/artifacts.json
+1
-1
blockhashoracle.go
op-bindings/bindings/blockhashoracle.go
+0
-254
blockhashoracle_more.go
op-bindings/bindings/blockhashoracle_more.go
+0
-25
blockoracle.go
op-bindings/bindings/blockoracle.go
+260
-0
blockoracle_more.go
op-bindings/bindings/blockoracle_more.go
+25
-0
faultdisputegame.go
op-bindings/bindings/faultdisputegame.go
+66
-16
faultdisputegame_more.go
op-bindings/bindings/faultdisputegame_more.go
+2
-2
abi_test.go
op-challenger/fault/abi_test.go
+1
-1
deploy.go
op-e2e/e2eutils/disputegame/deploy.go
+2
-2
DisputeErrors.sol
packages/contracts-bedrock/src/libraries/DisputeErrors.sol
+1
-1
No files found.
op-bindings/artifacts.json
View file @
ae7c2740
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
"CrossDomainMessenger"
,
"CrossDomainMessenger"
,
"MIPS"
,
"MIPS"
,
"PreimageOracle"
,
"PreimageOracle"
,
"Block
Hash
Oracle"
,
"BlockOracle"
,
"EAS"
,
"EAS"
,
"SchemaRegistry"
"SchemaRegistry"
]
]
op-bindings/bindings/blockhashoracle.go
deleted
100644 → 0
View file @
f20c4cdf
This diff is collapsed.
Click to expand it.
op-bindings/bindings/blockhashoracle_more.go
deleted
100644 → 0
View file @
f20c4cdf
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package
bindings
import
(
"encoding/json"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
const
BlockHashOracleStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
src/dispute/BlockHashOracle.sol:BlockHashOracle
\"
,
\"
label
\"
:
\"
blockHashes
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_mapping(t_uint256,t_userDefinedValueType(Hash)1001)
\"
}],
\"
types
\"
:{
\"
t_mapping(t_uint256,t_userDefinedValueType(Hash)1001)
\"
:{
\"
encoding
\"
:
\"
mapping
\"
,
\"
label
\"
:
\"
mapping(uint256 =
\u003e
Hash)
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
key
\"
:
\"
t_uint256
\"
,
\"
value
\"
:
\"
t_userDefinedValueType(Hash)1001
\"
},
\"
t_uint256
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Hash)1001
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Hash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
}}}"
var
BlockHashOracleStorageLayout
=
new
(
solc
.
StorageLayout
)
var
BlockHashOracleDeployedBin
=
"0x608060405234801561001057600080fd5b50600436106100365760003560e01c80636057361d1461003b57806399d548aa14610050575b600080fd5b61004e610049366004610112565b610075565b005b61006361005e366004610112565b6100c4565b60405190815260200160405180910390f35b804060008190036100b2576040517fd82756d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60009182526020829052604090912055565b6000818152602081905260408120549081900361010d576040517f37cf270500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60006020828403121561012457600080fd5b503591905056fea164736f6c634300080f000a"
func
init
()
{
if
err
:=
json
.
Unmarshal
([]
byte
(
BlockHashOracleStorageLayoutJSON
),
BlockHashOracleStorageLayout
);
err
!=
nil
{
panic
(
err
)
}
layouts
[
"BlockHashOracle"
]
=
BlockHashOracleStorageLayout
deployedBytecodes
[
"BlockHashOracle"
]
=
BlockHashOracleDeployedBin
}
op-bindings/bindings/blockoracle.go
0 → 100644
View file @
ae7c2740
This diff is collapsed.
Click to expand it.
op-bindings/bindings/blockoracle_more.go
0 → 100644
View file @
ae7c2740
// Code generated - DO NOT EDIT.
// This file is a generated binding and any manual changes will be lost.
package
bindings
import
(
"encoding/json"
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
const
BlockOracleStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
src/dispute/BlockOracle.sol:BlockOracle
\"
,
\"
label
\"
:
\"
blockHashes
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_mapping(t_uint256,t_struct(BlockInfo)1001_storage)
\"
}],
\"
types
\"
:{
\"
t_mapping(t_uint256,t_struct(BlockInfo)1001_storage)
\"
:{
\"
encoding
\"
:
\"
mapping
\"
,
\"
label
\"
:
\"
mapping(uint256 =
\u003e
struct BlockOracle.BlockInfo)
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
,
\"
key
\"
:
\"
t_uint256
\"
,
\"
value
\"
:
\"
t_struct(BlockInfo)1001_storage
\"
},
\"
t_struct(BlockInfo)1001_storage
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
struct BlockOracle.BlockInfo
\"
,
\"
numberOfBytes
\"
:
\"
64
\"
},
\"
t_uint256
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Hash)1002
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Hash
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_userDefinedValueType(Timestamp)1003
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
Timestamp
\"
,
\"
numberOfBytes
\"
:
\"
8
\"
}}}"
var
BlockOracleStorageLayout
=
new
(
solc
.
StorageLayout
)
var
BlockOracleDeployedBin
=
"0x608060405234801561001057600080fd5b50600436106100365760003560e01c80636057361d1461003b57806399d548aa14610050575b600080fd5b61004e6100493660046101d0565b61008c565b005b61006361005e3660046101d0565b610151565b604080518251815260209283015167ffffffffffffffff16928101929092520160405180910390f35b804060008190036100c9576040517fd82756d800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006100d58343610218565b6100e090600d61022f565b6100ea9042610218565b60408051808201825293845267ffffffffffffffff918216602080860191825260009687528690529420925183559251600190920180547fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000016929093169190911790915550565b604080518082018252600080825260209182018190528381528082528281208351808501909452805480855260019091015467ffffffffffffffff1692840192909252036101cb576040517f37cf270500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000602082840312156101e257600080fd5b5035919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561022a5761022a6101e9565b500390565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615610267576102676101e9565b50029056fea164736f6c634300080f000a"
func
init
()
{
if
err
:=
json
.
Unmarshal
([]
byte
(
BlockOracleStorageLayoutJSON
),
BlockOracleStorageLayout
);
err
!=
nil
{
panic
(
err
)
}
layouts
[
"BlockOracle"
]
=
BlockOracleStorageLayout
deployedBytecodes
[
"BlockOracle"
]
=
BlockOracleDeployedBin
}
op-bindings/bindings/faultdisputegame.go
View file @
ae7c2740
This diff is collapsed.
Click to expand it.
op-bindings/bindings/faultdisputegame_more.go
View file @
ae7c2740
This diff is collapsed.
Click to expand it.
op-challenger/fault/abi_test.go
View file @
ae7c2740
...
@@ -28,7 +28,7 @@ func setupFaultDisputeGame() (common.Address, *bind.TransactOpts, *backends.Simu
...
@@ -28,7 +28,7 @@ func setupFaultDisputeGame() (common.Address, *bind.TransactOpts, *backends.Simu
}
}
backend
:=
backends
.
NewSimulatedBackend
(
core
.
GenesisAlloc
{
from
:
{
Balance
:
big
.
NewInt
(
params
.
Ether
)}},
50
_000_000
)
backend
:=
backends
.
NewSimulatedBackend
(
core
.
GenesisAlloc
{
from
:
{
Balance
:
big
.
NewInt
(
params
.
Ether
)}},
50
_000_000
)
blockHashOracle
,
_
,
_
,
err
:=
bindings
.
DeployBlock
Hash
Oracle
(
opts
,
backend
)
blockHashOracle
,
_
,
_
,
err
:=
bindings
.
DeployBlockOracle
(
opts
,
backend
)
if
err
!=
nil
{
if
err
!=
nil
{
return
common
.
Address
{},
nil
,
nil
,
nil
,
err
return
common
.
Address
{},
nil
,
nil
,
nil
,
err
}
}
...
...
op-e2e/e2eutils/disputegame/deploy.go
View file @
ae7c2740
...
@@ -53,11 +53,11 @@ func deployDisputeGameContracts(require *require.Assertions, ctx context.Context
...
@@ -53,11 +53,11 @@ func deployDisputeGameContracts(require *require.Assertions, ctx context.Context
require
.
NoError
(
err
)
require
.
NoError
(
err
)
// Deploy the block hash oracle
// Deploy the block hash oracle
_
,
tx
,
_
,
err
=
bindings
.
DeployBlock
Hash
Oracle
(
opts
,
client
)
_
,
tx
,
_
,
err
=
bindings
.
DeployBlockOracle
(
opts
,
client
)
require
.
NoError
(
err
)
require
.
NoError
(
err
)
blockHashOracleAddr
,
err
:=
bind
.
WaitDeployed
(
ctx
,
client
,
tx
)
blockHashOracleAddr
,
err
:=
bind
.
WaitDeployed
(
ctx
,
client
,
tx
)
require
.
NoError
(
err
)
require
.
NoError
(
err
)
blockHashOracle
,
err
:=
bindings
.
NewBlock
Hash
Oracle
(
blockHashOracleAddr
,
client
)
blockHashOracle
,
err
:=
bindings
.
NewBlockOracle
(
blockHashOracleAddr
,
client
)
require
.
NoError
(
err
)
require
.
NoError
(
err
)
// Deploy the fault dispute game implementation
// Deploy the fault dispute game implementation
...
...
packages/contracts-bedrock/src/libraries/DisputeErrors.sol
View file @
ae7c2740
...
@@ -78,7 +78,7 @@ error AlreadyChallenged();
...
@@ -78,7 +78,7 @@ error AlreadyChallenged();
error NotOwner();
error NotOwner();
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
//
`BlockHashOracle.sol` Errors
//
//
`BlockOracle.sol` Errors
//
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
/// @notice Thrown when a block that is out of the range of the `BLOCKHASH` opcode
/// @notice Thrown when a block that is out of the range of the `BLOCKHASH` opcode
...
...
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