Skip to content

Conversation

@LuisUrrutia
Copy link
Contributor

@LuisUrrutia LuisUrrutia commented Sep 15, 2025

Summary

I have added the network configuration for Japan Open Chain and tested it by sending transactions in testnet.

Summary by CodeRabbit

  • New Features

    • Added support for Japan Open Chain (mainnet) and Japan Open Chain Testnet: network entries, RPC endpoints, explorer links and token symbols (JOC / JOCT) to enable connecting and viewing transactions.
  • Chores

    • Formatting cleanup across existing network entries (array and whitespace normalization) with no behavioral changes.
  • Minor

    • Added a cross-reference from the testnet entry to its mainnet counterpart.

@LuisUrrutia LuisUrrutia requested review from a team as code owners September 15, 2025 11:02
@coderabbitai
Copy link

coderabbitai bot commented Sep 15, 2025

Walkthrough

Adds two EVM network entries (japan-open-chain mainnet and japan-open-chain-testnet) to config/networks/other-l1s.json and applies formatting-only refinements to existing network array fields; includes a from cross-reference on the testnet entry.

Changes

Cohort / File(s) Summary
Other L1 network configs
config/networks/other-l1s.json
Added japan-open-chain (chain_id 81) and japan-open-chain-testnet (chain_id 10081) with explorer and RPC URLs, is_testnet flag, symbol (JOC/JOCT), required_confirmations and average_blocktime_ms on mainnet; testnet includes from: "japan-open-chain". Performed formatting-only collapses of multi-line arrays (e.g., explorer_urls, rpc_urls, features, tags) elsewhere without semantic changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

"I nibble at configs under moonlit code,
Two new JOC trails in the directory glowed.
RPCs hum like carrots, explorers gleam bright,
Testnet linked gently back to mainnet's light.
A rabbit's small cheer for tidy lines tonight." 🥕🐇

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The PR description includes a short summary but does not follow the repository template: it lacks a "## Testing Process" section with detailed steps, environment and evidence, and it omits the required "## Checklist" items such as a reference to related issues and unit test status, so the description is incomplete relative to the template. Please update the PR description to match the repository template by adding a "## Testing Process" section that documents exact test steps, commands, network/environment, and evidence (transaction hashes or explorer links), and complete the "## Checklist" including related issue references and whether unit tests were added or why they are not applicable; attach logs or screenshots if available.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title "feat: Add support for Japan Open Chain" is concise, follows a conventional commit style, and accurately summarizes the primary change in the PR (adding Japan Open Chain network configurations for mainnet and testnet), so it is appropriate for the changeset.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch plat-6549-add-japan-open-chain-support

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 187ca0c and 095cb13.

📒 Files selected for processing (1)
  • config/networks/other-l1s.json (10 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
  • GitHub Check: Redirect rules - openzeppelin-relayer
  • GitHub Check: Header rules - openzeppelin-relayer
  • GitHub Check: Pages changed - openzeppelin-relayer
  • GitHub Check: boostsecurity - boostsecurityio/semgrep-pro
  • GitHub Check: Analyze (rust)
  • GitHub Check: semgrep/ci
🔇 Additional comments (16)
config/networks/other-l1s.json (16)

10-10: Gnosis: EIP-1559 flag looks correct.
LGTM.


27-33: Gnosis Chiado: formatting-only changes.
No semantic change detected.


39-49: Fantom mainnet: explorer URLs collapsed.
No issues.


63-66: Fantom testnet: RPC URL normalized.
Looks good.


75-82: Moonbeam: EIP-1559 flag present.
No concerns.


90-103: Moonriver: EIP-1559 flag present.
No concerns.


111-118: Moonbase: EIP-1559 flag + RPC.
LGTM.


122-134: Avalanche mainnet: explorer + EIP-1559.
LGTM.


142-150: Avalanche Fuji: EIP-1559 + deprecated tag.
LGTM.


154-166: Celo mainnet: explorer URLs collapsed.
LGTM.


182-184: Celo Alfajores: deprecated tag retained.
LGTM.


195-199: Celo Baklava: RPC + deprecated tag.
LGTM.


235-237: Aurora testnet: deprecated tag.
LGTM.


241-247: Fuse mainnet: EIP-1559 flag + RPC.
LGTM.


280-291: Japan Open Chain testnet: verify explorer URL and chain features.

  • Explorer URL has a trailing slash; confirm downstream consumers handle both forms consistently.
  • Verify EIP-1559 support and confirmations as above.
  • Please add a link to the test transaction hash in the PR description for traceability.

265-278: Japan Open Chain mainnet — normalize RPC ports, trim whitespace, and verify EIP-1559 & confirmations.

  • rpc-3 is missing the explicit port: change "https://rpc-3.japanopenchain.org" → "https://rpc-3.japanopenchain.org:8545" or document/verify why the port is omitted.
  • Remove leading-space URL found elsewhere: " https://rpc.fusespark.io".
  • Confirm whether JOC supports EIP-1559; if yes add "features": ["eip1559"].
  • Sanity-check required_confirmations = 1 against chain finality; increase if the chain requires more confirmations for safe finality.

File: config/networks/other-l1s.json (japan-open-chain entry).

"explorer_urls": ["https://explorer.japanopenchain.org"],
"is_testnet": false,
"required_confirmations": 1,
"rpc_urls": [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"features": [
"eip1559"
],

"chain_id": 10081,
"explorer_urls": ["https://explorer.testnet.japanopenchain.org/"],
"is_testnet": true,
"required_confirmations": 1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"features": [
"eip1559"
],

"https://rpc-2.japanopenchain.org:8545",
"https://rpc-3.japanopenchain.org"
],
"average_blocktime_ms": 10930,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5000

"https://rpc-1.testnet.japanopenchain.org:8545",
"https://rpc-2.testnet.japanopenchain.org:8545"
],
"average_blocktime_ms": 16200,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5000 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I grab that value from "Japan Open Chain stats" when I was coding. I now they say 5000, but even today it says 10.906s

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for the previous one. And there is no graph for that so we can find an average. Or should we stick to what they say?

