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
e9ae6e96
Unverified
Commit
e9ae6e96
authored
Nov 09, 2022
by
Mark Tyneway
Committed by
GitHub
Nov 09, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3934 from ethereum-optimism/sc/ctb-fix-bs-versions
fix: better version imports for services
parents
4b62a35d
97b5f578
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
13 deletions
+23
-13
silver-nails-grab.md
.changeset/silver-nails-grab.md
+8
-0
service.ts
packages/drippie-mon/src/service.ts
+3
-2
tsconfig.json
packages/drippie-mon/tsconfig.json
+1
-1
service.ts
packages/fault-detector/src/service.ts
+2
-2
tsconfig.json
packages/fault-detector/tsconfig.json
+1
-0
service.ts
packages/message-relayer/src/service.ts
+3
-2
tsconfig.json
packages/message-relayer/tsconfig.json
+1
-1
service.ts
packages/replica-healthcheck/src/service.ts
+3
-2
tsconfig.json
packages/replica-healthcheck/tsconfig.json
+1
-3
No files found.
.changeset/silver-nails-grab.md
0 → 100644
View file @
e9ae6e96
---
'
@eth-optimism/drippie-mon'
:
patch
'
@eth-optimism/fault-detector'
:
patch
'
@eth-optimism/message-relayer'
:
patch
'
@eth-optimism/replica-healthcheck'
:
patch
---
Fixes how versions are imported for BaseServiceV2 services
packages/drippie-mon/src/service.ts
View file @
e9ae6e96
...
@@ -8,6 +8,8 @@ import { Provider } from '@ethersproject/abstract-provider'
...
@@ -8,6 +8,8 @@ import { Provider } from '@ethersproject/abstract-provider'
import
{
ethers
}
from
'
ethers
'
import
{
ethers
}
from
'
ethers
'
import
*
as
DrippieArtifact
from
'
@eth-optimism/contracts-periphery/artifacts/contracts/universal/drippie/Drippie.sol/Drippie.json
'
import
*
as
DrippieArtifact
from
'
@eth-optimism/contracts-periphery/artifacts/contracts/universal/drippie/Drippie.sol/Drippie.json
'
import
{
version
}
from
'
../package.json
'
type
DrippieMonOptions
=
{
type
DrippieMonOptions
=
{
rpc
:
Provider
rpc
:
Provider
drippieAddress
:
string
drippieAddress
:
string
...
@@ -30,8 +32,7 @@ export class DrippieMonService extends BaseServiceV2<
...
@@ -30,8 +32,7 @@ export class DrippieMonService extends BaseServiceV2<
>
{
>
{
constructor
(
options
?:
Partial
<
DrippieMonOptions
>
)
{
constructor
(
options
?:
Partial
<
DrippieMonOptions
>
)
{
super
({
super
({
// eslint-disable-next-line @typescript-eslint/no-var-requires
version
,
version
:
require
(
'
../package.json
'
).
version
,
name
:
'
drippie-mon
'
,
name
:
'
drippie-mon
'
,
loop
:
true
,
loop
:
true
,
loopIntervalMs
:
60
_000
,
loopIntervalMs
:
60
_000
,
...
...
packages/drippie-mon/tsconfig.json
View file @
e9ae6e96
{
{
"extends"
:
"../../tsconfig.json"
,
"extends"
:
"../../tsconfig.json"
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDir"
:
"./src"
,
"outDir"
:
"./dist"
"outDir"
:
"./dist"
},
},
"include"
:
[
"include"
:
[
"package.json"
,
"src/**/*"
"src/**/*"
]
]
}
}
packages/fault-detector/src/service.ts
View file @
e9ae6e96
...
@@ -10,6 +10,7 @@ import { Provider } from '@ethersproject/abstract-provider'
...
@@ -10,6 +10,7 @@ import { Provider } from '@ethersproject/abstract-provider'
import
{
Contract
,
ethers
,
Transaction
}
from
'
ethers
'
import
{
Contract
,
ethers
,
Transaction
}
from
'
ethers
'
import
dateformat
from
'
dateformat
'
import
dateformat
from
'
dateformat
'
import
{
version
}
from
'
../package.json
'
import
{
import
{
findFirstUnfinalizedStateBatchIndex
,
findFirstUnfinalizedStateBatchIndex
,
findEventForStateBatch
,
findEventForStateBatch
,
...
@@ -38,8 +39,7 @@ type State = {
...
@@ -38,8 +39,7 @@ type State = {
export
class
FaultDetector
extends
BaseServiceV2
<
Options
,
Metrics
,
State
>
{
export
class
FaultDetector
extends
BaseServiceV2
<
Options
,
Metrics
,
State
>
{
constructor
(
options
?:
Partial
<
Options
>
)
{
constructor
(
options
?:
Partial
<
Options
>
)
{
super
({
super
({
// eslint-disable-next-line @typescript-eslint/no-var-requires
version
,
version
:
require
(
'
../package.json
'
).
version
,
name
:
'
fault-detector
'
,
name
:
'
fault-detector
'
,
loop
:
true
,
loop
:
true
,
loopIntervalMs
:
1000
,
loopIntervalMs
:
1000
,
...
...
packages/fault-detector/tsconfig.json
View file @
e9ae6e96
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
"outDir"
:
"./dist"
"outDir"
:
"./dist"
},
},
"include"
:
[
"include"
:
[
"package.json"
,
"src/**/*"
"src/**/*"
]
]
}
}
packages/message-relayer/src/service.ts
View file @
e9ae6e96
...
@@ -10,6 +10,8 @@ import {
...
@@ -10,6 +10,8 @@ import {
import
{
CrossChainMessenger
,
MessageStatus
}
from
'
@eth-optimism/sdk
'
import
{
CrossChainMessenger
,
MessageStatus
}
from
'
@eth-optimism/sdk
'
import
{
Provider
}
from
'
@ethersproject/abstract-provider
'
import
{
Provider
}
from
'
@ethersproject/abstract-provider
'
import
{
version
}
from
'
../package.json
'
type
MessageRelayerOptions
=
{
type
MessageRelayerOptions
=
{
l1RpcProvider
:
Provider
l1RpcProvider
:
Provider
l2RpcProvider
:
Provider
l2RpcProvider
:
Provider
...
@@ -37,8 +39,7 @@ export class MessageRelayerService extends BaseServiceV2<
...
@@ -37,8 +39,7 @@ export class MessageRelayerService extends BaseServiceV2<
>
{
>
{
constructor
(
options
?:
Partial
<
MessageRelayerOptions
>
)
{
constructor
(
options
?:
Partial
<
MessageRelayerOptions
>
)
{
super
({
super
({
// eslint-disable-next-line @typescript-eslint/no-var-requires
version
,
version
:
require
(
'
../package.json
'
).
version
,
name
:
'
message-relayer
'
,
name
:
'
message-relayer
'
,
options
,
options
,
optionsSpec
:
{
optionsSpec
:
{
...
...
packages/message-relayer/tsconfig.json
View file @
e9ae6e96
{
{
"extends"
:
"../../tsconfig.json"
,
"extends"
:
"../../tsconfig.json"
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDir"
:
"./src"
,
"outDir"
:
"./dist"
"outDir"
:
"./dist"
},
},
"include"
:
[
"include"
:
[
"package.json"
,
"src/**/*"
"src/**/*"
]
]
}
}
packages/replica-healthcheck/src/service.ts
View file @
e9ae6e96
...
@@ -7,6 +7,8 @@ import {
...
@@ -7,6 +7,8 @@ import {
}
from
'
@eth-optimism/common-ts
'
}
from
'
@eth-optimism/common-ts
'
import
{
sleep
}
from
'
@eth-optimism/core-utils
'
import
{
sleep
}
from
'
@eth-optimism/core-utils
'
import
{
version
}
from
'
../package.json
'
type
HealthcheckOptions
=
{
type
HealthcheckOptions
=
{
referenceRpcProvider
:
Provider
referenceRpcProvider
:
Provider
targetRpcProvider
:
Provider
targetRpcProvider
:
Provider
...
@@ -32,8 +34,7 @@ export class HealthcheckService extends BaseServiceV2<
...
@@ -32,8 +34,7 @@ export class HealthcheckService extends BaseServiceV2<
>
{
>
{
constructor
(
options
?:
Partial
<
HealthcheckOptions
>
)
{
constructor
(
options
?:
Partial
<
HealthcheckOptions
>
)
{
super
({
super
({
// eslint-disable-next-line @typescript-eslint/no-var-requires
version
,
version
:
require
(
'
../package.json
'
).
version
,
name
:
'
healthcheck
'
,
name
:
'
healthcheck
'
,
loopIntervalMs
:
5000
,
loopIntervalMs
:
5000
,
options
,
options
,
...
...
packages/replica-healthcheck/tsconfig.json
View file @
e9ae6e96
{
{
"extends"
:
"../../tsconfig.json"
,
"extends"
:
"../../tsconfig.json"
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"rootDir"
:
"./src"
,
"outDir"
:
"./dist"
"outDir"
:
"./dist"
},
},
"include"
:
[
"include"
:
[
"package.json"
,
"src/**/*"
"src/**/*"
]
]
}
}
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