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
5e2b2d09
Commit
5e2b2d09
authored
Sep 15, 2023
by
Will Cory
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Fix json tags
parent
049a99ee
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
20 deletions
+20
-20
config.yml
.circleci/config.yml
+1
-1
generated.ts
indexer/api-ts/generated.ts
+9
-9
package.json
indexer/api-ts/package.json
+1
-1
deposits.go
indexer/api/routes/deposits.go
+5
-5
withdrawals.go
indexer/api/routes/withdrawals.go
+4
-4
No files found.
.circleci/config.yml
View file @
5e2b2d09
...
@@ -889,7 +889,7 @@ jobs:
...
@@ -889,7 +889,7 @@ jobs:
working_directory
:
indexer
working_directory
:
indexer
-
run
:
-
run
:
name
:
Install node_modules
name
:
Install node_modules
command
:
pnpm install --frozen-lockfile --offline
command
:
pnpm install --frozen-lockfile --
prefer-
offline
working_directory
:
indexer/api-ts
working_directory
:
indexer/api-ts
-
run
:
-
run
:
name
:
Install tygo
name
:
Install tygo
...
...
indexer/api-ts/generated.ts
View file @
5e2b2d09
...
@@ -8,12 +8,12 @@ export interface DepositItem {
...
@@ -8,12 +8,12 @@ export interface DepositItem {
from
:
string
;
from
:
string
;
to
:
string
;
to
:
string
;
timestamp
:
number
/* uint64 */
;
timestamp
:
number
/* uint64 */
;
L1Tx
Hash
:
string
;
l1Block
Hash
:
string
;
L2
TxHash
:
string
;
l1
TxHash
:
string
;
Block
:
string
;
l2TxHash
:
string
;
amount
:
string
;
amount
:
string
;
l1Token
:
string
;
l1Token
Address
:
string
;
l2Token
:
string
;
l2Token
Address
:
string
;
}
}
export
interface
DepositResponse
{
export
interface
DepositResponse
{
cursor
:
string
;
cursor
:
string
;
...
@@ -41,10 +41,10 @@ export interface WithdrawalItem {
...
@@ -41,10 +41,10 @@ export interface WithdrawalItem {
timestamp
:
number
/* uint64 */
;
timestamp
:
number
/* uint64 */
;
l2BlockHash
:
string
;
l2BlockHash
:
string
;
amount
:
string
;
amount
:
string
;
proof
:
string
;
proof
TransactionHash
:
string
;
claim
:
string
;
claim
TransactionHash
:
string
;
l1Token
:
string
;
l1Token
Address
:
string
;
l2Token
:
string
;
l2Token
Address
:
string
;
}
}
export
interface
WithdrawalResponse
{
export
interface
WithdrawalResponse
{
cursor
:
string
;
cursor
:
string
;
...
...
indexer/api-ts/package.json
View file @
5e2b2d09
{
{
"name"
:
"@eth-optimism/indexer-api"
,
"name"
:
"@eth-optimism/indexer-api"
,
"version"
:
"0.0.
2
"
,
"version"
:
"0.0.
3
"
,
"description"
:
"[Optimism] typescript types for the indexer service"
,
"description"
:
"[Optimism] typescript types for the indexer service"
,
"main"
:
"indexer.cjs"
,
"main"
:
"indexer.cjs"
,
"module"
:
"indexer.js"
,
"module"
:
"indexer.js"
,
...
...
indexer/api/routes/deposits.go
View file @
5e2b2d09
...
@@ -14,12 +14,12 @@ type DepositItem struct {
...
@@ -14,12 +14,12 @@ type DepositItem struct {
From
string
`json:"from"`
From
string
`json:"from"`
To
string
`json:"to"`
To
string
`json:"to"`
Timestamp
uint64
`json:"timestamp"`
Timestamp
uint64
`json:"timestamp"`
L1
TxHash
string
`json:"L1Tx
Hash"`
L1
BlockHash
string
`json:"l1Block
Hash"`
L
2TxHash
string
`json:"L2
TxHash"`
L
1TxHash
string
`json:"l1
TxHash"`
L
1BlockHash
string
`json:"Block
"`
L
2TxHash
string
`json:"l2TxHash
"`
Amount
string
`json:"amount"`
Amount
string
`json:"amount"`
L1TokenAddress
string
`json:"l1Token"`
L1TokenAddress
string
`json:"l1Token
Address
"`
L2TokenAddress
string
`json:"l2Token"`
L2TokenAddress
string
`json:"l2Token
Address
"`
}
}
type
DepositResponse
struct
{
type
DepositResponse
struct
{
...
...
indexer/api/routes/withdrawals.go
View file @
5e2b2d09
...
@@ -17,10 +17,10 @@ type WithdrawalItem struct {
...
@@ -17,10 +17,10 @@ type WithdrawalItem struct {
Timestamp
uint64
`json:"timestamp"`
Timestamp
uint64
`json:"timestamp"`
L2BlockHash
string
`json:"l2BlockHash"`
L2BlockHash
string
`json:"l2BlockHash"`
Amount
string
`json:"amount"`
Amount
string
`json:"amount"`
ProofTransactionHash
string
`json:"proof"`
ProofTransactionHash
string
`json:"proof
TransactionHash
"`
ClaimTransactionHash
string
`json:"claim"`
ClaimTransactionHash
string
`json:"claim
TransactionHash
"`
L1TokenAddress
string
`json:"l1Token"`
L1TokenAddress
string
`json:"l1Token
Address
"`
L2TokenAddress
string
`json:"l2Token"`
L2TokenAddress
string
`json:"l2Token
Address
"`
}
}
type
WithdrawalResponse
struct
{
type
WithdrawalResponse
struct
{
...
...
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