zklighter-perps 1.0.166 → 1.0.167
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/Bridge.ts +40 -1
- package/openapi.json +20 -1
- package/package.json +1 -1
package/models/Bridge.ts
CHANGED
|
@@ -19,6 +19,18 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface Bridge
|
|
20
20
|
*/
|
|
21
21
|
export interface Bridge {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Bridge
|
|
26
|
+
*/
|
|
27
|
+
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof Bridge
|
|
32
|
+
*/
|
|
33
|
+
version: BridgeVersionEnum;
|
|
22
34
|
/**
|
|
23
35
|
*
|
|
24
36
|
* @type {string}
|
|
@@ -66,7 +78,7 @@ export interface Bridge {
|
|
|
66
78
|
* @type {string}
|
|
67
79
|
* @memberof Bridge
|
|
68
80
|
*/
|
|
69
|
-
status:
|
|
81
|
+
status: BridgeStatusEnum;
|
|
70
82
|
/**
|
|
71
83
|
*
|
|
72
84
|
* @type {string}
|
|
@@ -99,10 +111,33 @@ export interface Bridge {
|
|
|
99
111
|
is_external_deposit: boolean;
|
|
100
112
|
}
|
|
101
113
|
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @export
|
|
117
|
+
*/
|
|
118
|
+
export const BridgeVersionEnum = {
|
|
119
|
+
NUMBER_1: 1,
|
|
120
|
+
NUMBER_2: 2
|
|
121
|
+
} as const;
|
|
122
|
+
export type BridgeVersionEnum = typeof BridgeVersionEnum[keyof typeof BridgeVersionEnum];
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @export
|
|
126
|
+
*/
|
|
127
|
+
export const BridgeStatusEnum = {
|
|
128
|
+
Pending: 'pending',
|
|
129
|
+
Bridging: 'bridging',
|
|
130
|
+
Completed: 'completed'
|
|
131
|
+
} as const;
|
|
132
|
+
export type BridgeStatusEnum = typeof BridgeStatusEnum[keyof typeof BridgeStatusEnum];
|
|
133
|
+
|
|
134
|
+
|
|
102
135
|
/**
|
|
103
136
|
* Check if a given object implements the Bridge interface.
|
|
104
137
|
*/
|
|
105
138
|
export function instanceOfBridge(value: object): value is Bridge {
|
|
139
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
140
|
+
if (!('version' in value) || value['version'] === undefined) return false;
|
|
106
141
|
if (!('source' in value) || value['source'] === undefined) return false;
|
|
107
142
|
if (!('source_chain_id' in value) || value['source_chain_id'] === undefined) return false;
|
|
108
143
|
if (!('fast_bridge_tx_hash' in value) || value['fast_bridge_tx_hash'] === undefined) return false;
|
|
@@ -129,6 +164,8 @@ export function BridgeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Br
|
|
|
129
164
|
}
|
|
130
165
|
return {
|
|
131
166
|
|
|
167
|
+
'id': json['id'],
|
|
168
|
+
'version': json['version'],
|
|
132
169
|
'source': json['source'],
|
|
133
170
|
'source_chain_id': json['source_chain_id'],
|
|
134
171
|
'fast_bridge_tx_hash': json['fast_bridge_tx_hash'],
|
|
@@ -151,6 +188,8 @@ export function BridgeToJSON(value?: Bridge | null): any {
|
|
|
151
188
|
}
|
|
152
189
|
return {
|
|
153
190
|
|
|
191
|
+
'id': value['id'],
|
|
192
|
+
'version': value['version'],
|
|
154
193
|
'source': value['source'],
|
|
155
194
|
'source_chain_id': value['source_chain_id'],
|
|
156
195
|
'fast_bridge_tx_hash': value['fast_bridge_tx_hash'],
|
package/openapi.json
CHANGED
|
@@ -3847,6 +3847,18 @@
|
|
|
3847
3847
|
"Bridge": {
|
|
3848
3848
|
"type": "object",
|
|
3849
3849
|
"properties": {
|
|
3850
|
+
"id": {
|
|
3851
|
+
"type": "integer",
|
|
3852
|
+
"format": "int64"
|
|
3853
|
+
},
|
|
3854
|
+
"version": {
|
|
3855
|
+
"type": "integer",
|
|
3856
|
+
"format": "int32",
|
|
3857
|
+
"enum": [
|
|
3858
|
+
"1",
|
|
3859
|
+
"2"
|
|
3860
|
+
]
|
|
3861
|
+
},
|
|
3850
3862
|
"source": {
|
|
3851
3863
|
"type": "string",
|
|
3852
3864
|
"example": "Arbitrum"
|
|
@@ -3874,7 +3886,12 @@
|
|
|
3874
3886
|
"type": "string"
|
|
3875
3887
|
},
|
|
3876
3888
|
"status": {
|
|
3877
|
-
"type": "string"
|
|
3889
|
+
"type": "string",
|
|
3890
|
+
"enum": [
|
|
3891
|
+
"pending",
|
|
3892
|
+
"bridging",
|
|
3893
|
+
"completed"
|
|
3894
|
+
]
|
|
3878
3895
|
},
|
|
3879
3896
|
"step": {
|
|
3880
3897
|
"type": "string"
|
|
@@ -3897,6 +3914,8 @@
|
|
|
3897
3914
|
},
|
|
3898
3915
|
"title": "Bridge",
|
|
3899
3916
|
"required": [
|
|
3917
|
+
"id",
|
|
3918
|
+
"version",
|
|
3900
3919
|
"source",
|
|
3901
3920
|
"source_chain_id",
|
|
3902
3921
|
"fast_bridge_tx_hash",
|