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
306b47d8
Unverified
Commit
306b47d8
authored
Dec 22, 2023
by
Roberto Bayardo
Committed by
GitHub
Dec 22, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Elipse to Ecotone in configs (#8758)
parent
edec19f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
19 deletions
+22
-19
config.go
op-chain-ops/genesis/config.go
+7
-7
setup.go
op-e2e/e2eutils/setup.go
+1
-1
setup.go
op-e2e/setup.go
+1
-1
superchain.go
op-node/rollup/superchain.go
+1
-1
types.go
op-node/rollup/types.go
+12
-9
No files found.
op-chain-ops/genesis/config.go
View file @
306b47d8
...
...
@@ -115,9 +115,9 @@ type DeployConfig struct {
// L2GenesisDeltaTimeOffset is the number of seconds after genesis block that Delta hard fork activates.
// Set it to 0 to activate at genesis. Nil to disable Delta.
L2GenesisDeltaTimeOffset
*
hexutil
.
Uint64
`json:"l2GenesisDeltaTimeOffset,omitempty"`
// L2GenesisEc
lipseTimeOffset is the number of seconds after genesis block that Eclips
e hard fork activates.
// Set it to 0 to activate at genesis. Nil to disable Ec
lips
e.
L2GenesisEc
lipseTimeOffset
*
hexutil
.
Uint64
`json:"l2GenesisEclips
eTimeOffset,omitempty"`
// L2GenesisEc
otoneTimeOffset is the number of seconds after genesis block that Ecoton
e hard fork activates.
// Set it to 0 to activate at genesis. Nil to disable Ec
oton
e.
L2GenesisEc
otoneTimeOffset
*
hexutil
.
Uint64
`json:"l2GenesisEcoton
eTimeOffset,omitempty"`
// L2GenesisFjordTimeOffset is the number of seconds after genesis block that Fjord hard fork activates.
// Set it to 0 to activate at genesis. Nil to disable Fjord.
L2GenesisFjordTimeOffset
*
hexutil
.
Uint64
`json:"l2GenesisFjordTimeOffset,omitempty"`
...
...
@@ -489,12 +489,12 @@ func (d *DeployConfig) DeltaTime(genesisTime uint64) *uint64 {
return
&
v
}
func
(
d
*
DeployConfig
)
Ec
lips
eTime
(
genesisTime
uint64
)
*
uint64
{
if
d
.
L2GenesisEc
lips
eTimeOffset
==
nil
{
func
(
d
*
DeployConfig
)
Ec
oton
eTime
(
genesisTime
uint64
)
*
uint64
{
if
d
.
L2GenesisEc
oton
eTimeOffset
==
nil
{
return
nil
}
v
:=
uint64
(
0
)
if
offset
:=
*
d
.
L2GenesisEc
lips
eTimeOffset
;
offset
>
0
{
if
offset
:=
*
d
.
L2GenesisEc
oton
eTimeOffset
;
offset
>
0
{
v
=
genesisTime
+
uint64
(
offset
)
}
return
&
v
...
...
@@ -561,7 +561,7 @@ func (d *DeployConfig) RollupConfig(l1StartBlock *types.Block, l2GenesisBlockHas
RegolithTime
:
d
.
RegolithTime
(
l1StartBlock
.
Time
()),
CanyonTime
:
d
.
CanyonTime
(
l1StartBlock
.
Time
()),
DeltaTime
:
d
.
DeltaTime
(
l1StartBlock
.
Time
()),
Ec
lipseTime
:
d
.
Eclips
eTime
(
l1StartBlock
.
Time
()),
Ec
otoneTime
:
d
.
Ecoton
eTime
(
l1StartBlock
.
Time
()),
FjordTime
:
d
.
FjordTime
(
l1StartBlock
.
Time
()),
InteropTime
:
d
.
InteropTime
(
l1StartBlock
.
Time
()),
},
nil
...
...
op-e2e/e2eutils/setup.go
View file @
306b47d8
...
...
@@ -159,7 +159,7 @@ func Setup(t require.TestingT, deployParams *DeployParams, alloc *AllocParams) *
RegolithTime
:
deployConf
.
RegolithTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
CanyonTime
:
deployConf
.
CanyonTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
DeltaTime
:
deployConf
.
DeltaTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
Ec
lipseTime
:
deployConf
.
Eclips
eTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
Ec
otoneTime
:
deployConf
.
Ecoton
eTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
FjordTime
:
deployConf
.
FjordTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
InteropTime
:
deployConf
.
InteropTime
(
uint64
(
deployConf
.
L1GenesisBlockTimestamp
)),
}
...
...
op-e2e/setup.go
View file @
306b47d8
...
...
@@ -490,7 +490,7 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
RegolithTime
:
cfg
.
DeployConfig
.
RegolithTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
CanyonTime
:
cfg
.
DeployConfig
.
CanyonTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
DeltaTime
:
cfg
.
DeployConfig
.
DeltaTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
Ec
lipseTime
:
cfg
.
DeployConfig
.
Eclips
eTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
Ec
otoneTime
:
cfg
.
DeployConfig
.
Ecoton
eTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
FjordTime
:
cfg
.
DeployConfig
.
FjordTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
InteropTime
:
cfg
.
DeployConfig
.
InteropTime
(
uint64
(
cfg
.
DeployConfig
.
L1GenesisBlockTimestamp
)),
ProtocolVersionsAddress
:
cfg
.
L1Deployments
.
ProtocolVersionsProxy
,
...
...
op-node/rollup/superchain.go
View file @
306b47d8
...
...
@@ -100,7 +100,7 @@ func LoadOPStackRollupConfig(chainID uint64) (*Config, error) {
RegolithTime
:
&
regolithTime
,
CanyonTime
:
superChain
.
Config
.
CanyonTime
,
DeltaTime
:
superChain
.
Config
.
DeltaTime
,
Ec
lips
eTime
:
superChain
.
Config
.
EclipseTime
,
Ec
oton
eTime
:
superChain
.
Config
.
EclipseTime
,
FjordTime
:
superChain
.
Config
.
FjordTime
,
BatchInboxAddress
:
common
.
Address
(
chConfig
.
BatchInboxAddr
),
DepositContractAddress
:
depositContractAddress
,
...
...
op-node/rollup/types.go
View file @
306b47d8
...
...
@@ -83,9 +83,9 @@ type Config struct {
// Active if DeltaTime != nil && L2 block timestamp >= *DeltaTime, inactive otherwise.
DeltaTime
*
uint64
`json:"delta_time,omitempty"`
// Ec
lipseTime sets the activation time of the Eclips
e network upgrade.
// Active if Ec
lipseTime != nil && L2 block timestamp >= *Eclips
eTime, inactive otherwise.
Ec
lipseTime
*
uint64
`json:"eclips
e_time,omitempty"`
// Ec
otoneTime sets the activation time of the Ecoton
e network upgrade.
// Active if Ec
otoneTime != nil && L2 block timestamp >= *Ecoton
eTime, inactive otherwise.
Ec
otoneTime
*
uint64
`json:"ecoton
e_time,omitempty"`
// FjordTime sets the activation time of the Fjord network upgrade.
// Active if FjordTime != nil && L2 block timestamp >= *FjordTime, inactive otherwise.
...
...
@@ -107,6 +107,9 @@ type Config struct {
// L1 address that declares the protocol versions, optional (Beta feature)
ProtocolVersionsAddress
common
.
Address
`json:"protocol_versions_address,omitempty"`
// L1 block timestamp to start reading blobs as batch data-source. Optional.
BlobsEnabledL1Timestamp
*
uint64
`json:"blobs_data,omitempty"`
}
// ValidateL1Config checks L1 config variables for errors.
...
...
@@ -275,7 +278,7 @@ func (cfg *Config) Check() error {
}
func
(
c
*
Config
)
L1Signer
()
types
.
Signer
{
return
types
.
New
Londo
nSigner
(
c
.
L1ChainID
)
return
types
.
New
Cancu
nSigner
(
c
.
L1ChainID
)
}
// IsRegolith returns true if the Regolith hardfork is active at or past the given timestamp.
...
...
@@ -293,9 +296,9 @@ func (c *Config) IsDelta(timestamp uint64) bool {
return
c
.
DeltaTime
!=
nil
&&
timestamp
>=
*
c
.
DeltaTime
}
// IsEc
lipse returns true if the Eclips
e hardfork is active at or past the given timestamp.
func
(
c
*
Config
)
IsEc
lips
e
(
timestamp
uint64
)
bool
{
return
c
.
Ec
lipseTime
!=
nil
&&
timestamp
>=
*
c
.
Eclips
eTime
// IsEc
otone returns true if the Ecoton
e hardfork is active at or past the given timestamp.
func
(
c
*
Config
)
IsEc
oton
e
(
timestamp
uint64
)
bool
{
return
c
.
Ec
otoneTime
!=
nil
&&
timestamp
>=
*
c
.
Ecoton
eTime
}
// IsFjord returns true if the Fjord hardfork is active at or past the given timestamp.
...
...
@@ -337,7 +340,7 @@ func (c *Config) Description(l2Chains map[string]string) string {
banner
+=
fmt
.
Sprintf
(
" - Regolith: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
RegolithTime
))
banner
+=
fmt
.
Sprintf
(
" - Canyon: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
CanyonTime
))
banner
+=
fmt
.
Sprintf
(
" - Delta: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
DeltaTime
))
banner
+=
fmt
.
Sprintf
(
" - Ec
lipse: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
Eclips
eTime
))
banner
+=
fmt
.
Sprintf
(
" - Ec
otone: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
Ecoton
eTime
))
banner
+=
fmt
.
Sprintf
(
" - Fjord: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
FjordTime
))
banner
+=
fmt
.
Sprintf
(
" - Interop: %s
\n
"
,
fmtForkTimeOrUnset
(
c
.
InteropTime
))
// Report the protocol version
...
...
@@ -367,7 +370,7 @@ func (c *Config) LogDescription(log log.Logger, l2Chains map[string]string) {
"l1_block_number"
,
c
.
Genesis
.
L1
.
Number
,
"regolith_time"
,
fmtForkTimeOrUnset
(
c
.
RegolithTime
),
"canyon_time"
,
fmtForkTimeOrUnset
(
c
.
CanyonTime
),
"delta_time"
,
fmtForkTimeOrUnset
(
c
.
DeltaTime
),
"ec
lipse_time"
,
fmtForkTimeOrUnset
(
c
.
Eclips
eTime
),
"ec
otone_time"
,
fmtForkTimeOrUnset
(
c
.
Ecoton
eTime
),
"fjord_time"
,
fmtForkTimeOrUnset
(
c
.
FjordTime
),
"interop_time"
,
fmtForkTimeOrUnset
(
c
.
InteropTime
),
)
...
...
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