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
package/models/Txs.ts ADDED
@@ -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 { Tx } from './Tx';
17
+ import {
18
+ TxFromJSON,
19
+ TxFromJSONTyped,
20
+ TxToJSON,
21
+ } from './Tx';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Txs
27
+ */
28
+ export interface Txs {
29
+ /**
30
+ *
31
+ * @type {number}
32
+ * @memberof Txs
33
+ */
34
+ code?: number;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Txs
39
+ */
40
+ message?: string;
41
+ /**
42
+ *
43
+ * @type {Array<Tx>}
44
+ * @memberof Txs
45
+ */
46
+ txs?: Array<Tx>;
47
+ }
48
+
49
+ /**
50
+ * Check if a given object implements the Txs interface.
51
+ */
52
+ export function instanceOfTxs(value: object): value is Txs {
53
+ return true;
54
+ }
55
+
56
+ export function TxsFromJSON(json: any): Txs {
57
+ return TxsFromJSONTyped(json, false);
58
+ }
59
+
60
+ export function TxsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Txs {
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
+ 'txs': json['txs'] == null ? undefined : ((json['txs'] as Array<any>).map(TxFromJSON)),
69
+ };
70
+ }
71
+
72
+ export function TxsToJSON(value?: Txs | null): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+
78
+ 'code': value['code'],
79
+ 'message': value['message'],
80
+ 'txs': value['txs'] == null ? undefined : ((value['txs'] as Array<any>).map(TxToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,68 @@
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 ValidatorInfo
20
+ */
21
+ export interface ValidatorInfo {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ValidatorInfo
26
+ */
27
+ address?: string;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof ValidatorInfo
32
+ */
33
+ isActive?: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ValidatorInfo interface.
38
+ */
39
+ export function instanceOfValidatorInfo(value: object): value is ValidatorInfo {
40
+ return true;
41
+ }
42
+
43
+ export function ValidatorInfoFromJSON(json: any): ValidatorInfo {
44
+ return ValidatorInfoFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ValidatorInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidatorInfo {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'address': json['address'] == null ? undefined : json['address'],
54
+ 'isActive': json['is_active'] == null ? undefined : json['is_active'],
55
+ };
56
+ }
57
+
58
+ export function ValidatorInfoToJSON(value?: ValidatorInfo | null): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+
64
+ 'address': value['address'],
65
+ 'is_active': value['isActive'],
66
+ };
67
+ }
68
+
@@ -0,0 +1,84 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export * from './AccountMarketStats';
4
+ export * from './AccountPnL';
5
+ export * from './AccountPosition';
6
+ export * from './AccountStats';
7
+ export * from './Block';
8
+ export * from './Blocks';
9
+ export * from './Candlestick';
10
+ export * from './Candlesticks';
11
+ export * from './ContractAddress';
12
+ export * from './CurrentHeight';
13
+ export * from './Cursor';
14
+ export * from './DetailedAccount';
15
+ export * from './DetailedAccounts';
16
+ export * from './EnrichedTx';
17
+ export * from './ExchangeStats';
18
+ export * from './Funding';
19
+ export * from './Fundings';
20
+ export * from './L1ProviderInfo';
21
+ export * from './Layer1BasicInfo';
22
+ export * from './Layer2BasicInfo';
23
+ export * from './MainAccount';
24
+ export * from './MainAccounts';
25
+ export * from './MarketInfo';
26
+ export * from './MarketSig';
27
+ export * from './NextNonce';
28
+ export * from './Order';
29
+ export * from './OrderBook';
30
+ export * from './OrderBookDepth';
31
+ export * from './OrderBookDetail';
32
+ export * from './OrderBookDetails';
33
+ export * from './OrderBookOrders';
34
+ export * from './OrderBookStats';
35
+ export * from './OrderBooks';
36
+ export * from './Orders';
37
+ export * from './Permission';
38
+ export * from './PnLEntry';
39
+ export * from './PriceLevel';
40
+ export * from './ReqDoFaucet';
41
+ export * from './ReqGetAccount';
42
+ export * from './ReqGetAccountActiveOrders';
43
+ export * from './ReqGetAccountByL1Address';
44
+ export * from './ReqGetAccountInactiveOrders';
45
+ export * from './ReqGetAccountOrders';
46
+ export * from './ReqGetAccountPendingTxs';
47
+ export * from './ReqGetAccountPnL';
48
+ export * from './ReqGetAccountTxs';
49
+ export * from './ReqGetBlock';
50
+ export * from './ReqGetBlockTxs';
51
+ export * from './ReqGetByAccount';
52
+ export * from './ReqGetCandlesticks';
53
+ export * from './ReqGetFundings';
54
+ export * from './ReqGetL1Tx';
55
+ export * from './ReqGetMarketSig';
56
+ export * from './ReqGetNextNonce';
57
+ export * from './ReqGetOrderBookDetails';
58
+ export * from './ReqGetOrderBookOrders';
59
+ export * from './ReqGetOrderBooks';
60
+ export * from './ReqGetPermission';
61
+ export * from './ReqGetRangeWithCursor';
62
+ export * from './ReqGetRangeWithIndex';
63
+ export * from './ReqGetRangeWithIndexSortable';
64
+ export * from './ReqGetRecentTrades';
65
+ export * from './ReqGetRollbacks';
66
+ export * from './ReqGetSubAccount';
67
+ export * from './ReqGetTrades';
68
+ export * from './ReqGetTx';
69
+ export * from './ReqSearch';
70
+ export * from './ResultCode';
71
+ export * from './Rollback';
72
+ export * from './Rollbacks';
73
+ export * from './Search';
74
+ export * from './SignBody';
75
+ export * from './SimpleOrder';
76
+ export * from './Status';
77
+ export * from './SubAccount';
78
+ export * from './SubAccounts';
79
+ export * from './Trade';
80
+ export * from './Trades';
81
+ export * from './Tx';
82
+ export * from './TxHash';
83
+ export * from './Txs';
84
+ export * from './ValidatorInfo';
Binary file