bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 36쪽
` | number | PreimageOracleMinProposalSize is the minimum number of bytes that a large preimage oracle proposal can be. |
| `preimageOracleChallengePeriod` | number | PreimageOracleChallengePeriod is the number of seconds that challengers have to challenge a large preimage proposal. |
| `proofMaturityDelaySeconds` | number | ProofMaturityDelaySeconds is the number of seconds that a proof must be mature before it can be used to finalize a withdrawal. |
| `disputeGameFinalityDelaySeconds` | number | DisputeGameFinalityDelaySeconds is an additional number of seconds a dispute game must wait before it can be used to finalize a withdrawal. |
| `respectedGameType` | number | RespectedGameType is the dispute game type that the OptimismPortal contract will respect for finalizing withdrawals. |
### L1 dependency addresses
L1DependenciesConfig is the set of addresses that affect the L2 genesis construction, and is dependent on prior deployment of contracts to L1. This is generally not configured in deploy-config JSON, but rather merged in through a L1 deployments JSON file.
| JSON key | Type | Description |
| - | - | - |
| `l1StandardBridgeProxy` | address | L1StandardBridgeProxy represents the address of the L1StandardBridgeProxy on L1 and is used as part of building the L2 genesis state. |
| `l1CrossDomainMessengerProxy` | address | L1CrossDomainMessengerProxy represents the address of the L1CrossDomainMessengerProxy on L1 and is used as part of building the L2 genesis state. |
| `l1ERC721BridgeProxy` | address | L1ERC721BridgeProxy represents the address of the L1ERC721Bridge on L1 and is used as part of building the L2 genesis state. |
| `systemConfigProxy` | address | SystemConfigProxy represents the address of the SystemConfigProxy on L1 and is used as part of the derivation pipeline. |
| `optimismPortalProxy` | address | OptimismPortalProxy represents the address of the OptimismPortalProxy on L1 and is used as part of the derivation pipeline. |
| `daChallengeProxy` | address | DAChallengeProxy represents the L1 address of the DataAvailabilityChallenge contract. |
### Legacy fields
LegacyDeployConfig retains legacy DeployConfig attributes. The genesis generation may log warnings, do a best-effort support attempt, or ignore these attributes completely.
| JSON key | Type | Description |
| - | - | - |
| `deploymentWaitConfirmations` | number | DeploymentWaitConfirmations is the number of confirmations to wait during deployment. This is DEPRECATED and should be removed in a future PR. |
| `channelTimeoutGranite` | number | — |
## Guidance and standard-configuration requirements
The tables above are the exhaustive schema. This section carries the
hand-maintained guidance for the values chain operators most often need to
reason about: recommended values, validation constraints, and the
standard-configuration requirements from the draft
[Standard Rollup Charter](https://gov.optimism.io/t/season-6-draft-standard-rollup-charter/8135).
### Hardfork activation guidance
* The standard configuration requires network upgrades (hardforks) to be
activated. New chains set each `l2Genesis<Fork>TimeOffset` to `"0x0"` so
every governance-approved upgrade is active at genesis; a nil (omitted)
offset disables the fork.
* Later forks cannot activate before earlier ones, and two forks cannot
activate at the same post-genesis time.
* The interoperability hardfork activation offset is a non-standard feature:
interoperability is still [experimental](https://specs.optimism.io/interop/overview.html?utm_source=op-docs\&utm_medium=docs).
### Roles and ownership requirements
* `finalSystemOwner`: must not be `address(0)`. It is recommended to have a
single admin address to retain a common security model. Standard
configuration: must be the Chain Governor or Servicer; however, the L1
ProxyAdmin owner must be held by the Optimism Security Council. At the
moment, the L1 ProxyAdmin owner is transferred from the Chain Governor or
Servicer to [0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A](https://etherscan.io/address/0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A).
* `proxyAdminOwner`: owns the `ProxyAdmin` predeploy on L2, which owns all of
the Proxy contracts for every predeployed contract in the range
`0x42...0000` to `0x42...2048`, making predeploys upgradeable. Must not be
`address(0)`; a single admin address is recommended.
* `superchainConfigGuardian`: standard configuration requires
[0x09f7150D8c019BeF34450d6920f6B3608ceFdAf2](https://etherscan.io/address/0x09f7150D8c019BeF34450d6920f6B3608ceFdAf2),
a 1/1 Safe owned by the Security Council Safe, with the
[Deputy Pause Module](https://specs.optimism.io/protocol/deputy-pause-module.html?utm_source=op-docs\&utm_medium=docs)
enabled to allow the Optimism Foundation to act as Pause Deputy.
* `p2pSequencerAddress` and `batchSenderAddress`: hot-key addresses you
control — the sequencer's block-signing key and the batcher account whose
transactions to the batch inbox are considered valid. Neither may be
`address(0)`. `batchSenderAddress` can be updated later via the
`SystemConfig` contract on L1. No standard requirement.
* The [L1 dependency addresses](#l1-dependency-addresses)
(`l1StandardBridgeProxy`, `l1CrossDomainMessengerProxy`,
`l1ERC721BridgeProxy`, `systemConfigProxy`, `optimismPortalProxy`): filled
in from the L1 deployment rather than hand-configured; none of them may be
`address(0)`. Standard
configuration requires the implementation contracts to be the most
up-to-date, governance-approved version of the OP Stack codebase — and, if
the chain has been upgraded in the past, that the previous versions were a
standard release of the codebase.
### Sequencing and batching guidance
* `l2BlockTime`: must be nonzero, a whole number, and less than the L1 block
time (12 seconds on Ethereum mainnet and Sepolia). Standard configuration:
1 or 2 seconds.
* `maxSequencerDrift`: must be nonzero. 1800 (30 minutes) is the constant
that takes effect with the
[Fjord activation](/op-stack/protocol/network-upgrades#activations).
* `sequencerWindowSize`: must be nonzero. Standard configuration: 3\_600 base
layer blocks (12 hours for an L2 on Ethereum, assuming 12 second L1
blocktime). This is an important value for constraining the sequencer's
ability to re-order transactions; higher values would pose a risk to user
protections.
* `channelTimeout`: the default of 50 was introduced in the
[Granite network upgrade](/op-stack/protocol/network-upgrades#activations).
* `batchInboxAddress`: standard configuration convention is
`versionByte || keccak256(bytes32(chainId))[:19]`, where `||` denotes
concatenation, `versionByte` is `0x00`, and `chainId` is a `uint256`. This
covers the full range of chain IDs, up to the full `uint256` size:
```solidity theme={null}
bytes32 hash = keccak256(abi.encodePacked(bytes32(uint256(chainId))));
// take the first 19 bytes of the hash, then prepend a version byte of 0x00
// batchInboxAddress = 0x00{hash[:19]}
```
* `systemConfigStartBlock`: standard configuration: the block where the
`SystemConfig` was initialized.
* `l1StartingBlockTag`: it is generally recommended to use a finalized L1
block to avoid issues with reorgs.
### Chain ID requirements
* `l1ChainID`: must be nonzero. 1 for Ethereum mainnet, 11155111 for the
Sepolia test network; see [chainlist](https://chainlist.org/?testnets=true)
for other networks. Standard configuration: 1 (Ethereum).
* `l2ChainID`: must be nonzero and, for security reasons, unique. Standard
configuration: a Foundation-approved, globally unique value. Chains should
add their chain IDs to
[ethereum-lists/chains](https://github.com/ethereum-lists/chains).
### Gas and fee guidance
* `l2GenesisBlockGasLimit`: must be nonzero and greater than
`MaxResourceLimit + SystemTxMaxGas` (the gas a deposit plus the system
transaction can use). Standard configuration: no higher than 200\_000\_000
gas; chain operators are driven to maintain a stable and reliable chain,
so careful deliberation is necessary when considering a change.
* `l2GenesisBlockBaseFeePerGas`: cannot be nil.
* `gasPriceOracleBaseFeeScalar` and `gasPriceOracleBlobBaseFeeScalar`: should
not be 0. Standard configuration: set such that the fee margin is between
0 and 50%. See [transaction fees](/op-stack/transactions/fees) for how the
scalars enter the fee calculation.
* `eip1559Elasticity` and `eip1559Denominator`: must be nonzero.
`eip1559DenominatorCanyon` must be nonzero if Canyon is activated; 250 is
the recommended value.
* `minBaseFee`: an absolute minimum base fee in wei, to help shorten the
length of priority fee auctions; 0 disables it (the default). 100000 wei
is the recommended value; setting the minimum too high may make
transactions harder to get included for users. Standard configuration:
must not be set higher than 10000000000 wei. See the
[minimum base fee specs](https://specs.optimism.io/protocol/jovian/exec-engine.html#minimum-base-fee)
for more detail.
* `daFootprintGasScalar`: multiplied by the DA usage estimate to limit the
total estimated compressed transaction data that can fit into a block; 400
is the recommended value. As of Jovian, the base fee update calculation
uses `gasMetered := max(gasUsed, blobGasUsed)` in place of `gasUsed`, so
blocks with high DA usage may cause the base fee to increase in subsequent
blocks. See the
[DA footprint block limit specs](https://specs.optimism.io/protocol/jovian/exec-engine.html#da-footprint-block-limit)
for more detail.
### Fee vault guidance
* The `*FeeVaultRecipient` addresses must not be `address(0)`; a single
admin address is recommended to retain a common security model.
* The `*FeeVaultWithdrawalNetwork` values choose where each vault withdraws:
`"remote"` sends fees to the recipient address on L1, `"local"` on L2.
Withdrawals to L1 are more expensive. Note that when the config is
re-emitted (for example by `op-deployer inspect deploy-config`), these
values marshal in the legacy numeric form: `0` for `"remote"`, `1` for
`"local"`.
* The `*FeeVaultMinimumWithdrawalAmount` values exist because withdrawals to
L1 are expensive: the minimum prevents the overhead cost of continuous
tiny withdrawals that would cost more to execute than they return.
### Withdrawal finality guidance
* `finalizationPeriodSeconds`: must be nonzero. 12 seconds is recommended on
test networks, seven days on production ones. Standard configuration: 7
days — a high-security, excessively safe upper bound that leaves enough
time to consider social-layer solutions to a hack if necessary, and allows
other network participants to challenge the integrity of the corresponding
output root.
### Legacy output-oracle guidance
These apply only to chains still on the legacy `L2OutputOracle` proposal
system; new chains use [fault proofs](#fault-proofs) instead.
* `l2OutputOracleSubmissionInterval`: must be nonzero; 120 blocks (4
minutes) is suggested.
* `l2OutputOracleStartingBlockNumber`: should be 0 for new chains; may be
non-zero for networks upgraded from a legacy system (like OP Mainnet).
* `l2OutputOracleStartingTimestamp`: MUST be the timestamp corresponding to
the block defined by `l1StartingBlockTag`.
* `l2OutputOracleProposer`: must not be `address(0)`. No standard
requirement. This role is only active when the `OptimismPortal` respected
game type is `PERMISSIONED_CANNON`. The L1 ProxyAdmin sets the
implementation of the `PERMISSIONED_CANNON` game type, and thus determines
the proposer configuration of the permissioned dispute game.
* `l2OutputOracleChallenger`: must not be `address(0)`; a single admin
address is recommended to retain a common security model.
### Fault-proof value guidance
You should understand the implications of running a fault-proof chain before
setting `useFaultProofs`; see the
[fault proofs explainer](/op-stack/fault-proofs/explainer).
`proofMaturityDelaySeconds` and `disputeGameFinalityDelaySeconds` should not
be 0. `faultGameMaxDepth` should be conservatively set so that there is always
enough room for a full Cannon trace.
### Alt-DA guidance
Alt-DA mode is a non-standard feature. It enables integration of Data
Availability layers into the OP Stack regardless of their commitment type; see
[Alt-DA mode](/op-stack/features/experimental/alt-da-mode).
* `daCommitmentType`: must be either `KeccakCommitment` or
`GenericCommitment` (recommended); `KeccakCommitment` will be deprecated.
* `daChallengeWindow` and `daResolveWindow`: must be nonzero when using
Alt-DA mode with Keccak commitments.
* `daChallengeProxy`: must not be `address(0)` when using Alt-DA mode with
Keccak commitments, and must be `address(0)` with generic commitments.
### Governance and development settings
* `enableGovernance`: false is recommended; the governance token predeploy
is exclusive to OP Mainnet and the testing of OP-Mainnet-like chains.
* `fundDevAccounts` and the [development L1 genesis](#development-l1-genesis)
values are for devnet deployments only; a production L2 deployment does
not use them, except for the `l1BlockTime` sanity check (12 for Ethereum).
# Chain monitoring options
Source: https://docs.optimism.io/chain-operators/tools/chain-monitoring
Learn about onchain and offchain monitoring options for your OP Stack chain.
This explainer covers the basics of onchain and offchain monitoring options for your OP Stack chain. Onchain monitoring services allow chain operators to monitor the overall system and onchain events.
Offchain monitoring lets chain operators to monitor the operation and behavior of nodes and other offchain components.
## Onchain monitoring services
Onchain monitoring services provide insights into the overall system, helping chain operators track and monitor on-chain events. Some examples of onchain monitoring services include `monitorism` and `dispute-mon`.
### `monitorism`
Monitorism is a tooling suite that supports monitoring and active remediation actions for the OP Stack chain. Monitorism uses monitors as passive security providing automated monitoring for the OP Stack. They are used to monitor the OP stack and alert on specific events that could be a sign of a security incident.
Currently, the list of monitors includes:
Security integrity monitors: These are monitors necessary for making sure Bridges between L2 and L1 are safe and work as expected. These monitors are divided in two subgroups:
* Pre-Faultproof Chain Monitors:
* Fault Monitor: checks for changes in output roots posted to the L2OutputOracle contract. When a change is detected, it reconstructs the output root from a trusted L2 source and looks for a match.
* Withdrawals Monitor: checks for new withdrawals that have been proven to the OptimismPortal contract. Each withdrawal is checked against the `L2ToL1MessagePasser` contract.
* Faultproof chain monitors:
* Faultproof Withdrawal: The Faultproof Withdrawal component monitors `ProvenWithdrawals` events on the `OptimismPortal` contract and performs checks to detect any violations of invariant conditions on the chain. If a violation is detected, the issue is logged, and a Prometheus metric is set for the event. This component is designed to work exclusively with chains that are already utilizing the Fault Proofs system. This is a new version of the deprecated `chain-mon`, `faultproof-wd-mon`. For detailed information on how the component works and the algorithms used, please refer to the component README.
Security monitors: Those tools monitor other aspects of several contracts used in optimism:
* Global Events Monitor: made for taking YAML rules as configuration and monitoring the events that are emitted on the chain.
* Liveness Expiration Monitor: monitors the liveness expiration on Safes.
* Balances Monitor: emits a metric reporting the balances for the configured accounts.
* Multisig Monitor: The multisig monitor reports the paused status of the OptimismPortal contract. If set, reports the latest nonce of the configured Safe address and the latest presigned nonce stored in One Password.. The latest presigned nonce is identified by looking for items in the configured vault that follow a `ready-<nonce>.json` name. The highest nonce of this item name format is reported.
* Drippie Monitor: tracks the execution and executability of drips within a Drippie contract.
* Secrets Monitor: takes a Drippie contract as a parameter and monitors for any drips within that contract that use the `CheckSecrets` dripcheck contract. `CheckSecrets` is a dripcheck that allows a drip to begin once a specific secret has been revealed (after a delay period) and cancels the drip if a second secret is revealed. Monitoring these secrets is important, as their revelation may indicate that the secret storage platform has been compromised and someone is attempting to exfiltrate the ETH controlled by the drip.
For more information on these monitors and how to use them, [check out the repo](https://github.com/ethereum-optimism/monitorism?tab=readme-ov-file#monitorism).
### `dispute-mon`
Chain operators should consider running `op-dispute-mon`. It's an essential security monitoring service that tracks game statuses, providing visibility over the last 28 days.
`dispute-mon` is set up and built the same way as `op-challenger`. This means that you can run it the same way (run `make op-dispute-mon` in the directory).
A basic configuration option would look like this:
```
OP_DISPUTE_MON_LOG_FORMAT=logfmt
OP_DISPUTE_MON_METRICS_ENABLED=true
OP_DISPUTE_MON_METRICS_ADDR=0.0.0.0
OP_DISPUTE_MON_METRICS_PORT=7300
OP_DISPUTE_MON_L1_ETH_RPC=..
OP_DISPUTE_MON_ROLLUP_RPC=..
OP_DISPUTE_MON_GAME_FACTORY_ADDRESS=..
OP_DISPUTE_MON_HONEST_ACTORS=..
```
`OP_DISPUTE_MON_HONEST_ACTORS` is a CSV (no spaces) list of addresses that are used for the honest `op-challenger` instances.
Additional flags:
* `OP_DISPUTE_MON_GAME_WINDOW`: This is the window of time to report on games. It should leave a buffer beyond the max game duration for bond claiming. If Fault Proof game parameters are not changes (e.g. MAX\_CLOCK\_DURATION), it is recommended to leave this as the default.
* `OP_DISPUTE_MON_MONITOR_INTERVAL`: The interval at which to check for new games. Defaults to 30 seconds currently.
* `OP_DISPUTE_MON_MAX_CONCURRENCY`: The max thread count. Defaults to 5 currently.
You can find more info on `op-dispute-mon` on [the repo](https://github.com/ethereum-optimism/optimism/tree/develop/op-dispute-mon).
## Offchain component monitoring
Offchain monitoring allows chain operators to monitor the operation and behavior of nodes and other offchain components. Some of the more common components that you'll likely want to monitor include `op-node`, `op-geth`, `op-proposer`, `op-batcher`, and `op-challenger`.
The general steps for enabling offchain monitoring are pretty consistent for all the OP components:
1. Expose the monitoring port by enabling the `--metrics.enabled` flag
2. Customize the metrics port and address via the `--metrics.port` and `--metrics.addr` flags, respectively
3. Use [Prometheus](https://prometheus.io/) to scrape data from the metrics port
4. Save the data in `influxdb`
5. Share the data with [Grafana](https://grafana.com/) to build your custom dashboard
### `op-node`
`op-node` metrics and monitoring is detailed in the [Node Metrics and Monitoring](/node-operators/guides/monitoring/metrics) guide. To enable metrics, pass the `--metrics.enabled` flag to `op-node` and follow the steps above for customization options.
See [this curated list](/operators/node-operators/management/metrics#important-metrics) for important metrics to track specifically for `op-node`.
### `op-geth`
To enable metrics, pass the `--metrics.enabled` flag to the op-geth. You can customize the metrics port and address via the `--metrics.port` and `--metrics.addr` flags, respectively.
### `op-proposer`
To enable metrics, pass the `--metrics.enabled` flag to프로젝트로 돌아가기