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
ccba4b10
Unverified
Commit
ccba4b10
authored
Aug 22, 2022
by
Mark Tyneway
Committed by
GitHub
Aug 22, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3283 from ethereum-optimism/fix/proxy-admin-deploy-script
fix: proxy admin deploy script
parents
2a45e69e
191f3c2f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
12 deletions
+16
-12
moody-yaks-listen.md
.changeset/moody-yaks-listen.md
+5
-0
config.go
op-chain-ops/genesis/config.go
+2
-2
devnetL1.json
packages/contracts-bedrock/deploy-config/devnetL1.json
+0
-1
goerli.json
packages/contracts-bedrock/deploy-config/goerli.json
+0
-1
hardhat.json
packages/contracts-bedrock/deploy-config/hardhat.json
+0
-1
hardhat.config.ts
packages/contracts-bedrock/hardhat.config.ts
+0
-4
genesis-l2.ts
packages/contracts-bedrock/tasks/genesis-l2.ts
+9
-3
No files found.
.changeset/moody-yaks-listen.md
0 → 100644
View file @
ccba4b10
---
'
@eth-optimism/contracts-bedrock'
:
patch
---
Update the L2 genesis hardhat task to use the ProxyAdmin's deployed address as the admin of each predeploy
op-chain-ops/genesis/config.go
View file @
ccba4b10
...
@@ -36,7 +36,6 @@ type DeployConfig struct {
...
@@ -36,7 +36,6 @@ type DeployConfig struct {
CliqueSignerAddress
common
.
Address
`json:"cliqueSignerAddress"`
CliqueSignerAddress
common
.
Address
`json:"cliqueSignerAddress"`
OptimismBaseFeeRecipient
common
.
Address
`json:"optimismBaseFeeRecipient"`
OptimismBaseFeeRecipient
common
.
Address
`json:"optimismBaseFeeRecipient"`
OptimismL1FeeRecipient
common
.
Address
`json:"optimismL1FeeRecipient"`
OptimismL1FeeRecipient
common
.
Address
`json:"optimismL1FeeRecipient"`
ProxyAdmin
common
.
Address
`json:"proxyAdmin"`
FundDevAccounts
bool
`json:"fundDevAccounts"`
FundDevAccounts
bool
`json:"fundDevAccounts"`
GasPriceOracleOwner
common
.
Address
`json:"gasPriceOracleOwner"`
GasPriceOracleOwner
common
.
Address
`json:"gasPriceOracleOwner"`
GasPriceOracleOverhead
uint
`json:"gasPriceOracleOverhead"`
GasPriceOracleOverhead
uint
`json:"gasPriceOracleOverhead"`
...
@@ -157,7 +156,8 @@ func NewStorageConfig(hh *hardhat.Hardhat, config *DeployConfig, chain ethereum.
...
@@ -157,7 +156,8 @@ func NewStorageConfig(hh *hardhat.Hardhat, config *DeployConfig, chain ethereum.
storage
[
"GovernanceToken"
]
=
state
.
StorageValues
{
storage
[
"GovernanceToken"
]
=
state
.
StorageValues
{
"_name"
:
"Optimism"
,
"_name"
:
"Optimism"
,
"_symbol"
:
"OP"
,
"_symbol"
:
"OP"
,
"_owner"
:
config
.
ProxyAdmin
,
// TODO: this should be set to the MintManager
"_owner"
:
common
.
Address
{},
}
}
return
storage
,
nil
return
storage
,
nil
...
...
packages/contracts-bedrock/deploy-config/devnetL1.json
View file @
ccba4b10
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismBaseFeeRecipient"
:
"0xBcd4042DE499D14e55001CcbB24a551F3b954096"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"optimismL1FeeRecipient"
:
"0x71bE63f3384f5fb98995898A86B02Fb2426c5788"
,
"proxyAdmin"
:
"0x829BD824B016326A401d083B33D092293333A830"
,
"fundDevAccounts"
:
true
,
"fundDevAccounts"
:
true
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
...
...
packages/contracts-bedrock/deploy-config/goerli.json
View file @
ccba4b10
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
"optimismBaseFeeRecipient"
:
"0xf116a24056b647e3211d095c667e951536cdebaa"
,
"optimismBaseFeeRecipient"
:
"0xf116a24056b647e3211d095c667e951536cdebaa"
,
"optimismL1FeeRecipient"
:
"0xc731837b696ca3d9720d23336925368ceaa58f83"
,
"optimismL1FeeRecipient"
:
"0xc731837b696ca3d9720d23336925368ceaa58f83"
,
"proxyAdmin"
:
"0xe584e1b833ca80020130b1b69f84f90479076168"
,
"fundDevAccounts"
:
true
,
"fundDevAccounts"
:
true
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
...
...
packages/contracts-bedrock/deploy-config/hardhat.json
View file @
ccba4b10
...
@@ -17,7 +17,6 @@
...
@@ -17,7 +17,6 @@
"l2OutputOracleProposer"
:
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
,
"l2OutputOracleProposer"
:
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
,
"l2OutputOracleOwner"
:
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
,
"l2OutputOracleOwner"
:
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
,
"proxyAdmin"
:
"0x0000000000000000000000000000000000000000"
,
"fundDevAccounts"
:
true
,
"fundDevAccounts"
:
true
,
"deploymentWaitConfirmations"
:
1
"deploymentWaitConfirmations"
:
1
...
...
packages/contracts-bedrock/hardhat.config.ts
View file @
ccba4b10
...
@@ -320,10 +320,6 @@ const config: HardhatUserConfig = {
...
@@ -320,10 +320,6 @@ const config: HardhatUserConfig = {
type
:
'
number
'
,
type
:
'
number
'
,
default
:
6
,
default
:
6
,
},
},
proxyAdmin
:
{
type
:
'
address
'
,
// no default, important to get right.
},
fundDevAccounts
:
{
fundDevAccounts
:
{
type
:
'
boolean
'
,
type
:
'
boolean
'
,
default
:
false
,
default
:
false
,
...
...
packages/contracts-bedrock/tasks/genesis-l2.ts
View file @
ccba4b10
...
@@ -286,13 +286,15 @@ task('genesis-l2', 'create a genesis config')
...
@@ -286,13 +286,15 @@ task('genesis-l2', 'create a genesis config')
GovernanceToken
:
{
GovernanceToken
:
{
name
:
'
Optimism
'
,
name
:
'
Optimism
'
,
symbol
:
'
OP
'
,
symbol
:
'
OP
'
,
_owner
:
deployConfig
.
proxyAdmin
,
// TODO: this should be the mint manager
// in practice. Just use a hardhat account
// because this is only used for devnets
_owner
:
'
0x829BD824B016326A401d083B33D092293333A830
'
,
},
},
}
}
assertEvenLength
(
implementationSlot
)
assertEvenLength
(
implementationSlot
)
assertEvenLength
(
adminSlot
)
assertEvenLength
(
adminSlot
)
assertEvenLength
(
deployConfig
.
proxyAdmin
)
const
predeployAddrs
=
new
Set
()
const
predeployAddrs
=
new
Set
()
for
(
const
addr
of
Object
.
values
(
predeploys
))
{
for
(
const
addr
of
Object
.
values
(
predeploys
))
{
...
@@ -301,6 +303,10 @@ task('genesis-l2', 'create a genesis config')
...
@@ -301,6 +303,10 @@ task('genesis-l2', 'create a genesis config')
const
alloc
:
State
=
{}
const
alloc
:
State
=
{}
// Use the address of the deployed ProxyAdmin as the admin for
// each Proxy
const
Deployment__ProxyAdmin
=
await
hre
.
deployments
.
get
(
'
ProxyAdmin
'
)
// Set a proxy at each predeploy address
// Set a proxy at each predeploy address
const
proxy
=
await
hre
.
artifacts
.
readArtifact
(
'
Proxy
'
)
const
proxy
=
await
hre
.
artifacts
.
readArtifact
(
'
Proxy
'
)
for
(
let
i
=
0
;
i
<=
2048
;
i
++
)
{
for
(
let
i
=
0
;
i
<=
2048
;
i
++
)
{
...
@@ -320,7 +326,7 @@ task('genesis-l2', 'create a genesis config')
...
@@ -320,7 +326,7 @@ task('genesis-l2', 'create a genesis config')
balance
:
'
0x0
'
,
balance
:
'
0x0
'
,
code
:
proxy
.
deployedBytecode
,
code
:
proxy
.
deployedBytecode
,
storage
:
{
storage
:
{
[
adminSlot
]:
deployConfig
.
proxyAdmin
,
[
adminSlot
]:
Deployment__ProxyAdmin
.
address
,
},
},
}
}
...
...
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