1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Code generated by tygo. DO NOT EDIT.
//////////
// source: models.go
export interface QueryParams {
Address: any /* common.Address */;
Limit: number /* int */;
Cursor: string;
}
/**
* DepositItem ... Deposit item model for API responses
*/
export interface DepositItem {
guid: string;
from: string;
to: string;
timestamp: number /* uint64 */;
l1BlockHash: string;
l1TxHash: string;
l2TxHash: string;
amount: string;
l1TokenAddress: string;
l2TokenAddress: string;
}
/**
* DepositResponse ... Data model for API JSON response
*/
export interface DepositResponse {
cursor: string;
hasNextPage: boolean;
items: DepositItem[];
}
/**
* WithdrawalItem ... Data model for API JSON response
*/
export interface WithdrawalItem {
guid: string;
from: string;
to: string;
transactionHash: string;
crossDomainMessageHash: string;
timestamp: number /* uint64 */;
l2BlockHash: string;
amount: string;
l1ProvenTxHash: string;
l1FinalizedTxHash: string;
l1TokenAddress: string;
l2TokenAddress: string;
}
/**
* WithdrawalResponse ... Data model for API JSON response
*/
export interface WithdrawalResponse {
cursor: string;
hasNextPage: boolean;
items: WithdrawalItem[];
}
export interface BridgeSupplyView {
l1DepositSum: number /* float64 */;
l2WithdrawalSum: number /* float64 */;
provenSum: number /* float64 */;
finalizedSum: number /* float64 */;
}