zklighter-perps 1.0.135 → 1.0.136
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.
- package/models/TransferHistoryItem.ts +27 -0
- package/openapi.json +18 -1
- package/package.json +1 -1
|
@@ -43,6 +43,24 @@ export interface TransferHistoryItem {
|
|
|
43
43
|
* @memberof TransferHistoryItem
|
|
44
44
|
*/
|
|
45
45
|
type: TransferHistoryItemTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof TransferHistoryItem
|
|
50
|
+
*/
|
|
51
|
+
from_account_index: number;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof TransferHistoryItem
|
|
56
|
+
*/
|
|
57
|
+
to_account_index: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof TransferHistoryItem
|
|
62
|
+
*/
|
|
63
|
+
tx_hash: string;
|
|
46
64
|
}
|
|
47
65
|
|
|
48
66
|
|
|
@@ -64,6 +82,9 @@ export function instanceOfTransferHistoryItem(value: object): value is TransferH
|
|
|
64
82
|
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
65
83
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
66
84
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
85
|
+
if (!('from_account_index' in value) || value['from_account_index'] === undefined) return false;
|
|
86
|
+
if (!('to_account_index' in value) || value['to_account_index'] === undefined) return false;
|
|
87
|
+
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
67
88
|
return true;
|
|
68
89
|
}
|
|
69
90
|
|
|
@@ -81,6 +102,9 @@ export function TransferHistoryItemFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
81
102
|
'amount': json['amount'],
|
|
82
103
|
'timestamp': json['timestamp'],
|
|
83
104
|
'type': json['type'],
|
|
105
|
+
'from_account_index': json['from_account_index'],
|
|
106
|
+
'to_account_index': json['to_account_index'],
|
|
107
|
+
'tx_hash': json['tx_hash'],
|
|
84
108
|
};
|
|
85
109
|
}
|
|
86
110
|
|
|
@@ -94,6 +118,9 @@ export function TransferHistoryItemToJSON(value?: TransferHistoryItem | null): a
|
|
|
94
118
|
'amount': value['amount'],
|
|
95
119
|
'timestamp': value['timestamp'],
|
|
96
120
|
'type': value['type'],
|
|
121
|
+
'from_account_index': value['from_account_index'],
|
|
122
|
+
'to_account_index': value['to_account_index'],
|
|
123
|
+
'tx_hash': value['tx_hash'],
|
|
97
124
|
};
|
|
98
125
|
}
|
|
99
126
|
|
package/openapi.json
CHANGED
|
@@ -7704,6 +7704,20 @@
|
|
|
7704
7704
|
"l2_transfer_inflow",
|
|
7705
7705
|
"l2_transfer_outflow"
|
|
7706
7706
|
]
|
|
7707
|
+
},
|
|
7708
|
+
"from_account_index": {
|
|
7709
|
+
"type": "integer",
|
|
7710
|
+
"format": "int64",
|
|
7711
|
+
"example": "1"
|
|
7712
|
+
},
|
|
7713
|
+
"to_account_index": {
|
|
7714
|
+
"type": "integer",
|
|
7715
|
+
"format": "int64",
|
|
7716
|
+
"example": "1"
|
|
7717
|
+
},
|
|
7718
|
+
"tx_hash": {
|
|
7719
|
+
"type": "string",
|
|
7720
|
+
"example": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
|
7707
7721
|
}
|
|
7708
7722
|
},
|
|
7709
7723
|
"title": "TransferHistoryItem",
|
|
@@ -7711,7 +7725,10 @@
|
|
|
7711
7725
|
"id",
|
|
7712
7726
|
"amount",
|
|
7713
7727
|
"timestamp",
|
|
7714
|
-
"type"
|
|
7728
|
+
"type",
|
|
7729
|
+
"from_account_index",
|
|
7730
|
+
"to_account_index",
|
|
7731
|
+
"tx_hash"
|
|
7715
7732
|
]
|
|
7716
7733
|
},
|
|
7717
7734
|
"Tx": {
|