zklighter-perps 1.0.0

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.
Files changed (103) hide show
  1. package/.circleci/config.yml +86 -0
  2. package/.openapi-generator/FILES +95 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/apis/AccountApi.ts +454 -0
  6. package/apis/BlockApi.ts +178 -0
  7. package/apis/CandlestickApi.ts +231 -0
  8. package/apis/InfoApi.ts +197 -0
  9. package/apis/OrderApi.ts +607 -0
  10. package/apis/RelayerApi.ts +95 -0
  11. package/apis/RootApi.ts +56 -0
  12. package/apis/TransactionApi.ts +608 -0
  13. package/apis/WsApi.ts +82 -0
  14. package/apis/index.ts +11 -0
  15. package/config.yaml +5 -0
  16. package/index.ts +5 -0
  17. package/models/AccountMarketStats.ts +100 -0
  18. package/models/AccountPnL.ts +91 -0
  19. package/models/AccountPosition.ts +140 -0
  20. package/models/AccountStats.ts +92 -0
  21. package/models/Block.ts +163 -0
  22. package/models/Blocks.ts +91 -0
  23. package/models/Candlestick.ts +108 -0
  24. package/models/Candlesticks.ts +91 -0
  25. package/models/ContractAddress.ts +68 -0
  26. package/models/CurrentHeight.ts +76 -0
  27. package/models/Cursor.ts +60 -0
  28. package/models/DetailedAccount.ts +169 -0
  29. package/models/DetailedAccounts.ts +91 -0
  30. package/models/EnrichedTx.ts +204 -0
  31. package/models/ExchangeStats.ts +107 -0
  32. package/models/Funding.ts +84 -0
  33. package/models/Fundings.ts +91 -0
  34. package/models/L1ProviderInfo.ts +84 -0
  35. package/models/Layer1BasicInfo.ts +143 -0
  36. package/models/Layer2BasicInfo.ts +92 -0
  37. package/models/MainAccount.ts +92 -0
  38. package/models/MainAccounts.ts +91 -0
  39. package/models/MarketInfo.ts +140 -0
  40. package/models/MarketSig.ts +100 -0
  41. package/models/NextNonce.ts +76 -0
  42. package/models/Order.ts +209 -0
  43. package/models/OrderBook.ts +143 -0
  44. package/models/OrderBookDepth.ts +99 -0
  45. package/models/OrderBookDetail.ts +287 -0
  46. package/models/OrderBookDetails.ts +83 -0
  47. package/models/OrderBookOrders.ts +107 -0
  48. package/models/OrderBookStats.ts +100 -0
  49. package/models/OrderBooks.ts +83 -0
  50. package/models/Orders.ts +91 -0
  51. package/models/Permission.ts +76 -0
  52. package/models/PnLEntry.ts +68 -0
  53. package/models/PriceLevel.ts +68 -0
  54. package/models/ReqDoFaucet.ts +60 -0
  55. package/models/ReqGetAccount.ts +79 -0
  56. package/models/ReqGetAccountActiveOrders.ts +76 -0
  57. package/models/ReqGetAccountByL1Address.ts +60 -0
  58. package/models/ReqGetAccountInactiveOrders.ts +111 -0
  59. package/models/ReqGetAccountOrders.ts +84 -0
  60. package/models/ReqGetAccountPendingTxs.ts +87 -0
  61. package/models/ReqGetAccountPnL.ts +124 -0
  62. package/models/ReqGetAccountTxs.ts +103 -0
  63. package/models/ReqGetBlock.ts +79 -0
  64. package/models/ReqGetBlockTxs.ts +79 -0
  65. package/models/ReqGetByAccount.ts +79 -0
  66. package/models/ReqGetCandlesticks.ts +107 -0
  67. package/models/ReqGetFundings.ts +102 -0
  68. package/models/ReqGetL1Tx.ts +60 -0
  69. package/models/ReqGetMarketSig.ts +76 -0
  70. package/models/ReqGetNextNonce.ts +68 -0
  71. package/models/ReqGetOrderBookDetails.ts +79 -0
  72. package/models/ReqGetOrderBookOrders.ts +68 -0
  73. package/models/ReqGetOrderBooks.ts +79 -0
  74. package/models/ReqGetPermission.ts +87 -0
  75. package/models/ReqGetRangeWithCursor.ts +68 -0
  76. package/models/ReqGetRangeWithIndex.ts +68 -0
  77. package/models/ReqGetRangeWithIndexSortable.ts +87 -0
  78. package/models/ReqGetRecentTrades.ts +68 -0
  79. package/models/ReqGetRollbacks.ts +76 -0
  80. package/models/ReqGetSubAccount.ts +87 -0
  81. package/models/ReqGetTrades.ts +104 -0
  82. package/models/ReqGetTx.ts +79 -0
  83. package/models/ReqSearch.ts +60 -0
  84. package/models/ResultCode.ts +68 -0
  85. package/models/Rollback.ts +84 -0
  86. package/models/Rollbacks.ts +91 -0
  87. package/models/Search.ts +76 -0
  88. package/models/SignBody.ts +76 -0
  89. package/models/SimpleOrder.ts +100 -0
  90. package/models/Status.ts +68 -0
  91. package/models/SubAccount.ts +116 -0
  92. package/models/SubAccounts.ts +107 -0
  93. package/models/Trade.ts +148 -0
  94. package/models/Trades.ts +83 -0
  95. package/models/Tx.ts +164 -0
  96. package/models/TxHash.ts +76 -0
  97. package/models/Txs.ts +83 -0
  98. package/models/ValidatorInfo.ts +68 -0
  99. package/models/index.ts +84 -0
  100. package/openapi-generator-cli.jar +0 -0
  101. package/openapi.json +3934 -0
  102. package/package.json +23 -0
  103. package/runtime.ts +426 -0
