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
8a9ae4f4
Unverified
Commit
8a9ae4f4
authored
Aug 16, 2023
by
Ethen Pociask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[indexer.docs] Updated TestLoadConfig_WithoutPreset
parent
7faa690a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
config.go
indexer/config/config.go
+5
-5
config_test.go
indexer/config/config_test.go
+6
-1
No files found.
indexer/config/config.go
View file @
8a9ae4f4
...
@@ -24,11 +24,11 @@ type Config struct {
...
@@ -24,11 +24,11 @@ type Config struct {
// fetch this via onchain config from RPCsConfig and remove from config in future
// fetch this via onchain config from RPCsConfig and remove from config in future
type
L1Contracts
struct
{
type
L1Contracts
struct
{
OptimismPortal
common
.
Address
OptimismPortal
common
.
Address
`toml:"optimism-portal"`
L2OutputOracle
common
.
Address
L2OutputOracle
common
.
Address
`toml:"l2-output-oracle"`
L1CrossDomainMessenger
common
.
Address
L1CrossDomainMessenger
common
.
Address
`toml:"l1-cross-domain-messenger"`
L1StandardBridge
common
.
Address
L1StandardBridge
common
.
Address
`toml:"l1-standard-bridge"`
L1ERC721Bridge
common
.
Address
L1ERC721Bridge
common
.
Address
`toml:"l1-erc721-bridge"`
// Some more contracts -- ProxyAdmin, SystemConfig, etcc
// Some more contracts -- ProxyAdmin, SystemConfig, etcc
// Ignore the auxiliary contracts?
// Ignore the auxiliary contracts?
...
...
indexer/config/config_test.go
View file @
8a9ae4f4
...
@@ -80,7 +80,12 @@ func TestLoadConfig_WithoutPreset(t *testing.T) {
...
@@ -80,7 +80,12 @@ func TestLoadConfig_WithoutPreset(t *testing.T) {
testData
:=
`
testData
:=
`
[chain]
[chain]
l1contracts = { OptimismPortal = "0x4205Fc579115071764c7423A4f12eDde41f106Ed", L2OutputOracle = "0x42097868233d1aa22e815a266982f2cf17685a27", L1CrossDomainMessenger = "0x420ce71c97B33Cc4729CF772ae268934F7ab5fA1", L1StandardBridge = "0x4209fc46f92E8a1c0deC1b1747d010903E884bE1", L1ERC721Bridge ="0x420749f83b81B301cAb5f48EB8516B986DAef23D" }
[chain.l1-contracts]
optimism-portal = "0x4205Fc579115071764c7423A4f12eDde41f106Ed"
l2-output-oracle = "0x42097868233d1aa22e815a266982f2cf17685a27"
l1-cross-domain-messenger = "0x420ce71c97B33Cc4729CF772ae268934F7ab5fA1"
l1-standard-bridge = "0x4209fc46f92E8a1c0deC1b1747d010903E884bE1"
l1-erc721-bridge = "0x420749f83b81B301cAb5f48EB8516B986DAef23D"
[rpcs]
[rpcs]
l1-rpc = "https://l1.example.com"
l1-rpc = "https://l1.example.com"
...
...
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