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
c6ed2158
Unverified
Commit
c6ed2158
authored
Sep 27, 2023
by
mergify[bot]
Committed by
GitHub
Sep 27, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into dependabot/npm_and_yarn/types/pino-multi-stream-5.1.4
parents
a0b5f408
855383a4
Changes
105
Show whitespace changes
Inline
Side-by-side
Showing
105 changed files
with
630 additions
and
447 deletions
+630
-447
config.go
endpoint-monitor/config.go
+0
-3
endpoint_monitor.go
endpoint-monitor/endpoint_monitor.go
+2
-1
api_test.go
indexer/api/api_test.go
+1
-1
cli.go
indexer/cmd/indexer/cli.go
+9
-6
config_test.go
indexer/config/config_test.go
+1
-1
setup.go
indexer/e2e_tests/setup.go
+1
-1
l1_etl_test.go
indexer/etl/l1_etl_test.go
+8
-7
batch_submitter.go
op-batcher/batcher/batch_submitter.go
+2
-4
channel_manager_test.go
op-batcher/batcher/channel_manager_test.go
+1
-1
channel_test.go
op-batcher/batcher/channel_test.go
+1
-1
config.go
op-batcher/batcher/config.go
+0
-3
entrypoint.go
op-bootnode/bootnode/entrypoint.go
+2
-1
challenger_test.go
op-challenger/challenger_test.go
+1
-1
main.go
op-challenger/cmd/main.go
+2
-5
agent_test.go
op-challenger/game/fault/agent_test.go
+5
-4
player_test.go
op-challenger/game/fault/player_test.go
+1
-1
responder_test.go
op-challenger/game/fault/responder/responder_test.go
+1
-1
updater_test.go
op-challenger/game/fault/trace/alphabet/updater_test.go
+1
-1
executor_test.go
op-challenger/game/fault/trace/cannon/executor_test.go
+1
-1
provider_test.go
op-challenger/game/fault/trace/cannon/provider_test.go
+1
-1
updater_test.go
op-challenger/game/fault/trace/cannon/updater_test.go
+1
-1
monitor_test.go
op-challenger/game/monitor_test.go
+1
-1
coordinator_test.go
op-challenger/game/scheduler/coordinator_test.go
+1
-1
scheduler_test.go
op-challenger/game/scheduler/scheduler_test.go
+1
-1
blocktime_test.go
op-e2e/actions/blocktime_test.go
+1
-1
l1_miner_test.go
op-e2e/actions/l1_miner_test.go
+1
-1
l1_replica_test.go
op-e2e/actions/l1_replica_test.go
+1
-1
l2_batcher_test.go
op-e2e/actions/l2_batcher_test.go
+1
-1
l2_engine_test.go
op-e2e/actions/l2_engine_test.go
+1
-1
l2_proposer_test.go
op-e2e/actions/l2_proposer_test.go
+1
-1
l2_sequencer_test.go
op-e2e/actions/l2_sequencer_test.go
+1
-1
l2_verifier.go
op-e2e/actions/l2_verifier.go
+1
-1
l2_verifier_test.go
op-e2e/actions/l2_verifier_test.go
+1
-1
reorg_test.go
op-e2e/actions/reorg_test.go
+1
-1
sync_test.go
op-e2e/actions/sync_test.go
+1
-1
system_config_test.go
op-e2e/actions/system_config_test.go
+1
-1
user_test.go
op-e2e/actions/user_test.go
+1
-1
bridge_test.go
op-e2e/bridge_test.go
+1
-1
init.go
op-e2e/config/init.go
+5
-3
helper.go
op-e2e/e2eutils/challenger/helper.go
+1
-1
cannon_helper.go
op-e2e/e2eutils/disputegame/cannon_helper.go
+1
-1
helper.go
op-e2e/e2eutils/disputegame/helper.go
+1
-1
helper.go
op-e2e/helper.go
+10
-2
op_geth.go
op-e2e/op_geth.go
+1
-1
setup.go
op-e2e/setup.go
+5
-5
system_fpp_test.go
op-e2e/system_fpp_test.go
+1
-1
system_test.go
op-e2e/system_test.go
+1
-1
config.go
op-heartbeat/config.go
+0
-3
service.go
op-heartbeat/service.go
+2
-1
main.go
op-node/cmd/main.go
+2
-5
api.go
op-node/node/api.go
+29
-5
node.go
op-node/node/node.go
+1
-1
server_test.go
op-node/node/server_test.go
+1
-1
app_scores_test.go
op-node/p2p/app_scores_test.go
+1
-1
expiry_test.go
op-node/p2p/gating/expiry_test.go
+1
-1
gossip_test.go
op-node/p2p/gossip_test.go
+1
-1
host_test.go
op-node/p2p/host_test.go
+1
-1
peer_monitor_test.go
op-node/p2p/monitor/peer_monitor_test.go
+1
-1
peer_scorer_test.go
op-node/p2p/peer_scorer_test.go
+1
-1
peer_scores_test.go
op-node/p2p/peer_scores_test.go
+1
-1
gc_test.go
op-node/p2p/store/gc_test.go
+1
-1
ip_ban_book_test.go
op-node/p2p/store/ip_ban_book_test.go
+1
-1
peer_ban_book_test.go
op-node/p2p/store/peer_ban_book_test.go
+1
-1
scorebook_test.go
op-node/p2p/store/scorebook_test.go
+1
-1
sync_test.go
op-node/p2p/sync_test.go
+1
-1
attributes_queue_test.go
op-node/rollup/derive/attributes_queue_test.go
+1
-1
batch_queue_test.go
op-node/rollup/derive/batch_queue_test.go
+1
-1
batches_test.go
op-node/rollup/derive/batches_test.go
+1
-1
calldata_source_test.go
op-node/rollup/derive/calldata_source_test.go
+1
-1
channel_bank_test.go
op-node/rollup/derive/channel_bank_test.go
+1
-1
engine_queue_test.go
op-node/rollup/derive/engine_queue_test.go
+1
-1
l1_retrieval_test.go
op-node/rollup/derive/l1_retrieval_test.go
+1
-1
l1_traversal_test.go
op-node/rollup/derive/l1_traversal_test.go
+1
-1
origin_selector_test.go
op-node/rollup/driver/origin_selector_test.go
+1
-1
sequencer_test.go
op-node/rollup/driver/sequencer_test.go
+1
-1
start_test.go
op-node/rollup/sync/start_test.go
+1
-1
receipts_test.go
op-node/sources/receipts_test.go
+1
-1
rollupclient.go
op-node/sources/rollupclient.go
+5
-0
main.go
op-program/client/cmd/main.go
+8
-3
driver_test.go
op-program/client/driver/driver_test.go
+1
-1
client_test.go
op-program/client/l1/client_test.go
+1
-1
engine_backend_test.go
op-program/client/l2/engine_backend_test.go
+1
-1
l2_engine_api_tests.go
op-program/client/l2/engineapi/test/l2_engine_api_tests.go
+1
-1
main.go
op-program/host/cmd/main.go
+2
-5
main_test.go
op-program/host/cmd/main_test.go
+15
-0
host_test.go
op-program/host/host_test.go
+1
-1
prefetcher_test.go
op-program/host/prefetcher/prefetcher_test.go
+1
-1
retry_test.go
op-program/host/prefetcher/retry_test.go
+8
-6
config.go
op-proposer/proposer/config.go
+0
-3
l2_output_submitter.go
op-proposer/proposer/l2_output_submitter.go
+2
-1
cli.go
op-service/log/cli.go
+131
-60
dynamic.go
op-service/log/dynamic.go
+31
-0
dynamic_test.go
op-service/log/dynamic_test.go
+44
-0
writer_test.go
op-service/log/writer_test.go
+1
-1
LICENSE
op-service/testlog/LICENSE
+0
-0
README.md
op-service/testlog/README.md
+0
-0
capturing.go
op-service/testlog/capturing.go
+0
-0
testlog.go
op-service/testlog/testlog.go
+2
-2
price_bump_test.go
op-service/txmgr/price_bump_test.go
+4
-2
queue_test.go
op-service/txmgr/queue_test.go
+1
-1
txmgr_test.go
op-service/txmgr/txmgr_test.go
+1
-1
main.go
op-wheel/cmd/main.go
+1
-1
commands.go
op-wheel/commands.go
+7
-7
package.json
packages/contracts-ts/package.json
+1
-1
pnpm-lock.yaml
pnpm-lock.yaml
+216
-228
No files found.
endpoint-monitor/config.go
View file @
c6ed2158
...
...
@@ -65,9 +65,6 @@ func (c Config) Check() error {
if
c
.
CheckDuration
>=
c
.
CheckInterval
{
return
fmt
.
Errorf
(
"%s must be less than %s"
,
CheckDurationFlagName
,
CheckIntervalFlagName
)
}
if
err
:=
c
.
LogConfig
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
MetricsConfig
.
Check
();
err
!=
nil
{
return
err
}
...
...
endpoint-monitor/endpoint_monitor.go
View file @
c6ed2158
...
...
@@ -33,7 +33,8 @@ func Main(version string) func(cliCtx *cli.Context) error {
return
fmt
.
Errorf
(
"invalid CLI flags: %w"
,
err
)
}
l
:=
oplog
.
NewLogger
(
cfg
.
LogConfig
)
l
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
cliCtx
),
cfg
.
LogConfig
)
oplog
.
SetGlobalLogHandler
(
l
.
GetHandler
())
endpointMonitor
:=
NewEndpointMonitor
(
cfg
,
l
)
l
.
Info
(
fmt
.
Sprintf
(
"starting endpoint monitor with checkInterval=%s checkDuration=%s"
,
cfg
.
CheckInterval
,
cfg
.
CheckDuration
))
...
...
indexer/api/api_test.go
View file @
c6ed2158
...
...
@@ -10,7 +10,7 @@ import (
"github.com/ethereum-optimism/optimism/indexer/api/routes"
"github.com/ethereum-optimism/optimism/indexer/config"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/assert"
...
...
indexer/cmd/indexer/cli.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"github.com/ethereum-optimism/optimism/indexer/api"
"github.com/ethereum-optimism/optimism/indexer/config"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/op-service/log"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum/go-ethereum/params"
"github.com/urfave/cli/v2"
...
...
@@ -28,7 +28,8 @@ var (
)
func
runIndexer
(
ctx
*
cli
.
Context
)
error
{
log
:=
log
.
NewLogger
(
log
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"indexer"
)
log
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
oplog
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"indexer"
)
oplog
.
SetGlobalLogHandler
(
log
.
GetHandler
())
cfg
,
err
:=
config
.
LoadConfig
(
log
,
ctx
.
String
(
ConfigFlag
.
Name
))
if
err
!=
nil
{
log
.
Error
(
"failed to load config"
,
"err"
,
err
)
...
...
@@ -52,7 +53,8 @@ func runIndexer(ctx *cli.Context) error {
}
func
runApi
(
ctx
*
cli
.
Context
)
error
{
log
:=
log
.
NewLogger
(
log
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"api"
)
log
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
oplog
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"api"
)
oplog
.
SetGlobalLogHandler
(
log
.
GetHandler
())
cfg
,
err
:=
config
.
LoadConfig
(
log
,
ctx
.
String
(
ConfigFlag
.
Name
))
if
err
!=
nil
{
log
.
Error
(
"failed to load config"
,
"err"
,
err
)
...
...
@@ -71,7 +73,8 @@ func runApi(ctx *cli.Context) error {
}
func
runMigrations
(
ctx
*
cli
.
Context
)
error
{
log
:=
log
.
NewLogger
(
log
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"api"
)
log
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
oplog
.
ReadCLIConfig
(
ctx
))
.
New
(
"role"
,
"api"
)
oplog
.
SetGlobalLogHandler
(
log
.
GetHandler
())
cfg
,
err
:=
config
.
LoadConfig
(
log
,
ctx
.
String
(
ConfigFlag
.
Name
))
migrationsDir
:=
ctx
.
String
(
MigrationsFlag
.
Name
)
if
err
!=
nil
{
...
...
@@ -91,9 +94,9 @@ func runMigrations(ctx *cli.Context) error {
func
newCli
(
GitCommit
string
,
GitDate
string
)
*
cli
.
App
{
flags
:=
[]
cli
.
Flag
{
ConfigFlag
}
flags
=
append
(
flags
,
log
.
CLIFlags
(
"INDEXER"
)
...
)
flags
=
append
(
flags
,
op
log
.
CLIFlags
(
"INDEXER"
)
...
)
migrationFlags
:=
[]
cli
.
Flag
{
MigrationsFlag
,
ConfigFlag
}
migrationFlags
=
append
(
migrationFlags
,
log
.
CLIFlags
(
"INDEXER"
)
...
)
migrationFlags
=
append
(
migrationFlags
,
op
log
.
CLIFlags
(
"INDEXER"
)
...
)
return
&
cli
.
App
{
Version
:
params
.
VersionWithCommit
(
GitCommit
,
GitDate
),
Description
:
"An indexer of all optimism events with a serving api layer"
,
...
...
indexer/config/config_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
indexer/e2e_tests/setup.go
View file @
c6ed2158
...
...
@@ -13,7 +13,7 @@ import (
"github.com/ethereum-optimism/optimism/indexer/database"
op_e2e
"github.com/ethereum-optimism/optimism/op-e2e"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/ethereum/go-ethereum/log"
...
...
indexer/etl/l1_etl_test.go
View file @
c6ed2158
...
...
@@ -2,20 +2,21 @@ package etl
import
(
"math/big"
"testing"
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/metrics"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/indexer/bigint"
"github.com/ethereum-optimism/optimism/indexer/config"
"github.com/ethereum-optimism/optimism/indexer/database"
"github.com/ethereum-optimism/optimism/indexer/node"
"
testin
g"
"github.com/ethereum-optimism/optimism/op-service/metrics"
"
github.com/ethereum-optimism/optimism/op-service/testlo
g"
)
func
TestL1ETLConstruction
(
t
*
testing
.
T
)
{
...
...
@@ -104,7 +105,7 @@ func TestL1ETLConstruction(t *testing.T) {
t
.
Run
(
test
.
name
,
func
(
t
*
testing
.
T
)
{
ts
:=
test
.
construction
()
logger
:=
log
.
NewLogger
(
log
.
DefaultCLIConfig
()
)
logger
:=
testlog
.
Logger
(
t
,
log
.
LvlInfo
)
cfg
:=
Config
{
StartHeight
:
ts
.
start
}
etl
,
err
:=
NewL1ETL
(
cfg
,
logger
,
ts
.
db
.
DB
,
etlMetrics
,
ts
.
client
,
ts
.
contracts
)
...
...
op-batcher/batcher/batch_submitter.go
View file @
c6ed2158
...
...
@@ -27,11 +27,9 @@ func Main(version string, cliCtx *cli.Context) error {
return
err
}
cfg
:=
NewConfig
(
cliCtx
)
if
err
:=
cfg
.
Check
();
err
!=
nil
{
return
fmt
.
Errorf
(
"invalid CLI flags: %w"
,
err
)
}
l
:=
oplog
.
NewLogger
(
cfg
.
LogConfig
)
l
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
cliCtx
),
cfg
.
LogConfig
)
oplog
.
SetGlobalLogHandler
(
l
.
GetHandler
())
opservice
.
ValidateEnvVars
(
flags
.
EnvVarPrefix
,
flags
.
Flags
,
l
)
m
:=
metrics
.
NewMetrics
(
"default"
)
l
.
Info
(
"Initializing Batch Submitter"
)
...
...
op-batcher/batcher/channel_manager_test.go
View file @
c6ed2158
...
...
@@ -11,8 +11,8 @@ import (
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
derivetest
"github.com/ethereum-optimism/optimism/op-node/rollup/derive/test"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-batcher/batcher/channel_test.go
View file @
c6ed2158
...
...
@@ -6,8 +6,8 @@ import (
"github.com/ethereum-optimism/optimism/op-batcher/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-batcher/batcher/config.go
View file @
c6ed2158
...
...
@@ -99,9 +99,6 @@ func (c CLIConfig) Check() error {
if
err
:=
c
.
RPCConfig
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
LogConfig
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
MetricsConfig
.
Check
();
err
!=
nil
{
return
err
}
...
...
op-bootnode/bootnode/entrypoint.go
View file @
c6ed2158
...
...
@@ -43,7 +43,8 @@ func (l *l2Chain) PayloadByNumber(_ context.Context, _ uint64) (*eth.ExecutionPa
func
Main
(
cliCtx
*
cli
.
Context
)
error
{
log
.
Info
(
"Initializing bootnode"
)
logCfg
:=
oplog
.
ReadCLIConfig
(
cliCtx
)
logger
:=
oplog
.
NewLogger
(
logCfg
)
logger
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
cliCtx
),
logCfg
)
oplog
.
SetGlobalLogHandler
(
logger
.
GetHandler
())
m
:=
metrics
.
NewMetrics
(
"default"
)
ctx
:=
context
.
Background
()
...
...
op-challenger/challenger_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-challenger/config"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-challenger/cmd/main.go
View file @
c6ed2158
...
...
@@ -2,7 +2,6 @@ package main
import
(
"context"
"fmt"
"os"
op_challenger
"github.com/ethereum-optimism/optimism/op-challenger"
...
...
@@ -71,9 +70,7 @@ func run(args []string, action ConfigAction) error {
func
setupLogging
(
ctx
*
cli
.
Context
)
(
log
.
Logger
,
error
)
{
logCfg
:=
oplog
.
ReadCLIConfig
(
ctx
)
if
err
:=
logCfg
.
Check
();
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"log config error: %w"
,
err
)
}
logger
:=
oplog
.
NewLogger
(
logCfg
)
logger
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
logCfg
)
oplog
.
SetGlobalLogHandler
(
logger
.
GetHandler
())
return
logger
,
nil
}
op-challenger/game/fault/agent_test.go
View file @
c6ed2158
...
...
@@ -5,15 +5,16 @@ import (
"errors"
"testing"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/test"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/trace/alphabet"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
gameTypes
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum-optimism/optimism/op-challenger/metrics"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
// TestShouldResolve tests the resolution logic.
...
...
op-challenger/game/fault/player_test.go
View file @
c6ed2158
...
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum-optimism/optimism/cannon/mipsevm"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
gameTypes
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
...
...
op-challenger/game/fault/responder/responder_test.go
View file @
c6ed2158
...
...
@@ -9,7 +9,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
gameTypes
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum/go-ethereum"
...
...
op-challenger/game/fault/trace/alphabet/updater_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-challenger/game/fault/trace/cannon/executor_test.go
View file @
c6ed2158
...
...
@@ -12,7 +12,7 @@ import (
"github.com/ethereum-optimism/optimism/op-challenger/config"
"github.com/ethereum-optimism/optimism/op-challenger/metrics"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-challenger/game/fault/trace/cannon/provider_test.go
View file @
c6ed2158
...
...
@@ -12,8 +12,8 @@ import (
"github.com/ethereum-optimism/optimism/cannon/mipsevm"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/ioutil"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-challenger/game/fault/trace/cannon/updater_test.go
View file @
c6ed2158
...
...
@@ -7,7 +7,7 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-challenger/game/fault/types"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
"github.com/ethereum/go-ethereum"
...
...
op-challenger/game/monitor_test.go
View file @
c6ed2158
...
...
@@ -7,6 +7,7 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
ethtypes
"github.com/ethereum/go-ethereum/core/types"
...
...
@@ -14,7 +15,6 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
)
...
...
op-challenger/game/scheduler/coordinator_test.go
View file @
c6ed2158
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ethereum-optimism/optimism/op-challenger/game/types"
"github.com/ethereum-optimism/optimism/op-challenger/metrics"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-challenger/game/scheduler/scheduler_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-challenger/metrics"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-e2e/actions/blocktime_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
...
...
op-e2e/actions/l1_miner_test.go
View file @
c6ed2158
...
...
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
func
TestL1Miner_BuildBlock
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l1_replica_test.go
View file @
c6ed2158
...
...
@@ -16,8 +16,8 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
var
defaultRollupTestParams
=
&
e2eutils
.
TestParams
{
...
...
op-e2e/actions/l2_batcher_test.go
View file @
c6ed2158
...
...
@@ -16,8 +16,8 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestBatcher
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_engine_test.go
View file @
c6ed2158
...
...
@@ -21,8 +21,8 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestL2EngineAPI
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_proposer_test.go
View file @
c6ed2158
...
...
@@ -10,8 +10,8 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/bindings"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestProposer
(
gt
*
testing
.
T
)
{
...
...
op-e2e/actions/l2_sequencer_test.go
View file @
c6ed2158
...
...
@@ -13,7 +13,7 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
func
setupSequencerTest
(
t
Testing
,
sd
*
e2eutils
.
SetupData
,
log
log
.
Logger
)
(
*
L1Miner
,
*
L2Engine
,
*
L2Sequencer
)
{
...
...
op-e2e/actions/l2_verifier.go
View file @
c6ed2158
...
...
@@ -88,7 +88,7 @@ func NewL2Verifier(t Testing, log log.Logger, l1 derive.L1Fetcher, eng L2API, cf
{
Namespace
:
"admin"
,
Version
:
""
,
Service
:
node
.
NewAdminAPI
(
backend
,
m
),
Service
:
node
.
NewAdminAPI
(
backend
,
m
,
log
),
Public
:
true
,
// TODO: this field is deprecated. Do we even need this anymore?
Authenticated
:
false
,
},
...
...
op-e2e/actions/l2_verifier_test.go
View file @
c6ed2158
...
...
@@ -10,7 +10,7 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
func
setupVerifier
(
t
Testing
,
sd
*
e2eutils
.
SetupData
,
log
log
.
Logger
,
l1F
derive
.
L1Fetcher
,
syncCfg
*
sync
.
Config
)
(
*
L2Engine
,
*
L2Verifier
)
{
...
...
op-e2e/actions/reorg_test.go
View file @
c6ed2158
...
...
@@ -17,8 +17,8 @@ import (
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
setupReorgTest
(
t
Testing
,
config
*
e2eutils
.
TestParams
)
(
*
e2eutils
.
SetupData
,
*
e2eutils
.
DeployParams
,
*
L1Miner
,
*
L2Sequencer
,
*
L2Engine
,
*
L2Verifier
,
*
L2Engine
,
*
L2Batcher
)
{
...
...
op-e2e/actions/sync_test.go
View file @
c6ed2158
...
...
@@ -8,8 +8,8 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-e2e/actions/system_config_test.go
View file @
c6ed2158
...
...
@@ -15,8 +15,8 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
// TestBatcherKeyRotation tests that batcher A can operate, then be replaced with batcher B, then ignore old batcher A,
...
...
op-e2e/actions/user_test.go
View file @
c6ed2158
...
...
@@ -10,7 +10,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
type
regolithScheduledTest
struct
{
...
...
op-e2e/bridge_test.go
View file @
c6ed2158
...
...
@@ -10,7 +10,7 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-e2e/config/init.go
View file @
c6ed2158
...
...
@@ -10,10 +10,12 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
"github.com/ethereum-optimism/optimism/op-e2e/external"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
"github.com/ethereum-optimism/optimism/op-e2e/external"
)
var
(
...
...
@@ -59,7 +61,7 @@ func init() {
flag
.
StringVar
(
&
l1DeploymentsPath
,
"l1-deployments"
,
defaultL1DeploymentsPath
,
""
)
flag
.
StringVar
(
&
deployConfigPath
,
"deploy-config"
,
defaultDeployConfigPath
,
""
)
flag
.
StringVar
(
&
externalL2
,
"externalL2"
,
""
,
"Enable tests with external L2"
)
flag
.
IntVar
(
&
EthNodeVerbosity
,
"ethLogVerbosity"
,
3
,
"The level of verbosity to use for the eth node logs"
)
flag
.
IntVar
(
&
EthNodeVerbosity
,
"ethLogVerbosity"
,
int
(
log
.
LvlInfo
)
,
"The level of verbosity to use for the eth node logs"
)
testing
.
Init
()
// Register test flags before parsing
flag
.
Parse
()
...
...
op-e2e/e2eutils/challenger/helper.go
View file @
c6ed2158
...
...
@@ -16,7 +16,7 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/log"
...
...
op-e2e/e2eutils/disputegame/cannon_helper.go
View file @
c6ed2158
...
...
@@ -8,7 +8,7 @@ import (
"github.com/ethereum-optimism/optimism/op-challenger/metrics"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/challenger"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/log"
...
...
op-e2e/e2eutils/disputegame/helper.go
View file @
c6ed2158
...
...
@@ -21,7 +21,7 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/transactions"
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/wait"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
...
...
op-e2e/helper.go
View file @
c6ed2158
...
...
@@ -4,8 +4,11 @@ import (
"os"
"testing"
"github.com/ethereum-optimism/optimism/op-e2e/config"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-e2e/config"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
var
enableParallelTesting
bool
=
os
.
Getenv
(
"OP_E2E_DISABLE_PARALLEL"
)
!=
"true"
...
...
@@ -15,7 +18,12 @@ func InitParallel(t *testing.T) {
if
enableParallelTesting
{
t
.
Parallel
()
}
if
config
.
EthNodeVerbosity
<
0
{
lvl
:=
log
.
Lvl
(
config
.
EthNodeVerbosity
)
if
lvl
<
log
.
LvlCrit
{
log
.
Root
()
.
SetHandler
(
log
.
DiscardHandler
())
}
else
if
lvl
>
log
.
LvlTrace
{
// clip to trace level
lvl
=
log
.
LvlTrace
}
h
:=
testlog
.
Handler
(
t
,
lvl
,
log
.
TerminalFormat
(
false
))
// some CI logs do not handle colors well
oplog
.
SetGlobalLogHandler
(
h
)
}
op-e2e/op_geth.go
View file @
c6ed2158
...
...
@@ -16,8 +16,8 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
...
...
op-e2e/setup.go
View file @
c6ed2158
...
...
@@ -53,11 +53,11 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
proposermetrics
"github.com/ethereum-optimism/optimism/op-proposer/metrics"
l2os
"github.com/ethereum-optimism/optimism/op-proposer/proposer"
"github.com/ethereum-optimism/optimism/op-service/eth"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum-optimism/optimism/op-service/txmgr"
)
...
...
@@ -648,8 +648,8 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
TxMgrConfig
:
newTxMgrConfig
(
sys
.
EthInstances
[
"l1"
]
.
WSEndpoint
(),
cfg
.
Secrets
.
Proposer
),
AllowNonFinalized
:
cfg
.
NonFinalizedProposals
,
LogConfig
:
oplog
.
CLIConfig
{
Level
:
"info"
,
Format
:
"text"
,
Level
:
log
.
LvlInfo
,
Format
:
oplog
.
FormatText
,
},
},
sys
.
cfg
.
Loggers
[
"proposer"
],
proposermetrics
.
NoopMetrics
)
if
err
!=
nil
{
...
...
@@ -677,8 +677,8 @@ func (cfg SystemConfig) Start(t *testing.T, _opts ...SystemConfigOption) (*Syste
PollInterval
:
50
*
time
.
Millisecond
,
TxMgrConfig
:
newTxMgrConfig
(
sys
.
EthInstances
[
"l1"
]
.
WSEndpoint
(),
cfg
.
Secrets
.
Batcher
),
LogConfig
:
oplog
.
CLIConfig
{
Level
:
"info"
,
Format
:
"text"
,
Level
:
log
.
LvlInfo
,
Format
:
oplog
.
FormatText
,
},
},
sys
.
cfg
.
Loggers
[
"batcher"
],
batchermetrics
.
NoopMetrics
)
if
err
!=
nil
{
...
...
op-e2e/system_fpp_test.go
View file @
c6ed2158
...
...
@@ -9,10 +9,10 @@ import (
"github.com/ethereum-optimism/optimism/op-e2e/e2eutils/geth"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-program/client/driver"
opp
"github.com/ethereum-optimism/optimism/op-program/host"
oppconf
"github.com/ethereum-optimism/optimism/op-program/host/config"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
...
...
op-e2e/system_test.go
View file @
c6ed2158
...
...
@@ -39,10 +39,10 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/rollup/driver"
"github.com/ethereum-optimism/optimism/op-node/sources"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
oppprof
"github.com/ethereum-optimism/optimism/op-service/pprof"
"github.com/ethereum-optimism/optimism/op-service/retry"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestMain
(
m
*
testing
.
M
)
{
...
...
op-heartbeat/config.go
View file @
c6ed2158
...
...
@@ -28,9 +28,6 @@ func (c Config) Check() error {
if
c
.
HTTPPort
<=
0
{
return
errors
.
New
(
"must specify a valid HTTP port"
)
}
if
err
:=
c
.
Log
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
Metrics
.
Check
();
err
!=
nil
{
return
err
}
...
...
op-heartbeat/service.go
View file @
c6ed2158
...
...
@@ -37,7 +37,8 @@ func Main(version string) func(ctx *cli.Context) error {
return
fmt
.
Errorf
(
"invalid CLI flags: %w"
,
err
)
}
l
:=
oplog
.
NewLogger
(
cfg
.
Log
)
l
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
cliCtx
),
cfg
.
Log
)
oplog
.
SetGlobalLogHandler
(
l
.
GetHandler
())
l
.
Info
(
"starting heartbeat monitor"
,
"version"
,
version
)
ctx
,
cancel
:=
context
.
WithCancel
(
context
.
Background
())
...
...
op-node/cmd/main.go
View file @
c6ed2158
...
...
@@ -83,11 +83,8 @@ func main() {
func
RollupNodeMain
(
ctx
*
cli
.
Context
)
error
{
log
.
Info
(
"Initializing Rollup Node"
)
logCfg
:=
oplog
.
ReadCLIConfig
(
ctx
)
if
err
:=
logCfg
.
Check
();
err
!=
nil
{
log
.
Error
(
"Unable to create the log config"
,
"error"
,
err
)
return
err
}
log
:=
oplog
.
NewLogger
(
logCfg
)
log
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
logCfg
)
oplog
.
SetGlobalLogHandler
(
log
.
GetHandler
())
opservice
.
ValidateEnvVars
(
flags
.
EnvVarPrefix
,
flags
.
Flags
,
log
)
m
:=
metrics
.
NewMetrics
(
"default"
)
...
...
op-node/node/api.go
View file @
c6ed2158
...
...
@@ -11,6 +11,7 @@ import (
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/version"
"github.com/ethereum-optimism/optimism/op-service/eth"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
)
type
l2EthClient
interface
{
...
...
@@ -38,12 +39,14 @@ type rpcMetrics interface {
type
adminAPI
struct
{
dr
driverClient
m
rpcMetrics
log
log
.
Logger
}
func
NewAdminAPI
(
dr
driverClient
,
m
rpcMetrics
)
*
adminAPI
{
func
NewAdminAPI
(
dr
driverClient
,
m
rpcMetrics
,
log
log
.
Logger
)
*
adminAPI
{
return
&
adminAPI
{
dr
:
dr
,
m
:
m
,
log
:
log
,
}
}
...
...
@@ -71,6 +74,27 @@ func (n *adminAPI) SequencerActive(ctx context.Context) (bool, error) {
return
n
.
dr
.
SequencerActive
(
ctx
)
}
func
(
n
*
adminAPI
)
SetLogLevel
(
ctx
context
.
Context
,
lvlStr
string
)
error
{
recordDur
:=
n
.
m
.
RecordRPCServerRequest
(
"admin_setLogLevel"
)
defer
recordDur
()
h
:=
n
.
log
.
GetHandler
()
lvl
,
err
:=
log
.
LvlFromString
(
lvlStr
)
if
err
!=
nil
{
return
err
}
// We set the log level, and do not wrap the handler with an additional filter handler,
// as the underlying handler would otherwise also still filter with the previous log level.
lvlSetter
,
ok
:=
h
.
(
oplog
.
LvlSetter
)
if
!
ok
{
return
fmt
.
Errorf
(
"log handler type %T cannot change log level"
,
h
)
}
lvlSetter
.
SetLogLevel
(
lvl
)
return
nil
}
type
nodeAPI
struct
{
config
*
rollup
.
Config
client
l2EthClient
...
...
op-node/node/node.go
View file @
c6ed2158
...
...
@@ -301,7 +301,7 @@ func (n *OpNode) initRPCServer(ctx context.Context, cfg *Config) error {
server
.
EnableP2P
(
p2p
.
NewP2PAPIBackend
(
n
.
p2pNode
,
n
.
log
,
n
.
metrics
))
}
if
cfg
.
RPC
.
EnableAdmin
{
server
.
EnableAdminAPI
(
NewAdminAPI
(
n
.
l2Driver
,
n
.
metrics
))
server
.
EnableAdminAPI
(
NewAdminAPI
(
n
.
l2Driver
,
n
.
metrics
,
n
.
log
))
n
.
log
.
Info
(
"Admin RPC enabled"
)
}
n
.
log
.
Info
(
"Starting JSON-RPC server"
)
...
...
op-node/node/server_test.go
View file @
c6ed2158
...
...
@@ -18,10 +18,10 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-node/version"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestOutputAtBlock
(
t
*
testing
.
T
)
{
...
...
op-node/p2p/app_scores_test.go
View file @
c6ed2158
...
...
@@ -7,8 +7,8 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/p2p/store"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/require"
...
...
op-node/p2p/gating/expiry_test.go
View file @
c6ed2158
...
...
@@ -9,8 +9,8 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/p2p/gating/mocks"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
log
"github.com/ethereum/go-ethereum/log"
"github.com/libp2p/go-libp2p/core/network"
"github.com/libp2p/go-libp2p/core/peer"
...
...
op-node/p2p/gossip_test.go
View file @
c6ed2158
...
...
@@ -16,7 +16,7 @@ import (
"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
func
TestGuardGossipValidator
(
t
*
testing
.
T
)
{
...
...
op-node/p2p/host_test.go
View file @
c6ed2158
...
...
@@ -25,9 +25,9 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestingConfig
(
t
*
testing
.
T
)
*
Config
{
...
...
op-node/p2p/monitor/peer_monitor_test.go
View file @
c6ed2158
...
...
@@ -8,8 +8,8 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/p2p/monitor/mocks"
"github.com/ethereum-optimism/optimism/op-node/testlog"
clock2
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/libp2p/go-libp2p/core/peer"
"github.com/stretchr/testify/require"
...
...
op-node/p2p/peer_scorer_test.go
View file @
c6ed2158
...
...
@@ -14,7 +14,7 @@ import (
p2pMocks
"github.com/ethereum-optimism/optimism/op-node/p2p/mocks"
"github.com/ethereum-optimism/optimism/op-node/p2p/store"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
)
// PeerScorerTestSuite tests peer parameterization.
...
...
op-node/p2p/peer_scores_test.go
View file @
c6ed2158
...
...
@@ -15,8 +15,8 @@ import (
p2pMocks
"github.com/ethereum-optimism/optimism/op-node/p2p/mocks"
"github.com/ethereum-optimism/optimism/op-node/p2p/store"
testlog
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
testlog
"github.com/ethereum-optimism/optimism/op-service/testlog"
log
"github.com/ethereum/go-ethereum/log"
ds
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/sync"
...
...
op-node/p2p/store/gc_test.go
View file @
c6ed2158
...
...
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-node/p2p/store/ip_ban_book_test.go
View file @
c6ed2158
...
...
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
ds
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/sync"
...
...
op-node/p2p/store/peer_ban_book_test.go
View file @
c6ed2158
...
...
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
ds
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/sync"
...
...
op-node/p2p/store/scorebook_test.go
View file @
c6ed2158
...
...
@@ -9,8 +9,8 @@ import (
//nolint:all
"github.com/libp2p/go-libp2p/p2p/host/peerstore/pstoreds"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/clock"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
ds
"github.com/ipfs/go-datastore"
"github.com/ipfs/go-datastore/sync"
...
...
op-node/p2p/sync_test.go
View file @
c6ed2158
...
...
@@ -19,8 +19,8 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
mockPayloadFn
func
(
n
uint64
)
(
*
eth
.
ExecutionPayload
,
error
)
...
...
op-node/rollup/derive/attributes_queue_test.go
View file @
c6ed2158
...
...
@@ -13,9 +13,9 @@ import (
"github.com/ethereum-optimism/optimism/op-bindings/predeploys"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
// TestAttributesQueue checks that it properly uses the PreparePayloadAttributes function
...
...
op-node/rollup/derive/batch_queue_test.go
View file @
c6ed2158
...
...
@@ -13,9 +13,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
fakeBatchQueueInput
struct
{
...
...
op-node/rollup/derive/batches_test.go
View file @
c6ed2158
...
...
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-node/rollup/derive/calldata_source_test.go
View file @
c6ed2158
...
...
@@ -15,9 +15,9 @@ import (
"github.com/ethereum/go-ethereum/params"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
testTx
struct
{
...
...
op-node/rollup/derive/channel_bank_test.go
View file @
c6ed2158
...
...
@@ -10,9 +10,9 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-node/rollup/derive/engine_queue_test.go
View file @
c6ed2158
...
...
@@ -17,9 +17,9 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/sync"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
fakeAttributesQueue
struct
{
...
...
op-node/rollup/derive/l1_retrieval_test.go
View file @
c6ed2158
...
...
@@ -14,9 +14,9 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
fakeDataIter
struct
{
...
...
op-node/rollup/derive/l1_traversal_test.go
View file @
c6ed2158
...
...
@@ -15,9 +15,9 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
// TestL1TraversalNext tests that the `Next` function only returns
...
...
op-node/rollup/driver/origin_selector_test.go
View file @
c6ed2158
...
...
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-node/rollup/driver/sequencer_test.go
View file @
c6ed2158
...
...
@@ -19,9 +19,9 @@ import (
"github.com/ethereum-optimism/optimism/op-node/metrics"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
var
mockResetErr
=
fmt
.
Errorf
(
"mock reset err: %w"
,
derive
.
ErrReset
)
...
...
op-node/rollup/sync/start_test.go
View file @
c6ed2158
...
...
@@ -7,9 +7,9 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/rollup"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
)
...
...
op-node/sources/receipts_test.go
View file @
c6ed2158
...
...
@@ -9,9 +9,9 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/types"
...
...
op-node/sources/rollupclient.go
View file @
c6ed2158
...
...
@@ -5,6 +5,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/client"
"github.com/ethereum-optimism/optimism/op-node/rollup"
...
...
@@ -58,3 +59,7 @@ func (r *RollupClient) SequencerActive(ctx context.Context) (bool, error) {
err
:=
r
.
rpc
.
CallContext
(
ctx
,
&
result
,
"admin_sequencerActive"
)
return
result
,
err
}
func
(
r
*
RollupClient
)
SetLogLevel
(
ctx
context
.
Context
,
lvl
log
.
Lvl
)
error
{
return
r
.
rpc
.
CallContext
(
ctx
,
nil
,
"admin_setLogLevel"
,
lvl
.
String
())
}
op-program/client/cmd/main.go
View file @
c6ed2158
package
main
import
(
"os"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-program/client"
oplog
"github.com/ethereum-optimism/optimism/op-service/log"
)
...
...
@@ -8,10 +12,11 @@ import (
func
main
()
{
// Default to a machine parsable but relatively human friendly log format.
// Don't do anything fancy to detect if color output is supported.
logger
:=
oplog
.
NewLogger
(
oplog
.
CLIConfig
{
Level
:
"info"
,
Format
:
"logfmt"
,
logger
:=
oplog
.
NewLogger
(
o
s
.
Stdout
,
o
plog
.
CLIConfig
{
Level
:
log
.
LvlInfo
,
Format
:
oplog
.
FormatLogFmt
,
Color
:
false
,
})
oplog
.
SetGlobalLogHandler
(
logger
.
GetHandler
())
client
.
Main
(
logger
)
}
op-program/client/driver/driver_test.go
View file @
c6ed2158
...
...
@@ -8,8 +8,8 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-program/client/l1/client_test.go
View file @
c6ed2158
...
...
@@ -13,10 +13,10 @@ import (
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-program/client/l1/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
var
_
derive
.
L1Fetcher
=
(
*
OracleL1Client
)(
nil
)
...
...
op-program/client/l2/engine_backend_test.go
View file @
c6ed2158
...
...
@@ -5,11 +5,11 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-chain-ops/genesis"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi/test"
l2test
"github.com/ethereum-optimism/optimism/op-program/client/l2/test"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/consensus/beacon"
...
...
op-program/client/l2/engineapi/test/l2_engine_api_tests.go
View file @
c6ed2158
...
...
@@ -5,9 +5,9 @@ import (
"testing"
"github.com/ethereum-optimism/optimism/op-node/rollup/derive"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-program/client/l2/engineapi"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
...
...
op-program/host/cmd/main.go
View file @
c6ed2158
package
main
import
(
"fmt"
"os"
"github.com/ethereum-optimism/optimism/op-program/host"
...
...
@@ -75,9 +74,7 @@ func run(args []string, action ConfigAction) error {
func
setupLogging
(
ctx
*
cli
.
Context
)
(
log
.
Logger
,
error
)
{
logCfg
:=
oplog
.
ReadCLIConfig
(
ctx
)
if
err
:=
logCfg
.
Check
();
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"log config error: %w"
,
err
)
}
logger
:=
oplog
.
NewLogger
(
logCfg
)
logger
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
logCfg
)
oplog
.
SetGlobalLogHandler
(
logger
.
GetHandler
())
return
logger
,
nil
}
op-program/host/cmd/main_test.go
View file @
c6ed2158
...
...
@@ -43,6 +43,21 @@ func TestLogLevel(t *testing.T) {
}
}
func
TestLogFormat
(
t
*
testing
.
T
)
{
t
.
Run
(
"RejectInvalid"
,
func
(
t
*
testing
.
T
)
{
verifyArgsInvalid
(
t
,
`unrecognized log-format: "foo"`
,
addRequiredArgs
(
"--log.format=foo"
))
})
for
_
,
lvl
:=
range
[]
string
{
"json"
,
"json-pretty"
,
"terminal"
,
"text"
,
"logfmt"
}
{
lvl
:=
lvl
t
.
Run
(
"AcceptValid_"
+
lvl
,
func
(
t
*
testing
.
T
)
{
logger
,
_
,
err
:=
runWithArgs
(
addRequiredArgs
(
"--log.format"
,
lvl
))
require
.
NoError
(
t
,
err
)
require
.
NotNil
(
t
,
logger
)
})
}
}
func
TestDefaultCLIOptionsMatchDefaultConfig
(
t
*
testing
.
T
)
{
cfg
:=
configForArgs
(
t
,
addRequiredArgs
())
rollupCfg
,
err
:=
chaincfg
.
GetRollupConfig
(
"op-goerli"
)
...
...
op-program/host/host_test.go
View file @
c6ed2158
...
...
@@ -7,7 +7,6 @@ import (
"time"
"github.com/ethereum-optimism/optimism/op-node/chaincfg"
"github.com/ethereum-optimism/optimism/op-node/testlog"
preimage
"github.com/ethereum-optimism/optimism/op-preimage"
"github.com/ethereum-optimism/optimism/op-program/chainconfig"
"github.com/ethereum-optimism/optimism/op-program/client"
...
...
@@ -15,6 +14,7 @@ import (
"github.com/ethereum-optimism/optimism/op-program/host/config"
"github.com/ethereum-optimism/optimism/op-program/host/kvstore"
"github.com/ethereum-optimism/optimism/op-program/io"
"github.com/ethereum-optimism/optimism/op-service/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
...
...
op-program/host/prefetcher/prefetcher_test.go
View file @
c6ed2158
...
...
@@ -5,7 +5,6 @@ import (
"math/rand"
"testing"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
...
...
@@ -20,6 +19,7 @@ import (
"github.com/ethereum-optimism/optimism/op-program/client/mpt"
"github.com/ethereum-optimism/optimism/op-program/host/kvstore"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestNoHint
(
t
*
testing
.
T
)
{
...
...
op-program/host/prefetcher/retry_test.go
View file @
c6ed2158
...
...
@@ -5,15 +5,17 @@ import (
"errors"
"testing"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/retry"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/mock"
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-node/testutils"
"github.com/ethereum-optimism/optimism/op-service/eth"
"github.com/ethereum-optimism/optimism/op-service/retry"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
func
TestRetryingL1Source
(
t
*
testing
.
T
)
{
...
...
op-proposer/proposer/config.go
View file @
c6ed2158
...
...
@@ -67,9 +67,6 @@ func (c CLIConfig) Check() error {
if
err
:=
c
.
RPCConfig
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
LogConfig
.
Check
();
err
!=
nil
{
return
err
}
if
err
:=
c
.
MetricsConfig
.
Check
();
err
!=
nil
{
return
err
}
...
...
op-proposer/proposer/l2_output_submitter.go
View file @
c6ed2158
...
...
@@ -43,7 +43,8 @@ func Main(version string, cliCtx *cli.Context) error {
return
fmt
.
Errorf
(
"invalid CLI flags: %w"
,
err
)
}
l
:=
oplog
.
NewLogger
(
cfg
.
LogConfig
)
l
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
cliCtx
),
cfg
.
LogConfig
)
oplog
.
SetGlobalLogHandler
(
l
.
GetHandler
())
opservice
.
ValidateEnvVars
(
flags
.
EnvVarPrefix
,
flags
.
Flags
,
l
)
m
:=
metrics
.
NewMetrics
(
"default"
)
l
.
Info
(
"Initializing L2 Output Submitter"
)
...
...
op-service/log/cli.go
View file @
c6ed2158
...
...
@@ -2,13 +2,15 @@ package log
import
(
"fmt"
"io"
"os"
"strings"
"github.com/ethereum/go-ethereum/log"
"github.com/urfave/cli/v2"
"golang.org/x/term"
"github.com/ethereum/go-ethereum/log"
opservice
"github.com/ethereum-optimism/optimism/op-service"
)
...
...
@@ -20,16 +22,16 @@ const (
func
CLIFlags
(
envPrefix
string
)
[]
cli
.
Flag
{
return
[]
cli
.
Flag
{
&
cli
.
String
Flag
{
&
cli
.
Generic
Flag
{
Name
:
LevelFlagName
,
Usage
:
"The lowest log level that will be output"
,
Value
:
"info"
,
Value
:
NewLvlFlagValue
(
log
.
LvlInfo
)
,
EnvVars
:
opservice
.
PrefixEnvVar
(
envPrefix
,
"LOG_LEVEL"
),
},
&
cli
.
String
Flag
{
&
cli
.
Generic
Flag
{
Name
:
FormatFlagName
,
Usage
:
"Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty',"
,
Value
:
"text"
,
Value
:
NewFormatFlagValue
(
FormatText
)
,
EnvVars
:
opservice
.
PrefixEnvVar
(
envPrefix
,
"LOG_FORMAT"
),
},
&
cli
.
BoolFlag
{
...
...
@@ -40,85 +42,154 @@ func CLIFlags(envPrefix string) []cli.Flag {
}
}
type
CLIConfig
struct
{
Level
string
// Log level: trace, debug, info, warn, error, crit. Capitals are accepted too.
Color
bool
// Color the log output. Defaults to true if terminal is detected.
Format
string
// Format the log output. Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty'
}
// LvlFlagValue is a value type for cli.GenericFlag to parse and validate log-level values.
// Log level: trace, debug, info, warn, error, crit. Capitals are accepted too.
type
LvlFlagValue
log
.
Lvl
func
(
cfg
CLIConfig
)
Check
()
error
{
switch
cfg
.
Format
{
case
"json"
,
"json-pretty"
,
"terminal"
,
"text"
,
"logfmt"
:
default
:
return
fmt
.
Errorf
(
"unrecognized log format: %s"
,
cfg
.
Format
)
}
func
NewLvlFlagValue
(
lvl
log
.
Lvl
)
*
LvlFlagValue
{
return
(
*
LvlFlagValue
)(
&
lvl
)
}
level
:=
strings
.
ToLower
(
cfg
.
Level
)
_
,
err
:=
log
.
LvlFromString
(
level
)
func
(
fv
*
LvlFlagValue
)
Set
(
value
string
)
error
{
value
=
strings
.
ToLower
(
value
)
// ignore case
lvl
,
err
:=
log
.
LvlFromString
(
value
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"unrecognized log level: %w"
,
err
)
return
err
}
*
fv
=
LvlFlagValue
(
lvl
)
return
nil
}
func
NewLogger
(
cfg
CLIConfig
)
log
.
Logger
{
handler
:=
log
.
StreamHandler
(
os
.
Stdout
,
Format
(
cfg
.
Format
,
cfg
.
Color
))
handler
=
log
.
SyncHandler
(
handler
)
handler
=
log
.
LvlFilterHandler
(
Level
(
cfg
.
Level
),
handler
)
// Set the root handle to what we have configured. Some components like go-ethereum's RPC
// server use log.Root() instead of being able to pass in a log.
log
.
Root
()
.
SetHandler
(
handler
)
logger
:=
log
.
New
()
logger
.
SetHandler
(
handler
)
return
logger
func
(
fv
LvlFlagValue
)
String
()
string
{
return
log
.
Lvl
(
fv
)
.
String
()
}
func
DefaultCLIConfig
()
CLIConfig
{
return
CLIConfig
{
Level
:
"info"
,
Format
:
"text"
,
Color
:
term
.
IsTerminal
(
int
(
os
.
Stdout
.
Fd
())),
}
func
(
fv
LvlFlagValue
)
LogLvl
()
log
.
Lvl
{
return
log
.
Lvl
(
fv
)
}
func
ReadCLIConfig
(
ctx
*
cli
.
Context
)
CLIConfig
{
cfg
:=
DefaultCLIConfig
()
cfg
.
Level
=
ctx
.
String
(
LevelFlagName
)
cfg
.
Format
=
ctx
.
String
(
FormatFlagName
)
if
ctx
.
IsSet
(
ColorFlagName
)
{
cfg
.
Color
=
ctx
.
Bool
(
ColorFlagName
)
}
return
cfg
}
var
_
cli
.
Generic
=
(
*
LvlFlagValue
)(
nil
)
// FormatType defines a type of log format.
// Supported formats: 'text', 'terminal', 'logfmt', 'json', 'json-pretty'
type
FormatType
string
const
(
FormatText
FormatType
=
"text"
FormatTerminal
FormatType
=
"terminal"
FormatLogFmt
FormatType
=
"logfmt"
FormatJSON
FormatType
=
"json"
FormatJSONPretty
FormatType
=
"json-pretty"
)
// Format
turns a string
and color into a structured Format object
func
Format
(
lf
string
,
color
bool
)
log
.
Format
{
switch
lf
{
case
"json"
:
// Format
ter turns a format type
and color into a structured Format object
func
(
ft
FormatType
)
Formatter
(
color
bool
)
log
.
Format
{
switch
ft
{
case
FormatJSON
:
return
log
.
JSONFormat
()
case
"json-pretty"
:
case
FormatJSONPretty
:
return
log
.
JSONFormatEx
(
true
,
true
)
case
"text"
:
case
FormatText
:
if
term
.
IsTerminal
(
int
(
os
.
Stdout
.
Fd
()))
{
return
log
.
TerminalFormat
(
color
)
}
else
{
return
log
.
LogfmtFormat
()
}
case
"terminal"
:
case
FormatTerminal
:
return
log
.
TerminalFormat
(
color
)
case
"logfmt"
:
case
FormatLogFmt
:
return
log
.
LogfmtFormat
()
default
:
panic
(
"Failed to create `log.Format` from options"
)
panic
(
fmt
.
Errorf
(
"failed to create `log.Format` for format-type=%q and color=%v"
,
ft
,
color
)
)
}
}
// Level parses the level string into an appropriate object
func
Level
(
s
string
)
log
.
Lvl
{
s
=
strings
.
ToLower
(
s
)
// ignore case
l
,
err
:=
log
.
LvlFromString
(
s
)
if
err
!=
nil
{
panic
(
fmt
.
Sprintf
(
"Could not parse log level: %v"
,
err
))
func
(
ft
FormatType
)
String
()
string
{
return
string
(
ft
)
}
// FormatFlagValue is a value type for cli.GenericFlag to parse and validate log-formatting-type values
type
FormatFlagValue
FormatType
func
NewFormatFlagValue
(
fmtType
FormatType
)
*
FormatFlagValue
{
return
(
*
FormatFlagValue
)(
&
fmtType
)
}
func
(
fv
*
FormatFlagValue
)
Set
(
value
string
)
error
{
switch
FormatType
(
value
)
{
case
FormatText
,
FormatTerminal
,
FormatLogFmt
,
FormatJSON
,
FormatJSONPretty
:
*
fv
=
FormatFlagValue
(
value
)
return
nil
default
:
return
fmt
.
Errorf
(
"unrecognized log-format: %q"
,
value
)
}
return
l
}
func
(
fv
FormatFlagValue
)
String
()
string
{
return
FormatType
(
fv
)
.
String
()
}
func
(
fv
FormatFlagValue
)
FormatType
()
FormatType
{
return
FormatType
(
fv
)
}
type
CLIConfig
struct
{
Level
log
.
Lvl
Color
bool
Format
FormatType
}
// AppOut returns an io.Writer to write app output to, like logs.
// This falls back to os.Stdout if the ctx, ctx.App or ctx.App.Writer are nil.
func
AppOut
(
ctx
*
cli
.
Context
)
io
.
Writer
{
if
ctx
==
nil
||
ctx
.
App
==
nil
||
ctx
.
App
.
Writer
==
nil
{
return
os
.
Stdout
}
return
ctx
.
App
.
Writer
}
// NewLogHandler creates a new configured handler, compatible as LvlSetter for log-level changes during runtime.
func
NewLogHandler
(
wr
io
.
Writer
,
cfg
CLIConfig
)
log
.
Handler
{
handler
:=
log
.
StreamHandler
(
wr
,
cfg
.
Format
.
Formatter
(
cfg
.
Color
))
handler
=
log
.
SyncHandler
(
handler
)
handler
=
NewDynamicLogHandler
(
cfg
.
Level
,
handler
)
return
handler
}
// NewLogger creates a new configured logger.
// The log handler of the logger is a LvlSetter, i.e. the log level can be changed as needed.
func
NewLogger
(
wr
io
.
Writer
,
cfg
CLIConfig
)
log
.
Logger
{
handler
:=
NewLogHandler
(
wr
,
cfg
)
logger
:=
log
.
New
()
logger
.
SetHandler
(
handler
)
return
logger
}
// SetGlobalLogHandler sets the log handles as the handler of the global default logger.
// The usage of this logger is strongly discouraged,
// as it does makes it difficult to distinguish different services in the same process, e.g. during tests.
// Geth and other components may use the global logger however,
// and it is thus recommended to set the global log handler to catch these logs.
func
SetGlobalLogHandler
(
h
log
.
Handler
)
{
log
.
Root
()
.
SetHandler
(
h
)
}
// DefaultCLIConfig creates a default log configuration.
// Color defaults to true if terminal is detected.
func
DefaultCLIConfig
()
CLIConfig
{
return
CLIConfig
{
Level
:
log
.
LvlInfo
,
Format
:
FormatText
,
Color
:
term
.
IsTerminal
(
int
(
os
.
Stdout
.
Fd
())),
}
}
func
ReadCLIConfig
(
ctx
*
cli
.
Context
)
CLIConfig
{
cfg
:=
DefaultCLIConfig
()
cfg
.
Level
=
ctx
.
Generic
(
LevelFlagName
)
.
(
*
LvlFlagValue
)
.
LogLvl
()
cfg
.
Format
=
ctx
.
Generic
(
FormatFlagName
)
.
(
*
FormatFlagValue
)
.
FormatType
()
if
ctx
.
IsSet
(
ColorFlagName
)
{
cfg
.
Color
=
ctx
.
Bool
(
ColorFlagName
)
}
return
cfg
}
op-service/log/dynamic.go
0 → 100644
View file @
c6ed2158
package
log
import
"github.com/ethereum/go-ethereum/log"
type
LvlSetter
interface
{
SetLogLevel
(
lvl
log
.
Lvl
)
}
// DynamicLogHandler allow runtime-configuration of the log handler.
type
DynamicLogHandler
struct
{
log
.
Handler
// embedded, to expose any extra methods the underlying handler might provide
maxLvl
log
.
Lvl
}
func
NewDynamicLogHandler
(
lvl
log
.
Lvl
,
h
log
.
Handler
)
*
DynamicLogHandler
{
return
&
DynamicLogHandler
{
Handler
:
h
,
maxLvl
:
lvl
,
}
}
func
(
d
*
DynamicLogHandler
)
SetLogLevel
(
lvl
log
.
Lvl
)
{
d
.
maxLvl
=
lvl
}
func
(
d
*
DynamicLogHandler
)
Log
(
r
*
log
.
Record
)
error
{
if
r
.
Lvl
>
d
.
maxLvl
{
// lower log level values are more critical
return
nil
}
return
d
.
Handler
.
Log
(
r
)
// process the log
}
op-service/log/dynamic_test.go
0 → 100644
View file @
c6ed2158
package
log
import
(
"testing"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/log"
)
func
TestDynamicLogHandler_SetLogLevel
(
t
*
testing
.
T
)
{
var
records
[]
*
log
.
Record
h
:=
log
.
FuncHandler
(
func
(
r
*
log
.
Record
)
error
{
records
=
append
(
records
,
r
)
return
nil
})
d
:=
NewDynamicLogHandler
(
log
.
LvlInfo
,
h
)
logger
:=
log
.
New
()
logger
.
SetHandler
(
d
)
logger
.
Info
(
"hello world"
)
// y
logger
.
Error
(
"error!"
)
// y
logger
.
Debug
(
"debugging"
)
// n
// increase log level
logger
.
GetHandler
()
.
(
LvlSetter
)
.
SetLogLevel
(
log
.
LvlDebug
)
logger
.
Info
(
"hello again"
)
// y
logger
.
Debug
(
"can see debug now"
)
// y
logger
.
Trace
(
"but no trace"
)
// n
// and decrease log level
logger
.
GetHandler
()
.
(
LvlSetter
)
.
SetLogLevel
(
log
.
LvlWarn
)
logger
.
Warn
(
"visible warning"
)
// y
logger
.
Info
(
"info should be hidden now"
)
// n
logger
.
Error
(
"another error"
)
// y
require
.
Len
(
t
,
records
,
2
+
2
+
2
)
require
.
Equal
(
t
,
records
[
0
]
.
Msg
,
"hello world"
)
require
.
Equal
(
t
,
records
[
1
]
.
Msg
,
"error!"
)
require
.
Equal
(
t
,
records
[
2
]
.
Msg
,
"hello again"
)
require
.
Equal
(
t
,
records
[
3
]
.
Msg
,
"can see debug now"
)
require
.
Equal
(
t
,
records
[
4
]
.
Msg
,
"visible warning"
)
require
.
Equal
(
t
,
records
[
5
]
.
Msg
,
"another error"
)
}
op-service/log/writer_test.go
View file @
c6ed2158
...
...
@@ -4,7 +4,7 @@ import (
"io"
"testing"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
)
...
...
op-
nod
e/testlog/LICENSE
→
op-
servic
e/testlog/LICENSE
View file @
c6ed2158
File moved
op-
nod
e/testlog/README.md
→
op-
servic
e/testlog/README.md
View file @
c6ed2158
File moved
op-
nod
e/testlog/capturing.go
→
op-
servic
e/testlog/capturing.go
View file @
c6ed2158
File moved
op-
nod
e/testlog/testlog.go
→
op-
servic
e/testlog/testlog.go
View file @
c6ed2158
...
...
@@ -43,8 +43,8 @@ type Testing interface {
}
// Handler returns a log handler which logs to the unit test log of t.
func
Handler
(
t
Testing
,
level
log
.
Lvl
)
log
.
Handler
{
return
log
.
LvlFilterHandler
(
level
,
&
handler
{
t
,
log
.
TerminalFormat
(
false
)
})
func
Handler
(
t
Testing
,
level
log
.
Lvl
,
format
log
.
Format
)
log
.
Handler
{
return
log
.
LvlFilterHandler
(
level
,
&
handler
{
t
,
format
})
}
type
handler
struct
{
...
...
op-service/txmgr/price_bump_test.go
View file @
c6ed2158
...
...
@@ -5,9 +5,11 @@ import (
"math/big"
"testing"
"github.com/ethereum-optimism/optimism/op-node/testlog"
"github.com/ethereum/go-ethereum/log"
"github.com/stretchr/testify/require"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum-optimism/optimism/op-service/testlog"
)
type
priceBumpTest
struct
{
...
...
op-service/txmgr/queue_test.go
View file @
c6ed2158
...
...
@@ -7,7 +7,7 @@ import (
"testing"
"time"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum-optimism/optimism/op-service/txmgr/metrics"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
...
...
op-service/txmgr/txmgr_test.go
View file @
c6ed2158
...
...
@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/require"
"github.com/ethereum-optimism/optimism/op-
nod
e/testlog"
"github.com/ethereum-optimism/optimism/op-
servic
e/testlog"
"github.com/ethereum-optimism/optimism/op-service/txmgr/metrics"
"github.com/ethereum/go-ethereum"
...
...
op-wheel/cmd/main.go
View file @
c6ed2158
...
...
@@ -29,7 +29,7 @@ func main() {
app
.
Before
=
func
(
c
*
cli
.
Context
)
error
{
log
.
Root
()
.
SetHandler
(
log
.
LvlFilterHandler
(
oplog
.
Level
(
c
.
String
(
wheel
.
GlobalGethLogLvlFlag
.
Name
)
),
c
.
Generic
(
wheel
.
GlobalGethLogLvlFlag
.
Name
)
.
(
*
oplog
.
LvlFlagValue
)
.
LogLvl
(
),
log
.
StreamHandler
(
os
.
Stdout
,
log
.
TerminalFormat
(
true
)),
),
)
...
...
op-wheel/commands.go
View file @
c6ed2158
...
...
@@ -11,12 +11,14 @@ import (
"strings"
"time"
"github.com/urfave/cli/v2"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/core/rawdb"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/rpc"
"github.com/urfave/cli/v2"
"github.com/ethereum-optimism/optimism/op-node/client"
opservice
"github.com/ethereum-optimism/optimism/op-service"
...
...
@@ -33,11 +35,11 @@ func prefixEnvVars(name string) []string {
}
var
(
GlobalGethLogLvlFlag
=
&
cli
.
String
Flag
{
GlobalGethLogLvlFlag
=
&
cli
.
Generic
Flag
{
Name
:
"geth-log-level"
,
Usage
:
"Set the global geth logging level"
,
EnvVars
:
prefixEnvVars
(
"GETH_LOG_LEVEL"
),
Value
:
"error"
,
Value
:
oplog
.
NewLvlFlagValue
(
log
.
LvlError
)
,
}
DataDirFlag
=
&
cli
.
StringFlag
{
Name
:
"data-dir"
,
...
...
@@ -396,10 +398,8 @@ var (
},
oplog
.
CLIFlags
(
envVarPrefix
)
...
),
opmetrics
.
CLIFlags
(
envVarPrefix
)
...
),
Action
:
EngineAction
(
func
(
ctx
*
cli
.
Context
,
client
client
.
RPC
)
error
{
logCfg
:=
oplog
.
ReadCLIConfig
(
ctx
)
if
err
:=
logCfg
.
Check
();
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to parse log configuration: %w"
,
err
)
}
l
:=
oplog
.
NewLogger
(
logCfg
)
l
:=
oplog
.
NewLogger
(
oplog
.
AppOut
(
ctx
),
logCfg
)
oplog
.
SetGlobalLogHandler
(
l
.
GetHandler
())
settings
:=
ParseBuildingArgs
(
ctx
)
// TODO: finalize/safe flag
...
...
packages/contracts-ts/package.json
View file @
c6ed2158
...
...
@@ -52,7 +52,7 @@
"@testing-library/react-hooks"
:
"^8.0.1"
,
"@types/glob"
:
"^8.1.0"
,
"@vitest/coverage-istanbul"
:
"^0.34.1"
,
"@wagmi/cli"
:
"^1.
3.0
"
,
"@wagmi/cli"
:
"^1.
5.2
"
,
"@wagmi/core"
:
"^1.3.8"
,
"abitype"
:
"^0.9.3"
,
"glob"
:
"^10.3.3"
,
...
...
pnpm-lock.yaml
View file @
c6ed2158
...
...
@@ -314,8 +314,8 @@ importers:
specifier
:
^0.34.1
version
:
0.34.1(vitest@0.34.2)
'
@wagmi/cli'
:
specifier
:
^1.
3.0
version
:
1.
3.0
(@wagmi/core@1.3.8)(typescript@5.2.2)(wagmi@1.0.1)
specifier
:
^1.
5.2
version
:
1.
5.2
(@wagmi/core@1.3.8)(typescript@5.2.2)(wagmi@1.0.1)
'
@wagmi/core'
:
specifier
:
^1.3.8
version
:
1.3.8(react@18.2.0)(typescript@5.2.2)(viem@1.3.1)
...
...
@@ -1181,6 +1181,15 @@ packages:
get-tsconfig
:
4.7.0
dev
:
true
/@esbuild/android-arm64@0.16.17
:
resolution
:
{
integrity
:
sha512-MIGl6p5sc3RDTLLkYL1MyL8BMRN4tLMRCn+yRJJmEDvYZ2M7tmAf80hx1kbNEUX2KJ50RRtxZ4JHLvCfuB6kBg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
android
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/android-arm64@0.17.19
:
resolution
:
{
integrity
:
sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1199,8 +1208,8 @@ packages:
dev
:
true
optional
:
true
/@esbuild/android-arm@0.1
5.13
:
resolution
:
{
integrity
:
sha512-
RY2fVI8O0iFUNvZirXaQ1vMvK0xhCcl0gqRj74Z6yEiO1zAUa7hbsdwZM1kzqbxHK7LFyMizipfXT3JME+12H
w==
}
/@esbuild/android-arm@0.1
6.17
:
resolution
:
{
integrity
:
sha512-
N9x1CMXVhtWEAMS7pNNONyA14f71VPQN9Cnavj1XQh6T7bskqiLLrSca4O0Vr8Wdcga943eThxnVp3JLnBMYt
w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm
]
os
:
[
android
]
...
...
@@ -1226,6 +1235,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/android-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-a3kTv3m0Ghh4z1DaFEuEDfz3OLONKuFvI4Xqczqx4BqLyuFaFkuaG4j2MtA6fuWEFeC5x9IvqnX7drmRq/fyAQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
android
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/android-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1244,6 +1262,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/darwin-arm64@0.16.17
:
resolution
:
{
integrity
:
sha512-/2agbUEfmxWHi9ARTX6OQ/KgXnOWfsNlTeLcoV7HSuSTv63E4DqtAc+2XqGw1KHxKMHGZgbVCZge7HXWX9Vn+w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
darwin
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/darwin-arm64@0.17.19
:
resolution
:
{
integrity
:
sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1262,6 +1289,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/darwin-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-2By45OBHulkd9Svy5IOCZt376Aa2oOkiE9QWUK9fe6Tb+WDr8hXL3dpqi+DeLiMed8tVXspzsTAvd0jUl96wmg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
darwin
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/darwin-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1280,6 +1316,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/freebsd-arm64@0.16.17
:
resolution
:
{
integrity
:
sha512-mt+cxZe1tVx489VTb4mBAOo2aKSnJ33L9fr25JXpqQqzbUIw/yzIzi+NHwAXK2qYV1lEFp4OoVeThGjUbmWmdw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
freebsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/freebsd-arm64@0.17.19
:
resolution
:
{
integrity
:
sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1298,6 +1343,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/freebsd-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-8ScTdNJl5idAKjH8zGAsN7RuWcyHG3BAvMNpKOBaqqR7EbUhhVHOqXRdL7oZvz8WNHL2pr5+eIT5c65kA6NHug==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
freebsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/freebsd-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1316,6 +1370,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-arm64@0.16.17
:
resolution
:
{
integrity
:
sha512-7S8gJnSlqKGVJunnMCrXHU9Q8Q/tQIxk/xL8BqAP64wchPCTzuM6W3Ra8cIa1HIflAvDnNOt2jaL17vaW+1V0g==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-arm64@0.17.19
:
resolution
:
{
integrity
:
sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1334,6 +1397,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-arm@0.16.17
:
resolution
:
{
integrity
:
sha512-iihzrWbD4gIT7j3caMzKb/RsFFHCwqqbrbH9SqUSRrdXkXaygSZCZg1FybsZz57Ju7N/SHEgPyaR0LZ8Zbe9gQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-arm@0.17.19
:
resolution
:
{
integrity
:
sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1352,6 +1424,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-ia32@0.16.17
:
resolution
:
{
integrity
:
sha512-kiX69+wcPAdgl3Lonh1VI7MBr16nktEvOfViszBSxygRQqSpzv7BffMKRPMFwzeJGPxcio0pdD3kYQGpqQ2SSg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ia32
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-ia32@0.17.19
:
resolution
:
{
integrity
:
sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1370,8 +1451,8 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-loong64@0.1
5.13
:
resolution
:
{
integrity
:
sha512-
+BoyIm4I8uJmH/QDIH0fu7MG0AEx9OXEDXnqptXCwKOlOqZiS4iraH1Nr7/ObLMokW3sOCeBNyD68ATcV9b9Ag
==
}
/@esbuild/linux-loong64@0.1
6.17
:
resolution
:
{
integrity
:
sha512-
dTzNnQwembNDhd654cA4QhbS9uDdXC3TKqMJjgOWsC0yNCbpzfWoXdZvp0mY7HU6nzk5E0zpRGGx3qoQg8T2DQ
==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
loong64
]
os
:
[
linux
]
...
...
@@ -1397,6 +1478,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-mips64el@0.16.17
:
resolution
:
{
integrity
:
sha512-ezbDkp2nDl0PfIUn0CsQ30kxfcLTlcx4Foz2kYv8qdC6ia2oX5Q3E/8m6lq84Dj/6b0FrkgD582fJMIfHhJfSw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
mips64el
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-mips64el@0.17.19
:
resolution
:
{
integrity
:
sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1415,6 +1505,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-ppc64@0.16.17
:
resolution
:
{
integrity
:
sha512-dzS678gYD1lJsW73zrFhDApLVdM3cUF2MvAa1D8K8KtcSKdLBPP4zZSLy6LFZ0jYqQdQ29bjAHJDgz0rVbLB3g==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ppc64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-ppc64@0.17.19
:
resolution
:
{
integrity
:
sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1433,6 +1532,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-riscv64@0.16.17
:
resolution
:
{
integrity
:
sha512-ylNlVsxuFjZK8DQtNUwiMskh6nT0vI7kYl/4fZgV1llP5d6+HIeL/vmmm3jpuoo8+NuXjQVZxmKuhDApK0/cKw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
riscv64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-riscv64@0.17.19
:
resolution
:
{
integrity
:
sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1451,6 +1559,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-s390x@0.16.17
:
resolution
:
{
integrity
:
sha512-gzy7nUTO4UA4oZ2wAMXPNBGTzZFP7mss3aKR2hH+/4UUkCOyqmjXiKpzGrY2TlEUhbbejzXVKKGazYcQTZWA/w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
s390x
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-s390x@0.17.19
:
resolution
:
{
integrity
:
sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1469,6 +1586,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/linux-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-mdPjPxfnmoqhgpiEArqi4egmBAMYvaObgn4poorpUaqmvzzbvqbowRllQ+ZgzGVMGKaPkqUmPDOOFQRUFDmeUw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/linux-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1487,6 +1613,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/netbsd-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-/PzmzD/zyAeTUsduZa32bn0ORug+Jd1EGGAUJvqfeixoEISYpGnAezN6lnJoskauoai0Jrs+XSyvDhppCPoKOA==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
netbsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/netbsd-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1505,6 +1640,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/openbsd-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-2yaWJhvxGEz2RiftSk0UObqJa/b+rIAjnODJgv2GbGGpRwAfpgzyrg1WLK8rqA24mfZa9GvpjLcBBg8JHkoodg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
openbsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/openbsd-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1523,6 +1667,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/sunos-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-xtVUiev38tN0R3g8VhRfN7Zl42YCJvyBhRKw1RJjwE1d2emWTVToPLNEQj/5Qxc6lVFATDiy6LjVHYhIPrLxzw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
sunos
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/sunos-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1541,6 +1694,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/win32-arm64@0.16.17
:
resolution
:
{
integrity
:
sha512-ga8+JqBDHY4b6fQAmOgtJJue36scANy4l/rL97W+0wYmijhxKetzZdKOJI7olaBaMhWt8Pac2McJdZLxXWUEQw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/win32-arm64@0.17.19
:
resolution
:
{
integrity
:
sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1559,6 +1721,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/win32-ia32@0.16.17
:
resolution
:
{
integrity
:
sha512-WnsKaf46uSSF/sZhwnqE4L/F89AYNMiD4YtEcYekBt9Q7nj0DiId2XH2Ng2PHM54qi5oPrQ8luuzGszqi/veig==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ia32
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/win32-ia32@0.17.19
:
resolution
:
{
integrity
:
sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -1577,6 +1748,15 @@ packages:
dev
:
true
optional
:
true
/@esbuild/win32-x64@0.16.17
:
resolution
:
{
integrity
:
sha512-y+EHuSchhL7FjHgvQL/0fnnFmO4T1bhvWANX6gcnqTjtnKWbTvUMCpGnv2+t+31d7RzyEAYAd4u2fnIhHL6N/Q==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/@esbuild/win32-x64@0.17.19
:
resolution
:
{
integrity
:
sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==
}
engines
:
{
node
:
'
>=12'
}
...
...
@@ -4530,17 +4710,6 @@ packages:
dependencies
:
typescript
:
5.2.2
/@wagmi/chains@1.3.0(typescript@5.2.2)
:
resolution
:
{
integrity
:
sha512-7tyr1irTZQpA4/4HoIiJP3XYZuJIZuWiZ1V1j5WEG3cjm8TXIlMEzO0N+hT/cZKw4/UtF2EukvB8GkDWa2S77w==
}
peerDependencies
:
typescript
:
'
>=5.0.4'
peerDependenciesMeta
:
typescript
:
optional
:
true
dependencies
:
typescript
:
5.2.2
dev
:
true
/@wagmi/chains@1.6.0(typescript@5.2.2)
:
resolution
:
{
integrity
:
sha512-5FRlVxse5P4ZaHG3GTvxwVANSmYJas1eQrTBHhjxVtqXoorm0aLmCHbhmN8Xo1yu09PaWKlleEvfE98yH4AgIw==
}
peerDependencies
:
...
...
@@ -4551,8 +4720,8 @@ packages:
dependencies
:
typescript
:
5.2.2
/@wagmi/cli@1.
3.0
(@wagmi/core@1.3.8)(typescript@5.2.2)(wagmi@1.0.1)
:
resolution
:
{
integrity
:
sha512-
/YXmdp0XWgQEwRSVO8IjVB8KY5HK+6+eqJsZI3a+y3XMH4T/NxVBoT/JxTqV6HEivr3HOLgDcTzvQhNy3mZ0HA
==
}
/@wagmi/cli@1.
5.2
(@wagmi/core@1.3.8)(typescript@5.2.2)(wagmi@1.0.1)
:
resolution
:
{
integrity
:
sha512-
UfLMYhW6mQBCjR8A5s01Chf9GpHzdpcuuBuzJ36QGXcMSJAxylz5ImVZWfCRV0ct1UruydjKVSW1QSI6azNxRQ
==
}
engines
:
{
node
:
'
>=14'
}
hasBin
:
true
peerDependencies
:
...
...
@@ -4567,11 +4736,10 @@ packages:
wagmi
:
optional
:
true
dependencies
:
'
@wagmi/chains'
:
1.3.0(typescript@5.2.2)
'
@wagmi/core'
:
1.3.8(react@18.2.0)(typescript@5.2.2)(viem@1.3.1)
abitype
:
0.8.7(typescript@5.2.2)(zod@3.22.1)
abort-controller
:
3.0.0
bundle-require
:
3.1.2(esbuild@0.1
5.13
)
bundle-require
:
3.1.2(esbuild@0.1
6.17
)
cac
:
6.7.14
change-case
:
4.1.2
chokidar
:
3.5.3
...
...
@@ -4579,7 +4747,7 @@ packages:
detect-package-manager
:
2.0.1
dotenv
:
16.3.1
dotenv-expand
:
10.0.0
esbuild
:
0.1
5.13
esbuild
:
0.1
6.17
execa
:
6.1.0
find-up
:
6.3.0
fs-extra
:
10.1.0
...
...
@@ -6067,13 +6235,13 @@ packages:
engines
:
{
node
:
'
>=6'
}
dev
:
true
/bundle-require@3.1.2(esbuild@0.1
5.13
)
:
/bundle-require@3.1.2(esbuild@0.1
6.17
)
:
resolution
:
{
integrity
:
sha512-Of6l6JBAxiyQ5axFxUM6dYeP/W7X2Sozeo/4EYB9sJhL+dqL7TKjg+shwxp6jlu/6ZSERfsYtIpSJ1/x3XkAEA==
}
engines
:
{
node
:
^12.20.0 || ^14.13.1 || >=16.0.0
}
peerDependencies
:
esbuild
:
'
>=0.13'
dependencies
:
esbuild
:
0.1
5.13
esbuild
:
0.1
6.17
load-tsconfig
:
0.2.5
dev
:
true
...
...
@@ -7328,214 +7496,34 @@ packages:
dependencies
:
es6-promise
:
4.2.8
/esbuild-android-64@0.15.13
:
resolution
:
{
integrity
:
sha512-yRorukXBlokwTip+Sy4MYskLhJsO0Kn0/Fj43s1krVblfwP+hMD37a4Wmg139GEsMLl+vh8WXp2mq/cTA9J97g==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
android
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-android-arm64@0.15.13
:
resolution
:
{
integrity
:
sha512-TKzyymLD6PiVeyYa4c5wdPw87BeAiTXNtK6amWUcXZxkV51gOk5u5qzmDaYSwiWeecSNHamFsaFjLoi32QR5/w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
android
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-darwin-64@0.15.13
:
resolution
:
{
integrity
:
sha512-WAx7c2DaOS6CrRcoYCgXgkXDliLnFv3pQLV6GeW1YcGEZq2Gnl8s9Pg7ahValZkpOa0iE/ojRVQ87sbUhF1Cbg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
darwin
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-darwin-arm64@0.15.13
:
resolution
:
{
integrity
:
sha512-U6jFsPfSSxC3V1CLiQqwvDuj3GGrtQNB3P3nNC3+q99EKf94UGpsG9l4CQ83zBs1NHrk1rtCSYT0+KfK5LsD8A==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
darwin
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-freebsd-64@0.15.13
:
resolution
:
{
integrity
:
sha512-whItJgDiOXaDG/idy75qqevIpZjnReZkMGCgQaBWZuKHoElDJC1rh7MpoUgupMcdfOd+PgdEwNQW9DAE6i8wyA==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
freebsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-freebsd-arm64@0.15.13
:
resolution
:
{
integrity
:
sha512-6pCSWt8mLUbPtygv7cufV0sZLeylaMwS5Fznj6Rsx9G2AJJsAjQ9ifA+0rQEIg7DwJmi9it+WjzNTEAzzdoM3Q==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
freebsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-32@0.15.13
:
resolution
:
{
integrity
:
sha512-VbZdWOEdrJiYApm2kkxoTOgsoCO1krBZ3quHdYk3g3ivWaMwNIVPIfEE0f0XQQ0u5pJtBsnk2/7OPiCFIPOe/w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ia32
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-64@0.15.13
:
resolution
:
{
integrity
:
sha512-rXmnArVNio6yANSqDQlIO4WiP+Cv7+9EuAHNnag7rByAqFVuRusLbGi2697A5dFPNXoO//IiogVwi3AdcfPC6A==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-arm64@0.15.13
:
resolution
:
{
integrity
:
sha512-alEMGU4Z+d17U7KQQw2IV8tQycO6T+rOrgW8OS22Ua25x6kHxoG6Ngry6Aq6uranC+pNWNMB6aHFPh7aTQdORQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-arm@0.15.13
:
resolution
:
{
integrity
:
sha512-Ac6LpfmJO8WhCMQmO253xX2IU2B3wPDbl4IvR0hnqcPrdfCaUa2j/lLMGTjmQ4W5JsJIdHEdW12dG8lFS0MbxQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-mips64le@0.15.13
:
resolution
:
{
integrity
:
sha512-47PgmyYEu+yN5rD/MbwS6DxP2FSGPo4Uxg5LwIdxTiyGC2XKwHhHyW7YYEDlSuXLQXEdTO7mYe8zQ74czP7W8A==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
mips64el
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-ppc64le@0.15.13
:
resolution
:
{
integrity
:
sha512-z6n28h2+PC1Ayle9DjKoBRcx/4cxHoOa2e689e2aDJSaKug3jXcQw7mM+GLg+9ydYoNzj8QxNL8ihOv/OnezhA==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ppc64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-riscv64@0.15.13
:
resolution
:
{
integrity
:
sha512-+Lu4zuuXuQhgLUGyZloWCqTslcCAjMZH1k3Xc9MSEJEpEFdpsSU0sRDXAnk18FKOfEjhu4YMGaykx9xjtpA6ow==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
riscv64
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-linux-s390x@0.15.13
:
resolution
:
{
integrity
:
sha512-BMeXRljruf7J0TMxD5CIXS65y7puiZkAh+s4XFV9qy16SxOuMhxhVIXYLnbdfLrsYGFzx7U9mcdpFWkkvy/Uag==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
s390x
]
os
:
[
linux
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-netbsd-64@0.15.13
:
resolution
:
{
integrity
:
sha512-EHj9QZOTel581JPj7UO3xYbltFTYnHy+SIqJVq6yd3KkCrsHRbapiPb0Lx3EOOtybBEE9EyqbmfW1NlSDsSzvQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
netbsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-openbsd-64@0.15.13
:
resolution
:
{
integrity
:
sha512-nkuDlIjF/sfUhfx8SKq0+U+Fgx5K9JcPq1mUodnxI0x4kBdCv46rOGWbuJ6eof2n3wdoCLccOoJAbg9ba/bT2w==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
openbsd
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-sunos-64@0.15.13
:
resolution
:
{
integrity
:
sha512-jVeu2GfxZQ++6lRdY43CS0Tm/r4WuQQ0Pdsrxbw+aOrHQPHV0+LNOLnvbN28M7BSUGnJnHkHm2HozGgNGyeIRw==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
sunos
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-windows-32@0.15.13
:
resolution
:
{
integrity
:
sha512-XoF2iBf0wnqo16SDq+aDGi/+QbaLFpkiRarPVssMh9KYbFNCqPLlGAWwDvxEVz+ywX6Si37J2AKm+AXq1kC0JA==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
ia32
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-windows-64@0.15.13
:
resolution
:
{
integrity
:
sha512-Et6htEfGycjDrtqb2ng6nT+baesZPYQIW+HUEHK4D1ncggNrDNk3yoboYQ5KtiVrw/JaDMNttz8rrPubV/fvPQ==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
x64
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild-windows-arm64@0.15.13
:
resolution
:
{
integrity
:
sha512-3bv7tqntThQC9SWLRouMDmZnlOukBhOCTlkzNqzGCmrkCJI7io5LLjwJBOVY6kOUlIvdxbooNZwjtBvj+7uuVg==
}
engines
:
{
node
:
'
>=12'
}
cpu
:
[
arm64
]
os
:
[
win32
]
requiresBuild
:
true
dev
:
true
optional
:
true
/esbuild@0.15.13
:
resolution
:
{
integrity
:
sha512-Cu3SC84oyzzhrK/YyN4iEVy2jZu5t2fz66HEOShHURcjSkOSAVL8C/gfUT+lDJxkVHpg8GZ10DD0rMHRPqMFaQ==
}
/esbuild@0.16.17
:
resolution
:
{
integrity
:
sha512-G8LEkV0XzDMNwXKgM0Jwu3nY3lSTwSGY6XbxM9cr9+s0T/qSV1q1JVPBGzm3dcjhCic9+emZDmMffkwgPeOeLg==
}
engines
:
{
node
:
'
>=12'
}
hasBin
:
true
requiresBuild
:
true
optionalDependencies
:
'
@esbuild/android-arm'
:
0.1
5.13
'
@esbuild/
linux-loong64'
:
0.15.13
esbuild-android-64
:
0.15.13
esbuild-android-arm64
:
0.15.13
esbuild-darwin-64
:
0.15.13
esbuild-darwin-arm64
:
0.15.13
esbuild-freebsd-64
:
0.15.13
esbuild-freebsd-arm64
:
0.15.13
esbuild-linux-32
:
0.15.13
esbuild-linux-64
:
0.15.13
esbuild-linux-arm
:
0.15.13
esbuild-linux-arm64
:
0.15.13
esbuild-linux-mips64le
:
0.15.13
esbuild-linux-ppc64le
:
0.15.13
esbuild-linux-riscv64
:
0.15.13
esbuild-linux-s390x
:
0.15.13
esbuild-netbsd-64
:
0.15.13
esbuild-openbsd-64
:
0.15.13
esbuild-sunos-64
:
0.15.13
esbuild-windows-32
:
0.15.13
esbuild-windows-64
:
0.15.13
esbuild-windows-arm64
:
0.15.13
'
@esbuild/android-arm'
:
0.1
6.17
'
@esbuild/
android-arm64'
:
0.16.17
'
@esbuild/android-x64'
:
0.16.17
'
@esbuild/darwin-arm64'
:
0.16.17
'
@esbuild/darwin-x64'
:
0.16.17
'
@esbuild/freebsd-arm64'
:
0.16.17
'
@esbuild/freebsd-x64'
:
0.16.17
'
@esbuild/linux-arm'
:
0.16.17
'
@esbuild/linux-arm64'
:
0.16.17
'
@esbuild/linux-ia32'
:
0.16.17
'
@esbuild/linux-loong64'
:
0.16.17
'
@esbuild/linux-mips64el'
:
0.16.17
'
@esbuild/linux-ppc64'
:
0.16.17
'
@esbuild/linux-riscv64'
:
0.16.17
'
@esbuild/linux-s390x'
:
0.16.17
'
@esbuild/linux-x64'
:
0.16.17
'
@esbuild/netbsd-x64'
:
0.16.17
'
@esbuild/openbsd-x64'
:
0.16.17
'
@esbuild/sunos-x64'
:
0.16.17
'
@esbuild/win32-arm64'
:
0.16.17
'
@esbuild/win32-ia32'
:
0.16.17
'
@esbuild/win32-x64'
:
0.16.17
dev
:
true
/esbuild@0.17.19
:
...
...
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