-
Notifications
You must be signed in to change notification settings - Fork 0
Update .env.example #67
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
Open
luiz-lvj
wants to merge
1
commit into
main
Choose a base branch
from
env-example
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,33 @@ | ||
| ARBITRUM_RPC_URL= # Arbitrum Sepolia URL | ||
| ETHEREUM_RPC_URL= # Ethereum Sepolia URL | ||
| OPTIMISM_RPC_URL= | ||
| LINEA_SEPOLIA= # Ethereum Sepolia URL | ||
|
|
||
| ARBITRUM_SEPOLIA_RPC_URL= | ||
| ETHEREUM_SEPOLIA_RPC_URL= | ||
| ZKSYNC_SEPOLIA_RPC_URL= | ||
| OPTIMISM_SEPOLIA_RPC_URL= | ||
| LINEA_SEPOLIA_RPC_URL= | ||
| SCROLL_SEPOLIA_RPC_URL= | ||
|
|
||
|
|
||
| OWNER= | ||
|
|
||
| DEPLOYER_PRIVATE_KEY= | ||
|
|
||
| ETHEREUM_SEPOLIA_CHAIN_ID=11155111 | ||
|
|
||
| # Arbitrum Envs | ||
| ARBITRUM_SEPOLIA_CHAIN_ID=421614 | ||
| ARBITRUM_SEPOLIA_OUTBOX=0x65f07C7D521164a4d5DaC6eB8Fac8DA067A3B78F | ||
| ARBITRUM_SEPOLIA_ROOTS_SLOT=3 | ||
|
|
||
| #Linea Envs | ||
| LINEA_SEPOLIA_CHAIN_ID=59141 | ||
| LINEA_SEPOLIA_ROLLUP=0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5 | ||
| LINEA_SEPOLIA_STATE_ROOT_HASHES_SLOT=282 | ||
|
|
||
| # Scroll Envs | ||
| SCROLL_SEPOLIA_CHAIN_ID=534351 | ||
| SCROLL_CHAIN_SEPOLIA=0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0 | ||
| SCROLL_SEPOLIA_FINALIZED_STATE_ROOT_SLOT=158 | ||
|
|
||
| # Optimism Envs | ||
| OPTIMISM_SEPOLIA_CHAIN_ID=11155420 | ||
| OPTIMISM_SEPOLIA_ANCHOR_STATE_REGISTRY=0xa1Cec548926eb5d69aa3B7B57d371EdBdD03e64b | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
Ethereum Sepolia chain ID 11155111 official💡 Result:
Ethereum Sepolia testnet’s official EIP-155 Chain ID is
11155111(and the Network ID is also11155111). [1][2]🌐 Web query:
Arbitrum Sepolia chain ID 421614 official outbox address💡 Result:
Arbitrum Sepolia (chain ID 421614) Outbox (L1, on Ethereum Sepolia) official address:
0x65f07C7D521164a4d5DaC6eB8Fac8DA067A3B78F[1][2]🌐 Web query:
Linea Sepolia chain ID 59141 rollup contract address official💡 Result:
Sources: [1] [2]
🌐 Web query:
Scroll Sepolia chain ID 534351 contract addresses official💡 Result:
Official Scroll Sepolia (chain ID 534351) contract addresses:
Network
https://sepolia-rpc.scroll.io/; Explorer:https://sepolia-blockscout.scroll.io[1]Core contracts (Scroll Sepolia)
0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0[1]0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a[1]0x9aD3c5617eCAa556d6E166787A97081907171230[1]Advanced bridge contracts (Scroll Sepolia)
0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A[1]0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d[1]0x8A54A2347Da2562917304141ab67324615e9866d[1]0x91e8ADDFe1358aCa5314c644312d38237fC1101C[1]0x3dA0BF44814cfC678376b3311838272158211695[1](If you meant the “Custom Gateway” addresses used in Scroll’s ERC20 custom-gateway guide)
0x31C994F2017E71b82fd4D8118F140c81215bbb37[2]0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf[2]Sources: Scroll docs “Scroll Contracts” (includes Scroll Sepolia section) [1], Scroll docs custom gateway guide [2].
🌐 Web query:
Optimism Sepolia chain ID 11155420 anchor state registry official💡 Result:
11155420(official Optimism docs). [1]AnchorStateRegistrycontract stores the latest “anchor” state per dispute-game type (used to initialize new FaultDisputeGame instances from a recent accepted state). [2]AnchorStateRegistryProxy. [3]Sources: [1] [2] [3]
Fix incorrect Linea Sepolia Rollup contract address.
Chain IDs are correct, but the Linea Sepolia Rollup address is incorrect and will cause failures. Update line 23 from
0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5to the official address0xd19d4B5d358258f05D7B411E21A1460D11B0876F.Verify the Optimism Sepolia AnchorStateRegistry address (
0xa1Cec548926eb5d69aa3B7B57d371EdBdD03e64b) against the superchain-registry to ensure it matches the current official value.🧰 Tools
🪛 dotenv-linter (4.0.0)
[warning] 28-28: [UnorderedKey] The SCROLL_CHAIN_SEPOLIA key should go before the SCROLL_SEPOLIA_CHAIN_ID key
(UnorderedKey)
[warning] 33-33: [UnorderedKey] The OPTIMISM_SEPOLIA_ANCHOR_STATE_REGISTRY key should go before the OPTIMISM_SEPOLIA_CHAIN_ID key
(UnorderedKey)
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are wrong, as the Sepolia Rollup contract address is correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
💡 Result:
0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5is an official Linea address, but it is the L1 Message Service contract on Ethereum Sepolia (for Linea Sepolia), not the Rollup contract. [1]The official “Linea Rollup and L1 Message Service” contract address for Linea Sepolia is:
0xd19d4B5d358258f05D7B411E21A1460D11B0876F. [1]🌐 Web query:
💡 Result:
On Linea, “Rollup” and “L1 Message Service” refer to different responsibilities on the L1 (finalization layer), even though on mainnet they’re deployed together in one system contract.
What the “Rollup” (finalization) part does
The finalization contract (often referred to as the Linea Rollup) is the L1 contract that:
What the “L1 Message Service” part does
The message service is the L1-side component of Linea’s native cross-chain messaging/bridge that:
Why you may see different “contracts” on Sepolia
If you tell me which two contract addresses you’re comparing (and which explorer/network you’re looking at), I can map them to the exact deployment(s) and ABI you should use.
Citations:
🏁 Script executed:
Length of output: 39450
🌐 Web query:
💡 Result:
0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5is the LineaRollup (proxy) contract on Ethereum Sepolia (L1) (often used to track/finalize Linea L2 state on L1). Its implementation is0x0bF527ac405443063dA85A1103ceC4D52b36E62d. [1][2]stateRootHasheslives: In the implementation,stateRootHashesis declared as:mapping(uint256 blockNumber => bytes32 stateRootHash) public stateRootHashes;[2]Linea’s docs describe this mapping as “the most recent L2 state root hash mapped by block number.” [3]
stateRootHashes(<l2BlockNumber>)on the proxy address (0xB218…) to get thebytes32state root for that finalized L2 block number. [2][3]Sources: [1] [2] [3]
@luiz-lvj, you're absolutely right, and I apologize for the error.0xB218f8A4Bc926cF1cA7b3423c154a0D627Bdb7E5 is the LineaRollup (proxy) contract on Ethereum Sepolia, and it does implement the stateRootHashes mapping that your codebase requires. The address in your
.env.examplefile is correct.Thank you for the correction!