generated.ts 1.2 KB
Newer Older
1 2 3
// Code generated by tygo. DO NOT EDIT.

//////////
4
// source: models.go
5

6 7 8
/**
 * DepositItem ... Deposit item model for API responses
 */
9 10 11 12 13
export interface DepositItem {
  guid: string;
  from: string;
  to: string;
  timestamp: number /* uint64 */;
Will Cory's avatar
Will Cory committed
14 15 16
  l1BlockHash: string;
  l1TxHash: string;
  l2TxHash: string;
17
  amount: string;
Will Cory's avatar
Will Cory committed
18 19
  l1TokenAddress: string;
  l2TokenAddress: string;
20
}
21 22 23
/**
 * DepositResponse ... Data model for API JSON response
 */
24 25 26 27 28
export interface DepositResponse {
  cursor: string;
  hasNextPage: boolean;
  items: DepositItem[];
}
29 30 31
/**
 * WithdrawalItem ... Data model for API JSON response
 */
32 33 34 35 36
export interface WithdrawalItem {
  guid: string;
  from: string;
  to: string;
  transactionHash: string;
37
  crossDomainMessageHash: string;
38 39 40
  timestamp: number /* uint64 */;
  l2BlockHash: string;
  amount: string;
41 42
  l1ProvenTxHash: string;
  l1FinalizedTxHash: string;
Will Cory's avatar
Will Cory committed
43 44
  l1TokenAddress: string;
  l2TokenAddress: string;
45
}
46 47 48
/**
 * WithdrawalResponse ... Data model for API JSON response
 */
49 50 51 52 53
export interface WithdrawalResponse {
  cursor: string;
  hasNextPage: boolean;
  items: WithdrawalItem[];
}
54 55
export interface BridgeSupplyView {
  l1DepositSum: number /* float64 */;
56
  l2WithdrawalSum: number /* float64 */;
57
}