Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chain-mon restructuring #10246

Merged
merged 3 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Packages
/packages/chain-mon @ethereum-optimism/security-reviewers
/packages/chain-mon/src/balance-mon @ethereum-optimism/infra-reviewers
/packages/chain-mon/internal/balance-mon @ethereum-optimism/infra-reviewers
/packages/common-ts @ethereum-optimism/typescript-reviewers
/packages/contracts-bedrock @ethereum-optimism/contract-reviewers
/packages/core-utils @ethereum-optimism/legacy-reviewers
Expand Down
14 changes: 7 additions & 7 deletions ops/docker/Dockerfile.packages
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,31 @@ WORKDIR /opt/optimism/packages/chain-mon
# TODO keeping the rest of these here for now because they are being used
# but we should really delete them we only need one image
FROM base as balance-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/internal
CMD ["start:balance-mon"]

FROM base as drippie-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/contrib
CMD ["start:drippie-mon"]

from base as fault-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/
CMD ["start:fault-mon"]

from base as multisig-mon
WORKDIR /opt/optimism/packages/multisig-mon
WORKDIR /opt/optimism/packages/internal/multisig-mon
CMD ["start:multisig-mon"]

FROM base as replica-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/contrib
CMD ["start:replica-mon"]

FROM base as wallet-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/contrib
CMD ["start:wallet-mon"]

FROM base as wd-mon
WORKDIR /opt/optimism/packages/chain-mon
WORKDIR /opt/optimism/packages/chain-mon/
CMD ["start:wd-mon"]

FROM base as contracts-bedrock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import {
import { Provider } from '@ethersproject/abstract-provider'
import { ethers } from 'ethers'

import Safe from '../abi/IGnosisSafe.0.8.19.json'
import OptimismPortal from '../abi/OptimismPortal.json'
import Safe from '../../src/abi/IGnosisSafe.0.8.19.json'
import OptimismPortal from '../../src/abi/OptimismPortal.json'
import { version } from '../../package.json'

type MultisigMonOptions = {
Expand Down
26 changes: 13 additions & 13 deletions packages/chain-mon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
"dist/*"
],
"scripts": {
"dev:balance-mon": "tsx watch ./src/balance-mon/service.ts",
"dev:drippie-mon": "tsx watch ./src/drippie-mon/service.ts",
"dev:balance-mon": "tsx watch ./internal/balance-mon/service.ts",
"dev:drippie-mon": "tsx watch ./contrib/drippie/service.ts",
"dev:fault-mon": "tsx watch ./src/fault-mon/service.ts",
"dev:multisig-mon": "tsx watch ./src/multisig-mon/service.ts",
"dev:replica-mon": "tsx watch ./src/replica-mon/service.ts",
"dev:wallet-mon": "tsx watch ./src/wallet-mon/service.ts",
"dev:multisig-mon": "tsx watch ./internal/multisig-mon/service.ts",
"dev:replica-mon": "tsx watch ./contrib/replica-mon/service.ts",
"dev:wallet-mon": "tsx watch ./contrib/wallet-mon/service.ts",
"dev:wd-mon": "tsx watch ./src/wd-mon/service.ts",
"dev:initialized-upgraded-mon": "tsx watch ./src/initialized-upgraded-mon/service.ts",
"start:balance-mon": "tsx ./src/balance-mon/service.ts",
"start:drippie-mon": "tsx ./src/drippie-mon/service.ts",
"dev:initialized-upgraded-mon": "tsx watch ./contrib/initialized-upgraded-mon/service.ts",
"start:balance-mon": "tsx ./internal/balance-mon/service.ts",
"start:drippie-mon": "tsx ./contrib/drippie/service.ts",
"start:fault-mon": "tsx ./src/fault-mon/service.ts",
"start:multisig-mon": "tsx ./src/multisig-mon/service.ts",
"start:replica-mon": "tsx ./src/replica-mon/service.ts",
"start:wallet-mon": "tsx ./src/wallet-mon/service.ts",
"start:multisig-mon": "tsx ./internal/multisig-mon/service.ts",
"start:replica-mon": "tsx ./contrib/replica-mon/service.ts",
"start:wallet-mon": "tsx ./contrib/wallet-mon/service.ts",
"start:wd-mon": "tsx ./src/wd-mon/service.ts",
"start:initialized-upgraded-mon": "tsx ./src/initialized-upgraded-mon/service.ts",
"start:initialized-upgraded-mon": "tsx ./contrib/initialized-upgraded-mon/service.ts",
"test": "hardhat test",
"test:coverage": "nyc hardhat test && nyc merge .nyc_output coverage.json",
"build": "tsc -p ./tsconfig.json",
Expand Down Expand Up @@ -66,4 +66,4 @@
"ts-node": "^10.9.2",
"tsx": "^4.7.0"
}
}
}
10 changes: 5 additions & 5 deletions packages/chain-mon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export * from './balance-mon/service'
export * from './drippie-mon/service'
export * from '../internal/balance-mon/service'
export * from '../contrib/drippie-mon/service'
export * from './fault-mon/index'
export * from './multisig-mon/service'
export * from '../internal/multisig-mon/service'
export * from './wd-mon/service'
export * from './wallet-mon/service'
export * from './initialized-upgraded-mon/service'
export * from '../contrib/wallet-mon/service'
export * from '../contrib/initialized-upgraded-mon/service'
4 changes: 3 additions & 1 deletion packages/chain-mon/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"package.json",
"src/abi/IGnosisSafe.0.8.19.json",
"src/abi/OptimismPortal.json",
"src/**/*"
"src/**/*",
"contrib/**/*",
"internal/**/*"
]
}