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
d11d6495
Unverified
Commit
d11d6495
authored
Jan 09, 2025
by
Matthew Slipper
Committed by
GitHub
Jan 09, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-deployer: Remove unused Isthmus code path (#13668)
parent
1c9e369d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
53 deletions
+9
-53
opchain.go
op-deployer/pkg/deployer/opcm/opchain.go
+1
-14
opchain.go
op-deployer/pkg/deployer/pipeline/opchain.go
+8
-39
No files found.
op-deployer/pkg/deployer/opcm/opchain.go
View file @
d11d6495
...
@@ -44,11 +44,6 @@ func (input *DeployOPChainInputV160) InputSet() bool {
...
@@ -44,11 +44,6 @@ func (input *DeployOPChainInputV160) InputSet() bool {
return
true
return
true
}
}
type
DeployOPChainInputIsthmus
struct
{
DeployOPChainInputV160
SystemConfigFeeAdmin
common
.
Address
}
type
DeployOPChainOutput
struct
{
type
DeployOPChainOutput
struct
{
OpChainProxyAdmin
common
.
Address
OpChainProxyAdmin
common
.
Address
AddressManager
common
.
Address
AddressManager
common
.
Address
...
@@ -77,15 +72,7 @@ type DeployOPChainScript struct {
...
@@ -77,15 +72,7 @@ type DeployOPChainScript struct {
}
}
func
DeployOPChainV160
(
host
*
script
.
Host
,
input
DeployOPChainInputV160
)
(
DeployOPChainOutput
,
error
)
{
func
DeployOPChainV160
(
host
*
script
.
Host
,
input
DeployOPChainInputV160
)
(
DeployOPChainOutput
,
error
)
{
return
deployOPChain
(
host
,
input
)
return
RunScriptSingle
[
DeployOPChainInputV160
,
DeployOPChainOutput
](
host
,
input
,
"DeployOPChain.s.sol"
,
"DeployOPChain"
)
}
func
DeployOPChainIsthmus
(
host
*
script
.
Host
,
input
DeployOPChainInputIsthmus
)
(
DeployOPChainOutput
,
error
)
{
return
deployOPChain
(
host
,
input
)
}
func
deployOPChain
[
T
any
](
host
*
script
.
Host
,
input
T
)
(
DeployOPChainOutput
,
error
)
{
return
RunScriptSingle
[
T
,
DeployOPChainOutput
](
host
,
input
,
"DeployOPChain.s.sol"
,
"DeployOPChain"
)
}
}
type
ReadImplementationAddressesInput
struct
{
type
ReadImplementationAddressesInput
struct
{
...
...
op-deployer/pkg/deployer/pipeline/opchain.go
View file @
d11d6495
...
@@ -24,34 +24,15 @@ func DeployOPChain(env *Env, intent *state.Intent, st *state.State, chainID comm
...
@@ -24,34 +24,15 @@ func DeployOPChain(env *Env, intent *state.Intent, st *state.State, chainID comm
return
fmt
.
Errorf
(
"failed to get chain intent: %w"
,
err
)
return
fmt
.
Errorf
(
"failed to get chain intent: %w"
,
err
)
}
}
var
opcmAddr
common
.
Address
var
dco
opcm
.
DeployOPChainOutput
var
deployFunc
func
()
(
opcm
.
DeployOPChainOutput
,
error
)
lgr
.
Info
(
"deploying OP chain using local allocs"
,
"id"
,
chainID
.
Hex
())
switch
intent
.
L1ContractsLocator
.
Tag
{
case
standard
.
ContractsV160Tag
,
standard
.
ContractsV170Beta1L2Tag
:
deployFunc
=
func
()
(
opcm
.
DeployOPChainOutput
,
error
)
{
input
,
err
:=
makeDCIV160
(
intent
,
thisIntent
,
chainID
,
st
)
if
err
!=
nil
{
return
opcm
.
DeployOPChainOutput
{},
fmt
.
Errorf
(
"error making deploy OP chain input: %w"
,
err
)
}
opcmAddr
=
input
.
Opcm
dci
,
err
:=
makeDCIV160
(
intent
,
thisIntent
,
chainID
,
st
)
return
opcm
.
DeployOPChainV160
(
env
.
L1ScriptHost
,
input
)
}
default
:
deployFunc
=
func
()
(
opcm
.
DeployOPChainOutput
,
error
)
{
input
,
err
:=
makeDCIIsthmus
(
intent
,
thisIntent
,
chainID
,
st
)
if
err
!=
nil
{
if
err
!=
nil
{
return
opcm
.
DeployOPChainOutput
{},
fmt
.
Errorf
(
"error making deploy OP chain input: %w"
,
err
)
return
fmt
.
Errorf
(
"error making deploy OP chain input: %w"
,
err
)
}
opcmAddr
=
input
.
Opcm
return
opcm
.
DeployOPChainIsthmus
(
env
.
L1ScriptHost
,
input
)
}
}
}
var
dco
opcm
.
DeployOPChainOutput
dco
,
err
=
opcm
.
DeployOPChainV160
(
env
.
L1ScriptHost
,
dci
)
lgr
.
Info
(
"deploying OP chain using local allocs"
,
"id"
,
chainID
.
Hex
())
dco
,
err
=
deployFunc
()
if
err
!=
nil
{
if
err
!=
nil
{
return
fmt
.
Errorf
(
"error deploying OP chain: %w"
,
err
)
return
fmt
.
Errorf
(
"error deploying OP chain: %w"
,
err
)
}
}
...
@@ -67,7 +48,7 @@ func DeployOPChain(env *Env, intent *state.Intent, st *state.State, chainID comm
...
@@ -67,7 +48,7 @@ func DeployOPChain(env *Env, intent *state.Intent, st *state.State, chainID comm
readInput
:=
opcm
.
ReadImplementationAddressesInput
{
readInput
:=
opcm
.
ReadImplementationAddressesInput
{
DeployOPChainOutput
:
dco
,
DeployOPChainOutput
:
dco
,
Opcm
:
opcmAddr
,
Opcm
:
dci
.
Opcm
,
Release
:
release
,
Release
:
release
,
}
}
impls
,
err
:=
opcm
.
ReadImplementationAddresses
(
env
.
L1ScriptHost
,
readInput
)
impls
,
err
:=
opcm
.
ReadImplementationAddresses
(
env
.
L1ScriptHost
,
readInput
)
...
@@ -151,18 +132,6 @@ func makeDCIV160(intent *state.Intent, thisIntent *state.ChainIntent, chainID co
...
@@ -151,18 +132,6 @@ func makeDCIV160(intent *state.Intent, thisIntent *state.ChainIntent, chainID co
},
nil
},
nil
}
}
func
makeDCIIsthmus
(
intent
*
state
.
Intent
,
thisIntent
*
state
.
ChainIntent
,
chainID
common
.
Hash
,
st
*
state
.
State
)
(
opcm
.
DeployOPChainInputIsthmus
,
error
)
{
dci
,
err
:=
makeDCIV160
(
intent
,
thisIntent
,
chainID
,
st
)
if
err
!=
nil
{
return
opcm
.
DeployOPChainInputIsthmus
{},
fmt
.
Errorf
(
"error making deploy OP chain input: %w"
,
err
)
}
return
opcm
.
DeployOPChainInputIsthmus
{
DeployOPChainInputV160
:
dci
,
SystemConfigFeeAdmin
:
common
.
Address
{
'D'
,
'E'
,
'A'
,
'D'
},
},
nil
}
func
makeChainState
(
chainID
common
.
Hash
,
dco
opcm
.
DeployOPChainOutput
)
*
state
.
ChainState
{
func
makeChainState
(
chainID
common
.
Hash
,
dco
opcm
.
DeployOPChainOutput
)
*
state
.
ChainState
{
return
&
state
.
ChainState
{
return
&
state
.
ChainState
{
ID
:
chainID
,
ID
:
chainID
,
...
...
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