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
7bc245ff
Commit
7bc245ff
authored
Jun 23, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ctb): Emit tx hash in wallet-mon detection logs
parent
180d33ee
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 @
7bc245ff
...
...
@@ -7,7 +7,7 @@ import {
waitForProvider
,
}
from
'
@eth-optimism/common-ts
'
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
goerliConfig
from
'
@eth-optimism/contracts-bedrock/deploy-config/goerli.json
'
import
l2OutputOracleArtifactsMainnet
from
'
@eth-optimism/contracts-bedrock/deployments/mainnet/L2OutputOracleProxy.json
'
...
...
@@ -101,7 +101,7 @@ export class WalletMonService extends BaseServiceV2<
unexpectedCalls
:
{
type
:
Counter
,
desc
:
'
Number of unexpected wallets
'
,
labels
:
[
'
wallet
'
,
'
target
'
,
'
nickname
'
],
labels
:
[
'
wallet
'
,
'
target
'
,
'
nickname
'
,
'
transactionHash
'
],
},
unexpectedRpcErrors
:
{
type
:
Counter
,
...
...
@@ -150,7 +150,7 @@ export class WalletMonService extends BaseServiceV2<
number
:
block
.
number
,
})
const
transactions
=
[]
const
transactions
:
TransactionResponse
[]
=
[]
for
(
const
txHash
of
block
.
transactions
)
{
const
t
=
await
this
.
options
.
rpc
.
getTransaction
(
txHash
)
transactions
.
push
(
t
)
...
...
@@ -175,11 +175,13 @@ export class WalletMonService extends BaseServiceV2<
nickname
:
account
.
label
,
wallet
:
account
.
address
,
target
:
transaction
.
to
,
transactionHash
:
transaction
.
hash
,
})
this
.
logger
.
error
(
'
Unexpected call detected
'
,
{
nickname
:
account
.
label
,
address
:
account
.
address
,
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