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
1475b286
Commit
1475b286
authored
Jul 28, 2022
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: add immutables check to ci
parent
a32e68ac
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
3 deletions
+36
-3
config.yml
.circleci/config.yml
+5
-3
hardhat.config.ts
packages/contracts-bedrock/hardhat.config.ts
+1
-0
check-l2-config.ts
packages/contracts-bedrock/tasks/check-l2-config.ts
+30
-0
No files found.
.circleci/config.yml
View file @
1475b286
...
...
@@ -451,7 +451,6 @@ jobs:
name
:
Do a deposit
no_output_timeout
:
5m
command
:
|
npx hardhat compile
npx hardhat deposit \
--to 0xB79f76EF2c5F0286176833E7B2eEe103b1CC3244 \
--amount-eth 1 \
...
...
@@ -460,8 +459,11 @@ jobs:
working_directory
:
packages/contracts-bedrock
-
run
:
name
:
Check the status
command
:
|
npx hardhat check-op-node
command
:
npx hardhat check-op-node
working_directory
:
packages/contracts-bedrock
-
run
:
name
:
Check L2 Config
command
:
npx hardhat check-l2-config
working_directory
:
packages/contracts-bedrock
integration-tests
:
...
...
packages/contracts-bedrock/hardhat.config.ts
View file @
1475b286
...
...
@@ -15,6 +15,7 @@ import './tasks/deposits'
import
'
./tasks/rekey
'
import
'
./tasks/rollup-config
'
import
'
./tasks/check-op-node
'
import
'
./tasks/check-l2-config
'
subtask
(
TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS
).
setAction
(
async
(
_
,
__
,
runSuper
)
=>
{
...
...
packages/contracts-bedrock/tasks/check-l2-config.ts
0 → 100644
View file @
1475b286
import
{
task
,
types
}
from
'
hardhat/config
'
import
{
providers
}
from
'
ethers
'
import
'
@nomiclabs/hardhat-ethers
'
import
{
predeploys
,
getContractInterface
}
from
'
../src
'
task
(
'
check-l2-config
'
,
'
Validate L2 config
'
)
.
addParam
(
'
l2ProviderUrl
'
,
'
L2 provider URL.
'
,
'
http://localhost:9545
'
,
types
.
string
)
.
setAction
(
async
(
args
,
hre
)
=>
{
const
{
l2ProviderUrl
}
=
args
const
l2Provider
=
new
providers
.
JsonRpcProvider
(
l2ProviderUrl
)
const
OptimismMintableERC20Factory
=
new
hre
.
ethers
.
Contract
(
predeploys
.
OptimismMintableERC20Factory
,
getContractInterface
(
'
OptimismMintableERC20Factory
'
),
l2Provider
)
const
bridge
=
await
OptimismMintableERC20Factory
.
bridge
()
if
(
bridge
!==
predeploys
.
L2StandardBridge
)
{
throw
new
Error
(
`L2StandardBridge not set correctly. Got
${
bridge
}
, expected
${
predeploys
.
L2StandardBridge
}
`
)
}
})
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