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
49014a29
Unverified
Commit
49014a29
authored
Jul 11, 2023
by
Sebastian Stammler
Committed by
GitHub
Jul 11, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6121 from ethereum-optimism/jm/wallet-mon-tx-hash
feat(ctb): Emit tx hash in wallet-mon detection logs
parents
180d33ee
7bc245ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
service.ts
packages/chain-mon/src/wallet-mon/service.ts
+5
-3
No files found.
packages/chain-mon/src/wallet-mon/service.ts
View file @
49014a29
...
@@ -7,7 +7,7 @@ import {
...
@@ -7,7 +7,7 @@ import {
waitForProvider
,
waitForProvider
,
}
from
'
@eth-optimism/common-ts
'
}
from
'
@eth-optimism/common-ts
'
import
{
getChainId
,
compareAddrs
}
from
'
@eth-optimism/core-utils
'
import
{
getChainId
,
compareAddrs
}
from
'
@eth-optimism/core-utils
'
import
{
Provider
}
from
'
@ethersproject/abstract-provider
'
import
{
Provider
,
TransactionResponse
}
from
'
@ethersproject/abstract-provider
'
import
mainnetConfig
from
'
@eth-optimism/contracts-bedrock/deploy-config/mainnet.json
'
import
mainnetConfig
from
'
@eth-optimism/contracts-bedrock/deploy-config/mainnet.json
'
import
goerliConfig
from
'
@eth-optimism/contracts-bedrock/deploy-config/goerli.json
'
import
goerliConfig
from
'
@eth-optimism/contracts-bedrock/deploy-config/goerli.json
'
import
l2OutputOracleArtifactsMainnet
from
'
@eth-optimism/contracts-bedrock/deployments/mainnet/L2OutputOracleProxy.json
'
import
l2OutputOracleArtifactsMainnet
from
'
@eth-optimism/contracts-bedrock/deployments/mainnet/L2OutputOracleProxy.json
'
...
@@ -101,7 +101,7 @@ export class WalletMonService extends BaseServiceV2<
...
@@ -101,7 +101,7 @@ export class WalletMonService extends BaseServiceV2<
unexpectedCalls
:
{
unexpectedCalls
:
{
type
:
Counter
,
type
:
Counter
,
desc
:
'
Number of unexpected wallets
'
,
desc
:
'
Number of unexpected wallets
'
,
labels
:
[
'
wallet
'
,
'
target
'
,
'
nickname
'
],
labels
:
[
'
wallet
'
,
'
target
'
,
'
nickname
'
,
'
transactionHash
'
],
},
},
unexpectedRpcErrors
:
{
unexpectedRpcErrors
:
{
type
:
Counter
,
type
:
Counter
,
...
@@ -150,7 +150,7 @@ export class WalletMonService extends BaseServiceV2<
...
@@ -150,7 +150,7 @@ export class WalletMonService extends BaseServiceV2<
number
:
block
.
number
,
number
:
block
.
number
,
})
})
const
transactions
=
[]
const
transactions
:
TransactionResponse
[]
=
[]
for
(
const
txHash
of
block
.
transactions
)
{
for
(
const
txHash
of
block
.
transactions
)
{
const
t
=
await
this
.
options
.
rpc
.
getTransaction
(
txHash
)
const
t
=
await
this
.
options
.
rpc
.
getTransaction
(
txHash
)
transactions
.
push
(
t
)
transactions
.
push
(
t
)
...
@@ -175,11 +175,13 @@ export class WalletMonService extends BaseServiceV2<
...
@@ -175,11 +175,13 @@ export class WalletMonService extends BaseServiceV2<
nickname
:
account
.
label
,
nickname
:
account
.
label
,
wallet
:
account
.
address
,
wallet
:
account
.
address
,
target
:
transaction
.
to
,
target
:
transaction
.
to
,
transactionHash
:
transaction
.
hash
,
})
})
this
.
logger
.
error
(
'
Unexpected call detected
'
,
{
this
.
logger
.
error
(
'
Unexpected call detected
'
,
{
nickname
:
account
.
label
,
nickname
:
account
.
label
,
address
:
account
.
address
,
address
:
account
.
address
,
target
:
transaction
.
to
,
target
:
transaction
.
to
,
transactionHash
:
transaction
.
hash
,
})
})
}
}
}
}
...
...
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