zklighter-perps 1.0.138 → 1.0.139

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,12 @@ export interface TransferHistoryItem {
43
43
  * @memberof TransferHistoryItem
44
44
  */
45
45
  type: TransferHistoryItemTypeEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof TransferHistoryItem
50
+ */
51
+ l1_address: string;
46
52
  /**
47
53
  *
48
54
  * @type {number}
@@ -68,8 +74,8 @@ export interface TransferHistoryItem {
68
74
  * @export
69
75
  */
70
76
  export const TransferHistoryItemTypeEnum = {
71
- Inflow: 'l2_transfer_inflow',
72
- Outflow: 'l2_transfer_outflow'
77
+ L2TransferInflow: 'L2TransferInflow',
78
+ L2TransferOutflow: 'L2TransferOutflow'
73
79
  } as const;
74
80
  export type TransferHistoryItemTypeEnum = typeof TransferHistoryItemTypeEnum[keyof typeof TransferHistoryItemTypeEnum];
75
81
 
@@ -82,6 +88,7 @@ export function instanceOfTransferHistoryItem(value: object): value is TransferH
82
88
  if (!('amount' in value) || value['amount'] === undefined) return false;
83
89
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
84
90
  if (!('type' in value) || value['type'] === undefined) return false;
91
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
85
92
  if (!('from_account_index' in value) || value['from_account_index'] === undefined) return false;
86
93
  if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
87
94
  if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
@@ -102,6 +109,7 @@ export function TransferHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
102
109
  'amount': json['amount'],
103
110
  'timestamp': json['timestamp'],
104
111
  'type': json['type'],
112
+ 'l1_address': json['l1_address'],
105
113
  'from_account_index': json['from_account_index'],
106
114
  'to_account_index': json['to_account_index'],
107
115
  'tx_hash': json['tx_hash'],
@@ -118,6 +126,7 @@ export function TransferHistoryItemToJSON(value?: TransferHistoryItem | null): a
118
126
  'amount': value['amount'],
119
127
  'timestamp': value['timestamp'],
120
128
  'type': value['type'],
129
+ 'l1_address': value['l1_address'],
121
130
  'from_account_index': value['from_account_index'],
122
131
  'to_account_index': value['to_account_index'],
123
132
  'tx_hash': value['tx_hash'],
package/openapi.json CHANGED
@@ -7744,10 +7744,14 @@
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
+ "l1_address": {
7752
+ "type": "string",
7753
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
7754
+ },
7751
7755
  "from_account_index": {
7752
7756
  "type": "integer",
7753
7757
  "format": "int64",
@@ -7769,6 +7773,7 @@
7769
7773
  "amount",
7770
7774
  "timestamp",
7771
7775
  "type",
7776
+ "l1_address",
7772
7777
  "from_account_index",
7773
7778
  "to_account_index",
7774
7779
  "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.139",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {