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
d2a80ce0
Unverified
Commit
d2a80ce0
authored
Sep 28, 2023
by
Ethen Pociask
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[indexer.client] Generated client bindings & updated indexer/.gitignore
parent
567dd291
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
16 deletions
+19
-16
.gitignore
indexer/.gitignore
+3
-0
generated.ts
indexer/api-ts/generated.ts
+14
-14
package.json
indexer/api-ts/package.json
+1
-1
tygo.yaml
indexer/api-ts/tygo.yaml
+1
-1
No files found.
indexer/.gitignore
View file @
d2a80ce0
docker-compose.dev.yml
docker-compose.dev.yml
.env
.env
/indexer
/indexer
api-ts/yarn.lock
api-ts/package-lock.json
\ No newline at end of file
indexer/api-ts/generated.ts
View file @
d2a80ce0
// Code generated by tygo. DO NOT EDIT.
// Code generated by tygo. DO NOT EDIT.
//////////
//////////
// source:
deposit
s.go
// source:
model
s.go
/**
* DepositItem ... Deposit item model for API responses
*/
export
interface
DepositItem
{
export
interface
DepositItem
{
guid
:
string
;
guid
:
string
;
from
:
string
;
from
:
string
;
...
@@ -15,29 +18,23 @@ export interface DepositItem {
...
@@ -15,29 +18,23 @@ export interface DepositItem {
l1TokenAddress
:
string
;
l1TokenAddress
:
string
;
l2TokenAddress
:
string
;
l2TokenAddress
:
string
;
}
}
/**
* DepositResponse ... Data model for API JSON response
*/
export
interface
DepositResponse
{
export
interface
DepositResponse
{
cursor
:
string
;
cursor
:
string
;
hasNextPage
:
boolean
;
hasNextPage
:
boolean
;
items
:
DepositItem
[];
items
:
DepositItem
[];
}
}
/**
//////////
* WithdrawalItem ... Data model for API JSON response
// source: routes.go
*/
export
interface
Routes
{
Logger
:
any
/* log.Logger */
;
BridgeTransfersView
:
any
/* database.BridgeTransfersView */
;
Router
?:
any
/* chi.Mux */
;
}
//////////
// source: withdrawals.go
export
interface
WithdrawalItem
{
export
interface
WithdrawalItem
{
guid
:
string
;
guid
:
string
;
from
:
string
;
from
:
string
;
to
:
string
;
to
:
string
;
transactionHash
:
string
;
transactionHash
:
string
;
messageHash
:
string
;
timestamp
:
number
/* uint64 */
;
timestamp
:
number
/* uint64 */
;
l2BlockHash
:
string
;
l2BlockHash
:
string
;
amount
:
string
;
amount
:
string
;
...
@@ -46,6 +43,9 @@ export interface WithdrawalItem {
...
@@ -46,6 +43,9 @@ export interface WithdrawalItem {
l1TokenAddress
:
string
;
l1TokenAddress
:
string
;
l2TokenAddress
:
string
;
l2TokenAddress
:
string
;
}
}
/**
* WithdrawalResponse ... Data model for API JSON response
*/
export
interface
WithdrawalResponse
{
export
interface
WithdrawalResponse
{
cursor
:
string
;
cursor
:
string
;
hasNextPage
:
boolean
;
hasNextPage
:
boolean
;
...
...
indexer/api-ts/package.json
View file @
d2a80ce0
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
],
],
"scripts"
:
{
"scripts"
:
{
"clean"
:
"rm -rf generated.ts indexer.cjs indexer.js"
,
"clean"
:
"rm -rf generated.ts indexer.cjs indexer.js"
,
"generate"
:
"npm run clean && tygo generate && mv ../api/
route
s/index.ts generated.ts && tsup"
,
"generate"
:
"npm run clean && tygo generate && mv ../api/
model
s/index.ts generated.ts && tsup"
,
"test"
:
"vitest"
"test"
:
"vitest"
},
},
"keywords"
:
[
"keywords"
:
[
...
...
indexer/api-ts/tygo.yaml
View file @
d2a80ce0
packages
:
packages
:
-
path
:
"
github.com/ethereum-optimism/optimism/indexer/api/
route
s"
-
path
:
"
github.com/ethereum-optimism/optimism/indexer/api/
model
s"
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