zklighter-perps 1.0.35 → 1.0.37

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.
@@ -30,7 +30,7 @@ export interface AccountPosition {
30
30
  * @type {number}
31
31
  * @memberof AccountPosition
32
32
  */
33
- ooc: number;
33
+ open_order_count: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -80,7 +80,7 @@ export interface AccountPosition {
80
80
  */
81
81
  export function instanceOfAccountPosition(value: object): value is AccountPosition {
82
82
  if (!('market_id' in value) || value['market_id'] === undefined) return false;
83
- if (!('ooc' in value) || value['ooc'] === undefined) return false;
83
+ if (!('open_order_count' in value) || value['open_order_count'] === undefined) return false;
84
84
  if (!('symbol' in value) || value['symbol'] === undefined) return false;
85
85
  if (!('sign' in value) || value['sign'] === undefined) return false;
86
86
  if (!('position' in value) || value['position'] === undefined) return false;
@@ -102,7 +102,7 @@ export function AccountPositionFromJSONTyped(json: any, ignoreDiscriminator: boo
102
102
  return {
103
103
 
104
104
  'market_id': json['market_id'],
105
- 'ooc': json['ooc'],
105
+ 'open_order_count': json['open_order_count'],
106
106
  'symbol': json['symbol'],
107
107
  'sign': json['sign'],
108
108
  'position': json['position'],
@@ -120,7 +120,7 @@ export function AccountPositionToJSON(value?: AccountPosition | null): any {
120
120
  return {
121
121
 
122
122
  'market_id': value['market_id'],
123
- 'ooc': value['ooc'],
123
+ 'open_order_count': value['open_order_count'],
124
124
  'symbol': value['symbol'],
125
125
  'sign': value['sign'],
126
126
  'position': value['position'],
@@ -37,6 +37,18 @@ export interface Liquidation {
37
37
  * @memberof Liquidation
38
38
  */
39
39
  liquidation_type: number;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Liquidation
44
+ */
45
+ portfolio_value: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof Liquidation
50
+ */
51
+ margin_requirement: string;
40
52
  }
41
53
 
42
54
  /**
@@ -46,6 +58,8 @@ export function instanceOfLiquidation(value: object): value is Liquidation {
46
58
  if (!('liquidation_id' in value) || value['liquidation_id'] === undefined) return false;
47
59
  if (!('account_index' in value) || value['account_index'] === undefined) return false;
48
60
  if (!('liquidation_type' in value) || value['liquidation_type'] === undefined) return false;
61
+ if (!('portfolio_value' in value) || value['portfolio_value'] === undefined) return false;
62
+ if (!('margin_requirement' in value) || value['margin_requirement'] === undefined) return false;
49
63
  return true;
50
64
  }
51
65
 
@@ -62,6 +76,8 @@ export function LiquidationFromJSONTyped(json: any, ignoreDiscriminator: boolean
62
76
  'liquidation_id': json['liquidation_id'],
63
77
  'account_index': json['account_index'],
64
78
  'liquidation_type': json['liquidation_type'],
79
+ 'portfolio_value': json['portfolio_value'],
80
+ 'margin_requirement': json['margin_requirement'],
65
81
  };
66
82
  }
67
83
 
@@ -74,6 +90,8 @@ export function LiquidationToJSON(value?: Liquidation | null): any {
74
90
  'liquidation_id': value['liquidation_id'],
75
91
  'account_index': value['account_index'],
76
92
  'liquidation_type': value['liquidation_type'],
93
+ 'portfolio_value': value['portfolio_value'],
94
+ 'margin_requirement': value['margin_requirement'],
77
95
  };
78
96
  }
79
97
 
@@ -24,42 +24,42 @@ export interface PublicPoolInfo {
24
24
  * @type {number}
25
25
  * @memberof PublicPoolInfo
26
26
  */
27
- ppi_s: number;
27
+ status: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof PublicPoolInfo
32
32
  */
33
- ppi_of: number;
33
+ operator_fee: number;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof PublicPoolInfo
38
38
  */
39
- ppi_mosr: number;
39
+ min_operator_share_rate: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
43
  * @memberof PublicPoolInfo
44
44
  */
45
- ppi_tsa: number;
45
+ total_shares: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
49
  * @memberof PublicPoolInfo
50
50
  */
51
- ppi_os: number;
51
+ operator_shares: number;
52
52
  }
53
53
 
54
54
  /**
55
55
  * Check if a given object implements the PublicPoolInfo interface.
56
56
  */
57
57
  export function instanceOfPublicPoolInfo(value: object): value is PublicPoolInfo {
58
- if (!('ppi_s' in value) || value['ppi_s'] === undefined) return false;
59
- if (!('ppi_of' in value) || value['ppi_of'] === undefined) return false;
60
- if (!('ppi_mosr' in value) || value['ppi_mosr'] === undefined) return false;
61
- if (!('ppi_tsa' in value) || value['ppi_tsa'] === undefined) return false;
62
- if (!('ppi_os' in value) || value['ppi_os'] === undefined) return false;
58
+ if (!('status' in value) || value['status'] === undefined) return false;
59
+ if (!('operator_fee' in value) || value['operator_fee'] === undefined) return false;
60
+ if (!('min_operator_share_rate' in value) || value['min_operator_share_rate'] === undefined) return false;
61
+ if (!('total_shares' in value) || value['total_shares'] === undefined) return false;
62
+ if (!('operator_shares' in value) || value['operator_shares'] === undefined) return false;
63
63
  return true;
64
64
  }
65
65
 
@@ -73,11 +73,11 @@ export function PublicPoolInfoFromJSONTyped(json: any, ignoreDiscriminator: bool
73
73
  }
74
74
  return {
75
75
 
76
- 'ppi_s': json['ppi_s'],
77
- 'ppi_of': json['ppi_of'],
78
- 'ppi_mosr': json['ppi_mosr'],
79
- 'ppi_tsa': json['ppi_tsa'],
80
- 'ppi_os': json['ppi_os'],
76
+ 'status': json['status'],
77
+ 'operator_fee': json['operator_fee'],
78
+ 'min_operator_share_rate': json['min_operator_share_rate'],
79
+ 'total_shares': json['total_shares'],
80
+ 'operator_shares': json['operator_shares'],
81
81
  };
82
82
  }
83
83
 
@@ -87,11 +87,11 @@ export function PublicPoolInfoToJSON(value?: PublicPoolInfo | null): any {
87
87
  }
88
88
  return {
89
89
 
90
- 'ppi_s': value['ppi_s'],
91
- 'ppi_of': value['ppi_of'],
92
- 'ppi_mosr': value['ppi_mosr'],
93
- 'ppi_tsa': value['ppi_tsa'],
94
- 'ppi_os': value['ppi_os'],
90
+ 'status': value['status'],
91
+ 'operator_fee': value['operator_fee'],
92
+ 'min_operator_share_rate': value['min_operator_share_rate'],
93
+ 'total_shares': value['total_shares'],
94
+ 'operator_shares': value['operator_shares'],
95
95
  };
96
96
  }
97
97
 
package/openapi.json CHANGED
@@ -1914,7 +1914,7 @@
1914
1914
  "format": "uint8",
1915
1915
  "example": "1"
1916
1916
  },
1917
- "ooc": {
1917
+ "open_order_count": {
1918
1918
  "type": "integer",
1919
1919
  "format": "int64",
1920
1920
  "example": "3"
@@ -1952,7 +1952,7 @@
1952
1952
  "title": "AccountPosition",
1953
1953
  "required": [
1954
1954
  "market_id",
1955
- "ooc",
1955
+ "open_order_count",
1956
1956
  "symbol",
1957
1957
  "sign",
1958
1958
  "position",
@@ -2070,11 +2070,11 @@
2070
2070
  },
2071
2071
  "priority_operations": {
2072
2072
  "type": "integer",
2073
- "format": "int64"
2073
+ "format": "int32"
2074
2074
  },
2075
2075
  "on_chain_l2_operations": {
2076
2076
  "type": "integer",
2077
- "format": "int64"
2077
+ "format": "int32"
2078
2078
  },
2079
2079
  "pending_on_chain_operations_pub_data": {
2080
2080
  "type": "string"
@@ -2763,13 +2763,23 @@
2763
2763
  "type": "integer",
2764
2764
  "format": "uint8",
2765
2765
  "example": "1"
2766
+ },
2767
+ "portfolio_value": {
2768
+ "type": "string",
2769
+ "example": "1"
2770
+ },
2771
+ "margin_requirement": {
2772
+ "type": "string",
2773
+ "example": "1"
2766
2774
  }
2767
2775
  },
2768
2776
  "title": "Liquidation",
2769
2777
  "required": [
2770
2778
  "liquidation_id",
2771
2779
  "account_index",
2772
- "liquidation_type"
2780
+ "liquidation_type",
2781
+ "portfolio_value",
2782
+ "margin_requirement"
2773
2783
  ]
2774
2784
  },
2775
2785
  "MarketInfo": {
@@ -2920,7 +2930,7 @@
2920
2930
  },
2921
2931
  "base_price": {
2922
2932
  "type": "integer",
2923
- "format": "int64",
2933
+ "format": "int32",
2924
2934
  "example": "3024"
2925
2935
  },
2926
2936
  "nonce": {
@@ -3048,17 +3058,17 @@
3048
3058
  },
3049
3059
  "supported_size_decimals": {
3050
3060
  "type": "integer",
3051
- "format": "int64",
3061
+ "format": "uint8",
3052
3062
  "example": "4"
3053
3063
  },
3054
3064
  "supported_price_decimals": {
3055
3065
  "type": "integer",
3056
- "format": "int64",
3066
+ "format": "uint8",
3057
3067
  "example": "4"
3058
3068
  },
3059
3069
  "supported_quote_decimals": {
3060
3070
  "type": "integer",
3061
- "format": "int64",
3071
+ "format": "uint8",
3062
3072
  "example": "4"
3063
3073
  }
3064
3074
  },
@@ -3156,17 +3166,17 @@
3156
3166
  },
3157
3167
  "supported_size_decimals": {
3158
3168
  "type": "integer",
3159
- "format": "int64",
3169
+ "format": "uint8",
3160
3170
  "example": "4"
3161
3171
  },
3162
3172
  "supported_price_decimals": {
3163
3173
  "type": "integer",
3164
- "format": "int64",
3174
+ "format": "uint8",
3165
3175
  "example": "4"
3166
3176
  },
3167
3177
  "supported_quote_decimals": {
3168
3178
  "type": "integer",
3169
- "format": "int64",
3179
+ "format": "uint8",
3170
3180
  "example": "4"
3171
3181
  },
3172
3182
  "size_decimals": {
@@ -3578,27 +3588,27 @@
3578
3588
  "PublicPoolInfo": {
3579
3589
  "type": "object",
3580
3590
  "properties": {
3581
- "ppi_s": {
3591
+ "status": {
3582
3592
  "type": "integer",
3583
3593
  "format": "uint8",
3584
3594
  "example": "0"
3585
3595
  },
3586
- "ppi_of": {
3596
+ "operator_fee": {
3587
3597
  "type": "integer",
3588
3598
  "format": "int64",
3589
3599
  "example": "100"
3590
3600
  },
3591
- "ppi_mosr": {
3601
+ "min_operator_share_rate": {
3592
3602
  "type": "integer",
3593
3603
  "format": "int64",
3594
3604
  "example": "200"
3595
3605
  },
3596
- "ppi_tsa": {
3606
+ "total_shares": {
3597
3607
  "type": "integer",
3598
3608
  "format": "int64",
3599
3609
  "example": "100000"
3600
3610
  },
3601
- "ppi_os": {
3611
+ "operator_shares": {
3602
3612
  "type": "integer",
3603
3613
  "format": "int64",
3604
3614
  "example": "20000"
@@ -3606,11 +3616,11 @@
3606
3616
  },
3607
3617
  "title": "PublicPoolInfo",
3608
3618
  "required": [
3609
- "ppi_s",
3610
- "ppi_of",
3611
- "ppi_mosr",
3612
- "ppi_tsa",
3613
- "ppi_os"
3619
+ "status",
3620
+ "operator_fee",
3621
+ "min_operator_share_rate",
3622
+ "total_shares",
3623
+ "operator_shares"
3614
3624
  ]
3615
3625
  },
3616
3626
  "PublicPoolShare": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {