zklighter-perps 1.0.11 → 1.0.13
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 +4 -4
- 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
package/models/SimpleOrder.ts
CHANGED
|
@@ -24,25 +24,25 @@ export interface SimpleOrder {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof SimpleOrder
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
owner_account_index: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof SimpleOrder
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
owner_sub_account_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SimpleOrder
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
initial_base_amount: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof SimpleOrder
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
remaining_base_amount: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {string}
|
|
@@ -61,10 +61,10 @@ export interface SimpleOrder {
|
|
|
61
61
|
* Check if a given object implements the SimpleOrder interface.
|
|
62
62
|
*/
|
|
63
63
|
export function instanceOfSimpleOrder(value: object): value is SimpleOrder {
|
|
64
|
-
if (!('
|
|
65
|
-
if (!('
|
|
66
|
-
if (!('
|
|
67
|
-
if (!('
|
|
64
|
+
if (!('owner_account_index' in value) || value['owner_account_index'] === undefined) return false;
|
|
65
|
+
if (!('owner_sub_account_index' in value) || value['owner_sub_account_index'] === undefined) return false;
|
|
66
|
+
if (!('initial_base_amount' in value) || value['initial_base_amount'] === undefined) return false;
|
|
67
|
+
if (!('remaining_base_amount' in value) || value['remaining_base_amount'] === undefined) return false;
|
|
68
68
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
69
69
|
if (!('nonce' in value) || value['nonce'] === undefined) return false;
|
|
70
70
|
return true;
|
|
@@ -80,10 +80,10 @@ export function SimpleOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
80
80
|
}
|
|
81
81
|
return {
|
|
82
82
|
|
|
83
|
-
'
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
83
|
+
'owner_account_index': json['owner_account_index'],
|
|
84
|
+
'owner_sub_account_index': json['owner_sub_account_index'],
|
|
85
|
+
'initial_base_amount': json['initial_base_amount'],
|
|
86
|
+
'remaining_base_amount': json['remaining_base_amount'],
|
|
87
87
|
'price': json['price'],
|
|
88
88
|
'nonce': json['nonce'],
|
|
89
89
|
};
|
|
@@ -95,10 +95,10 @@ export function SimpleOrderToJSON(value?: SimpleOrder | null): any {
|
|
|
95
95
|
}
|
|
96
96
|
return {
|
|
97
97
|
|
|
98
|
-
'owner_account_index': value['
|
|
99
|
-
'owner_sub_account_index': value['
|
|
100
|
-
'initial_base_amount': value['
|
|
101
|
-
'remaining_base_amount': value['
|
|
98
|
+
'owner_account_index': value['owner_account_index'],
|
|
99
|
+
'owner_sub_account_index': value['owner_sub_account_index'],
|
|
100
|
+
'initial_base_amount': value['initial_base_amount'],
|
|
101
|
+
'remaining_base_amount': value['remaining_base_amount'],
|
|
102
102
|
'price': value['price'],
|
|
103
103
|
'nonce': value['nonce'],
|
|
104
104
|
};
|
package/models/Status.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface Status {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof Status
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
network_id: number;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ export interface Status {
|
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfStatus(value: object): value is Status {
|
|
40
40
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('network_id' in value) || value['network_id'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -53,7 +53,7 @@ export function StatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): St
|
|
|
53
53
|
return {
|
|
54
54
|
|
|
55
55
|
'status': json['status'],
|
|
56
|
-
'
|
|
56
|
+
'network_id': json['network_id'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ export function StatusToJSON(value?: Status | null): any {
|
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
66
|
'status': value['status'],
|
|
67
|
-
'network_id': value['
|
|
67
|
+
'network_id': value['network_id'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|
package/models/SubAccount.ts
CHANGED
|
@@ -30,13 +30,13 @@ export interface SubAccount {
|
|
|
30
30
|
* @type {number}
|
|
31
31
|
* @memberof SubAccount
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
sub_account_index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof SubAccount
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
l1_address: string;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -66,7 +66,7 @@ export interface SubAccount {
|
|
|
66
66
|
* @type {number}
|
|
67
67
|
* @memberof SubAccount
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
collateral_type: number;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -74,13 +74,13 @@ export interface SubAccount {
|
|
|
74
74
|
*/
|
|
75
75
|
export function instanceOfSubAccount(value: object): value is SubAccount {
|
|
76
76
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
77
|
-
if (!('
|
|
78
|
-
if (!('
|
|
77
|
+
if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
|
|
78
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
79
79
|
if (!('pk' in value) || value['pk'] === undefined) return false;
|
|
80
80
|
if (!('nonce' in value) || value['nonce'] === undefined) return false;
|
|
81
81
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
82
82
|
if (!('collateral' in value) || value['collateral'] === undefined) return false;
|
|
83
|
-
if (!('
|
|
83
|
+
if (!('collateral_type' in value) || value['collateral_type'] === undefined) return false;
|
|
84
84
|
return true;
|
|
85
85
|
}
|
|
86
86
|
|
|
@@ -95,13 +95,13 @@ export function SubAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
95
95
|
return {
|
|
96
96
|
|
|
97
97
|
'index': json['index'],
|
|
98
|
-
'
|
|
99
|
-
'
|
|
98
|
+
'sub_account_index': json['sub_account_index'],
|
|
99
|
+
'l1_address': json['l1_address'],
|
|
100
100
|
'pk': json['pk'],
|
|
101
101
|
'nonce': json['nonce'],
|
|
102
102
|
'status': json['status'],
|
|
103
103
|
'collateral': json['collateral'],
|
|
104
|
-
'
|
|
104
|
+
'collateral_type': json['collateral_type'],
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -112,13 +112,13 @@ export function SubAccountToJSON(value?: SubAccount | null): any {
|
|
|
112
112
|
return {
|
|
113
113
|
|
|
114
114
|
'index': value['index'],
|
|
115
|
-
'sub_account_index': value['
|
|
116
|
-
'l1_address': value['
|
|
115
|
+
'sub_account_index': value['sub_account_index'],
|
|
116
|
+
'l1_address': value['l1_address'],
|
|
117
117
|
'pk': value['pk'],
|
|
118
118
|
'nonce': value['nonce'],
|
|
119
119
|
'status': value['status'],
|
|
120
120
|
'collateral': value['collateral'],
|
|
121
|
-
'collateral_type': value['
|
|
121
|
+
'collateral_type': value['collateral_type'],
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
package/models/SubAccounts.ts
CHANGED
|
@@ -49,7 +49,7 @@ export interface SubAccounts {
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
* @memberof SubAccounts
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
l1_address: string;
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
55
55
|
* @type {number}
|
|
@@ -61,7 +61,7 @@ export interface SubAccounts {
|
|
|
61
61
|
* @type {Array<SubAccount>}
|
|
62
62
|
* @memberof SubAccounts
|
|
63
63
|
*/
|
|
64
|
-
|
|
64
|
+
sub_accounts: Array<SubAccount>;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
/**
|
|
@@ -69,9 +69,9 @@ export interface SubAccounts {
|
|
|
69
69
|
*/
|
|
70
70
|
export function instanceOfSubAccounts(value: object): value is SubAccounts {
|
|
71
71
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
72
|
-
if (!('
|
|
72
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
73
73
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
74
|
-
if (!('
|
|
74
|
+
if (!('sub_accounts' in value) || value['sub_accounts'] === undefined) return false;
|
|
75
75
|
return true;
|
|
76
76
|
}
|
|
77
77
|
|
|
@@ -88,9 +88,9 @@ export function SubAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
88
88
|
'code': json['code'] == null ? undefined : json['code'],
|
|
89
89
|
'message': json['message'] == null ? undefined : json['message'],
|
|
90
90
|
'index': json['index'],
|
|
91
|
-
'
|
|
91
|
+
'l1_address': json['l1_address'],
|
|
92
92
|
'status': json['status'],
|
|
93
|
-
'
|
|
93
|
+
'sub_accounts': ((json['sub_accounts'] as Array<any>).map(SubAccountFromJSON)),
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -103,9 +103,9 @@ export function SubAccountsToJSON(value?: SubAccounts | null): any {
|
|
|
103
103
|
'code': value['code'],
|
|
104
104
|
'message': value['message'],
|
|
105
105
|
'index': value['index'],
|
|
106
|
-
'l1_address': value['
|
|
106
|
+
'l1_address': value['l1_address'],
|
|
107
107
|
'status': value['status'],
|
|
108
|
-
'sub_accounts': ((value['
|
|
108
|
+
'sub_accounts': ((value['sub_accounts'] as Array<any>).map(SubAccountToJSON)),
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
|
package/models/Trade.ts
CHANGED
|
@@ -24,19 +24,19 @@ export interface Trade {
|
|
|
24
24
|
* @type {number}
|
|
25
25
|
* @memberof Trade
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
trade_id: number;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof Trade
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
tx_hash: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
37
37
|
* @memberof Trade
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
market_id: number;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {string}
|
|
@@ -54,37 +54,37 @@ export interface Trade {
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof Trade
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
ask_id: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {number}
|
|
61
61
|
* @memberof Trade
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
bid_id: number;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
|
67
67
|
* @memberof Trade
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
maker_account_id: number;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof Trade
|
|
74
74
|
*/
|
|
75
|
-
|
|
75
|
+
taker_account_id: number;
|
|
76
76
|
/**
|
|
77
77
|
*
|
|
78
78
|
* @type {boolean}
|
|
79
79
|
* @memberof Trade
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
is_maker_ask: boolean;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {number}
|
|
85
85
|
* @memberof Trade
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
block_height: number;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {number}
|
|
@@ -97,17 +97,17 @@ export interface Trade {
|
|
|
97
97
|
* Check if a given object implements the Trade interface.
|
|
98
98
|
*/
|
|
99
99
|
export function instanceOfTrade(value: object): value is Trade {
|
|
100
|
-
if (!('
|
|
101
|
-
if (!('
|
|
102
|
-
if (!('
|
|
100
|
+
if (!('trade_id' in value) || value['trade_id'] === undefined) return false;
|
|
101
|
+
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
102
|
+
if (!('market_id' in value) || value['market_id'] === undefined) return false;
|
|
103
103
|
if (!('size' in value) || value['size'] === undefined) return false;
|
|
104
104
|
if (!('price' in value) || value['price'] === undefined) return false;
|
|
105
|
-
if (!('
|
|
106
|
-
if (!('
|
|
107
|
-
if (!('
|
|
108
|
-
if (!('
|
|
109
|
-
if (!('
|
|
110
|
-
if (!('
|
|
105
|
+
if (!('ask_id' in value) || value['ask_id'] === undefined) return false;
|
|
106
|
+
if (!('bid_id' in value) || value['bid_id'] === undefined) return false;
|
|
107
|
+
if (!('maker_account_id' in value) || value['maker_account_id'] === undefined) return false;
|
|
108
|
+
if (!('taker_account_id' in value) || value['taker_account_id'] === undefined) return false;
|
|
109
|
+
if (!('is_maker_ask' in value) || value['is_maker_ask'] === undefined) return false;
|
|
110
|
+
if (!('block_height' in value) || value['block_height'] === undefined) return false;
|
|
111
111
|
if (!('timestamp' in value) || value['timestamp'] === undefined) return false;
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
@@ -122,17 +122,17 @@ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tra
|
|
|
122
122
|
}
|
|
123
123
|
return {
|
|
124
124
|
|
|
125
|
-
'
|
|
126
|
-
'
|
|
127
|
-
'
|
|
125
|
+
'trade_id': json['trade_id'],
|
|
126
|
+
'tx_hash': json['tx_hash'],
|
|
127
|
+
'market_id': json['market_id'],
|
|
128
128
|
'size': json['size'],
|
|
129
129
|
'price': json['price'],
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
134
|
-
'
|
|
135
|
-
'
|
|
130
|
+
'ask_id': json['ask_id'],
|
|
131
|
+
'bid_id': json['bid_id'],
|
|
132
|
+
'maker_account_id': json['maker_account_id'],
|
|
133
|
+
'taker_account_id': json['taker_account_id'],
|
|
134
|
+
'is_maker_ask': json['is_maker_ask'],
|
|
135
|
+
'block_height': json['block_height'],
|
|
136
136
|
'timestamp': json['timestamp'],
|
|
137
137
|
};
|
|
138
138
|
}
|
|
@@ -143,17 +143,17 @@ export function TradeToJSON(value?: Trade | null): any {
|
|
|
143
143
|
}
|
|
144
144
|
return {
|
|
145
145
|
|
|
146
|
-
'trade_id': value['
|
|
147
|
-
'tx_hash': value['
|
|
148
|
-
'market_id': value['
|
|
146
|
+
'trade_id': value['trade_id'],
|
|
147
|
+
'tx_hash': value['tx_hash'],
|
|
148
|
+
'market_id': value['market_id'],
|
|
149
149
|
'size': value['size'],
|
|
150
150
|
'price': value['price'],
|
|
151
|
-
'ask_id': value['
|
|
152
|
-
'bid_id': value['
|
|
153
|
-
'maker_account_id': value['
|
|
154
|
-
'taker_account_id': value['
|
|
155
|
-
'is_maker_ask': value['
|
|
156
|
-
'block_height': value['
|
|
151
|
+
'ask_id': value['ask_id'],
|
|
152
|
+
'bid_id': value['bid_id'],
|
|
153
|
+
'maker_account_id': value['maker_account_id'],
|
|
154
|
+
'taker_account_id': value['taker_account_id'],
|
|
155
|
+
'is_maker_ask': value['is_maker_ask'],
|
|
156
|
+
'block_height': value['block_height'],
|
|
157
157
|
'timestamp': value['timestamp'],
|
|
158
158
|
};
|
|
159
159
|
}
|
package/models/Tx.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface Tx {
|
|
|
42
42
|
* @type {string}
|
|
43
43
|
* @memberof Tx
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
event_info: string;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
@@ -54,19 +54,19 @@ export interface Tx {
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
* @memberof Tx
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
transaction_index: number;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof Tx
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
l1_address: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {number}
|
|
67
67
|
* @memberof Tx
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
account_index: number;
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
* @type {number}
|
|
@@ -78,31 +78,31 @@ export interface Tx {
|
|
|
78
78
|
* @type {number}
|
|
79
79
|
* @memberof Tx
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
expire_at: number;
|
|
82
82
|
/**
|
|
83
83
|
*
|
|
84
84
|
* @type {number}
|
|
85
85
|
* @memberof Tx
|
|
86
86
|
*/
|
|
87
|
-
|
|
87
|
+
block_height: number;
|
|
88
88
|
/**
|
|
89
89
|
*
|
|
90
90
|
* @type {number}
|
|
91
91
|
* @memberof Tx
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
created_at: number;
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
96
|
* @type {number}
|
|
97
97
|
* @memberof Tx
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
verify_at: number;
|
|
100
100
|
/**
|
|
101
101
|
*
|
|
102
102
|
* @type {number}
|
|
103
103
|
* @memberof Tx
|
|
104
104
|
*/
|
|
105
|
-
|
|
105
|
+
sequence_index: number;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|
|
@@ -112,17 +112,17 @@ export function instanceOfTx(value: object): value is Tx {
|
|
|
112
112
|
if (!('hash' in value) || value['hash'] === undefined) return false;
|
|
113
113
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
114
114
|
if (!('info' in value) || value['info'] === undefined) return false;
|
|
115
|
-
if (!('
|
|
115
|
+
if (!('event_info' in value) || value['event_info'] === undefined) return false;
|
|
116
116
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
117
|
-
if (!('
|
|
118
|
-
if (!('
|
|
119
|
-
if (!('
|
|
117
|
+
if (!('transaction_index' in value) || value['transaction_index'] === undefined) return false;
|
|
118
|
+
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
119
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
120
120
|
if (!('nonce' in value) || value['nonce'] === undefined) return false;
|
|
121
|
-
if (!('
|
|
122
|
-
if (!('
|
|
123
|
-
if (!('
|
|
124
|
-
if (!('
|
|
125
|
-
if (!('
|
|
121
|
+
if (!('expire_at' in value) || value['expire_at'] === undefined) return false;
|
|
122
|
+
if (!('block_height' in value) || value['block_height'] === undefined) return false;
|
|
123
|
+
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
124
|
+
if (!('verify_at' in value) || value['verify_at'] === undefined) return false;
|
|
125
|
+
if (!('sequence_index' in value) || value['sequence_index'] === undefined) return false;
|
|
126
126
|
return true;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -139,17 +139,17 @@ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
|
|
|
139
139
|
'hash': json['hash'],
|
|
140
140
|
'type': json['type'],
|
|
141
141
|
'info': json['info'],
|
|
142
|
-
'
|
|
142
|
+
'event_info': json['event_info'],
|
|
143
143
|
'status': json['status'],
|
|
144
|
-
'
|
|
145
|
-
'
|
|
146
|
-
'
|
|
144
|
+
'transaction_index': json['transaction_index'],
|
|
145
|
+
'l1_address': json['l1_address'],
|
|
146
|
+
'account_index': json['account_index'],
|
|
147
147
|
'nonce': json['nonce'],
|
|
148
|
-
'
|
|
149
|
-
'
|
|
150
|
-
'
|
|
151
|
-
'
|
|
152
|
-
'
|
|
148
|
+
'expire_at': json['expire_at'],
|
|
149
|
+
'block_height': json['block_height'],
|
|
150
|
+
'created_at': json['created_at'],
|
|
151
|
+
'verify_at': json['verify_at'],
|
|
152
|
+
'sequence_index': json['sequence_index'],
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -162,17 +162,17 @@ export function TxToJSON(value?: Tx | null): any {
|
|
|
162
162
|
'hash': value['hash'],
|
|
163
163
|
'type': value['type'],
|
|
164
164
|
'info': value['info'],
|
|
165
|
-
'event_info': value['
|
|
165
|
+
'event_info': value['event_info'],
|
|
166
166
|
'status': value['status'],
|
|
167
|
-
'transaction_index': value['
|
|
168
|
-
'l1_address': value['
|
|
169
|
-
'account_index': value['
|
|
167
|
+
'transaction_index': value['transaction_index'],
|
|
168
|
+
'l1_address': value['l1_address'],
|
|
169
|
+
'account_index': value['account_index'],
|
|
170
170
|
'nonce': value['nonce'],
|
|
171
|
-
'expire_at': value['
|
|
172
|
-
'block_height': value['
|
|
173
|
-
'created_at': value['
|
|
174
|
-
'verify_at': value['
|
|
175
|
-
'sequence_index': value['
|
|
171
|
+
'expire_at': value['expire_at'],
|
|
172
|
+
'block_height': value['block_height'],
|
|
173
|
+
'created_at': value['created_at'],
|
|
174
|
+
'verify_at': value['verify_at'],
|
|
175
|
+
'sequence_index': value['sequence_index'],
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
178
|
|
package/models/TxHash.ts
CHANGED
|
@@ -36,14 +36,14 @@ export interface TxHash {
|
|
|
36
36
|
* @type {string}
|
|
37
37
|
* @memberof TxHash
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
tx_hash: string;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the TxHash interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfTxHash(value: object): value is TxHash {
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export function TxHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx
|
|
|
59
59
|
|
|
60
60
|
'code': json['code'] == null ? undefined : json['code'],
|
|
61
61
|
'message': json['message'] == null ? undefined : json['message'],
|
|
62
|
-
'
|
|
62
|
+
'tx_hash': json['tx_hash'],
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -71,7 +71,7 @@ export function TxHashToJSON(value?: TxHash | null): any {
|
|
|
71
71
|
|
|
72
72
|
'code': value['code'],
|
|
73
73
|
'message': value['message'],
|
|
74
|
-
'tx_hash': value['
|
|
74
|
+
'tx_hash': value['tx_hash'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
package/models/TxHashes.ts
CHANGED
|
@@ -36,14 +36,14 @@ export interface TxHashes {
|
|
|
36
36
|
* @type {Array<string>}
|
|
37
37
|
* @memberof TxHashes
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
tx_hash: Array<string>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Check if a given object implements the TxHashes interface.
|
|
44
44
|
*/
|
|
45
45
|
export function instanceOfTxHashes(value: object): value is TxHashes {
|
|
46
|
-
if (!('
|
|
46
|
+
if (!('tx_hash' in value) || value['tx_hash'] === undefined) return false;
|
|
47
47
|
return true;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -59,7 +59,7 @@ export function TxHashesFromJSONTyped(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
|
+
'tx_hash': json['tx_hash'],
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
65
|
|
|
@@ -71,7 +71,7 @@ export function TxHashesToJSON(value?: TxHashes | null): any {
|
|
|
71
71
|
|
|
72
72
|
'code': value['code'],
|
|
73
73
|
'message': value['message'],
|
|
74
|
-
'tx_hash': value['
|
|
74
|
+
'tx_hash': value['tx_hash'],
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
|
package/models/ValidatorInfo.ts
CHANGED
|
@@ -30,7 +30,7 @@ export interface ValidatorInfo {
|
|
|
30
30
|
* @type {boolean}
|
|
31
31
|
* @memberof ValidatorInfo
|
|
32
32
|
*/
|
|
33
|
-
|
|
33
|
+
is_active: boolean;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ export interface ValidatorInfo {
|
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfValidatorInfo(value: object): value is ValidatorInfo {
|
|
40
40
|
if (!('address' in value) || value['address'] === undefined) return false;
|
|
41
|
-
if (!('
|
|
41
|
+
if (!('is_active' in value) || value['is_active'] === undefined) return false;
|
|
42
42
|
return true;
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -53,7 +53,7 @@ export function ValidatorInfoFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
53
53
|
return {
|
|
54
54
|
|
|
55
55
|
'address': json['address'],
|
|
56
|
-
'
|
|
56
|
+
'is_active': json['is_active'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -64,7 +64,7 @@ export function ValidatorInfoToJSON(value?: ValidatorInfo | null): any {
|
|
|
64
64
|
return {
|
|
65
65
|
|
|
66
66
|
'address': value['address'],
|
|
67
|
-
'is_active': value['
|
|
67
|
+
'is_active': value['is_active'],
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
|