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
a217c500
Commit
a217c500
authored
Jul 10, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pointer for finalized l2 event
parent
b4db3428
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
bridge.go
indexer/database/bridge.go
+3
-2
No files found.
indexer/database/bridge.go
View file @
a217c500
...
...
@@ -33,7 +33,6 @@ type TokenPair struct {
type
Deposit
struct
{
GUID
uuid
.
UUID
`gorm:"primaryKey"`
InitiatedL1EventGUID
uuid
.
UUID
FinalizedL2EventGUID
uuid
.
UUID
`gorm:"default:null"`
// Since we're only currently indexing a single StandardBridge,
// the message nonce serves as a unique identifier for this
...
...
@@ -43,6 +42,8 @@ type Deposit struct {
// for a bridge msg
SentMessageNonce
U256
FinalizedL2EventGUID
*
uuid
.
UUID
Tx
Transaction
`gorm:"embedded"`
TokenPair
TokenPair
`gorm:"embedded"`
}
...
...
@@ -176,7 +177,7 @@ func (db *bridgeDB) MarkFinalizedDepositEvent(guid, finalizationEventGUID uuid.U
return
result
.
Error
}
deposit
.
FinalizedL2EventGUID
=
finalizationEventGUID
deposit
.
FinalizedL2EventGUID
=
&
finalizationEventGUID
result
=
db
.
gorm
.
Save
(
&
deposit
)
return
result
.
Error
}
...
...
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