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

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

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