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
b20ec649
Commit
b20ec649
authored
Jul 18, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lint: fix
parent
1d09a6a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
service.ts
packages/chain-mon/src/fault-mon/service.ts
+1
-1
helpers.spec.ts
packages/chain-mon/test/fault-mon/helpers.spec.ts
+7
-4
No files found.
packages/chain-mon/src/fault-mon/service.ts
View file @
b20ec649
...
@@ -387,7 +387,7 @@ export class FaultDetector extends BaseServiceV2<Options, Metrics, State> {
...
@@ -387,7 +387,7 @@ export class FaultDetector extends BaseServiceV2<Options, Metrics, State> {
new
Date
(
new
Date
(
(
ethers
.
BigNumber
.
from
(
outputBlock
.
timestamp
).
toNumber
()
+
(
ethers
.
BigNumber
.
from
(
outputBlock
.
timestamp
).
toNumber
()
+
this
.
state
.
faultProofWindow
)
*
this
.
state
.
faultProofWindow
)
*
1000
1000
),
),
'
mmmm dS, yyyy, h:MM:ss TT
'
'
mmmm dS, yyyy, h:MM:ss TT
'
),
),
...
...
packages/chain-mon/test/fault-mon/helpers.spec.ts
View file @
b20ec649
...
@@ -6,7 +6,10 @@ import Artifact__L2OutputOracle from '@eth-optimism/contracts-bedrock/forge-arti
...
@@ -6,7 +6,10 @@ import Artifact__L2OutputOracle from '@eth-optimism/contracts-bedrock/forge-arti
import
{
SignerWithAddress
}
from
'
@nomiclabs/hardhat-ethers/signers
'
import
{
SignerWithAddress
}
from
'
@nomiclabs/hardhat-ethers/signers
'
import
{
expect
}
from
'
./setup
'
import
{
expect
}
from
'
./setup
'
import
{
findOutputForIndex
,
findFirstUnfinalizedStateBatchIndex
}
from
'
../../src/fault-mon
'
import
{
findOutputForIndex
,
findFirstUnfinalizedStateBatchIndex
,
}
from
'
../../src/fault-mon
'
describe
(
'
helpers
'
,
()
=>
{
describe
(
'
helpers
'
,
()
=>
{
const
deployConfig
=
{
const
deployConfig
=
{
...
@@ -112,7 +115,7 @@ describe('helpers', () => {
...
@@ -112,7 +115,7 @@ describe('helpers', () => {
await
L2OutputOracle
.
proposeL2Output
(
await
L2OutputOracle
.
proposeL2Output
(
utils
.
formatBytes32String
(
'
outputRoot3
'
),
utils
.
formatBytes32String
(
'
outputRoot3
'
),
params
.
_l2BlockNumber
+
params
.
_l2BlockNumber
+
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
params
.
_l1BlockHash
,
params
.
_l1BlockHash
,
params
.
_l1BlockNumber
params
.
_l1BlockNumber
)
)
...
@@ -154,7 +157,7 @@ describe('helpers', () => {
...
@@ -154,7 +157,7 @@ describe('helpers', () => {
await
L2OutputOracle
.
proposeL2Output
(
await
L2OutputOracle
.
proposeL2Output
(
params
.
_outputRoot
,
params
.
_outputRoot
,
params
.
_l2BlockNumber
+
params
.
_l2BlockNumber
+
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
params
.
_l1BlockHash
,
params
.
_l1BlockHash
,
params
.
_l1BlockNumber
params
.
_l1BlockNumber
)
)
...
@@ -196,7 +199,7 @@ describe('helpers', () => {
...
@@ -196,7 +199,7 @@ describe('helpers', () => {
await
L2OutputOracle
.
proposeL2Output
(
await
L2OutputOracle
.
proposeL2Output
(
params
.
_outputRoot
,
params
.
_outputRoot
,
params
.
_l2BlockNumber
+
params
.
_l2BlockNumber
+
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
deployConfig
.
l2OutputOracleSubmissionInterval
*
2
,
params
.
_l1BlockHash
,
params
.
_l1BlockHash
,
params
.
_l1BlockNumber
params
.
_l1BlockNumber
)
)
...
...
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