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
ec15b130
Commit
ec15b130
authored
Mar 31, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contracts-bedrock: more fixups
parent
8fa75e4b
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
15 deletions
+44
-15
101-L2CrossDomainMessengerImpl.ts
...ontracts-bedrock/deploy/101-L2CrossDomainMessengerImpl.ts
+3
-3
102-L2StandardBridgeImpl.ts
...ages/contracts-bedrock/deploy/102-L2StandardBridgeImpl.ts
+3
-3
104-L2ERC721BridgeImpl.ts
packages/contracts-bedrock/deploy/104-L2ERC721BridgeImpl.ts
+3
-3
106-SequencerFeeVaultImpl.ts
...ges/contracts-bedrock/deploy/106-SequencerFeeVaultImpl.ts
+8
-2
107-BaseFeeVaultImpl.ts
packages/contracts-bedrock/deploy/107-BaseFeeVaultImpl.ts
+8
-2
108-L1FeeVaultImpl.ts
packages/contracts-bedrock/deploy/108-L1FeeVaultImpl.ts
+8
-2
hardhat.config.ts
packages/contracts-bedrock/hardhat.config.ts
+11
-0
No files found.
packages/contracts-bedrock/deploy/101-L2CrossDomainMessengerImpl.ts
View file @
ec15b130
...
...
@@ -6,9 +6,9 @@ import '@nomiclabs/hardhat-ethers'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
Artifact__L1CrossDomainMessenger
=
await
hre
.
deployments
.
get
(
'
L1CrossDomainMessenger
'
)
const
Artifact__L1CrossDomainMessenger
=
await
hre
.
companionNetworks
[
'
l1
'
].
deployments
.
get
(
'
L1CrossDomainMessengerProxy
'
)
await
deploy
({
hre
,
...
...
packages/contracts-bedrock/deploy/102-L2StandardBridgeImpl.ts
View file @
ec15b130
...
...
@@ -6,9 +6,9 @@ import '@nomiclabs/hardhat-ethers'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
Artifact__L1StandardBridge
=
await
hre
.
deployments
.
get
(
'
L1StandardBridge
'
)
const
Artifact__L1StandardBridge
=
await
hre
.
companionNetworks
[
'
l1
'
].
deployments
.
get
(
'
L1StandardBridgeProxy
'
)
await
deploy
({
hre
,
...
...
packages/contracts-bedrock/deploy/104-L2ERC721BridgeImpl.ts
View file @
ec15b130
...
...
@@ -6,10 +6,10 @@ import { ethers } from 'ethers'
import
{
predeploys
}
from
'
../src/constants
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
// TODO: should be proxy and should be companion network
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
Artifact__L1ERC721Bridge
=
await
hre
.
deployments
.
get
(
'
L1ERC721Bridge
'
)
const
Artifact__L1ERC721Bridge
=
await
hre
.
companionNetworks
[
'
l1
'
].
deployments
.
get
(
'
L1ERC721BridgeProxy
'
)
await
deploy
({
hre
,
...
...
packages/contracts-bedrock/deploy/106-SequencerFeeVaultImpl.ts
View file @
ec15b130
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
'
@eth-optimism/hardhat-deploy-config
'
import
'
@nomiclabs/hardhat-ethers
'
import
{
ethers
}
from
'
ethers
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
sequencerFeeVaultRecipient
=
hre
.
deployConfig
.
sequencerFeeVaultRecipient
if
(
sequencerFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
`SequencerFeeVault RECIPIENT undefined`
)
}
await
deploy
({
hre
,
name
:
'
SequencerFeeVault
'
,
args
:
[
hre
.
deployConfig
.
sequencerFeeVaultRecipient
],
args
:
[
sequencerFeeVaultRecipient
],
postDeployAction
:
async
(
contract
)
=>
{
await
assertContractVariable
(
contract
,
'
RECIPIENT
'
,
hre
.
deployConfig
.
sequencerFeeVaultRecipient
ethers
.
utils
.
getAddress
(
sequencerFeeVaultRecipient
)
)
},
})
...
...
packages/contracts-bedrock/deploy/107-BaseFeeVaultImpl.ts
View file @
ec15b130
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
'
@eth-optimism/hardhat-deploy-config
'
import
'
@nomiclabs/hardhat-ethers
'
import
{
ethers
}
from
'
ethers
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
baseFeeVaultRecipient
=
hre
.
deployConfig
.
baseFeeVaultRecipient
if
(
baseFeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
'
BaseFeeVault RECIPIENT undefined
'
)
}
await
deploy
({
hre
,
name
:
'
BaseFeeVault
'
,
args
:
[
hre
.
deployConfig
.
baseFeeVaultRecipient
],
args
:
[
baseFeeVaultRecipient
],
postDeployAction
:
async
(
contract
)
=>
{
await
assertContractVariable
(
contract
,
'
RECIPIENT
'
,
hre
.
deployConfig
.
baseFeeVaultRecipient
ethers
.
utils
.
getAddress
(
baseFeeVaultRecipient
)
)
},
})
...
...
packages/contracts-bedrock/deploy/108-L1FeeVaultImpl.ts
View file @
ec15b130
import
{
DeployFunction
}
from
'
hardhat-deploy/dist/types
'
import
'
@eth-optimism/hardhat-deploy-config
'
import
'
@nomiclabs/hardhat-ethers
'
import
{
ethers
}
from
'
ethers
'
import
{
assertContractVariable
,
deploy
}
from
'
../src/deploy-utils
'
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
l1FeeVaultRecipient
=
hre
.
deployConfig
.
l1FeeVaultRecipient
if
(
l1FeeVaultRecipient
===
ethers
.
constants
.
AddressZero
)
{
throw
new
Error
(
'
L1FeeVault RECIPIENT undefined
'
)
}
await
deploy
({
hre
,
name
:
'
L1FeeVault
'
,
args
:
[
hre
.
deployConfig
.
l1FeeVaultRecipient
],
args
:
[
l1FeeVaultRecipient
],
postDeployAction
:
async
(
contract
)
=>
{
await
assertContractVariable
(
contract
,
'
RECIPIENT
'
,
hre
.
deployConfig
.
l1FeeVaultRecipient
ethers
.
utils
.
getAddress
(
l1FeeVaultRecipient
)
)
},
})
...
...
packages/contracts-bedrock/hardhat.config.ts
View file @
ec15b130
...
...
@@ -50,6 +50,17 @@ const config: HardhatUserConfig = {
chainId
:
5
,
url
:
process
.
env
.
L1_RPC
||
''
,
accounts
:
[
process
.
env
.
PRIVATE_KEY_DEPLOYER
||
ethers
.
constants
.
HashZero
],
companionNetworks
:
{
l2
:
'
optimism-goerli
'
,
},
},
'
optimism-goerli
'
:
{
chainId
:
420
,
url
:
process
.
env
.
L2_RPC
||
''
,
accounts
:
[
process
.
env
.
PRIVATE_KEY_DEPLOYER
||
ethers
.
constants
.
HashZero
],
companionNetworks
:
{
l1
:
'
goerli
'
,
},
},
'
alpha-1
'
:
{
chainId
:
5
,
...
...
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