zklighter-perps 1.0.139 → 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.
@@ -48,7 +48,13 @@ export interface TransferHistoryItem {
48
48
  * @type {string}
49
49
  * @memberof TransferHistoryItem
50
50
  */
51
- l1_address: string;
51
+ from_l1_address: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof TransferHistoryItem
56
+ */
57
+ to_l1_address: string;
52
58
  /**
53
59
  *
54
60
  * @type {number}
@@ -88,7 +94,8 @@ export function instanceOfTransferHistoryItem(value: object): value is TransferH
88
94
  if (!('amount' in value) || value['amount'] === undefined) return false;
89
95
  if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
90
96
  if (!('type' in value) || value['type'] === undefined) return false;
91
- if (!('l1_address' in value) || value['l1_address'] === 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;
92
99
  if (!('from_account_index' in value) || value['from_account_index'] === undefined) return false;
93
100
  if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
94
101
  if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
@@ -109,7 +116,8 @@ export function TransferHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
109
116
  'amount': json['amount'],
110
117
  'timestamp': json['timestamp'],
111
118
  'type': json['type'],
112
- 'l1_address': json['l1_address'],
119
+ 'from_l1_address': json['from_l1_address'],
120
+ 'to_l1_address': json['to_l1_address'],
113
121
  'from_account_index': json['from_account_index'],
114
122
  'to_account_index': json['to_account_index'],
115
123
  'tx_hash': json['tx_hash'],
@@ -126,7 +134,8 @@ export function TransferHistoryItemToJSON(value?: TransferHistoryItem | null): a
126
134
  'amount': value['amount'],
127
135
  'timestamp': value['timestamp'],
128
136
  'type': value['type'],
129
- 'l1_address': value['l1_address'],
137
+ 'from_l1_address': value['from_l1_address'],
138
+ 'to_l1_address': value['to_l1_address'],
130
139
  'from_account_index': value['from_account_index'],
131
140
  'to_account_index': value['to_account_index'],
132
141
  'tx_hash': value['tx_hash'],
package/openapi.json CHANGED
@@ -7748,7 +7748,11 @@
7748
7748
  "L2TransferOutflow"
7749
7749
  ]
7750
7750
  },
7751
- "l1_address": {
7751
+ "from_l1_address": {
7752
+ "type": "string",
7753
+ "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
7754
+ },
7755
+ "to_l1_address": {
7752
7756
  "type": "string",
7753
7757
  "example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
7754
7758
  },
@@ -7773,7 +7777,8 @@
7773
7777
  "amount",
7774
7778
  "timestamp",
7775
7779
  "type",
7776
- "l1_address",
7780
+ "from_l1_address",
7781
+ "to_l1_address",
7777
7782
  "from_account_index",
7778
7783
  "to_account_index",
7779
7784
  "tx_hash"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.139",
3
+ "version": "1.0.140",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {