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
e3dc90cb
Unverified
Commit
e3dc90cb
authored
Jun 06, 2021
by
Karl Floersch
Committed by
GitHub
Jun 06, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: lint errors in dtl (#1025)
parent
8ac4c74c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
package.json
packages/data-transport-layer/package.json
+1
-0
service.ts
...data-transport-layer/src/services/l2-ingestion/service.ts
+12
-8
No files found.
packages/data-transport-layer/package.json
View file @
e3dc90cb
...
...
@@ -29,6 +29,7 @@
"@sentry/node"
:
"^6.3.1"
,
"@sentry/tracing"
:
"^6.3.1"
,
"@types/express"
:
"^4.17.11"
,
"axios"
:
"^0.21.1"
,
"bcfg"
:
"^0.1.6"
,
"bfj"
:
"^7.0.2"
,
"browser-or-node"
:
"^1.3.0"
,
...
...
packages/data-transport-layer/src/services/l2-ingestion/service.ts
View file @
e3dc90cb
...
...
@@ -3,8 +3,8 @@ import { BaseService } from '@eth-optimism/common-ts'
import
{
JsonRpcProvider
}
from
'
@ethersproject/providers
'
import
{
BigNumber
}
from
'
ethers
'
import
{
LevelUp
}
from
'
levelup
'
import
axios
from
'
axios
'
;
import
bfj
from
'
bfj
'
;
import
axios
from
'
axios
'
import
bfj
from
'
bfj
'
/* Imports: Internal */
import
{
TransportDB
}
from
'
../../db/transport-db
'
...
...
@@ -184,13 +184,17 @@ export class L2IngestionService extends BaseService<L2IngestionServiceOptions> {
true
,
],
id
:
'
1
'
,
}
;
}
const
resp
=
await
axios
.
post
(
this
.
state
.
l2RpcProvider
.
connection
.
url
,
req
,
{
responseType
:
'
stream
'
});
const
respJson
=
await
bfj
.
parse
(
resp
.
data
,
{
yieldRate
:
4096
// this yields abit more often than the default of 16384
});
const
blocks
=
respJson
.
data
;
const
resp
=
await
axios
.
post
(
this
.
state
.
l2RpcProvider
.
connection
.
url
,
req
,
{
responseType
:
'
stream
'
}
)
const
respJson
=
await
bfj
.
parse
(
resp
.
data
,
{
yieldRate
:
4096
,
// this yields abit more often than the default of 16384
})
blocks
=
respJson
.
data
}
for
(
const
block
of
blocks
)
{
...
...
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