zklighter-perps 1.0.10 → 1.0.12
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/apis/AccountApi.ts +81 -81
- package/apis/BlockApi.ts +14 -14
- package/apis/CandlestickApi.ts +65 -65
- package/apis/InfoApi.ts +6 -6
- package/apis/OrderApi.ts +101 -101
- package/apis/TransactionApi.ts +76 -76
- package/config.yaml +5 -2
- package/models/AccountMarketStats.ts +24 -24
- package/models/AccountPosition.ts +28 -28
- package/models/AccountStats.ts +16 -16
- package/models/Block.ts +32 -32
- package/models/DetailedAccount.ts +17 -17
- package/models/EnrichedTx.ts +39 -39
- package/models/ExchangeStats.ts +12 -12
- package/models/L1ProviderInfo.ts +4 -4
- package/models/Layer1BasicInfo.ts +28 -28
- package/models/Layer2BasicInfo.ts +12 -12
- package/models/MainAccount.ts +4 -4
- package/models/MarketInfo.ts +44 -44
- package/models/Order.ts +55 -57
- package/models/OrderBook.ts +43 -44
- package/models/OrderBookDetail.ts +102 -103
- package/models/OrderBookDetails.ts +4 -4
- package/models/OrderBookOrders.ts +8 -8
- package/models/OrderBookStats.ts +20 -20
- package/models/OrderBooks.ts +4 -4
- package/models/ReqDoFaucet.ts +4 -4
- package/models/ReqGetAccount.ts +7 -8
- package/models/ReqGetAccountActiveOrders.ts +12 -12
- package/models/ReqGetAccountByL1Address.ts +4 -4
- package/models/ReqGetAccountInactiveOrders.ts +18 -19
- package/models/ReqGetAccountOrders.ts +8 -8
- package/models/ReqGetAccountPendingTxs.ts +7 -8
- package/models/ReqGetAccountPnL.ts +30 -32
- package/models/ReqGetAccountTxs.ts +7 -8
- package/models/ReqGetBlock.ts +7 -8
- package/models/ReqGetBlockTxs.ts +7 -8
- package/models/ReqGetByAccount.ts +7 -8
- package/models/ReqGetCandlesticks.ts +27 -28
- package/models/ReqGetFundings.ts +22 -23
- package/models/ReqGetNextNonce.ts +8 -8
- package/models/ReqGetOrderBookDetails.ts +10 -11
- package/models/ReqGetOrderBookOrders.ts +4 -4
- package/models/ReqGetOrderBooks.ts +10 -11
- package/models/ReqGetPermission.ts +11 -12
- package/models/ReqGetRangeWithIndexSortable.ts +7 -8
- package/models/ReqGetRecentTrades.ts +4 -4
- package/models/ReqGetRollbacks.ts +4 -4
- package/models/ReqGetSubAccount.ts +11 -12
- package/models/ReqGetTrades.ts +15 -16
- package/models/ReqGetTx.ts +7 -8
- package/models/Rollback.ts +12 -12
- package/models/Search.ts +4 -4
- package/models/SignBody.ts +4 -4
- package/models/SimpleOrder.ts +16 -16
- package/models/Status.ts +4 -4
- package/models/SubAccount.ts +12 -12
- package/models/SubAccounts.ts +8 -8
- package/models/Trade.ts +36 -36
- package/models/Tx.ts +36 -36
- package/models/TxHash.ts +4 -4
- package/models/TxHashes.ts +4 -4
- package/models/ValidatorInfo.ts +4 -4
- package/package.json +1 -1
|
@@ -24,21 +24,21 @@ export interface ReqGetNextNonce {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetNextNonce
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
account_index: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetNextNonce
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
sub_account_index: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Check if a given object implements the ReqGetNextNonce interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfReqGetNextNonce(value: object): value is ReqGetNextNonce {
|
|
40
|
-
if (!('
|
|
41
|
-
if (!('
|
|
40
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
41
|
+
if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -52,8 +52,8 @@ export function ReqGetNextNonceFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
54
|
|
|
55
|
-
'
|
|
56
|
-
'
|
|
55
|
+
'account_index': json['account_index'],
|
|
56
|
+
'sub_account_index': json['sub_account_index'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -63,8 +63,8 @@ export function ReqGetNextNonceToJSON(value?: ReqGetNextNonce | null): any {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
|
-
'account_index': value['
|
|
67
|
-
'sub_account_index': value['
|
|
66
|
+
'account_index': value['account_index'],
|
|
67
|
+
'sub_account_index': value['sub_account_index'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
|
@@ -30,18 +30,17 @@ export interface ReqGetOrderBookDetails {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetOrderBookDetails
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
market_id?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetOrderBookDetailsFilterEnum {
|
|
41
|
+
MarketId = 'market_id',
|
|
42
|
+
All = 'all'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
@@ -63,7 +62,7 @@ export function ReqGetOrderBookDetailsFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
63
62
|
return {
|
|
64
63
|
|
|
65
64
|
'filter': json['filter'],
|
|
66
|
-
'
|
|
65
|
+
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
68
|
|
|
@@ -74,7 +73,7 @@ export function ReqGetOrderBookDetailsToJSON(value?: ReqGetOrderBookDetails | nu
|
|
|
74
73
|
return {
|
|
75
74
|
|
|
76
75
|
'filter': value['filter'],
|
|
77
|
-
'market_id': value['
|
|
76
|
+
'market_id': value['market_id'],
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
|
|
@@ -24,7 +24,7 @@ export interface ReqGetOrderBookOrders {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetOrderBookOrders
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
market_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -37,7 +37,7 @@ export interface ReqGetOrderBookOrders {
|
|
|
37
37
|
* Check if a given object implements the ReqGetOrderBookOrders interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfReqGetOrderBookOrders(value: object): value is ReqGetOrderBookOrders {
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
41
41
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
@@ -52,7 +52,7 @@ export function ReqGetOrderBookOrdersFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
54
|
|
|
55
|
-
'
|
|
55
|
+
'market_id': json['market_id'],
|
|
56
56
|
'limit': json['limit'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -63,7 +63,7 @@ export function ReqGetOrderBookOrdersToJSON(value?: ReqGetOrderBookOrders | null
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
|
-
'market_id': value['
|
|
66
|
+
'market_id': value['market_id'],
|
|
67
67
|
'limit': value['limit'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -30,18 +30,17 @@ export interface ReqGetOrderBooks {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetOrderBooks
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
market_id?: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetOrderBooksFilterEnum {
|
|
41
|
+
MarketId = 'market_id',
|
|
42
|
+
All = 'all'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
|
@@ -63,7 +62,7 @@ export function ReqGetOrderBooksFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
63
62
|
return {
|
|
64
63
|
|
|
65
64
|
'filter': json['filter'],
|
|
66
|
-
'
|
|
65
|
+
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
68
|
|
|
@@ -74,7 +73,7 @@ export function ReqGetOrderBooksToJSON(value?: ReqGetOrderBooks | null): any {
|
|
|
74
73
|
return {
|
|
75
74
|
|
|
76
75
|
'filter': value['filter'],
|
|
77
|
-
'market_id': value['
|
|
76
|
+
'market_id': value['market_id'],
|
|
78
77
|
};
|
|
79
78
|
}
|
|
80
79
|
|
|
@@ -36,18 +36,17 @@ export interface ReqGetPermission {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetPermission
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
tx_type: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
export enum ReqGetPermissionByEnum {
|
|
47
|
+
Index = 'index',
|
|
48
|
+
L1Address = 'l1_address'
|
|
49
|
+
}
|
|
51
50
|
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -56,7 +55,7 @@ export type ReqGetPermissionByEnum = typeof ReqGetPermissionByEnum[keyof typeof
|
|
|
56
55
|
export function instanceOfReqGetPermission(value: object): value is ReqGetPermission {
|
|
57
56
|
if (!('by' in value) || value['by'] === undefined) return false;
|
|
58
57
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
-
if (!('
|
|
58
|
+
if (!('tx_type' in value) || value['tx_type'] === undefined) return false;
|
|
60
59
|
return true;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -72,7 +71,7 @@ export function ReqGetPermissionFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
72
71
|
|
|
73
72
|
'by': json['by'],
|
|
74
73
|
'value': json['value'],
|
|
75
|
-
'
|
|
74
|
+
'tx_type': json['tx_type'],
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
|
|
@@ -84,7 +83,7 @@ export function ReqGetPermissionToJSON(value?: ReqGetPermission | null): any {
|
|
|
84
83
|
|
|
85
84
|
'by': value['by'],
|
|
86
85
|
'value': value['value'],
|
|
87
|
-
'tx_type': value['
|
|
86
|
+
'tx_type': value['tx_type'],
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
|
|
@@ -39,15 +39,14 @@ export interface ReqGetRangeWithIndexSortable {
|
|
|
39
39
|
sort?: ReqGetRangeWithIndexSortableSortEnum;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
export enum ReqGetRangeWithIndexSortableSortEnum {
|
|
47
|
+
Asc = 'asc',
|
|
48
|
+
Desc = 'desc'
|
|
49
|
+
}
|
|
51
50
|
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ReqGetRecentTrades {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetRecentTrades
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
market_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -37,7 +37,7 @@ export interface ReqGetRecentTrades {
|
|
|
37
37
|
* Check if a given object implements the ReqGetRecentTrades interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfReqGetRecentTrades(value: object): value is ReqGetRecentTrades {
|
|
40
|
-
if (!('
|
|
40
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
41
41
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
@@ -52,7 +52,7 @@ export function ReqGetRecentTradesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
52
52
|
}
|
|
53
53
|
return {
|
|
54
54
|
|
|
55
|
-
'
|
|
55
|
+
'market_id': json['market_id'],
|
|
56
56
|
'limit': json['limit'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
@@ -63,7 +63,7 @@ export function ReqGetRecentTradesToJSON(value?: ReqGetRecentTrades | null): any
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
|
-
'market_id': value['
|
|
66
|
+
'market_id': value['market_id'],
|
|
67
67
|
'limit': value['limit'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -24,7 +24,7 @@ export interface ReqGetRollbacks {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetRollbacks
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
from_block_height: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
@@ -43,7 +43,7 @@ export interface ReqGetRollbacks {
|
|
|
43
43
|
* Check if a given object implements the ReqGetRollbacks interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfReqGetRollbacks(value: object): value is ReqGetRollbacks {
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('from_block_height' in value) || value['from_block_height'] === undefined) return false;
|
|
47
47
|
if (!('offset' in value) || value['offset'] === undefined) return false;
|
|
48
48
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
49
49
|
return true;
|
|
@@ -59,7 +59,7 @@ export function ReqGetRollbacksFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
59
59
|
}
|
|
60
60
|
return {
|
|
61
61
|
|
|
62
|
-
'
|
|
62
|
+
'from_block_height': json['from_block_height'],
|
|
63
63
|
'offset': json['offset'],
|
|
64
64
|
'limit': json['limit'],
|
|
65
65
|
};
|
|
@@ -71,7 +71,7 @@ export function ReqGetRollbacksToJSON(value?: ReqGetRollbacks | null): any {
|
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
|
-
'from_block_height': value['
|
|
74
|
+
'from_block_height': value['from_block_height'],
|
|
75
75
|
'offset': value['offset'],
|
|
76
76
|
'limit': value['limit'],
|
|
77
77
|
};
|
|
@@ -36,18 +36,17 @@ export interface ReqGetSubAccount {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof ReqGetSubAccount
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sub_account_index: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
42
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
* @export
|
|
44
|
+
* @enum {string}
|
|
45
|
+
*/
|
|
46
|
+
export enum ReqGetSubAccountByEnum {
|
|
47
|
+
Index = 'index',
|
|
48
|
+
L1Address = 'l1_address'
|
|
49
|
+
}
|
|
51
50
|
|
|
52
51
|
|
|
53
52
|
/**
|
|
@@ -56,7 +55,7 @@ export type ReqGetSubAccountByEnum = typeof ReqGetSubAccountByEnum[keyof typeof
|
|
|
56
55
|
export function instanceOfReqGetSubAccount(value: object): value is ReqGetSubAccount {
|
|
57
56
|
if (!('by' in value) || value['by'] === undefined) return false;
|
|
58
57
|
if (!('value' in value) || value['value'] === undefined) return false;
|
|
59
|
-
if (!('
|
|
58
|
+
if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
|
|
60
59
|
return true;
|
|
61
60
|
}
|
|
62
61
|
|
|
@@ -72,7 +71,7 @@ export function ReqGetSubAccountFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
72
71
|
|
|
73
72
|
'by': json['by'],
|
|
74
73
|
'value': json['value'],
|
|
75
|
-
'
|
|
74
|
+
'sub_account_index': json['sub_account_index'],
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
|
|
@@ -84,7 +83,7 @@ export function ReqGetSubAccountToJSON(value?: ReqGetSubAccount | null): any {
|
|
|
84
83
|
|
|
85
84
|
'by': value['by'],
|
|
86
85
|
'value': value['value'],
|
|
87
|
-
'sub_account_index': value['
|
|
86
|
+
'sub_account_index': value['sub_account_index'],
|
|
88
87
|
};
|
|
89
88
|
}
|
|
90
89
|
|
package/models/ReqGetTrades.ts
CHANGED
|
@@ -24,13 +24,13 @@ export interface ReqGetTrades {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof ReqGetTrades
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
market_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof ReqGetTrades
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
order_index?: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
@@ -51,23 +51,22 @@ export interface ReqGetTrades {
|
|
|
51
51
|
limit: number;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
|
|
55
54
|
/**
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
* @export
|
|
56
|
+
* @enum {string}
|
|
57
|
+
*/
|
|
58
|
+
export enum ReqGetTradesByEnum {
|
|
59
|
+
BlockHeight = 'block_height',
|
|
60
|
+
Timestamp = 'timestamp',
|
|
61
|
+
TradeId = 'trade_id'
|
|
62
|
+
}
|
|
64
63
|
|
|
65
64
|
|
|
66
65
|
/**
|
|
67
66
|
* Check if a given object implements the ReqGetTrades interface.
|
|
68
67
|
*/
|
|
69
68
|
export function instanceOfReqGetTrades(value: object): value is ReqGetTrades {
|
|
70
|
-
if (!('
|
|
69
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
71
70
|
if (!('by' in value) || value['by'] === undefined) return false;
|
|
72
71
|
if (!('from' in value) || value['from'] === undefined) return false;
|
|
73
72
|
if (!('limit' in value) || value['limit'] === undefined) return false;
|
|
@@ -84,8 +83,8 @@ export function ReqGetTradesFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
84
83
|
}
|
|
85
84
|
return {
|
|
86
85
|
|
|
87
|
-
'
|
|
88
|
-
'
|
|
86
|
+
'market_id': json['market_id'],
|
|
87
|
+
'order_index': json['order_index'] == null ? undefined : json['order_index'],
|
|
89
88
|
'by': json['by'],
|
|
90
89
|
'from': json['from'],
|
|
91
90
|
'limit': json['limit'],
|
|
@@ -98,8 +97,8 @@ export function ReqGetTradesToJSON(value?: ReqGetTrades | null): any {
|
|
|
98
97
|
}
|
|
99
98
|
return {
|
|
100
99
|
|
|
101
|
-
'market_id': value['
|
|
102
|
-
'order_index': value['
|
|
100
|
+
'market_id': value['market_id'],
|
|
101
|
+
'order_index': value['order_index'],
|
|
103
102
|
'by': value['by'],
|
|
104
103
|
'from': value['from'],
|
|
105
104
|
'limit': value['limit'],
|
package/models/ReqGetTx.ts
CHANGED
|
@@ -33,15 +33,14 @@ export interface ReqGetTx {
|
|
|
33
33
|
value: string;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
36
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
37
|
+
* @export
|
|
38
|
+
* @enum {string}
|
|
39
|
+
*/
|
|
40
|
+
export enum ReqGetTxByEnum {
|
|
41
|
+
Hash = 'hash',
|
|
42
|
+
SequenceIndex = 'sequence_index'
|
|
43
|
+
}
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
/**
|
package/models/Rollback.ts
CHANGED
|
@@ -24,13 +24,13 @@ export interface Rollback {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof Rollback
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
from_block_height: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof Rollback
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
from_tx_hash: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -42,17 +42,17 @@ export interface Rollback {
|
|
|
42
42
|
* @type {number}
|
|
43
43
|
* @memberof Rollback
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
created_at: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
49
|
* Check if a given object implements the Rollback interface.
|
|
50
50
|
*/
|
|
51
51
|
export function instanceOfRollback(value: object): value is Rollback {
|
|
52
|
-
if (!('
|
|
53
|
-
if (!('
|
|
52
|
+
if (!('from_block_height' in value) || value['from_block_height'] === undefined) return false;
|
|
53
|
+
if (!('from_tx_hash' in value) || value['from_tx_hash'] === undefined) return false;
|
|
54
54
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
55
|
-
if (!('
|
|
55
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
56
56
|
return true;
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -66,10 +66,10 @@ export function RollbackFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
68
|
|
|
69
|
-
'
|
|
70
|
-
'
|
|
69
|
+
'from_block_height': json['from_block_height'],
|
|
70
|
+
'from_tx_hash': json['from_tx_hash'],
|
|
71
71
|
'id': json['id'],
|
|
72
|
-
'
|
|
72
|
+
'created_at': json['created_at'],
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -79,10 +79,10 @@ export function RollbackToJSON(value?: Rollback | null): any {
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
|
-
'from_block_height': value['
|
|
83
|
-
'from_tx_hash': value['
|
|
82
|
+
'from_block_height': value['from_block_height'],
|
|
83
|
+
'from_tx_hash': value['from_tx_hash'],
|
|
84
84
|
'id': value['id'],
|
|
85
|
-
'created_at': value['
|
|
85
|
+
'created_at': value['created_at'],
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
|
package/models/Search.ts
CHANGED
|
@@ -36,14 +36,14 @@ export interface Search {
|
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof Search
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
data_type: number;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the Search interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfSearch(value: object): value is Search {
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('data_type' in value) || value['data_type'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export function SearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): Se
|
|
|
59
59
|
|
|
60
60
|
'code': json['code'] == null ? undefined : json['code'],
|
|
61
61
|
'message': json['message'] == null ? undefined : json['message'],
|
|
62
|
-
'
|
|
62
|
+
'data_type': json['data_type'],
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -71,7 +71,7 @@ export function SearchToJSON(value?: Search | null): any {
|
|
|
71
71
|
|
|
72
72
|
'code': value['code'],
|
|
73
73
|
'message': value['message'],
|
|
74
|
-
'data_type': value['
|
|
74
|
+
'data_type': value['data_type'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
package/models/SignBody.ts
CHANGED
|
@@ -36,14 +36,14 @@ export interface SignBody {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SignBody
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
sign_body: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the SignBody interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfSignBody(value: object): value is SignBody {
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('sign_body' in value) || value['sign_body'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export function SignBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
59
59
|
|
|
60
60
|
'code': json['code'] == null ? undefined : json['code'],
|
|
61
61
|
'message': json['message'] == null ? undefined : json['message'],
|
|
62
|
-
'
|
|
62
|
+
'sign_body': json['sign_body'],
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -71,7 +71,7 @@ export function SignBodyToJSON(value?: SignBody | null): any {
|
|
|
71
71
|
|
|
72
72
|
'code': value['code'],
|
|
73
73
|
'message': value['message'],
|
|
74
|
-
'sign_body': value['
|
|
74
|
+
'sign_body': value['sign_body'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|