Commit d37cea4c authored by protolambda's avatar protolambda

Merge branch 'chaosnet-config' into deps/update-superchain-registry

parents 5f39a0fa 8863c7aa
This diff is collapsed.
...@@ -25,6 +25,7 @@ const ( ...@@ -25,6 +25,7 @@ const (
zoraGoerli = 999 zoraGoerli = 999
zoraMainnet = 7777777 zoraMainnet = 7777777
labsDevnet = 997 labsDevnet = 997
chaosnet = 888
) )
// LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry. // LoadOPStackRollupConfig loads the rollup configuration of the requested chain ID from the superchain-registry.
...@@ -69,6 +70,8 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) { ...@@ -69,6 +70,8 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
regolithTime = 1679079600 regolithTime = 1679079600
case labsDevnet: case labsDevnet:
regolithTime = 1677984480 regolithTime = 1677984480
case chaosnet:
regolithTime = 1692156862
} }
cfg := &Config{ cfg := &Config{
...@@ -102,7 +105,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) { ...@@ -102,7 +105,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
if superChain.Config.ProtocolVersionsAddr != nil { // Set optional protocol versions address if superChain.Config.ProtocolVersionsAddr != nil { // Set optional protocol versions address
cfg.ProtocolVersionsAddress = common.Address(*superChain.Config.ProtocolVersionsAddr) cfg.ProtocolVersionsAddress = common.Address(*superChain.Config.ProtocolVersionsAddr)
} }
if chainID == labsDevnet { if chainID == labsDevnet || chainID == chaosnet {
cfg.ChannelTimeout = 120 cfg.ChannelTimeout = 120
cfg.MaxSequencerDrift = 1200 cfg.MaxSequencerDrift = 1200
} }
......
...@@ -53,5 +53,8 @@ ...@@ -53,5 +53,8 @@
"eip1559Denominator": 50, "eip1559Denominator": 50,
"eip1559Elasticity": 10, "eip1559Elasticity": 10,
"systemConfigStartBlock": 0 "systemConfigStartBlock": 0,
"requiredProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000",
"recommendedProtocolVersion": "0x0000000000000000000000000000000000000000000000000000000000000000"
} }
...@@ -77,7 +77,7 @@ contract MIPS { ...@@ -77,7 +77,7 @@ contract MIPS {
} }
/// @notice Computes the hash of the MIPS state. /// @notice Computes the hash of the MIPS state.
/// @return out_ The hash of the MIPS state. /// @return out_ The hashed MIPS state.
function outputState() internal returns (bytes32 out_) { function outputState() internal returns (bytes32 out_) {
assembly { assembly {
// copies 'size' bytes, right-aligned in word at 'from', to 'to', incl. trailing data // copies 'size' bytes, right-aligned in word at 'from', to 'to', incl. trailing data
...@@ -141,6 +141,7 @@ contract MIPS { ...@@ -141,6 +141,7 @@ contract MIPS {
} }
/// @notice Handles a syscall. /// @notice Handles a syscall.
/// @return out_ The hashed MIPS state.
function handleSyscall() internal returns (bytes32 out_) { function handleSyscall() internal returns (bytes32 out_) {
unchecked { unchecked {
// Load state from memory // Load state from memory
...@@ -372,7 +373,7 @@ contract MIPS { ...@@ -372,7 +373,7 @@ contract MIPS {
/// @param _rs The value of the RS register. /// @param _rs The value of the RS register.
/// @param _rt The value of the RT register. /// @param _rt The value of the RT register.
/// @param _storeReg The register to store the result in. /// @param _storeReg The register to store the result in.
/// @return out_ The hash of the resulting MIPS state. /// @return out_ The hashed MIPS state.
function handleHiLo(uint32 _func, uint32 _rs, uint32 _rt, uint32 _storeReg) internal returns (bytes32 out_) { function handleHiLo(uint32 _func, uint32 _rs, uint32 _rt, uint32 _storeReg) internal returns (bytes32 out_) {
unchecked { unchecked {
// Load state from memory // Load state from memory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment