zklighter-perps 1.0.164 → 1.0.166

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.
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetBridgesByL1Addr
20
+ */
21
+ export interface ReqGetBridgesByL1Addr {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetBridgesByL1Addr
26
+ */
27
+ l1_address: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetBridgesByL1Addr interface.
32
+ */
33
+ export function instanceOfReqGetBridgesByL1Addr(value: object): value is ReqGetBridgesByL1Addr {
34
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ReqGetBridgesByL1AddrFromJSON(json: any): ReqGetBridgesByL1Addr {
39
+ return ReqGetBridgesByL1AddrFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ReqGetBridgesByL1AddrFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetBridgesByL1Addr {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'l1_address': json['l1_address'],
49
+ };
50
+ }
51
+
52
+ export function ReqGetBridgesByL1AddrToJSON(value?: ReqGetBridgesByL1Addr | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'l1_address': value['l1_address'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,61 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ReqGetGeckoOrderbook
20
+ */
21
+ export interface ReqGetGeckoOrderbook {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetGeckoOrderbook
26
+ */
27
+ ticker_id: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetGeckoOrderbook interface.
32
+ */
33
+ export function instanceOfReqGetGeckoOrderbook(value: object): value is ReqGetGeckoOrderbook {
34
+ if (!('ticker_id' in value) || value['ticker_id'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function ReqGetGeckoOrderbookFromJSON(json: any): ReqGetGeckoOrderbook {
39
+ return ReqGetGeckoOrderbookFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ReqGetGeckoOrderbookFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetGeckoOrderbook {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'ticker_id': json['ticker_id'],
49
+ };
50
+ }
51
+
52
+ export function ReqGetGeckoOrderbookToJSON(value?: ReqGetGeckoOrderbook | null): any {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+
58
+ 'ticker_id': value['ticker_id'],
59
+ };
60
+ }
61
+
@@ -0,0 +1,85 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { Bridge } from './Bridge';
17
+ import {
18
+ BridgeFromJSON,
19
+ BridgeFromJSONTyped,
20
+ BridgeToJSON,
21
+ } from './Bridge';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface RespGetBridgesByL1Addr
27
+ */
28
+ export interface RespGetBridgesByL1Addr {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof RespGetBridgesByL1Addr
33
+ */
34
+ code: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof RespGetBridgesByL1Addr
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<Bridge>}
44
+ * @memberof RespGetBridgesByL1Addr
45
+ */
46
+ bridges: Array<Bridge>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the RespGetBridgesByL1Addr interface.
51
+ */
52
+ export function instanceOfRespGetBridgesByL1Addr(value: object): value is RespGetBridgesByL1Addr {
53
+ if (!('code' in value) || value['code'] === undefined) return false;
54
+ if (!('bridges' in value) || value['bridges'] === undefined) return false;
55
+ return true;
56
+ }
57
+
58
+ export function RespGetBridgesByL1AddrFromJSON(json: any): RespGetBridgesByL1Addr {
59
+ return RespGetBridgesByL1AddrFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RespGetBridgesByL1AddrFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetBridgesByL1Addr {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'code': json['code'],
69
+ 'message': json['message'] == null ? undefined : json['message'],
70
+ 'bridges': ((json['bridges'] as Array<any>).map(BridgeFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function RespGetBridgesByL1AddrToJSON(value?: RespGetBridgesByL1Addr | null): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+ return {
79
+
80
+ 'code': value['code'],
81
+ 'message': value['message'],
82
+ 'bridges': ((value['bridges'] as Array<any>).map(BridgeToJSON)),
83
+ };
84
+ }
85
+
@@ -0,0 +1,78 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ *
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document:
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RespGetIsNextBridgeFast
20
+ */
21
+ export interface RespGetIsNextBridgeFast {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RespGetIsNextBridgeFast
26
+ */
27
+ code: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RespGetIsNextBridgeFast
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {boolean}
37
+ * @memberof RespGetIsNextBridgeFast
38
+ */
39
+ is_next_bridge_fast: boolean;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the RespGetIsNextBridgeFast interface.
44
+ */
45
+ export function instanceOfRespGetIsNextBridgeFast(value: object): value is RespGetIsNextBridgeFast {
46
+ if (!('code' in value) || value['code'] === undefined) return false;
47
+ if (!('is_next_bridge_fast' in value) || value['is_next_bridge_fast'] === undefined) return false;
48
+ return true;
49
+ }
50
+
51
+ export function RespGetIsNextBridgeFastFromJSON(json: any): RespGetIsNextBridgeFast {
52
+ return RespGetIsNextBridgeFastFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function RespGetIsNextBridgeFastFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetIsNextBridgeFast {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'code': json['code'],
62
+ 'message': json['message'] == null ? undefined : json['message'],
63
+ 'is_next_bridge_fast': json['is_next_bridge_fast'],
64
+ };
65
+ }
66
+
67
+ export function RespGetIsNextBridgeFastToJSON(value?: RespGetIsNextBridgeFast | null): any {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+
73
+ 'code': value['code'],
74
+ 'message': value['message'],
75
+ 'is_next_bridge_fast': value['is_next_bridge_fast'],
76
+ };
77
+ }
78
+
package/models/index.ts CHANGED
@@ -16,6 +16,7 @@ export * from './Announcements';
16
16
  export * from './ApiKey';
17
17
  export * from './Block';
18
18
  export * from './Blocks';
19
+ export * from './Bridge';
19
20
  export * from './BridgeSupportedNetwork';
20
21
  export * from './BridgeSupportedNetworks';
21
22
  export * from './Candlestick';
@@ -38,6 +39,9 @@ export * from './Funding';
38
39
  export * from './FundingRate';
39
40
  export * from './FundingRates';
40
41
  export * from './Fundings';
42
+ export * from './GeckoContract';
43
+ export * from './GeckoContracts';
44
+ export * from './GeckoOrderbook';
41
45
  export * from './IsWhitelisted';
42
46
  export * from './L1Metadata';
43
47
  export * from './L1ProviderInfo';
@@ -48,6 +52,7 @@ export * from './LiqTrade';
48
52
  export * from './Liquidation';
49
53
  export * from './LiquidationInfo';
50
54
  export * from './LiquidationInfos';
55
+ export * from './MarketConfig';
51
56
  export * from './MarketInfo';
52
57
  export * from './NextNonce';
53
58
  export * from './Order';
@@ -83,11 +88,13 @@ export * from './ReqGetAccountPnL';
83
88
  export * from './ReqGetAccountTxs';
84
89
  export * from './ReqGetBlock';
85
90
  export * from './ReqGetBlockTxs';
91
+ export * from './ReqGetBridgesByL1Addr';
86
92
  export * from './ReqGetByAccount';
87
93
  export * from './ReqGetCandlesticks';
88
94
  export * from './ReqGetDepositHistory';
89
95
  export * from './ReqGetFastWithdrawInfo';
90
96
  export * from './ReqGetFundings';
97
+ export * from './ReqGetGeckoOrderbook';
91
98
  export * from './ReqGetL1Metadata';
92
99
  export * from './ReqGetL1Tx';
93
100
  export * from './ReqGetLatestDeposit';
@@ -112,8 +119,10 @@ export * from './ReqGetTx';
112
119
  export * from './ReqGetWithdrawHistory';
113
120
  export * from './ReqIsWhitelisted';
114
121
  export * from './RespChangeAccountTier';
122
+ export * from './RespGetBridgesByL1Addr';
115
123
  export * from './RespGetFastBridgeInfo';
116
124
  export * from './RespGetFastwithdrawalInfo';
125
+ export * from './RespGetIsNextBridgeFast';
117
126
  export * from './RespPublicPoolsMetadata';
118
127
  export * from './RespSendTx';
119
128
  export * from './RespSendTxBatch';