@basedone/core 0.2.7 → 0.2.8

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/dist/react.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
  import { SpotMeta } from '@nktkas/hyperliquid';
4
- import { A as AllPerpsMeta, I as InstrumentClient } from './client-CgmiTuEX.mjs';
4
+ import { A as AllPerpsMeta, I as InstrumentClient } from './client-DMVXX1Gw.mjs';
5
5
 
6
6
  interface InstrumentsProviderProps {
7
7
  spotMeta: SpotMeta;
package/dist/react.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
  import { SpotMeta } from '@nktkas/hyperliquid';
4
- import { A as AllPerpsMeta, I as InstrumentClient } from './client-CgmiTuEX.js';
4
+ import { A as AllPerpsMeta, I as InstrumentClient } from './client-DMVXX1Gw.js';
5
5
 
6
6
  interface InstrumentsProviderProps {
7
7
  spotMeta: SpotMeta;
package/dist/react.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { InstrumentClient } from './chunk-VBC6EQ7Q.mjs';
2
- import './chunk-4UEJOM6W.mjs';
3
2
  import { createContext, useMemo, useContext } from 'react';
4
3
  import { jsx } from 'react/jsx-runtime';
5
4
 
@@ -9,6 +9,8 @@ import {
9
9
  PaymentMethod,
10
10
  PaymentStatus,
11
11
  MerchantStatus,
12
+ MerchantBusinessType,
13
+ MerchantReturnPolicyType,
12
14
  ShipmentStatus,
13
15
  ReturnStatus,
14
16
  ReviewStatus,
@@ -127,6 +129,22 @@ export interface ProductVariant extends BaseEntity {
127
129
  sortOrder: number;
128
130
  }
129
131
 
132
+ /**
133
+ * Social links for merchant profile
134
+ */
135
+ export interface MerchantSocialLinks {
136
+ /** Twitter/X profile URL */
137
+ twitter?: string | null;
138
+ /** Instagram profile URL */
139
+ instagram?: string | null;
140
+ /** Facebook page URL */
141
+ facebook?: string | null;
142
+ /** Discord server invite URL */
143
+ discord?: string | null;
144
+ /** Telegram channel/group URL */
145
+ telegram?: string | null;
146
+ }
147
+
130
148
  /**
131
149
  * Merchant entity
132
150
  */
@@ -141,6 +159,44 @@ export interface Merchant extends BaseEntity {
141
159
  payoutAddress: string;
142
160
  /** Merchant status */
143
161
  status: MerchantStatus;
162
+
163
+ // Contact information
164
+ /** Contact email for notifications and customer inquiries */
165
+ email?: string | null;
166
+ /** Contact phone number */
167
+ phone?: string | null;
168
+ /** Store website URL */
169
+ website?: string | null;
170
+
171
+ // Business information
172
+ /** Business type (individual, company, etc.) */
173
+ businessType?: MerchantBusinessType;
174
+
175
+ // Branding
176
+ /** Store logo/avatar URL */
177
+ logoUrl?: string | null;
178
+ /** Store banner image URL */
179
+ bannerUrl?: string | null;
180
+
181
+ // Social links
182
+ /** Social media links */
183
+ socialLinks?: MerchantSocialLinks | null;
184
+
185
+ // Return policy
186
+ /** Return policy type */
187
+ returnPolicyType?: MerchantReturnPolicyType;
188
+ /** Custom return policy details/text */
189
+ returnPolicyDetails?: string | null;
190
+ /** Return window in days (e.g., 30) */
191
+ returnWindowDays?: number | null;
192
+
193
+ // Location
194
+ /** ISO 2-letter country code (for tax/shipping) */
195
+ country?: string | null;
196
+ /** City name */
197
+ city?: string | null;
198
+ /** Street address */
199
+ addressLine1?: string | null;
144
200
  }
145
201
 
146
202
  /**
@@ -70,6 +70,38 @@ export enum MerchantStatus {
70
70
  PENDING = "PENDING",
71
71
  }
72
72
 
73
+ /**
74
+ * Merchant business type enum
75
+ */
76
+ export enum MerchantBusinessType {
77
+ /** Individual seller */
78
+ INDIVIDUAL = "INDIVIDUAL",
79
+ /** Registered company */
80
+ COMPANY = "COMPANY",
81
+ /** Partnership */
82
+ PARTNERSHIP = "PARTNERSHIP",
83
+ /** Non-profit organization */
84
+ NON_PROFIT = "NON_PROFIT",
85
+ }
86
+
87
+ /**
88
+ * Merchant return policy type enum
89
+ */
90
+ export enum MerchantReturnPolicyType {
91
+ /** No returns accepted */
92
+ NO_RETURNS = "NO_RETURNS",
93
+ /** Exchange for same/similar item only */
94
+ EXCHANGE_ONLY = "EXCHANGE_ONLY",
95
+ /** Refund as store credit only */
96
+ STORE_CREDIT = "STORE_CREDIT",
97
+ /** Full refund available */
98
+ FULL_REFUND = "FULL_REFUND",
99
+ /** Partial refund (restocking fee may apply) */
100
+ PARTIAL_REFUND = "PARTIAL_REFUND",
101
+ /** Handled on a case-by-case basis */
102
+ CASE_BY_CASE = "CASE_BY_CASE",
103
+ }
104
+
73
105
  /**
74
106
  * Shipment status enum
75
107
  */
@@ -184,6 +184,8 @@ export interface CreateOrderRequest {
184
184
  export interface ListOrdersParams extends PaginationParams {
185
185
  /** Filter by status */
186
186
  status?: OrderStatus;
187
+ /** Filter by merchant ID (for godview access) */
188
+ merchantId?: string;
187
189
  }
188
190
 
189
191
  /**
@@ -1,4 +1,4 @@
1
- import { InfoClient, PerpsAssetCtx, MarginTables } from "@nktkas/hyperliquid";
1
+ import { InfoClient, PerpsAssetCtx, MarginTables, PerpDex as LegacyPerpDex } from "@nktkas/hyperliquid";
2
2
 
3
3
  export interface PerpsMeta {
4
4
  collateralToken: number;
@@ -34,6 +34,10 @@ export interface PerpsUniverse {
34
34
  marginMode?: "strictIsolated" | "noCross";
35
35
  }
36
36
 
37
+ export interface PerpDex extends LegacyPerpDex {
38
+ deployerFeeScale: string;
39
+ }
40
+
37
41
  export type AllPerpsMeta = PerpsMeta[];
38
42
 
39
43
  export async function getAllPerpsMeta(
package/lib/hip3/utils.ts CHANGED
@@ -102,6 +102,8 @@ const dexToCollateralTokenSymbol = {
102
102
  hyna: "USDE",
103
103
  flx: "USDH",
104
104
  vntl: "USDH",
105
+ km: "USDH",
106
+ cash: "USDT0",
105
107
  };
106
108
 
107
109
  export const isSpotSymbol = (coin: string | undefined) => {