zklighter-perps 1.0.72 → 1.0.73
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/.openapi-generator/FILES +13 -0
- package/apis/BridgeApi.ts +294 -0
- package/apis/RootApi.ts +31 -0
- package/apis/index.ts +1 -0
- package/models/BridgeSupportedNetwork.ts +88 -0
- package/models/BridgeSupportedNetworks.ts +85 -0
- package/models/CreateIntentAddressResp.ts +78 -0
- package/models/Deposit.ts +141 -0
- package/models/DepositHistory.ts +94 -0
- package/models/DepositHistoryItem.ts +79 -0
- package/models/ReqGetDepositHistory.ts +69 -0
- package/models/ReqGetLatestDeposit.ts +61 -0
- package/models/ReqGetWithdrawHistory.ts +69 -0
- package/models/WithdrawHistory.ts +94 -0
- package/models/WithdrawHistoryItem.ts +79 -0
- package/models/ZkLighterInfo.ts +61 -0
- package/models/index.ts +12 -0
- package/openapi.json +502 -0
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
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 Deposit
|
|
20
|
+
*/
|
|
21
|
+
export interface Deposit {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof Deposit
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Deposit
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Deposit
|
|
38
|
+
*/
|
|
39
|
+
source: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Deposit
|
|
44
|
+
*/
|
|
45
|
+
amount: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof Deposit
|
|
50
|
+
*/
|
|
51
|
+
intent_address: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof Deposit
|
|
56
|
+
*/
|
|
57
|
+
status: string;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof Deposit
|
|
62
|
+
*/
|
|
63
|
+
step: string;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof Deposit
|
|
68
|
+
*/
|
|
69
|
+
description: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Deposit
|
|
74
|
+
*/
|
|
75
|
+
created_at: number;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {number}
|
|
79
|
+
* @memberof Deposit
|
|
80
|
+
*/
|
|
81
|
+
updated_at: number;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the Deposit interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfDeposit(value: object): value is Deposit {
|
|
88
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
89
|
+
if (!('source' in value) || value['source'] === undefined) return false;
|
|
90
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
91
|
+
if (!('intent_address' in value) || value['intent_address'] === undefined) return false;
|
|
92
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
93
|
+
if (!('step' in value) || value['step'] === undefined) return false;
|
|
94
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
95
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
96
|
+
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function DepositFromJSON(json: any): Deposit {
|
|
101
|
+
return DepositFromJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function DepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): Deposit {
|
|
105
|
+
if (json == null) {
|
|
106
|
+
return json;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'code': json['code'],
|
|
111
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
112
|
+
'source': json['source'],
|
|
113
|
+
'amount': json['amount'],
|
|
114
|
+
'intent_address': json['intent_address'],
|
|
115
|
+
'status': json['status'],
|
|
116
|
+
'step': json['step'],
|
|
117
|
+
'description': json['description'],
|
|
118
|
+
'created_at': json['created_at'],
|
|
119
|
+
'updated_at': json['updated_at'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function DepositToJSON(value?: Deposit | null): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'code': value['code'],
|
|
130
|
+
'message': value['message'],
|
|
131
|
+
'source': value['source'],
|
|
132
|
+
'amount': value['amount'],
|
|
133
|
+
'intent_address': value['intent_address'],
|
|
134
|
+
'status': value['status'],
|
|
135
|
+
'step': value['step'],
|
|
136
|
+
'description': value['description'],
|
|
137
|
+
'created_at': value['created_at'],
|
|
138
|
+
'updated_at': value['updated_at'],
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { DepositHistoryItem } from './DepositHistoryItem';
|
|
17
|
+
import {
|
|
18
|
+
DepositHistoryItemFromJSON,
|
|
19
|
+
DepositHistoryItemFromJSONTyped,
|
|
20
|
+
DepositHistoryItemToJSON,
|
|
21
|
+
} from './DepositHistoryItem';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface DepositHistory
|
|
27
|
+
*/
|
|
28
|
+
export interface DepositHistory {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof DepositHistory
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof DepositHistory
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<DepositHistoryItem>}
|
|
44
|
+
* @memberof DepositHistory
|
|
45
|
+
*/
|
|
46
|
+
deposits: Array<DepositHistoryItem>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof DepositHistory
|
|
51
|
+
*/
|
|
52
|
+
cursor: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the DepositHistory interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfDepositHistory(value: object): value is DepositHistory {
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('deposits' in value) || value['deposits'] === undefined) return false;
|
|
61
|
+
if (!('cursor' in value) || value['cursor'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DepositHistoryFromJSON(json: any): DepositHistory {
|
|
66
|
+
return DepositHistoryFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function DepositHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositHistory {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'code': json['code'],
|
|
76
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
77
|
+
'deposits': ((json['deposits'] as Array<any>).map(DepositHistoryItemFromJSON)),
|
|
78
|
+
'cursor': json['cursor'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function DepositHistoryToJSON(value?: DepositHistory | null): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'code': value['code'],
|
|
89
|
+
'message': value['message'],
|
|
90
|
+
'deposits': ((value['deposits'] as Array<any>).map(DepositHistoryItemToJSON)),
|
|
91
|
+
'cursor': value['cursor'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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 DepositHistoryItem
|
|
20
|
+
*/
|
|
21
|
+
export interface DepositHistoryItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DepositHistoryItem
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DepositHistoryItem
|
|
32
|
+
*/
|
|
33
|
+
amount: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof DepositHistoryItem
|
|
38
|
+
*/
|
|
39
|
+
timestamp: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the DepositHistoryItem interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfDepositHistoryItem(value: object): value is DepositHistoryItem {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
48
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function DepositHistoryItemFromJSON(json: any): DepositHistoryItem {
|
|
53
|
+
return DepositHistoryItemFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function DepositHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositHistoryItem {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'amount': json['amount'],
|
|
64
|
+
'timestamp': json['timestamp'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function DepositHistoryItemToJSON(value?: DepositHistoryItem | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'amount': value['amount'],
|
|
76
|
+
'timestamp': value['timestamp'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
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 ReqGetDepositHistory
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetDepositHistory {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetDepositHistory
|
|
26
|
+
*/
|
|
27
|
+
l1_address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReqGetDepositHistory
|
|
32
|
+
*/
|
|
33
|
+
cursor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReqGetDepositHistory interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReqGetDepositHistory(value: object): value is ReqGetDepositHistory {
|
|
40
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ReqGetDepositHistoryFromJSON(json: any): ReqGetDepositHistory {
|
|
45
|
+
return ReqGetDepositHistoryFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ReqGetDepositHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetDepositHistory {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'l1_address': json['l1_address'],
|
|
55
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReqGetDepositHistoryToJSON(value?: ReqGetDepositHistory | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'l1_address': value['l1_address'],
|
|
66
|
+
'cursor': value['cursor'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -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 ReqGetLatestDeposit
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetLatestDeposit {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetLatestDeposit
|
|
26
|
+
*/
|
|
27
|
+
l1_address: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the ReqGetLatestDeposit interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfReqGetLatestDeposit(value: object): value is ReqGetLatestDeposit {
|
|
34
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function ReqGetLatestDepositFromJSON(json: any): ReqGetLatestDeposit {
|
|
39
|
+
return ReqGetLatestDepositFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function ReqGetLatestDepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetLatestDeposit {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'l1_address': json['l1_address'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function ReqGetLatestDepositToJSON(value?: ReqGetLatestDeposit | 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,69 @@
|
|
|
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 ReqGetWithdrawHistory
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetWithdrawHistory {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ReqGetWithdrawHistory
|
|
26
|
+
*/
|
|
27
|
+
l1_address: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ReqGetWithdrawHistory
|
|
32
|
+
*/
|
|
33
|
+
cursor?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the ReqGetWithdrawHistory interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfReqGetWithdrawHistory(value: object): value is ReqGetWithdrawHistory {
|
|
40
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function ReqGetWithdrawHistoryFromJSON(json: any): ReqGetWithdrawHistory {
|
|
45
|
+
return ReqGetWithdrawHistoryFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function ReqGetWithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetWithdrawHistory {
|
|
49
|
+
if (json == null) {
|
|
50
|
+
return json;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
|
|
54
|
+
'l1_address': json['l1_address'],
|
|
55
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ReqGetWithdrawHistoryToJSON(value?: ReqGetWithdrawHistory | null): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'l1_address': value['l1_address'],
|
|
66
|
+
'cursor': value['cursor'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { WithdrawHistoryItem } from './WithdrawHistoryItem';
|
|
17
|
+
import {
|
|
18
|
+
WithdrawHistoryItemFromJSON,
|
|
19
|
+
WithdrawHistoryItemFromJSONTyped,
|
|
20
|
+
WithdrawHistoryItemToJSON,
|
|
21
|
+
} from './WithdrawHistoryItem';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface WithdrawHistory
|
|
27
|
+
*/
|
|
28
|
+
export interface WithdrawHistory {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof WithdrawHistory
|
|
33
|
+
*/
|
|
34
|
+
code: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof WithdrawHistory
|
|
39
|
+
*/
|
|
40
|
+
message?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<WithdrawHistoryItem>}
|
|
44
|
+
* @memberof WithdrawHistory
|
|
45
|
+
*/
|
|
46
|
+
withdraws: Array<WithdrawHistoryItem>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof WithdrawHistory
|
|
51
|
+
*/
|
|
52
|
+
cursor: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the WithdrawHistory interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfWithdrawHistory(value: object): value is WithdrawHistory {
|
|
59
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
+
if (!('withdraws' in value) || value['withdraws'] === undefined) return false;
|
|
61
|
+
if (!('cursor' in value) || value['cursor'] === undefined) return false;
|
|
62
|
+
return true;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function WithdrawHistoryFromJSON(json: any): WithdrawHistory {
|
|
66
|
+
return WithdrawHistoryFromJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function WithdrawHistoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawHistory {
|
|
70
|
+
if (json == null) {
|
|
71
|
+
return json;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
|
|
75
|
+
'code': json['code'],
|
|
76
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
77
|
+
'withdraws': ((json['withdraws'] as Array<any>).map(WithdrawHistoryItemFromJSON)),
|
|
78
|
+
'cursor': json['cursor'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function WithdrawHistoryToJSON(value?: WithdrawHistory | null): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'code': value['code'],
|
|
89
|
+
'message': value['message'],
|
|
90
|
+
'withdraws': ((value['withdraws'] as Array<any>).map(WithdrawHistoryItemToJSON)),
|
|
91
|
+
'cursor': value['cursor'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,79 @@
|
|
|
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 WithdrawHistoryItem
|
|
20
|
+
*/
|
|
21
|
+
export interface WithdrawHistoryItem {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof WithdrawHistoryItem
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof WithdrawHistoryItem
|
|
32
|
+
*/
|
|
33
|
+
amount: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof WithdrawHistoryItem
|
|
38
|
+
*/
|
|
39
|
+
timestamp: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the WithdrawHistoryItem interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfWithdrawHistoryItem(value: object): value is WithdrawHistoryItem {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
48
|
+
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function WithdrawHistoryItemFromJSON(json: any): WithdrawHistoryItem {
|
|
53
|
+
return WithdrawHistoryItemFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function WithdrawHistoryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawHistoryItem {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'amount': json['amount'],
|
|
64
|
+
'timestamp': json['timestamp'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function WithdrawHistoryItemToJSON(value?: WithdrawHistoryItem | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'id': value['id'],
|
|
75
|
+
'amount': value['amount'],
|
|
76
|
+
'timestamp': value['timestamp'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|