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.
- package/.circleci/config.yml +86 -0
- package/.openapi-generator/FILES +95 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/AccountApi.ts +454 -0
- package/apis/BlockApi.ts +178 -0
- package/apis/CandlestickApi.ts +231 -0
- package/apis/InfoApi.ts +197 -0
- package/apis/OrderApi.ts +607 -0
- package/apis/RelayerApi.ts +95 -0
- package/apis/RootApi.ts +56 -0
- package/apis/TransactionApi.ts +608 -0
- package/apis/WsApi.ts +82 -0
- package/apis/index.ts +11 -0
- package/config.yaml +5 -0
- package/index.ts +5 -0
- package/models/AccountMarketStats.ts +100 -0
- package/models/AccountPnL.ts +91 -0
- package/models/AccountPosition.ts +140 -0
- package/models/AccountStats.ts +92 -0
- package/models/Block.ts +163 -0
- package/models/Blocks.ts +91 -0
- package/models/Candlestick.ts +108 -0
- package/models/Candlesticks.ts +91 -0
- package/models/ContractAddress.ts +68 -0
- package/models/CurrentHeight.ts +76 -0
- package/models/Cursor.ts +60 -0
- package/models/DetailedAccount.ts +169 -0
- package/models/DetailedAccounts.ts +91 -0
- package/models/EnrichedTx.ts +204 -0
- package/models/ExchangeStats.ts +107 -0
- package/models/Funding.ts +84 -0
- package/models/Fundings.ts +91 -0
- package/models/L1ProviderInfo.ts +84 -0
- package/models/Layer1BasicInfo.ts +143 -0
- package/models/Layer2BasicInfo.ts +92 -0
- package/models/MainAccount.ts +92 -0
- package/models/MainAccounts.ts +91 -0
- package/models/MarketInfo.ts +140 -0
- package/models/MarketSig.ts +100 -0
- package/models/NextNonce.ts +76 -0
- package/models/Order.ts +209 -0
- package/models/OrderBook.ts +143 -0
- package/models/OrderBookDepth.ts +99 -0
- package/models/OrderBookDetail.ts +287 -0
- package/models/OrderBookDetails.ts +83 -0
- package/models/OrderBookOrders.ts +107 -0
- package/models/OrderBookStats.ts +100 -0
- package/models/OrderBooks.ts +83 -0
- package/models/Orders.ts +91 -0
- package/models/Permission.ts +76 -0
- package/models/PnLEntry.ts +68 -0
- package/models/PriceLevel.ts +68 -0
- package/models/ReqDoFaucet.ts +60 -0
- package/models/ReqGetAccount.ts +79 -0
- package/models/ReqGetAccountActiveOrders.ts +76 -0
- package/models/ReqGetAccountByL1Address.ts +60 -0
- package/models/ReqGetAccountInactiveOrders.ts +111 -0
- package/models/ReqGetAccountOrders.ts +84 -0
- package/models/ReqGetAccountPendingTxs.ts +87 -0
- package/models/ReqGetAccountPnL.ts +124 -0
- package/models/ReqGetAccountTxs.ts +103 -0
- package/models/ReqGetBlock.ts +79 -0
- package/models/ReqGetBlockTxs.ts +79 -0
- package/models/ReqGetByAccount.ts +79 -0
- package/models/ReqGetCandlesticks.ts +107 -0
- package/models/ReqGetFundings.ts +102 -0
- package/models/ReqGetL1Tx.ts +60 -0
- package/models/ReqGetMarketSig.ts +76 -0
- package/models/ReqGetNextNonce.ts +68 -0
- package/models/ReqGetOrderBookDetails.ts +79 -0
- package/models/ReqGetOrderBookOrders.ts +68 -0
- package/models/ReqGetOrderBooks.ts +79 -0
- package/models/ReqGetPermission.ts +87 -0
- package/models/ReqGetRangeWithCursor.ts +68 -0
- package/models/ReqGetRangeWithIndex.ts +68 -0
- package/models/ReqGetRangeWithIndexSortable.ts +87 -0
- package/models/ReqGetRecentTrades.ts +68 -0
- package/models/ReqGetRollbacks.ts +76 -0
- package/models/ReqGetSubAccount.ts +87 -0
- package/models/ReqGetTrades.ts +104 -0
- package/models/ReqGetTx.ts +79 -0
- package/models/ReqSearch.ts +60 -0
- package/models/ResultCode.ts +68 -0
- package/models/Rollback.ts +84 -0
- package/models/Rollbacks.ts +91 -0
- package/models/Search.ts +76 -0
- package/models/SignBody.ts +76 -0
- package/models/SimpleOrder.ts +100 -0
- package/models/Status.ts +68 -0
- package/models/SubAccount.ts +116 -0
- package/models/SubAccounts.ts +107 -0
- package/models/Trade.ts +148 -0
- package/models/Trades.ts +83 -0
- package/models/Tx.ts +164 -0
- package/models/TxHash.ts +76 -0
- package/models/Txs.ts +83 -0
- package/models/ValidatorInfo.ts +68 -0
- package/models/index.ts +84 -0
- package/openapi-generator-cli.jar +0 -0
- package/openapi.json +3934 -0
- package/package.json +23 -0
- 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
|
+
|
package/models/index.ts
ADDED
|
@@ -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
|