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

feat(contracts): use DisputeGameFactory #378

Merged
merged 6 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
update
  • Loading branch information
fakedev9999 committed Feb 13, 2025
commit c40ea52fc72d8e9b82e93395c2b6ca5ced8fadaf
4 changes: 3 additions & 1 deletion book/experimental/optimism-portal-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ Estimated amount required: 0.001614671022605394 ETH

In these deployment logs, `0x6B3342821680031732Bc7d4E88A6528478aF9E38` is the address of the proxy for the `DisputeGameFactory` contract.

In order to have the proposer to use it, you have to add a new variable `DGF_ADDRESS` to your `.env` file with the value above.
In order to have the proposer to use it, you have to add a new variable `DGF_ADDRESS` to your `.env` file with the value above.

If `DGF_ADDRESS` is not set, the proposer will submit the output root directly to the `OPSuccinctL2OutputOracle` contract.
18 changes: 9 additions & 9 deletions proposer/op/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,15 +133,13 @@ func NewConfig(ctx *cli.Context) *CLIConfig {

return &CLIConfig{
// Required Flags
L1EthRpc: ctx.String(flags.L1EthRpcFlag.Name),
RollupRpc: ctx.String(flags.RollupRpcFlag.Name),
L2OOAddress: ctx.String(flags.L2OOAddressFlag.Name),
DGFAddress: ctx.String(flags.DGFAddressFlag.Name),
DisputeGameType: uint32(ctx.Uint64(flags.DisputeGameTypeFlag.Name)),
PollInterval: ctx.Duration(flags.PollIntervalFlag.Name),
TxMgrConfig: txmgr.ReadCLIConfig(ctx),
BeaconRpc: ctx.String(flags.BeaconRpcFlag.Name),
L2ChainID: rollupConfig.L2ChainID.Uint64(),
L1EthRpc: ctx.String(flags.L1EthRpcFlag.Name),
RollupRpc: ctx.String(flags.RollupRpcFlag.Name),
L2OOAddress: ctx.String(flags.L2OOAddressFlag.Name),
PollInterval: ctx.Duration(flags.PollIntervalFlag.Name),
TxMgrConfig: txmgr.ReadCLIConfig(ctx),
BeaconRpc: ctx.String(flags.BeaconRpcFlag.Name),
L2ChainID: rollupConfig.L2ChainID.Uint64(),

// Optional Flags
AllowNonFinalized: ctx.Bool(flags.AllowNonFinalizedFlag.Name),
Expand All @@ -160,5 +158,7 @@ func NewConfig(ctx *cli.Context) *CLIConfig {
OPSuccinctServerUrl: ctx.String(flags.OPSuccinctServerUrlFlag.Name),
MaxConcurrentProofRequests: ctx.Uint64(flags.MaxConcurrentProofRequestsFlag.Name),
Mock: ctx.Bool(flags.MockFlag.Name),
DGFAddress: ctx.String(flags.DGFAddressFlag.Name),
DisputeGameType: uint32(ctx.Uint64(flags.DisputeGameTypeFlag.Name)),
}
}