@@ -0,0 +1,116 @@
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 SubAccount
20
+ */
21
+ export interface SubAccount {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof SubAccount
26
+ */
27
+ index?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof SubAccount
32
+ */
33
+ subAccountIndex?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof SubAccount
38
+ */
39
+ l1Address?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof SubAccount
44
+ */
45
+ pk?: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof SubAccount
50
+ */
51
+ nonce?: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof SubAccount
56
+ */
57
+ status?: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof SubAccount
62
+ */
63
+ collateral?: string;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof SubAccount
68
+ */
69
+ collateralType?: number;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the SubAccount interface.
74
+ */
75
+ export function instanceOfSubAccount(value: object): value is SubAccount {
76
+ return true;
77
+ }
78
+
79
+ export function SubAccountFromJSON(json: any): SubAccount {
80
+ return SubAccountFromJSONTyped(json, false);
81
+ }
82
+
83
+ export function SubAccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubAccount {
84
+ if (json == null) {
85
+ return json;
86
+ }
87
+ return {
88
+
89
+ 'index': json['index'] == null ? undefined : json['index'],
90
+ 'subAccountIndex': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
91
+ 'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
92
+ 'pk': json['pk'] == null ? undefined : json['pk'],
93
+ 'nonce': json['nonce'] == null ? undefined : json['nonce'],
94
+ 'status': json['status'] == null ? undefined : json['status'],
95
+ 'collateral': json['collateral'] == null ? undefined : json['collateral'],
96
+ 'collateralType': json['collateral_type'] == null ? undefined : json['collateral_type'],
97
+ };
98
+ }
99
+
100
+ export function SubAccountToJSON(value?: SubAccount | null): any {
101
+ if (value == null) {
102
+ return value;
103
+ }
104
+ return {
105
+
106
+ 'index': value['index'],
107
+ 'sub_account_index': value['subAccountIndex'],
108
+ 'l1_address': value['l1Address'],
109
+ 'pk': value['pk'],
110
+ 'nonce': value['nonce'],
111
+ 'status': value['status'],
112
+ 'collateral': value['collateral'],
113
+ 'collateral_type': value['collateralType'],
114
+ };
115
+ }
116
+
@@ -0,0 +1,107 @@
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 { SubAccount } from './SubAccount';
17
+ import {
18
+ SubAccountFromJSON,
19
+ SubAccountFromJSONTyped,
20
+ SubAccountToJSON,
21
+ } from './SubAccount';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface SubAccounts
27
+ */
28
+ export interface SubAccounts {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof SubAccounts
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof SubAccounts
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof SubAccounts
45
+ */
46
+ index?: number;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof SubAccounts
51
+ */
52
+ l1Address?: string;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof SubAccounts
57
+ */
58
+ status?: number;
59
+ /**
60
+ *
61
+ * @type {Array<SubAccount>}
62
+ * @memberof SubAccounts
63
+ */
64
+ subAccounts?: Array<SubAccount>;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the SubAccounts interface.
69
+ */
70
+ export function instanceOfSubAccounts(value: object): value is SubAccounts {
71
+ return true;
72
+ }
73
+
74
+ export function SubAccountsFromJSON(json: any): SubAccounts {
75
+ return SubAccountsFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function SubAccountsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubAccounts {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'code': json['code'] == null ? undefined : json['code'],
85
+ 'message': json['message'] == null ? undefined : json['message'],
86
+ 'index': json['index'] == null ? undefined : json['index'],
87
+ 'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
88
+ 'status': json['status'] == null ? undefined : json['status'],
89
+ 'subAccounts': json['sub_accounts'] == null ? undefined : ((json['sub_accounts'] as Array<any>).map(SubAccountFromJSON)),
90
+ };
91
+ }
92
+
93
+ export function SubAccountsToJSON(value?: SubAccounts | null): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+ return {
98
+
99
+ 'code': value['code'],
100
+ 'message': value['message'],
101
+ 'index': value['index'],
102
+ 'l1_address': value['l1Address'],
103
+ 'status': value['status'],
104
+ 'sub_accounts': value['subAccounts'] == null ? undefined : ((value['subAccounts'] as Array<any>).map(SubAccountToJSON)),
105
+ };
106
+ }
107
+
@@ -0,0 +1,148 @@
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 Trade
20
+ */
21
+ export interface Trade {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof Trade
26
+ */
27
+ tradeId?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Trade
32
+ */
33
+ txHash?: string;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof Trade
38
+ */
39
+ marketId?: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Trade
44
+ */
45
+ size?: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Trade
50
+ */
51
+ price?: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof Trade
56
+ */
57
+ askId?: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof Trade
62
+ */
63
+ bidId?: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof Trade
68
+ */
69
+ makerAccountId?: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof Trade
74
+ */
75
+ takerAccountId?: number;
76
+ /**
77
+ *
78
+ * @type {boolean}
79
+ * @memberof Trade
80
+ */
81
+ isMakerAsk?: boolean;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof Trade
86
+ */
87
+ blockHeight?: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof Trade
92
+ */
93
+ timestamp?: number;
94
+ }
95
+
96
+ /**
97
+ * Check if a given object implements the Trade interface.
98
+ */
99
+ export function instanceOfTrade(value: object): value is Trade {
100
+ return true;
101
+ }
102
+
103
+ export function TradeFromJSON(json: any): Trade {
104
+ return TradeFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function TradeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Trade {
108
+ if (json == null) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'tradeId': json['trade_id'] == null ? undefined : json['trade_id'],
114
+ 'txHash': json['tx_hash'] == null ? undefined : json['tx_hash'],
115
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
116
+ 'size': json['size'] == null ? undefined : json['size'],
117
+ 'price': json['price'] == null ? undefined : json['price'],
118
+ 'askId': json['ask_id'] == null ? undefined : json['ask_id'],
119
+ 'bidId': json['bid_id'] == null ? undefined : json['bid_id'],
120
+ 'makerAccountId': json['maker_account_id'] == null ? undefined : json['maker_account_id'],
121
+ 'takerAccountId': json['taker_account_id'] == null ? undefined : json['taker_account_id'],
122
+ 'isMakerAsk': json['is_maker_ask'] == null ? undefined : json['is_maker_ask'],
123
+ 'blockHeight': json['block_height'] == null ? undefined : json['block_height'],
124
+ 'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
125
+ };
126
+ }
127
+
128
+ export function TradeToJSON(value?: Trade | null): any {
129
+ if (value == null) {
130
+ return value;
131
+ }
132
+ return {
133
+
134
+ 'trade_id': value['tradeId'],
135
+ 'tx_hash': value['txHash'],
136
+ 'market_id': value['marketId'],
137
+ 'size': value['size'],
138
+ 'price': value['price'],
139
+ 'ask_id': value['askId'],
140
+ 'bid_id': value['bidId'],
141
+ 'maker_account_id': value['makerAccountId'],
142
+ 'taker_account_id': value['takerAccountId'],
143
+ 'is_maker_ask': value['isMakerAsk'],
144
+ 'block_height': value['blockHeight'],
145
+ 'timestamp': value['timestamp'],
146
+ };
147
+ }
148
+
@@ -0,0 +1,83 @@
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 { Trade } from './Trade';
17
+ import {
18
+ TradeFromJSON,
19
+ TradeFromJSONTyped,
20
+ TradeToJSON,
21
+ } from './Trade';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Trades
27
+ */
28
+ export interface Trades {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof Trades
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Trades
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<Trade>}
44
+ * @memberof Trades
45
+ */
46
+ trades?: Array<Trade>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the Trades interface.
51
+ */
52
+ export function instanceOfTrades(value: object): value is Trades {
53
+ return true;
54
+ }
55
+
56
+ export function TradesFromJSON(json: any): Trades {
57
+ return TradesFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function TradesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Trades {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+
66
+ 'code': json['code'] == null ? undefined : json['code'],
67
+ 'message': json['message'] == null ? undefined : json['message'],
68
+ 'trades': json['trades'] == null ? undefined : ((json['trades'] as Array<any>).map(TradeFromJSON)),
69
+ };
70
+ }
71
+
72
+ export function TradesToJSON(value?: Trades | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'code': value['code'],
79
+ 'message': value['message'],
80
+ 'trades': value['trades'] == null ? undefined : ((value['trades'] as Array<any>).map(TradeToJSON)),
81
+ };
82
+ }
83
+
package/models/Tx.ts ADDED
@@ -0,0 +1,164 @@
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 Tx
20
+ */
21
+ export interface Tx {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Tx
26
+ */
27
+ hash?: string;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof Tx
32
+ */
33
+ type?: number;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Tx
38
+ */
39
+ info?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Tx
44
+ */
45
+ eventInfo?: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof Tx
50
+ */
51
+ status?: number;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof Tx
56
+ */
57
+ transactionIndex?: number;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof Tx
62
+ */
63
+ l1Address?: string;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof Tx
68
+ */
69
+ accountIndex?: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof Tx
74
+ */
75
+ nonce?: number;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof Tx
80
+ */
81
+ expireAt?: number;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof Tx
86
+ */
87
+ blockHeight?: number;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof Tx
92
+ */
93
+ createdAt?: number;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof Tx
98
+ */
99
+ verifyAt?: number;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof Tx
104
+ */
105
+ sequenceIndex?: number;
106
+ }
107
+
108
+ /**
109
+ * Check if a given object implements the Tx interface.
110
+ */
111
+ export function instanceOfTx(value: object): value is Tx {
112
+ return true;
113
+ }
114
+
115
+ export function TxFromJSON(json: any): Tx {
116
+ return TxFromJSONTyped(json, false);
117
+ }
118
+
119
+ export function TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tx {
120
+ if (json == null) {
121
+ return json;
122
+ }
123
+ return {
124
+
125
+ 'hash': json['hash'] == null ? undefined : json['hash'],
126
+ 'type': json['type'] == null ? undefined : json['type'],
127
+ 'info': json['info'] == null ? undefined : json['info'],
128
+ 'eventInfo': json['event_info'] == null ? undefined : json['event_info'],
129
+ 'status': json['status'] == null ? undefined : json['status'],
130
+ 'transactionIndex': json['transaction_index'] == null ? undefined : json['transaction_index'],
131
+ 'l1Address': json['l1_address'] == null ? undefined : json['l1_address'],
132
+ 'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
133
+ 'nonce': json['nonce'] == null ? undefined : json['nonce'],
134
+ 'expireAt': json['expire_at'] == null ? undefined : json['expire_at'],
135
+ 'blockHeight': json['block_height'] == null ? undefined : json['block_height'],
136
+ 'createdAt': json['created_at'] == null ? undefined : json['created_at'],
137
+ 'verifyAt': json['verify_at'] == null ? undefined : json['verify_at'],
138
+ 'sequenceIndex': json['sequence_index'] == null ? undefined : json['sequence_index'],
139
+ };
140
+ }
141
+
142
+ export function TxToJSON(value?: Tx | null): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+ return {
147
+
148
+ 'hash': value['hash'],
149
+ 'type': value['type'],
150
+ 'info': value['info'],
151
+ 'event_info': value['eventInfo'],
152
+ 'status': value['status'],
153
+ 'transaction_index': value['transactionIndex'],
154
+ 'l1_address': value['l1Address'],
155
+ 'account_index': value['accountIndex'],
156
+ 'nonce': value['nonce'],
157
+ 'expire_at': value['expireAt'],
158
+ 'block_height': value['blockHeight'],
159
+ 'created_at': value['createdAt'],
160
+ 'verify_at': value['verifyAt'],
161
+ 'sequence_index': value['sequenceIndex'],
162
+ };
163
+ }
164
+
@@ -0,0 +1,76 @@
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 TxHash
20
+ */
21
+ export interface TxHash {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TxHash
26
+ */
27
+ code?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TxHash
32
+ */
33
+ message?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof TxHash
38
+ */
39
+ txHash?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the TxHash interface.
44
+ */
45
+ export function instanceOfTxHash(value: object): value is TxHash {
46
+ return true;
47
+ }
48
+
49
+ export function TxHashFromJSON(json: any): TxHash {
50
+ return TxHashFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function TxHashFromJSONTyped(json: any, ignoreDiscriminator: boolean): TxHash {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'code': json['code'] == null ? undefined : json['code'],
60
+ 'message': json['message'] == null ? undefined : json['message'],
61
+ 'txHash': json['tx_hash'] == null ? undefined : json['tx_hash'],
62
+ };
63
+ }
64
+
65
+ export function TxHashToJSON(value?: TxHash | null): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+
71
+ 'code': value['code'],
72
+ 'message': value['message'],
73
+ 'tx_hash': value['txHash'],
74
+ };
75
+ }
76
+