"https://rpc-2.testnet.japanopenchain.org:8545"
],
"average_blocktime_ms": 16200,
"symbol": "JOC"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JOCT

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (1)
config/networks/other-l1s.json (1)

259-259: Fuse Spark RPC URL whitespace fixed.

Prior issue resolved; entry no longer has leading space. Thanks.

🧹 Nitpick comments (1)
config/networks/other-l1s.json (1)

276-276: Align or annotate average_blocktime_ms — value (5000 ms) conflicts with observed ~14.3s.

Official docs don't publish a recommended block time; the block explorer reports ~14.3s average. Action: either set average_blocktime_ms to 14300 (ms) or remove the field; if retained, add provenance (e.g., "sourced from Japan Open Chain block explorer — retrieved YYYY‑MM‑DD") to avoid misleading ETAs.
File: config/networks/other-l1s.json — line 276

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 095cb13 and e485eaf.

📒 Files selected for processing (1)
  • config/networks/other-l1s.json (10 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: boostsecurity - boostsecurityio/semgrep-pro
  • GitHub Check: Redirect rules - openzeppelin-relayer
  • GitHub Check: Header rules - openzeppelin-relayer
  • GitHub Check: Pages changed - openzeppelin-relayer
  • GitHub Check: Analyze (rust)
🔇 Additional comments (4)
config/networks/other-l1s.json (4)

10-10: Formatting-only tweaks look good.

Inline arrays and minor list reflows introduce no semantic change. LGTM.

Also applies to: 27-33, 39-39, 63-65, 75-75, 79-79, 90-90, 111-111, 115-115, 122-123, 142-142, 146-148, 154-154, 242-242, 246-246, 254-255, 259-259


265-292: Guardrails: uniqueness and required fields verified.
Validation (JSON parse, duplicate chain_id/network, non-empty rpc_urls, required keys) ran against config/networks/other-l1s.json — no duplicates or missing fields found.


281-292: Testnet entry: confirm inheritance support; align fields for consistency.

  • Is the custom field "from": "japan-open-chain" supported by the config loader? If not, it may be silently ignored.
  • Consider mirroring features (e.g., ["eip1559"]) and adding required_confirmations (likely 1) for parity with mainnet.
  • Minor nit: drop trailing slash in explorer URL for consistency with the rest.

Proposed diff:

   {
-      "from": "japan-open-chain",
       "type": "evm",
       "network": "japan-open-chain-testnet",
       "chain_id": 10081,
-      "explorer_urls": ["https://explorer.testnet.japanopenchain.org/"],
+      "explorer_urls": ["https://explorer.testnet.japanopenchain.org"],
       "is_testnet": true,
+      "required_confirmations": 1,
       "rpc_urls": [
         "https://rpc-1.testnet.japanopenchain.org:8545",
         "https://rpc-2.testnet.japanopenchain.org:8545"
       ],
+      "features": ["eip1559"],
       "symbol": "JOCT"
   }

Repo scan to verify "from" support (excludes JSON):


265-279: Japan Open Chain (mainnet) — add :8545 to rpc-3; confirm confirmations & avg block time

File: config/networks/other-l1s.json Lines: 265-279

  • rpc-3 is listed without :8545 but official endpoints show rpc-3 on port 8545 — apply diff below.
  • Confirmed: chain_id = 81; EIP-1559 supported (London HF); explorer base URL correct.
  • Not documented: average_blocktime_ms=5000 and required_confirmations=1. Measure average block time from the explorer API or remove/adjust; set confirmations per your risk policy (common: 1–3 for UX, 6–12+ for high-value transfers).
       "rpc_urls": [
         "https://rpc-1.japanopenchain.org:8545",
         "https://rpc-2.japanopenchain.org:8545",
-        "https://rpc-3.japanopenchain.org"
+        "https://rpc-3.japanopenchain.org:8545"
       ],

Copy link
Collaborator

@zeljkoX zeljkoX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LuisUrrutia LuisUrrutia merged commit 44aaad1 into main Sep 18, 2025
23 checks passed
@LuisUrrutia LuisUrrutia deleted the plat-6549-add-japan-open-chain-support branch September 18, 2025 10:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants