Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
430f2591
Unverified
Commit
430f2591
authored
Sep 27, 2023
by
Michael de Hoog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Base sepolia constants
parent
cf7b329a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
2 deletions
+37
-2
presets.go
indexer/config/presets.go
+16
-0
superchain.go
op-node/rollup/superchain.go
+1
-0
types.ts
packages/sdk/src/interfaces/types.ts
+1
-0
chain-constants.ts
packages/sdk/src/utils/chain-constants.ts
+19
-2
No files found.
indexer/config/presets.go
View file @
430f2591
...
@@ -89,6 +89,22 @@ var Presets = map[int]Preset{
...
@@ -89,6 +89,22 @@ var Presets = map[int]Preset{
L1StartingHeight
:
8410981
,
L1StartingHeight
:
8410981
,
},
},
},
},
84532
:
{
Name
:
"Base Sepolia"
,
ChainConfig
:
ChainConfig
{
Preset
:
84532
,
L1Contracts
:
L1Contracts
{
AddressManager
:
common
.
HexToAddress
(
"0x709c2B8ef4A9feFc629A8a2C1AF424Dc5BD6ad1B"
),
SystemConfigProxy
:
common
.
HexToAddress
(
"0xf272670eb55e895584501d564AfEB048bEd26194"
),
OptimismPortalProxy
:
common
.
HexToAddress
(
"0x49f53e41452C74589E85cA1677426Ba426459e85"
),
L2OutputOracleProxy
:
common
.
HexToAddress
(
"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"
),
L1CrossDomainMessengerProxy
:
common
.
HexToAddress
(
"0xC34855F4De64F1840e5686e64278da901e261f20"
),
L1StandardBridgeProxy
:
common
.
HexToAddress
(
"0xfd0Bf71F60660E2f608ed56e1659C450eB113120"
),
L1ERC721BridgeProxy
:
common
.
HexToAddress
(
"0x21eFD066e581FA55Ef105170Cc04d74386a09190"
),
},
L1StartingHeight
:
4370868
,
},
},
7777777
:
{
7777777
:
{
Name
:
"Zora"
,
Name
:
"Zora"
,
ChainConfig
:
ChainConfig
{
ChainConfig
:
ChainConfig
{
...
...
op-node/rollup/superchain.go
View file @
430f2591
...
@@ -19,6 +19,7 @@ const (
...
@@ -19,6 +19,7 @@ const (
opGoerli
=
420
opGoerli
=
420
opSepolia
=
11155420
opSepolia
=
11155420
baseGoerli
=
84531
baseGoerli
=
84531
baseSepolia
=
84532
baseMainnet
=
8453
baseMainnet
=
8453
pgnMainnet
=
424
pgnMainnet
=
424
pgnSepolia
=
58008
pgnSepolia
=
58008
...
...
packages/sdk/src/interfaces/types.ts
View file @
430f2591
...
@@ -31,6 +31,7 @@ export enum L2ChainID {
...
@@ -31,6 +31,7 @@ export enum L2ChainID {
OPTIMISM_HARDHAT_DEVNET
=
17
,
OPTIMISM_HARDHAT_DEVNET
=
17
,
OPTIMISM_BEDROCK_ALPHA_TESTNET
=
28528
,
OPTIMISM_BEDROCK_ALPHA_TESTNET
=
28528
,
BASE_GOERLI
=
84531
,
BASE_GOERLI
=
84531
,
BASE_SEPOLIA
=
84532
,
BASE_MAINNET
=
8453
,
BASE_MAINNET
=
8453
,
ZORA_GOERLI
=
999
,
ZORA_GOERLI
=
999
,
ZORA_MAINNET
=
7777777
,
ZORA_MAINNET
=
7777777
,
...
...
packages/sdk/src/utils/chain-constants.ts
View file @
430f2591
...
@@ -83,8 +83,9 @@ export const DEPOSIT_CONFIRMATION_BLOCKS: {
...
@@ -83,8 +83,9 @@ export const DEPOSIT_CONFIRMATION_BLOCKS: {
[
L2ChainID
.
OPTIMISM_HARDHAT_LOCAL
]:
2
as
const
,
[
L2ChainID
.
OPTIMISM_HARDHAT_LOCAL
]:
2
as
const
,
[
L2ChainID
.
OPTIMISM_HARDHAT_DEVNET
]:
2
as
const
,
[
L2ChainID
.
OPTIMISM_HARDHAT_DEVNET
]:
2
as
const
,
[
L2ChainID
.
OPTIMISM_BEDROCK_ALPHA_TESTNET
]:
12
as
const
,
[
L2ChainID
.
OPTIMISM_BEDROCK_ALPHA_TESTNET
]:
12
as
const
,
[
L2ChainID
.
BASE_GOERLI
]:
12
as
const
,
[
L2ChainID
.
BASE_GOERLI
]:
25
as
const
,
[
L2ChainID
.
BASE_MAINNET
]:
50
as
const
,
[
L2ChainID
.
BASE_SEPOLIA
]:
25
as
const
,
[
L2ChainID
.
BASE_MAINNET
]:
10
as
const
,
[
L2ChainID
.
ZORA_GOERLI
]:
12
as
const
,
[
L2ChainID
.
ZORA_GOERLI
]:
12
as
const
,
[
L2ChainID
.
ZORA_MAINNET
]:
50
as
const
,
[
L2ChainID
.
ZORA_MAINNET
]:
50
as
const
,
}
}
...
@@ -220,6 +221,22 @@ export const CONTRACT_ADDRESSES: {
...
@@ -220,6 +221,22 @@ export const CONTRACT_ADDRESSES: {
},
},
l2
:
DEFAULT_L2_CONTRACT_ADDRESSES
,
l2
:
DEFAULT_L2_CONTRACT_ADDRESSES
,
},
},
[
L2ChainID
.
BASE_SEPOLIA
]:
{
l1
:
{
AddressManager
:
'
0x709c2B8ef4A9feFc629A8a2C1AF424Dc5BD6ad1B
'
as
const
,
L1CrossDomainMessenger
:
'
0xC34855F4De64F1840e5686e64278da901e261f20
'
as
const
,
L1StandardBridge
:
'
0xfd0Bf71F60660E2f608ed56e1659C450eB113120
'
as
const
,
StateCommitmentChain
:
'
0x0000000000000000000000000000000000000000
'
as
const
,
CanonicalTransactionChain
:
'
0x0000000000000000000000000000000000000000
'
as
const
,
BondManager
:
'
0x0000000000000000000000000000000000000000
'
as
const
,
OptimismPortal
:
'
0x49f53e41452C74589E85cA1677426Ba426459e85
'
as
const
,
L2OutputOracle
:
'
0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254
'
as
const
,
},
l2
:
DEFAULT_L2_CONTRACT_ADDRESSES
,
},
[
L2ChainID
.
BASE_MAINNET
]:
{
[
L2ChainID
.
BASE_MAINNET
]:
{
l1
:
{
l1
:
{
AddressManager
:
'
0x8EfB6B5c4767B09Dc9AA6Af4eAA89F749522BaE2
'
as
const
,
AddressManager
:
'
0x8EfB6B5c4767B09Dc9AA6Af4eAA89F749522BaE2
'
as
const
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment