@mobula_labs/types 0.1.0 → 0.1.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 +14 -14
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @mobula/types
1
+ # @mobula_labs/types
2
2
 
3
3
  Centralized TypeScript types and Zod schemas for Mobula SDK and applications.
4
4
 
@@ -20,11 +20,11 @@ This package provides a comprehensive set of TypeScript types and Zod schemas fo
20
20
  ## Installation
21
21
 
22
22
  ```bash
23
- npm install @mobula/types zod
23
+ npm install @mobula_labs/types zod
24
24
  # or
25
- bun add @mobula/types zod
25
+ bun add @mobula_labs/types zod
26
26
  # or
27
- pnpm add @mobula/types zod
27
+ pnpm add @mobula_labs/types zod
28
28
  ```
29
29
 
30
30
  > **Note:** `zod` (^3.0.0) is a required peer dependency for runtime validation.
@@ -32,7 +32,7 @@ pnpm add @mobula/types zod
32
32
  ## Quick Start
33
33
 
34
34
  ```typescript
35
- import { MarketDataResponseSchema, TokenDetailsResponseSchema } from '@mobula/types';
35
+ import { MarketDataResponseSchema, TokenDetailsResponseSchema } from '@mobula_labs/types';
36
36
  import type { z } from 'zod';
37
37
 
38
38
  // Fetch and validate market data
@@ -56,13 +56,13 @@ import {
56
56
  AssetDetailsSchema,
57
57
  MarketDataResponseSchema,
58
58
  TokenDetailsResponseSchema
59
- } from '@mobula/types';
59
+ } from '@mobula_labs/types';
60
60
  ```
61
61
 
62
62
  ### Type Inference from Schemas
63
63
 
64
64
  ```typescript
65
- import { AssetDetailsSchema } from '@mobula/types';
65
+ import { AssetDetailsSchema } from '@mobula_labs/types';
66
66
  import type { z } from 'zod';
67
67
 
68
68
  // Infer TypeScript type from Zod schema
@@ -104,7 +104,7 @@ import {
104
104
  MetadataSchema,
105
105
  MetadataTrendingsSchema,
106
106
  MetadataNewsSchema,
107
- } from '@mobula/types';
107
+ } from '@mobula_labs/types';
108
108
  ```
109
109
 
110
110
  #### V2 API Schemas
@@ -131,7 +131,7 @@ import {
131
131
  // Wallets
132
132
  WalletPositionsSchema,
133
133
  WalletTokenBalancesSchema,
134
- } from '@mobula/types';
134
+ } from '@mobula_labs/types';
135
135
  ```
136
136
 
137
137
  ### WebSocket Types
@@ -144,7 +144,7 @@ import {
144
144
  OhlcvPayloadSchema,
145
145
  PositionPayloadSchema,
146
146
  FeedSchema,
147
- } from '@mobula/types';
147
+ } from '@mobula_labs/types';
148
148
 
149
149
  // Example: Validate WebSocket message
150
150
  const message = await ws.receive();
@@ -161,7 +161,7 @@ import {
161
161
  zodUtils,
162
162
  extractZodSchemaKeys,
163
163
  extractAllZodKeys,
164
- } from '@mobula/types';
164
+ } from '@mobula_labs/types';
165
165
 
166
166
  // Use bigint utilities
167
167
  const absoluteValue = bigintAbs(-100n); // 100n
@@ -246,10 +246,10 @@ The package supports multiple module formats with proper exports configuration:
246
246
 
247
247
  ```typescript
248
248
  // ESM (Recommended)
249
- import { MarketDataSchema } from '@mobula/types';
249
+ import { MarketDataSchema } from '@mobula_labs/types';
250
250
 
251
251
  // CommonJS
252
- const { MarketDataSchema } = require('@mobula/types');
252
+ const { MarketDataSchema } = require('@mobula_labs/types');
253
253
 
254
254
  // TypeScript
255
255
  import type { z } from 'zod';
@@ -263,7 +263,7 @@ import {
263
263
  MarketDataResponseSchema,
264
264
  TokenDetailsResponseSchema,
265
265
  WalletPortfolioSchema
266
- } from '@mobula/types';
266
+ } from '@mobula_labs/types';
267
267
  import type { z } from 'zod';
268
268
 
269
269
  // Define types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mobula_labs/types",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Centralized TypeScript types and schemas for Mobula SDK and applications.",
5
5
  "author": "Mobula",
6
6
  "license": "MIT",
@@ -56,4 +56,4 @@
56
56
  "typescript": "*",
57
57
  "vitest": "*"
58
58
  }
59
- }
59
+ }