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
e0b2396c
Unverified
Commit
e0b2396c
authored
Aug 16, 2023
by
mergify[bot]
Committed by
GitHub
Aug 16, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into fix/deploy-cleanup-docs
parents
2c0122ba
75904fca
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
488 additions
and
4127 deletions
+488
-4127
quick-poets-heal.md
.changeset/quick-poets-heal.md
+5
-0
tall-shirts-wonder.md
.changeset/tall-shirts-wonder.md
+5
-0
config.yml
.circleci/config.yml
+31
-67
tag-service.yml
.github/workflows/tag-service.yml
+1
-1
go.mod
go.mod
+1
-0
go.sum
go.sum
+4
-0
api.go
indexer/api/api.go
+1
-1
docs.go
indexer/api/routes/docs.go
+22
-0
routes.go
indexer/api/routes/routes.go
+4
-1
cli.go
indexer/cli/cli.go
+1
-7
config.go
indexer/config/config.go
+0
-3
docker-compose.yml
indexer/docker-compose.yml
+1
-1
setup.go
indexer/e2e_tests/setup.go
+0
-4
indexer.toml
indexer/indexer.toml
+0
-8
package.json
packages/chain-mon/package.json
+7
-7
tsconfig.json
packages/chain-mon/tsconfig.json
+2
-1
getting-started.json
...ages/contracts-bedrock/deploy-config/getting-started.json
+3
-1
package.json
packages/core-utils/package.json
+4
-4
etherscan.ts
packages/core-utils/src/etherscan.ts
+1
-1
pnpm-lock.yaml
pnpm-lock.yaml
+395
-4020
No files found.
.changeset/quick-poets-heal.md
0 → 100644
View file @
e0b2396c
---
'
@eth-optimism/core-utils'
:
patch
---
Upgraded npm dependencies to latest
.changeset/tall-shirts-wonder.md
0 → 100644
View file @
e0b2396c
---
'
@eth-optimism/chain-mon'
:
patch
---
Upgraded npm dependencies to latest
.circleci/config.yml
View file @
e0b2396c
...
@@ -115,20 +115,23 @@ jobs:
...
@@ -115,20 +115,23 @@ jobs:
name
:
Restore PNPM Package Cache
name
:
Restore PNPM Package Cache
keys
:
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
run
:
# Fetch node_modules into the pnpm store
name
:
Install dependencies
# This will cache node_modules based on pnpm-lock so other steps can instantly install them with `pnpm install --prefer-offline`
command
:
pnpm install --frozen-lockfile
# --prefer-offline installs node_modules instantly by just reading from cache if it exists rather than fetching from network
# when installing node_modules pnpm simply adds symlinks instead of copying the files which is why it is pretty much instant to run --prefer-offline
# this allows a caching strategy of only checking pnpm-lockfile so we don't have to keep it in sync with our packages
# For more information see https://pnpm.io/cli/fetch
-
run
:
name
:
Fetch dependencies
command
:
pnpm fetch --frozen-lockfile --prefer-offline
-
save_cache
:
-
save_cache
:
name
:
Save PNPM Package Cache
name
:
Save PNPM Package Cache
key
:
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
key
:
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
paths
:
paths
:
-
"
node_modules"
-
"
node_modules"
-
"
packages/chain-mon/node_modules"
-
run
:
-
"
packages/common-ts/node_modules"
name
:
Install dependencies
-
"
packages/contracts-bedrock/node_modules"
command
:
pnpm install --frozen-lockfile --offline
-
"
packages/core-utils/node_modules"
-
"
packages/sdk/node_modules"
-
"
packages/contracts-ts/node_modules"
-
run
:
-
run
:
name
:
print forge version
name
:
print forge version
command
:
forge --version
command
:
forge --version
...
@@ -469,6 +472,10 @@ jobs:
...
@@ -469,6 +472,10 @@ jobs:
name
:
Restore PNPM Package Cache
name
:
Restore PNPM Package Cache
keys
:
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
check-changed
:
-
check-changed
:
patterns
:
contracts-bedrock
patterns
:
contracts-bedrock
-
run
:
-
run
:
...
@@ -476,51 +483,6 @@ jobs:
...
@@ -476,51 +483,6 @@ jobs:
command
:
pnpm validate-spacers
command
:
pnpm validate-spacers
working_directory
:
packages/contracts-bedrock
working_directory
:
packages/contracts-bedrock
bedrock-echidna-build
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
steps
:
-
checkout
-
attach_workspace
:
{
at
:
"
."
}
-
check-changed
:
patterns
:
contracts-bedrock
-
run
:
name
:
Compile with metadata hash
command
:
pnpm clean && pnpm build:with-metadata
working_directory
:
packages/contracts-bedrock
-
persist_to_workspace
:
root
:
.
paths
:
-
"
node_modules"
-
packages/contracts-bedrock
bedrock-echidna-run
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
parameters
:
echidna_target
:
description
:
Which echidna fuzz contract to run
type
:
string
size
:
description
:
Custom resource class size for the run
type
:
string
default
:
large
resource_class
:
<<parameters.size>>
steps
:
-
checkout
-
attach_workspace
:
{
at
:
"
."
}
-
restore_cache
:
name
:
Restore PNPM Package Cache
keys
:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
patterns
:
contracts-bedrock
-
run
:
name
:
Echidna Fuzz <<parameters.echidna_target>>
command
:
pnpm echidna:<<parameters.echidna_target>>
working_directory
:
packages/contracts-bedrock
no_output_timeout
:
15m
op-bindings-build
:
op-bindings-build
:
docker
:
docker
:
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
-
image
:
us-docker.pkg.dev/oplabs-tools-artifacts/images/ci-builder:latest
...
@@ -556,6 +518,10 @@ jobs:
...
@@ -556,6 +518,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm-lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
<<parameters.package_name>>,<<parameters.dependencies>>
patterns
:
<<parameters.package_name>>,<<parameters.dependencies>>
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Lint
name
:
Lint
command
:
pnpm lint && git diff --exit-code
command
:
pnpm lint && git diff --exit-code
...
@@ -581,6 +547,10 @@ jobs:
...
@@ -581,6 +547,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Check generated and build
name
:
Check generated and build
command
:
pnpm generate:check
command
:
pnpm generate:check
...
@@ -599,6 +569,10 @@ jobs:
...
@@ -599,6 +569,10 @@ jobs:
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
pnpm-packages-v2-{{ checksum "pnpm.lock.yaml" }}
-
check-changed
:
-
check-changed
:
patterns
:
sdk,contracts-bedrock,contracts
patterns
:
sdk,contracts-bedrock,contracts
# populate node modules from the cache
-
run
:
name
:
Install dependencies
command
:
pnpm install --frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
anvil-l1
name
:
anvil-l1
background
:
true
background
:
true
...
@@ -643,22 +617,13 @@ jobs:
...
@@ -643,22 +617,13 @@ jobs:
-
checkout
-
checkout
-
check-changed
:
-
check-changed
:
patterns
:
specs/(.*)\.md$
patterns
:
specs/(.*)\.md$
# TODO remove me after ci builder updated
-
run
:
-
run
:
name
:
Install pnpm package manager
name
:
Install pnpm package manager
command
:
|
command
:
|
npm i pnpm --global
npm i pnpm --global
# TODO remove me after ci builder updated
# A github dep clones-with-immutable-args is installed via github
# packages installed via npm via github automatically run postpack scripts
# their postpack script happens to use yarn so we need it here
-
run
:
name
:
Install yarn package manager
command
:
|
npm i yarn@1 --global
-
run
:
-
run
:
name
:
pnpm dev deps
name
:
pnpm dev deps
command
:
pnpm install
command
:
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
specs toc
name
:
specs toc
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
command
:
pnpm lint:specs:toc && git diff --exit-code ./specs
...
@@ -671,7 +636,6 @@ jobs:
...
@@ -671,7 +636,6 @@ jobs:
image
:
ubuntu-2204:2022.07.1
image
:
ubuntu-2204:2022.07.1
steps
:
steps
:
-
checkout
-
checkout
# TODO remove me after ci builder updated
-
run
:
-
run
:
name
:
Install pnpm package manager
name
:
Install pnpm package manager
command
:
|
command
:
|
...
@@ -679,7 +643,7 @@ jobs:
...
@@ -679,7 +643,7 @@ jobs:
-
run
:
-
run
:
name
:
Install node_modules
name
:
Install node_modules
command
:
|
command
:
|
pnpm install
pnpm install
--frozen-lockfile --prefer-offline
-
run
:
-
run
:
name
:
Lint check
name
:
Lint check
command
:
|
command
:
|
...
@@ -981,7 +945,7 @@ jobs:
...
@@ -981,7 +945,7 @@ jobs:
-
run
:
-
run
:
name
:
Install and build
name
:
Install and build
command
:
|
command
:
|
pnpm install && pnpm build
pnpm install
--frozen-lockfile --prefer-offline
&& pnpm build
-
run
:
-
run
:
name
:
generate cannon prestate
name
:
generate cannon prestate
command
:
make cannon-prestate
command
:
make cannon-prestate
...
...
.github/workflows/tag-service.yml
View file @
e0b2396c
...
@@ -42,7 +42,7 @@ jobs:
...
@@ -42,7 +42,7 @@ jobs:
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Fetch tags
-
name
:
Fetch tags
run
:
git fetch --tags origin
run
:
git fetch --tags origin
--force
-
name
:
Setup Python
3.10
-
name
:
Setup Python
3.10
uses
:
actions/setup-python@v4
uses
:
actions/setup-python@v4
with
:
with
:
...
...
go.mod
View file @
e0b2396c
...
@@ -11,6 +11,7 @@ require (
...
@@ -11,6 +11,7 @@ require (
github.com/ethereum/go-ethereum v1.12.0
github.com/ethereum/go-ethereum v1.12.0
github.com/fsnotify/fsnotify v1.6.0
github.com/fsnotify/fsnotify v1.6.0
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/chi/v5 v5.0.10
github.com/go-chi/docgen v1.2.0
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb
github.com/google/go-cmp v0.5.9
github.com/google/go-cmp v0.5.9
github.com/google/gofuzz v1.2.1-0.20220503160820-4a35382e8fc8
github.com/google/gofuzz v1.2.1-0.20220503160820-4a35382e8fc8
...
...
go.sum
View file @
e0b2396c
...
@@ -192,8 +192,12 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8=
...
@@ -192,8 +192,12 @@ github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8=
github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/gliderlabs/ssh v0.1.1/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98=
github.com/go-check/check v0.0.0-20180628173108-788fd7840127/go.mod h1:9ES+weclKsC9YodN5RgxqK/VD9HM9JsCSh7rNhMZE98=
github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs=
github.com/go-chi/chi/v5 v5.0.0/go.mod h1:BBug9lr0cqtdAhsu6R4AAdvufI0/XBzAQSsUqJpoZOs=
github.com/go-chi/chi/v5 v5.0.1/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.0.10 h1:rLz5avzKpjqxrYwXNfmjkrYYXOyLJd37pz53UFHC6vk=
github.com/go-chi/chi/v5 v5.0.10 h1:rLz5avzKpjqxrYwXNfmjkrYYXOyLJd37pz53UFHC6vk=
github.com/go-chi/chi/v5 v5.0.10/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/chi/v5 v5.0.10/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
github.com/go-chi/docgen v1.2.0 h1:da0Nq2PKU9W9pSOTUfVrKI1vIgTGpauo9cfh4Iwivek=
github.com/go-chi/docgen v1.2.0/go.mod h1:G9W0G551cs2BFMSn/cnGwX+JBHEloAgo17MBhyrnhPI=
github.com/go-chi/render v1.0.1/go.mod h1:pq4Rr7HbnsdaeHagklXub+p6Wd16Af5l9koip1OvJns=
github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
...
...
indexer/api/api.go
View file @
e0b2396c
...
@@ -21,7 +21,7 @@ func NewApi(bv database.BridgeTransfersView, logger log.Logger) *Api {
...
@@ -21,7 +21,7 @@ func NewApi(bv database.BridgeTransfersView, logger log.Logger) *Api {
r
:=
chi
.
NewRouter
()
r
:=
chi
.
NewRouter
()
h
:=
routes
.
NewRoutes
(
logger
,
bv
)
h
:=
routes
.
NewRoutes
(
logger
,
bv
,
r
)
api
:=
&
Api
{
Router
:
r
}
api
:=
&
Api
{
Router
:
r
}
...
...
indexer/api/routes/docs.go
0 → 100644
View file @
e0b2396c
package
routes
import
(
"net/http"
"github.com/go-chi/docgen"
)
func
(
h
Routes
)
DocsHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
w
.
Header
()
.
Set
(
"Content-Type"
,
"text/plain"
)
w
.
WriteHeader
(
http
.
StatusOK
)
docs
:=
docgen
.
MarkdownRoutesDoc
(
h
.
Router
,
docgen
.
MarkdownOpts
{
ProjectPath
:
"github.com/ethereum-optimism/optimism/indexer"
,
// Intro text included at the top of the generated markdown file.
Intro
:
"Generated documentation for Optimism indexer"
,
})
_
,
err
:=
w
.
Write
([]
byte
(
docs
))
if
err
!=
nil
{
h
.
Logger
.
Error
(
"error writing docs"
,
"err"
,
err
)
http
.
Error
(
w
,
"Internal server error fetching docs"
,
http
.
StatusInternalServerError
)
}
}
indexer/api/routes/routes.go
View file @
e0b2396c
...
@@ -3,16 +3,19 @@ package routes
...
@@ -3,16 +3,19 @@ package routes
import
(
import
(
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/log"
"github.com/go-chi/chi/v5"
)
)
type
Routes
struct
{
type
Routes
struct
{
Logger
log
.
Logger
Logger
log
.
Logger
BridgeTransfersView
database
.
BridgeTransfersView
BridgeTransfersView
database
.
BridgeTransfersView
Router
*
chi
.
Mux
}
}
func
NewRoutes
(
logger
log
.
Logger
,
bv
database
.
BridgeTransfersView
)
Routes
{
func
NewRoutes
(
logger
log
.
Logger
,
bv
database
.
BridgeTransfersView
,
r
*
chi
.
Mux
)
Routes
{
return
Routes
{
return
Routes
{
Logger
:
logger
,
Logger
:
logger
,
BridgeTransfersView
:
bv
,
BridgeTransfersView
:
bv
,
Router
:
r
,
}
}
}
}
indexer/cli/cli.go
View file @
e0b2396c
...
@@ -25,11 +25,7 @@ type Cli struct {
...
@@ -25,11 +25,7 @@ type Cli struct {
}
}
func
runIndexer
(
ctx
*
cli
.
Context
)
error
{
func
runIndexer
(
ctx
*
cli
.
Context
)
error
{
logger
:=
log
.
NewLogger
(
log
.
CLIConfig
{
logger
:=
log
.
NewLogger
(
log
.
ReadCLIConfig
(
ctx
))
Level
:
"warn"
,
Color
:
false
,
Format
:
"terminal"
,
})
configPath
:=
ctx
.
String
(
ConfigFlag
.
Name
)
configPath
:=
ctx
.
String
(
ConfigFlag
.
Name
)
cfg
,
err
:=
config
.
LoadConfig
(
logger
,
configPath
)
cfg
,
err
:=
config
.
LoadConfig
(
logger
,
configPath
)
...
@@ -38,8 +34,6 @@ func runIndexer(ctx *cli.Context) error {
...
@@ -38,8 +34,6 @@ func runIndexer(ctx *cli.Context) error {
return
err
return
err
}
}
logger
=
log
.
NewLogger
(
cfg
.
Logger
)
db
,
err
:=
database
.
NewDB
(
cfg
.
DB
)
db
,
err
:=
database
.
NewDB
(
cfg
.
DB
)
if
err
!=
nil
{
if
err
!=
nil
{
...
...
indexer/config/config.go
View file @
e0b2396c
...
@@ -6,8 +6,6 @@ import (
...
@@ -6,8 +6,6 @@ import (
"reflect"
"reflect"
"github.com/BurntSushi/toml"
"github.com/BurntSushi/toml"
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common"
geth_log
"github.com/ethereum/go-ethereum/log"
geth_log
"github.com/ethereum/go-ethereum/log"
"github.com/joho/godotenv"
"github.com/joho/godotenv"
...
@@ -22,7 +20,6 @@ type Config struct {
...
@@ -22,7 +20,6 @@ type Config struct {
DB
DBConfig
DB
DBConfig
API
APIConfig
API
APIConfig
Metrics
MetricsConfig
Metrics
MetricsConfig
Logger
log
.
CLIConfig
}
}
// 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
...
...
indexer/docker-compose.yml
View file @
e0b2396c
...
@@ -101,7 +101,7 @@ services:
...
@@ -101,7 +101,7 @@ services:
gateway-frontend
:
gateway-frontend
:
command
:
pnpm nx start @gateway/frontend --host 0.0.0.0 --port
5173
command
:
pnpm nx start @gateway/frontend --host 0.0.0.0 --port
5173
# Change tag to `latest` after https://github.com/ethereum-optimism/gateway/pull/2541 merges
# Change tag to `latest` after https://github.com/ethereum-optimism/gateway/pull/2541 merges
image
:
ethereumoptimism/gateway-frontend:
0687c408e4f85cbe81acf7a197e861df8c7282df
image
:
ethereumoptimism/gateway-frontend:
latest
ports
:
ports
:
-
5173:5173
-
5173:5173
healthcheck
:
healthcheck
:
...
...
indexer/e2e_tests/setup.go
View file @
e0b2396c
...
@@ -16,7 +16,6 @@ import (
...
@@ -16,7 +16,6 @@ import (
op_e2e
"github.com/ethereum-optimism/optimism/op-e2e"
op_e2e
"github.com/ethereum-optimism/optimism/op-e2e"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testlog"
op_log
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/log"
...
@@ -60,9 +59,6 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
...
@@ -60,9 +59,6 @@ func createE2ETestSuite(t *testing.T) E2ETestSuite {
// Indexer Configuration and Start
// Indexer Configuration and Start
indexerCfg
:=
config
.
Config
{
indexerCfg
:=
config
.
Config
{
Logger
:
op_log
.
CLIConfig
{
Level
:
"warn"
,
},
DB
:
config
.
DBConfig
{
DB
:
config
.
DBConfig
{
Host
:
"127.0.0.1"
,
Host
:
"127.0.0.1"
,
Port
:
5432
,
Port
:
5432
,
...
...
indexer/indexer.toml
View file @
e0b2396c
...
@@ -22,11 +22,3 @@ port = 8080
...
@@ -22,11 +22,3 @@ port = 8080
host
=
"127.0.0.1"
host
=
"127.0.0.1"
port
=
7300
port
=
7300
[logger]
# Log level: trace, debug, info, warn, error, crit. Capitals are accepted too.
level
=
"info"
# Color the log output. Defaults to true if terminal is detected.
color
=
true
# Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty'
format
=
"terminal"
packages/chain-mon/package.json
View file @
e0b2396c
...
@@ -38,21 +38,21 @@
...
@@ -38,21 +38,21 @@
"url"
:
"https://github.com/ethereum-optimism/optimism.git"
"url"
:
"https://github.com/ethereum-optimism/optimism.git"
},
},
"dependencies"
:
{
"dependencies"
:
{
"@eth-optimism/common-ts"
:
"
0.8.3
"
,
"@eth-optimism/common-ts"
:
"
workspace:*
"
,
"@eth-optimism/contracts-bedrock"
:
"
0.16.0
"
,
"@eth-optimism/contracts-bedrock"
:
"
workspace:*
"
,
"@eth-optimism/contracts-periphery"
:
"1.0.8"
,
"@eth-optimism/contracts-periphery"
:
"1.0.8"
,
"@eth-optimism/core-utils"
:
"
0.12.2
"
,
"@eth-optimism/core-utils"
:
"
workspace:*
"
,
"@eth-optimism/sdk"
:
"
3.1.0
"
,
"@eth-optimism/sdk"
:
"
workspace:*
"
,
"@types/dateformat"
:
"^5.0.0"
,
"@types/dateformat"
:
"^5.0.0"
,
"chai-as-promised"
:
"^7.1.1"
,
"chai-as-promised"
:
"^7.1.1"
,
"dateformat"
:
"^4.5.1"
,
"dateformat"
:
"^4.5.1"
,
"dotenv"
:
"^16.
1.4
"
,
"dotenv"
:
"^16.
3.1
"
,
"ethers"
:
"^5.7.
0
"
"ethers"
:
"^5.7.
2
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@ethersproject/abstract-provider"
:
"^5.7.0"
,
"@ethersproject/abstract-provider"
:
"^5.7.0"
,
"@nomiclabs/hardhat-ethers"
:
"^2.0.6"
,
"@nomiclabs/hardhat-ethers"
:
"^2.0.6"
,
"@nomiclabs/hardhat-waffle"
:
"^2.0.
3
"
,
"@nomiclabs/hardhat-waffle"
:
"^2.0.
6
"
,
"hardhat"
:
"^2.9.6"
,
"hardhat"
:
"^2.9.6"
,
"ts-node"
:
"^10.9.1"
,
"ts-node"
:
"^10.9.1"
,
"tsx"
:
"^3.12.7"
"tsx"
:
"^3.12.7"
...
...
packages/chain-mon/tsconfig.json
View file @
e0b2396c
{
{
"extends"
:
"../../tsconfig.json"
,
"extends"
:
"../../tsconfig.json"
,
"compilerOptions"
:
{
"compilerOptions"
:
{
"outDir"
:
"./dist"
"outDir"
:
"./dist"
,
"skipLibCheck"
:
true
},
},
"include"
:
[
"include"
:
[
"package.json"
,
"package.json"
,
...
...
packages/contracts-bedrock/deploy-config/getting-started.json
View file @
e0b2396c
...
@@ -52,5 +52,7 @@
...
@@ -52,5 +52,7 @@
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"l2GenesisRegolithTimeOffset"
:
"0x0"
,
"eip1559Denominator"
:
50
,
"eip1559Denominator"
:
50
,
"eip1559Elasticity"
:
10
"eip1559Elasticity"
:
10
,
"systemConfigStartBlock"
:
0
}
}
packages/core-utils/package.json
View file @
e0b2396c
...
@@ -43,13 +43,13 @@
...
@@ -43,13 +43,13 @@
"@ethersproject/keccak256"
:
"^5.7.0"
,
"@ethersproject/keccak256"
:
"^5.7.0"
,
"@ethersproject/properties"
:
"^5.7.0"
,
"@ethersproject/properties"
:
"^5.7.0"
,
"@ethersproject/rlp"
:
"^5.7.0"
,
"@ethersproject/rlp"
:
"^5.7.0"
,
"@ethersproject/web"
:
"^5.7.
0
"
,
"@ethersproject/web"
:
"^5.7.
1
"
,
"chai"
:
"^4.3.
4
"
,
"chai"
:
"^4.3.
7
"
,
"ethers"
:
"^5.7.
0
"
,
"ethers"
:
"^5.7.
2
"
,
"node-fetch"
:
"^2.6.7"
"node-fetch"
:
"^2.6.7"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@types/node"
:
"^20.5.0"
,
"@types/node"
:
"^20.5.0"
,
"mocha"
:
"^10.
0
.0"
"mocha"
:
"^10.
2
.0"
}
}
}
}
packages/core-utils/src/etherscan.ts
View file @
e0b2396c
...
@@ -70,7 +70,7 @@ export class Etherscan {
...
@@ -70,7 +70,7 @@ export class Etherscan {
url
.
searchParams
.
append
(
'
apikey
'
,
this
.
apiKey
)
url
.
searchParams
.
append
(
'
apikey
'
,
this
.
apiKey
)
const
response
=
await
fetch
(
url
)
const
response
=
await
fetch
(
url
)
const
result
=
await
response
.
json
()
const
result
=
await
response
.
json
()
return
result
.
result
[
0
]
return
(
result
as
{
result
:
number
[]
})
.
result
[
0
]
}
}
public
async
getContractABI
(
address
:
string
):
Promise
<
any
>
{
public
async
getContractABI
(
address
:
string
):
Promise
<
any
>
{
...
...
pnpm-lock.yaml
View file @
e0b2396c
This diff is collapsed.
Click to expand it.
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