zklighter-perps 1.0.82 → 1.0.83

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.
@@ -60,9 +60,20 @@ export interface PositionFunding {
60
60
  * @type {string}
61
61
  * @memberof PositionFunding
62
62
  */
63
- position_side: string;
63
+ position_side: PositionFundingPositionSideEnum;
64
64
  }
65
65
 
66
+
67
+ /**
68
+ * @export
69
+ */
70
+ export const PositionFundingPositionSideEnum = {
71
+ Long: 'long',
72
+ Short: 'short'
73
+ } as const;
74
+ export type PositionFundingPositionSideEnum = typeof PositionFundingPositionSideEnum[keyof typeof PositionFundingPositionSideEnum];
75
+
76
+
66
77
  /**
67
78
  * Check if a given object implements the PositionFunding interface.
68
79
  */
package/openapi.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "title": "",
5
5
  "version": ""
6
6
  },
7
- "host": "testnet.zklighter.elliot.ai",
7
+ "host": "mainnet.zklighter.elliot.ai",
8
8
  "schemes": [
9
9
  "https"
10
10
  ],
@@ -4365,7 +4365,11 @@
4365
4365
  },
4366
4366
  "position_side": {
4367
4367
  "type": "string",
4368
- "example": "1"
4368
+ "example": "long",
4369
+ "enum": [
4370
+ "long",
4371
+ "short"
4372
+ ]
4369
4373
  }
4370
4374
  },
4371
4375
  "title": "PositionFunding",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zklighter-perps",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "zkLighter Perps SDK",
5
5
  "main": "index.ts",
6
6
  "directories": {
package/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://testnet.zklighter.elliot.ai".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://mainnet.zklighter.elliot.ai".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path