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
edf6a6c0
Unverified
Commit
edf6a6c0
authored
Dec 01, 2023
by
Mark Tyneway
Committed by
Maurelian
Dec 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: fix storage layout
parent
dcb2c2f7
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
l1erc721bridge.go
op-bindings/bindings/l1erc721bridge.go
+1
-1
l1erc721bridge_more.go
op-bindings/bindings/l1erc721bridge_more.go
+2
-2
l2erc721bridge_more.go
op-bindings/bindings/l2erc721bridge_more.go
+1
-1
semver-lock.json
packages/contracts-bedrock/semver-lock.json
+1
-1
L1ERC721Bridge.json
...racts-bedrock/snapshots/storageLayout/L1ERC721Bridge.json
+4
-4
L2ERC721Bridge.json
...racts-bedrock/snapshots/storageLayout/L2ERC721Bridge.json
+2
-2
ERC721Bridge.sol
packages/contracts-bedrock/src/universal/ERC721Bridge.sol
+1
-1
No files found.
op-bindings/bindings/l1erc721bridge.go
View file @
edf6a6c0
This diff is collapsed.
Click to expand it.
op-bindings/bindings/l1erc721bridge_more.go
View file @
edf6a6c0
This diff is collapsed.
Click to expand it.
op-bindings/bindings/l2erc721bridge_more.go
View file @
edf6a6c0
...
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/solc"
)
const
L2ERC721BridgeStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
_initialized
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_uint8
\"
},{
\"
astId
\"
:1001,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
_initializing
\"
,
\"
offset
\"
:1,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_bool
\"
},{
\"
astId
\"
:1002,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
__gap
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
1
\"
,
\"
type
\"
:
\"
t_array(t_uint256)4
9_storage
\"
}],
\"
types
\"
:{
\"
t_array(t_uint256)49_storage
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256[49]
\"
,
\"
numberOfBytes
\"
:
\"
1568
\"
,
\"
base
\"
:
\"
t_uint256
\"
},
\"
t_bool
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
bool
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_uint256
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_uint8
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint8
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
}}}"
const
L2ERC721BridgeStorageLayoutJSON
=
"{
\"
storage
\"
:[{
\"
astId
\"
:1000,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
_initialized
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_uint8
\"
},{
\"
astId
\"
:1001,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
_initializing
\"
,
\"
offset
\"
:1,
\"
slot
\"
:
\"
0
\"
,
\"
type
\"
:
\"
t_bool
\"
},{
\"
astId
\"
:1002,
\"
contract
\"
:
\"
src/L2/L2ERC721Bridge.sol:L2ERC721Bridge
\"
,
\"
label
\"
:
\"
__gap
\"
,
\"
offset
\"
:0,
\"
slot
\"
:
\"
1
\"
,
\"
type
\"
:
\"
t_array(t_uint256)4
8_storage
\"
}],
\"
types
\"
:{
\"
t_array(t_uint256)48_storage
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256[48]
\"
,
\"
numberOfBytes
\"
:
\"
1536
\"
,
\"
base
\"
:
\"
t_uint256
\"
},
\"
t_bool
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
bool
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
},
\"
t_uint256
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint256
\"
,
\"
numberOfBytes
\"
:
\"
32
\"
},
\"
t_uint8
\"
:{
\"
encoding
\"
:
\"
inplace
\"
,
\"
label
\"
:
\"
uint8
\"
,
\"
numberOfBytes
\"
:
\"
1
\"
}}}"
var
L2ERC721BridgeStorageLayout
=
new
(
solc
.
StorageLayout
)
...
...
packages/contracts-bedrock/semver-lock.json
View file @
edf6a6c0
...
...
@@ -16,7 +16,7 @@
"sourceCodeHash"
:
"0x508ac7c5628d226f5e3ec6593f6c28aab969f70223c678eb0e870155d24b1da4"
},
"src/L1/L1ERC721Bridge.sol"
:
{
"initCodeHash"
:
"0x
dc2f48f93353cbe919e1b71aa298cc7234db2075bb0b06753d08ecdc13ac9e94
"
,
"initCodeHash"
:
"0x
ca27bfb4742b3b44e9adb6018b0917ae3392e67e5f8242ab24828dd37245af16
"
,
"sourceCodeHash"
:
"0x60f2d99be1211f6d64fb0ae4d0ac4819bdbaefd2ebf4a49e95cbad27cf691fac"
},
"src/L1/L1StandardBridge.sol"
:
{
...
...
packages/contracts-bedrock/snapshots/storageLayout/L1ERC721Bridge.json
View file @
edf6a6c0
...
...
@@ -14,24 +14,24 @@
"type"
:
"bool"
},
{
"bytes"
:
"15
68
"
,
"bytes"
:
"15
36
"
,
"label"
:
"__gap"
,
"offset"
:
0
,
"slot"
:
"1"
,
"type"
:
"uint256[4
9
]"
"type"
:
"uint256[4
8
]"
},
{
"bytes"
:
"32"
,
"label"
:
"deposits"
,
"offset"
:
0
,
"slot"
:
"
50
"
,
"slot"
:
"
49
"
,
"type"
:
"mapping(address => mapping(address => mapping(uint256 => bool)))"
},
{
"bytes"
:
"20"
,
"label"
:
"superchainConfig"
,
"offset"
:
0
,
"slot"
:
"5
1
"
,
"slot"
:
"5
0
"
,
"type"
:
"contract SuperchainConfig"
}
]
\ No newline at end of file
packages/contracts-bedrock/snapshots/storageLayout/L2ERC721Bridge.json
View file @
edf6a6c0
...
...
@@ -14,10 +14,10 @@
"type"
:
"bool"
},
{
"bytes"
:
"15
68
"
,
"bytes"
:
"15
36
"
,
"label"
:
"__gap"
,
"offset"
:
0
,
"slot"
:
"1"
,
"type"
:
"uint256[4
9
]"
"type"
:
"uint256[4
8
]"
}
]
\ No newline at end of file
packages/contracts-bedrock/src/universal/ERC721Bridge.sol
View file @
edf6a6c0
...
...
@@ -20,7 +20,7 @@ abstract contract ERC721Bridge is Initializable {
address public immutable OTHER_BRIDGE;
/// @notice Reserve extra slots (to a total of 50) in the storage layout for future upgrades.
uint256[4
9
] private __gap;
uint256[4
8
] private __gap;
/// @notice Emitted when an ERC721 bridge to the other network is initiated.
/// @param localToken Address of the token on this domain.
...
...
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