zklighter-perps 1.0.138 → 1.0.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,18 @@ export interface TransferHistoryItem {
43
43
  * @memberof TransferHistoryItem
44
44
  */
45
45
  type: TransferHistoryItemTypeEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof TransferHistoryItem
50
+ */
51
+ from_l1_address: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof TransferHistoryItem
56
+ */
57
+ to_l1_address: string;
46
58
  /**
47
59
  *
48
60
  * @type {number}
@@ -68,8 +80,8 @@ export interface TransferHistoryItem {
68
80
  * @export
69
81
  */
70
82
  export const TransferHistoryItemTypeEnum = {
71
- Inflow: 'l2_transfer_inflow',
72
- Outflow: 'l2_transfer_outflow'
83
+ L2TransferInflow: 'L2TransferInflow',
84
+ L2TransferOutflow: 'L2TransferOutflow'
73
85
  } as const;
74
86
  export type TransferHistoryItemTypeEnum = typeof TransferHistoryItemTypeEnum[keyof typeof TransferHistoryItemTypeEnum];
75
87
 
@@ -82,6 +94,8 @@ export function instanceOfTransferHistoryItem(value: object): value is TransferH
82
94
  if (!('amount' in value) || value['amount'] === undefined) return false;
83
95
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
84
96
  if (!('type' in value) || value['type'] === undefined) return false;
97
+ if (!('from_l1_address' in value) || value['from_l1_address'] === undefined) return false;
98
+ if (!('to_l1_address' in value) || value['to_l1_address'] === undefined) return false;
85
99
  if (!('from_account_index' in value) || value['from_account_index'] === undefined) return false;
86
100
  if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
87
101
  if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
@@ -102,6 +116,8 @@ export function TransferHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
102
116
  'amount': json['amount'],
103
117
  'timestamp': json['timestamp'],
104
118
  'type': json['type'],
119
+ 'from_l1_address': json['from_l1_address'],
120
+ 'to_l1_address': json['to_l1_address'],
105
121
  'from_account_index': json['from_account_index'],
106
122
  'to_account_index': json['to_account_index'],
107
123
  'tx_hash': json['tx_hash'],
@@ -118,6 +134,8 @@ export function TransferHistoryItemToJSON(value?: TransferHistoryItem | null): a
118
134
  'amount': value['amount'],
119
135
  'timestamp': value['timestamp'],
120
136
  'type': value['type'],
137
+ 'from_l1_address': value['from_l1_address'],
138
+ 'to_l1_address': value['to_l1_address'],
121
139
  'from_account_index': value['from_account_index'],
122
140
  'to_account_index': value['to_account_index'],
123
141
  'tx_hash': value['tx_hash'],
package/openapi.json CHANGED
@@ -7744,10 +7744,18 @@
7744
7744
  "type": {
7745
7745
  "type": "string",
7746
7746
  "enum": [
7747
- "l2_transfer_inflow",
7748
- "l2_transfer_outflow"
7747
+ "L2TransferInflow",
7748
+ "L2TransferOutflow"
7749
7749
  ]
7750
7750
  },
7751
+ "from_l1_address": {
7752
+ "type": "string",
7753
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
7754
+ },
7755
+ "to_l1_address": {
7756
+ "type": "string",
7757
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
7758
+ },
7751
7759
  "from_account_index": {
7752
7760
  "type": "integer",
7753
7761
  "format": "int64",
@@ -7769,6 +7777,8 @@
7769
7777
  "amount",
7770
7778
  "timestamp",
7771
7779
  "type",
7780
+ "from_l1_address",
7781
+ "to_l1_address",
7772
7782
  "from_account_index",
7773
7783
  "to_account_index",
7774
7784
  "tx_hash"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {