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
d37cea4c
Unverified
Commit
d37cea4c
authored
Oct 02, 2023
by
protolambda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'chaosnet-config' into deps/update-superchain-registry
parents
5f39a0fa
8863c7aa
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
5 deletions
+12
-5
mips_more.go
op-bindings/bindings/mips_more.go
+1
-1
superchain.go
op-node/rollup/superchain.go
+4
-1
getting-started.json
...ages/contracts-bedrock/deploy-config/getting-started.json
+4
-1
MIPS.sol
packages/contracts-bedrock/src/cannon/MIPS.sol
+3
-2
No files found.
op-bindings/bindings/mips_more.go
View file @
d37cea4c
This diff is collapsed.
Click to expand it.
op-node/rollup/superchain.go
View file @
d37cea4c
...
...
@@ -25,6 +25,7 @@ const (
zoraGoerli
=
999
zoraMainnet
=
7777777
labsDevnet
=
997
chaosnet
=
888
)
// LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry.
...
...
@@ -69,6 +70,8 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
regolithTime
=
1679079600
case
labsDevnet
:
regolithTime
=
1677984480
case
chaosnet
:
regolithTime
=
1692156862
}
cfg
:=
&
Config
{
...
...
@@ -102,7 +105,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
if
superChain
.
Config
.
ProtocolVersionsAddr
!=
nil
{
// Set optional protocol versions address
cfg
.
ProtocolVersionsAddress
=
common
.
Address
(
*
superChain
.
Config
.
ProtocolVersionsAddr
)
}
if
chainID
==
labsDevnet
{
if
chainID
==
labsDevnet
||
chainID
==
chaosnet
{
cfg
.
ChannelTimeout
=
120
cfg
.
MaxSequencerDrift
=
1200
}
...
...
packages/contracts-bedrock/deploy-config/getting-started.json
View file @
d37cea4c
...
...
@@ -53,5 +53,8 @@
"eip1559Denominator"
:
50
,
"eip1559Elasticity"
:
10
,
"systemConfigStartBlock"
:
0
"systemConfigStartBlock"
:
0
,
"requiredProtocolVersion"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
,
"recommendedProtocolVersion"
:
"0x0000000000000000000000000000000000000000000000000000000000000000"
}
packages/contracts-bedrock/src/cannon/MIPS.sol
View file @
d37cea4c
...
...
@@ -77,7 +77,7 @@ contract MIPS {
}
/// @notice Computes the hash of the MIPS state.
/// @return out_ The hash
of the
MIPS state.
/// @return out_ The hash
ed
MIPS state.
function outputState() internal returns (bytes32 out_) {
assembly {
// copies 'size' bytes, right-aligned in word at 'from', to 'to', incl. trailing data
...
...
@@ -141,6 +141,7 @@ contract MIPS {
}
/// @notice Handles a syscall.
/// @return out_ The hashed MIPS state.
function handleSyscall() internal returns (bytes32 out_) {
unchecked {
// Load state from memory
...
...
@@ -372,7 +373,7 @@ contract MIPS {
/// @param _rs The value of the RS register.
/// @param _rt The value of the RT register.
/// @param _storeReg The register to store the result in.
/// @return out_ The hash
of the resulting
MIPS state.
/// @return out_ The hash
ed
MIPS state.
function handleHiLo(uint32 _func, uint32 _rs, uint32 _rt, uint32 _storeReg) internal returns (bytes32 out_) {
unchecked {
// Load state from memory
...
...
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