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
f1ed32e8
Commit
f1ed32e8
authored
Jun 01, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove gorm tags besides `embedded`
parent
f2392da0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
blocks.go
indexer/database/blocks.go
+5
-5
bridge.go
indexer/database/bridge.go
+2
-2
contract_events.go
indexer/database/contract_events.go
+1
-1
No files found.
indexer/database/blocks.go
View file @
f1ed32e8
...
@@ -15,9 +15,9 @@ import (
...
@@ -15,9 +15,9 @@ import (
*/
*/
type
BlockHeader
struct
{
type
BlockHeader
struct
{
Hash
common
.
Hash
`gorm:"primaryKey"`
Hash
common
.
Hash
ParentHash
common
.
Hash
`gorm:"unique"`
ParentHash
common
.
Hash
Number
pgtype
.
Numeric
`gorm:"unique"`
Number
pgtype
.
Numeric
Timestamp
uint64
Timestamp
uint64
}
}
...
@@ -35,8 +35,8 @@ type L2BlockHeader struct {
...
@@ -35,8 +35,8 @@ type L2BlockHeader struct {
}
}
type
LegacyStateBatch
struct
{
type
LegacyStateBatch
struct
{
Index
uint64
`gorm:"primaryKey"`
Index
uint64
Root
common
.
Hash
`gorm:"unique"`
Root
common
.
Hash
Size
uint64
Size
uint64
PrevTotal
uint64
PrevTotal
uint64
L1BlockHash
common
.
Hash
L1BlockHash
common
.
Hash
...
...
indexer/database/bridge.go
View file @
f1ed32e8
...
@@ -25,7 +25,7 @@ type TokenPair struct {
...
@@ -25,7 +25,7 @@ type TokenPair struct {
}
}
type
Deposit
struct
{
type
Deposit
struct
{
GUID
string
`gorm:"primaryKey"`
GUID
string
InitiatedL1EventGUID
string
InitiatedL1EventGUID
string
Tx
Transaction
`gorm:"embedded"`
Tx
Transaction
`gorm:"embedded"`
...
@@ -38,7 +38,7 @@ type DepositWithTransactionHash struct {
...
@@ -38,7 +38,7 @@ type DepositWithTransactionHash struct {
}
}
type
Withdrawal
struct
{
type
Withdrawal
struct
{
GUID
string
`gorm:"primaryKey"`
GUID
string
InitiatedL2EventGUID
string
InitiatedL2EventGUID
string
WithdrawalHash
common
.
Hash
WithdrawalHash
common
.
Hash
...
...
indexer/database/contract_events.go
View file @
f1ed32e8
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
*/
*/
type
ContractEvent
struct
{
type
ContractEvent
struct
{
GUID
string
`gorm:"primaryKey"`
GUID
string
BlockHash
common
.
Hash
BlockHash
common
.
Hash
TransactionHash
common
.
Hash
TransactionHash
common
.
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