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
9e78b90f
Commit
9e78b90f
authored
Aug 09, 2023
by
Joshua Gutow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rest of indexer
parent
f15fa24e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
20 deletions
+8
-20
eth_bridge.go
indexer/services/l1/bridge/eth_bridge.go
+2
-5
portal.go
indexer/services/l1/bridge/portal.go
+4
-10
standard_bridge.go
indexer/services/l1/bridge/standard_bridge.go
+2
-5
No files found.
indexer/services/l1/bridge/eth_bridge.go
View file @
9e78b90f
...
@@ -28,11 +28,8 @@ func (e *EthBridge) GetDepositsByBlockRange(ctx context.Context, start, end uint
...
@@ -28,11 +28,8 @@ func (e *EthBridge) GetDepositsByBlockRange(ctx context.Context, start, end uint
End
:
&
end
,
End
:
&
end
,
}
}
var
iter
*
bindings
.
L1StandardBridgeETHDepositInitiatedIterator
iter
,
err
:=
backoff
.
Do
(
ctx
,
3
,
backoff
.
Exponential
(),
func
()
(
*
bindings
.
L1StandardBridgeETHDepositInitiatedIterator
,
error
)
{
err
:=
backoff
.
Do
(
3
,
backoff
.
Exponential
(),
func
()
error
{
return
e
.
contract
.
FilterETHDepositInitiated
(
opts
,
nil
,
nil
)
var
err
error
iter
,
err
=
e
.
contract
.
FilterETHDepositInitiated
(
opts
,
nil
,
nil
)
return
err
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
indexer/services/l1/bridge/portal.go
View file @
9e78b90f
...
@@ -37,11 +37,8 @@ func (p *Portal) GetProvenWithdrawalsByBlockRange(ctx context.Context, start, en
...
@@ -37,11 +37,8 @@ func (p *Portal) GetProvenWithdrawalsByBlockRange(ctx context.Context, start, en
End
:
&
end
,
End
:
&
end
,
}
}
var
iter
*
bindings
.
OptimismPortalWithdrawalProvenIterator
iter
,
err
:=
backoff
.
Do
(
ctx
,
3
,
backoff
.
Exponential
(),
func
()
(
*
bindings
.
OptimismPortalWithdrawalProvenIterator
,
error
)
{
err
:=
backoff
.
Do
(
3
,
backoff
.
Exponential
(),
func
()
error
{
return
p
.
contract
.
FilterWithdrawalProven
(
opts
,
nil
,
nil
,
nil
)
var
err
error
iter
,
err
=
p
.
contract
.
FilterWithdrawalProven
(
opts
,
nil
,
nil
,
nil
)
return
err
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
@@ -71,11 +68,8 @@ func (p *Portal) GetFinalizedWithdrawalsByBlockRange(ctx context.Context, start,
...
@@ -71,11 +68,8 @@ func (p *Portal) GetFinalizedWithdrawalsByBlockRange(ctx context.Context, start,
End
:
&
end
,
End
:
&
end
,
}
}
var
iter
*
bindings
.
OptimismPortalWithdrawalFinalizedIterator
iter
,
err
:=
backoff
.
Do
(
ctx
,
3
,
backoff
.
Exponential
(),
func
()
(
*
bindings
.
OptimismPortalWithdrawalFinalizedIterator
,
error
)
{
err
:=
backoff
.
Do
(
3
,
backoff
.
Exponential
(),
func
()
error
{
return
p
.
contract
.
FilterWithdrawalFinalized
(
opts
,
nil
)
var
err
error
iter
,
err
=
p
.
contract
.
FilterWithdrawalFinalized
(
opts
,
nil
)
return
err
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
indexer/services/l1/bridge/standard_bridge.go
View file @
9e78b90f
...
@@ -28,11 +28,8 @@ func (s *StandardBridge) GetDepositsByBlockRange(ctx context.Context, start, end
...
@@ -28,11 +28,8 @@ func (s *StandardBridge) GetDepositsByBlockRange(ctx context.Context, start, end
End
:
&
end
,
End
:
&
end
,
}
}
var
iter
*
bindings
.
L1StandardBridgeERC20DepositInitiatedIterator
iter
,
err
:=
backoff
.
Do
(
ctx
,
3
,
backoff
.
Exponential
(),
func
()
(
*
bindings
.
L1StandardBridgeERC20DepositInitiatedIterator
,
error
)
{
err
:=
backoff
.
Do
(
3
,
backoff
.
Exponential
(),
func
()
error
{
return
s
.
contract
.
FilterERC20DepositInitiated
(
opts
,
nil
,
nil
,
nil
)
var
err
error
iter
,
err
=
s
.
contract
.
FilterERC20DepositInitiated
(
opts
,
nil
,
nil
,
nil
)
return
err
})
})
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
...
...
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