lighter-ts-sdk 1.0.0 → 1.0.1

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 (2) hide show
  1. package/README.md +9 -9
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -34,7 +34,7 @@ import { SignerClient, ApiClient } from 'lighter-ts-sdk';
34
34
  ### 1. Basic API Usage
35
35
 
36
36
  ```typescript
37
- import { ApiClient, AccountApi } from 'lighter-protocol-sdk';
37
+ import { ApiClient, AccountApi } from 'lighter-ts-sdk';
38
38
 
39
39
  async function getAccountInfo() {
40
40
  const client = new ApiClient({ host: 'https://mainnet.zklighter.elliot.ai' });
@@ -50,7 +50,7 @@ getAccountInfo().catch(console.error);
50
50
  ### 2. Create Market Order
51
51
 
52
52
  ```typescript
53
- import { SignerClient } from 'lighter-protocol-sdk';
53
+ import { SignerClient } from 'lighter-ts-sdk';
54
54
 
55
55
  async function createMarketOrder() {
56
56
  const client = new SignerClient({
@@ -85,7 +85,7 @@ createMarketOrder().catch(console.error);
85
85
  ### 3. Create Limit Order
86
86
 
87
87
  ```typescript
88
- import { SignerClient } from 'lighter-protocol-sdk';
88
+ import { SignerClient } from 'lighter-ts-sdk';
89
89
 
90
90
  async function createLimitOrder() {
91
91
  const client = new SignerClient({
@@ -121,7 +121,7 @@ createLimitOrder().catch(console.error);
121
121
  ### 4. Cancel Order
122
122
 
123
123
  ```typescript
124
- import { SignerClient } from 'lighter-protocol-sdk';
124
+ import { SignerClient } from 'lighter-ts-sdk';
125
125
 
126
126
  async function cancelOrder() {
127
127
  const client = new SignerClient({
@@ -153,7 +153,7 @@ cancelOrder().catch(console.error);
153
153
  ### 5. Transfer USDC
154
154
 
155
155
  ```typescript
156
- import { SignerClient } from 'lighter-protocol-sdk';
156
+ import { SignerClient } from 'lighter-ts-sdk';
157
157
 
158
158
  async function transferUSDC() {
159
159
  const client = new SignerClient({
@@ -187,7 +187,7 @@ transferUSDC().catch(console.error);
187
187
  ### 6. Update Leverage
188
188
 
189
189
  ```typescript
190
- import { SignerClient } from 'lighter-protocol-sdk';
190
+ import { SignerClient } from 'lighter-ts-sdk';
191
191
 
192
192
  async function updateLeverage() {
193
193
  const client = new SignerClient({
@@ -220,7 +220,7 @@ updateLeverage().catch(console.error);
220
220
  ### 7. Cancel All Orders
221
221
 
222
222
  ```typescript
223
- import { SignerClient } from 'lighter-protocol-sdk';
223
+ import { SignerClient } from 'lighter-ts-sdk';
224
224
 
225
225
  async function cancelAllOrders() {
226
226
  const client = new SignerClient({
@@ -252,7 +252,7 @@ cancelAllOrders().catch(console.error);
252
252
  ### 8. WebSocket Real-time Data
253
253
 
254
254
  ```typescript
255
- import { WsClient } from 'lighter-protocol-sdk';
255
+ import { WsClient } from 'lighter-ts-sdk';
256
256
 
257
257
  async function connectWebSocket() {
258
258
  const wsClient = new WsClient({
@@ -433,7 +433,7 @@ Check the `examples/` directory for comprehensive usage examples:
433
433
  - Comprehensive documentation and examples
434
434
  - TypeScript support with full type definitions
435
435
 
436
- **Installation**: `npm install lighter-protocol-sdk`
436
+ **Installation**: `npm install lighter-ts-sdk`
437
437
 
438
438
  **Documentation**: Complete API reference and getting started guides included
439
439
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lighter-ts-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "TypeScript SDK for Lighter Protocol Unofficial - Trade perpetuals with unmatched efficiency and fairness",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",
@@ -38,10 +38,10 @@
38
38
  "license": "MIT",
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "https://github.com/bvvvp009/lighter-ts-sdk.git"
41
+ "url": "https://github.com/bvvvp009/lighter-ts.git"
42
42
  },
43
43
  "bugs": {
44
- "url": "https://github.com/bvvvp009/lighter-ts-sdk/issues"
44
+ "url": "https://github.com/bvvvp009/lighter-ts/issues"
45
45
  },
46
46
  "homepage": "https://lighter.xyz",
47
47
  "dependencies": {