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
7208a07d
Unverified
Commit
7208a07d
authored
Aug 14, 2023
by
mergify[bot]
Committed by
GitHub
Aug 14, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 08-11-chore_indexer_Nuke_legacy_indexer
parents
84fee143
d8d0e8ab
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
54 deletions
+6
-54
dependabot.yml
.github/dependabot.yml
+3
-42
cli.go
indexer/cli/cli.go
+0
-9
config_test.go
indexer/config/config_test.go
+2
-0
example.env
indexer/example.env
+0
-3
indexer.toml
indexer/indexer.toml
+1
-0
No files found.
.github/dependabot.yml
View file @
7208a07d
...
...
@@ -20,49 +20,10 @@ updates:
directory
:
"
/"
schedule
:
interval
:
daily
time
:
"
16:30"
timezone
:
"
America/New_York"
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/chain-mon"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/core-utils"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/contracts-ts"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/sdk"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/fee-estimation"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
labels
:
-
dependabot
-
package-ecosystem
:
npm
directory
:
"
/packages/common-ts"
schedule
:
interval
:
daily
open-pull-requests-limit
:
10
versioning-strategy
:
auto
labels
:
-
dependabot
...
...
indexer/cli/cli.go
View file @
7208a07d
...
...
@@ -72,15 +72,6 @@ var (
Usage
:
"path to config file"
,
EnvVars
:
[]
string
{
"INDEXER_CONFIG"
},
}
// Not used yet. Use this flag to run legacy app instead
// Remove me after indexer is released
IndexerRefreshFlag
=
&
cli
.
BoolFlag
{
Name
:
"indexer-refresh"
,
Value
:
false
,
Aliases
:
[]
string
{
"i"
},
Usage
:
"run new unreleased indexer by passing in flag"
,
EnvVars
:
[]
string
{
"INDEXER_REFRESH"
},
}
)
// make a instance method on Cli called Run that runs cli
...
...
indexer/config/config_test.go
View file @
7208a07d
...
...
@@ -26,6 +26,7 @@ func TestLoadConfig(t *testing.T) {
port = 5432
user = "postgres"
password = "postgres"
name = "indexer"
[api]
host = "127.0.0.1"
...
...
@@ -54,6 +55,7 @@ func TestLoadConfig(t *testing.T) {
require
.
Equal
(
t
,
conf
.
DB
.
Port
,
5432
)
require
.
Equal
(
t
,
conf
.
DB
.
User
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
Password
,
"postgres"
)
require
.
Equal
(
t
,
conf
.
DB
.
Name
,
"indexer"
)
require
.
Equal
(
t
,
conf
.
API
.
Host
,
"127.0.0.1"
)
require
.
Equal
(
t
,
conf
.
API
.
Port
,
8080
)
require
.
Equal
(
t
,
conf
.
Metrics
.
Host
,
"127.0.0.1"
)
...
...
indexer/example.env
View file @
7208a07d
...
...
@@ -2,8 +2,5 @@
INDEXER_L1_ETH_RPC=FILL_ME_IN
INDEXER_L2_ETH_RPC=FILL_ME_IN
# temporary env variable to enable to new indexer
INDEXER_REFRESH=1
# Fill in to use prisma studio ui with a db other than the default
# DATABASE_URL=FILL_ME_IN
indexer/indexer.toml
View file @
7208a07d
...
...
@@ -10,6 +10,7 @@ host = "127.0.0.1"
port
=
5432
user
=
"postgres"
password
=
"postgres"
name
=
"indexer"
[api]
host
=
"127.0.0.1"
...
...
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