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
a13573d6
Commit
a13573d6
authored
Oct 06, 2023
by
Hamdi Allam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use mint field of portal deposit tx
parent
11642bea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
20230523_create_schema.sql
indexer/migrations/20230523_create_schema.sql
+4
-0
optimism_portal.go
indexer/processors/contracts/optimism_portal.go
+1
-1
No files found.
indexer/migrations/20230523_create_schema.sql
View file @
a13573d6
...
@@ -95,7 +95,11 @@ CREATE TABLE IF NOT EXISTS l1_transaction_deposits (
...
@@ -95,7 +95,11 @@ CREATE TABLE IF NOT EXISTS l1_transaction_deposits (
-- transaction data
-- transaction data
from_address
VARCHAR
NOT
NULL
,
from_address
VARCHAR
NOT
NULL
,
to_address
VARCHAR
NOT
NULL
,
to_address
VARCHAR
NOT
NULL
,
-- This refers to the amount MINTED on L2 (msg.value of the L1 transaction). Important distinction from
-- the `value` field of the deposit transaction which simply is the value transferred to specified recipient.
amount
UINT256
NOT
NULL
,
amount
UINT256
NOT
NULL
,
gas_limit
UINT256
NOT
NULL
,
gas_limit
UINT256
NOT
NULL
,
data
VARCHAR
NOT
NULL
,
data
VARCHAR
NOT
NULL
,
timestamp
INTEGER
NOT
NULL
CHECK
(
timestamp
>
0
)
timestamp
INTEGER
NOT
NULL
CHECK
(
timestamp
>
0
)
...
...
indexer/processors/contracts/optimism_portal.go
View file @
a13573d6
...
@@ -71,7 +71,7 @@ func OptimismPortalTransactionDepositEvents(contractAddress common.Address, db *
...
@@ -71,7 +71,7 @@ func OptimismPortalTransactionDepositEvents(contractAddress common.Address, db *
Tx
:
database
.
Transaction
{
Tx
:
database
.
Transaction
{
FromAddress
:
txDeposit
.
From
,
FromAddress
:
txDeposit
.
From
,
ToAddress
:
txDeposit
.
To
,
ToAddress
:
txDeposit
.
To
,
Amount
:
depositTx
.
Value
,
Amount
:
depositTx
.
Mint
,
Data
:
depositTx
.
Data
,
Data
:
depositTx
.
Data
,
Timestamp
:
transactionDepositEvents
[
i
]
.
Timestamp
,
Timestamp
:
transactionDepositEvents
[
i
]
.
Timestamp
,
},
},
...
...
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